talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit efd66a9312197b05e4255e09c9f1957d7f9feeca
parent 51d6662d2e76f241b229679b54a9150838424bdc
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date:   Sun, 27 Nov 2022 18:47:38 -0700

Use libetpan CFLAGS for header check

Diffstat:
Mconfigure.ac | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -976,13 +976,18 @@ if test x"$enable_libetpan" = xyes; then fi ]) if test "x$libetpan_config" = "xyes"; then + libetpan_save_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $LIBETPAN_CFLAGS" AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes]) if test "x$libetpan_result" = "xyes"; then AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine]) + libetpan_save_LIBS=$LIBS LIBS="$LIBS $LIBETPAN_LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <libetpan/dbstorage.h>]], [[db_mailstorage_init(NULL, NULL);]])],[libetpan_result=yes],[libetpan_result=no]) + LIBS=$libetpan_save_LIBS AC_MSG_RESULT([$libetpan_result]) fi + CPPFLAGS=$libetpan_save_CPPFLAGS fi if test "x$libetpan_result" = "xyes"; then if test $libetpan_versiontype -eq 1; then