Add AC_PROG_LIBTOOL in with-system-libtool path
authorSam Hartman <hartmans@debian.org>
Tue, 16 Nov 2010 07:56:50 +0000 (02:56 -0500)
committerSam Hartman <hartmans@debian.org>
Tue, 16 Nov 2010 07:56:50 +0000 (02:56 -0500)
The symptom of not including this is strange; with autoconf 2.67, some
of the libtool variables in config.status are incorrectly quoted and
configure crashes.

configure.in

index 7c9a3a1..da1b57c 100644 (file)
@@ -95,7 +95,8 @@ AC_SUBST(LTDL_SUBDIRS)
 dnl use system-wide libtool, if it exists
 AC_ARG_WITH(system-libtool,
 [  --with-system-libtool   Use the libtool installed in your system (default=use our own)],
-[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ],
+[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN
+AC_PROG_LIBTOOL],
 [
   LIBTOOL="`pwd`/libtool"
   AC_SUBST(LIBTOOL)