+Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
+
+ Fix gcc-ism in python build (John Levon)
+ * acinclude.m4: Add -Wno-redundant-decls check for compiler
+ * python/Makefile.am: Remove hardcoded -Wno-redundant-decls
+
Thu Dec 18 12:11:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Don't free event after queueing it
WARN_CFLAGS="$compiler_flags $complCFLAGS"
AC_SUBST(WARN_CFLAGS)
+
+ dnl Needed to keep compile quiet on python 2.4
+ COMPILER_FLAGS=
+ gl_COMPILER_FLAGS(-Wno-redundant-decls)
+ WARN_PYTHON_CFLAGS=$COMPILER_FLAGS
+ AC_SUBST(WARN_PYTHON_CFLAGS)
])
python_LTLIBRARIES = libvirtmod.la
libvirtmod_la_SOURCES = libvir.c types.c libvirt-py.c libvirt-py.h
-# Python header files contain a redundant decl, hence:
-libvirtmod_la_CFLAGS = -Wno-redundant-decls
+# Python <= 2.4 header files contain a redundant decl, hence we
+# need extra flags here
+libvirtmod_la_CFLAGS = @WARN_PYTHON_CFLAGS@
libvirtmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/src/.libs \
@CYGWIN_EXTRA_LDFLAGS@