Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | Upstream-Status: Backport |
| 2 | |
| 3 | Index: apt-0.7.3/configure.ac |
| 4 | =================================================================== |
| 5 | --- apt-0.7.3.orig/configure.ac 2007-07-01 10:38:45.000000000 +0000 |
| 6 | +++ apt-0.7.3/configure.ac 2007-08-21 13:39:26.000000000 +0000 |
| 7 | @@ -67,8 +67,20 @@ |
| 8 | [AC_DEFINE(HAVE_BDB) |
| 9 | BDBLIB="-ldb" |
| 10 | AC_MSG_RESULT(yes)], |
| 11 | - [BDBLIB="" |
| 12 | - AC_MSG_RESULT(no)] |
| 13 | + |
| 14 | + LIBS="$LIBS -lpthread" |
| 15 | + [AC_MSG_CHECKING(if we can link against BerkeleyDB with pthread) |
| 16 | + AC_LINK_IFELSE( |
| 17 | + [AC_LANG_PROGRAM( |
| 18 | + [#include <db.h>], |
| 19 | + [int r, s, t; db_version(&r, &s, &t);] |
| 20 | + )], |
| 21 | + [AC_DEFINE(HAVE_BDB) |
| 22 | + BDBLIB="-ldb -lpthread" |
| 23 | + AC_MSG_RESULT(yes)], |
| 24 | + [BDBLIB="" |
| 25 | + AC_MSG_RESULT(no)] |
| 26 | + )] |
| 27 | )] |
| 28 | ) |
| 29 | |