Merged revisions 43410 via svnmerge from
[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([CURSES], [curses], [curses])
179 AST_EXT_LIB_SETUP([GNUTLS], [GNU TLS support (used for iksemel only)], [gnutls])
180 AST_EXT_LIB_SETUP([GSM], [GSM], [gsm], [, or 'internal'])
181 AST_EXT_LIB_SETUP([IKSEMEL], [Iksemel Jabber Library], [iksemel])
182 AST_EXT_LIB_SETUP([IMAP_TK], [UW IMAP Toolkit], [imap])
183 AST_EXT_LIB_SETUP([ISDNNET], [ISDN4Linux Library], [isdnnet])
184 AST_EXT_LIB_SETUP([KDE], [KDE], [kde])
185 AST_EXT_LIB_SETUP([MISDN], [mISDN User Library], [misdn])
186 AST_EXT_LIB_SETUP([NBS], [Network Broadcast Sound], [nbs])
187 AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
188 AST_EXT_LIB_SETUP([NETSNMP], [Net-SNMP], [netsnmp])
189 AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
190 AST_EXT_LIB_SETUP([UNIXODBC], [unixODBC], [odbc])
191 AST_EXT_LIB_SETUP([OGG], [OGG], [ogg])
192 AST_EXT_LIB_SETUP([OSPTK], [OSP Toolkit], [osptk])
193 AST_EXT_LIB_SETUP([OSS], [Open Sound System], [oss])
194 AST_EXT_LIB_SETUP([POPT], [popt], [popt])
195 AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
196 AST_EXT_LIB_SETUP([PRI], [ISDN PRI], [pri])
197 AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib])
198 AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
199 AST_EXT_LIB_SETUP([QT], [Qt], [qt])
200 AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])
201 AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
202 AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
203 AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv])
204 AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL], [ssl])
205 AST_EXT_LIB_SETUP([FREETDS], [FreeTDS], [tds])
206 AST_EXT_LIB_SETUP([TERMCAP], [Termcap], [termcap])
207 AST_EXT_LIB_SETUP([TINFO], [Term Info], [tinfo])
208 AST_EXT_LIB_SETUP([TONEZONE], [tonezone], [tonezone])
209 AST_EXT_LIB_SETUP([VORBIS], [Vorbis], [vorbis])
210 AST_EXT_LIB_SETUP([VPB], [Voicetronix API], [vpb])
211 AST_EXT_LIB_SETUP([ZLIB], [zlib], [z])
212 AST_EXT_LIB_SETUP([ZAPTEL], [Zaptel], [zaptel])
213
214 # check for basic system features and functionality before
215 # checking for package libraries
216
217 AC_FUNC_ALLOCA
218 AC_HEADER_DIRENT
219 AC_HEADER_STDC
220 AC_HEADER_SYS_WAIT
221 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])
222
223 AC_SYS_LARGEFILE
224
225 # Checks for typedefs, structures, and compiler characteristics.
226 AC_HEADER_STDBOOL
227 AC_C_CONST
228 AC_TYPE_UID_T
229 AC_C_INLINE
230 AC_TYPE_MODE_T
231 AC_TYPE_OFF_T
232 AC_TYPE_PID_T
233 AC_TYPE_SIZE_T
234 AC_CHECK_MEMBERS([struct stat.st_blksize])
235 AC_HEADER_TIME
236 AC_STRUCT_TM
237 AC_C_VOLATILE
238 AC_CHECK_TYPES([ptrdiff_t])
239
240 # Checks for library functions.
241 AC_FUNC_CHOWN
242 AC_FUNC_CLOSEDIR_VOID
243 AC_FUNC_ERROR_AT_LINE
244 AST_FUNC_FORK
245 AC_FUNC_FSEEKO
246 AC_PROG_GCC_TRADITIONAL
247 # XXX: these are commented out until we determine whether it matters if our malloc()
248 # acts exactly like glibc's or not
249 # AC_FUNC_MALLOC
250 # AC_FUNC_REALLOC
251 AC_FUNC_MEMCMP
252 AC_FUNC_MKTIME
253 AC_FUNC_MMAP
254 AC_FUNC_SELECT_ARGTYPES
255 AC_FUNC_SETVBUF_REVERSED
256 AC_TYPE_SIGNAL
257 AC_FUNC_STAT
258 AC_FUNC_STRCOLL
259 AC_FUNC_STRFTIME
260 AC_FUNC_STRNLEN
261 AC_FUNC_STRTOD
262 AC_FUNC_UTIME_NULL
263 AC_FUNC_VPRINTF
264 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])
265
266 AC_MSG_CHECKING(for compiler atomic operations)
267 AC_LINK_IFELSE(
268 AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);]),
269 AC_MSG_RESULT(yes)
270 AC_DEFINE([HAVE_GCC_ATOMICS], 1, [Define to 1 if your GCC C compiler provides atomic operations.]),
271 AC_MSG_RESULT(no)
272 )
273
274 AST_GCC_ATTRIBUTE(pure)
275 AST_GCC_ATTRIBUTE(malloc)
276 AST_GCC_ATTRIBUTE(const)
277 AST_GCC_ATTRIBUTE(unused)
278 AST_GCC_ATTRIBUTE(always_inline)
279
280 AC_MSG_CHECKING(for -ffunction-sections support)
281 saved_CFLAGS="${CFLAGS}"
282 CFLAGS="${CFLAGS} -ffunction-sections"
283 AC_COMPILE_IFELSE(
284         AC_LANG_PROGRAM([], [int x = 1;]),
285         AC_MSG_RESULT(yes)
286         [saved_LDFLAGS="${LDFLAGS}"]
287         [LDFLAGS="${LDFLAGS} -Wl,--gc-sections"]
288         AC_MSG_CHECKING(for --gc-sections support)
289         AC_LINK_IFELSE(
290                 AC_LANG_PROGRAM([], [int x = 1;]),
291                 AC_MSG_RESULT(yes)
292                 [GC_CFLAGS="-ffunction-sections"]
293                 [[GC_LDFLAGS="-Wl,--gc-sections"]],
294                 AC_MSG_RESULT(no)
295         )
296         [LDFLAGS="${saved_LDFLAGS}"],
297         AC_MSG_RESULT(no)
298 )
299 CFLAGS="${saved_CFLAGS}"
300 AC_SUBST(GC_CFLAGS)
301 AC_SUBST(GC_LDFLAGS)
302
303 AC_MSG_CHECKING(for res_ninit)
304 AC_LINK_IFELSE(
305         AC_LANG_PROGRAM([#include <resolv.h>],
306                         [int foo = res_ninit(NULL);]),
307         AC_MSG_RESULT(yes)
308         AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.]),
309         AC_MSG_RESULT(no)
310 )
311
312 AC_MSG_CHECKING(for RTLD_NOLOAD)
313 AC_LINK_IFELSE(
314         AC_LANG_PROGRAM([#include <dlfcn.h>],
315                         [int foo = RTLD_NOLOAD;]),
316         AC_MSG_RESULT(yes)
317         AC_DEFINE([HAVE_RTLD_NOLOAD], 1, [Define to 1 if your system has a dynamic linker that supports RTLD_NOLOAD.]),
318         AC_MSG_RESULT(no)
319 )
320
321 AC_CHECK_HEADER([libkern/OSAtomic.h],
322                 [AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])
323
324 AC_CHECK_SIZEOF(int)
325
326 # do the package library checks now
327
328 AST_EXT_LIB_CHECK([ALSA], [asound], [snd_spcm_init], [alsa/asoundlib.h], [-lm -ldl])
329
330 AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
331
332 GSM_INTERNAL="yes"
333 AC_SUBST(GSM_INTERNAL)
334 GSM_SYSTEM="yes"
335 if test "${USE_GSM}" != "no"; then
336    if test "${GSM_DIR}" = "internal"; then
337       GSM_SYSTEM="no"
338    elif test "${GSM_DIR}" != ""; then
339       GSM_INTERNAL="no"
340    fi
341    if test "${GSM_SYSTEM}" = "yes"; then
342       gsmlibdir=""
343       if test "x${GSM_DIR}" != "x"; then
344          if test -d ${GSM_DIR}/lib; then
345             gsmlibdir="-L${GSM_DIR}/lib"
346          else
347             gsmlibdir="-L${GSM_DIR}"
348          fi
349       fi
350       AC_CHECK_LIB([gsm], [gsm_create], AC_DEFINE_UNQUOTED([HAVE_GSM], 1,
351       [Define to indicate the GSM library]), [], ${gsmlibdir})
352       if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
353          GSM_LIB="-lgsm"
354          if test "x${GSM_DIR}" != "x"; then
355             GSM_LIB="${gsmlibdir} ${GSM_LIB}"
356             GSM_INCLUDE="-I${GSM_DIR}/include"
357          fi
358          PBX_GSM=1
359          GSM_INTERNAL="no"
360       fi
361    fi
362    if test "${GSM_INTERNAL}" = "yes"; then
363       PBX_GSM=1
364    fi
365 fi
366
367 AST_EXT_LIB_CHECK([IKSEMEL], [iksemel], [iks_start_sasl], [iksemel.h])
368
369 if test "${PBX_IKSEMEL}" = 1; then
370    AST_EXT_LIB_CHECK([GNUTLS], [gnutls], [gnutls_bye])
371    if test "${PBX_GNUTLS}" = 1; then
372       IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
373    fi
374 fi
375
376 if test "${USE_IMAP_TK}" != "no"; then
377    if test "${IMAP_TK_DIR}" = ""; then
378       IMAP_TK_DIR=`pwd`"/../imap-2004g"
379    fi
380    AC_MSG_CHECKING(for UW IMAP Toolkit c-client library)
381    saved_cppflags="${CPPFLAGS}"
382    saved_libs="${LIBS}"
383    if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
384       imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
385    fi
386    CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
387    LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
388    AC_LINK_IFELSE(
389         AC_LANG_PROGRAM(
390                 [#include "c-client.h"
391                 void mm_searched (MAILSTREAM *stream,unsigned long number)
392                 {
393                 }
394                 void mm_exists (MAILSTREAM *stream,unsigned long number)
395                 {
396                 }
397                 void mm_expunged (MAILSTREAM *stream,unsigned long number)
398                 {
399                 }
400                 void mm_flags (MAILSTREAM *stream,unsigned long number)
401                 {
402                 }
403                 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
404                 {
405                 }
406                 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
407                 {
408                 }
409                 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
410                 {
411                 }
412                 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
413                 {
414                 }
415                 void mm_log (char *string,long errflg)
416                 {
417                 }
418                 void mm_dlog (char *string)
419                 {
420                 }
421                 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
422                 {
423                 }
424                 void mm_critical (MAILSTREAM *stream)
425                 {
426                 }
427                 void mm_nocritical (MAILSTREAM *stream)
428                 {
429                 }
430                 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
431                 {
432                 }
433                 void mm_fatal (char *string)
434                 {
435                 }],
436                 [
437                 MAILSTREAM *foo = mail_open(NULL, "", 0);
438                 ]
439         ),
440         [ac_cv_imap_tk="yes"],
441         [ac_cv_imap_tk="no"]
442    )
443    if test "${ac_cv_imap_tk}" = "yes"; then
444    AC_LINK_IFELSE(
445       AC_LANG_PROGRAM(
446          [#include "c-client.h"
447          void mm_searched (MAILSTREAM *stream,unsigned long number)
448          {
449          }
450          void mm_exists (MAILSTREAM *stream,unsigned long number)
451          {
452          }
453          void mm_expunged (MAILSTREAM *stream,unsigned long number)
454          {
455          }
456          void mm_flags (MAILSTREAM *stream,unsigned long number)
457          {
458          }
459          void mm_notify (MAILSTREAM *stream,char *string,long errflg)
460          {
461          }
462          void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
463          {
464          }
465          void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
466          {
467          }
468          void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
469          {
470          }
471          void mm_log (char *string,long errflg)
472          {
473          }
474          void mm_dlog (char *string)
475          {
476          }
477          void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
478          {
479          }
480          void mm_critical (MAILSTREAM *stream)
481          {
482          }
483          void mm_nocritical (MAILSTREAM *stream)
484          {
485          }
486          long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
487          {
488          }
489          void mm_fatal (char *string)
490          {
491          }],
492          [
493          long check = mail_expunge_full(NULL, "", 0);
494          ]
495       ),
496       [ac_cv_imap_tk2006="yes"],
497       [ac_cv_imap_tk2006="no"]
498   )
499   fi
500    CPPFLAGS="${saved_cppflags}"
501    LIBS="${saved_libs}"
502    if test "${ac_cv_imap_tk}" = "yes"; then
503       AC_MSG_RESULT(yes) 
504       IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
505       IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
506       PBX_IMAP_TK=1
507       AC_DEFINE([HAVE_IMAP_TK], 1, [Define if your system has the UW IMAP Toolkit c-client library.])
508       if test "${ac_cv_imap_tk2006}" = "yes"; then
509          AC_DEFINE([HAVE_IMAP_TK2006], 1, [Define if your system has the UW IMAP Toolkit c-client library version 2006 or greater.])
510       fi
511    elif test ! -z "${IMAP_TK_MANDATORY}"; then
512       AC_MSG_RESULT(no) 
513       AC_MSG_NOTICE(***)
514       AC_MSG_NOTICE(*** The UW IMAP Toolkit installation on this system appears to be broken.)
515       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
516       AC_MSG_NOTICE(*** including --without-imap.)
517       exit 1
518    else
519       AC_MSG_RESULT(no) 
520    fi
521 fi
522
523 AC_LANG_PUSH(C++)
524
525 if test "${USE_KDE}" != "no"; then
526    AC_MSG_CHECKING(for crashHandler in -lkdecore)
527    saved_libs="${LIBS}"
528    saved_cppflags="${CPPFLAGS}"
529    CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
530    if test -d ${KDE_DIR}/lib; then
531       kdelibdir="${KDE_DIR}/lib"
532    else
533       kdelibdir="${KDE_DIR}"
534    fi
535    LIBS="${LIBS} -L${kdelibdir} -lkdecore"
536
537    AC_LINK_IFELSE(
538         [AC_LANG_PROGRAM(
539                         [#include "kcrash.h"],
540                         [KCrash::defaultCrashHandler(1);])
541         ],
542         [ac_cv_lib_kde_crash="yes"],
543         [ac_cv_lib_kde_crash="no"])
544                 
545    LIBS="${saved_libs}"
546    CPPFLAGS="${saved_cppflags}"
547         
548    if test "${ac_cv_lib_kde_crash}" = "yes"; then
549       AC_MSG_RESULT(yes) 
550       KDE_LIB="-lkdecore -lkdeui"
551       if test "${KDE_DIR}" != ""; then
552          KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
553          KDE_INCLUDE="-I${KDE_DIR}/include"
554       fi
555       PBX_KDE=1
556       AC_DEFINE([HAVE_LIBKDE], 1, [Define if your system has the KDE libraries.])
557    elif test ! -z "${KDE_MANDATORY}"; then
558       AC_MSG_RESULT(no) 
559       AC_MSG_NOTICE(***)
560       AC_MSG_NOTICE(*** The KDE installation on this system appears to be broken.)
561       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
562       AC_MSG_NOTICE(*** including --without-kde.)
563       exit 1
564    else
565       AC_MSG_RESULT(no) 
566    fi
567 fi
568 if test "${PBX_KDE}" = 1; then
569    AC_PATH_TOOL(KDEINIT, kdeinit, No)
570    if test ! x"${KDEINIT}" = xNo; then
571       KDEDIR=$(${DIRNAME} ${KDEINIT})
572       KDEDIR=$(${DIRNAME} ${KDEDIR})
573    fi
574    AC_SUBST([KDEDIR])
575 fi
576
577 AC_LANG_POP
578
579 AST_EXT_LIB_CHECK([MISDN], [mISDN], [mISDN_open], [mISDNuser/mISDNlib.h])
580
581 if test "${PBX_MISDN}" = 1; then
582    AST_EXT_LIB_CHECK([ISDNNET], [isdnnet], [init_manager], [mISDNuser/isdn_net.h], [-lmISDN -lpthread])
583    AST_EXT_LIB_CHECK([SUPPSERV], [suppserv], [encodeFac], [mISDNuser/suppserv.h])
584 fi
585
586 AST_EXT_LIB_CHECK([NBS], [nbs], [nbs_connect], [nbs.h])
587
588 AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h])
589
590 NETSNMP_CONFIG=No
591 if test "${USE_NETSNMP}" != "no"; then  
592    if test "x${NETSNMP_DIR}" != "x"; then
593       AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No, [${NETSNMP_DIR}/bin])
594       if test x"${NETSNMP_CONFIG}" = xNo; then
595          AC_MSG_NOTICE(***)
596          AC_MSG_NOTICE(*** net-snmp-config was not found in the path you specified:)
597          AC_MSG_NOTICE(*** ${NETSNMP_DIR}/bin)
598          AC_MSG_NOTICE(*** Either correct the installation, or run configure)
599          AC_MSG_NOTICE(*** including --without-netsnmp)
600          exit 1
601       fi
602    else
603       AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], No)
604    fi
605 fi
606 if test x"${NETSNMP_CONFIG}" != xNo; then
607    NETSNMP_libs=`net-snmp-config --agent-libs`
608    
609    AC_CHECK_LIB([netsnmp], [snmp_register_callback], AC_DEFINE_UNQUOTED([HAVE_NETSNMP], 1,
610    [Define to indicate the Net-SNMP library]), [], ${NETSNMP_libs})
611
612    if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
613       NETSNMP_LIB="${NETSNMP_libs}"
614       PBX_NETSNMP=1
615    elif test ! -z "${NETSNMP_MANDATORY}";
616    then
617       AC_MSG_NOTICE(***)
618       AC_MSG_NOTICE(*** The Net-SNMP installation on this system appears to be broken.)
619       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
620       AC_MSG_NOTICE(*** including --without-netsnmp)
621       exit 1
622    fi
623 elif test ! -z "${NETSNMP_MANDATORY}";
624 then
625    AC_MSG_NOTICE(***)
626    AC_MSG_NOTICE(*** The Net-SNMP installation on this system appears to be broken.)
627    AC_MSG_NOTICE(*** Either correct the installation, or run configure)
628    AC_MSG_NOTICE(*** including --without-netsnmp)
629    exit 1
630 fi
631
632 AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h])
633
634 AST_EXT_LIB_CHECK([UNIXODBC], [odbc], [SQLConnect], [sql.h], [-lltdl])
635
636 AST_EXT_LIB_CHECK([OGG], [ogg], [ogg_sync_init], [])
637
638 AST_EXT_LIB_CHECK([OSPTK], [osptk], [OSPPCryptoDecrypt], [osp/osp.h], [-lcrypto -lssl])
639
640 PBX_OSS=0
641 AC_CHECK_HEADER([linux/soundcard.h],
642                 [
643                 PBX_OSS=1
644                 AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
645                 ])
646 if test "$PBX_OSS" = "0"; then
647    AC_CHECK_HEADER([sys/soundcard.h],
648                    [
649                    PBX_OSS=1
650                    AC_DEFINE_UNQUOTED([HAVE_OSS], 1, [Define to indicate the Open Sound System library])
651                    ])
652 fi
653 if test "$PBX_OSS" = "0"; then
654    AST_EXT_LIB_CHECK([OSS], [ossaudio], [oss_ioctl_mixer], [soundcard.h])
655 fi
656
657 PG_CONFIG=No
658 if test "${USE_PGSQL}" != "no"; then    
659    if test "x${PGSQL_DIR}" != "x"; then
660       AC_PATH_TOOL([PG_CONFIG], [pg_config], No, [${PGSQL_DIR}/bin])
661       if test x"${PG_CONFIG}" = xNo; then
662          AC_MSG_NOTICE(***)
663          AC_MSG_NOTICE(*** pg_config was not found in the path you specified:)
664          AC_MSG_NOTICE(*** ${PGSQL_DIR}/bin)
665          AC_MSG_NOTICE(*** Either correct the installation, or run configure)
666          AC_MSG_NOTICE(*** including --without-postgres)
667          exit 1
668       fi
669    else
670       AC_PATH_TOOL([PG_CONFIG], [pg_config], No)
671    fi
672 fi
673 if test "${PG_CONFIG}" != No; then
674    PGSQL_libdir=`pg_config --libdir`
675    PGSQL_includedir=`pg_config --includedir`
676    
677    AC_CHECK_LIB([pq], [PQexec], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1,
678    [Define to indicate the PostgreSQL library]), [], -L${PGSQL_libdir} -lz)
679
680    if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
681       PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz -lcrypt"
682       PGSQL_INCLUDE="-I${PGSQL_includedir}"
683       PBX_PGSQL=1
684    elif test ! -z "${PGSQL_MANDATORY}";
685    then
686       AC_MSG_NOTICE(***)
687       AC_MSG_NOTICE(*** The PostgreSQL installation on this system appears to be broken.)
688       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
689       AC_MSG_NOTICE(*** including --without-postgres)
690       exit 1
691    fi
692 elif test ! -z "${PGSQL_MANDATORY}";
693 then
694    AC_MSG_NOTICE(***)
695    AC_MSG_NOTICE(*** The PostgreSQL installation on this system appears to be broken.)
696    AC_MSG_NOTICE(*** Either correct the installation, or run configure)
697    AC_MSG_NOTICE(*** including --without-postgres)
698    exit 1
699 fi
700
701 AST_EXT_LIB_CHECK([POPT], [popt], [poptStrerror], [popt.h])
702
703 AST_EXT_LIB_CHECK([PRI], [pri], [pri_call], [libpri.h])
704
705 if test "${USE_PWLIB}" != "no"; then
706         if test ! -z "${PWLIB_DIR}"; then
707                 PWLIBDIR="${PWLIB_DIR}"
708         fi
709         AST_CHECK_PWLIB()
710         AST_CHECK_PWLIB_VERSION([PWLib], [PWLIB], [ptbuildopts.h], [1], [9], [2])
711                 
712         if test "${HAS_PWLIB:-unset}" != "unset"; then
713                 AST_CHECK_OPENH323_PLATFORM()
714
715                 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
716
717                 AST_CHECK_PWLIB_BUILD([PWLib], [PWLIB],
718                         [Define if your system has the PWLib libraries.],
719                         [#include "ptlib.h"],
720                         [BOOL q = PTime::IsDaylightSavings();])
721         fi
722 fi
723
724 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
725    AC_MSG_NOTICE(***)
726    AC_MSG_NOTICE(*** The PWLIB installation on this system appears to be broken.)
727    AC_MSG_NOTICE(*** Either correct the installation, or run configure)
728    AC_MSG_NOTICE(*** including --without-pwlib)
729    exit 1
730 fi
731
732 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
733         if test ! -z "${OPENH323_DIR}"; then
734                 OPENH323DIR="${OPENH323_DIR}"
735         fi
736         AST_CHECK_OPENH323()
737         AST_CHECK_PWLIB_VERSION([OpenH323], [OPENH323], [openh323buildopts.h], [1], [17], [3])
738         AST_CHECK_OPENH323_BUILD()
739         PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
740         AST_CHECK_PWLIB_BUILD([OpenH323], [OPENH323],
741                 [Define if your system has the OpenH323 libraries.],
742                 [#include "ptlib.h"
743                 #include "h323.h"
744                 #include "h323ep.h"],
745                 [H323EndPoint ep = H323EndPoint();],
746                 [${PWLIB_INCLUDE}], [${PWLIB_LIB}])
747 fi
748 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
749    AC_MSG_NOTICE(***)
750    AC_MSG_NOTICE(*** The PWLIB installation on this system appears to be broken.)
751    AC_MSG_NOTICE(*** Either correct the installation, or run configure)
752    AC_MSG_NOTICE(*** including --without-pwlib)
753    exit 1
754 fi
755
756
757 AC_LANG_PUSH(C++)
758
759 if test "${USE_QT}" != "no"; then
760    AC_MSG_CHECKING(for QDate in -lqt)
761    saved_libs="${LIBS}"
762    saved_cppflags="${CPPFLAGS}"
763    if test "x${QT_DIR}" != "x"; then
764       LIBS="${LIBS} -L${QT_DIR}/lib"
765       CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
766    fi
767    LIBS="${LIBS} -lqt"
768    qtlib="qt"
769    AC_LINK_IFELSE(
770         [
771                 AC_LANG_PROGRAM(
772                 [#include <qt3/qdatetime.h>],
773                 [QDate date();])
774         ],
775         [ac_cv_lib_qt_qt_date="yes"],
776         [ac_cv_lib_qt_qt_date="no"])
777    LIBS="${saved_libs}"
778    CPPFLAGS="${saved_cppflags}"
779         
780    if test "${ac_cv_lib_qt_qt_date}" = "no"; then
781       saved_libs="${LIBS}"
782       saved_cppflags="${CPPFLAGS}"
783       if test "x${QT_DIR}" != "x"; then
784          LIBS="${LIBS} -L${QT_DIR}/lib"
785          CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
786       fi
787       LIBS="${LIBS} -lqt-mt"
788       qtlib="qt-mt"     
789       AC_LINK_IFELSE(
790                 [
791                         AC_LANG_PROGRAM(
792                         [#include <qt3/qdatetime.h>],
793                         [QDate date();])
794                 ],
795                 [ac_cv_lib_qt_qt_date="yes"],
796                 [ac_cv_lib_qt_qt_date="no"])
797       LIBS="${saved_libs}"
798       CPPFLAGS="${saved_cppflags}"
799    fi   
800
801    if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
802       AC_MSG_RESULT(yes) 
803    else
804       AC_MSG_RESULT(no) 
805    fi
806         
807    if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
808       QT_LIB="-l${qtlib}"
809       if test "${QT_DIR}" != ""; then
810          QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
811          QT_INCLUDE="-I${QT_DIR}/include"
812       fi
813       PBX_QT=1
814       AC_DEFINE([HAVE_QT], 1, [Define if your system has the Qt library])
815       AC_PATH_TOOL(QTMOC, moc, No)
816    elif test ! -z "${QT_MANDATORY}"; 
817    then
818       AC_MSG_NOTICE(***)
819       AC_MSG_NOTICE(*** The Qt installation on this system appears to be broken.)
820       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
821       AC_MSG_NOTICE(*** including --without-qt.)
822       exit 1
823    fi
824 fi
825
826 AC_LANG_POP
827
828 AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])
829
830 AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm])
831
832 AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h])
833
834 AST_EXT_LIB_CHECK([OPENSSL], [ssl], [ssl2_connect], [openssl/ssl.h], [-lcrypto])
835
836 AST_EXT_LIB_CHECK([FREETDS], [tds], [tds_version], [tds.h])
837 if test "${PBX_FREETDS}" != "0";
838 then
839     case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
840         *0.64*)
841                 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
842         ;;
843     *0.63*)
844         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
845         ;;
846     *0.62*)
847         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
848         ;;
849     *)
850         FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
851         ;;
852     esac
853 fi
854
855 AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
856
857 AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
858
859 if test "${host_os}" != "linux-gnu" ; then
860   tonezone_extra="-lm"
861 fi
862
863 AST_EXT_LIB_CHECK([TONEZONE], [tonezone], [tone_zone_find], [zaptel/tonezone.h], [${tonezone_extra}])
864
865 AST_EXT_LIB_CHECK([VORBIS], [vorbis], [vorbis_info_init], [vorbis/codec.h], [-lm -lvorbisenc])
866
867 AC_LANG_PUSH(C++)
868
869 if test "${USE_VPB}" != "no"; then
870    AC_MSG_CHECKING(for vpb_open in -lvpb)
871    saved_libs="${LIBS}"
872    saved_cppflags="${CPPFLAGS}"
873    if test "x${VPB_DIR}" != "x"; then
874       if test -d ${VPB_DIR}/lib; then
875          vpblibdir=${VPB_DIR}/lib
876       else
877          vpblibdir=${VPB_DIR}
878       fi
879       LIBS="${LIBS} -L${vpblibdir}"
880       CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
881    fi
882    LIBS="${LIBS} -lvpb -lpthread"
883    AC_LINK_IFELSE(
884         [
885         AC_LANG_PROGRAM(
886         [#include <vpbapi.h>],
887         [int q = vpb_open(0,0);])
888         ],
889         [       AC_MSG_RESULT(yes) 
890                 ac_cv_lib_vpb_vpb_open="yes" 
891         ],
892         [       AC_MSG_RESULT(no) 
893                 ac_cv_lib_vpb_vpb_open="no" 
894         ]
895         )
896    LIBS="${saved_libs}"
897    CPPFLAGS="${saved_cppflags}"
898    if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
899         VPB_LIB="-lvpb"
900         if test "${VPB_DIR}" != ""; then
901            VPB_LIB="-L${vpblibdir}  ${VPB_LIB}"
902            VPB_INCLUDE="-I${VPB_DIR}/include"
903         fi
904         PBX_VPB=1
905         AC_DEFINE([HAVE_VPB], 1, [Define if your system has the VoiceTronix API libraries.])
906    elif test ! -z "${VPB_MANDATORY}"; then
907       AC_MSG_NOTICE(***)
908       AC_MSG_NOTICE(*** The VoiceTronix (vpb) installation on this system appears to be broken.)
909       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
910       AC_MSG_NOTICE(*** including --without-vpb.)
911       exit 1
912    fi
913 fi
914
915 AC_LANG_POP
916
917 AST_EXT_LIB_CHECK([ZLIB], [z], [compress], [zlib.h])
918
919 if test "${USE_ZAPTEL}" != "no"; then
920    AC_MSG_CHECKING(for ZT_TONE_DTMF_BASE in zaptel.h)
921    saved_cppflags="${CPPFLAGS}"
922    if test "x${ZAPTEL_DIR}" != "x"; then
923       CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
924    fi
925    AC_COMPILE_IFELSE(
926         [
927         AC_LANG_PROGRAM(
928         [#include <zaptel/zaptel.h>],
929         [int foo = ZT_TONE_DTMF_BASE;])
930         ],
931         [       AC_MSG_RESULT(yes) 
932                 ac_cv_zaptel_h="yes" 
933         ],
934         [       AC_MSG_RESULT(no) 
935                 ac_cv_zaptel_h="no" 
936         ]
937         )
938    CPPFLAGS="${saved_cppflags}"
939    if test "${ac_cv_zaptel_h}" = "yes"; then
940         if test "${ZAPTEL_DIR}" != ""; then
941            ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
942         fi
943         PBX_ZAPTEL=1
944         AC_DEFINE([HAVE_ZAPTEL], 1, [Define if your system has the Zaptel headers.])
945    elif test ! -z "${ZAPTEL_MANDATORY}"; 
946    then
947       AC_MSG_NOTICE(***)
948       AC_MSG_NOTICE(*** The Zaptel installation on this system appears to be broken.)
949       AC_MSG_NOTICE(*** Either correct the installation, or run configure)
950       AC_MSG_NOTICE(*** including --without-zaptel.)
951       exit 1
952    fi
953 fi
954
955 EDITLINE_LIB=""
956 if test "x$TERMCAP_LIB" != "x" ; then
957   EDITLINE_LIB="$TERMCAP_LIB"
958 elif test "x$TINFO_LIB" != "x" ; then
959   EDITLINE_LIB="$TINFO_LIB"
960 elif test "x$CURSES_LIB" != "x" ; then
961   EDITLINE_LIB="$CURSES_LIB"
962 elif test "x$NCURSES_LIB" != "x" ; then
963   EDITLINE_LIB="$NCURSES_LIB"
964 else
965   AC_MSG_ERROR(*** termcap support not found)
966 fi
967 AC_SUBST(EDITLINE_LIB)
968
969 AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0])
970 AC_SUBST(PBX_H323)
971
972 AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [
973                                    #include <linux/version.h>
974                                    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
975                                    #include <linux/compiler.h>
976                                    #endif
977                                    ])
978 AC_SUBST(PBX_IXJUSER)
979
980 PBX_GTK=0
981 AC_CHECK_TOOL(GTKCONFIG, gtk-config, No)
982 if test ! "x${GTKCONFIG}" = xNo; then
983    GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
984    GTK_LIB=$(${GTKCONFIG} --libs gthread)
985    PBX_GTK=1
986    AC_DEFINE([HAVE_GTK], 1, [Define if your system has the GTK libraries.])
987 fi
988 AC_SUBST(PBX_GTK)
989 AC_SUBST(GTK_INCLUDE)
990 AC_SUBST(GTK_LIB)
991
992 PBX_CURL=0
993 AC_PATH_TOOL([CURL], [curl-config], No)
994 if test ! x"${CURL}" = xNo; then
995 # check for version
996    if test "${host_os}" = "SunOS"; then
997       if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
998          CURL_INCLUDE=$(${CURL} --cflags)
999          CURL_LIB=$(${CURL} --libs)
1000          PBX_CURL=1
1001          AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
1002       fi
1003    else
1004       if [[[ 0x`curl-config --vernum` -ge 0x70907 ]]]; then
1005          CURL_INCLUDE=$(${CURL} --cflags)
1006          CURL_LIB=$(${CURL} --libs)
1007          PBX_CURL=1
1008          AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
1009       fi
1010    fi
1011 fi
1012 AC_SUBST(PBX_CURL)
1013 AC_SUBST(CURL_INCLUDE)
1014 AC_SUBST(CURL_LIB)
1015
1016 AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])
1017 AC_OUTPUT
1018
1019 if test "x${silent}" != "xyes" ; then
1020 echo
1021 echo "               .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=..      "
1022 echo "            .\$7\$7..          .7\$\$7:.    "
1023 echo "          .\$\$:.                 ,\$7.7   "
1024 echo "        .\$7.     7\$\$\$\$           .\$\$77  "
1025 echo "     ..\$\$.       \$\$\$\$\$            .\$\$\$7 "
1026 echo "    ..7\$   .?.   \$\$\$\$\$   .?.       7\$\$\$."
1027 echo "   \$.\$.   .\$\$\$7. \$\$\$\$7 .7\$\$\$.      .\$\$\$."
1028 echo " .777.   .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7.      \$\$\$,"
1029 echo " \$\$\$~      .7\$\$\$\$\$\$\$\$\$\$\$\$\$7.       .\$\$\$."
1030 echo ".\$\$7          .7\$\$\$\$\$\$\$7:          ?\$\$\$."
1031 echo "\$\$\$          ?7\$\$\$\$\$\$\$\$\$\$I        .\$\$\$7 "
1032 echo "\$\$\$       .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$      :\$\$\$. "
1033 echo "\$\$\$       \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$    .\$\$\$.  "
1034 echo "\$\$\$        \$\$\$   7\$\$\$7  .\$\$\$    .\$\$\$.   "
1035 echo "\$\$\$\$             \$\$\$\$7         .\$\$\$.    "
1036 echo "7\$\$\$7            7\$\$\$\$        7\$\$\$      "
1037 echo " \$\$\$\$\$                        \$\$\$       "
1038 echo "  \$\$\$\$7.                       \$\$  (TM)     "
1039 echo "   \$\$\$\$\$\$\$.           .7\$\$\$\$\$\$  \$\$      "
1040 echo "     \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$      "
1041 echo "       \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$.                "
1042 echo
1043 fi
1044
1045 AC_MSG_NOTICE(Package configured for: )
1046 AC_MSG_NOTICE( OS type  : $host_os)
1047 AC_MSG_NOTICE( Host CPU : $host_cpu)
1048 if test "${cross_compiling}" = "yes"; then
1049    AC_MSG_NOTICE( Cross Compilation = YES)
1050 fi