From 0fbc2861a7a5d3fc548f31084a303b4ad7de3d34 Mon Sep 17 00:00:00 2001 From: Stelian Ionescu Date: Tue, 2 Oct 2012 20:00:24 +0200 Subject: [PATCH] Fix --with-system-libltdl and --with-system-libtool --- configure.in | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 8203cb3ce6e..8456be65c58 100644 --- a/configure.in +++ b/configure.in @@ -81,15 +81,20 @@ fi AC_ARG_WITH(system-libltdl, [ --with-system-libltdl Use the libltdl installed in your system (default=use dlopen)], -[ -LIBLTDL="-lltdl" -INCLTDL=-DWITH_SYSTEM_LTDL -], -) +[], +[with_system_libltdl=no]) + +AS_IF([test "x$with_system_libltdl" = "xyes" ], +[ LIBLTDL="-lltdl" +INCLTDL=-DWITH_SYSTEM_LTDL]) 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)], +[], +[with_system_libtool=no]) + +AS_IF([test "x$with_system_libtool" = "xyes" ], [ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL], [ -- 2.47.3