rhythmbox r5648 - trunk



Author: jmatthew
Date: Wed Mar 26 11:57:22 2008
New Revision: 5648
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5648&view=rev

Log:
2008-03-26  Jonathan Matthew  <jonathan d14n org>

	patch by: Nikolai Luthman  <nikolai luthman gmail com>

	* configure.ac:  Move check for -fno-strict-aliasing outside the check
	for python, since we use it elsewhere.  Fixes #524302.


Modified:
   trunk/ChangeLog
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Wed Mar 26 11:57:22 2008
@@ -767,6 +767,20 @@
 	AC_MSG_RESULT(no)
 fi
 
+
+dnl Check for -fno-strict-aliasing
+FLAGS="-fno-strict-aliasing"
+save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $FLAGS"
+AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
+AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
+CFLAGS="$save_CFLAGS"
+AC_MSG_RESULT($compiler_has_option)
+if test $compiler_has_option = yes; then
+	NO_STRICT_ALIASING_CFLAGS="$FLAGS"
+fi
+AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
+
 dnl Enable gtk-doc
 GTK_DOC_CHECK(1.4)
 
@@ -900,19 +914,6 @@
 
 	PKG_CHECK_EXISTS([pygobject-2.0 >= 2.13.2],
 			 AC_DEFINE([PYGOBJECT_CAN_MARSHAL_GVALUE], [1], [Define if pygobject can marshal GValues]))
-
-	dnl Check for -fno-strict-aliasing
-	FLAGS="-fno-strict-aliasing"
-	save_CFLAGS="$CFLAGS"
-	CFLAGS="$CFLAGS $FLAGS"
-	AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
-	AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
-	CFLAGS="$save_CFLAGS"
-	AC_MSG_RESULT($compiler_has_option)
-	if test $compiler_has_option = yes; then
-		NO_STRICT_ALIASING_CFLAGS="$FLAGS"
-	fi
-	AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
 fi
 
 if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]