]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
remove extra slashes from end of srcdir
authorDavid MacKenzie <djm@djmnet.org>
Mon, 26 Sep 1994 03:02:30 +0000 (03:02 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Mon, 26 Sep 1994 03:02:30 +0000 (03:02 +0000)
acgeneral.m4
lib/autoconf/general.m4

index 255c4a78ce16a5a633b0f1236efb67f06a46e1ea..0a35c26f79f2ed5e19213de21ce491f71f3dd779 100644 (file)
@@ -519,6 +519,11 @@ if test ! -r $srcdir/$ac_unique_file; then
     AC_MSG_ERROR(can not find sources in $srcdir)
   fi
 fi
+dnl Double slashes in pathnames in object file debugging info
+dnl mess up M-x gdb in Emacs.
+changequote(, )dnl
+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+changequote([, ])dnl
 
 dnl Let the site file select an alternate cache file if it wants to.
 AC_SITE_LOAD
index 255c4a78ce16a5a633b0f1236efb67f06a46e1ea..0a35c26f79f2ed5e19213de21ce491f71f3dd779 100644 (file)
@@ -519,6 +519,11 @@ if test ! -r $srcdir/$ac_unique_file; then
     AC_MSG_ERROR(can not find sources in $srcdir)
   fi
 fi
+dnl Double slashes in pathnames in object file debugging info
+dnl mess up M-x gdb in Emacs.
+changequote(, )dnl
+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+changequote([, ])dnl
 
 dnl Let the site file select an alternate cache file if it wants to.
 AC_SITE_LOAD