Replace deprecated AC_TRY_COMPILE macro with the reccomended replcament
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 6 Jul 2006 11:49:02 +0000 (11:49 +0000)
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 6 Jul 2006 11:49:02 +0000 (11:49 +0000)
See: http://www.gnu.org/software/autoconf/manual/html_node/Obsolete-Macros.html

configure.ac

index 532aea3..d565073 100644 (file)
@@ -1136,17 +1136,13 @@ dnl    (.subsections-via-symbols assembler directive)
 
 
 AC_MSG_CHECKING(for .subsections_via_symbols)
-AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");],
-    [
-        AC_MSG_RESULT(yes)
-        AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1],
-            [Define to 1 if Apple-style dead-stripping is supported.])
+AC_COMPILE_IFELSE(
+    [AC_LANG_PROGRAM([], [__asm__ (".subsections_via_symbols");])],
+    [AC_MSG_RESULT(yes)
+     AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1],
+               [Define to 1 if Apple-style dead-stripping is supported.])
     ],
-    [
-        AC_MSG_RESULT(no)
-        AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[0],
-            [Define to 1 if Apple-style dead-stripping is supported.])
-    ])
+    [AC_MSG_RESULT(no)])
 
 dnl *** check for GNU non-executable stack note support (ELF only)
 dnl     (.section .note.GNU-stack,"",@progbits)