[gimp/metadata-browser] configure.ac: Replace deprecated AC_TRY_COMPILE macro
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] configure.ac: Replace deprecated AC_TRY_COMPILE macro
- Date: Fri, 2 Dec 2011 02:22:46 +0000 (UTC)
commit 39bc9678f8d3c1b6938bff4795108b4c237c8a1f
Author: Javier JardÃn <jjardon gnome org>
Date: Mon Oct 17 01:22:21 2011 +0100
configure.ac: Replace deprecated AC_TRY_COMPILE macro
configure.ac | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f343e1c..ca0d2f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -558,9 +558,12 @@ AC_MSG_RESULT($have_pango_1_32)
CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
AC_MSG_CHECKING([if Pango is built with a recent fontconfig])
-AC_TRY_COMPILE([#include <fontconfig/fontconfig.h>],
- [FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);],
- fontconfig_ok=yes, fontconfig_ok=no)
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <fontconfig/fontconfig.h>]],
+ [[FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);]])],
+ [fontconfig_ok=yes],
+ [fontconfig_ok=no])
AC_MSG_RESULT($fontconfig_ok)
CFLAGS=$gimp_save_CFLAGS
@@ -905,8 +908,12 @@ AC_SUBST(SYMPREFIX)
if test "x$os_win32" != xyes; then
AC_MSG_CHECKING([fd_set and sys/select])
- AC_TRY_COMPILE([#include <sys/types.h>],
- [fd_set readMask, writeMask;], gimp_ok=yes, gimp_ok=no)
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <sys/types.h>]],
+ [[fd_set readMask, writeMask;]])],
+ [gimp_ok=yes],
+ [gimp_ok=no])
if test "x$gimp_ok" = xno; then
AC_EGREP_HEADER(fd_mask, sys/select.h, gimp_ok=yes)
if test "x$gimp_ok" = xyes; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]