apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olli hauer <oha...@gmx.de>
Subject apu-util DBD back-ends
Date Wed, 15 Aug 2012 21:03:41 GMT
Is there a way to find out if apu-util has support for different DBD
backends like pgsql / sqlite3 / mysql ...

I could test if apr_dbd_$dbtype exist, but this looks like a dirty hack for me.
I'm thinking more about an extension for apr-1-config for example

--- ./apu-config.in.orig
+++ ./apu-config.in
@@ -32,6 +32,9 @@
 LDFLAGS="@APRUTIL_LDFLAGS@"
 LDAP_LIBS="@LDADD_ldap@"
 DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@"
+DBD_LIBS="@LDADD_dbd_pgsql@ @LDADD_dbd_mysql@ @LDADD_dbd_sqlite2@ \
+       @LDADD_dbd_sqlite3@ @LDADD_dbd_odbc@ @LDADD_dbd_freetds@ \
+       @LDADD_dbd_oracle@"

 APRUTIL_LIBNAME="@APRUTIL_LIBNAME@"

@@ -130,6 +133,9 @@
     --dbm-libs)
     flags="$flags $DBM_LIBS"
     ;;
+    --dbd-libs)
+    flags="$flags $DBD_LIBS"
+    ;;
     --includedir)
     if test "$location" = "installed"; then
         flags="$includedir"


Additional is there a way to build apr-util with db185 support which is included
into FreeBSD's libc?  Issue LDFLAGS are always trying to construct a path like
-L/$path/lib$db and then the exist test fails.

--
Regards,
olli

Mime
View raw message