config/debug/strace.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Dec 22 18:21:51 2008 +0000 (2008-12-22)
changeset 1105 3ba2a43353df
parent 951 fc4f1b630dd2
child 1534 d4ddf19a1968
permissions -rw-r--r--
Rationalise ./configure
- borrow a lot of ideas from Michael ABBOTT ( http://sourceware.org/ml/crossgcc/2008-12/msg00030.html )
- should be conforming to POSIX 1003.1-2008, non compliance due to bashsims is to be considered a bug
- as a result, it now works with dash
- make a little easier to read in some places
- enforce 4-space indentation
- get rid of futile 'return $?'
- quote all variables assignments
- save and restore IFS prior to and after using alternate values
- simplify the TOOLS_TO_CHECK listing

What's left:
- provide a mean to actually _compare_ version numbers
- change the TOOLS_TO_CHECK pattern style to be able to use '|' in regexp

/trunk/configure | 243 127 116 0 ++++++++++++++++++++++++++++++++------------------------------
1 file changed, 127 insertions(+), 116 deletions(-)
     1 # strace
     2 
     3 config DEBUG_strace
     4 
     5 choice
     6     bool
     7     prompt "strace version"
     8 
     9 config STRACE_V_4_5
    10     bool
    11     prompt "4.5 (OBSOLETE)"
    12     depends on OBSOLETE
    13 
    14 config STRACE_V_4_5_14
    15     bool
    16     prompt "4.5.14 (OBSOLETE)"
    17     depends on OBSOLETE
    18 
    19 config STRACE_V_4_5_15
    20     bool
    21     prompt "4.5.15"
    22 
    23 config STRACE_V_4_5_16
    24     bool
    25     prompt "4.5.16"
    26 
    27 config STRACE_V_4_5_17
    28     bool
    29     prompt "4.5.17"
    30 
    31 config STRACE_V_4_5_18
    32     bool
    33     prompt "4.5.18 (EXPERIMENTAL)"
    34     depends on EXPERIMENTAL
    35 
    36 # CT_INSERT_VERSION_ABOVE
    37 # Don't remove above line!
    38 endchoice
    39 
    40 config STRACE_VERSION
    41     string
    42     default "4.5" if STRACE_V_4_5
    43     default "4.5.14" if STRACE_V_4_5_14
    44     default "4.5.15" if STRACE_V_4_5_15
    45     default "4.5.16" if STRACE_V_4_5_16
    46     default "4.5.17" if STRACE_V_4_5_17
    47     default "4.5.18" if STRACE_V_4_5_18
    48 # CT_INSERT_VERSION_STRING_ABOVE
    49 # # Don't remove above line!