mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-01 14:16:02 +08:00
* acgeneral.m4: (_AC_INIT_SRCDIR) Handle backslashes (DOS paths) for $ac_confdir and $srcdir.
This commit is contained in:
parent
ca6e40c20d
commit
faee7113d8
@ -773,7 +773,8 @@ if test -z "$srcdir"; then
|
||||
ac_srcdir_defaulted=yes
|
||||
# Try the directory containing this script, then its parent.
|
||||
ac_prog=$[0]
|
||||
ac_confdir=`echo "$ac_prog" | sed 's%/[[^/][^/]]*$%%'`
|
||||
dnl FIXME: should use AS_DIRNAME here once it is made DOS-friendly.
|
||||
ac_confdir=`echo "$ac_prog" | sed 's%[[\\/][^\\/][^\\/]]*$%%'`
|
||||
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
||||
srcdir=$ac_confdir
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
@ -791,7 +792,7 @@ if test ! -r $srcdir/$ac_unique_file; then
|
||||
fi
|
||||
dnl Double slashes in pathnames in object file debugging info
|
||||
dnl mess up M-x gdb in Emacs.
|
||||
srcdir=`echo "$srcdir" | sed 's%\([[^/]]\)/*$%\1%'`
|
||||
srcdir=`echo "$srcdir" | sed 's%\([[^\\/]]\)[[\\/]]*$%\1%'`
|
||||
m4_divert_pop([PARSE_ARGS])dnl
|
||||
])# _AC_INIT_SRCDIR
|
||||
|
||||
|
@ -773,7 +773,8 @@ if test -z "$srcdir"; then
|
||||
ac_srcdir_defaulted=yes
|
||||
# Try the directory containing this script, then its parent.
|
||||
ac_prog=$[0]
|
||||
ac_confdir=`echo "$ac_prog" | sed 's%/[[^/][^/]]*$%%'`
|
||||
dnl FIXME: should use AS_DIRNAME here once it is made DOS-friendly.
|
||||
ac_confdir=`echo "$ac_prog" | sed 's%[[\\/][^\\/][^\\/]]*$%%'`
|
||||
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
||||
srcdir=$ac_confdir
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
@ -791,7 +792,7 @@ if test ! -r $srcdir/$ac_unique_file; then
|
||||
fi
|
||||
dnl Double slashes in pathnames in object file debugging info
|
||||
dnl mess up M-x gdb in Emacs.
|
||||
srcdir=`echo "$srcdir" | sed 's%\([[^/]]\)/*$%\1%'`
|
||||
srcdir=`echo "$srcdir" | sed 's%\([[^\\/]]\)[[\\/]]*$%\1%'`
|
||||
m4_divert_pop([PARSE_ARGS])dnl
|
||||
])# _AC_INIT_SRCDIR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user