Warn about whitespace in the absolute build tree name.
(LT_INIT): Use it.
* THANKS: Update.
Report by Jim Meyering.
2007-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/m4/libtool.m4 (_LT_CHECK_BUILDDIR): New macro.
+ Warn about whitespace in the absolute build tree name.
+ (LT_INIT): Use it.
+ * THANKS: Update.
+ Report by Jim Meyering.
+
* libltdl/config/ltmain.m4sh (func_extract_an_archive)
(func_extract_archives): Add some quoting.
James Su james.su@gmail.com
Jeff Squyres jsquyres@lam-mpi.org
Jeremy C. Reed reed@reedmedia.net
+ Jim Meyering jim@meyering.net
Joel N. Weber II devnull@gnu.org
Joerg Sonnenberger joerg@netbsd.org
John Bowler jbowler@acm.org
[$2])])
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+ *\ * | *\ *)
+ AC_MSG_WARN([Libtool does not cope well with whitespace in \`pwd\`]) ;;
+esac
+])
+
+
# LT_INIT([OPTIONS])
# ------------------
AC_DEFUN([LT_INIT],
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
AC_BEFORE([$0], [LT_LANG])dnl
AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_REQUIRE([_LT_CHECK_BUILDDIR])dnl
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
# Only expand once:
m4_define([LT_INIT])
-])# _LT_INIT
+])# LT_INIT
# Old names:
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])