From: Sami Kerola Date: Sun, 10 Feb 2013 21:33:39 +0000 (+0000) Subject: build-sys: use AC_COMPILE_IFELSE X-Git-Tag: v2.23-rc1~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6abf1685da8f7d2aa0ddc74eb416a55df1208f8;p=thirdparty%2Futil-linux.git build-sys: use AC_COMPILE_IFELSE The AC_TRY_COMPILE is obsolete. Addresses: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html#index-AC_005fTRY_005fCOMPILE-2203 Signed-off-by: Sami Kerola --- diff --git a/configure.ac b/configure.ac index 4a79795104..ae19de81ad 100644 --- a/configure.ac +++ b/configure.ac @@ -375,13 +375,19 @@ no:no) esac -AC_MSG_CHECKING(whether program_invocation_short_name is defined) -AC_TRY_COMPILE([#include ], - [program_invocation_short_name = "test";], - AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, - [Define if program_invocation_short_name is defined]) - AC_MSG_RESULT(yes), - AC_MSG_RESULT(no)) +AC_MSG_CHECKING([whether program_invocation_short_name is defined]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include +]], [[ + program_invocation_short_name = "test"; +]])], [ + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1], + [Define if program_invocation_short_name is defined]) +], [ + AC_MSG_RESULT([no]) +]) + AC_MSG_CHECKING([whether __progname is defined]) AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char *__progname;],