File: ast_pkgconfig.m4

package info (click to toggle)
asterisk 1%3A11.13.1~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 43,308 kB
  • sloc: ansic: 550,310; sh: 12,057; cpp: 5,944; makefile: 3,079; perl: 3,076; yacc: 2,156; xml: 675; sql: 406; python: 381; tcl: 113; php: 62
file content (17 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
])