libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems in installable libtool script


From: Alexandre Oliva
Subject: Problems in installable libtool script
Date: 16 Mar 2001 02:47:39 -0300
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Some variables are modified by `make' when building the libtool script
for installation in the MLB.  Ok to install?

Index: ChangeLog
from  Alexandre Oliva  <address@hidden>

        * configure.in (file_magic_cmd, reload_flag): Duplicate `$'s
        before SUBSTin in the Makefile.
        * ltconfig.in (reload_flag): Prepend a blank if it doesn't start
        with one.

Index: configure.in
===================================================================
RCS file: /cvsroot/libtool/libtool/configure.in,v
retrieving revision 1.38.2.10
diff -u -p -r1.38.2.10 configure.in
--- configure.in 2000/09/03 21:45:01 1.38.2.10
+++ configure.in 2001/03/16 05:45:39
@@ -86,6 +86,13 @@ done
 AC_SUBST(ACINCLUDE_M4_LIST)
 AC_SUBST(DIST_MAKEFILE_LIST)
 
+dnl Quote these variables
+for var in file_magic_cmd reload_flag; do
+  eval val=\$$var
+[ val=`echo "X$val" | sed -e '1s,^X,,' -e 's,[$],$$,g'`]
+  eval $var=\$val
+done  
+
 AC_OUTPUT_COMMANDS([
   test -f ${saved_top_srcdir}/ltconfig || ${MAKE-make} 
${saved_top_srcdir}/ltconfig
   test -f ${saved_top_srcdir}/ltmain.sh || ${MAKE-make} 
${saved_top_srcdir}/ltmain.sh
Index: ltconfig.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltconfig.in,v
retrieving revision 1.246.2.51
diff -u -p -r1.246.2.51 ltconfig.in
--- ltconfig.in 2001/03/13 15:02:22 1.246.2.51
+++ ltconfig.in 2001/03/16 05:45:39
@@ -950,6 +950,10 @@ else
   echo "${ac_t}no" 1>&6
 fi
 
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

reply via email to

[Prev in Thread] Current Thread [Next in Thread]