mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Add LTHREAD_LIBS to BDB tests
This commit is contained in:
parent
73b4170a6c
commit
04b93e2628
@ -254,7 +254,7 @@ AC_DEFUN([OL_BERKELEY_DB_TRY],
|
|||||||
[
|
[
|
||||||
ol_DB_LIB=ifelse($2,,,$2)
|
ol_DB_LIB=ifelse($2,,,$2)
|
||||||
ol_LIBS=$LIBS
|
ol_LIBS=$LIBS
|
||||||
LIBS="$ol_DB_LIB $LIBS"
|
LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
|
||||||
|
|
||||||
AC_TRY_LINK([
|
AC_TRY_LINK([
|
||||||
#ifdef HAVE_DB_185_H
|
#ifdef HAVE_DB_185_H
|
||||||
@ -328,8 +328,9 @@ dnl Check if Berkeley DB supports DB_THREAD
|
|||||||
AC_DEFUN([OL_BERKELEY_DB_THREAD],
|
AC_DEFUN([OL_BERKELEY_DB_THREAD],
|
||||||
[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
|
[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
|
||||||
ol_LIBS="$LIBS"
|
ol_LIBS="$LIBS"
|
||||||
|
LIBS="$LTHREAD_LIBS $LIBS"
|
||||||
if test $ol_cv_lib_db != yes ; then
|
if test $ol_cv_lib_db != yes ; then
|
||||||
LIBS="$ol_cv_lib_db"
|
LIBS="$ol_cv_lib_db $LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
|
Loading…
Reference in New Issue
Block a user