search for: pkg_check_mod_version

Displaying 4 results from an estimated 4 matches for "pkg_check_mod_version".

2009 Oct 25
0
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
...define) AM_MAINTAINER_MODE @@ -112,7 +113,16 @@ AC_MSG_RESULT($has_visibility) AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h) -XIPH_PATH_OGG([src="src"], [src=""]) +# Test for availablitly of pkg-config. +PKG_PROG_PKG_CONFIG + +if test -n "$PKG_CONFIG"; then + PKG_CHECK_MOD_VERSION(OGG, ogg >= 1.1.3, ac_cv_ogg=yes, ac_cv_ogg=no) + src=src + fi +if test x$ac_cv_ogg != xyes; then + XIPH_PATH_OGG([src="src"], [src=""]) + fi AC_SUBST(src) AC_CHECK_LIB(m, sin) @@ -287,7 +297,7 @@ AC_DEFINE([_BUILD_SPEEX], [], [Defined only when Speex itself is build buil...
2009 Oct 25
1
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
...ublic License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# -------------------------------------------------------------- +# PKG_CHECK_MOD_VERSION(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# This is a very slight modification to the macro PKG_CHECK_MODULES that +# is in the original pkg.m4 file. It prints the versions in the checking +# message (erikd at mega-nerd.com). + +AC_DEFUN([PKG_CHECK_MOD_VERSION], +[A...
2011 Mar 25
1
pkg-config output and <FLAC/assert.h>
...aising this as an issue about 18 months ago. i certainly > feel that the include style that flac uses now is simply wrong, and > that your suggestion above (which matches the one i made) is > substantially preferable. I've now taken to doing the following in my configure.ac file: PKG_CHECK_MOD_VERSION(FLAC, flac >= 1.2.1, ac_cv_flac=yes, ac_cv_flac=no) # Make sure the FLAC_CFLAGS value is sane, strip trailing '/FLAC'. FLAC_CFLAGS=`echo $FLAC_CLFAGS | $SED "s/FLAC$//"` Solve the problem for me and will still work when the flac.pc file is fixed. Erik -- ------------...
2011 Mar 25
3
pkg-config output and <FLAC/assert.h>
Hi, FLAC helpfully provides a flac.pc file. Unfortunately there is a nasty interaction between that file and system header files. If ones installs flac and relies on pkg-config to find the CFLAGS one woulf get CFLAGS value of "-I${includedir}/FLAC" which suggests that FLAC header files like <metadata.h> should be included as: #include <metadata.h> However, FLAC also