summaryrefslogtreecommitdiff
path: root/admin/quick-install-emacs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2009-04-21 00:39:00 +0000
committerMiles Bader <miles@gnu.org>2009-04-21 00:39:00 +0000
commitd94c90b9a6db6b0da2b646e3db08c002f61194a2 (patch)
tree261217c2eb6ef3cf4f0016f2cd3c6cbc7233de66 /admin/quick-install-emacs
parentf67cf06438f78b6e20be4020fe9faf3c3545c412 (diff)
downloademacs-d94c90b9a6db6b0da2b646e3db08c002f61194a2.tar.gz
admin/quick-install-emacs: Update get_config_var for autoconf 2.62
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585
Diffstat (limited to 'admin/quick-install-emacs')
-rwxr-xr-xadmin/quick-install-emacs7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs
index 2b52a864aec..88f57b65e80 100755
--- a/admin/quick-install-emacs
+++ b/admin/quick-install-emacs
@@ -159,11 +159,12 @@ fi
CONFIG_STATUS="$BUILD/config.status"
get_config_var ()
{
- if ! sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''
- then
+ { sed -n "s/^S[[]\"$1\"[]]=\"\([^\"]*\)\"/\1/p" $CONFIG_STATUS | sed q | grep ''; } ||
+ { sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''; } ||
+ {
echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS"
exit 4
- fi
+ }
}
test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }