apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1100848 - /apr/apr/trunk/build/dbd.m4
Date Mon, 09 May 2011 00:33:27 GMT
Author: covener
Date: Mon May  9 00:33:27 2011
New Revision: 1100848

URL: http://svn.apache.org/viewvc?rev=1100848&view=rev
Log:
PR51071: check the --with-odbc arg to see if it's an executable file
(odbc_config itself) before defaulting to using it as a prefix for 
libs/includes.  

Required for getting the right architecture odbc
on AIX packaging, which share a prefix.


Modified:
    apr/apr/trunk/build/dbd.m4

Modified: apr/apr/trunk/build/dbd.m4
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/dbd.m4?rev=1100848&r1=1100847&r2=1100848&view=diff
==============================================================================
--- apr/apr/trunk/build/dbd.m4 (original)
+++ apr/apr/trunk/build/dbd.m4 Mon May  9 00:33:27 2011
@@ -504,8 +504,14 @@ AC_DEFUN([APU_CHECK_DBD_ODBC], [
         odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`"
         odbc_LIBS="`$ODBC_CONFIG --libs`"
       else
-        odbc_CPPFLAGS="-I$withval/include"
-        odbc_LDFLAGS="-L$withval/lib "
+        if test -f "$withval" && test -x "$withval"; then 
+          odbc_CPPFLAGS="-I`$withval --include-prefix`"
+          odbc_LDFLAGS="-L`$withval --lib-prefix`"
+          odbc_LIBS="`$withval --libs`"
+        else
+          odbc_CPPFLAGS="-I$withval/include"
+          odbc_LDFLAGS="-L$withval/lib "
+        fi
       fi
 
       APR_ADDTO(CPPFLAGS, [$odbc_CPPFLAGS])



Mime
View raw message