httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soc-r...@apache.org
Subject svn commit: r290246 - /httpd/mod_smtpd/trunk/configure.ac
Date Mon, 19 Sep 2005 19:29:09 GMT
Author: soc-rian
Date: Mon Sep 19 12:29:08 2005
New Revision: 290246

URL: http://svn.apache.org/viewcvs?rev=290246&view=rev
Log:
Bad logic in checking if string or directory existed.

Modified:
    httpd/mod_smtpd/trunk/configure.ac

Modified: httpd/mod_smtpd/trunk/configure.ac
URL: http://svn.apache.org/viewcvs/httpd/mod_smtpd/trunk/configure.ac?rev=290246&r1=290245&r2=290246&view=diff
==============================================================================
--- httpd/mod_smtpd/trunk/configure.ac (original)
+++ httpd/mod_smtpd/trunk/configure.ac Mon Sep 19 12:29:08 2005
@@ -28,20 +28,18 @@
 AC_DEFUN([CHECK_APREQ2],[dnl
 	AC_ARG_WITH(
 		libapreq2,
-		[  --with-libapreq2[=PATH_TO_LIBAPREQ2]     APREQ2 LIB LOCATION],
-		APREQ2_LOC="$withval",
+		[  --with-libapreq2[=PATH_TO_LIBAPREQ2]   APREQ2 LIB LOCATION],
+		APREQ2_LOC="$withval"
 	)
 
 	AC_MSG_CHECKING(for libapreq2)
-	
-	if test ! -s $APREQ2_LOC; then
-                APREQ2_LOC=`$APXS_BIN -q LIBDIR`
-        fi
+
+        test ! -d "$APREQ2_LOC" && APREQ2_LOC=`$APXS_BIN -q LIBDIR`
 
         if ld -L${APREQ2_LOC} -lapreq2 &&
-           test -d ${APREQ2_LOC}/../include/apreq2; then
-                APREQ2_LIBDIR="-L${APREQ2_LOC}"
-                APREQ2_INCLUDEDIR="-I${APREQ2_LOC}/../include"          
+           test -d "${APREQ2_LOC}/../include/apreq2"; then
+                APREQ2_LIBDIR="-L'${APREQ2_LOC}'"
+                APREQ2_INCLUDEDIR="-I'${APREQ2_LOC}/../include'"
                 AC_MSG_RESULT(yes)
         else
         	AC_MSG_RESULT(no)



Mime
View raw message