]> git.sur5r.net Git - bacula/bacula/commitdiff
fix #1595 about batch mode detection problem for postgresql with non standard install dir
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 18 Jun 2010 08:18:12 +0000 (10:18 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 18 Jun 2010 14:01:49 +0000 (16:01 +0200)
bacula/autoconf/configure.in

index cba5c7344e6abe9b50b4fc92d02964a5976bf21b..64fbd64eb4790e9a318fae905eb4b684c562973d 100644 (file)
@@ -1751,8 +1751,12 @@ if test $pkg = 0; then
       ]
    )
 fi
+
+dnl For postgresql checking
+saved_LIBS="${LIBS}"
+LIBS="${saved_LIBS} ${SQL_LFLAGS}"
    
-dnl Check if postgresql can support batch mode  
+dnl Check if postgresql can support batch mode
 if test x$DB_TYPE = xpostgresql; then
    AC_CHECK_LIB(pq, PQisthreadsafe, AC_DEFINE(HAVE_PQISTHREADSAFE, 1, [Set if have PQisthreadsafe]))
    AC_CHECK_LIB(pq, PQputCopyData, AC_DEFINE(HAVE_PQ_COPY, 1, [Set if have PQputCopyData]))
@@ -1802,6 +1806,9 @@ else
    uncomment_dbi="#"  
 fi
 
+dnl revert after postgresql checks
+LIBS="${saved_LIBS}"
+
 AC_SUBST(uncomment_dbi)
 
 if test $support_batch_insert = yes ; then