config/companion_libs/mpfr.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 08 23:26:54 2010 +0200 (2010-06-08)
changeset 1976 2d90ec981ba3
parent 1696 f04fb2d52023
child 1978 fbee95d8182b
permissions -rw-r--r--
config: add support for a second part of the generated choices

Some components have configuration options that can depend on
generic options, so they should go below those.

uClibc for example:
- has its own options (wchar...)
- uses the generic options (threads...)
- if linuxthreads chosen, offers two impls

So we need to be able to split the components options in 2,
one part that is above the generic options, and one part that
ends up below the generic options.
yann@466
     1
# GMP options
yann@466
     2
yann@466
     3
choice
yann@466
     4
    bool
yann@466
     5
    prompt "MPFR version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@466
     8
yann@1696
     9
config MPFR_V_2_4_2
yann@1696
    10
    bool
yann@1784
    11
    prompt "2.4.2"
yann@1696
    12
yann@1534
    13
config MPFR_V_2_4_1
yann@466
    14
    bool
yann@1534
    15
    prompt "2.4.1"
yann@1534
    16
yann@1534
    17
config MPFR_V_2_4_0
yann@1534
    18
    bool
yann@1534
    19
    prompt "2.4.0"
yann@466
    20
yann@902
    21
config MPFR_V_2_3_2
yann@902
    22
    bool
yann@1615
    23
    prompt "2.3.2 (OBSOLETE)"
yann@1615
    24
    depends on OBSOLETE
yann@902
    25
yann@1534
    26
config MPFR_V_2_3_1
yann@1199
    27
    bool
yann@1615
    28
    prompt "2.3.1 (OBSOLETE)"
yann@1615
    29
    depends on OBSOLETE
yann@1199
    30
yann@466
    31
endchoice
yann@466
    32
yann@466
    33
config MPFR_VERSION
yann@466
    34
    string
yann@1535
    35
# Don't remove next line
yann@1535
    36
# CT_INSERT_VERSION_STRING_BELOW
yann@1696
    37
    default "2.4.2" if MPFR_V_2_4_2
yann@1534
    38
    default "2.4.1" if MPFR_V_2_4_1
yann@1534
    39
    default "2.4.0" if MPFR_V_2_4_0
yann@1534
    40
    default "2.3.2" if MPFR_V_2_3_2
yann@466
    41
    default "2.3.1" if MPFR_V_2_3_1