Fix quotation problems in DOS path handling.
+2000-03-08 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (AC_PATH_PROG, AC_OUTPUT_FILES, AC_OUTPUT_SUBDIRS):
+ Fix quotation problems in DOS path handling.
+
2000-03-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* acspecific.m4 (AC_FUNC_MMAP, AC_FUNC_ALLOCA): Make them C++
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
- [/\\]* | ?:[/\\]*)
+ [[/\\]]* | ?:[[/\\]]*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
- [/\\]* | ?:[/\\]* )
+ [[/\\]]* | ?:[[/\\]]* )
srcdir="$ac_given_srcdir$ac_dir_suffix";
top_srcdir=$ac_given_srcdir ;;
*) # Relative path.
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[ case "$ac_given_INSTALL" in
- [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
+[ case "$ac_given_INSTALL" in
+ [[/\\$]]* | ?:[[/\\]]* ) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
-]])dnl
+])dnl
echo creating "$ac_file"
rm -f "$ac_file"
fi
case "$srcdir" in
- [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
+ [[/\\$]]* | ?:[[/\\]]* ) ac_rel_source="$srcdir/$ac_source" ;;
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
- [/\\]* | ?:[/\\] ) # Absolute path.
+ [[/\\]]* | ?:[[/\\]] ) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
- [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
+ [[/\\]]* | ?:[[/\\]]* ) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[ case "$ac_given_INSTALL" in
- [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
+[ case "$ac_given_INSTALL" in
+ [[/\\$]]* | ?:[[/\\]]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
-]])dnl
+])dnl
echo "[running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.
echo $ECHO_N "(cached) $ECHO_C" 1>&6
else
case "$M4" in
- /\\* | ?:/\\*)
+ [/\\]* | ?:[/\\]*)
ac_cv_path_M4="$M4" # Let the user override the test with a path.
;;
*)
echo $ECHO_N "(cached) $ECHO_C" 1>&6
else
case "$PERL" in
- /\\* | ?:/\\*)
+ [/\\]* | ?:[/\\]*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
;;
*)
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
- /\\* | ?:/\\* )
+ [/\\]* | ?:[/\\]* )
srcdir="$ac_given_srcdir$ac_dir_suffix";
top_srcdir=$ac_given_srcdir ;;
*) # Relative path.
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
- [/\\]* | ?:[/\\]*)
+ [[/\\]]* | ?:[[/\\]]*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
- [/\\]* | ?:[/\\]* )
+ [[/\\]]* | ?:[[/\\]]* )
srcdir="$ac_given_srcdir$ac_dir_suffix";
top_srcdir=$ac_given_srcdir ;;
*) # Relative path.
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[ case "$ac_given_INSTALL" in
- [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
+[ case "$ac_given_INSTALL" in
+ [[/\\$]]* | ?:[[/\\]]* ) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
-]])dnl
+])dnl
echo creating "$ac_file"
rm -f "$ac_file"
fi
case "$srcdir" in
- [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
+ [[/\\$]]* | ?:[[/\\]]* ) ac_rel_source="$srcdir/$ac_source" ;;
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
- [/\\]* | ?:[/\\] ) # Absolute path.
+ [[/\\]]* | ?:[[/\\]] ) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
- [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
+ [[/\\]]* | ?:[[/\\]]* ) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[ case "$ac_given_INSTALL" in
- [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
+[ case "$ac_given_INSTALL" in
+ [[/\\$]]* | ?:[[/\\]]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
-]])dnl
+])dnl
echo "[running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.