]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2256] Improve configure's function searches in libraries
authorHarlan Stenn <stenn@ntp.org>
Mon, 28 Oct 2013 08:17:56 +0000 (08:17 +0000)
committerHarlan Stenn <stenn@ntp.org>
Mon, 28 Oct 2013 08:17:56 +0000 (08:17 +0000)
bk: 526e1db4P_Ro6w_UW1AgR_f2TKU5gQ

configure.ac
sntp/configure.ac
sntp/m4/ntp_ipv6.m4

index 6154ad2d6efe672faf825ffab837da7d31fb0a9f..8add1c7602830542d2d5374313833e3730859cfc 100644 (file)
@@ -207,7 +207,7 @@ case "$host" in
  *)
     # HMS: Make sure we check for -lrt for clock_* before this...
     case "$ac_cv_search_clock_gettime" in
-     '') AC_MSG_ERROR([Internal Error: Haven't looed for clock_gettime() yet!]) ;;
+     '') AC_MSG_ERROR([Internal Error: Haven't looked for clock_gettime() yet!]) ;;
     esac
     AC_SEARCH_LIBS([sched_setscheduler], [rt posix4])
     ;;
index 8a32978d41176b5a60dccf83ed12b0312aae4f10..e1034684969725bdb4c417fda7fee959d8a59ffa 100644 (file)
@@ -139,7 +139,9 @@ AC_PROG_CXX
 NTP_GOOGLETEST
 
 # All libraries should be in various LIB_* variables now. 
-LIBS=
+#LIBS=
+# Sadly not.  There is a gettext() check somewhere, and on Solaris this pulls
+# in -lintl -lgen, outside our "scope".
 
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([include/Makefile])
index abc4b80c27edda8d5213e8c4e7bb3eeef018fd07..079e51099458893724ae1461355730fe6c0f195d 100644 (file)
@@ -513,7 +513,11 @@ case "$host" in
  *-hp-hpux*)
     AC_SEARCH_LIBS([if_nametoindex], [ipv6])
 esac
+SAVED_LIBS="$LIBS"
+LIBS="$LDADD_LIBNTP $LIBS"
 AC_CHECK_FUNCS([if_nametoindex])
+LIBS="$SAVED_LIBS"
+AS_UNSET([SAVED_LIBS])
 case "$ac_cv_func_if_nametoindex" in
  yes)
        AC_DEFINE([ISC_PLATFORM_HAVEIFNAMETOINDEX], [1],