]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update libtool initialization macros to recommended.
authorDave Hart <hart@ntp.org>
Fri, 12 Apr 2024 12:23:49 +0000 (12:23 +0000)
committerDave Hart <hart@ntp.org>
Fri, 12 Apr 2024 12:23:49 +0000 (12:23 +0000)
Quiet some more Autoconf deprecation warnings.

bk: 661927d5ob0e-w_tWoHMdRuuU7t4XQ

configure.ac
ntpsnmpd/netsnmp_daemonize.c
sntp/configure.ac
sntp/libevent/configure.ac
sntp/libevent/m4/acx_pthread.m4
sntp/m4/ntp_compiler.m4
sntp/m4/ntp_libntp.m4

index 7362ec6cd9f03e5139a834a941277fd3c7d96ec9..fdb70200c8d51aa3f85fc842b7ca07ed853b1169 100644 (file)
@@ -78,8 +78,7 @@ AM_PROG_AR
 
 # So far, the only shared library we might use is libopts.
 # It's a small library - we might as well use a static version of it.
-AC_DISABLE_SHARED
-AC_PROG_LIBTOOL
+LT_INIT([disable-shared])
 AC_SUBST([LIBTOOL_DEPS])
 
 # NTP has (so far) been relying on leading-edge autogen, which
@@ -87,7 +86,7 @@ AC_SUBST([LIBTOOL_DEPS])
 # Therefore, by default:
 # - use the version of libopts we ship with
 # - do not install it
-# - build a static copy (AC_DISABLE_SHARED - done earlier)
+# - build a static copy (disable-shared - done earlier)
 case "${enable_local_libopts+set}" in
  set) ;;
  *) enable_local_libopts=yes ;;
index f806266c64af6f0965efc29792f732da6ee36825..55f8c359649269dc3d5d57542772bc16bd748410 100644 (file)
@@ -57,20 +57,12 @@ SOFTWARE.
 #include <stdlib.h>
 #endif
 
-#if TIME_WITH_SYS_TIME
-# ifdef WIN32
-#  include <sys/timeb.h>
-# else
-#  include <sys/time.h>
-# endif
-# include <time.h>
+#ifdef WIN32
+# include <sys/timeb.h>
 #else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
+# include <sys/time.h>
 #endif
+#include <time.h>
 
 #include <sys/types.h>
 
index f5db852d319c23ca55469ab84fa9cdb57881544c..23fbdb28d4b95a27d32180e898be90f133a8f9f1 100644 (file)
@@ -62,8 +62,7 @@ AM_PROG_AR
 
 NTP_LIBNTP
 
-AC_DISABLE_SHARED
-AC_PROG_LIBTOOL
+LT_INIT([disable-shared])
 AC_SUBST([LIBTOOL_DEPS])
 
 NTP_WITHSNTP
@@ -82,7 +81,7 @@ esac
 # Therefore, by default:
 # - use the version we ship with
 # - do not install it
-# - build a static copy (AC_DISABLE_SHARED - done earlier)
+# - build a static copy (disable-shared - done earlier)
 case "${enable_local_libopts+set}" in
  set) ;;
  *) enable_local_libopts=yes ;;
index f84c237df70adab21fa526bfbe3f2710582f0559..6c2646c219de4ca856c539a7f8d9c2ab6051a0b8 100644 (file)
@@ -348,7 +348,7 @@ AM_CONDITIONAL(BUILD_MIDIPIX, test x$midipix = xtrue)
 AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue)
 
 if test x$bwin32 = xtrue; then
-  AC_HAVE_LIBRARY([ws2_32])
+  AC_CHECK_LIB([ws2_32], [main])
 fi
 
 dnl Checks for typedefs, structures, and compiler characteristics.
index d2b116945f9f7998588daa93b94010718095c8cc..92ac1089b4ee4d095a249df565ce0cd0af59b2a2 100644 (file)
@@ -86,7 +86,7 @@
 AC_DEFUN([ACX_PTHREAD], [
 AC_REQUIRE([AC_CANONICAL_HOST])
 AC_LANG_SAVE
-AC_LANG_C
+AC_LANG([C])
 acx_pthread_ok=no
 
 # We used to check for pthread.h first, but this fails if pthread.h
index d1c639125bb695936846d754bc0ef82331be6c7f..7a00e64c8439eb90ccbcac17b814c4d091d27b39 100644 (file)
@@ -1,15 +1,10 @@
 dnl ######################################################################
 dnl Common m4sh code for compiler stuff
 AC_DEFUN([NTP_COMPILER], [
+AC_REQUIRE([AC_PROG_CC_STDC])
 
 AC_USE_SYSTEM_EXTENSIONS
 
-# Ralf Wildenhues: With per-target flags we need CC_C_O
-# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
-AM_PROG_CC_C_O
-AC_PROG_GCC_TRADITIONAL
-AC_REQUIRE([AC_PROG_CC_STDC])
-
 CC_NOFORMAT=
 CFLAGS_NTP=
 CPPFLAGS_NTP=
index 917c83044d10dbfed02bba0dcc880a82ccadf15d..1341b6f393399ea93b45f4dbb4ad5e26e4e0830f 100644 (file)
@@ -268,7 +268,7 @@ case "$ac_cv_c_inline" in
     AC_SUBST([HAVE_INLINE])
 esac
 
-AC_HEADER_TIME
+
 AC_CHECK_SIZEOF([time_t])
 AC_C_CHAR_UNSIGNED             dnl CROSS_COMPILE?
 AC_CHECK_SIZEOF([signed char])