config/companion_libs/cloog.in
author Daniel Price <daniel.price@gmail.com>
Tue Nov 20 16:59:17 2012 -0800 (2012-11-20)
changeset 3126 333d3e40cbd1
parent 2853 5182fa901f30
child 3218 3709e61ad85b
permissions -rw-r--r--
scripts: refine static linking check to better guide the user

The current mechanism to check if static linking is possible, and the mesage
displayed on failure, can be puzzling to the unsuspecting user.

Also, the current implementation is not using the existing infrastructure,
and is thus difficult to enhance with new tests.

So, switch to using the standard CT_DoExecLog infra, and use four tests to
check for the host compiler:
- check we can run it
- check it can build a trivial program
- check it can statically link that program
- check if it statically link with libstdc++

That should cover most of the problems. Hopefully.

(At the same time, fix a typo in a comment)

Signed-off-by: Daniel Price <daniel.price@gmail.com>
[yann.morin.1998@free.fr: split original patch for self-contained changes]
[yann.morin.1998@free.fr: use steps to better see gcc's output]
[yann.morin.1998@free.fr: commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <163f86b5216fc08c672a.1353459722@nipigon.dssd.com>
Patchwork-Id: 200536
yann@1380
     1
# CLooG options
yann@1380
     2
yann@1380
     3
choice
yann@1380
     4
    bool
yann@1380
     5
    prompt "CLooG/ppl version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@1380
     8
yann@2435
     9
config CLOOG_V_0_15_11
yann@2435
    10
    bool
yann@2957
    11
    prompt "0.15.11"
yann@2758
    12
    select CLOOG_0_15_1x
yann@2435
    13
yann@2157
    14
config CLOOG_V_0_15_10
yann@2157
    15
    bool
yann@2157
    16
    prompt "0.15.10"
yann@2758
    17
    select CLOOG_0_15_1x
yann@2157
    18
yann@1873
    19
config CLOOG_V_0_15_9
yann@1873
    20
    bool
yann@1873
    21
    prompt "0.15.9"
yann@1873
    22
yann@1873
    23
config CLOOG_V_0_15_8
yann@1873
    24
    bool
yann@1873
    25
    prompt "0.15.8"
yann@1873
    26
yann@1534
    27
config CLOOG_V_0_15_7
yann@1380
    28
    bool
yann@1534
    29
    prompt "0.15.7"
yann@1534
    30
yann@1534
    31
config CLOOG_V_0_15_6
yann@1534
    32
    bool
yann@1534
    33
    prompt "0.15.6"
yann@1534
    34
yann@1380
    35
endchoice
yann@1380
    36
yann@1380
    37
config CLOOG_VERSION
yann@1380
    38
    string
yann@1535
    39
# Don't remove next line
yann@1535
    40
# CT_INSERT_VERSION_STRING_BELOW
yann@2435
    41
    default "0.15.11" if CLOOG_V_0_15_11
yann@2157
    42
    default "0.15.10" if CLOOG_V_0_15_10
yann@1873
    43
    default "0.15.9" if CLOOG_V_0_15_9
yann@1873
    44
    default "0.15.8" if CLOOG_V_0_15_8
yann@1534
    45
    default "0.15.7" if CLOOG_V_0_15_7
yann@1534
    46
    default "0.15.6" if CLOOG_V_0_15_6
yann@2758
    47
yann@2758
    48
config CLOOG_0_15_1x
yann@2758
    49
    bool
yann@2758
    50
    select CLOOG_NEEDS_AUTORECONF
yann@2758
    51
yann@2758
    52
config CLOOG_NEEDS_AUTORECONF
yann@2758
    53
    bool