1 # Process this file with autoconf to produce a configure script.
5 m4_define([PBX_VERSION],
6 m4_bpatsubst(m4_esyscmd([build_tools/make_version .]),
7 [\([0-9.]*\)\(\w\|\W\)*],
9 AC_INIT(asterisk, PBX_VERSION, www.asterisk.org)
11 # cross-compile macros
16 # check existence of the package
17 AC_CONFIG_SRCDIR([asterisk.c])
19 # specify output header file
20 AC_CONFIG_HEADER(include/asterisk/autoconfig.h)
22 AC_COPYRIGHT("Asterisk")
23 AC_REVISION($Revision$)
27 ac_default_prefix=/usr/local
30 ac_default_prefix=/usr
31 if test ${sysconfdir} = '${prefix}/etc'; then
34 if test ${mandir} = '${prefix}/man'; then
40 if test ${localstatedir} = '${prefix}/var'; then
45 AC_DEFINE_UNQUOTED(PBX_PLATFORM, "${host}",
46 [Define this to be the canonical name (cpu-vendor-os) of your system.])
47 AC_DEFINE_UNQUOTED(PBX_CPU, "${host_cpu}",
48 [Define this to be the name of the CPU of your system.])
49 AC_DEFINE_UNQUOTED(PBX_VENDOR, "${host_vendor}",
50 [Define this to be the name of the vendor of your system.])
51 AC_DEFINE_UNQUOTED(PBX_OS, "${host_os}",
52 [Define this to be the name of the OS of your system.])
54 # export some useful defines
57 PBX_VENDOR=${host_vendor}
59 AC_SUBST(PBX_PLATFORM)
65 AC_PATH_TOOL([UNAME], [uname], No)
66 if test ! x"${UNAME}" = xNo; then
67 PBX_OSREV=$(${UNAME} -r)
73 cygwin*|mingw*|windows*|winnt)
75 [Define according to your operating system type.])
83 [Define according to your operating system type.])
88 [Define according to your operating system type.])
93 [Define according to your operating system type.])
95 # XXX temporary hack to let FreeBSD use the default paths
96 # for local stuff. We need a better solution.
97 if test x"${CPPFLAGS}" = x; then
98 CPPFLAGS="-I /usr/local/include"
100 if test x"${LDFLAGS}" = x; then
101 LDFLAGS="-L /usr/local/lib"
105 AC_DEFINE(OpenBSD, 1,
106 [Define according to your operating system type.])
111 [Define according to your operating system type.])
116 [Define according to your operating system type.])
121 [Define according to your operating system type.])
127 # This needs to be before any macros that use the C compiler
131 #ifndef ASTERISK_AUTOCONFIG_H
132 #define ASTERISK_AUTOCONFIG_H
135 #include "asterisk/buildopts.h"
147 # cross-compile checks
148 if test x"${build}" != x"${host}";
150 AC_CHECK_TOOL(CC, gcc, :)
151 AC_CHECK_TOOL(CXX, g++, :)
152 AC_CHECK_TOOL(RANLIB, ranlib, :)
153 AC_CHECK_TOOL(AR, ar, :)
155 if test x"${PBX_OSTYPE}" = xWin32;
157 AC_CHECK_TOOL(NM, nm, :)
158 AC_CHECK_TOOL(WINDRES, windres, :)
159 AC_CHECK_TOOL(DLLWRAP, dllwrap, :)
164 # Checks for programs.
175 AC_PATH_PROG([GREP], [grep], :)
176 AC_PATH_PROG([AR], [ar], :)
177 AC_PATH_PROG([FIND], [find], :)
178 AC_PATH_PROG([COMPRESS], [compress], :)
179 AC_PATH_PROG([BASENAME], [basename], :)
180 AC_PATH_PROG([DIRNAME], [dirname], :)
181 AC_PATH_PROG([SHELL], [sh], :)
182 AC_PATH_PROG([LN], [ln], :)
183 AC_PATH_PROG([DOT], [dot], :)
187 AC_ARG_ENABLE(dev-mode,
188 [ --enable-dev-mode Turn on developer mode],
189 [case "${enableval}" in
190 y|ye|yes) AST_DEVMODE=yes ;;
191 n|no) AST_DEVMODE=no ;;
192 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dev-mode) ;;
194 AC_SUBST(AST_DEVMODE)
196 # from here on down, library checking should be done in alphabetical order
197 # by the --with option name, to make things easier for the users :-)
199 AST_EXT_LIB([asound], [snd_spcm_init], [alsa/asoundlib.h], [ALSA], [Advanced Linux Sound Architecture], [-lm -ldl])
200 AST_EXT_LIB([curses], [initscr], [curses.h], [CURSES], [curses], [])
204 AC_ARG_WITH([gsm], AC_HELP_STRING([--with-gsm=PATH], [use libgsm files in PATH, or 'internal']), [
223 if test "${USE_GSM}" != "no"; then
224 if test "${GSM_SYSTEM}" = "yes"; then
226 if test "x${GSM_DIR}" != "x"; then
227 gsmlibdir="-L${GSM_DIR} -L${GSM_DIR}/lib"
229 AC_CHECK_LIB([gsm], [gsm_create], AC_DEFINE_UNQUOTED([HAVE_GSM], 1,
230 [Define to indicate the GSM library]), [], ${gsmlibdir})
231 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
233 if test "x${GSM_DIR}" != "x"; then
234 gsm_LIB="${gsmlibdir} ${gsm_LIB}"
235 gsm_INCLUDE="-I${GSM_DIR}/include"
241 if test "${GSM_INTERNAL}" = "yes"; then
245 if test "x${PBX_LIBgsm}" = "x0"; then
247 echo "*** The GSM installation on this system appears to be broken."
248 echo "*** Either correct the installation, or run configure"
249 echo "*** including --without-gsm"
255 AC_SUBST([gsm_INCLUDE])
256 AC_SUBST([PBX_LIBgsm])
260 AC_ARG_WITH([kde], AC_HELP_STRING([--with-kde=PATH],[use KDE files in PATH]),[
276 if test "${USE_KDE}" != "no"; then
277 echo -n "checking for crashHandler in -lkdecore... "
278 saved_ldflags="${LDFLAGS}"
279 LDFLAGS="-I${KDE_DIR}/include ${LDFLAGS} -L${KDE_DIR} -L${KDE_DIR}/lib -lkdecore"
283 [#include "kcrash.h"],
284 [KCrash::defaultCrashHandler(1);])
286 [ac_cv_lib_kde_crash="yes"],
287 [ac_cv_lib_kde_crash="no"])
289 LDFLAGS="${saved_ldflags}"
291 if test "${ac_cv_lib_kde_crash}" = "yes"; then
297 if test "${ac_cv_lib_kde_crash}" = "yes"; then
298 KDE_LIB="-lkdecore -lkdeui"
299 if test "${KDE_DIR}" != ""; then
300 KDE_LIB="-L${KDE_DIR} -L${KDE_DIR}/lib ${KDE_LIB}"
301 KDE_INCLUDE="-I${KDE_DIR}/include"
302 AC_SUBST([KDE_INCLUDE])
306 AC_DEFINE([HAVE_LIBKDE], 1, [Define if your system has the KDE library])
307 elif test ! -z "${KDE_MANDATORY}";
310 echo "*** The KDE installation on this system appears to be broken."
311 echo "*** Either correct the installation, or run configure"
312 echo "*** including --without-kde."
318 if test x"${PBX_KDE}" = x1; then
319 AC_PATH_TOOL(KDEINIT, kdeinit, No)
320 if test ! x"${KDEINIT}" = xNo; then
321 KDEDIR=$(${DIRNAME} ${KDEINIT})
322 KDEDIR=$(${DIRNAME} ${KDEDIR})
329 AST_EXT_LIB([iksemel], [iks_start_sasl], [iksemel.h], [IKSEMEL], [Iksemel Jabber Library])
330 AST_EXT_LIB([nbs], [nbs_connect], [nbs.h], [NBS], [Network Broadcast Sound])
331 AST_EXT_LIB([ncurses], [initscr], [curses.h], [NCURSES], [ncurses], [])
333 AC_ARG_WITH([netsnmp], AC_HELP_STRING([--with-netsnmp=PATH],[use Net-SNMP in PATH]),[
339 NETSNMP_MANDATORY="yes"
342 NETSNMP_DIR="${withval}"
343 NETSNMP_MANDATORY="yes"
350 if test "${USE_NETSNMP}" != "no"; then
351 if test "x${NETSNMP_DIR}" != "x"; then
352 AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No, [${NETSNMP_DIR}/bin])
353 if test x"${NETSNMP_CONFIG}" = xNo; then
355 echo "*** net-snmp-config was not found in the path you specified:"
356 echo "*** ${NETSNMP_DIR}/bin"
357 echo "*** Either correct the installation, or run configure"
358 echo "*** including --without-netsnmp"
362 AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No)
366 if test x"${NETSNMP_CONFIG}" != xNo; then
367 NETSNMP_libs=`net-snmp-config --agent-libs`
369 AC_CHECK_LIB([netsnmp], [snmp_register_callback], AC_DEFINE_UNQUOTED([HAVE_NETSNMP], 1,
370 [Define to indicate the Net-SNMP library]), [], ${NETSNMP_libs})
372 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
373 NETSNMP_LIB="${NETSNMP_libs}"
375 elif test ! -z "${NETSNMP_MANDATORY}";
378 echo "*** The Net-SNMP installation on this system appears to be broken."
379 echo "*** Either correct the installation, or run configure"
380 echo "*** including --without-netsnmp"
383 elif test ! -z "${NETSNMP_MANDATORY}";
386 echo "*** The Net-SNMP installation on this system appears to be broken."
387 echo "*** Either correct the installation, or run configure"
388 echo "*** including --without-netsnmp"
391 AC_SUBST([NETSNMP_LIB])
392 AC_SUBST([PBX_NETSNMP])
394 AST_EXT_LIB([newt], [newtBell], [newt.h], [NEWT], [newt])
395 AST_EXT_LIB([odbc], [SQLConnect], [sql.h], [UNIXODBC], [unixODBC])
396 AST_EXT_LIB([ogg], [ogg_sync_init], [], [OGG], [OGG])
397 AST_EXT_LIB([osptk], [OSPPCryptoDecrypt], [osp/osp.h], [OSPTK], [OSP Toolkit], [-lcrypto -lssl])
400 AC_CHECK_HEADER([linux/soundcard.h],
403 AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
405 if test "$PBX_LIBOSS" = "0"; then
406 AC_CHECK_HEADER([sys/soundcard.h],
409 AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
412 if test "$PBX_LIBOSS" = "0"; then
413 AST_EXT_LIB([ossaudio], [oss_ioctl_mixer], [soundcard.h], [OSS], [Open Sound System])
416 AC_SUBST([PBX_LIBOSS])
418 AC_ARG_WITH([pq], AC_HELP_STRING([--with-pq=PATH],[use PostgreSQL files in PATH]),[
435 if test "${USE_PQ}" != "no"; then
436 if test "x${PQ_DIR}" != "x"; then
437 AC_PATH_TOOL([PG_CONFIG], [pg_config], No, [${PQ_DIR}/bin])
438 if test x"${PG_CONFIG}" = xNo; then
440 echo "*** pg_config was not found in the path you specified:"
441 echo "*** ${PQ_DIR}/bin"
442 echo "*** Either correct the installation, or run configure"
443 echo "*** including --without-pq"
447 AC_PATH_TOOL([PG_CONFIG], [pg_config], No)
451 if test x"${PG_CONFIG}" != xNo; then
452 PQ_libdir=`pg_config --libdir`
453 PQ_includedir=`pg_config --includedir`
455 AC_CHECK_LIB([pq], [PQexec], AC_DEFINE_UNQUOTED([HAVE_PQ], 1,
456 [Define to indicate the PostgreSQL library]), [], -L${PQ_libdir} -lz)
458 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
459 pq_LIB="-L${PQ_libdir} -lpq -lz"
460 pq_INCLUDE="-I${PQ_includedir}"
462 elif test ! -z "${PQ_MANDATORY}";
465 echo "*** The PostgreSQL installation on this system appears to be broken."
466 echo "*** Either correct the installation, or run configure"
467 echo "*** including --without-pq"
470 elif test ! -z "${PQ_MANDATORY}";
473 echo "*** The PostgreSQL installation on this system appears to be broken."
474 echo "*** Either correct the installation, or run configure"
475 echo "*** including --without-pq"
478 AC_SUBST([pq_INCLUDE])
480 AC_SUBST([PBX_LIBpq])
482 AST_EXT_LIB([popt], [poptStrerror], [popt.h], [POPT], [popt])
483 AST_EXT_LIB([pri], [pri_call], [libpri.h], [LIBPRI], [ISDN PRI])
485 PLATFORM_PTLIB="ptlib_${OSTYPE}_${MACHTYPE}_r"
487 AC_ARG_WITH([pwlib], AC_HELP_STRING([--with-pwlib=PATH],[use PWLib files in PATH]),[
495 PWLIB_DIR="${withval}"
499 if test "${USE_PWLIB}" != "no"; then
500 echo -n "checking for existence of pwlib... "
502 saved_ldflags="${LDFLAGS}"
503 LDFLAGS="${LDFLAGS} -L${PWLIB_DIR} -l${PLATFORM_PTLIB}"
508 [#include "${PWDIR_DIR}ptime.h"],
509 [int q = PTime::IsDaylightSaving();])
512 ac_cv_lib_pwlib="yes"
518 LDFLAGS="${saved_ldflags}"
522 if test "${ac_cv_lib_pwlib}" = "yes"; then
523 PWLIB_LIB="-l{PLATFORM_PWLIB}"
524 if test "${PWLIB_DIR}" != ""; then
525 PWLIB_LIB="-L${PWLIB_DIR}/lib ${PWLIB_LIB}"
526 PWLIB_INCLUDE="-I${PWLIB_DIR}/include"
527 AC_SUBST([PWLIB_INCLUDE])
529 AC_SUBST([PWLIB_LIB])
531 AC_DEFINE([HAVE_LIBPWLIB], 1, [Define if your system has the pwlib libraries.])
532 elif test ! -z "${PWLIB_DIR}";
535 echo "*** The PWLIB installation on this system appears to be broken."
536 echo "*** Either correct the installation, or run configure"
537 echo "*** including --without-pwlib"
541 AC_SUBST([PBX_LIBPWLIB])
545 AC_ARG_WITH([qt], AC_HELP_STRING([--with-qt=PATH],[use Qt files in PATH]),[
561 if test "${USE_QT}" != "no"; then
562 echo -n "checking for QDate in -lqt... "
564 saved_cppflags="${CPPFLAGS}"
565 if test "x${QT_DIR}" != "x"; then
566 LIBS="${LIBS} -L${QT_DIR}/lib"
567 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
574 [#include <qt3/qdatetime.h>],
577 [ac_cv_lib_qt_qt_date="yes"],
578 [ac_cv_lib_qt_qt_date="no"])
580 CPPFLAGS="${saved_cppflags}"
582 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
584 saved_cppflags="${CPPFLAGS}"
585 if test "x${QT_DIR}" != "x"; then
586 LIBS="${LIBS} -L${QT_DIR}/lib"
587 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
589 LIBS="${LIBS} -lqt-mt"
594 [#include <qt3/qdatetime.h>],
597 [ac_cv_lib_qt_qt_date="yes"],
598 [ac_cv_lib_qt_qt_date="no"])
600 CPPFLAGS="${saved_cppflags}"
603 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
609 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
611 if test "${QT_DIR}" != ""; then
612 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
613 QT_INCLUDE="-I${QT_DIR}/include"
614 AC_SUBST([QT_INCLUDE])
618 AC_DEFINE([HAVE_LIBQT], 1, [Define if your system has the Qt library])
619 AC_PATH_TOOL(QTMOC, moc, No)
620 elif test ! -z "${QT_MANDATORY}";
623 echo "*** The Qt installation on this system appears to be broken."
624 echo "*** Either correct the installation, or run configure"
625 echo "*** including --without-qt."
633 AST_EXT_LIB([radiusclient-ng], [rc_read_config], [radiusclient-ng.h], [RADIUSCLIENT], [Radius Client])
634 AST_EXT_LIB([speex], [speex_encode], [speex/speex.h], [SPEEX], [Speex], [-lm])
635 AST_EXT_LIB([sqlite], [sqlite_exec], [sqlite.h], [SQLITE], [SQLite])
636 AST_EXT_LIB([ssl], [ssl2_connect], [openssl/ssl.h], [OPENSSL], [OpenSSL], [-lcrypto])
637 AST_EXT_LIB([tds], [tds_version], [tds.h], [FREETDS], [FreeTDS])
639 if test "${PBX_LIBFREETDS}" != "0";
641 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
643 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
646 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
649 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
654 AST_EXT_LIB([termcap], [tgetent], [], [TERMCAP], [Termcap])
655 AST_EXT_LIB([tinfo], [tgetent], [], [TINFO], [Term Info])
657 if test "${PBX_OSTYPE}" = "Linux" ; then
658 AST_EXT_LIB([tonezone], [tone_zone_find], [tonezone.h], [TONEZONE], [tonezone])
660 AST_EXT_LIB([tonezone], [tone_zone_find], [tonezone.h], [TONEZONE], [tonezone], [-lm])
663 AST_EXT_LIB([vorbis], [vorbis_info_init], [vorbis/codec.h], [VORBIS], [Vorbis], [-lm -lvorbisenc])
667 AC_ARG_WITH([vpb], AC_HELP_STRING([--with-vpb=PATH],[use vpb files in PATH]),[
681 if test "${USE_VPB}" != "no"; then
682 echo -n "checking for vpb_open in -lvpb... "
684 saved_cppflags="${CPPFLAGS}"
685 if test "x${VPB_DIR}" != "x"; then
686 LIBS="${LIBS} -L${VPB_DIR} -L${VPB_DIR}/lib"
687 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
689 LIBS="${LIBS} -lvpb -lpthread"
693 [#include <vpbapi.h>],
694 [int q = vpb_open(0,0);])
697 ac_cv_lib_vpb_vpb_open="yes"
700 ac_cv_lib_vpb_vpb_open="no"
704 CPPFLAGS="${saved_cppflags}"
706 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
708 if test "${VPB_DIR}" != ""; then
709 VPB_LIB="-L${VPB_DIR} -L${VPB_DIR}/lib ${VPB_LIB}"
710 VPB_INCLUDE="-I${VPB_DIR}/include"
711 AC_SUBST([VPB_INCLUDE])
715 AC_DEFINE([HAVE_LIBVPB], 1, [Define if your system has the VoiceTronix (vpb) libraries.])
716 elif test ! -z "${VPB_MANDATORY}";
719 echo "*** The VoiceTronix (vpb) installation on this system appears to be broken."
720 echo "*** Either correct the installation, or run configure"
721 echo "*** including --without-vpb."
725 AC_SUBST([PBX_LIBvpb])
729 AST_EXT_LIB([z], [compress], [zlib.h], [ZLIB], [zlib])
731 AC_ARG_WITH([zaptel], AC_HELP_STRING([--with-zaptel=PATH], [use Zaptel files in PATH]), [
740 ZAPTEL_DIR="${withval}"
747 if test "${USE_ZAPTEL}" != "no"; then
748 echo -n "checking for zt_transcode_header in zaptel.h... "
749 saved_cppflags="${CPPFLAGS}"
750 if test "x${ZAPTEL_DIR}" != "x"; then
751 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
756 [#include <zaptel.h>],
757 [struct zt_transcode_header test;])
766 CPPFLAGS="${saved_cppflags}"
767 if test "${ac_cv_zaptel_h}" = "yes"; then
768 if test "${ZAPTEL_DIR}" != ""; then
769 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
770 AC_SUBST([ZAPTEL_INCLUDE])
773 AC_DEFINE([HAVE_ZAPTEL], 1, [Define if your system has the Zaptel headers.])
774 elif test ! -z "${ZAPTEL_MANDATORY}";
777 echo "*** The Zaptel installation on this system appears to be broken."
778 echo "*** Either correct the installation, or run configure"
779 echo "*** including --without-zaptel."
784 AC_SUBST([PBX_ZAPTEL])
787 if test "x$TERMCAP_LIB" != "x" ; then
788 EDITLINE_LIB="$TERMCAP_LIB"
789 elif test "x$TINFO_LIB" != "x" ; then
790 EDITLINE_LIB="$TINFO_LIB"
791 elif test "x$CURSES_LIB" != "x" ; then
792 EDITLINE_LIB="$CURSES_LIB"
793 elif test "x$NCURSES_LIB" != "x" ; then
794 EDITLINE_LIB="$NCURSES_LIB"
796 echo "*** termcap support not found"
799 AC_SUBST(EDITLINE_LIB)
801 AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0])
804 AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [
805 #include <linux/version.h>
806 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
807 #include <linux/compiler.h>
810 AC_SUBST(PBX_IXJUSER)
813 AC_CHECK_TOOL(GTKCONFIG, gtk-config, No)
814 if test ! "x${GTKCONFIG}" = xNo; then
815 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
816 GTK_LIB=$(${GTKCONFIG} --libs gthread)
818 AC_DEFINE([HAVE_GTK], 1, [Define if your system has the GTK libraries.])
821 AC_SUBST(GTK_INCLUDE)
825 AC_PATH_TOOL([CURL], [curl-config], No)
826 if test ! x"${CURL}" = xNo; then
828 CURLLIB=$(${CURL} --libs)
830 AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
839 AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h])
843 # Checks for typedefs, structures, and compiler characteristics.
852 AC_CHECK_MEMBERS([struct stat.st_blksize])
856 AC_CHECK_TYPES([ptrdiff_t])
858 # Checks for library functions.
860 AC_FUNC_CLOSEDIR_VOID
861 AC_FUNC_ERROR_AT_LINE
864 AC_PROG_GCC_TRADITIONAL
870 AC_FUNC_SELECT_ARGTYPES
871 AC_FUNC_SETVBUF_REVERSED
880 AC_CHECK_FUNCS([atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol unsetenv utime strtoq strcasestr asprintf vasprintf])
882 echo -n "checking for compiler atomic operations... "
884 AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);]),
886 AC_DEFINE([HAVE_GCC_ATOMICS], 1, [Define to 1 if your GCC C compiler provides atomic operations.]),
890 AC_CHECK_HEADER([libkern/OSAtomic.h],
891 [AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])
895 AC_CONFIG_FILES([build_tools/menuselect-deps makeopts])
899 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
900 echo " .\$7\$7.. .7\$\$7:. "
901 echo " .\$\$:. ,\$7.7 "
902 echo " .\$7. 7\$\$\$\$ .\$\$77 "
903 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
904 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
905 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
906 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
907 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
908 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
909 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
910 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
911 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
912 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
913 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
914 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
915 echo " \$\$\$\$\$ \$\$\$ "
916 echo " \$\$\$\$7. \$\$ (TM) "
917 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
918 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
919 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
922 echo "Package configured for: "
923 echo " OS type : $PBX_OSTYPE"
924 echo " Host CPU : $host_cpu"
925 if test "x${crossCompile}" = xYes; then
927 echo " Cross Compilation = YES"
928 echo " Target = ${host}"