mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
acinclude.m4: add a function to help checking sdl-config, gtk-config
and the like (this could be used for gtk and gtk2 as well) Other files: add tests for sdl, sdl_image and avcodec and regenerate configure and autoconfig.h.in git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
17
acinclude.m4
17
acinclude.m4
@@ -152,6 +152,23 @@ fi
|
||||
])
|
||||
|
||||
|
||||
# check for a tool using xxx-config
|
||||
# AST_EXT_TOOL_CHECK([package symbol name], [package library name], [symbol], [version])
|
||||
AC_DEFUN([AST_EXT_TOOL_CHECK],
|
||||
[
|
||||
PBX_$1=0
|
||||
AC_CHECK_TOOL(CONFIG_$1, $2-config, No)
|
||||
if test ! "x${CONFIG_$1}" = xNo; then
|
||||
$1_INCLUDE=$(${CONFIG_$1} --cflags $3)
|
||||
$1_LIB=$(${CONFIG_$1} --libs $3)
|
||||
PBX_$1=1
|
||||
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])
|
||||
fi
|
||||
AC_SUBST(PBX_$1)
|
||||
AC_SUBST($1_INCLUDE)
|
||||
AC_SUBST($1_LIB)
|
||||
])
|
||||
|
||||
AC_DEFUN(
|
||||
[AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK(for GNU make, GNU_MAKE,
|
||||
GNU_MAKE='Not Found' ;
|
||||
|
||||
Reference in New Issue
Block a user