Use the headers from builddir and srcdir before the system headers
authorRafaël Carré <rcarre@m2x.nl>
Wed, 2 Jul 2008 11:14:30 +0000 (13:14 +0200)
committerRafaël Carré <rcarre@m2x.nl>
Wed, 2 Jul 2008 11:14:30 +0000 (13:14 +0200)
That fixes compilation when incompatible headers are installed on the system (such as headers from vlc 0.8.6)

configure.ac

index 4504e58..64fa27d 100644 (file)
@@ -5718,7 +5718,7 @@ dnl  Handle substvars that use $(top_srcdir)
 dnl
 VLC_CONFIG="top_builddir=\"\$(top_builddir)\" \$(top_builddir)/vlc-config"
 AC_SUBST(VLC_CONFIG)
-CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include -I\$(top_builddir)/include"
+CPPFLAGS_save="-I\$(top_srcdir)/include -I\$(top_builddir)/include ${CPPFLAGS_save}"
 
 dnl
 dnl  Restore *FLAGS