* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test

-x' and `test -f' to avoid confusing users with error messages.
(AS_MKDIR_P): Invert order of separators in IFS to avoid problem
with some shells adding backslash between fields and parsing the
result for escapes.
* doc/autoconf.texi (Special Shell Variables): Document IFS.
This commit is contained in:
Akim Demaille 2001-01-29 15:24:10 +00:00
parent 2592cfc83e
commit de7bbeb9f4
6 changed files with 167 additions and 110 deletions

View File

@ -1,3 +1,12 @@
2001-01-29 Assar Westerlund <assar@sics.se>
* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test
-x' and `test -f' to avoid confusing users with error messages.
(AS_MKDIR_P): Invert order of separators in IFS to avoid problem
with some shells adding backslash between fields and parsing the
result for escapes.
* doc/autoconf.texi (Special Shell Variables): Document IFS.
2001-01-29 Steven G. Johnson <stevenj@alum.mit.edu>
* aclang.m4 (AC_PROG_F77): Improve documentation of the compilers

238
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.49c for GNU Autoconf 2.49d.
# Generated by Autoconf 2.49d for GNU Autoconf 2.49d.
#
# Report bugs to <bug-autoconf@gnu.org>.
#
@ -23,6 +23,24 @@ else
as_expr=false
fi
rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conftest.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conftest.file conftest 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
@ -35,7 +53,7 @@ if test -x conftest.file; then
elif test -f conftest.file; then
as_executable_p="test -f"
else
{ { echo "$as_me:38: error: cannot check whether a file is executable on this system" >&5
{ { echo "$as_me:56: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -60,9 +78,9 @@ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; ex
# IFS
# We need space, tab and new line, in precisely that order.
ac_nl='
as_nl='
'
IFS=" $ac_nl"
IFS=" $as_nl"
# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
@ -79,7 +97,7 @@ cat >config.log <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me (GNU Autoconf 2.49d) 2.49c, executed with
It was created by $as_me (GNU Autoconf 2.49d) 2.49d, executed with
> $0 $@
EOF
@ -244,7 +262,7 @@ do
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
{ { echo "$as_me:247: error: invalid feature name: $ac_feature" >&5
{ { echo "$as_me:265: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
@ -254,7 +272,7 @@ echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
{ { echo "$as_me:257: error: invalid feature name: $ac_feature" >&5
{ { echo "$as_me:275: error: invalid feature name: $ac_feature" >&5
echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
@ -437,7 +455,7 @@ echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
{ { echo "$as_me:440: error: invalid package name: $ac_package" >&5
{ { echo "$as_me:458: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package| sed 's/-/_/g'`
@ -451,7 +469,7 @@ echo "$as_me: error: invalid package name: $ac_package" >&2;}
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
{ { echo "$as_me:454: error: invalid package name: $ac_package" >&5
{ { echo "$as_me:472: error: invalid package name: $ac_package" >&5
echo "$as_me: error: invalid package name: $ac_package" >&2;}
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package | sed 's/-/_/g'`
@ -475,7 +493,7 @@ echo "$as_me: error: invalid package name: $ac_package" >&2;}
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
-*) { { echo "$as_me:478: error: unrecognized option: $ac_option
-*) { { echo "$as_me:496: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2;}
@ -486,7 +504,7 @@ Try \`$0 --help' for more information." >&2;}
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
{ { echo "$as_me:489: error: invalid variable name: $ac_envvar" >&5
{ { echo "$as_me:507: error: invalid variable name: $ac_envvar" >&5
echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
{ (exit 1); exit 1; }; }
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
@ -495,10 +513,10 @@ echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
*)
# FIXME: should be removed in autoconf 3.0.
{ echo "$as_me:498: WARNING: you should use --build, --host, --target" >&5
{ echo "$as_me:516: WARNING: you should use --build, --host, --target" >&5
echo "$as_me: WARNING: you should use --build, --host, --target" >&2;}
expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
{ echo "$as_me:501: WARNING: invalid host type: $ac_option" >&5
{ echo "$as_me:519: WARNING: invalid host type: $ac_option" >&5
echo "$as_me: WARNING: invalid host type: $ac_option" >&2;}
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
;;
@ -508,7 +526,7 @@ done
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ { echo "$as_me:511: error: missing argument to $ac_option" >&5
{ { echo "$as_me:529: error: missing argument to $ac_option" >&5
echo "$as_me: error: missing argument to $ac_option" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -522,7 +540,7 @@ do
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
NONE ) ;;
*) { { echo "$as_me:525: error: expected an absolute path for --$ac_var: $ac_val" >&5
*) { { echo "$as_me:543: error: expected an absolute path for --$ac_var: $ac_val" >&5
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
{ (exit 1); exit 1; }; };;
esac
@ -538,7 +556,7 @@ target=$target_alias
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
{ echo "$as_me:541: WARNING: If you wanted to set the --build type, don't use --host.
{ echo "$as_me:559: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&5
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2;}
@ -568,11 +586,11 @@ else
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ { echo "$as_me:571: error: cannot find sources in $ac_confdir or .." >&5
{ { echo "$as_me:589: error: cannot find sources in $ac_confdir or .." >&5
echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;}
{ (exit 1); exit 1; }; }
else
{ { echo "$as_me:575: error: cannot find sources in $srcdir" >&5
{ { echo "$as_me:593: error: cannot find sources in $srcdir" >&5
echo "$as_me: error: cannot find sources in $srcdir" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -698,7 +716,7 @@ if test "$ac_init_help" = "recursive"; then
echo
$ac_configure --help
else
{ echo "$as_me:701: WARNING: no configuration information is in $ac_subdir" >&5
{ echo "$as_me:719: WARNING: no configuration information is in $ac_subdir" >&5
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
fi
cd $ac_popdir
@ -708,7 +726,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\EOF
configure (GNU Autoconf 2.49d) 2.49c
configure (GNU Autoconf 2.49d) 2.49d
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
Free Software Foundation, Inc.
@ -802,7 +820,9 @@ if test -z "$CONFIG_SITE"; then
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
{ echo "$as_me:823: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
cat "$ac_site_file" >&5
. "$ac_site_file"
fi
done
@ -811,7 +831,7 @@ if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
{ echo "$as_me:814: loading cache $cache_file" >&5
{ echo "$as_me:834: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
@ -819,7 +839,7 @@ echo "$as_me: loading cache $cache_file" >&6;}
esac
fi
else
{ echo "$as_me:822: creating cache $cache_file" >&5
{ echo "$as_me:842: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
@ -835,30 +855,30 @@ for ac_var in `(set) 2>&1 |
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
{ echo "$as_me:838: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
{ echo "$as_me:858: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_suggest_removing_cache=: ;;
,set)
{ echo "$as_me:842: WARNING: \`$ac_var' was not set in the previous run" >&5
{ echo "$as_me:862: WARNING: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
ac_suggest_removing_cache=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
{ echo "$as_me:848: WARNING: \`$ac_var' has changed since the previous run:" >&5
{ echo "$as_me:868: WARNING: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
{ echo "$as_me:850: WARNING: former value: $ac_old_val" >&5
{ echo "$as_me:870: WARNING: former value: $ac_old_val" >&5
echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
{ echo "$as_me:852: WARNING: current value: $ac_new_val" >&5
{ echo "$as_me:872: WARNING: current value: $ac_new_val" >&5
echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
ac_suggest_removing_cache=:
fi;;
esac
done
if $ac_suggest_removing_cache; then
{ echo "$as_me:859: WARNING: changes in the environment can compromise the build" >&5
{ echo "$as_me:879: WARNING: changes in the environment can compromise the build" >&5
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
{ echo "$as_me:861: WARNING: consider removing $cache_file and starting over" >&5
{ echo "$as_me:881: WARNING: consider removing $cache_file and starting over" >&5
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
fi
@ -892,7 +912,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
fi
done
if test -z "$ac_aux_dir"; then
{ { echo "$as_me:895: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
{ { echo "$as_me:915: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
{ (exit 1); exit 1; }; }
fi
@ -912,7 +932,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:915: checking for a BSD compatible install" >&5
echo "$as_me:935: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
@ -961,7 +981,7 @@ fi
INSTALL=$ac_install_sh
fi
fi
echo "$as_me:964: result: $INSTALL" >&5
echo "$as_me:984: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@ -972,7 +992,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo "$as_me:975: checking whether build environment is sane" >&5
echo "$as_me:995: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
@ -995,7 +1015,7 @@ if (
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
{ { echo "$as_me:998: error: ls -t appears to fail. Make sure there is not a broken
{ { echo "$as_me:1018: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&2;}
@ -1008,14 +1028,14 @@ then
# Ok.
:
else
{ { echo "$as_me:1011: error: newly created file is older than distributed files!
{ { echo "$as_me:1031: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f conftest*
echo "$as_me:1018: result: yes" >&5
echo "$as_me:1038: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
program_transform_name=
@ -1036,7 +1056,7 @@ test "$program_suffix" != NONE &&
# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"
echo "$as_me:1039: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "$as_me:1059: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
@ -1056,11 +1076,11 @@ fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
echo "$as_me:1059: result: yes" >&5
echo "$as_me:1079: result: yes" >&5
echo "${ECHO_T}yes" >&6
SET_MAKE=
else
echo "$as_me:1063: result: no" >&5
echo "$as_me:1083: result: no" >&5
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
@ -1070,7 +1090,7 @@ PACKAGE=autoconf
VERSION=2.49d
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
{ { echo "$as_me:1073: error: source directory already configured; run \"make distclean\" there first" >&5
{ { echo "$as_me:1093: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -1084,93 +1104,87 @@ cat >>confdefs.h <<EOF
EOF
missing_dir=`cd $ac_aux_dir && pwd`
echo "$as_me:1087: checking for working aclocal" >&5
echo "$as_me:1107: checking for working aclocal" >&5
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
ACLOCAL=aclocal
echo "$as_me:1094: result: found" >&5
echo "$as_me:1114: result: found" >&5
echo "${ECHO_T}found" >&6
else
ACLOCAL="$SHELL $missing_dir/missing aclocal"
echo "$as_me:1098: result: missing" >&5
echo "$as_me:1118: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
echo "$as_me:1102: checking for working autoconf" >&5
echo "$as_me:1122: checking for working autoconf" >&5
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
AUTOCONF=autoconf
echo "$as_me:1109: result: found" >&5
echo "$as_me:1129: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOCONF="$SHELL $missing_dir/missing autoconf"
echo "$as_me:1113: result: missing" >&5
echo "$as_me:1133: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
echo "$as_me:1117: checking for working automake" >&5
echo "$as_me:1137: checking for working automake" >&5
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (automake --version) < /dev/null > /dev/null 2>&1; then
AUTOMAKE=automake
echo "$as_me:1124: result: found" >&5
echo "$as_me:1144: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOMAKE="$SHELL $missing_dir/missing automake"
echo "$as_me:1128: result: missing" >&5
echo "$as_me:1148: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
echo "$as_me:1132: checking for working autoheader" >&5
echo "$as_me:1152: checking for working autoheader" >&5
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
AUTOHEADER=autoheader
echo "$as_me:1139: result: found" >&5
echo "$as_me:1159: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOHEADER="$SHELL $missing_dir/missing autoheader"
echo "$as_me:1143: result: missing" >&5
echo "$as_me:1163: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
echo "$as_me:1147: checking for working makeinfo" >&5
echo "$as_me:1167: checking for working makeinfo" >&5
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
MAKEINFO=makeinfo
echo "$as_me:1154: result: found" >&5
echo "$as_me:1174: result: found" >&5
echo "${ECHO_T}found" >&6
else
MAKEINFO="$SHELL $missing_dir/missing makeinfo"
echo "$as_me:1158: result: missing" >&5
echo "$as_me:1178: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
if test foo = found; then
foo=1
else
foo=1
fi
# Initialize the test suite.
AUTOTEST_PATH=..
# Extract the first word of "expr", so it can be a program name with args.
set dummy expr; ac_word=$2
echo "$as_me:1173: checking for $ac_word" >&5
echo "$as_me:1187: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_EXPR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@ -1197,10 +1211,10 @@ fi
EXPR=$ac_cv_path_EXPR
if test -n "$EXPR"; then
echo "$as_me:1200: result: $EXPR" >&5
echo "$as_me:1214: result: $EXPR" >&5
echo "${ECHO_T}$EXPR" >&6
else
echo "$as_me:1203: result: no" >&5
echo "$as_me:1217: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@ -1212,7 +1226,7 @@ for ac_prog in gm4 gnum4 m4
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1215: checking for $ac_word" >&5
echo "$as_me:1229: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_M4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@ -1239,10 +1253,10 @@ fi
M4=$ac_cv_path_M4
if test -n "$M4"; then
echo "$as_me:1242: result: $M4" >&5
echo "$as_me:1256: result: $M4" >&5
echo "${ECHO_T}$M4" >&6
else
echo "$as_me:1245: result: no" >&5
echo "$as_me:1259: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@ -1250,7 +1264,7 @@ fi
done
test -n "$M4" || M4="m4"
echo "$as_me:1253: checking whether m4 supports frozen files" >&5
echo "$as_me:1267: checking whether m4 supports frozen files" >&5
echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
if test "${ac_cv_prog_gnu_m4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@ -1262,10 +1276,10 @@ if test x"$M4" != x; then
esac
fi
fi
echo "$as_me:1265: result: $ac_cv_prog_gnu_m4" >&5
echo "$as_me:1279: result: $ac_cv_prog_gnu_m4" >&5
echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
if test x"$ac_cv_prog_gnu_m4" != xyes; then
{ { echo "$as_me:1268: error: GNU m4 1.4 is required" >&5
{ { echo "$as_me:1282: error: GNU m4 1.4 is required" >&5
echo "$as_me: error: GNU m4 1.4 is required" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -1277,7 +1291,7 @@ for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1280: checking for $ac_word" >&5
echo "$as_me:1294: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@ -1299,10 +1313,10 @@ fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
echo "$as_me:1302: result: $AWK" >&5
echo "$as_me:1316: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
echo "$as_me:1305: result: no" >&5
echo "$as_me:1319: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@ -1310,25 +1324,25 @@ fi
done
# Generating man pages.
echo "$as_me:1313: checking for working help2man" >&5
echo "$as_me:1327: checking for working help2man" >&5
echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (help2man --version) < /dev/null > /dev/null 2>&1; then
HELP2MAN=help2man
echo "$as_me:1320: result: found" >&5
echo "$as_me:1334: result: found" >&5
echo "${ECHO_T}found" >&6
else
HELP2MAN="$SHELL $missing_dir/missing help2man"
echo "$as_me:1324: result: missing" >&5
echo "$as_me:1338: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
# We use a path for perl so the #! line in autoscan will work.
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo "$as_me:1331: checking for $ac_word" >&5
echo "$as_me:1345: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PERL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@ -1356,17 +1370,17 @@ fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
echo "$as_me:1359: result: $PERL" >&5
echo "$as_me:1373: result: $PERL" >&5
echo "${ECHO_T}$PERL" >&6
else
echo "$as_me:1362: result: no" >&5
echo "$as_me:1376: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test "$PERL" != no; then
PERLSCRIPTS=autoscan
else
{ echo "$as_me:1369: WARNING: autoscan will not be built since perl is not found" >&5
{ echo "$as_me:1383: WARNING: autoscan will not be built since perl is not found" >&5
echo "$as_me: WARNING: autoscan will not be built since perl is not found" >&2;}
fi
@ -1382,7 +1396,7 @@ fi
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:1385: checking for a BSD compatible install" >&5
echo "$as_me:1399: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
@ -1431,7 +1445,7 @@ fi
INSTALL=$ac_install_sh
fi
fi
echo "$as_me:1434: result: $INSTALL" >&5
echo "$as_me:1448: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@ -1545,7 +1559,7 @@ rm -f confdef2opt.sed
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:1548: creating $CONFIG_STATUS" >&5
{ echo "$as_me:1562: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<\_ACEOF
#! /bin/sh
@ -1572,6 +1586,24 @@ else
as_expr=false
fi
rm -f conftest conftest.exe conftest.file
echo >conftest.file
if ln -s conftest.file conftest 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conftest.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conftest.file conftest 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conftest conftest.exe conftest.file
# Find out how to test for executable files. Don't use a zero-byte file,
# as systems may use methods other than mode bits to determine executability.
cat >conftest.file <<_ASEOF
@ -1584,7 +1616,7 @@ if test -x conftest.file; then
elif test -f conftest.file; then
as_executable_p="test -f"
else
{ { echo "$as_me:1587: error: cannot check whether a file is executable on this system" >&5
{ { echo "$as_me:1619: error: cannot check whether a file is executable on this system" >&5
echo "$as_me: error: cannot check whether a file is executable on this system" >&2;}
{ (exit 1); exit 1; }; }
fi
@ -1609,9 +1641,9 @@ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; ex
# IFS
# We need space, tab and new line, in precisely that order.
ac_nl='
as_nl='
'
IFS=" $ac_nl"
IFS=" $as_nl"
# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
@ -1631,7 +1663,7 @@ cat >&5 << EOF
## Running config.status. ##
## ----------------------- ##
This file was extended by $as_me (GNU Autoconf 2.49d) 2.49c, executed with
This file was extended by $as_me (GNU Autoconf 2.49d) 2.49d, executed with
> $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q`
@ -1679,7 +1711,7 @@ EOF
cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
$CONFIG_STATUS generated by $as_me (Autoconf 2.49c).
$CONFIG_STATUS generated by $as_me (Autoconf 2.49d).
Configured on host $ac_hostname by
`echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
srcdir=$srcdir
@ -1719,7 +1751,7 @@ cat >>$CONFIG_STATUS <<\EOF
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
{ { echo "$as_me:1722: error: ambiguous option: $1
{ { echo "$as_me:1754: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
@ -1746,12 +1778,12 @@ Try \`$0 --help' for more information." >&2;}
'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
# This is an error.
-*) { { echo "$as_me:1749: error: unrecognized option: $1
-*) { { echo "$as_me:1781: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
*) { { echo "$as_me:1754: error: invalid argument: $1" >&5
*) { { echo "$as_me:1786: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
{ (exit 1); exit 1; }; };;
esac
@ -1921,17 +1953,17 @@ echo X"$ac_file" |
s/.*/./; q'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
{ case "$ac_dir" in
[\\/]* | ?:[\\/]* ) ac_incr_dir=;;
*) ac_incr_dir=.;;
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
*) as_incr_dir=.;;
esac
ac_dummy="$ac_dir"
for ac_mkdir_dir in `IFS='\\/'; set X $ac_dummy; shift; echo "$@"`; do
case $ac_mkdir_dir in
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='\\/'; set X $as_dummy; shift; echo "$@"`; do
case $as_mkdir_dir in
# Skip DOS drivespec
?:) ac_incr_dir=$ac_mkdir_dir ;;
?:) as_incr_dir=$as_mkdir_dir ;;
*)
ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
test -d "$ac_incr_dir" || mkdir "$ac_incr_dir"
as_incr_dir=$as_incr_dir/$as_mkdir_dir
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
;;
esac
done; }
@ -1964,7 +1996,7 @@ done; }
esac
if test x"$ac_file" != x-; then
{ echo "$as_me:1967: creating $ac_file" >&5
{ echo "$as_me:1999: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
@ -1982,7 +2014,7 @@ echo "$as_me: creating $ac_file" >&6;}
-) echo $tmp/stdin ;;
[\\/$]* | ?:[\\/]*)
# Absolute
test -f "$f" || { { echo "$as_me:1985: error: cannot find input file: $f" >&5
test -f "$f" || { { echo "$as_me:2017: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
@ -1995,7 +2027,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo $srcdir/$f
else
# /dev/null tree
{ { echo "$as_me:1998: error: cannot find input file: $f" >&5
{ { echo "$as_me:2030: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;

View File

@ -5548,6 +5548,14 @@ Note that since @command{zsh} supports @command{unset}, you may unset
@samp{CDPATH} using @samp{:} as a fallback, see
@ref{Limitations of Builtins}.
@item IFS
@evindex IFS
Don't set the first character of @code{IFS} to backslash. Indeed,
Bourne shells use the first character (backslash) when joining the
components in @samp{"$@"} and some shells then re-interpret (!) the
backslash escapes, so you can end up with backspace and other strange
characters.
@item LANG
@itemx LC_ALL
@itemx LC_TIME

View File

@ -352,13 +352,17 @@ $as_ln_s $1 $2
# AS_MKDIR_P(PATH)
# ----------------
# Emulate `mkdir -p' with plain `mkdir'.
#
# Don't set IFS to '\\/' (see the doc): you would end up with
# directories called foo\bar and foo?az and others depending upon the
# shell.
m4_define([AS_MKDIR_P],
[{ case $1 in
[[\\/]]* | ?:[[\\/]]* ) as_incr_dir=;;
*) as_incr_dir=.;;
esac
as_dummy=$1
for as_mkdir_dir in `IFS='\\/'; set X $as_dummy; shift; echo "$[@]"`; do
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$[@]"`; do
case $as_mkdir_dir in
# Skip DOS drivespec
?:) as_incr_dir=$as_mkdir_dir ;;
@ -383,9 +387,9 @@ cat >conftest.file <<_ASEOF
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file; then
if test -x conftest.file >/dev/null 2>&1; then
as_executable_p="test -x"
elif test -f conftest.file; then
elif test -f conftest.file >/dev/null 2>&1; then
as_executable_p="test -f"
else
AS_ERROR([cannot check whether a file is executable on this system])

10
m4sh.m4
View File

@ -352,13 +352,17 @@ $as_ln_s $1 $2
# AS_MKDIR_P(PATH)
# ----------------
# Emulate `mkdir -p' with plain `mkdir'.
#
# Don't set IFS to '\\/' (see the doc): you would end up with
# directories called foo\bar and foo?az and others depending upon the
# shell.
m4_define([AS_MKDIR_P],
[{ case $1 in
[[\\/]]* | ?:[[\\/]]* ) as_incr_dir=;;
*) as_incr_dir=.;;
esac
as_dummy=$1
for as_mkdir_dir in `IFS='\\/'; set X $as_dummy; shift; echo "$[@]"`; do
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$[@]"`; do
case $as_mkdir_dir in
# Skip DOS drivespec
?:) as_incr_dir=$as_mkdir_dir ;;
@ -383,9 +387,9 @@ cat >conftest.file <<_ASEOF
exit 0
_ASEOF
chmod +x conftest.file
if test -x conftest.file; then
if test -x conftest.file >/dev/null 2>&1; then
as_executable_p="test -x"
elif test -f conftest.file; then
elif test -f conftest.file >/dev/null 2>&1; then
as_executable_p="test -f"
else
AS_ERROR([cannot check whether a file is executable on this system])

View File

@ -86,7 +86,7 @@ CLEANFILES = debug-*.sh macro configure configure.in configure.ac c
DISTCLEANFILES = atconfig testsuite
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES = atconfig
DIST_COMMON = README Makefile.am Makefile.in atconfig.in configure
DIST_COMMON = README Makefile.am Makefile.in atconfig.in
PACKAGE = @PACKAGE@