diff configure.ac @ 1912:613e4c8bd14f

append audacious header path to CPPFLAGS when --prefix is specified. (since js hates CFLAGS in making deps. hehe.)
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 28 Sep 2007 10:39:59 +0900
parents 7f9d2bb96441
children 266f1bf0d5fc
line wrap: on
line diff
--- a/configure.ac	Thu Sep 27 22:28:18 2007 +0200
+++ b/configure.ac	Fri Sep 28 10:39:59 2007 +0900
@@ -22,6 +22,11 @@
 	CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
 fi
 
+dnl append audacious header path to CPPFLAGS when --prefix is specified.
+if test "$prefix" != "NONE" ; then
+   CPPFLAGS="$CPPFLAGS -I${includedir}"
+fi
+
 dnl OMK bootstrap
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])