config: Control languages from the command line --with/--without options.

Allow a user to include languages by --with-objc or --without-cxx.
This commit is contained in:
Chris Johns
2013-08-14 13:56:24 +10:00
parent 6201a0dd88
commit 76d4899a27

View File

@@ -10,6 +10,20 @@
%error No 'release' defined
%endif
#
# Process the command line --with-/--without- options.
#
%{?with_cxx:%define enable_cxx 1}
%{?without_cxx:%define enable_cxx 0}
%{?with_ada:%define enable_ada 1}
%{?without_ada:%define enable_ada 0}
%{?with_fortran:%define enable_fortran 1}
%{?without_fortran:%define enable_fortran 0}
%{?with_java:%define enable_java 1}
%{?without_java:%define enable_java 0}
%{?with_objc:%define enable_objc 1}
%{?without_objc:%define enable_objc 0}
#
# Default to C++ on.
#