move extern declaration for this option to a header file where it belongs
[asterisk-bristuff.git] / configure.ac
blob88b59de644988547f97a0edc8b206873229eedaf
1 # Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.60)
5 m4_define([PBX_VERSION],
6           m4_bpatsubst(m4_esyscmd([build_tools/make_version .]),
7                        [\([0-9.]*\)\(\w\|\W\)*],
8                        [\1]))
9 AC_INIT(asterisk, PBX_VERSION, www.asterisk.org)
11 # cross-compile macros
12 AC_CANONICAL_BUILD
13 AC_CANONICAL_HOST
15 # check existence of the package
16 AC_CONFIG_SRCDIR([main/asterisk.c])
18 # specify output header file
19 AC_CONFIG_HEADER(include/asterisk/autoconfig.h)
21 AC_COPYRIGHT("Asterisk")
22 AC_REVISION($Revision$)
24 AC_GNU_SOURCE
25 AC_USE_SYSTEM_EXTENSIONS
27 case "${host_os}" in
28      freebsd*)
29      ac_default_prefix=/usr/local
30      CPPFLAGS=-I/usr/local/include
31      LDFLAGS=-L/usr/local/lib
32      ;;
33      *)
34      ac_default_prefix=/usr
35      if test ${sysconfdir} = '${prefix}/etc'; then
36         sysconfdir=/etc
37      fi
38      if test ${mandir} = '${prefix}/man'; then
39         mandir=/usr/share/man
40      fi
41      ;;
42 esac
44 if test ${localstatedir} = '${prefix}/var'; then
45      localstatedir=/var
48 BUILD_PLATFORM=${build}
49 BUILD_CPU=${build_cpu}
50 BUILD_VENDOR=${build_vendor}
51 BUILD_OS=${build_os}
53 AC_SUBST(BUILD_PLATFORM)
54 AC_SUBST(BUILD_CPU)
55 AC_SUBST(BUILD_VENDOR)
56 AC_SUBST(BUILD_OS)
58 HOST_PLATFORM=${host}
59 HOST_CPU=${host_cpu}
60 HOST_VENDOR=${host_vendor}
61 HOST_OS=${host_os}
63 AC_SUBST(HOST_PLATFORM)
64 AC_SUBST(HOST_CPU)
65 AC_SUBST(HOST_VENDOR)
66 AC_SUBST(HOST_OS)
68 case "${host_os}" in
69      freebsd*)
70      OSARCH=FreeBSD
71      ;;
72      netbsd*)
73      OSARCH=NetBSD
74      ;;
75      openbsd*)
76      OSARCH=OpenBSD
77      ;;
78      solaris*)
79      OSARCH=SunOS
80      ;;
81      *)
82      OSARCH=${HOST_OS}
83      ;;
84 esac
86 AC_SUBST(OSARCH)
88 #  check for uname
89 AC_PATH_TOOL([UNAME], [uname], No)
90 if test ! x"${UNAME}" = xNo; then
91    PBX_OSREV=$(${UNAME} -r)
93 AC_SUBST(PBX_OSREV)
95 AH_TOP(
96 #ifndef ASTERISK_AUTOCONFIG_H
97 #define ASTERISK_AUTOCONFIG_H
99 #include "asterisk/buildopts.h"
101 #ifndef _REENTRANT
102 #define _REENTRANT
103 #endif
106 AH_BOTTOM(
107 #endif
110 # cross-compile checks
111 if test "${cross_compiling}" = "yes"; 
112 then
113    AC_CHECK_TOOL(CC, gcc, :)
114    AC_CHECK_TOOL(CXX, g++, :)
115    AC_CHECK_TOOL(LD, ld, :)
116    AC_CHECK_TOOL(RANLIB, ranlib, :)
117    AC_CHECK_TOOL(AR, ar, :)
120 # Checks for programs.
121 AC_PROG_CC
122 AC_PROG_CXX
123 AC_PROG_CPP
124 AC_PROG_CXXCPP
125 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
126 # the developers regenerating the configure script don't have to install libtool.
127 AST_PROG_LD
128 AC_PROG_AWK
129 AC_PROG_INSTALL
130 AC_PROG_LN_S
131 AC_PROG_RANLIB
132 AST_CHECK_GNU_MAKE
134 GNU_LD=0
135 if test "x$with_gnu_ld" = "xyes" ; then
136    GNU_LD=1
138 AC_SUBST(GNU_LD)
140 AC_PATH_PROG([GREP], [grep], :)
141 AC_PATH_PROG([AR], [ar], :)
142 AC_PATH_PROG([FIND], [find], :)
143 AC_PATH_PROG([COMPRESS], [compress], :)
144 AC_PATH_PROG([BASENAME], [basename], :)
145 AC_PATH_PROG([ID], [id], :)
146 AC_PATH_PROG([DIRNAME], [dirname], :)
147 AC_PATH_PROG([SHELL], [sh], :)
148 AC_PATH_PROG([LN], [ln], :)
149 AC_PATH_PROG([DOT], [dot], :)
150 AC_PATH_PROG([STRIP], [strip], :)
151 AC_PATH_PROG([WGET], [wget], :)
152 if test "${WGET}" != ":" ; then
153   DOWNLOAD=${WGET}
154 else
155   AC_PATH_PROG([FETCH], [fetch], [:])
156   DOWNLOAD=${FETCH}
158 AC_SUBST(DOWNLOAD)
160 AC_LANG(C)
162 AC_ARG_ENABLE(dev-mode,
163         [  --enable-dev-mode    Turn on developer mode],
164         [case "${enableval}" in
165               y|ye|yes) AST_DEVMODE=yes ;;
166               n|no)  AST_DEVMODE=no ;;
167               *) AC_MSG_ERROR(bad value ${enableval} for --enable-dev-mode)  ;;
168         esac])
169 AC_SUBST(AST_DEVMODE)
171 # package option names should be in alphabetical order
172 # by the --with option name, to make things easier for the users :-)
174 AST_EXT_LIB_SETUP([ALSA], [Advanced Linux Sound Architecture], [asound])
175 AST_EXT_LIB_SETUP([CURL], [cURL], [curl])
176 AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
177 AST_EXT_LIB_SETUP([GNUTLS], [GNU TLS support (used for iksemel only)], [gnutls])
178 AST_EXT_LIB_SETUP([GSM], [GSM], [gsm], [, or 'internal'])
179 AST_EXT_LIB_SETUP([IKSEMEL], [Iksemel Jabber Library], [iksemel])
180 AST_EXT_LIB_SETUP([IMAP_TK], [UW IMAP Toolkit], [imap])
181 AST_EXT_LIB_SETUP([ISDNNET], [ISDN4Linux Library], [isdnnet])
182 AST_EXT_LIB_SETUP([KDE], [KDE], [kde])
183 AST_EXT_LIB_SETUP([MISDN], [mISDN User Library], [misdn])
184 AST_EXT_LIB_SETUP([NBS], [Network Broadcast Sound], [nbs])
185 AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
186 AST_EXT_LIB_SETUP([NETSNMP], [Net-SNMP], [netsnmp])
187 AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
188 AST_EXT_LIB_SETUP([UNIXODBC], [unixODBC], [odbc])
189 AST_EXT_LIB_SETUP([OGG], [OGG], [ogg])
190 AST_EXT_LIB_SETUP([OSPTK], [OSP Toolkit], [osptk])
191 AST_EXT_LIB_SETUP([OSS], [Open Sound System], [oss])
192 AST_EXT_LIB_SETUP([POPT], [popt], [popt])
193 AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
194 AST_EXT_LIB_SETUP([PRI], [ISDN PRI], [pri])
195 AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib])
196 AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
197 AST_EXT_LIB_SETUP([QT], [Qt], [qt])
198 AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])
199 AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
200 AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
201 AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv])
202 AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL], [ssl])
203 AST_EXT_LIB_SETUP([FREETDS], [FreeTDS], [tds])
204 AST_EXT_LIB_SETUP([TERMCAP], [Termcap], [termcap])
205 AST_EXT_LIB_SETUP([TINFO], [Term Info], [tinfo])
206 AST_EXT_LIB_SETUP([TONEZONE], [tonezone], [tonezone])
207 AST_EXT_LIB_SETUP([VORBIS], [Vorbis], [vorbis])
208 AST_EXT_LIB_SETUP([VPB], [Voicetronix API], [vpb])
209 AST_EXT_LIB_SETUP([ZLIB], [zlib], [z])
210 AST_EXT_LIB_SETUP([ZAPTEL], [Zaptel], [zaptel])
212 # check for basic system features and functionality before
213 # checking for package libraries
215 AC_FUNC_ALLOCA
216 AC_HEADER_DIRENT
217 AC_HEADER_STDC
218 AC_HEADER_SYS_WAIT
219 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])
221 AC_SYS_LARGEFILE
223 # Checks for typedefs, structures, and compiler characteristics.
224 AC_HEADER_STDBOOL
225 AC_C_CONST
226 AC_TYPE_UID_T
227 AC_C_INLINE
228 AC_TYPE_MODE_T
229 AC_TYPE_OFF_T
230 AC_TYPE_PID_T
231 AC_TYPE_SIZE_T
232 AC_CHECK_MEMBERS([struct stat.st_blksize])
233 AC_HEADER_TIME
234 AC_STRUCT_TM
235 AC_C_VOLATILE
236 AC_CHECK_TYPES([ptrdiff_t])
238 # Checks for library functions.
239 AC_FUNC_CHOWN
240 AC_FUNC_CLOSEDIR_VOID
241 AC_FUNC_ERROR_AT_LINE
242 AST_FUNC_FORK
243 AC_FUNC_FSEEKO
244 AC_PROG_GCC_TRADITIONAL
245 # XXX: these are commented out until we determine whether it matters if our malloc()
246 # acts exactly like glibc's or not
247 # AC_FUNC_MALLOC
248 # AC_FUNC_REALLOC
249 AC_FUNC_MEMCMP
250 AC_FUNC_MKTIME
251 AC_FUNC_MMAP
252 AC_FUNC_SELECT_ARGTYPES
253 AC_FUNC_SETVBUF_REVERSED
254 AC_TYPE_SIGNAL
255 AC_FUNC_STAT
256 AC_FUNC_STRCOLL
257 AC_FUNC_STRFTIME
258 AC_FUNC_STRNLEN
259 AC_FUNC_STRTOD
260 AC_FUNC_UTIME_NULL
261 AC_FUNC_VPRINTF
262 AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf])
264 AC_MSG_CHECKING(for compiler atomic operations)
265 AC_LINK_IFELSE(
266 AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);]),
267 AC_MSG_RESULT(yes)
268 AC_DEFINE([HAVE_GCC_ATOMICS], 1, [Define to 1 if your GCC C compiler provides atomic operations.]),
269 AC_MSG_RESULT(no)
272 AST_GCC_ATTRIBUTE(pure)
273 AST_GCC_ATTRIBUTE(malloc)
274 AST_GCC_ATTRIBUTE(const)
275 AST_GCC_ATTRIBUTE(unused)
276 AST_GCC_ATTRIBUTE(always_inline)
278 AC_MSG_CHECKING(for -ffunction-sections support)
279 saved_CFLAGS="${CFLAGS}"
280 CFLAGS="${CFLAGS} -ffunction-sections"
281 AC_COMPILE_IFELSE(
282         AC_LANG_PROGRAM([], [int x = 1;]),
283         AC_MSG_RESULT(yes)
284         [saved_LDFLAGS="${LDFLAGS}"]
285         [LDFLAGS="${LDFLAGS} -Wl,--gc-sections"]
286         AC_MSG_CHECKING(for --gc-sections support)
287         AC_LINK_IFELSE(
288                 AC_LANG_PROGRAM([], [int x = 1;]),
289                 AC_MSG_RESULT(yes)
290                 [GC_CFLAGS="-ffunction-sections"]
291                 [[GC_LDFLAGS="-Wl,--gc-sections"]],
292                 AC_MSG_RESULT(no)
293         )
294         [LDFLAGS="${saved_LDFLAGS}"],
295         AC_MSG_RESULT(no)
297 CFLAGS="${saved_CFLAGS}"
298 AC_SUBST(GC_CFLAGS)
299 AC_SUBST(GC_LDFLAGS)
301 AC_MSG_CHECKING(for res_ninit)
302 AC_LINK_IFELSE(
303         AC_LANG_PROGRAM([#include <resolv.h>],
304                         [int foo = res_ninit(NULL);]),
305         AC_MSG_RESULT(yes)
306         AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.]),
307         AC_MSG_RESULT(no)
310 AC_MSG_CHECKING(for RTLD_NOLOAD)
311 AC_LINK_IFELSE(
312         AC_LANG_PROGRAM([#include <dlfcn.h>],
313                         [int foo = RTLD_NOLOAD;]),
314         AC_MSG_RESULT(yes)
315         AC_DEFINE([HAVE_RTLD_NOLOAD], 1, [Define to 1 if your system has a dynamic linker that supports RTLD_NOLOAD.]),
316         AC_MSG_RESULT(no)
319 AC_MSG_CHECKING(for IP_MTU_DISCOVER)
320 AC_LINK_IFELSE(
321         AC_LANG_PROGRAM([#include <netinet/in.h>],
322                         [int foo = IP_MTU_DISCOVER;]),
323         AC_MSG_RESULT(yes)
324         AC_DEFINE([HAVE_IP_MTU_DISCOVER], 1, [Define to 1 if your system has PMTU discovery on UDP sockets.]),
325         AC_MSG_RESULT(no)
328 AC_CHECK_HEADER([libkern/OSAtomic.h],
329                 [AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])
331 AC_CHECK_SIZEOF(int)
333 # do the package library checks now
335 AST_EXT_LIB_CHECK([ALSA], [asound], [snd_spcm_init], [alsa/asoundlib.h], [-lm -ldl])
337 AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
339 GSM_INTERNAL="yes"
340 AC_SUBST(GSM_INTERNAL)
341 GSM_SYSTEM="yes"
342 if test "${USE_GSM}" != "no"; then
343    if test "${GSM_DIR}" = "internal"; then
344       GSM_SYSTEM="no"
345    elif test "${GSM_DIR}" != ""; then
346       GSM_INTERNAL="no"
347    fi
348    if test "${GSM_SYSTEM}" = "yes"; then
349       gsmlibdir=""
350       if test "x${GSM_DIR}" != "x"; then
351          if test -d ${GSM_DIR}/lib; then
352             gsmlibdir="-L${GSM_DIR}/lib"
353          else
354             gsmlibdir="-L${GSM_DIR}"
355          fi
356       fi
357       AC_CHECK_LIB([gsm], [gsm_create], AC_DEFINE_UNQUOTED([HAVE_GSM], 1,
358       [Define to indicate the GSM library]), [], ${gsmlibdir})
359       if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
360          GSM_LIB="-lgsm"
361          if test "x${GSM_DIR}" != "x"; then
362             GSM_LIB="${gsmlibdir} ${GSM_LIB}"
363             GSM_INCLUDE="-I${GSM_DIR}/include"
364          fi
365          PBX_GSM=1
366          GSM_INTERNAL="no"
367       fi
368    fi
369    if test "${GSM_INTERNAL}" = "yes"; then
370       PBX_GSM=1
371    fi
374 AST_EXT_LIB_CHECK([IKSEMEL], [iksemel], [iks_start_sasl], [iksemel.h])
376 if test "${PBX_IKSEMEL}" = 1; then
377    AST_EXT_LIB_CHECK([GNUTLS], [gnutls], [gnutls_bye])
378    if test "${PBX_GNUTLS}" = 1; then
379       IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
380    fi
383 if test "${USE_IMAP_TK}" != "no"; then
384    if test "${IMAP_TK_DIR}" = ""; then
385       IMAP_TK_DIR=`pwd`"/../imap-2004g"
386    fi
387    AC_MSG_CHECKING(for UW IMAP Toolkit c-client library)
388    saved_cppflags="${CPPFLAGS}"
389    saved_libs="${LIBS}"
390    if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
391       imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
392    fi
393    CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
394    LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
395    AC_LINK_IFELSE(
396         AC_LANG_PROGRAM(
397                 [#include "c-client.h"
398                 void mm_searched (MAILSTREAM *stream,unsigned long number)
399                 {
400                 }
401                 void mm_exists (MAILSTREAM *stream,unsigned long number)
402                 {
403                 }
404                 void mm_expunged (MAILSTREAM *stream,unsigned long number)
405                 {
406                 }
407                 void mm_flags (MAILSTREAM *stream,unsigned long number)
408                 {
409                 }
410                 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
411                 {
412                 }
413                 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
414                 {
415                 }
416                 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
417                 {
418                 }
419                 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
420                 {
421                 }
422                 void mm_log (char *string,long errflg)
423                 {
424                 }
425                 void mm_dlog (char *string)
426                 {
427                 }
428                 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
429                 {
430                 }
431                 void mm_critical (MAILSTREAM *stream)
432                 {
433                 }
434                 void mm_nocritical (MAILSTREAM *stream)
435                 {
436                 }
437                 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
438                 {
439                 }
440                 void mm_fatal (char *string)
441                 {
442                 }],
443                 [
444                 MAILSTREAM *foo = mail_open(NULL, "", 0);
445                 ]
446         ),
447         [ac_cv_imap_tk="yes"],
448         [ac_cv_imap_tk="no"]
449    )
450    if test "${ac_cv_imap_tk}" = "yes"; then
451    AC_LINK_IFELSE(
452       AC_LANG_PROGRAM(
453          [#include "c-client.h"
454          void mm_searched (MAILSTREAM *stream,unsigned long number)
455          {
456          }
457          void mm_exists (MAILSTREAM *stream,unsigned long number)
458          {
459          }
460          void mm_expunged (MAILSTREAM *stream,unsigned long number)
461          {
462          }
463          void mm_flags (MAILSTREAM *stream,unsigned long number)
464          {
465          }
466          void mm_notify (MAILSTREAM *stream,char *string,long errflg)
467          {
468          }
469          void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
470          {
471          }
472          void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
473          {
474          }
475          void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
476          {
477          }
478          void mm_log (char *string,long errflg)
479          {
480          }
481          void mm_dlog (char *string)
482          {
483          }
484          void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
485          {
486          }
487          void mm_critical (MAILSTREAM *stream)
488          {
489          }
490          void mm_nocritical (MAILSTREAM *stream)
491          {
492          }
493          long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
494          {
495          }
496          void mm_fatal (char *string)
497          {
498          }],
499          [
500          long check = mail_expunge_full(NULL, "", 0);
501          ]
502       ),
503       [ac_cv_imap_tk2006="yes"],
504       [ac_cv_imap_tk2006="no"]
505   )
506   fi
507    CPPFLAGS="${saved_cppflags}"
508    LIBS="${saved_libs}"
509    if test "${ac_cv_imap_tk}" = "yes"; then
510       AC_MSG_RESULT(yes) 
511       IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
512       IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
513       PBX_IMAP_TK=1
514       AC_DEFINE([HAVE_IMAP_TK], 1, [Define if your system has the UW IMAP Toolkit c-client library.])
515       if test "${ac_cv_imap_tk2006}" = "yes"; then
516          AC_DEFINE([HAVE_IMAP_TK2006], 1, [Define if your system has the UW IMAP Toolkit c-client library version 2006 or greater.])
517       fi
518    elif test ! -z "${IMAP_TK_MANDATORY}"; then
519       AC_MSG_RESULT(no) 
520       AC_MSG_NOTICE([***])
521       AC_MSG_NOTICE([*** The UW IMAP Toolkit installation on this system appears to be broken.])
522       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
523       AC_MSG_NOTICE([*** including --without-imap.])
524       exit 1
525    else
526       AC_MSG_RESULT(no) 
527    fi
530 AC_LANG_PUSH(C++)
532 if test "${USE_KDE}" != "no"; then
533    AC_MSG_CHECKING(for crashHandler in -lkdecore)
534    saved_libs="${LIBS}"
535    saved_cppflags="${CPPFLAGS}"
536    CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
537    if test -d ${KDE_DIR}/lib; then
538       kdelibdir="${KDE_DIR}/lib"
539    else
540       kdelibdir="${KDE_DIR}"
541    fi
542    LIBS="${LIBS} -L${kdelibdir} -lkdecore"
544    AC_LINK_IFELSE(
545         [AC_LANG_PROGRAM(
546                         [#include "kcrash.h"],
547                         [KCrash::defaultCrashHandler(1);])
548         ],
549         [ac_cv_lib_kde_crash="yes"],
550         [ac_cv_lib_kde_crash="no"])
551                 
552    LIBS="${saved_libs}"
553    CPPFLAGS="${saved_cppflags}"
554         
555    if test "${ac_cv_lib_kde_crash}" = "yes"; then
556       AC_MSG_RESULT(yes) 
557       KDE_LIB="-lkdecore -lkdeui"
558       if test "${KDE_DIR}" != ""; then
559          KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
560          KDE_INCLUDE="-I${KDE_DIR}/include"
561       fi
562       PBX_KDE=1
563       AC_DEFINE([HAVE_LIBKDE], 1, [Define if your system has the KDE libraries.])
564    elif test ! -z "${KDE_MANDATORY}"; then
565       AC_MSG_RESULT(no) 
566       AC_MSG_NOTICE([***])
567       AC_MSG_NOTICE([*** The KDE installation on this system appears to be broken.])
568       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
569       AC_MSG_NOTICE([*** including --without-kde.])
570       exit 1
571    else
572       AC_MSG_RESULT(no) 
573    fi
575 if test "${PBX_KDE}" = 1; then
576    AC_PATH_TOOL(KDEINIT, kdeinit, No)
577    if test ! x"${KDEINIT}" = xNo; then
578       KDEDIR=$(${DIRNAME} ${KDEINIT})
579       KDEDIR=$(${DIRNAME} ${KDEDIR})
580    fi
581    AC_SUBST([KDEDIR])
584 AC_LANG_POP
586 AST_EXT_LIB_CHECK([MISDN], [mISDN], [mISDN_open], [mISDNuser/mISDNlib.h])
588 if test "${PBX_MISDN}" = 1; then
589    AST_EXT_LIB_CHECK([ISDNNET], [isdnnet], [init_manager], [mISDNuser/isdn_net.h], [-lmISDN -lpthread])
590    AST_EXT_LIB_CHECK([SUPPSERV], [suppserv], [encodeFac], [mISDNuser/suppserv.h])
593 AST_EXT_LIB_CHECK([NBS], [nbs], [nbs_connect], [nbs.h])
595 AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h])
597 NETSNMP_CONFIG=No
598 if test "${USE_NETSNMP}" != "no"; then  
599    if test "x${NETSNMP_DIR}" != "x"; then
600       AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No, [${NETSNMP_DIR}/bin])
601       if test x"${NETSNMP_CONFIG}" = xNo; then
602          AC_MSG_NOTICE([***])
603          AC_MSG_NOTICE([*** net-snmp-config was not found in the path you specified:])
604          AC_MSG_NOTICE([*** ${NETSNMP_DIR}/bin])
605          AC_MSG_NOTICE([*** Either correct the installation, or run configure])
606          AC_MSG_NOTICE([*** including --without-netsnmp])
607          exit 1
608       fi
609    else
610       AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No)
611    fi
613 if test x"${NETSNMP_CONFIG}" != xNo; then
614    NETSNMP_libs=`net-snmp-config --agent-libs`
615    
616    AC_CHECK_LIB([netsnmp], [snmp_register_callback], AC_DEFINE_UNQUOTED([HAVE_NETSNMP], 1,
617    [Define to indicate the Net-SNMP library]), [], ${NETSNMP_libs})
619    if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
620       NETSNMP_LIB="${NETSNMP_libs}"
621       PBX_NETSNMP=1
622    elif test ! -z "${NETSNMP_MANDATORY}";
623    then
624       AC_MSG_NOTICE([***])
625       AC_MSG_NOTICE([*** The Net-SNMP installation on this system appears to be broken.])
626       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
627       AC_MSG_NOTICE([*** including --without-netsnmp])
628       exit 1
629    fi
630 elif test ! -z "${NETSNMP_MANDATORY}";
631 then
632    AC_MSG_NOTICE([***])
633    AC_MSG_NOTICE([*** The Net-SNMP installation on this system appears to be broken.])
634    AC_MSG_NOTICE([*** Either correct the installation, or run configure])
635    AC_MSG_NOTICE([*** including --without-netsnmp])
636    exit 1
639 AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h])
641 AST_EXT_LIB_CHECK([UNIXODBC], [odbc], [SQLConnect], [sql.h], [-lltdl])
643 AST_EXT_LIB_CHECK([OGG], [ogg], [ogg_sync_init], [])
645 AST_EXT_LIB_CHECK([OSPTK], [osptk], [OSPPCryptoDecrypt], [osp/osp.h], [-lcrypto -lssl])
647 PBX_OSS=0
648 AC_CHECK_HEADER([linux/soundcard.h],
649                 [
650                 PBX_OSS=1
651                 AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
652                 ])
653 if test "$PBX_OSS" = "0"; then
654    AC_CHECK_HEADER([sys/soundcard.h],
655                    [
656                    PBX_OSS=1
657                    AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
658                    ])
660 if test "$PBX_OSS" = "0"; then
661    AST_EXT_LIB_CHECK([OSS], [ossaudio], [oss_ioctl_mixer], [soundcard.h])
664 PG_CONFIG=No
665 if test "${USE_PGSQL}" != "no"; then    
666    if test "x${PGSQL_DIR}" != "x"; then
667       AC_PATH_TOOL([PG_CONFIG], [pg_config], No, [${PGSQL_DIR}/bin])
668       if test x"${PG_CONFIG}" = xNo; then
669          AC_MSG_NOTICE([***])
670          AC_MSG_NOTICE([*** pg_config was not found in the path you specified:])
671          AC_MSG_NOTICE([*** ${PGSQL_DIR}/bin])
672          AC_MSG_NOTICE([*** Either correct the installation, or run configure])
673          AC_MSG_NOTICE([*** including --without-postgres])
674          exit 1
675       fi
676    else
677       AC_PATH_TOOL([PG_CONFIG], [pg_config], No)
678    fi
680 if test "${PG_CONFIG}" != No; then
681    PGSQL_libdir=`pg_config --libdir`
682    PGSQL_includedir=`pg_config --includedir`
683    
684    AC_CHECK_LIB([pq], [PQexec], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1,
685    [Define to indicate the PostgreSQL library]), [], -L${PGSQL_libdir} -lz)
687    if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
688       PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
689       PGSQL_INCLUDE="-I${PGSQL_includedir}"
690       PBX_PGSQL=1
691    elif test ! -z "${PGSQL_MANDATORY}";
692    then
693       AC_MSG_NOTICE([***])
694       AC_MSG_NOTICE([*** The PostgreSQL installation on this system appears to be broken.])
695       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
696       AC_MSG_NOTICE([*** including --without-postgres])
697       exit 1
698    fi
699 elif test ! -z "${PGSQL_MANDATORY}";
700 then
701    AC_MSG_NOTICE([***])
702    AC_MSG_NOTICE([*** The PostgreSQL installation on this system appears to be broken.])
703    AC_MSG_NOTICE([*** Either correct the installation, or run configure])
704    AC_MSG_NOTICE([*** including --without-postgres])
705    exit 1
708 AST_EXT_LIB_CHECK([POPT], [popt], [poptStrerror], [popt.h])
710 AST_EXT_LIB_CHECK([PRI], [pri], [pri_call], [libpri.h])
712 if test "${USE_PWLIB}" != "no"; then
713         if test ! -z "${PWLIB_DIR}"; then
714                 PWLIBDIR="${PWLIB_DIR}"
715         fi
716         AST_CHECK_PWLIB()
717         AST_CHECK_PWLIB_VERSION([PWLib], [PWLIB], [ptbuildopts.h], [1], [9], [2])
718                 
719         if test "${HAS_PWLIB:-unset}" != "unset"; then
720                 AST_CHECK_OPENH323_PLATFORM()
722                 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
724                 AST_CHECK_PWLIB_BUILD([PWLib], [PWLIB],
725                         [Define if your system has the PWLib libraries.],
726                         [#include "ptlib.h"],
727                         [BOOL q = PTime::IsDaylightSavings();])
728         fi
731 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
732    AC_MSG_NOTICE([***])
733    AC_MSG_NOTICE([*** The PWLIB installation on this system appears to be broken.])
734    AC_MSG_NOTICE([*** Either correct the installation, or run configure])
735    AC_MSG_NOTICE([*** including --without-pwlib])
736    exit 1
739 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
740         if test ! -z "${OPENH323_DIR}"; then
741                 OPENH323DIR="${OPENH323_DIR}"
742         fi
743         AST_CHECK_OPENH323()
744         AST_CHECK_PWLIB_VERSION([OpenH323], [OPENH323], [openh323buildopts.h], [1], [17], [3])
745         AST_CHECK_OPENH323_BUILD()
746         PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
747         AST_CHECK_PWLIB_BUILD([OpenH323], [OPENH323],
748                 [Define if your system has the OpenH323 libraries.],
749                 [#include "ptlib.h"
750                 #include "h323.h"
751                 #include "h323ep.h"],
752                 [H323EndPoint ep = H323EndPoint();],
753                 [${PWLIB_INCLUDE}], [${PWLIB_LIB}])
755 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
756    AC_MSG_NOTICE([***])
757    AC_MSG_NOTICE([*** The OPENH323 installation on this system appears to be broken.])
758    AC_MSG_NOTICE([*** Either correct the installation, or run configure])
759    AC_MSG_NOTICE([*** including --without-h323])
760    exit 1
764 AC_LANG_PUSH(C++)
766 if test "${USE_QT}" != "no"; then
767    AC_MSG_CHECKING(for QDate in -lqt)
768    saved_libs="${LIBS}"
769    saved_cppflags="${CPPFLAGS}"
770    if test "x${QT_DIR}" != "x"; then
771       LIBS="${LIBS} -L${QT_DIR}/lib"
772       CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
773    fi
774    LIBS="${LIBS} -lqt"
775    qtlib="qt"
776    AC_LINK_IFELSE(
777         [
778                 AC_LANG_PROGRAM(
779                 [#include <qt3/qdatetime.h>],
780                 [QDate date();])
781         ],
782         [ac_cv_lib_qt_qt_date="yes"],
783         [ac_cv_lib_qt_qt_date="no"])
784    LIBS="${saved_libs}"
785    CPPFLAGS="${saved_cppflags}"
786         
787    if test "${ac_cv_lib_qt_qt_date}" = "no"; then
788       saved_libs="${LIBS}"
789       saved_cppflags="${CPPFLAGS}"
790       if test "x${QT_DIR}" != "x"; then
791          LIBS="${LIBS} -L${QT_DIR}/lib"
792          CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
793       fi
794       LIBS="${LIBS} -lqt-mt"
795       qtlib="qt-mt"     
796       AC_LINK_IFELSE(
797                 [
798                         AC_LANG_PROGRAM(
799                         [#include <qt3/qdatetime.h>],
800                         [QDate date();])
801                 ],
802                 [ac_cv_lib_qt_qt_date="yes"],
803                 [ac_cv_lib_qt_qt_date="no"])
804       LIBS="${saved_libs}"
805       CPPFLAGS="${saved_cppflags}"
806    fi   
808    if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
809       AC_MSG_RESULT(yes) 
810    else
811       AC_MSG_RESULT(no) 
812    fi
813         
814    if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
815       QT_LIB="-l${qtlib}"
816       if test "${QT_DIR}" != ""; then
817          QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
818          QT_INCLUDE="-I${QT_DIR}/include"
819       fi
820       PBX_QT=1
821       AC_DEFINE([HAVE_QT], 1, [Define if your system has the Qt library])
822       AC_PATH_TOOL(QTMOC, moc, No)
823    elif test ! -z "${QT_MANDATORY}"; 
824    then
825       AC_MSG_NOTICE([***])
826       AC_MSG_NOTICE([*** The Qt installation on this system appears to be broken.])
827       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
828       AC_MSG_NOTICE([*** including --without-qt.])
829       exit 1
830    fi
833 AC_LANG_POP
835 AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])
837 AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm])
839 AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h])
841 AST_EXT_LIB_CHECK([OPENSSL], [ssl], [ssl2_connect], [openssl/ssl.h], [-lcrypto])
843 AST_EXT_LIB_CHECK([FREETDS], [tds], [tds_version], [tds.h])
844 if test "${PBX_FREETDS}" != "0";
845 then
846     case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
847         *0.64*)
848                 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
849         ;;
850     *0.63*)
851         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
852         ;;
853     *0.62*)
854         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
855         ;;
856     *)
857         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
858         ;;
859     esac
862 AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
864 AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
866 if test "${host_os}" != "linux-gnu" ; then
867   tonezone_extra="-lm"
870 AST_EXT_LIB_CHECK([TONEZONE], [tonezone], [tone_zone_find], [zaptel/tonezone.h], [${tonezone_extra}])
872 AST_EXT_LIB_CHECK([VORBIS], [vorbis], [vorbis_info_init], [vorbis/codec.h], [-lm -lvorbisenc])
874 AC_LANG_PUSH(C++)
876 if test "${USE_VPB}" != "no"; then
877    AC_MSG_CHECKING(for vpb_open in -lvpb)
878    saved_libs="${LIBS}"
879    saved_cppflags="${CPPFLAGS}"
880    if test "x${VPB_DIR}" != "x"; then
881       if test -d ${VPB_DIR}/lib; then
882          vpblibdir=${VPB_DIR}/lib
883       else
884          vpblibdir=${VPB_DIR}
885       fi
886       LIBS="${LIBS} -L${vpblibdir}"
887       CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
888    fi
889    LIBS="${LIBS} -lvpb -lpthread"
890    AC_LINK_IFELSE(
891         [
892         AC_LANG_PROGRAM(
893         [#include <vpbapi.h>],
894         [int q = vpb_open(0,0);])
895         ],
896         [       AC_MSG_RESULT(yes) 
897                 ac_cv_lib_vpb_vpb_open="yes" 
898         ],
899         [       AC_MSG_RESULT(no) 
900                 ac_cv_lib_vpb_vpb_open="no" 
901         ]
902         )
903    LIBS="${saved_libs}"
904    CPPFLAGS="${saved_cppflags}"
905    if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
906         VPB_LIB="-lvpb"
907         if test "${VPB_DIR}" != ""; then
908            VPB_LIB="-L${vpblibdir}  ${VPB_LIB}"
909            VPB_INCLUDE="-I${VPB_DIR}/include"
910         fi
911         PBX_VPB=1
912         AC_DEFINE([HAVE_VPB], 1, [Define if your system has the VoiceTronix API libraries.])
913    elif test ! -z "${VPB_MANDATORY}"; then
914       AC_MSG_NOTICE([***])
915       AC_MSG_NOTICE([*** The VoiceTronix (vpb) installation on this system appears to be broken.])
916       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
917       AC_MSG_NOTICE([*** including --without-vpb.])
918       exit 1
919    fi
922 AC_LANG_POP
924 AST_EXT_LIB_CHECK([ZLIB], [z], [compress], [zlib.h])
926 if test "${USE_ZAPTEL}" != "no"; then
927    AC_MSG_CHECKING(for ZT_TONE_DTMF_BASE in zaptel.h)
928    saved_cppflags="${CPPFLAGS}"
929    if test "x${ZAPTEL_DIR}" != "x"; then
930       CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
931    fi
932    AC_COMPILE_IFELSE(
933         [
934         AC_LANG_PROGRAM(
935         [#include <zaptel/zaptel.h>],
936         [int foo = ZT_TONE_DTMF_BASE;])
937         ],
938         [       AC_MSG_RESULT(yes) 
939                 ac_cv_zaptel_h="yes" 
940         ],
941         [       AC_MSG_RESULT(no) 
942                 ac_cv_zaptel_h="no" 
943         ]
944         )
945    CPPFLAGS="${saved_cppflags}"
946    if test "${ac_cv_zaptel_h}" = "yes"; then
947         if test "${ZAPTEL_DIR}" != ""; then
948            ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
949         fi
950         PBX_ZAPTEL=1
951         AC_DEFINE([HAVE_ZAPTEL], 1, [Define if your system has the Zaptel headers.])
952    elif test ! -z "${ZAPTEL_MANDATORY}"; 
953    then
954       AC_MSG_NOTICE([***])
955       AC_MSG_NOTICE([*** The Zaptel installation on this system appears to be broken.])
956       AC_MSG_NOTICE([*** Either correct the installation, or run configure])
957       AC_MSG_NOTICE([*** including --without-zaptel.])
958       exit 1
959    fi
962 if test "${USE_ZAPTEL}" != "no"; then
963    if test "${PBX_ZAPTEL}" != "1"; then
964       AC_MSG_CHECKING(for ZT_DIAL_OP_CANCEL in zaptel.h)
965       saved_cppflags="${CPPFLAGS}"
966       if test "x${ZAPTEL_DIR}" != "x"; then
967          CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
968       fi
969       AC_COMPILE_IFELSE(
970         [
971         AC_LANG_PROGRAM(
972         [#include <zaptel.h>],
973         [int foo = ZT_DIAL_OP_CANCEL;])
974         ],
975         [       AC_MSG_RESULT(yes) 
976                 ac_cv_zaptel_h="yes" 
977         ],
978         [       AC_MSG_RESULT(no) 
979                 ac_cv_zaptel_h="no" 
980         ]
981         )
982       CPPFLAGS="${saved_cppflags}"
983       if test "${ac_cv_zaptel_h}" = "yes"; then
984          AC_MSG_NOTICE([***])
985          AC_MSG_NOTICE([*** The Zaptel installation on this system is too old])
986          AC_MSG_NOTICE([*** to be useable with this version of Asterisk.])
987          AC_MSG_NOTICE([*** Either upgrade your Zaptel installation, or run configure])
988          AC_MSG_NOTICE([*** including --without-zaptel.])
989          exit 1
990       fi
991    fi
994 EDITLINE_LIB=""
995 if test "x$TERMCAP_LIB" != "x" ; then
996   EDITLINE_LIB="$TERMCAP_LIB"
997 elif test "x$TINFO_LIB" != "x" ; then
998   EDITLINE_LIB="$TINFO_LIB"
999 elif test "x$CURSES_LIB" != "x" ; then
1000   EDITLINE_LIB="$CURSES_LIB"
1001 elif test "x$NCURSES_LIB" != "x" ; then
1002   EDITLINE_LIB="$NCURSES_LIB"
1003 else
1004   AC_MSG_ERROR(*** termcap support not found)
1006 AC_SUBST(EDITLINE_LIB)
1008 AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0])
1009 AC_SUBST(PBX_H323)
1011 AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [
1012                                    #include <linux/version.h>
1013                                    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
1014                                    #include <linux/compiler.h>
1015                                    #endif
1016                                    ])
1017 AC_SUBST(PBX_IXJUSER)
1019 PBX_GTK=0
1020 AC_CHECK_TOOL(GTKCONFIG, gtk-config, No)
1021 if test ! "x${GTKCONFIG}" = xNo; then
1022    GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
1023    GTK_LIB=$(${GTKCONFIG} --libs gthread)
1024    PBX_GTK=1
1025    AC_DEFINE([HAVE_GTK], 1, [Define if your system has the GTK libraries.])
1027 AC_SUBST(PBX_GTK)
1028 AC_SUBST(GTK_INCLUDE)
1029 AC_SUBST(GTK_LIB)
1031 if test "${USE_CURL}" != "no"; then
1032    AC_PATH_TOOL([CURL], [curl-config], No)
1033    if test ! x"${CURL}" = xNo; then
1034    # check for version
1035       if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
1036          CURL_INCLUDE=$(${CURL} --cflags)
1037          CURL_LIB=$(${CURL} --libs)
1038          PBX_CURL=1
1039          AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
1040       fi
1041    fi
1044 AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])
1045 AC_OUTPUT
1047 if test "x${silent}" != "xyes" ; then
1048 echo
1049 echo "               .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=..      "
1050 echo "            .\$7\$7..          .7\$\$7:.    "
1051 echo "          .\$\$:.                 ,\$7.7   "
1052 echo "        .\$7.     7\$\$\$\$           .\$\$77  "
1053 echo "     ..\$\$.       \$\$\$\$\$            .\$\$\$7 "
1054 echo "    ..7\$   .?.   \$\$\$\$\$   .?.       7\$\$\$."
1055 echo "   \$.\$.   .\$\$\$7. \$\$\$\$7 .7\$\$\$.      .\$\$\$."
1056 echo " .777.   .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7.      \$\$\$,"
1057 echo " \$\$\$~      .7\$\$\$\$\$\$\$\$\$\$\$\$\$7.       .\$\$\$."
1058 echo ".\$\$7          .7\$\$\$\$\$\$\$7:          ?\$\$\$."
1059 echo "\$\$\$          ?7\$\$\$\$\$\$\$\$\$\$I        .\$\$\$7 "
1060 echo "\$\$\$       .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$      :\$\$\$. "
1061 echo "\$\$\$       \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$    .\$\$\$.  "
1062 echo "\$\$\$        \$\$\$   7\$\$\$7  .\$\$\$    .\$\$\$.   "
1063 echo "\$\$\$\$             \$\$\$\$7         .\$\$\$.    "
1064 echo "7\$\$\$7            7\$\$\$\$        7\$\$\$      "
1065 echo " \$\$\$\$\$                        \$\$\$       "
1066 echo "  \$\$\$\$7.                       \$\$  (TM)     "
1067 echo "   \$\$\$\$\$\$\$.           .7\$\$\$\$\$\$  \$\$      "
1068 echo "     \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$      "
1069 echo "       \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$.                "
1070 echo
1073 AC_MSG_NOTICE(Package configured for: )
1074 AC_MSG_NOTICE( OS type  : $host_os)
1075 AC_MSG_NOTICE( Host CPU : $host_cpu)
1076 if test "${cross_compiling}" = "yes"; then
1077    AC_MSG_NOTICE( Cross Compilation = YES)