From 594debf27cc9acd8e287b23862dadae947359f47 Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Sun, 22 Jul 2012 21:53:28 -0400 Subject: [PATCH] Ignore pkg-config-related m4 macros if they aren't available. Taken from, http://osdir.com/ml/automake-gnu/2011-03/msg00007.html Signed-off-by: Stephen Sinclair --- configure.ac | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 69cec8d..5c54223 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,20 @@ AC_CONFIG_FILES([rtaudio-config librtaudio.pc Makefile tests/Makefile]) # Fill GXX with something before test. AC_SUBST( GXX, ["no"] ) +dnl Check for pkg-config program, used for configuring some libraries. +m4_define_default([PKG_PROG_PKG_CONFIG], +[AC_MSG_CHECKING([pkg-config]) +AC_MSG_RESULT([no])]) + +PKG_PROG_PKG_CONFIG + +dnl If the pkg-config autoconf support isn't installed, define its +dnl autoconf macro to disable any packages depending on it. +m4_define_default([PKG_CHECK_MODULES], +[AC_MSG_CHECKING([$1]) +AC_MSG_RESULT([no]) +$4]) + # Checks for programs. AC_PROG_CXX(g++ CC c++ cxx) AC_PROG_RANLIB -- 1.7.1