From: Wayne Davison Date: Thu, 31 Dec 2009 03:57:47 +0000 (-0800) Subject: Configure check for -Wno-unused-parameter now tries to link too. X-Git-Tag: v3.0.7~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b04604945d7d3868f3d914aa7e9ec0d00f8a974e;p=thirdparty%2Frsync.git Configure check for -Wno-unused-parameter now tries to link too. --- diff --git a/configure.in b/configure.in index ece0b2ac..35f5b1d7 100644 --- a/configure.in +++ b/configure.in @@ -988,7 +988,7 @@ if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x" AC_MSG_CHECKING([whether $CC supports -Wno-unused-parameter]) OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wno-unused-parameter" - AC_COMPILE_IFELSE([ ], [rsync_warn_flag=yes], [rsync_warn_flag=no]) + AC_TRY_LINK([#include ], [printf("hello\n");], [rsync_warn_flag=yes], [rsync_warn_flag=no]) AC_MSG_RESULT([$rsync_warn_flag]) if test x"$rsync_warn_flag" = x"no"; then CFLAGS="$OLD_CFLAGS"