GNOME Bugzilla – Bug 159847
[build] hardcoded path for musepack headers in configure
Last modified: 2004-12-17 14:13:39 UTC
In the configure script in the musepack section there is this line: CPPFLAGS="-I/usr/include/musepack $CPPFLAGS" On linux systems musepack is probably installed in the /usr/include/musepack. So no problem here, but on FreeBSD (and maybe other OS's) they are put in /usr/local/include/musepack. With the result that the configure script can't find the includes. Because default CPPFLAGS points to /usr/local/include.
This was just the quickest possible hack. I don't know how any of this works or how to automatically choose the right prefix for includepaths when finding headers.
couldn't we use something like this ? GST_CHECK_LIBHEADER(MUSEPACK, musepack, , , musepack/mpc_dec.h, [ HAVE_MUSEPACK="yes" AC_SUBST(MUSEPACK_CFLAGS) AC_SUBST(MUSEPACK_LIBS) ], [HAVE_MUSEPACK="no"])
Other packages seem to use the '#include <musepack/xxx.h>' form, so we should too. And if we're searching for musepack/mpc_dec.h, things Just Work. Fixed in CVS.