diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-05-03 00:11:19 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-05-03 00:11:19 +0200 |
commit | 6c2c40975d0b37f5edcfe92409e343003cc1db49 (patch) | |
tree | 59cbb3be6ec6fcfb71e677f2b721ad6e9f0a8427 /config.guess | |
parent | b341479e487240ecd2aff4f5ac1d036b4799c342 (diff) | |
download | gmp-6c2c40975d0b37f5edcfe92409e343003cc1db49.tar.gz |
* config.guess: Amend fake RANDOM to avoid ". configfsf.guess" which
segfaults on Debian "ash" 0.4.16.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/config.guess b/config.guess index c8bc67cb2..4f7eef8bc 100755 --- a/config.guess +++ b/config.guess @@ -59,11 +59,6 @@ fi # A fake $RANDOM is established, if not already available, so that # configfsf.guess will work on m68k NetBSD 1.4.1. # -# FIXME: configfsf.guess ought to make its own arrangements for this system. -# Certainly it's old, but doesn't seem completely dead. If/when this -# happens our configfsf.guess invocation here would revert to just `$SHELL -# $configfsf_guess`. -# # The problem is that when configfsf.guess wants to run the compiler to # probe the system, it creates a directory under /tmp (so as not to make a # mess in the current directory), and it attempts to do this securely (in @@ -71,7 +66,17 @@ fi # "mktemp" program or a "$RANDOM" shell variable, neither of which is # available in an m68k NetBSD 1.4.1 base system. # -guess_full=`$SHELL -c 'if test -z "$RANDOM"; then RANDOM=12345; fi; . '"$configfsf_guess"` +# The availablility of RANDOM is checked in $SHELL, since it's at least +# possible we're executing in some other shell. +# +# Debian "ash" 0.4.16 segfaults when ". $configfsf_guess" uses $0, so +# instead RANDOM is exported and $configfsf_guess run from scratch. +# +# FIXME: configfsf.guess ought to make its own arrangements for NetBSD 1.4. +# Certainly it's old, but doesn't seem completely dead. If/when this +# happens then only guess_full=`$SHELL $configfsf_guess` will be needed. +# +guess_full=`$SHELL -c 'if test -z "$RANDOM"; then RANDOM=12345; export RANDOM; fi; '"exec $SHELL $configfsf_guess"` if test $? != 0; then exit 1 fi |