X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=configure;h=ff4675cdbdf394f6626ab7f7dca714afd875a27e;hp=e5d26ec9d0ebbf1bbd51581c5ea82fbd5522f68e;hb=c0ec02b59a25b13bb6a04abd518d0d2da0fefc88;hpb=91e6c883fe1b705b69546662fbc0ee1a5b688163 diff --git a/configure b/configure index e5d26ec..ff4675c 100755 --- a/configure +++ b/configure @@ -1507,22 +1507,70 @@ EOF + +if test "${GCC-no}" = yes; then + WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith" + saved_cflags="$CFLAGS" + CFLAGS="$CFLAGS -Wno-pointer-sign" + + echo $ac_n "checking -Wno-pointer-sign""... $ac_c" 1>&6 +echo "configure:1518: checking -Wno-pointer-sign" >&5 + if eval "test \"`echo '$''{'adns_cv_c_wnoptrsign'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + adns_cv_c_wnoptrsign=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + adns_cv_c_wnoptrsign=no +fi +rm -f conftest* + +fi + + if test "x$adns_cv_c_wnoptrsign" = xyes; then + true + echo "$ac_t""yes" 1>&6 + WARNS="$WARNS -Wno-pointer-sign" + else + true + echo "$ac_t""no" 1>&6 + fi + + CFLAGS="$saved_cflags" +else + WARNS= +fi + + echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6 -echo "configure:1513: checking __attribute__((,,))" >&5 +echo "configure:1561: checking __attribute__((,,))" >&5 if eval "test \"`echo '$''{'adns_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:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_supported=yes else @@ -1544,20 +1592,20 @@ EOF echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6 -echo "configure:1548: checking __attribute__((noreturn))" >&5 +echo "configure:1596: checking __attribute__((noreturn))" >&5 if eval "test \"`echo '$''{'adns_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:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_noreturn=yes else @@ -1584,20 +1632,20 @@ EOF echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6 -echo "configure:1588: checking __attribute__((const))" >&5 +echo "configure:1636: checking __attribute__((const))" >&5 if eval "test \"`echo '$''{'adns_cv_c_attribute_const'+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:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_const=yes else @@ -1624,20 +1672,20 @@ EOF echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6 -echo "configure:1628: checking __attribute__((format...))" >&5 +echo "configure:1676: checking __attribute__((format...))" >&5 if eval "test \"`echo '$''{'adns_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:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_attribute_format=yes else @@ -1671,14 +1719,6 @@ EOF -if test "${GCC-no}" = yes; then - WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith" -else - WARNS= -fi - - -