]> 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>
Mon, 2 Aug 2010 14:53:54 +0000 (16:53 +0200)
bacula/autoconf/configure.in

index 3db0f85af22259a46ced83ce320fd0885be6a35d..0c3facb48627a5080bb64c44071676d06ecd4958 100644 (file)
@@ -1746,8 +1746,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]))
@@ -1797,6 +1801,9 @@ else
    uncomment_dbi="#"  
 fi
 
+dnl revert after postgresql checks
+LIBS="${saved_LIBS}"
+
 AC_SUBST(uncomment_dbi)
 
 dnl For Ingres always enable batch inserts.