| 359 | if test $platform_carbon = yes -a -f $d/include/db47/db.h -a -f $d/lib/db47/libdb$linklibext |
| 360 | then |
| 361 | AC_MSG_RESULT(found Berkeley DB 4.7 in $d) |
| 362 | AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB]) |
| 363 | bdbdir=$d |
| 364 | BDB_CFLAGS="-I${bdbdir}/include/db47" |
| 365 | BDB_LIB="$d/lib/db47/libdb$linklibext" |
| 366 | BDB_LIBS="-L${bdbdir}/lib/db47 -ldb" |
| 367 | break |
| 368 | elif test $platform_carbon = yes -a -f $d/include/db46/db.h -a -f $d/lib/db46/libdb$linklibext |
| 369 | then |
| 370 | AC_MSG_RESULT(found Berkeley DB 4.6 in $d) |
| 371 | AC_DEFINE(HAVE_BDB, 1, [Have Berkeley DB]) |
| 372 | bdbdir=$d |
| 373 | BDB_CFLAGS="-I${bdbdir}/include/db46" |
| 374 | BDB_LIB="$d/lib/db46/libdb$linklibext" |
| 375 | BDB_LIBS="-L${bdbdir}/lib/db46 -ldb" |
| 376 | break |
| 377 | fi |