Changeset 76d4899 in rtems-source-builder


Ignore:
Timestamp:
Aug 14, 2013, 3:56:24 AM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b830445
Parents:
6201a0dd
Message:

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

Allow a user to include languages by --with-objc or --without-cxx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/config/checks.cfg

    r6201a0dd r76d4899  
    44
    55%if %{_target} == %{nil}
    6 %error No 'target' defined
     6 %error No 'target' defined
    77%endif
    88
    99%ifn %{defined release}
    10 %error No 'release' defined
     10 %error No 'release' defined
    1111%endif
     12
     13#
     14# Process the command line --with-/--without- options.
     15#
     16%{?with_cxx:%define enable_cxx 1}
     17%{?without_cxx:%define enable_cxx 0}
     18%{?with_ada:%define enable_ada 1}
     19%{?without_ada:%define enable_ada 0}
     20%{?with_fortran:%define enable_fortran 1}
     21%{?without_fortran:%define enable_fortran 0}
     22%{?with_java:%define enable_java 1}
     23%{?without_java:%define enable_java 0}
     24%{?with_objc:%define enable_objc 1}
     25%{?without_objc:%define enable_objc 0}
    1226
    1327#
     
    1529#
    1630%ifn %{defined enable_cxx}
    17 %define enable_cxx 1
     31 %define enable_cxx 1
    1832%endif
    1933
     
    2236#
    2337%ifn %{defined enable_ada}
    24 %define enable_ada 0
     38 %define enable_ada 0
    2539%endif
    2640
     
    2943#
    3044%ifn %{defined enable_go}
    31 %define enable_go 0
     45 %define enable_go 0
    3246%endif
    3347
     
    3650#
    3751%ifn %{defined enable_fortran}
    38 %define enable_fortran 0
     52 %define enable_fortran 0
    3953%endif
    4054
     
    4357#
    4458%ifn %{defined enable_java}
    45 %define enable_java 0
     59 %define enable_java 0
    4660%endif
    4761
     
    5064#
    5165%ifn %{defined enable_objc}
    52 %define enable_objc 0
     66 %define enable_objc 0
    5367%endif
    5468
     
    5771#
    5872%ifn %{defined enable_obsolete}
    59 %define enable_obsolete 0
     73 %define enable_obsolete 0
    6074%endif
Note: See TracChangeset for help on using the changeset viewer.