changeset 4811:4df040383e8a

No longer use vpath_sed. Instead, when we notice srcdir already configured, set extrasub to hack vpath in the makefiles.
author Roland McGrath <roland@gnu.org>
date Sun, 03 Oct 1993 20:41:20 +0000
parents 5ccfb9c1967f
children f29e05dc032f
files configure1.in
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Sun Oct 03 19:57:50 1993 +0000
+++ b/configure1.in	Sun Oct 03 20:41:20 1993 +0000
@@ -390,13 +390,11 @@
    echo "   use GNU make.  If you do not have GNU make, then you must"
    echo "   now do \`make distclean' in ${srcdir},"
    echo "   and then run ${progname} again.") >&2
-  # We need a multi-line sed script, which cannot go in a makefile.
-  vpath_sed='-f vpath.sed'
-else
-  # Do the normal substitution for VPATH.  This will not crash non-GNU make.
-  vpath_sed=]'AC_QUOTE_SQUOTE(AC_QUOTE_SQUOTE('-e '\''s|^\(VPATH *=\).*$$|\1 ='\''"${srcdir}/${subdir}|"'))'[
+  extrasub='/^VPATH[	 ]*=/c\
+vpath %.c $(srcdir)\
+vpath %.h $(srcdir)\
+vpath %.in $(srcdir)'
 fi
-] AC_SUBST(vpath_sed) [
 
 ### Make the necessary directories, if they don't exist.
 for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do