httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r836253 - /httpd/mod_fcgid/trunk/configure.apxs
Date Sat, 14 Nov 2009 19:58:31 GMT
Author: trawick
Date: Sat Nov 14 19:58:31 2009
New Revision: 836253

URL: http://svn.apache.org/viewvc?rev=836253&view=rev
Log:
use httpd's (AC_PROG_AWK) choice of awk instead of choosing one here

/usr/xpg4/bin/awk isn't part of httpd's selection, but it isn't 
needed with current awk language use

allow override with AWK envvar

hint by wrowe, research by rjung

PR: 48067

Modified:
    httpd/mod_fcgid/trunk/configure.apxs

Modified: httpd/mod_fcgid/trunk/configure.apxs
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/configure.apxs?rev=836253&r1=836252&r2=836253&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/configure.apxs (original)
+++ httpd/mod_fcgid/trunk/configure.apxs Sat Nov 14 19:58:31 2009
@@ -40,17 +40,8 @@
 rel_logfiledir=`$APXS -q exp_logfiledir | sed -e "s#^$rel_fix_prefix/##;"`
 httpd_conffile=`$APXS -q exp_sysconfdir`/`$APXS -q progname`.conf
 
-echo "Selecting a suitable awk"
-# find the most suitable awk, allowing user to override with AWK
-for a in gawk mawk /usr/xpg4/bin/awk nawk; do
-    if test -z "$AWK"; then
-        if $a '{print}' <$0 >/dev/null 2>&1; then
-            AWK=$a
-        fi
-    fi
-done
 if test -z "$AWK"; then
-    AWK=awk
+    AWK=`$APXS -q AWK`
 fi
 
 for i in Makefile build/Makefile modules/fcgid/Makefile modules/fcgid/modules.mk; do



Mime
View raw message