jim 98/10/19 16:58:28
Modified:src Configure
Log:
Some changes to conserve/maintain some coding consistancy. Always quote
strings and use 'x' as first preference when performing empty string
hack.
Revision ChangesPath
1.300 +29 -29apache-1.3/src/Configure
Index: Configure
===
RCS file: /export/home/cvs/apache-1.3/src/Configure,v
retrieving revision 1.299
retrieving revision 1.300
diff -u -r1.299 -r1.300
--- Configure 1998/10/07 10:18:16 1.299
+++ Configure 1998/10/19 23:58:26 1.300
@@ -158,7 +158,7 @@
using_shlib=`grep '^SharedModule' $tmpfile /dev/null echo 1`
# But perhaps later via apxs when just mod_so is compiled in!
-if [ .$using_shlib = . ]; then
+if [ x$using_shlib = x ]; then
using_shlib=`grep '^AddModule modules/standard/mod_so.o' $tmpfile
/dev/null echo 1`
fi
@@ -811,12 +811,12 @@
## Now check how we can _directly_ run the C pre-processor
##
TCPP=`egrep '^CPP=' Makefile.config | tail -1 | awk -F= '{print $2}'`
-if [ .$TCPP != . ]; then
+if [ x$TCPP != x ]; then
CPP=`CC=$CC CPP=$TCPP ./helpers/findcpp.sh`
else
CPP=`CC=$CC ./helpers/findcpp.sh`
fi
-if [ .$TCPP = . ]; then
+if [ x$TCPP = x ]; then
echo CPP=$CPP Makefile.config
fi
echo + setting C pre-processor to $CPP
@@ -1110,9 +1110,9 @@
break
fi
done
-if [ .$PERL != . ]; then
+if [ x$PERL != x ]; then
# cool, Perl is installed on this platform...
-if [ .`$PERL -V:dlsrc 2/dev/null | grep dlopen` != . ];
then
+if [ x`$PERL -V:dlsrc 2/dev/null | grep dlopen` != x ];
then
# ...and actually uses the dlopen-style interface,
# so we can guess the flags from its knowledge
CFLAGS_SHLIB=`$PERL -V:cccdlflags | cut -d\' -f2`
@@ -1144,8 +1144,8 @@
## the shared objects if SharedModule was used.
##
if [ x$using_shlib = x1 ] ; then
-if [ x$TCFLAGS_SHLIB = x -a x$CFLAGS_SHLIB = x -a \
- x$TLDFLAGS_SHLIB = x -a x$LDFLAGS_SHLIB = x ]; then
+if [ x$TCFLAGS_SHLIB = x -a x$CFLAGS_SHLIB = x -a \
+ x$TLDFLAGS_SHLIB = x -a x$LDFLAGS_SHLIB = x ]; then
echo
echo ** FAILURE: Sorry, no shared object support available.
echo ** Either compile all modules statically (use AddModule
instead
@@ -1232,8 +1232,8 @@
## OK, now handle RANLIB
##
-if [ .$RANLIB = . ]; then
-if [ .$TRANLIB != . ]; then
+if [ x$RANLIB = x ]; then
+if [ x$TRANLIB != x ]; then
RANLIB=$TRANLIB
else
if ./helpers/PrintPath -s ranlib; then
@@ -1278,7 +1278,7 @@
CFLAGS=$CFLAGS -DSOCKS -DSOCKS4
CFLAGS=$CFLAGS -Dconnect=Rconnect -Dselect=Rselect
CFLAGS=$CFLAGS -Dgethostbyname=Rgethostbyname
-if [ .`grep EXTRA_ Makefile | grep lsocks` = . ]; then
+if [ x`grep EXTRA_ Makefile | grep lsocks` = x ]; then
LIBS=$LIBS -L/usr/local/lib -lsocks
fi
case $PLAT in
@@ -1297,7 +1297,7 @@
CFLAGS=$CFLAGS -DSOCKS -DSOCKS5
CFLAGS=$CFLAGS -Dconnect=SOCKSconnect -Dselect=SOCKSselect
CFLAGS=$CFLAGS -Dgethostbyname=SOCKSgethostbyname -Dclose=SOCKSclose
-if [ .`grep EXTRA_ Makefile | grep lsocks5` = . ]; then
+if [ x`grep EXTRA_ Makefile | grep lsocks5` = x ]; then
LIBS=$LIBS -L/usr/local/lib -lsocks5
fi
case $PLAT in
@@ -1404,9 +1404,9 @@
ext=`echo $modfile | sed 's/^.*\.//'`
modbase=`echo $modfile | sed 's/\.[^.]*$//'`
- if [ x$ext = x$modfile ]; then ext=o; modbase=$modfile;
modfile=$modbase.o; fi
- if [ x$ext = x ] ; then ext=o; modbase=$modfile; fi
- if [ x$ext = xc ] ; then ext=o; fi
+ if [ x$ext = x$modfile ]; then ext=o; modbase=$modfile;
modfile=$modbase.o; fi
+ if [ x$ext = x ] ; then ext=o; modbase=$modfile; fi
+ if [ x$ext = xc ] ; then ext=o; fi
# modbase is the path+filename without extension, ext is the
# extension given, or if none, o
@@ -1441,7 +1441,7 @@
. ./$tmpfile3
fi
rm -f $tmpfile2 $tmpfile3
- if [ $ext != so ]; then
+ if [ $ext != so ]; then
ext=o
fi
fi
@@ -1449,11 +1449,11 @@
modname=`echo $modbase | sed 's/^.*\///' | \
sed 's/^mod_//' | sed 's/^lib//' | sed 's/$/_module/'`
fi
- if [ $ext != so ]; then
+ if [ $ext != so ]; then
echo Module $modname $modbase.$ext $tmpfile
fi
# optionally generate export file for some linkers
- if [ $ext = so -a