Make building in directories with whitespace possible. (Bug#15675)
* configure.ac (srcdir): Don't make it absolute - abs_srcdir exists.
+ (src/.gdbinit): Use ac_abs_top_srcdir.
* Makefile.in (abs_srcdir): New, set by configure.
(buildlisppath, epaths-force-w32): Use abs_srcdir.
(install-arch-indep, install-etcdoc, install-info, install-man)
fi
], [GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"])
+dnl NB we have to cheat and use the ac_... version because abs_top_srcdir
+dnl is not yet set, sigh. Or we could use ../$srcdir/src/.gdbinit,
+dnl or a symlink?
AC_CONFIG_COMMANDS([src/.gdbinit], [
if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
- echo "source $srcdir/src/.gdbinit" > src/.gdbinit
+ echo "source $ac_abs_top_srcdir/src/.gdbinit" > src/.gdbinit
fi
])