From d113bc2ca69a6f6a33139c3708a4ea6818605b69 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Thu, 6 Oct 2016 16:15:35 +0200 Subject: Half fixed recovering (no space handling) (unfinished) --- configure.ac | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 338879b4..abd8ab61 100644 --- a/configure.ac +++ b/configure.ac @@ -825,18 +825,25 @@ BINDLT= AC_ARG_ENABLE(libtool, AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]), want_libtool="$enableval") -if test "$want_libtool" = "yes"; then + + if test "$want_libtool" = "yes"; then AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) - AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) - cd $srcdir; exec ./re-conf $ac_configure_args - cd $srcdir; exec ./re-conf $ac_configure_args - AC_MSG_ERROR([Recovering failed]) + # dequote $ac_configure_args + eval "set my_configure_args $ac_configure_args" + shift + re_configure_args= + for a; do + re_configure_args="$re_configure_args $a" + done + cd $srcdir; exec ./re-conf $re_configure_args AC_MSG_ERROR([Recovering failed]) fi -fi -A=a + +DHLIBS=LIBRARIES A=a + +AC_SUBST(DHLIBS) AC_SUBST(A) AC_SUBST(BINDLT) -- cgit v1.2.1