From a70f9b44f10df83d27b9ede66affd2ca39bab9aa Mon Sep 17 00:00:00 2001 From: Alexei Svitkine Date: Mon, 2 Jul 2012 00:40:08 -0400 Subject: [PATCH] Fix configure warning in BasiliskII's configure.ac too. --- BasiliskII/src/Unix/configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index ade33ec4..631064c7 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -1357,10 +1357,11 @@ if [[ "x$HAVE_GCC30" = "xyes" ]]; then CFLAGS="$CFLAGS -fno-strict-aliasing" AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing], ac_cv_gcc_no_strict_aliasing, [ - AC_TRY_COMPILE([],[], - [ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")], - [ac_cv_gcc_no_strict_aliasing=no]) + AC_TRY_COMPILE([],[],[ac_cv_gcc_no_strict_aliasing=yes],[ac_cv_gcc_no_strict_aliasing=no]) ]) + if [[ "x$ac_cv_gcc_no_strict_aliasing" = "xyes" ]]; then + AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing") + fi CFLAGS="$SAVED_CFLAGS" fi