-lodbc may need $LTHREAD_LIBS

This commit is contained in:
Kurt Zeilenga 2005-04-03 05:04:34 +00:00
parent 3eb87b2faa
commit 89bae499ed
2 changed files with 191 additions and 181 deletions

367
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2069,6 +2069,9 @@ if test $ol_enable_sql != no ; then
AC_MSG_ERROR([could not locate SQL headers])
])
sql_LIBS="$LIBS"
LIBS="$LTHREAD_LIBS"
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
if test $have_iodbc = yes ; then
ol_link_sql="-liodbc"
@ -2079,6 +2082,8 @@ if test $ol_enable_sql != no ; then
fi
fi
LIBS="$sql_LIBS"
if test $ol_link_sql != no ; then
SLAPD_SQL_LIBS="$ol_link_sql"