]> git.eshelyaron.com Git - emacs.git/commitdiff
admin/quick-install-emacs: Update get_config_var for autoconf 2.62
authorMiles Bader <miles@gnu.org>
Tue, 21 Apr 2009 00:39:00 +0000 (00:39 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 21 Apr 2009 00:39:00 +0000 (00:39 +0000)
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585

admin/quick-install-emacs

index 2b52a864aecfb4df9c87e0fd88e3460adba00958..88f57b65e80e7dd60352758641ebd779a62b65aa 100755 (executable)
@@ -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 ; }