`test'.
Fixes Autoconf/108.
+2000-05-11 Akim Demaille <akim@epita.fr>
+
+ * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Less adventurous use of
+ `test'.
+ Fixes Autoconf/108.
+
2000-05-11 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Particular Headers): Some more sorting.
FLIBS=
# If we are using xlf then replace all the commas with spaces.
-if test `echo $ac_link_output | grep xlfentry >/dev/null 2>&1`; then
+if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then
ac_link_output=`echo $ac_link_output | sed 's/,/ /g'`
fi
# reset AC_PREVIOUS_ARG so that we don't try and process AC_ARG as
# an argument.
ac_previous_arg=$ac_save_arg
- test -n "`echo $ac_arg | sed -n -e '/^-/!p'`" && ac_previous_arg=
+ echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
case "$ac_previous_arg" in
'')
case "$ac_arg" in
esac
# If "ac_arg" has survived up until this point, then put it in FLIBS.
- test -n "$ac_arg" && FLIBS="$FLIBS $ac_arg"
+ test "x$ac_arg" != x && FLIBS="$FLIBS $ac_arg"
done
# Assumption: We only see "LD_RUN_PATH" on Solaris systems. If this
# path (i.e. it must begin with a "/").
ac_ld_run_path=`echo $ac_link_output |
sed -n -e 's%^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$%\1%p'`
-test -n "$ac_ld_run_path" && FLIBS="$ac_ld_run_path $FLIBS"
+test "x$ac_ld_run_path" != x && FLIBS="$ac_ld_run_path $FLIBS"
ac_cv_flibs=$FLIBS
])
FLIBS=
# If we are using xlf then replace all the commas with spaces.
-if test `echo $ac_link_output | grep xlfentry >/dev/null 2>&1`; then
+if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then
ac_link_output=`echo $ac_link_output | sed 's/,/ /g'`
fi
# reset AC_PREVIOUS_ARG so that we don't try and process AC_ARG as
# an argument.
ac_previous_arg=$ac_save_arg
- test -n "`echo $ac_arg | sed -n -e '/^-/!p'`" && ac_previous_arg=
+ echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
case "$ac_previous_arg" in
'')
case "$ac_arg" in
esac
# If "ac_arg" has survived up until this point, then put it in FLIBS.
- test -n "$ac_arg" && FLIBS="$FLIBS $ac_arg"
+ test "x$ac_arg" != x && FLIBS="$FLIBS $ac_arg"
done
# Assumption: We only see "LD_RUN_PATH" on Solaris systems. If this
# path (i.e. it must begin with a "/").
ac_ld_run_path=`echo $ac_link_output |
sed -n -e 's%^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$%\1%p'`
-test -n "$ac_ld_run_path" && FLIBS="$ac_ld_run_path $FLIBS"
+test "x$ac_ld_run_path" != x && FLIBS="$ac_ld_run_path $FLIBS"
ac_cv_flibs=$FLIBS
])
FLIBS=
# If we are using xlf then replace all the commas with spaces.
-if test `echo $ac_link_output | grep xlfentry >/dev/null 2>&1`; then
+if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then
ac_link_output=`echo $ac_link_output | sed 's/,/ /g'`
fi
# reset AC_PREVIOUS_ARG so that we don't try and process AC_ARG as
# an argument.
ac_previous_arg=$ac_save_arg
- test -n "`echo $ac_arg | sed -n -e '/^-/!p'`" && ac_previous_arg=
+ echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
case "$ac_previous_arg" in
'')
case "$ac_arg" in
esac
# If "ac_arg" has survived up until this point, then put it in FLIBS.
- test -n "$ac_arg" && FLIBS="$FLIBS $ac_arg"
+ test "x$ac_arg" != x && FLIBS="$FLIBS $ac_arg"
done
# Assumption: We only see "LD_RUN_PATH" on Solaris systems. If this
# path (i.e. it must begin with a "/").
ac_ld_run_path=`echo $ac_link_output |
sed -n -e 's%^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$%\1%p'`
-test -n "$ac_ld_run_path" && FLIBS="$ac_ld_run_path $FLIBS"
+test "x$ac_ld_run_path" != x && FLIBS="$ac_ld_run_path $FLIBS"
ac_cv_flibs=$FLIBS
])
FLIBS=
# If we are using xlf then replace all the commas with spaces.
-if test `echo $ac_link_output | grep xlfentry >/dev/null 2>&1`; then
+if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then
ac_link_output=`echo $ac_link_output | sed 's/,/ /g'`
fi
# reset AC_PREVIOUS_ARG so that we don't try and process AC_ARG as
# an argument.
ac_previous_arg=$ac_save_arg
- test -n "`echo $ac_arg | sed -n -e '/^-/!p'`" && ac_previous_arg=
+ echo $ac_arg | grep '^[^-]' >/dev/null 2>&1 && ac_previous_arg=
case "$ac_previous_arg" in
'')
case "$ac_arg" in
esac
# If "ac_arg" has survived up until this point, then put it in FLIBS.
- test -n "$ac_arg" && FLIBS="$FLIBS $ac_arg"
+ test "x$ac_arg" != x && FLIBS="$FLIBS $ac_arg"
done
# Assumption: We only see "LD_RUN_PATH" on Solaris systems. If this
# path (i.e. it must begin with a "/").
ac_ld_run_path=`echo $ac_link_output |
sed -n -e 's%^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$%\1%p'`
-test -n "$ac_ld_run_path" && FLIBS="$ac_ld_run_path $FLIBS"
+test "x$ac_ld_run_path" != x && FLIBS="$ac_ld_run_path $FLIBS"
ac_cv_flibs=$FLIBS
])