>Number: 1750
>Category: general
>Synopsis: Configure encourages changes, but I can't find a suitable
>place to send them.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Sat Jan 31 10:50:00 PST 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.5
>Environment:
OSF1 kap995.kao.dec.com V4.0 564 alpha alpha (that's v4.0B, no patches)
Details of environment aren't really relevant.
>Description:
Configure doesn't give help, and doesn't allow you to specify which compiler
to use.
Not a bug, but searching through src/* and this site failed to yield
an address like "[EMAIL PROTECTED]".
>How-To-Repeat:
As above.
>Fix:
This adds "-cc" and "-help" (and "-h" and "--help", etc.).
cheers,
mike
--- Configure Thu Aug 21 18:56:20 1997
+++ Configure.new Sat Jan 31 12:56:00 1998
@@ -17,6 +17,7 @@
file=Configuration
tmpfile=htconf.$$
makefile_tmpl=Makefile.tmpl
+cc=gcc
while [ "x$1" != "x" ]; do
if [ "x$1" = "x-file" ] ; then
@@ -31,6 +32,16 @@
echo "$makefile_tmpl does not exist or is not readable."
exit 1
fi
+ elif [ "$1" = "-cc" ] ; then
+ shift 1 ; cc=$1 ; shift 1
+ if (./helpers/PrintPath -s "$cc" ); then : ; else
+ echo "Compiler \`$cc' not found in \$PATH"
+ exit 1
+ fi
+ elif [ `echo "$1" | sed 's/^--*[Hh].*/-help/` = "-help" ] ; then
+ shift 1 ;
+ echo "Usage: $0 [-cc COMPILER] [-make TEMPLATE] [-file CONFIGFILE]"
+ exit 1
else
echo "Ignoring command line option '$1'"
shift 1
@@ -174,7 +185,7 @@
# do this early because some options may depend
# on which compiler we use/find
#
-for compilers in "gcc" "cc" "acc" "c89"
+for compilers in "$cc" "cc" "acc" "c89"
do
lookedfor="$lookedfor $compilers"
if ./helpers/PrintPath -s $compilers; then
%0
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]