+2004-06-21 Gary V. Vaughan <gary@gnu.org>
+
+ * libtoolize.in (libtoolize_flags): With the --ltdl option, we
+ libtoolize the libltdl subdirectory automatically.
+ * m4/ltdl.m4 (AC_WITH_LTDL): Fix overquoted args.
+
2004-06-21 Peter O'Gorman <peter@pogma.com>
* ltmain.in (dependency_libs) [darwin]: Remove -framework stuff from
dependency_libs. Any unusual flags in dependency_libs cause recent
versions of libtool to die with "cannot find the library `'", so
it is required to move frameworks out of there. :(
-
+
2004-06-21 Gary V. Vaughan <gary@gnu.org>
From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
progname=`echo "$progpath" | $SED "$basename"`
PROGRAM=libtoolize
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *) progdir=`echo "$progpath" | $SED "$dirname"`
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
# Global variables:
EXIT_SUCCESS=0
EXIT_FAILURE=1
seen_libtool=false
seen_ltdl=false
+# Collect flags to pass into libltdl libtoolize
+libtoolize_flags=
+
exit_status=$EXIT_SUCCESS
# Locations for important files:
opt="$1"
shift
case $opt in
- --copy|-c) opt_link=false ;;
+ --copy|-c) opt_link=false
+ libtoolize_flags="$libtoolize_flags --copy"
+ ;;
--debug) func_echo "enabling shell trace mode"
set -x
CP="echo $CP"
MKDIR="echo $MKDIR"
fi
+ libtoolize_flags="${libtoolize_flags} --dry-run"
;;
- --force|-f) opt_force=: ;;
- --install|-i) opt_install=: ;;
+ --force|-f) opt_force=:
+ libtoolize_flags="${libtoolize_flags} --force"
+ ;;
+
+ --install|-i) opt_install=:
+ libtoolize_flags="${libtoolize_flags} --install"
+ ;;
--ltdl) ltdldir=libltdl
if test "$#" -gt 0; then
;;
--quiet|--automake|-q) # --automake is for 1.5 compatibility
- opt_quiet=: ;;
- --verbose|-v) opt_verbose=: ;;
+ opt_quiet=:
+ libtoolize_flags="${libtoolize_flags} --quiet"
+ ;;
+
+ --verbose|-v) opt_verbose=:
+ libtoolize_flags="${libtoolize_flags} --verbose"
+ ;;
# Separate optargs to long options:
--ltdl=*)
# user specified `--ltdl'.
if test -n "$ltdldir"; then
eval func_copy_all_files "$pkgdatadir/libltdl" "$ltdldir"
+
+ # libtoolize the newly copied libltdl tree
+ ( cd "$ltdldir" && "$progpath" $libtoolize_flags ) || exit $EXIT_FAILURE
fi
# Copy all the installed utility files to the auxiliary directory if
AC_MSG_CHECKING([whether to use included libltdl])
AC_MSG_RESULT([$with_included_ltdl])
-AC_CONFIG_SUBDIRS([m4_if($#, 1, [$1], [libltdl])])
+AC_CONFIG_SUBDIRS(m4_if($#, 1, [$1], [libltdl]))
])# AC_WITH_LTDL
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
-LIBLTDL='${top_builddir}/'m4_if($#, 1,[$1], ['libltdl'])/libltdlc.la
+LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdlc.la
LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl'])
AC_SUBST([LIBLTDL])