Fix ODBC checks.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 15 Nov 2007 17:23:50 +0000 (17:23 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 15 Nov 2007 17:23:50 +0000 (17:23 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2615 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 8e8b586..fe73526 100644 (file)
@@ -733,13 +733,14 @@ if test "$build_odbc" = "yes" ; then
                odbc_dir="$with_odbc/bin"
                if test "$with_odbc" != /usr ; then
                  ODBC_CFLAGS="-I$with_odbc/include"
-                 ODBC_LIBS="-L$with_odbc/lib -lodbc"
+                 ODBC_LIBS="-L$with_odbc/lib"
                fi
              fi ])
 
    AC_PATH_PROG(ODBC_CONFIG, odbc_config, no, $odbc_dir $PATH )
    if test "$ODBC_CONFIG" = no ; then
       AC_MSG_WARN(Cannot find odbc_config, will try to guess settings.)
+      ODBC_LIBS="$ODBC_LIBS -lodbc"
    else
       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
       ODBC_LIBS=`$ODBC_CONFIG --libs`