Fix ODBC checks.
[shibboleth/sp.git] / 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`