From: ian Date: Sun, 9 May 1999 15:21:09 +0000 (+0000) Subject: Do not link against gmp :-). X-Git-Tag: rel-adns-0-2~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=e9e1b0e6b53d86c2bee91711d94e87a033176f9b;ds=sidebyside Do not link against gmp :-). --- diff --git a/configure b/configure index 90aa9de..4bf677b 100755 --- a/configure +++ b/configure @@ -1024,125 +1024,22 @@ fi - echo $ac_n "checking for mpq_div""... $ac_c" 1>&6 -echo "configure:1029: checking for mpq_div" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mpq_div'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char mpq_div(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_mpq_div) || defined (__stub___mpq_div) -choke me -#else -mpq_div(); -#endif - -; return 0; } -EOF -if { (eval echo configure:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_mpq_div=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_mpq_div=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'mpq_div`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 - - echo $ac_n "checking for mpq_div in -lgmp""... $ac_c" 1>&6 -echo "configure:1076: checking for mpq_div in -lgmp" >&5 -ac_lib_var=`echo gmp'_'mpq_div | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lgmp $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - - { echo "configure: error: cannot find library function mpq_div" 1>&2; exit 1; } - -fi - - -fi - - - - echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6 -echo "configure:1133: checking __attribute__((,,))" >&5 +echo "configure:1030: 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:1043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_supported=yes else @@ -1164,20 +1061,20 @@ EOF echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6 -echo "configure:1168: checking __attribute__((noreturn))" >&5 +echo "configure:1065: 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:1078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_noreturn=yes else @@ -1204,20 +1101,20 @@ EOF echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6 -echo "configure:1208: checking __attribute__((const))" >&5 +echo "configure:1105: 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:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_c_attribute_const=yes else @@ -1244,20 +1141,20 @@ EOF echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6 -echo "configure:1248: checking __attribute__((format...))" >&5 +echo "configure:1145: 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:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* adns_cv_attribute_format=yes else diff --git a/configure.in b/configure.in index 8240aca..0267a37 100644 --- a/configure.in +++ b/configure.in @@ -29,8 +29,6 @@ ADNS_C_GETFUNC(inet_aton,resolv,[ AC_MSG_WARN([inet_aton is in libresolv, urgh. Must use -lresolv.]) ]) -ADNS_C_GETFUNC(mpq_div,gmp) - ADNS_C_GCCATTRIB AC_SUBST(WARNS) diff --git a/src/config.h.in b/src/config.h.in index a665e34..74267bf 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -12,6 +12,12 @@ /* Define if printf-format argument lists a la GCC are available. */ #undef HAVE_GNUC25_PRINTFFORMAT +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + /* Use the definitions: */ /* GNU C attributes. */