complibs: introduce a two-stage select
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 03 23:11:27 2010 +0200 (2010-10-03)
changeset 2131469830f72fe7
parent 2130 b46ecc90d3ab
child 2132 47eeda1e5872
complibs: introduce a two-stage select

Directly select-ing the required companion libraries means we can not
disable them. That's OK for now, as we systematically build them when
they are required.

But with distros coming up-to-speed, we will need to disable the build
later-on.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/cc/gcc.in
config/companion_libs.in
     1.1 --- a/config/cc/gcc.in	Sun Oct 03 23:10:46 2010 +0200
     1.2 +++ b/config/cc/gcc.in	Sun Oct 03 23:11:27 2010 +0200
     1.3 @@ -161,24 +161,24 @@
     1.4  config CC_GCC_USE_GMP_MPFR
     1.5      bool
     1.6      default n
     1.7 -    select GMP
     1.8 -    select MPFR
     1.9 +    select GMP_NEEDED
    1.10 +    select MPFR_NEEDED
    1.11  
    1.12  config CC_GCC_USE_PPL_CLOOG
    1.13      bool
    1.14      default n
    1.15 -    select PPL
    1.16 -    select CLOOG
    1.17 +    select PPL_NEEDED
    1.18 +    select CLOOG_NEEDED
    1.19  
    1.20  config CC_GCC_USE_MPC
    1.21      bool
    1.22      default n
    1.23 -    select MPC
    1.24 +    select MPC_NEEDED
    1.25  
    1.26  config CC_GCC_USE_LIBELF
    1.27      bool
    1.28      default n
    1.29 -    select LIBELF
    1.30 +    select LIBELF_NEEDED
    1.31  
    1.32  config CC_VERSION
    1.33      string
     2.1 --- a/config/companion_libs.in	Sun Oct 03 23:10:46 2010 +0200
     2.2 +++ b/config/companion_libs.in	Sun Oct 03 23:11:27 2010 +0200
     2.3 @@ -4,6 +4,46 @@
     2.4  
     2.5  menu "Companion libraries"
     2.6  
     2.7 +config COMPLIBS_NEEDED
     2.8 +    bool
     2.9 +    default n
    2.10 +
    2.11 +config GMP_NEEDED
    2.12 +    bool
    2.13 +    default n
    2.14 +    select GMP
    2.15 +    select COMPLIBS_NEEDED
    2.16 +
    2.17 +config MPFR_NEEDED
    2.18 +    bool
    2.19 +    default n
    2.20 +    select MPFR
    2.21 +    select COMPLIBS_NEEDED
    2.22 +
    2.23 +config PPL_NEEDED
    2.24 +    bool
    2.25 +    default n
    2.26 +    select PPL
    2.27 +    select COMPLIBS_NEEDED
    2.28 +
    2.29 +config CLOOG_NEEDED
    2.30 +    bool
    2.31 +    default n
    2.32 +    select CLOOG
    2.33 +    select COMPLIBS_NEEDED
    2.34 +
    2.35 +config MPC_NEEDED
    2.36 +    bool
    2.37 +    default n
    2.38 +    select MPC
    2.39 +    select COMPLIBS_NEEDED
    2.40 +
    2.41 +config LIBELF_NEEDED
    2.42 +    bool
    2.43 +    default n
    2.44 +    select LIBELF
    2.45 +    select COMPLIBS_NEEDED
    2.46 +
    2.47  config COMPLIBS
    2.48      bool
    2.49      default n