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