From: Ryan Bloom Date: Sun, 26 Aug 2001 16:28:19 +0000 (+0000) Subject: More fixes for APXS. APXS now works with httpd-test again X-Git-Tag: 2.0.25~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64caca8c5a5d591ff002c7ed62f8c7b4f4416b8b;p=apache More fixes for APXS. APXS now works with httpd-test again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90697 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apxs.in b/support/apxs.in index 40299ef357..0315be4933 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -72,6 +72,8 @@ my $CFG_INCLUDEDIR = eval qq("$includedir"); my $CFG_CC = get_vars("CC"); my $libexecdir = get_vars("libexecdir"); my $CFG_LIBEXECDIR = eval qq("$libexecdir"); +my $bindir = get_vars("bindir"); +my $CFG_SBINDIR = eval qq("$bindir"); ## ## parse argument line @@ -249,8 +251,20 @@ sub get_vars { } } if (not $ok) { - printf(STDERR "apxs:Error: Invalid query string `%s'\n", $arg); - exit(1); + foreach $name (qw( + TARGET CC CFLAGS CFLAGS_SHLIB LD_SHLIB LDFLAGS_SHLIB LIBS_SHLIB + PREFIX SBINDIR INCLUDEDIR LIBEXECDIR SYSCONFDIR + )) { + if ($arg eq $name or $arg eq lc($name)) { + my $val = eval "\$CFG_$name"; + $result .= eval qq("${val}") . ";;"; + $ok = 1; + } + } + if (not $ok) { + printf(STDERR "apxs:Error: Invalid query string `%s'\n", $arg); + exit(1); + } } } $result =~ s|;;$||; @@ -320,7 +334,7 @@ if ($opt_q) { ## QUERY INFORMATION ## my $result = get_vars(@args); - print "$result\n"; + print "$result"; } if ($opt_c) {