1 From e12c96cccab550eda31cf7bb1dedddd3670ffe69 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Tue, 1 Dec 2009 17:22:22 +0100
4 Subject: [PATCH 2/5] configure.ac: convert AC_TRY_COMPILE -> AC_COMPILE_IFELSE
6 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
8 configure.ac | 10 +++++-----
9 1 files changed, 5 insertions(+), 5 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index 997a37f..cab80ed 100644
15 @@ -40,11 +40,11 @@ case "$host" in
18 AC_MSG_CHECKING(__attribute__((noreturn)))
19 -AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
21 - AC_DEFINE(HAVE_ATTRIBUTE_NORETURN, 1,
22 - [Define to 1 if compiler supports __attribute__((noreturn))]),
25 + [AC_LANG_PROGRAM([[]], [[void __attribute__((noreturn)) panic(void);]])],
27 + AC_DEFINE(HAVE_ATTRIBUTE_NORETURN, 1, Define to 1 if compiler supports __attribute__((noreturn)))],
30 dnl Checks for libraries.