# We heavily use m4's diversions both for the initializations and for
-# required macros (see m4_require), because in both cases we have to
-# issue high in `configure' something which is discovered late.
+# required macros, because in both cases we have to issue soon in
+# output something which is discovered late.
+#
#
# KILL is only used to suppress output.
#
# Try to unset the env VAR, otherwise set it to
# VALUE-IF-UNSET-NOT-SUPPORTED. `as_unset' must have been computed.
m4_defun([AS_UNSET],
-[m4_require([_AS_UNSET_PREPARE])dnl
+[AS_REQUIRE([_AS_UNSET_PREPARE])dnl
$as_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }])
m4_defun([AS_BASENAME],
[AS_BASENAME_SED([$1])])
+
# AS_EXECUTABLE_P
# ---------------
# Check whether a file is executable.
m4_defun([AS_EXECUTABLE_P],
-[m4_require([_AS_TEST_PREPARE])dnl
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
$as_executable_p $1[]dnl
])# AS_EXECUTABLE_P
# _AS_PATH_SEPARATOR_PREPARE
# --------------------------
# Compute the path separator.
-m4_define([_AS_PATH_SEPARATOR_PREPARE],
+m4_defun([_AS_PATH_SEPARATOR_PREPARE],
[# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! $SHELL" >conftest.sh
# expansions, not every word. This closes a longstanding sh security
# hole. Optimize it away when not needed.
m4_define([_AS_PATH_WALK],
-[as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+[AS_REQUIRE([_AS_PATH_SEPARATOR_PREPARE])dnl
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
AS_LITERAL_IF([m4_default([$1], [$PATH])],
[as_dummy="$1"
for as_dir in $as_dummy],
# FIXME: Should we add the glue code to handle properly relative symlinks
# simulated with `ln' or `cp'?
m4_defun([AS_LN_S],
-[m4_require([_AS_LN_S_PREPARE])dnl
+[AS_REQUIRE([_AS_LN_S_PREPARE])dnl
$as_ln_s $1 $2
])
# _AS_TR_SH_PREPARE
# -----------------
m4_defun([_AS_TR_SH_PREPARE],
-[m4_require([_AS_CR_PREPARE])dnl
+[AS_REQUIRE([_AS_CR_PREPARE])dnl
# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[[^_$as_cr_alnum]]%_%g"
])
# sh/m4 polymorphic.
# Be sure to update the definition of `$as_tr_sh' if you change this.
m4_defun([AS_TR_SH],
-[m4_require([_$0_PREPARE])dnl
+[AS_REQUIRE([_$0_PREPARE])dnl
AS_LITERAL_IF([$1],
[m4_patsubst(m4_translit([[$1]], [*+], [pp]),
[[^a-zA-Z0-9_]], [_])],
# _AS_TR_CPP_PREPARE
# ------------------
m4_defun([_AS_TR_CPP_PREPARE],
-[m4_require([_AS_CR_PREPARE])dnl
+[AS_REQUIRE([_AS_CR_PREPARE])dnl
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[[^_$as_cr_alnum]]%_%g"
])
# `#define'. sh/m4 polymorphic. Be sure to update the definition
# of `$as_tr_cpp' if you change this.
m4_defun([AS_TR_CPP],
-[m4_require([_$0_PREPARE])dnl
+[AS_REQUIRE([_$0_PREPARE])dnl
AS_LITERAL_IF([$1],
[m4_patsubst(m4_translit([[$1]],
[*abcdefghijklmnopqrstuvwxyz],
# _AS_TR_PREPARE
# --------------
m4_defun([_AS_TR_PREPARE],
-[m4_require([_AS_TR_SH_PREPARE])dnl
-m4_require([_AS_TR_CPP_PREPARE])dnl
+[AS_REQUIRE([_AS_TR_SH_PREPARE])dnl
+AS_REQUIRE([_AS_TR_CPP_PREPARE])dnl
])