Skip to content

Commit

Permalink
Macro AST_PKG_CONFIG_CHECK to use chkconfig
Browse files Browse the repository at this point in the history
AST_PKG_CONFIG_CHECK: Similar to AST_EXT_LIB_CHECK, but simply uses
pkg-config data.

This simple version only uses pkg-config(1)'s tests.

This commit also uses the macro to test for GTK2 and GMIME (instead of
the current direct usage of pkg-config).

Review: https://reviewboard.asterisk.org/r/1906/



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
  • Loading branch information
Tzafrir Cohen committed May 14, 2012
1 parent 4a2678b commit c79bafa
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 205 deletions.
17 changes: 17 additions & 0 deletions autoconf/ast_pkgconfig.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Check for pkg-config component $2:
# AST_PKG_CONFIG_CHECK([package], [component])
AC_DEFUN([AST_PKG_CONFIG_CHECK],
[
if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
PKG_CHECK_MODULES($1, $2, [
PBX_$1=1
$1_INCLUDE="$$1_CFLAGS"
$1_LIB="$$1_LIBS"
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])
], [
PBX_$1=0
]
)
fi
])

Loading

0 comments on commit c79bafa

Please sign in to comment.