Handle DOS paths when setting up ac_top_builddir.

This commit is contained in:
Tim Van Holder 2001-09-20 15:51:04 +00:00
parent 3f9eb3b0e9
commit 84f91881c2

View File

@ -50,7 +50,7 @@
# Roland McGrath, Noah Friedman, david d zuhn, and many others.
# This files handles about all the preparation aspects for
# This file handles about all the preparation aspects for
# `config.status': registering the configuration files, the headers,
# the links, and the commands `config.status' will run. There is a
# little mixture though of things actually handled by `configure',
@ -133,9 +133,9 @@
# - `ac_top_srcdir' is `build -> top-src'
m4_define([_AC_SRCPATHS],
[if test $1 != .; then
ac_dir_suffix=/`echo $1 | sed 's,^\./,,'`
ac_dir_suffix=/`echo $1 | sed 's,^\.[[\\/]],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[[^/]]*,../,g'`
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[[^\\/]]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi