]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/m4/ltdl.m4 (_LT_CONFIG_LTDL_DIR): Spurious './' prefixes
authorGary V. Vaughan <gary@gnu.org>
Wed, 5 Oct 2005 09:42:41 +0000 (09:42 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 5 Oct 2005 09:42:41 +0000 (09:42 +0000)
upset BSD pmake, don't set lt_ltdl_dir in this case.
(LTDL_CONVENIENCE, LTDL_INSTALLABLE): Adjust.

ChangeLog
libltdl/m4/ltdl.m4

index b88d68cf09a662ee199d1c906a0c0bbdac2ec04a..6dabdc81f8213f8abb8af569e84978374be4424e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-05  Gary V. Vaughan  <gary@gnu.org>
+
+       * libltdl/m4/ltdl.m4 (_LT_CONFIG_LTDL_DIR): Spurious './' prefixes
+       upset BSD pmake, don't set lt_ltdl_dir in this case.
+       (LTDL_CONVENIENCE, LTDL_INSTALLABLE): Adjust.
+
 2005-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.am (BUILDCHECK_ENVIRONMENT)
index b971b52d1c2f9594e4cc415d08dbef469855775e..de4c655b972aa25c9076c6cba38368f6836d5705 100644 (file)
@@ -19,10 +19,14 @@ _$0($*)
 # We break this out into a separate macro, so that we can call it safely
 # internally without being caught accidentally by the sed scan in libtoolize.
 m4_defun([_LT_CONFIG_LTDL_DIR],
-[m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
+[dnl remove trailing slashes
+m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
 m4_case(_LTDL_DIR,
-       [], [m4_define([_LTDL_DIR], _ARG_DIR)
-           _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])],
+       [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
+            m4_if(_ARG_DIR, [.],
+                    [],
+                [m4_define([_LTDL_DIR], _ARG_DIR)
+                 _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
     [m4_if(_ARG_DIR, _LTDL_DIR,
            [],
        [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
@@ -57,8 +61,8 @@ case $enable_ltdl_convenience in
   "") enable_ltdl_convenience=yes
       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
   esac
-LIBLTDL='${top_builddir}/'"$lt_ltdl_dir/libltdlc.la"
-LTDLINCL='-I${top_srcdir}/'"$lt_ltdl_dir"
+LIBLTDL='${top_builddir}'"${lt_ltdl_dir+/$lt_ltdl_dir}/libltdlc.la"
+LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
 
 AC_SUBST([LIBLTDL])
 AC_SUBST([LTDLINCL])
@@ -108,8 +112,8 @@ AC_CHECK_LIB(ltdl, lt_dlinit,
   ])
 if test x"$enable_ltdl_install" = x"yes"; then
   ac_configure_args="$ac_configure_args --enable-ltdl-install"
-  LIBLTDL='${top_builddir}/'"$lt_ltdl_dir/libltdl.la"
-  LTDLINCL='-I${top_srcdir}/'"$lt_ltdl_dir"
+  LIBLTDL='${top_builddir}'"${lt_ltdl_dir+/$lt_ltdl_dir}/libltdl.la"
+  LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
 else
   ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
   LIBLTDL="-lltdl"