httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soc-r...@apache.org
Subject svn commit: r265535 - /httpd/mod_smtpd/trunk/configure.ac
Date Wed, 31 Aug 2005 17:13:19 GMT
Author: soc-rian
Date: Wed Aug 31 10:13:17 2005
New Revision: 265535

URL: http://svn.apache.org/viewcvs?rev=265535&view=rev
Log:
fixed configure.ac to only call dirname if we don't have an empty with-apxs string

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=265535&r1=265534&r2=265535&view=diff
==============================================================================
--- httpd/mod_smtpd/trunk/configure.ac (original)
+++ httpd/mod_smtpd/trunk/configure.ac Wed Aug 31 10:13:17 2005
@@ -33,11 +33,15 @@
 		[  --with-apxs[=PATH_TO_APXS]     APXS Location],
 		apxs_prefix="$withval",
 	)
-
-	if test -d $apxs_prefix; then
-	        apxs_prefix=`dirname $apxs_prefix`
-
-                test_paths="$apxs_prefix:$apxs_prefix/bin:$apxs_prefix/sbin"
+        
+        # if with-apxs is a directory or its empty
+        # search for it
+	if test -d $apxs_prefix || test ! $apxs_prefix; then
+                if test $apxs_prefix; then 
+                        apxs_prefix=`dirname $apxs_prefix`
+                        test_paths="$apxs_prefix:$apxs_prefix/bin"
+                        test_paths="${test_paths}:$apxs_prefix/sbin"
+                fi      
                 test_paths="${test_paths}:${PATH}:/usr/bin:/usr/sbin"
                 test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin:/usr/local/apache2/bin"
         	AC_PATH_PROG(APXS_BIN, apxs, no, [$test_paths])



Mime
View raw message