From: aland Date: Tue, 19 Apr 2005 23:33:44 +0000 (+0000) Subject: check for getaddrinfo() && getnameinfo(), which both beat the X-Git-Tag: release_2_0_0_pre1~1481 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=04cdf2fad2e3fe21c00d2364f9045c131ff37ffa;p=freeradius.git check for getaddrinfo() && getnameinfo(), which both beat the pants off of gethostbybname() & friends --- diff --git a/configure b/configure index aedfc99..d15b525 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.208 . +# From configure.in Revision: 1.209 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.57. # @@ -22139,6 +22139,8 @@ _ACEOF + + for ac_func in \ getopt_long \ lockf \ @@ -22162,7 +22164,9 @@ for ac_func in \ setlinebuf \ setvbuf \ getusershell \ - initgroups + initgroups \ + getaddrinfo \ + getnameinfo do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` @@ -23896,7 +23900,7 @@ USE_STATIC_LIBS=$enable_static -export CFLAGS LIBS +export CFLAGS LIBS LDFLAGS CPPFLAGS ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf" cat >confcache <<\_ACEOF diff --git a/configure.in b/configure.in index d88f585..45da617 100644 --- a/configure.in +++ b/configure.in @@ -673,7 +673,9 @@ AC_CHECK_FUNCS( \ setlinebuf \ setvbuf \ getusershell \ - initgroups + initgroups \ + getaddrinfo \ + getnameinfo ) RADIUSD_NEED_DECLARATIONS( \ crypt \ @@ -1004,7 +1006,7 @@ AC_SUBST(STATIC_MODULES) AC_SUBST(RADIUSD_MAJOR_VERSION) AC_SUBST(RADIUSD_MINOR_VERSION) AC_SUBST(RADIUSD_VERSION) -export CFLAGS LIBS +export CFLAGS LIBS LDFLAGS CPPFLAGS AC_OUTPUT(\ ./Make.inc \ diff --git a/src/include/autoconf.h.in b/src/include/autoconf.h.in index 86ee140..ad8bd73 100644 --- a/src/include/autoconf.h.in +++ b/src/include/autoconf.h.in @@ -46,9 +46,15 @@ /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H +/* Define to 1 if you have the `getaddrinfo' function. */ +#undef HAVE_GETADDRINFO + /* Define to 1 if you have the `gethostname' function. */ #undef HAVE_GETHOSTNAME +/* Define to 1 if you have the `getnameinfo' function. */ +#undef HAVE_GETNAMEINFO + /* Define to 1 if you have the header file. */ #undef HAVE_GETOPT_H