[gegl] configure.ac: Use AC_CHECK_HEADER for libspiro check
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] configure.ac: Use AC_CHECK_HEADER for libspiro check
- Date: Fri, 1 Oct 2010 06:23:59 +0000 (UTC)
commit 1359fa18e4964271224bf331c904b066dbd88e45
Author: Martin Nordholts <martinn src gnome org>
Date: Fri Oct 1 08:33:13 2010 +0200
configure.ac: Use AC_CHECK_HEADER for libspiro check
Use AC_CHECK_HEADER and not AC_TRY_CPP for libspiro check so that
e.g. include paths in CFLAGS is taken into account.
configure.ac | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e8e80ee..44159da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -922,12 +922,13 @@ if test "x$with_libspiro" != "xno" && test -z "$LIBSPIRO"; then
spiro_ok="no (usable SPIRO library not found)")
if test "$spiro_ok" = "yes"; then
AC_MSG_CHECKING([for spirolib.h])
- AC_TRY_CPP([#include <spiro.h>],
+ AC_CHECK_HEADER([spiro.h],
spiro_ok="yes"
AC_DEFINE(HAVE_SPIRO, 1,
[Define to 1 if the spiro library is available])
LIBSPIRO='-lspiro',
- spiro_ok="no (Can't include spiro.h)")
+ spiro_ok="no (Can't include spiro.h)",
+ [#include <bezctx_intf.h>])
AC_MSG_RESULT($spiro_ok)
fi
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]