|
|
|
@ -8,7 +8,10 @@
|
|
|
|
|
|
|
|
|
|
AC_PREREQ(2.60)
|
|
|
|
|
|
|
|
|
|
AC_INIT(asterisk, 1.6, www.asterisk.org)
|
|
|
|
|
AC_INIT([asterisk], [trunk], [https://issues.asterisk.org])
|
|
|
|
|
|
|
|
|
|
# Allow the --help=recursive option to function correctly
|
|
|
|
|
AC_CONFIG_SUBDIRS([menuselect])
|
|
|
|
|
|
|
|
|
|
# cross-compile macros
|
|
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
@ -41,12 +44,12 @@ AC_USE_SYSTEM_EXTENSIONS # note- does not work on FreeBSD
|
|
|
|
|
|
|
|
|
|
case "${host_os}" in
|
|
|
|
|
freebsd*)
|
|
|
|
|
ac_default_prefix=/usr/local
|
|
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
|
|
|
|
CPPFLAGS=-I/usr/local/include
|
|
|
|
|
LDFLAGS=-L/usr/local/lib
|
|
|
|
|
;;
|
|
|
|
|
openbsd*)
|
|
|
|
|
ac_default_prefix=/usr/local
|
|
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
|
|
|
|
if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
|
|
|
|
|
if test ${sysconfdir} = '${prefix}/etc'; then
|
|
|
|
|
sysconfdir=/etc
|
|
|
|
@ -62,7 +65,7 @@ case "${host_os}" in
|
|
|
|
|
AC_DEFINE([AST_POLL_COMPAT], 1, [Define to 1 if internal poll should be used.])
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ac_default_prefix=/usr
|
|
|
|
|
AC_PREFIX_DEFAULT([/usr])
|
|
|
|
|
if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
|
|
|
|
|
if test ${sysconfdir} = '${prefix}/etc'; then
|
|
|
|
|
sysconfdir=/etc
|
|
|
|
@ -298,20 +301,21 @@ AC_SUBST(AST_DEVMODE)
|
|
|
|
|
# to make things easier for the users.
|
|
|
|
|
|
|
|
|
|
AST_EXT_LIB_SETUP([ALSA], [Advanced Linux Sound Architecture], [asound])
|
|
|
|
|
|
|
|
|
|
# BKTR is used for backtrace support on platforms that do not
|
|
|
|
|
# have it natively.
|
|
|
|
|
AST_EXT_LIB_SETUP([BKTR], [Stack Backtrace], [execinfo])
|
|
|
|
|
AST_EXT_LIB_SETUP([FFMPEG], [Ffmpeg and avcodec], [avcodec])
|
|
|
|
|
AST_EXT_LIB_SETUP([BLUETOOTH], [Bluetooth], [bluetooth])
|
|
|
|
|
AST_EXT_LIB_SETUP([CAP], [POSIX 1.e capabilities], [cap])
|
|
|
|
|
AST_EXT_LIB_SETUP([CURL], [cURL], [curl])
|
|
|
|
|
AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
|
|
|
|
|
AST_EXT_LIB_SETUP([CRYPTO], [OpenSSL Cryptography], [crypto])
|
|
|
|
|
AST_EXT_LIB_SETUP([DAHDI], [DAHDI], [dahdi])
|
|
|
|
|
AST_EXT_LIB_SETUP([FFMPEG], [Ffmpeg and avcodec], [avcodec])
|
|
|
|
|
|
|
|
|
|
# BKTR is used for backtrace support on platforms that do not
|
|
|
|
|
# have it natively.
|
|
|
|
|
AST_EXT_LIB_SETUP([BKTR], [Stack Backtrace], [execinfo])
|
|
|
|
|
AST_EXT_LIB_SETUP([GSM], [External GSM], [gsm], [, use 'internal' GSM otherwise])
|
|
|
|
|
AST_EXT_LIB_SETUP([GTK2], [gtk2], [gtk2])
|
|
|
|
|
AST_EXT_LIB_SETUP([GMIME], [GMime], [gmime])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
|
|
|
|
|
AST_EXT_LIB_SETUP([HOARD], [Hoard Memory Allocator], [hoard])
|
|
|
|
|
AST_EXT_LIB_SETUP([ICAL], [iCal], [ical])
|
|
|
|
|
AST_EXT_LIB_SETUP([ICONV], [Iconv], [iconv])
|
|
|
|
@ -323,6 +327,7 @@ AST_EXT_LIB_SETUP([ISDNNET], [ISDN4Linux], [isdnnet])
|
|
|
|
|
AST_EXT_LIB_SETUP([JACK], [Jack Audio Connection Kit], [jack])
|
|
|
|
|
AST_EXT_LIB_SETUP([KQUEUE], [kqueue support], [kqueue])
|
|
|
|
|
AST_EXT_LIB_SETUP([LDAP], [OpenLDAP], [ldap])
|
|
|
|
|
AST_LIBCURL_CHECK_CONFIG([], [7.10.1])
|
|
|
|
|
AST_EXT_LIB_SETUP([LIBXML2], [LibXML2], [libxml2])
|
|
|
|
|
AST_EXT_LIB_SETUP([LTDL], [libtool], [ltdl])
|
|
|
|
|
AST_EXT_LIB_SETUP([LUA], [Lua], [lua])
|
|
|
|
@ -335,6 +340,8 @@ AST_EXT_LIB_SETUP([NEON29], [neon29], [neon29])
|
|
|
|
|
AST_EXT_LIB_SETUP([NETSNMP], [Net-SNMP], [netsnmp])
|
|
|
|
|
AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
|
|
|
|
|
AST_EXT_LIB_SETUP([OGG], [OGG], [ogg])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENAIS], [OpenAIS], [openais])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENR2], [MFR2], [openr2])
|
|
|
|
|
AST_EXT_LIB_SETUP([OSPTK], [OSP Toolkit], [osptk])
|
|
|
|
|
AST_EXT_LIB_SETUP([OSS], [Open Sound System], [oss])
|
|
|
|
|
AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
|
|
|
|
@ -360,27 +367,25 @@ AST_EXT_LIB_SETUP_DEPENDENT([PRI_PROG_W_CAUSE], [ISDN progress with cause], [PRI
|
|
|
|
|
AST_EXT_LIB_SETUP_DEPENDENT([PRI_SERVICE_MESSAGES], [ISDN service messages], [PRI], [pri])
|
|
|
|
|
AST_EXT_LIB_SETUP_DEPENDENT([PRI_REVERSE_CHARGE], [ISDN reverse charge], [PRI], [pri])
|
|
|
|
|
# ------------------------------------^
|
|
|
|
|
AST_EXT_LIB_SETUP([RESAMPLE], [LIBRESAMPLE], [resample])
|
|
|
|
|
AST_OPTION_ONLY([sounds-cache], [SOUNDS_CACHE_DIR], [cached sound tarfiles], [${HOME}/.asterisk_sounds_cache])
|
|
|
|
|
AST_EXT_LIB_SETUP([SPANDSP], [SPANDSP], [spandsp])
|
|
|
|
|
AST_EXT_LIB_SETUP([SS7], [ISDN SS7], [ss7])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENR2], [MFR2], [openr2])
|
|
|
|
|
AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
|
|
|
|
|
AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])
|
|
|
|
|
AST_EXT_LIB_SETUP([RESAMPLE], [LIBRESAMPLE], [resample])
|
|
|
|
|
AST_EXT_LIB_SETUP([SDL], [Sdl], [sdl])
|
|
|
|
|
AST_EXT_LIB_SETUP([SDL_IMAGE], [Sdl Image], [SDL_image])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENAIS], [OpenAIS], [openais])
|
|
|
|
|
AST_OPTION_ONLY([sounds-cache], [SOUNDS_CACHE_DIR], [cached sound tarfiles], [${HOME}/.asterisk_sounds_cache])
|
|
|
|
|
AST_EXT_LIB_SETUP([SPANDSP], [SPANDSP], [spandsp])
|
|
|
|
|
AST_EXT_LIB_SETUP([SS7], [ISDN SS7], [ss7])
|
|
|
|
|
AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
|
|
|
|
|
AST_EXT_LIB_SETUP([SPEEX_PREPROCESS], [Speex preprocess routines], [speex])
|
|
|
|
|
AST_EXT_LIB_SETUP([SPEEXDSP], [SpeexDSP], [speexdsp])
|
|
|
|
|
AST_EXT_LIB_SETUP_DEPENDENT([SPEEX_PREPROCESS], [speex_preprocess_ctl], [], [speex])
|
|
|
|
|
AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
|
|
|
|
|
AST_EXT_LIB_SETUP([SQLITE3], [SQLite], [sqlite3])
|
|
|
|
|
AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv])
|
|
|
|
|
AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL Secure Sockets Layer], [ssl])
|
|
|
|
|
AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv])
|
|
|
|
|
AST_EXT_LIB_SETUP([FREETDS], [FreeTDS], [tds])
|
|
|
|
|
AST_EXT_LIB_SETUP([TERMCAP], [Termcap], [termcap])
|
|
|
|
|
AST_EXT_LIB_SETUP([TIMERFD], [timerfd], [timerfd])
|
|
|
|
|
AST_EXT_LIB_SETUP([TINFO], [Term Info], [tinfo])
|
|
|
|
|
AST_EXT_LIB_SETUP([TONEZONE], [tonezone], [tonezone])
|
|
|
|
|
AST_EXT_LIB_SETUP([UNIXODBC], [unixODBC], [unixodbc])
|
|
|
|
@ -389,7 +394,6 @@ AST_EXT_LIB_SETUP([VORBIS], [Vorbis], [vorbis])
|
|
|
|
|
AST_EXT_LIB_SETUP([VPB], [Voicetronix API], [vpb])
|
|
|
|
|
AST_EXT_LIB_SETUP([X11], [X11], [x11])
|
|
|
|
|
AST_EXT_LIB_SETUP([ZLIB], [zlib compression], [z])
|
|
|
|
|
AST_EXT_LIB_SETUP([TIMERFD], [timerfd], [timerfd])
|
|
|
|
|
|
|
|
|
|
# check for basic system features and functionality before
|
|
|
|
|
# checking for package libraries
|
|
|
|
@ -1897,8 +1901,6 @@ AC_SUBST(PBX_GTK2)
|
|
|
|
|
AC_SUBST(GTK2_INCLUDE)
|
|
|
|
|
AC_SUBST(GTK2_LIB)
|
|
|
|
|
|
|
|
|
|
AST_LIBCURL_CHECK_CONFIG([], [7.10.1])
|
|
|
|
|
|
|
|
|
|
# build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
|
|
|
|
|
# or iODBC
|
|
|
|
|
|
|
|
|
|