From 65907f075019bc6766b8e8d07cab2dde3380ace8 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sun, 14 Sep 2014 17:19:21 -0700 Subject: portability fixes --- configure | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 0c9136e4..d440a922 100755 --- a/configure +++ b/configure @@ -12426,8 +12426,6 @@ if test x$enable_werror = xyes; then ADD_CFLAGS="-Werror -W -Wpointer-arith" fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; } if ${ax_cv_check_cflags___Wall+:} false; then : @@ -12709,6 +12707,44 @@ else : fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; } +if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Wno-error=unused-variable" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___Wno_error_unused_variable=yes +else + ax_cv_check_cflags___Wno_error_unused_variable=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5 +$as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; } +if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then : + TESTSUITE_CFLAGS="$TESTSUITE_CFLAGS -Wno-error=unused-variable" +else + : +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -- cgit v1.2.3