Lines 46-65
Link Here
|
46 |
AC_MSG_RESULT([$enable_backend]) |
46 |
AC_MSG_RESULT([$enable_backend]) |
47 |
AC_CHECK_FILE([$srcdir/keydb_$enable_backend.c], ,AC_MSG_ERROR([non existent key database backend $enable_backend])) |
47 |
AC_CHECK_FILE([$srcdir/keydb_$enable_backend.c], ,AC_MSG_ERROR([non existent key database backend $enable_backend])) |
48 |
|
48 |
|
49 |
if test "x$enable_backend" = "xdb4" |
|
|
50 |
then |
51 |
if test "$have_libdb" = "no" -o "$have_db_h" = "no"; then |
49 |
if test "$have_libdb" = "no" -o "$have_db_h" = "no"; then |
52 |
AC_MSG_ERROR(libdb not found.) |
50 |
AC_MSG_ERROR(libdb not found.) |
53 |
fi |
51 |
fi |
54 |
LIBS="$LIBS $db4libs" |
52 |
LIBS="$LIBS $db4libs" |
55 |
else if test "x$enable_backend" = "xpg" |
|
|
56 |
then |
57 |
if test "$have_libpq" = "no"; then |
53 |
if test "$have_libpq" = "no"; then |
58 |
AC_MSG_ERROR(libpq not found.) |
54 |
AC_MSG_ERROR(libpq not found.) |
59 |
fi |
55 |
fi |
60 |
LIBS="$LIBS -lpq" |
56 |
LIBS="$LIBS -lpq" |
61 |
fi |
|
|
62 |
fi |
63 |
|
57 |
|
64 |
dnl If we are explicitly told which backend to use, only build that one. |
58 |
dnl If we are explicitly told which backend to use, only build that one. |
65 |
if test "x$enable_backend" = "xdb4" |
59 |
if test "x$enable_backend" = "xdb4" |