Mercurial > emacs
comparison admin/quick-install-emacs @ 103030:f4ab9c8bed3f
admin/quick-install-emacs: Update get_config_var for autoconf 2.62
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 21 Apr 2009 00:39:00 +0000 |
parents | 467e43a5edd5 |
children | 1d1d5d9bd884 |
comparison
equal
deleted
inserted
replaced
103029:f527ebb927b8 | 103030:f4ab9c8bed3f |
---|---|
157 fi | 157 fi |
158 | 158 |
159 CONFIG_STATUS="$BUILD/config.status" | 159 CONFIG_STATUS="$BUILD/config.status" |
160 get_config_var () | 160 get_config_var () |
161 { | 161 { |
162 if ! sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep '' | 162 { sed -n "s/^S[[]\"$1\"[]]=\"\([^\"]*\)\"/\1/p" $CONFIG_STATUS | sed q | grep ''; } || |
163 then | 163 { sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''; } || |
164 { | |
164 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" | 165 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" |
165 exit 4 | 166 exit 4 |
166 fi | 167 } |
167 } | 168 } |
168 | 169 |
169 test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; } | 170 test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; } |
170 test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; } | 171 test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; } |
171 test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; } | 172 test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; } |