This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a Configure probe for <assert.h>
authorNicholas Clark <nick@ccl4.org>
Sat, 22 Dec 2007 17:51:03 +0000 (17:51 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 22 Dec 2007 17:51:03 +0000 (17:51 +0000)
p4raw-id: //depot/perl@32705

25 files changed:
Configure
Cross/config.sh-arm-linux
NetWare/config.wc
NetWare/config_H.wc
Porting/Glossary
Porting/config.sh
Porting/config_H
config_h.SH
configure.com
epoc/config.sh
plan9/config_h.sample
plan9/config_sh.sample
symbian/config.sh
uconfig.h
uconfig.sh
win32/config.bc
win32/config.ce
win32/config.gc
win32/config.vc
win32/config.vc64
win32/config_H.bc
win32/config_H.ce
win32/config_H.gc
win32/config_H.vc
win32/config_H.vc64

index e8059b0..d907e04 100755 (executable)
--- 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'
index fa6358d..5e57116 100644 (file)
@@ -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'
index c2cd1f3..2afe65e 100644 (file)
@@ -594,6 +594,7 @@ i64type='__int64'
 i8size='1'
 i8type='char'
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl=''
 i_crypt='undef'
 i_db='undef'
index 99a4eb5..f21a6e1 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index f267d40..5c35d24 100644 (file)
@@ -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 <arpa/inet.h>.
 
+i_assert (i_assert.U):
+       This variable conditionally defines the I_ASSERT symbol, which
+       indicates to the C program that <assert.h> 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 <sys/bsdioctl.h> exists and should
index 4dc7712..654adf6 100644 (file)
@@ -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'
index b49e4d1..165f596 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index 1f92344..2f955d8 100644 (file)
@@ -640,6 +640,12 @@ sed <<!GROK!THIS! >$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 <assert.h> to get the assert() macro.
+ */
+#$i_assert     I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index 199c174..800f054 100644 (file)
@@ -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'"
index abc81e7..e54f568 100644 (file)
@@ -557,6 +557,7 @@ h_sysfile=''
 hint=''
 hostcat=''
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl='undef'
 i_crypt='undef'
 i_db='undef'
index 0281671..0714eb8 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index e31ed49..9d11665 100644 (file)
@@ -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'
index 247427e..c31d4be 100644 (file)
@@ -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'
index 197b390..78bef6f 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
  *     This symbol, if defined, indicates to the C program that it should
  *     include <arpa/inet.h> 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 <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
 
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
index fe8a404..2503c1b 100755 (executable)
@@ -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'
index 2c1ffd7..7f7cc38 100644 (file)
@@ -599,6 +599,7 @@ i64type='__int64'
 i8size='1'
 i8type='char'
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl=''
 i_crypt='undef'
 i_db='undef'
index 6edabb7..2be9519 100644 (file)
@@ -592,6 +592,7 @@ i64type='__int64'
 i8size='1'
 i8type='char'
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl=''
 i_crypt='undef'
 i_db='undef'
index 121c6ba..e1e1bc3 100644 (file)
@@ -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'
index d6635ed..6e16726 100644 (file)
@@ -599,6 +599,7 @@ i64type='__int64'
 i8size='1'
 i8type='char'
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl=''
 i_crypt='undef'
 i_db='undef'
index f74dff6..b5bea41 100644 (file)
@@ -599,6 +599,7 @@ i64type='__int64'
 i8size='1'
 i8type='char'
 i_arpainet='define'
+i_assert='define'
 i_bsdioctl=''
 i_crypt='undef'
 i_db='undef'
index 67a2bbf..c07d573 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index 3704009..7f9200c 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index af73208..01fdc3a 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index 2f03c87..0373bf9 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.
index 28931d4..fbd2342 100644 (file)
  */
 #define        I_ARPA_INET             /**/
 
+/* I_ASSERT:
+ *     This symbol, if defined, indicates to the C program that it could
+ *     include <assert.h> to get the assert() macro.
+ */
+#define        I_ASSERT                /**/
+
 /* I_DBM:
  *     This symbol, if defined, indicates that <dbm.h> exists and should
  *     be included.