From 51cb3824983977c5b46e6ffca36b80c5c604b466 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 7 Apr 2006 19:11:06 +0000 Subject: [PATCH] get headers for WCOREDUMP right --- configure | 57 ++++++++++++++++++++++++++-------------------------- configure.in | 3 ++- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/configure b/configure index 9c9f5be..91d74a4 100755 --- a/configure +++ b/configure @@ -1154,7 +1154,8 @@ else #line 1155 "configure" #include "confdefs.h" -#include +#include +#include #ifdef WCOREDUMP yes #endif @@ -1192,20 +1193,20 @@ fi echo $ac_n "checking your C compiler""... $ac_c" 1>&6 -echo "configure:1196: checking your C compiler" >&5 +echo "configure:1197: checking your C compiler" >&5 if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { strcmp("a","b") ; return 0; } EOF -if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_works=yes else @@ -1230,20 +1231,20 @@ fi echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6 -echo "configure:1234: checking __attribute__((,,))" >&5 +echo "configure:1235: checking __attribute__((,,))" >&5 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_attribute_supported=yes else @@ -1265,20 +1266,20 @@ EOF echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6 -echo "configure:1269: checking __attribute__((noreturn))" >&5 +echo "configure:1270: checking __attribute__((noreturn))" >&5 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_attribute_noreturn=yes else @@ -1305,20 +1306,20 @@ EOF echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6 -echo "configure:1309: checking __attribute__((unused))" >&5 +echo "configure:1310: checking __attribute__((unused))" >&5 if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_attribute_unused=yes else @@ -1345,20 +1346,20 @@ EOF echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6 -echo "configure:1349: checking __attribute__((format...))" >&5 +echo "configure:1350: checking __attribute__((format...))" >&5 if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_attribute_format=yes else @@ -1396,7 +1397,7 @@ CWARNS="" echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6 -echo "configure:1400: checking GCC warning flag(s) -Wall -Wno-implicit" >&5 +echo "configure:1401: checking GCC warning flag(s) -Wall -Wno-implicit" >&5 if test "${GCC-no}" = yes then if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then @@ -1406,7 +1407,7 @@ else oldcflags="${CFLAGS-}" CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror" cat > conftest.$ac_ext < @@ -1418,7 +1419,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_gcc_warn_all=yes else @@ -1444,7 +1445,7 @@ fi echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6 -echo "configure:1448: checking GCC warning flag(s) -Wwrite-strings" >&5 +echo "configure:1449: checking GCC warning flag(s) -Wwrite-strings" >&5 if test "${GCC-no}" = yes then if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then @@ -1454,7 +1455,7 @@ else oldcflags="${CFLAGS-}" CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" cat > conftest.$ac_ext < @@ -1466,7 +1467,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_gcc_warn_writestrings=yes else @@ -1492,7 +1493,7 @@ fi echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6 -echo "configure:1496: checking GCC warning flag(s) -Wpointer-arith" >&5 +echo "configure:1497: checking GCC warning flag(s) -Wpointer-arith" >&5 if test "${GCC-no}" = yes then if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then @@ -1502,7 +1503,7 @@ else oldcflags="${CFLAGS-}" CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" cat > conftest.$ac_ext < @@ -1514,7 +1515,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_gcc_warn_pointerarith=yes else @@ -1540,7 +1541,7 @@ fi echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6 -echo "configure:1544: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5 +echo "configure:1545: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5 if test "${GCC-no}" = yes then if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then @@ -1550,7 +1551,7 @@ else oldcflags="${CFLAGS-}" CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" cat > conftest.$ac_ext < @@ -1562,7 +1563,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* dpkg_cv_c_gcc_warn_implicit=yes else diff --git a/configure.in b/configure.in index 65f6ed9..2d42166 100644 --- a/configure.in +++ b/configure.in @@ -77,7 +77,8 @@ fi AC_CACHE_CHECK(for WCOREDUMP,userv_cv_hdr_wcoredump, AC_EGREP_CPP(yes, [ -#include +#include +#include #ifdef WCOREDUMP yes #endif -- 2.30.2