aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-04-08 22:36:24 -0400
committerJacob Bachmeyer <jcb@gnu.org>2021-04-08 22:36:24 -0400
commit2ca7d52dfa1726aadd1363e399d9b41429332017 (patch)
treef2a4535c8a4ac3af18ec077bfeed7cae24f15558 /configure
parentc6d9e1e2b1a5abaa88a6ec46bc76ea7e752a1b36 (diff)
downloaddejagnu-2ca7d52dfa1726aadd1363e399d9b41429332017.zip
dejagnu-2ca7d52dfa1726aadd1363e399d9b41429332017.tar.gz
dejagnu-2ca7d52dfa1726aadd1363e399d9b41429332017.tar.bz2
Regenerate build system files
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure b/configure
index 7b3c48d..a23f414 100755
--- a/configure
+++ b/configure
@@ -3977,11 +3977,23 @@ if test -z "$AWK"; then
as_fn_error $? "AWK not installed" "$LINENO" 5
fi
+# Provide an empty global site file (/dev/null) as default.
if test x"$DEJAGNU" = x
then
DEJAGNU="/dev/null"
fi
+# Makefile.am arranges for DEJAGNU to be exported in the environment.
+
+# Patch interpreter lines in config.* scripts to reference CONFIG_SHELL.
+# Normally configure ensures that these scripts are run using CONFIG_SHELL
+# and their interpreter lines are ignored, but DejaGnu also installs
+# config.guess and the framework invokes it at runtime.
+if test x"$SHELL" != x/bin/sh
+then
+ ac_config_commands="$ac_config_commands scriptpatch"
+
+fi
ac_config_files="$ac_config_files Makefile"
@@ -4727,6 +4739,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+SHELL=$SHELL
_ACEOF
@@ -4737,6 +4750,7 @@ for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "scriptpatch") CONFIG_COMMANDS="$CONFIG_COMMANDS scriptpatch" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
@@ -5260,6 +5274,18 @@ $as_echo X"$file" |
done
}
;;
+ "scriptpatch":C)
+ for file in config.guess config.sub
+ do
+ f=${ac_srcdir}/${file}
+ sed -e '1s,^#!.*$,#! '"${SHELL}", $f > ${f}.new
+ if test `awk 'END {print NR}' $f` != `awk 'END {print NR}' ${f}.new`
+ then
+ as_fn_error $? "patching script for local shell changed line count!" "$LINENO" 5
+ fi
+ mv -f ${f}.new $f
+ done
+ ;;
esac
done # for ac_tag