diff options
author | Alon Levy <alevy@redhat.com> | 2011-01-17 01:26:39 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-01-17 18:48:50 +0200 |
commit | d0fa80641daf9d49ea6590d4106c32c79b872d4e (patch) | |
tree | e2a250517de0e34827447fd3416a19643fc73fbd | |
parent | 998218be176b1780fff3f6f54b398c67b19b782f (diff) | |
download | spice-d0fa80641daf9d49ea6590d4106c32c79b872d4e.tar.gz spice-d0fa80641daf9d49ea6590d4106c32c79b872d4e.tar.xz spice-d0fa80641daf9d49ea6590d4106c32c79b872d4e.zip |
configure.ac: use AC_LANG_SOURCE in AC_COMPILE_IFELSE, silence remaining warnings
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index a9e9d2d0..6b6c8c98 100644 --- a/configure.ac +++ b/configure.ac @@ -294,7 +294,7 @@ AC_DEFUN([SPICE_CC_TRY_FLAG], [ spice_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $1" - AC_COMPILE_IFELSE([ ], [spice_cc_flag=yes], [spice_cc_flag=no]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [spice_cc_flag=yes], [spice_cc_flag=no]) CFLAGS="$spice_save_CFLAGS" if test "x$spice_cc_flag" = "xyes"; then @@ -384,13 +384,13 @@ dnl -fvisibility stuff have_gcc4=no AC_MSG_CHECKING(for -fvisibility) -AC_COMPILE_IFELSE([ +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #if defined(__GNUC__) && (__GNUC__ >= 4) #else error Need GCC 4.0 for visibility #endif int main () { return 0; } -], have_gcc4=yes) +])], have_gcc4=yes) if test "x$have_gcc4" = "xyes"; then VISIBILITY_HIDDEN_CFLAGS="-fvisibility=hidden" |