mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Port better to AIX 7.3 with -lsqlite3 but not sqlite3.h
* configure.ac (HAVE_SQLITE): Yes only if sqlite3.h can be included (Bug#75667).
This commit is contained in:
parent
a94988c01d
commit
dcccb92562
1 changed files with 12 additions and 3 deletions
15
configure.ac
15
configure.ac
|
|
@ -3716,9 +3716,18 @@ if test "${with_sqlite3}" != "no"; then
|
||||||
CFLAGS="$SAVE_CFLAGS"
|
CFLAGS="$SAVE_CFLAGS"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_CHECK_LIB([sqlite3], [sqlite3_open_v2],
|
AC_CACHE_CHECK([for sqlite3],
|
||||||
[HAVE_SQLITE3=yes],
|
[emacs_cv_have_sqlite3],
|
||||||
[HAVE_SQLITE3=no])
|
[OLIBS=$LIBS
|
||||||
|
LIBS="-lsqlite3 $LIBS"
|
||||||
|
AC_LINK_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM([[#include <sqlite3.h>
|
||||||
|
sqlite3 *handle;]],
|
||||||
|
[[return sqlite3_open_v2 ("", &handle, 0, "");]])],
|
||||||
|
[emacs_cv_have_sqlite3=yes],
|
||||||
|
[emacs_cv_have_sqlite3=no])
|
||||||
|
LIBS=$OLIBS])
|
||||||
|
HAVE_SQLITE3=$emacs_cv_have_sqlite3
|
||||||
if test "$HAVE_SQLITE3" = "yes"; then
|
if test "$HAVE_SQLITE3" = "yes"; then
|
||||||
SQLITE3_LIBS=-lsqlite3
|
SQLITE3_LIBS=-lsqlite3
|
||||||
LIBS="$SQLITE3_LIBS $LIBS"
|
LIBS="$SQLITE3_LIBS $LIBS"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue