From: Nicholas Clark Date: Sat, 22 Dec 2007 17:51:03 +0000 (+0000) Subject: Add a Configure probe for X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a0de2c52ab4e8b4f51332a0e1eaae4b8cff3f48;p=p5sagit%2Fp5-mst-13.2.git Add a Configure probe for p4raw-id: //depot/perl@32705 --- diff --git a/Configure b/Configure index e8059b0..d907e04 100755 --- a/Configure +++ b/Configure @@ -839,6 +839,7 @@ installhtml1dir='' html3dir='' html3direxp='' installhtml3dir='' +i_assert='' i_arpainet='' i_crypt='' db_hashtype='' @@ -20923,6 +20924,10 @@ val=$val3; set i_termios; eval $setvar set stddef.h i_stddef eval $inhdr +: see if assert.h is available +set assert.h i_assert +eval $inhdr + : see if sys/access.h is available set sys/access.h i_sysaccess eval $inhdr @@ -22104,6 +22109,7 @@ i64type='$i64type' i8size='$i8size' i8type='$i8type' i_arpainet='$i_arpainet' +i_assert='$i_assert' i_bsdioctl='$i_bsdioctl' i_crypt='$i_crypt' i_db='$i_db' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index fa6358d..5e57116 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -611,6 +611,7 @@ i64type='long long' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='define' i_db='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index c2cd1f3..2afe65e 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -594,6 +594,7 @@ i64type='__int64' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc index 99a4eb5..f21a6e1 100644 --- a/NetWare/config_H.wc +++ b/NetWare/config_H.wc @@ -686,6 +686,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/Porting/Glossary b/Porting/Glossary index f267d40..5c35d24 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -2824,6 +2824,11 @@ i_arpainet (i_arpainet.U): This variable conditionally defines the I_ARPA_INET symbol, and indicates whether a C program should include . +i_assert (i_assert.U): + This variable conditionally defines the I_ASSERT symbol, which + indicates to the C program that exists and could + be included. + i_bsdioctl (i_sysioctl.U): This variable conditionally defines the I_SYS_BSDIOCTL symbol, which indicates to the C program that exists and should diff --git a/Porting/config.sh b/Porting/config.sh index 4dc7712..654adf6 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -611,6 +611,7 @@ i64type='long long' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='define' i_db='define' diff --git a/Porting/config_H b/Porting/config_H index b49e4d1..165f596 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -640,6 +640,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/config_h.SH b/config_h.SH index 1f92344..2f955d8 100644 --- a/config_h.SH +++ b/config_h.SH @@ -640,6 +640,12 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$i_arpainet I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#$i_assert I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/configure.com b/configure.com index 199c174..800f054 100644 --- a/configure.com +++ b/configure.com @@ -6168,6 +6168,7 @@ $ WC "i64type='" + i64type + "'" $ WC "i8size='" + i8size + "'" $ WC "i8type='" + i8type + "'" $ WC "i_arpainet='undef'" +$ WC "i_assert='define'" $ WC "i_crypt='undef'" $ WC "i_db='undef'" $ WC "i_dbm='undef'" diff --git a/epoc/config.sh b/epoc/config.sh index abc81e7..e54f568 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -557,6 +557,7 @@ h_sysfile='' hint='' hostcat='' i_arpainet='define' +i_assert='define' i_bsdioctl='undef' i_crypt='undef' i_db='undef' diff --git a/plan9/config_h.sample b/plan9/config_h.sample index 0281671..0714eb8 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -654,6 +654,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index e31ed49..9d11665 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -605,6 +605,7 @@ i64type='long long' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/symbian/config.sh b/symbian/config.sh index 247427e..c31d4be 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -532,6 +532,7 @@ i64type='int64_t' i8size='1' i8type='char' i_arpainet='undef' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/uconfig.h b/uconfig.h index 197b390..78bef6f 100644 --- a/uconfig.h +++ b/uconfig.h @@ -627,7 +627,13 @@ * This symbol, if defined, indicates to the C program that it should * include to get inet_addr and friends declarations. */ -/*#define I_ARPA_INET / **/ +#define I_ARPA_INET /**/ + +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ /* I_DBM: * This symbol, if defined, indicates that exists and should diff --git a/uconfig.sh b/uconfig.sh index fe8a404..2503c1b 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -518,6 +518,7 @@ i64type='int64_t' i8size='1' i8type='char' i_arpainet='undef' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config.bc b/win32/config.bc index 2c1ffd7..7f7cc38 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -599,6 +599,7 @@ i64type='__int64' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config.ce b/win32/config.ce index 6edabb7..2be9519 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -592,6 +592,7 @@ i64type='__int64' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config.gc b/win32/config.gc index 121c6ba..e1e1bc3 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -599,6 +599,7 @@ i64type='long long' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config.vc b/win32/config.vc index d6635ed..6e16726 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -599,6 +599,7 @@ i64type='__int64' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config.vc64 b/win32/config.vc64 index f74dff6..b5bea41 100644 --- a/win32/config.vc64 +++ b/win32/config.vc64 @@ -599,6 +599,7 @@ i64type='__int64' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='undef' i_db='undef' diff --git a/win32/config_H.bc b/win32/config_H.bc index 67a2bbf..c07d573 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -635,6 +635,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/win32/config_H.ce b/win32/config_H.ce index 3704009..7f9200c 100644 --- a/win32/config_H.ce +++ b/win32/config_H.ce @@ -636,6 +636,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/win32/config_H.gc b/win32/config_H.gc index af73208..01fdc3a 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -635,6 +635,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/win32/config_H.vc b/win32/config_H.vc index 2f03c87..0373bf9 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -635,6 +635,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included. diff --git a/win32/config_H.vc64 b/win32/config_H.vc64 index 28931d4..fbd2342 100644 --- a/win32/config_H.vc64 +++ b/win32/config_H.vc64 @@ -635,6 +635,12 @@ */ #define I_ARPA_INET /**/ +/* I_ASSERT: + * This symbol, if defined, indicates to the C program that it could + * include to get the assert() macro. + */ +#define I_ASSERT /**/ + /* I_DBM: * This symbol, if defined, indicates that exists and should * be included.