fixed iODBC detection

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-09-15 14:10:31 +00:00
parent 4199367e9c
commit 84dfd58f69

View File

@ -2922,11 +2922,11 @@ if test "$TOOLKIT" != "MSW" ; then
AC_CHECK_HEADER([sql.h], [found_sql_h=1]) AC_CHECK_HEADER([sql.h], [found_sql_h=1])
if test "x$found_sql_h" = "x1" ; then if test "x$found_sql_h" = "x1" ; then
AC_CHECK_LIB(SQLAllocEnv, iodbc, ODBC_LINK=" -liodbc", AC_CHECK_LIB(iodbc, SQLAllocEnv, ODBC_LINK=" -liodbc",
[ [
AC_CHECK_LIB(SQLAllocEnv, unixodbc, ODBC_LINK=" -lunixodbc", AC_CHECK_LIB(unixodbc, SQLAllocEnv, ODBC_LINK=" -lunixodbc",
[ [
AC_CHECK_LIB(SQLAllocEnv, odbc, ODBC_LINK=" -lodbc") AC_CHECK_LIB(odbc, SQLAllocEnv, ODBC_LINK=" -lodbc")
]) ])
]) ])
fi fi