]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update libtool autoconf macros to libtool2 style
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 15 Jul 2010 15:13:23 +0000 (17:13 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 15 Jul 2010 15:13:23 +0000 (17:13 +0200)
configure.in

index f7da7fa06fc3cb82d9f7e3995a0cb437ec316699..e32395fc9630e89af7431043dd6184a1c3c79b10 100644 (file)
@@ -109,19 +109,14 @@ else
     AC_DISABLE_SHARED
 fi
 
-AC_LIBTOOL_DLOPEN
+LT_INIT([dlopen])
 if test $use_loadable_modules = yes;
 then
-    dnl Linux LTDL v3-v7 macros assume the autoconf 2.62 variable top_build_prefix is defined
-    dnl But from autoconf 2.64 its called ac_top_build_prefix and not automatically added to the Makefile
-    top_build_prefix=${ac_top_build_prefix}
-    AC_SUBST(top_build_prefix)
-
-    AC_LIBLTDL_CONVENIENCE
+    LTDL_INIT
 fi
+
 dnl LibTool environment is now prepared for setup. Check that it is usable and initialize.
-AC_PROG_LIBTOOL
-AC_LTDL_DLLIB
+LT_LIB_DLLOAD
 
 # Do we need these unconditionally for "make distcheck" to work?
 AC_SUBST(INCLTDL)
@@ -129,12 +124,11 @@ AC_SUBST(LIBLTDL)
 
 if test $use_loadable_modules = yes;
 then
-    # Why is this needed? Should not AC_LIBTOOL_DLOPEN from libtool do that?
+    # Why is this needed? Should not LT_INIT (or LT_LIB_DLLOAD) from libtool do that?
     LIBADD_DL=${lt_cv_dlopen_libs}
     AC_SUBST([LIBADD_DL])
 fi
 
-
 SQUID_CC_GUESS_VARIANT
 SQUID_CC_GUESS_OPTIONS
 
@@ -1891,7 +1885,7 @@ AC_SUBST(EXTERNAL_ACL_HELPERS)
 dnl Select url_rewrite helpers to build
 URL_REWRITE_HELPERS=all
 AC_ARG_ENABLE(url-rewrite-helpers,
-  AC_HELP_STRING([--enable-url-rewrite-helpers="list of helpers"],
+  AS_HELP_STRING([--enable-url-rewrite-helpers="list of helpers"],
                  [This option selects which url_rewrite helpers to
                   build and install as part of the normal build
                   process. For a list of available helpers see the
@@ -3862,6 +3856,6 @@ AC_CONFIG_FILES([\
 AC_CONFIG_SUBDIRS(lib/libTrie)
 
 # must configure libltdl subdir unconditionally for "make distcheck" to work
-AC_CONFIG_SUBDIRS(libltdl)
+#AC_CONFIG_SUBDIRS(libltdl)
 
 AC_OUTPUT