From add121705310acbff522a0eb747c4bf1146fcc4f Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 24 Sep 2010 20:34:52 +0000 Subject: Use AC_LANG_SOURCE for compatibility with Autoconf 2.68. --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9f9d305..67b8580 100644 --- a/configure.ac +++ b/configure.ac @@ -17,13 +17,12 @@ AC_CHECK_FUNCS([setenv strtok_r]) AC_MSG_CHECKING([for strndup]) old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Wall -Werror -Wextra" -AC_LINK_IFELSE( -[#include +AC_LINK_IFELSE([AC_LANG_SOURCE([[#include int main() { strndup("", 0); return 0; -}], [have_strndup="1"], [have_strndup="0"]) +}]])], [have_strndup="1"], [have_strndup="0"]) if test "${have_strndup}" = "1"; then AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_STRNDUP], [1], [Define to 1 if you have the 'strndup' function.]) -- cgit v1.2.3-65-gdbad