a3c5fa22518874d0429fdc5470985bbb1f10e1af
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 338139 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for asterisk trunk.
5 #
6 # Report bugs to <https://issues.asterisk.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 #
13 # "Asterisk"
14 ## --------------------- ##
15 ## M4sh Initialization.  ##
16 ## --------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in
29   *posix*) set -o posix ;;
30 esac
31
32 fi
33
34
35
36
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
44
45 as_nl='
46 '
47 export as_nl
48 # Printing a long string crashes Solaris 7 /usr/bin/printf.
49 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
52 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86 # Support unset when possible.
87 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
88   as_unset=unset
89 else
90   as_unset=false
91 fi
92
93
94 # IFS
95 # We need space, tab and new line, in precisely that order.  Quoting is
96 # there to prevent editors from complaining about space-tab.
97 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
98 # splitting by setting IFS to empty value.)
99 IFS=" ""        $as_nl"
100
101 # Find who we are.  Look in the path if we contain no directory separator.
102 case $0 in
103   *[\\/]* ) as_myself=$0 ;;
104   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 for as_dir in $PATH
106 do
107   IFS=$as_save_IFS
108   test -z "$as_dir" && as_dir=.
109   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 done
111 IFS=$as_save_IFS
112
113      ;;
114 esac
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x; then
118   as_myself=$0
119 fi
120 if test ! -f "$as_myself"; then
121   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122   { (exit 1); exit 1; }
123 fi
124
125 # Work around bugs in pre-3.0 UWIN ksh.
126 for as_var in ENV MAIL MAILPATH
127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
128 done
129 PS1='$ '
130 PS2='> '
131 PS4='+ '
132
133 # NLS nuisances.
134 LC_ALL=C
135 export LC_ALL
136 LANGUAGE=C
137 export LANGUAGE
138
139 # Required to use basename.
140 if expr a : '\(a\)' >/dev/null 2>&1 &&
141    test "X`expr 00001 : '.*\(...\)'`" = X001; then
142   as_expr=expr
143 else
144   as_expr=false
145 fi
146
147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
148   as_basename=basename
149 else
150   as_basename=false
151 fi
152
153
154 # Name of the executable.
155 as_me=`$as_basename -- "$0" ||
156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
157          X"$0" : 'X\(//\)$' \| \
158          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 $as_echo X/"$0" |
160     sed '/^.*\/\([^/][^/]*\)\/*$/{
161             s//\1/
162             q
163           }
164           /^X\/\(\/\/\)$/{
165             s//\1/
166             q
167           }
168           /^X\/\(\/\).*/{
169             s//\1/
170             q
171           }
172           s/.*/./; q'`
173
174 # CDPATH.
175 $as_unset CDPATH
176
177
178 if test "x$CONFIG_SHELL" = x; then
179   if (eval ":") 2>/dev/null; then
180   as_have_required=yes
181 else
182   as_have_required=no
183 fi
184
185   if test $as_have_required = yes &&     (eval ":
186 (as_func_return () {
187   (exit \$1)
188 }
189 as_func_success () {
190   as_func_return 0
191 }
192 as_func_failure () {
193   as_func_return 1
194 }
195 as_func_ret_success () {
196   return 0
197 }
198 as_func_ret_failure () {
199   return 1
200 }
201
202 exitcode=0
203 if as_func_success; then
204   :
205 else
206   exitcode=1
207   echo as_func_success failed.
208 fi
209
210 if as_func_failure; then
211   exitcode=1
212   echo as_func_failure succeeded.
213 fi
214
215 if as_func_ret_success; then
216   :
217 else
218   exitcode=1
219   echo as_func_ret_success failed.
220 fi
221
222 if as_func_ret_failure; then
223   exitcode=1
224   echo as_func_ret_failure succeeded.
225 fi
226
227 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228   :
229 else
230   exitcode=1
231   echo positional parameters were not saved.
232 fi
233
234 test \$exitcode = 0) || { (exit 1); exit 1; }
235
236 (
237   as_lineno_1=\$LINENO
238   as_lineno_2=\$LINENO
239   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
240   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
241 ") 2> /dev/null; then
242   :
243 else
244   as_candidate_shells=
245     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
247 do
248   IFS=$as_save_IFS
249   test -z "$as_dir" && as_dir=.
250   case $as_dir in
251          /*)
252            for as_base in sh bash ksh sh5; do
253              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
254            done;;
255        esac
256 done
257 IFS=$as_save_IFS
258
259
260       for as_shell in $as_candidate_shells $SHELL; do
261          # Try only shells that exist, to save several forks.
262          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
263                 { ("$as_shell") 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 _ASEOF
281 }; then
282   CONFIG_SHELL=$as_shell
283                as_have_required=yes
284                if { "$as_shell" 2> /dev/null <<\_ASEOF
285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
286   emulate sh
287   NULLCMD=:
288   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
289   # is contrary to our usage.  Disable this feature.
290   alias -g '${1+"$@"}'='"$@"'
291   setopt NO_GLOB_SUBST
292 else
293   case `(set -o) 2>/dev/null` in
294   *posix*) set -o posix ;;
295 esac
296
297 fi
298
299
300 :
301 (as_func_return () {
302   (exit $1)
303 }
304 as_func_success () {
305   as_func_return 0
306 }
307 as_func_failure () {
308   as_func_return 1
309 }
310 as_func_ret_success () {
311   return 0
312 }
313 as_func_ret_failure () {
314   return 1
315 }
316
317 exitcode=0
318 if as_func_success; then
319   :
320 else
321   exitcode=1
322   echo as_func_success failed.
323 fi
324
325 if as_func_failure; then
326   exitcode=1
327   echo as_func_failure succeeded.
328 fi
329
330 if as_func_ret_success; then
331   :
332 else
333   exitcode=1
334   echo as_func_ret_success failed.
335 fi
336
337 if as_func_ret_failure; then
338   exitcode=1
339   echo as_func_ret_failure succeeded.
340 fi
341
342 if ( set x; as_func_ret_success y && test x = "$1" ); then
343   :
344 else
345   exitcode=1
346   echo positional parameters were not saved.
347 fi
348
349 test $exitcode = 0) || { (exit 1); exit 1; }
350
351 (
352   as_lineno_1=$LINENO
353   as_lineno_2=$LINENO
354   test "x$as_lineno_1" != "x$as_lineno_2" &&
355   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
356
357 _ASEOF
358 }; then
359   break
360 fi
361
362 fi
363
364       done
365
366       if test "x$CONFIG_SHELL" != x; then
367   for as_var in BASH_ENV ENV
368         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
369         done
370         export CONFIG_SHELL
371         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 fi
373
374
375     if test $as_have_required = no; then
376   echo This script requires a shell more modern than all the
377       echo shells that I found on your system.  Please install a
378       echo modern shell, or manually run the script under such a
379       echo shell if you do have one.
380       { (exit 1); exit 1; }
381 fi
382
383
384 fi
385
386 fi
387
388
389
390 (eval "as_func_return () {
391   (exit \$1)
392 }
393 as_func_success () {
394   as_func_return 0
395 }
396 as_func_failure () {
397   as_func_return 1
398 }
399 as_func_ret_success () {
400   return 0
401 }
402 as_func_ret_failure () {
403   return 1
404 }
405
406 exitcode=0
407 if as_func_success; then
408   :
409 else
410   exitcode=1
411   echo as_func_success failed.
412 fi
413
414 if as_func_failure; then
415   exitcode=1
416   echo as_func_failure succeeded.
417 fi
418
419 if as_func_ret_success; then
420   :
421 else
422   exitcode=1
423   echo as_func_ret_success failed.
424 fi
425
426 if as_func_ret_failure; then
427   exitcode=1
428   echo as_func_ret_failure succeeded.
429 fi
430
431 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432   :
433 else
434   exitcode=1
435   echo positional parameters were not saved.
436 fi
437
438 test \$exitcode = 0") || {
439   echo No shell found that supports shell functions.
440   echo Please tell bug-autoconf@gnu.org about your system,
441   echo including any error possibly output before this message.
442   echo This can help us improve future autoconf versions.
443   echo Configuration will now proceed without shell functions.
444 }
445
446
447
448   as_lineno_1=$LINENO
449   as_lineno_2=$LINENO
450   test "x$as_lineno_1" != "x$as_lineno_2" &&
451   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452
453   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
454   # uniformly replaced by the line number.  The first 'sed' inserts a
455   # line-number line after each line using $LINENO; the second 'sed'
456   # does the real work.  The second script uses 'N' to pair each
457   # line-number line with the line containing $LINENO, and appends
458   # trailing '-' during substitution so that $LINENO is not a special
459   # case at line end.
460   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
461   # scripts with optimization help from Paolo Bonzini.  Blame Lee
462   # E. McMahon (1931-1989) for sed's syntax.  :-)
463   sed -n '
464     p
465     /[$]LINENO/=
466   ' <$as_myself |
467     sed '
468       s/[$]LINENO.*/&-/
469       t lineno
470       b
471       :lineno
472       N
473       :loop
474       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475       t loop
476       s/-\n.*//
477     ' >$as_me.lineno &&
478   chmod +x "$as_me.lineno" ||
479     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
480    { (exit 1); exit 1; }; }
481
482   # Don't try to exec as it changes $[0], causing all sort of problems
483   # (the dirname of $[0] is not the place where we might find the
484   # original and so on.  Autoconf is especially sensitive to this).
485   . "./$as_me.lineno"
486   # Exit status is that of the last command.
487   exit
488 }
489
490
491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492   as_dirname=dirname
493 else
494   as_dirname=false
495 fi
496
497 ECHO_C= ECHO_N= ECHO_T=
498 case `echo -n x` in
499 -n*)
500   case `echo 'x\c'` in
501   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
502   *)   ECHO_C='\c';;
503   esac;;
504 *)
505   ECHO_N='-n';;
506 esac
507 if expr a : '\(a\)' >/dev/null 2>&1 &&
508    test "X`expr 00001 : '.*\(...\)'`" = X001; then
509   as_expr=expr
510 else
511   as_expr=false
512 fi
513
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516   rm -f conf$$.dir/conf$$.file
517 else
518   rm -f conf$$.dir
519   mkdir conf$$.dir 2>/dev/null
520 fi
521 if (echo >conf$$.file) 2>/dev/null; then
522   if ln -s conf$$.file conf$$ 2>/dev/null; then
523     as_ln_s='ln -s'
524     # ... but there are two gotchas:
525     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527     # In both cases, we have to default to `cp -p'.
528     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529       as_ln_s='cp -p'
530   elif ln conf$$.file conf$$ 2>/dev/null; then
531     as_ln_s=ln
532   else
533     as_ln_s='cp -p'
534   fi
535 else
536   as_ln_s='cp -p'
537 fi
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
540
541 if mkdir -p . 2>/dev/null; then
542   as_mkdir_p=:
543 else
544   test -d ./-p && rmdir ./-p
545   as_mkdir_p=false
546 fi
547
548 if test -x / >/dev/null 2>&1; then
549   as_test_x='test -x'
550 else
551   if ls -dL / >/dev/null 2>&1; then
552     as_ls_L_option=L
553   else
554     as_ls_L_option=
555   fi
556   as_test_x='
557     eval sh -c '\''
558       if test -d "$1"; then
559         test -d "$1/.";
560       else
561         case $1 in
562         -*)set "./$1";;
563         esac;
564         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
565         ???[sx]*):;;*)false;;esac;fi
566     '\'' sh
567   '
568 fi
569 as_executable_p=$as_test_x
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573
574 # Sed expression to map a string onto a valid variable name.
575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576
577
578
579 exec 7<&0 </dev/null 6>&1
580
581 # Name of the host.
582 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
583 # so uname gets run too.
584 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585
586 #
587 # Initializations.
588 #
589 ac_default_prefix=/usr/local
590 ac_clean_files=
591 ac_config_libobj_dir=.
592 LIBOBJS=
593 cross_compiling=no
594 subdirs=
595 MFLAGS=
596 MAKEFLAGS=
597 SHELL=${CONFIG_SHELL-/bin/sh}
598
599 # Identity of this package.
600 PACKAGE_NAME='asterisk'
601 PACKAGE_TARNAME='asterisk'
602 PACKAGE_VERSION='trunk'
603 PACKAGE_STRING='asterisk trunk'
604 PACKAGE_BUGREPORT='https://issues.asterisk.org'
605
606 ac_unique_file="main/asterisk.c"
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_list=
644 ac_subst_vars='LTLIBOBJS
645 PBX_SYSLOG
646 PBX_SYSLOG_FACILITY_LOG_UUCP
647 PBX_SYSLOG_FACILITY_LOG_SYSLOG
648 PBX_SYSLOG_FACILITY_LOG_NEWS
649 PBX_SYSLOG_FACILITY_LOG_MAIL
650 PBX_SYSLOG_FACILITY_LOG_LPR
651 PBX_SYSLOG_FACILITY_LOG_KERN
652 PBX_SYSLOG_FACILITY_LOG_FTP
653 PBX_SYSLOG_FACILITY_LOG_DAEMON
654 PBX_SYSLOG_FACILITY_LOG_CRON
655 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
656 PBX_SYSLOG_FACILITY_LOG_AUTH
657 PBX_GENERIC_ODBC
658 GENERIC_ODBC_INCLUDE
659 GENERIC_ODBC_LIB
660 PBX_LAUNCHD
661 CONFIG_SDL
662 PBX_SO_NOSIGPIPE
663 PBX_MSG_NOSIGNAL
664 PBX_IXJUSER
665 PBX_H323
666 CONFIG_GMIME
667 AIS_LIB
668 AIS_INCLUDE
669 PBX_AIS
670 OPENH323_BUILD
671 OPENH323_SUFFIX
672 OPENH323_LIBDIR
673 OPENH323_INCDIR
674 OPENH323DIR
675 PWLIB_PLATFORM
676 PWLIB_LIBDIR
677 PWLIB_INCDIR
678 PWLIBDIR
679 PTLIB_CONFIG
680 PG_CONFIG
681 CONFIG_NETSNMP
682 CONFIG_NEON29
683 CONFIG_NEON
684 CONFIG_MYSQLCLIENT
685 PBX_MISDN_FAC_ERROR
686 PBX_MISDN_FAC_RESULT
687 GSM_INTERNAL
688 PBX_DAHDI_HALF_FULL
689 PKGCONFIG
690 PBX_DLADDR
691 PBX_IP_MTU_DISCOVER
692 PBX_GLOB_BRACE
693 PBX_GLOB_NOMAGIC
694 AST_MARCH_NATIVE
695 AST_SHADOW_WARNINGS
696 AST_NO_STRICT_OVERFLOW
697 AST_FORTIFY_SOURCE
698 AST_DECLARATION_AFTER_STATEMENT
699 GC_LDFLAGS
700 GC_CFLAGS
701 PBX_WEAKREF
702 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
703 PBX_PTHREAD_RWLOCK_INITIALIZER
704 HAS_POLL
705 PBX_DYNAMIC_LIST
706 POW_LIB
707 PBX_WORKING_FORK
708 LIBOBJS
709 CONFIG_LIBXML2
710 EDITLINE_LIB
711 ALLOCA
712 PBX_ZLIB
713 ZLIB_DIR
714 ZLIB_INCLUDE
715 ZLIB_LIB
716 PBX_X11
717 X11_DIR
718 X11_INCLUDE
719 X11_LIB
720 PBX_VPB
721 VPB_DIR
722 VPB_INCLUDE
723 VPB_LIB
724 PBX_VORBIS
725 VORBIS_DIR
726 VORBIS_INCLUDE
727 VORBIS_LIB
728 PBX_USB
729 USB_DIR
730 USB_INCLUDE
731 USB_LIB
732 PBX_UNIXODBC
733 UNIXODBC_DIR
734 UNIXODBC_INCLUDE
735 UNIXODBC_LIB
736 PBX_TONEZONE
737 TONEZONE_DIR
738 TONEZONE_INCLUDE
739 TONEZONE_LIB
740 PBX_TINFO
741 TINFO_DIR
742 TINFO_INCLUDE
743 TINFO_LIB
744 PBX_TIMERFD
745 TIMERFD_DIR
746 TIMERFD_INCLUDE
747 TIMERFD_LIB
748 PBX_TERMCAP
749 TERMCAP_DIR
750 TERMCAP_INCLUDE
751 TERMCAP_LIB
752 PBX_FREETDS
753 FREETDS_DIR
754 FREETDS_INCLUDE
755 FREETDS_LIB
756 PBX_SUPPSERV
757 SUPPSERV_DIR
758 SUPPSERV_INCLUDE
759 SUPPSERV_LIB
760 PBX_OPENSSL
761 OPENSSL_DIR
762 OPENSSL_INCLUDE
763 OPENSSL_LIB
764 PBX_SRTP
765 SRTP_DIR
766 SRTP_INCLUDE
767 SRTP_LIB
768 PBX_SQLITE3
769 SQLITE3_DIR
770 SQLITE3_INCLUDE
771 SQLITE3_LIB
772 PBX_SQLITE
773 SQLITE_DIR
774 SQLITE_INCLUDE
775 SQLITE_LIB
776 PBX_SPEEXDSP
777 SPEEXDSP_DIR
778 SPEEXDSP_INCLUDE
779 SPEEXDSP_LIB
780 PBX_SPEEX_PREPROCESS
781 SPEEX_PREPROCESS_DIR
782 SPEEX_PREPROCESS_INCLUDE
783 SPEEX_PREPROCESS_LIB
784 PBX_SPEEX
785 SPEEX_DIR
786 SPEEX_INCLUDE
787 SPEEX_LIB
788 PBX_SS7
789 SS7_DIR
790 SS7_INCLUDE
791 SS7_LIB
792 PBX_SPANDSP
793 SPANDSP_DIR
794 SPANDSP_INCLUDE
795 SPANDSP_LIB
796 SOUNDS_CACHE_DIR
797 PBX_SDL_IMAGE
798 SDL_IMAGE_DIR
799 SDL_IMAGE_INCLUDE
800 SDL_IMAGE_LIB
801 PBX_SDL
802 SDL_DIR
803 SDL_INCLUDE
804 SDL_LIB
805 PBX_RESAMPLE
806 RESAMPLE_DIR
807 RESAMPLE_INCLUDE
808 RESAMPLE_LIB
809 PBX_RADIUS
810 RADIUS_DIR
811 RADIUS_INCLUDE
812 RADIUS_LIB
813 PBX_PWLIB
814 PWLIB_DIR
815 PWLIB_INCLUDE
816 PWLIB_LIB
817 PBX_PRI_REVERSE_CHARGE
818 PRI_REVERSE_CHARGE_DIR
819 PRI_REVERSE_CHARGE_INCLUDE
820 PRI_REVERSE_CHARGE_LIB
821 PBX_PRI_SERVICE_MESSAGES
822 PRI_SERVICE_MESSAGES_DIR
823 PRI_SERVICE_MESSAGES_INCLUDE
824 PRI_SERVICE_MESSAGES_LIB
825 PBX_PRI_PROG_W_CAUSE
826 PRI_PROG_W_CAUSE_DIR
827 PRI_PROG_W_CAUSE_INCLUDE
828 PRI_PROG_W_CAUSE_LIB
829 PBX_PRI_INBANDDISCONNECT
830 PRI_INBANDDISCONNECT_DIR
831 PRI_INBANDDISCONNECT_INCLUDE
832 PRI_INBANDDISCONNECT_LIB
833 PBX_PRI_SETUP_KEYPAD
834 PRI_SETUP_KEYPAD_DIR
835 PRI_SETUP_KEYPAD_INCLUDE
836 PRI_SETUP_KEYPAD_LIB
837 PBX_PRI_CALL_REROUTING
838 PRI_CALL_REROUTING_DIR
839 PRI_CALL_REROUTING_INCLUDE
840 PRI_CALL_REROUTING_LIB
841 PBX_PRI_CALL_HOLD
842 PRI_CALL_HOLD_DIR
843 PRI_CALL_HOLD_INCLUDE
844 PRI_CALL_HOLD_LIB
845 PBX_PRI_SUBADDR
846 PRI_SUBADDR_DIR
847 PRI_SUBADDR_INCLUDE
848 PRI_SUBADDR_LIB
849 PBX_PRI_HANGUP_FIX
850 PRI_HANGUP_FIX_DIR
851 PRI_HANGUP_FIX_INCLUDE
852 PRI_HANGUP_FIX_LIB
853 PBX_PRI_CCSS
854 PRI_CCSS_DIR
855 PRI_CCSS_INCLUDE
856 PRI_CCSS_LIB
857 PBX_PRI_TRANSFER
858 PRI_TRANSFER_DIR
859 PRI_TRANSFER_INCLUDE
860 PRI_TRANSFER_LIB
861 PBX_PRI_AOC_EVENTS
862 PRI_AOC_EVENTS_DIR
863 PRI_AOC_EVENTS_INCLUDE
864 PRI_AOC_EVENTS_LIB
865 PBX_PRI_CALL_WAITING
866 PRI_CALL_WAITING_DIR
867 PRI_CALL_WAITING_INCLUDE
868 PRI_CALL_WAITING_LIB
869 PBX_PRI_MCID
870 PRI_MCID_DIR
871 PRI_MCID_INCLUDE
872 PRI_MCID_LIB
873 PBX_PRI_MWI
874 PRI_MWI_DIR
875 PRI_MWI_INCLUDE
876 PRI_MWI_LIB
877 PBX_PRI_DISPLAY_TEXT
878 PRI_DISPLAY_TEXT_DIR
879 PRI_DISPLAY_TEXT_INCLUDE
880 PRI_DISPLAY_TEXT_LIB
881 PBX_PRI_MWI_V2
882 PRI_MWI_V2_DIR
883 PRI_MWI_V2_INCLUDE
884 PRI_MWI_V2_LIB
885 PBX_PRI_DATETIME_SEND
886 PRI_DATETIME_SEND_DIR
887 PRI_DATETIME_SEND_INCLUDE
888 PRI_DATETIME_SEND_LIB
889 PBX_PRI_L2_PERSISTENCE
890 PRI_L2_PERSISTENCE_DIR
891 PRI_L2_PERSISTENCE_INCLUDE
892 PRI_L2_PERSISTENCE_LIB
893 PBX_PRI
894 PRI_DIR
895 PRI_INCLUDE
896 PRI_LIB
897 PBX_PORTAUDIO
898 PORTAUDIO_DIR
899 PORTAUDIO_INCLUDE
900 PORTAUDIO_LIB
901 PBX_POPT
902 POPT_DIR
903 POPT_INCLUDE
904 POPT_LIB
905 PBX_PGSQL
906 PGSQL_DIR
907 PGSQL_INCLUDE
908 PGSQL_LIB
909 PBX_OSS
910 OSS_DIR
911 OSS_INCLUDE
912 OSS_LIB
913 PBX_OSPTK
914 OSPTK_DIR
915 OSPTK_INCLUDE
916 OSPTK_LIB
917 PBX_OPENR2
918 OPENR2_DIR
919 OPENR2_INCLUDE
920 OPENR2_LIB
921 PBX_OPENAIS
922 OPENAIS_DIR
923 OPENAIS_INCLUDE
924 OPENAIS_LIB
925 PBX_OGG
926 OGG_DIR
927 OGG_INCLUDE
928 OGG_LIB
929 PBX_NEWT
930 NEWT_DIR
931 NEWT_INCLUDE
932 NEWT_LIB
933 PBX_NETSNMP
934 NETSNMP_DIR
935 NETSNMP_INCLUDE
936 NETSNMP_LIB
937 PBX_NEON29
938 NEON29_DIR
939 NEON29_INCLUDE
940 NEON29_LIB
941 PBX_NEON
942 NEON_DIR
943 NEON_INCLUDE
944 NEON_LIB
945 PBX_NCURSES
946 NCURSES_DIR
947 NCURSES_INCLUDE
948 NCURSES_LIB
949 PBX_NBS
950 NBS_DIR
951 NBS_INCLUDE
952 NBS_LIB
953 PBX_MYSQLCLIENT
954 MYSQLCLIENT_DIR
955 MYSQLCLIENT_INCLUDE
956 MYSQLCLIENT_LIB
957 PBX_MISDN
958 MISDN_DIR
959 MISDN_INCLUDE
960 MISDN_LIB
961 PBX_LUA
962 LUA_DIR
963 LUA_INCLUDE
964 LUA_LIB
965 PBX_LTDL
966 LTDL_DIR
967 LTDL_INCLUDE
968 LTDL_LIB
969 PBX_LIBXML2
970 LIBXML2_DIR
971 LIBXML2_INCLUDE
972 LIBXML2_LIB
973 CURL_LIB
974 CURL_INCLUDE
975 _libcurl_config
976 PBX_CURL
977 PBX_LDAP
978 LDAP_DIR
979 LDAP_INCLUDE
980 LDAP_LIB
981 PBX_KQUEUE
982 KQUEUE_DIR
983 KQUEUE_INCLUDE
984 KQUEUE_LIB
985 PBX_JACK
986 JACK_DIR
987 JACK_INCLUDE
988 JACK_LIB
989 PBX_ISDNNET
990 ISDNNET_DIR
991 ISDNNET_INCLUDE
992 ISDNNET_LIB
993 PBX_IODBC
994 IODBC_DIR
995 IODBC_INCLUDE
996 IODBC_LIB
997 PBX_INOTIFY
998 INOTIFY_DIR
999 INOTIFY_INCLUDE
1000 INOTIFY_LIB
1001 PBX_IMAP_TK
1002 IMAP_TK_DIR
1003 IMAP_TK_INCLUDE
1004 IMAP_TK_LIB
1005 PBX_IKSEMEL
1006 IKSEMEL_DIR
1007 IKSEMEL_INCLUDE
1008 IKSEMEL_LIB
1009 PBX_ICONV
1010 ICONV_DIR
1011 ICONV_INCLUDE
1012 ICONV_LIB
1013 PBX_ICAL
1014 ICAL_DIR
1015 ICAL_INCLUDE
1016 ICAL_LIB
1017 PBX_HOARD
1018 HOARD_DIR
1019 HOARD_INCLUDE
1020 HOARD_LIB
1021 PBX_OPENH323
1022 OPENH323_DIR
1023 OPENH323_INCLUDE
1024 OPENH323_LIB
1025 PBX_GMIME
1026 GMIME_DIR
1027 GMIME_INCLUDE
1028 GMIME_LIB
1029 PBX_GTK2
1030 GTK2_DIR
1031 GTK2_INCLUDE
1032 GTK2_LIB
1033 PBX_GSM
1034 GSM_DIR
1035 GSM_INCLUDE
1036 GSM_LIB
1037 PBX_FFMPEG
1038 FFMPEG_DIR
1039 FFMPEG_INCLUDE
1040 FFMPEG_LIB
1041 PBX_DAHDI
1042 DAHDI_DIR
1043 DAHDI_INCLUDE
1044 DAHDI_LIB
1045 PBX_CRYPTO
1046 CRYPTO_DIR
1047 CRYPTO_INCLUDE
1048 CRYPTO_LIB
1049 PBX_CURSES
1050 CURSES_DIR
1051 CURSES_INCLUDE
1052 CURSES_LIB
1053 PBX_CAP
1054 CAP_DIR
1055 CAP_INCLUDE
1056 CAP_LIB
1057 PBX_BLUETOOTH
1058 BLUETOOTH_DIR
1059 BLUETOOTH_INCLUDE
1060 BLUETOOTH_LIB
1061 PBX_BKTR
1062 BKTR_DIR
1063 BKTR_INCLUDE
1064 BKTR_LIB
1065 PBX_BFD
1066 BFD_DIR
1067 BFD_INCLUDE
1068 BFD_LIB
1069 PBX_ALSA
1070 ALSA_DIR
1071 ALSA_INCLUDE
1072 ALSA_LIB
1073 AST_CODE_COVERAGE
1074 AST_DEVMODE
1075 NOISY_BUILD
1076 PTHREAD_CFLAGS
1077 PTHREAD_LIBS
1078 PTHREAD_CC
1079 acx_pthread_config
1080 MD5
1081 SOXMIX
1082 PBX_FLEX
1083 PBX_BISON
1084 DOWNLOAD
1085 FETCH
1086 XMLSTARLET
1087 XMLLINT
1088 KPATHSEA
1089 CATDVI
1090 RUBBER
1091 CURL
1092 WGET
1093 DOT
1094 LN
1095 DIRNAME
1096 BASENAME
1097 COMPRESS
1098 FIND
1099 FLEX
1100 CMP
1101 BISON
1102 GNU_LD
1103 ac_ct_OPENSSL
1104 OPENSSL
1105 ac_ct_SHA1SUM
1106 SHA1SUM
1107 ac_ct_AR
1108 AR
1109 ac_ct_STRIP
1110 STRIP
1111 GNU_MAKE
1112 LN_S
1113 INSTALL_DATA
1114 INSTALL_SCRIPT
1115 INSTALL_PROGRAM
1116 AWK
1117 SED
1118 CXXCPP
1119 ac_ct_CXX
1120 CXXFLAGS
1121 RANLIB
1122 LD
1123 CXX
1124 PBX_OSREV
1125 UNAME
1126 PBX_WINARCH
1127 OSARCH
1128 HOST_OS
1129 HOST_VENDOR
1130 HOST_CPU
1131 HOST_PLATFORM
1132 BUILD_OS
1133 BUILD_VENDOR
1134 BUILD_CPU
1135 BUILD_PLATFORM
1136 astvarrundir
1137 astlogdir
1138 astspooldir
1139 astkeydir
1140 astdbdir
1141 astdatadir
1142 astvarlibdir
1143 astmandir
1144 astlibdir
1145 astheaderdir
1146 astetcdir
1147 astsbindir
1148 EGREP
1149 GREP
1150 CPP
1151 OBJEXT
1152 EXEEXT
1153 ac_ct_CC
1154 CPPFLAGS
1155 LDFLAGS
1156 CFLAGS
1157 CC
1158 CONFIG_LDFLAGS
1159 CONFIG_CFLAGS
1160 host_os
1161 host_vendor
1162 host_cpu
1163 host
1164 build_os
1165 build_vendor
1166 build_cpu
1167 build
1168 target_alias
1169 host_alias
1170 build_alias
1171 LIBS
1172 ECHO_T
1173 ECHO_N
1174 ECHO_C
1175 DEFS
1176 mandir
1177 localedir
1178 libdir
1179 psdir
1180 pdfdir
1181 dvidir
1182 htmldir
1183 infodir
1184 docdir
1185 oldincludedir
1186 includedir
1187 localstatedir
1188 sharedstatedir
1189 sysconfdir
1190 datadir
1191 datarootdir
1192 libexecdir
1193 sbindir
1194 bindir
1195 program_transform_name
1196 prefix
1197 exec_prefix
1198 PACKAGE_BUGREPORT
1199 PACKAGE_STRING
1200 PACKAGE_VERSION
1201 PACKAGE_TARNAME
1202 PACKAGE_NAME
1203 PATH_SEPARATOR
1204 SHELL'
1205 ac_subst_files=''
1206 ac_user_opts='
1207 enable_option_checking
1208 with_gnu_ld
1209 enable_dev_mode
1210 enable_coverage
1211 with_asound
1212 with_bfd
1213 with_execinfo
1214 with_bluetooth
1215 with_cap
1216 with_curses
1217 with_crypto
1218 with_dahdi
1219 with_avcodec
1220 with_gsm
1221 with_gtk2
1222 with_gmime
1223 with_h323
1224 with_hoard
1225 with_ical
1226 with_iconv
1227 with_iksemel
1228 with_imap
1229 with_inotify
1230 with_iodbc
1231 with_isdnnet
1232 with_jack
1233 with_kqueue
1234 with_ldap
1235 with_libcurl
1236 with_libxml2
1237 with_ltdl
1238 with_lua
1239 with_misdn
1240 with_mysqlclient
1241 with_nbs
1242 with_ncurses
1243 with_neon
1244 with_neon29
1245 with_netsnmp
1246 with_newt
1247 with_ogg
1248 with_openais
1249 with_openr2
1250 with_osptk
1251 with_oss
1252 with_postgres
1253 with_popt
1254 with_portaudio
1255 with_pri
1256 with_pwlib
1257 with_radius
1258 with_resample
1259 with_sdl
1260 with_SDL_image
1261 with_sounds_cache
1262 with_spandsp
1263 with_ss7
1264 with_speex
1265 with_speexdsp
1266 with_sqlite
1267 with_sqlite3
1268 with_srtp
1269 with_ssl
1270 with_suppserv
1271 with_tds
1272 with_termcap
1273 with_timerfd
1274 with_tinfo
1275 with_tonezone
1276 with_unixodbc
1277 with_usb
1278 with_vorbis
1279 with_vpb
1280 with_x11
1281 with_z
1282 enable_xmldoc
1283 enable_largefile
1284 enable_internal_poll
1285 '
1286       ac_precious_vars='build_alias
1287 host_alias
1288 target_alias
1289 CC
1290 CFLAGS
1291 LDFLAGS
1292 LIBS
1293 CPPFLAGS
1294 CPP
1295 CXX
1296 CXXFLAGS
1297 CCC
1298 CXXCPP'
1299
1300
1301 # Initialize some variables set by options.
1302 ac_init_help=
1303 ac_init_version=false
1304 ac_unrecognized_opts=
1305 ac_unrecognized_sep=
1306 # The variables have the same names as the options, with
1307 # dashes changed to underlines.
1308 cache_file=/dev/null
1309 exec_prefix=NONE
1310 no_create=
1311 no_recursion=
1312 prefix=NONE
1313 program_prefix=NONE
1314 program_suffix=NONE
1315 program_transform_name=s,x,x,
1316 silent=
1317 site=
1318 srcdir=
1319 verbose=
1320 x_includes=NONE
1321 x_libraries=NONE
1322
1323 # Installation directory options.
1324 # These are left unexpanded so users can "make install exec_prefix=/foo"
1325 # and all the variables that are supposed to be based on exec_prefix
1326 # by default will actually change.
1327 # Use braces instead of parens because sh, perl, etc. also accept them.
1328 # (The list follows the same order as the GNU Coding Standards.)
1329 bindir='${exec_prefix}/bin'
1330 sbindir='${exec_prefix}/sbin'
1331 libexecdir='${exec_prefix}/libexec'
1332 datarootdir='${prefix}/share'
1333 datadir='${datarootdir}'
1334 sysconfdir='${prefix}/etc'
1335 sharedstatedir='${prefix}/com'
1336 localstatedir='${prefix}/var'
1337 includedir='${prefix}/include'
1338 oldincludedir='/usr/include'
1339 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1340 infodir='${datarootdir}/info'
1341 htmldir='${docdir}'
1342 dvidir='${docdir}'
1343 pdfdir='${docdir}'
1344 psdir='${docdir}'
1345 libdir='${exec_prefix}/lib'
1346 localedir='${datarootdir}/locale'
1347 mandir='${datarootdir}/man'
1348
1349 ac_prev=
1350 ac_dashdash=
1351 for ac_option
1352 do
1353   # If the previous option needs an argument, assign it.
1354   if test -n "$ac_prev"; then
1355     eval $ac_prev=\$ac_option
1356     ac_prev=
1357     continue
1358   fi
1359
1360   case $ac_option in
1361   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1362   *)    ac_optarg=yes ;;
1363   esac
1364
1365   # Accept the important Cygnus configure options, so we can diagnose typos.
1366
1367   case $ac_dashdash$ac_option in
1368   --)
1369     ac_dashdash=yes ;;
1370
1371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1372     ac_prev=bindir ;;
1373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1374     bindir=$ac_optarg ;;
1375
1376   -build | --build | --buil | --bui | --bu)
1377     ac_prev=build_alias ;;
1378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1379     build_alias=$ac_optarg ;;
1380
1381   -cache-file | --cache-file | --cache-fil | --cache-fi \
1382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1383     ac_prev=cache_file ;;
1384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1386     cache_file=$ac_optarg ;;
1387
1388   --config-cache | -C)
1389     cache_file=config.cache ;;
1390
1391   -datadir | --datadir | --datadi | --datad)
1392     ac_prev=datadir ;;
1393   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1394     datadir=$ac_optarg ;;
1395
1396   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1397   | --dataroo | --dataro | --datar)
1398     ac_prev=datarootdir ;;
1399   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1400   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1401     datarootdir=$ac_optarg ;;
1402
1403   -disable-* | --disable-*)
1404     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1405     # Reject names that are not valid shell variable names.
1406     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1407       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1408    { (exit 1); exit 1; }; }
1409     ac_useropt_orig=$ac_useropt
1410     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411     case $ac_user_opts in
1412       *"
1413 "enable_$ac_useropt"
1414 "*) ;;
1415       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1416          ac_unrecognized_sep=', ';;
1417     esac
1418     eval enable_$ac_useropt=no ;;
1419
1420   -docdir | --docdir | --docdi | --doc | --do)
1421     ac_prev=docdir ;;
1422   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1423     docdir=$ac_optarg ;;
1424
1425   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1426     ac_prev=dvidir ;;
1427   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1428     dvidir=$ac_optarg ;;
1429
1430   -enable-* | --enable-*)
1431     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1432     # Reject names that are not valid shell variable names.
1433     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1435    { (exit 1); exit 1; }; }
1436     ac_useropt_orig=$ac_useropt
1437     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438     case $ac_user_opts in
1439       *"
1440 "enable_$ac_useropt"
1441 "*) ;;
1442       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1443          ac_unrecognized_sep=', ';;
1444     esac
1445     eval enable_$ac_useropt=\$ac_optarg ;;
1446
1447   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1448   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1449   | --exec | --exe | --ex)
1450     ac_prev=exec_prefix ;;
1451   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1452   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1453   | --exec=* | --exe=* | --ex=*)
1454     exec_prefix=$ac_optarg ;;
1455
1456   -gas | --gas | --ga | --g)
1457     # Obsolete; use --with-gas.
1458     with_gas=yes ;;
1459
1460   -help | --help | --hel | --he | -h)
1461     ac_init_help=long ;;
1462   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1463     ac_init_help=recursive ;;
1464   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1465     ac_init_help=short ;;
1466
1467   -host | --host | --hos | --ho)
1468     ac_prev=host_alias ;;
1469   -host=* | --host=* | --hos=* | --ho=*)
1470     host_alias=$ac_optarg ;;
1471
1472   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1473     ac_prev=htmldir ;;
1474   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1475   | --ht=*)
1476     htmldir=$ac_optarg ;;
1477
1478   -includedir | --includedir | --includedi | --included | --include \
1479   | --includ | --inclu | --incl | --inc)
1480     ac_prev=includedir ;;
1481   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1482   | --includ=* | --inclu=* | --incl=* | --inc=*)
1483     includedir=$ac_optarg ;;
1484
1485   -infodir | --infodir | --infodi | --infod | --info | --inf)
1486     ac_prev=infodir ;;
1487   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1488     infodir=$ac_optarg ;;
1489
1490   -libdir | --libdir | --libdi | --libd)
1491     ac_prev=libdir ;;
1492   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1493     libdir=$ac_optarg ;;
1494
1495   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1496   | --libexe | --libex | --libe)
1497     ac_prev=libexecdir ;;
1498   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1499   | --libexe=* | --libex=* | --libe=*)
1500     libexecdir=$ac_optarg ;;
1501
1502   -localedir | --localedir | --localedi | --localed | --locale)
1503     ac_prev=localedir ;;
1504   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1505     localedir=$ac_optarg ;;
1506
1507   -localstatedir | --localstatedir | --localstatedi | --localstated \
1508   | --localstate | --localstat | --localsta | --localst | --locals)
1509     ac_prev=localstatedir ;;
1510   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1511   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1512     localstatedir=$ac_optarg ;;
1513
1514   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1515     ac_prev=mandir ;;
1516   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1517     mandir=$ac_optarg ;;
1518
1519   -nfp | --nfp | --nf)
1520     # Obsolete; use --without-fp.
1521     with_fp=no ;;
1522
1523   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1524   | --no-cr | --no-c | -n)
1525     no_create=yes ;;
1526
1527   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1528   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1529     no_recursion=yes ;;
1530
1531   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1532   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1533   | --oldin | --oldi | --old | --ol | --o)
1534     ac_prev=oldincludedir ;;
1535   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1536   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1537   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1538     oldincludedir=$ac_optarg ;;
1539
1540   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1541     ac_prev=prefix ;;
1542   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1543     prefix=$ac_optarg ;;
1544
1545   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1546   | --program-pre | --program-pr | --program-p)
1547     ac_prev=program_prefix ;;
1548   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1549   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1550     program_prefix=$ac_optarg ;;
1551
1552   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1553   | --program-suf | --program-su | --program-s)
1554     ac_prev=program_suffix ;;
1555   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1556   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1557     program_suffix=$ac_optarg ;;
1558
1559   -program-transform-name | --program-transform-name \
1560   | --program-transform-nam | --program-transform-na \
1561   | --program-transform-n | --program-transform- \
1562   | --program-transform | --program-transfor \
1563   | --program-transfo | --program-transf \
1564   | --program-trans | --program-tran \
1565   | --progr-tra | --program-tr | --program-t)
1566     ac_prev=program_transform_name ;;
1567   -program-transform-name=* | --program-transform-name=* \
1568   | --program-transform-nam=* | --program-transform-na=* \
1569   | --program-transform-n=* | --program-transform-=* \
1570   | --program-transform=* | --program-transfor=* \
1571   | --program-transfo=* | --program-transf=* \
1572   | --program-trans=* | --program-tran=* \
1573   | --progr-tra=* | --program-tr=* | --program-t=*)
1574     program_transform_name=$ac_optarg ;;
1575
1576   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1577     ac_prev=pdfdir ;;
1578   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1579     pdfdir=$ac_optarg ;;
1580
1581   -psdir | --psdir | --psdi | --psd | --ps)
1582     ac_prev=psdir ;;
1583   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1584     psdir=$ac_optarg ;;
1585
1586   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587   | -silent | --silent | --silen | --sile | --sil)
1588     silent=yes ;;
1589
1590   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1591     ac_prev=sbindir ;;
1592   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1593   | --sbi=* | --sb=*)
1594     sbindir=$ac_optarg ;;
1595
1596   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1597   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1598   | --sharedst | --shareds | --shared | --share | --shar \
1599   | --sha | --sh)
1600     ac_prev=sharedstatedir ;;
1601   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1602   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1603   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1604   | --sha=* | --sh=*)
1605     sharedstatedir=$ac_optarg ;;
1606
1607   -site | --site | --sit)
1608     ac_prev=site ;;
1609   -site=* | --site=* | --sit=*)
1610     site=$ac_optarg ;;
1611
1612   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1613     ac_prev=srcdir ;;
1614   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1615     srcdir=$ac_optarg ;;
1616
1617   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1618   | --syscon | --sysco | --sysc | --sys | --sy)
1619     ac_prev=sysconfdir ;;
1620   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1621   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1622     sysconfdir=$ac_optarg ;;
1623
1624   -target | --target | --targe | --targ | --tar | --ta | --t)
1625     ac_prev=target_alias ;;
1626   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1627     target_alias=$ac_optarg ;;
1628
1629   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1630     verbose=yes ;;
1631
1632   -version | --version | --versio | --versi | --vers | -V)
1633     ac_init_version=: ;;
1634
1635   -with-* | --with-*)
1636     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1637     # Reject names that are not valid shell variable names.
1638     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1640    { (exit 1); exit 1; }; }
1641     ac_useropt_orig=$ac_useropt
1642     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1643     case $ac_user_opts in
1644       *"
1645 "with_$ac_useropt"
1646 "*) ;;
1647       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1648          ac_unrecognized_sep=', ';;
1649     esac
1650     eval with_$ac_useropt=\$ac_optarg ;;
1651
1652   -without-* | --without-*)
1653     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1654     # Reject names that are not valid shell variable names.
1655     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1657    { (exit 1); exit 1; }; }
1658     ac_useropt_orig=$ac_useropt
1659     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1660     case $ac_user_opts in
1661       *"
1662 "with_$ac_useropt"
1663 "*) ;;
1664       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1665          ac_unrecognized_sep=', ';;
1666     esac
1667     eval with_$ac_useropt=no ;;
1668
1669   --x)
1670     # Obsolete; use --with-x.
1671     with_x=yes ;;
1672
1673   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1674   | --x-incl | --x-inc | --x-in | --x-i)
1675     ac_prev=x_includes ;;
1676   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1677   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1678     x_includes=$ac_optarg ;;
1679
1680   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1681   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1682     ac_prev=x_libraries ;;
1683   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1684   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1685     x_libraries=$ac_optarg ;;
1686
1687   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1688 Try \`$0 --help' for more information." >&2
1689    { (exit 1); exit 1; }; }
1690     ;;
1691
1692   *=*)
1693     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1694     # Reject names that are not valid shell variable names.
1695     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1696       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1697    { (exit 1); exit 1; }; }
1698     eval $ac_envvar=\$ac_optarg
1699     export $ac_envvar ;;
1700
1701   *)
1702     # FIXME: should be removed in autoconf 3.0.
1703     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1704     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1705       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1706     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1707     ;;
1708
1709   esac
1710 done
1711
1712 if test -n "$ac_prev"; then
1713   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1714   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1715    { (exit 1); exit 1; }; }
1716 fi
1717
1718 if test -n "$ac_unrecognized_opts"; then
1719   case $enable_option_checking in
1720     no) ;;
1721     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1722    { (exit 1); exit 1; }; } ;;
1723     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1724   esac
1725 fi
1726
1727 # Check all directory arguments for consistency.
1728 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1729                 datadir sysconfdir sharedstatedir localstatedir includedir \
1730                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1731                 libdir localedir mandir
1732 do
1733   eval ac_val=\$$ac_var
1734   # Remove trailing slashes.
1735   case $ac_val in
1736     */ )
1737       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1738       eval $ac_var=\$ac_val;;
1739   esac
1740   # Be sure to have absolute directory names.
1741   case $ac_val in
1742     [\\/$]* | ?:[\\/]* )  continue;;
1743     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1744   esac
1745   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1746    { (exit 1); exit 1; }; }
1747 done
1748
1749 # There might be people who depend on the old broken behavior: `$host'
1750 # used to hold the argument of --host etc.
1751 # FIXME: To remove some day.
1752 build=$build_alias
1753 host=$host_alias
1754 target=$target_alias
1755
1756 # FIXME: To remove some day.
1757 if test "x$host_alias" != x; then
1758   if test "x$build_alias" = x; then
1759     cross_compiling=maybe
1760     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1761     If a cross compiler is detected then cross compile mode will be used." >&2
1762   elif test "x$build_alias" != "x$host_alias"; then
1763     cross_compiling=yes
1764   fi
1765 fi
1766
1767 ac_tool_prefix=
1768 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1769
1770 test "$silent" = yes && exec 6>/dev/null
1771
1772
1773 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1774 ac_ls_di=`ls -di .` &&
1775 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1776   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1777    { (exit 1); exit 1; }; }
1778 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1779   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1780    { (exit 1); exit 1; }; }
1781
1782
1783 # Find the source files, if location was not specified.
1784 if test -z "$srcdir"; then
1785   ac_srcdir_defaulted=yes
1786   # Try the directory containing this script, then the parent directory.
1787   ac_confdir=`$as_dirname -- "$as_myself" ||
1788 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1789          X"$as_myself" : 'X\(//\)[^/]' \| \
1790          X"$as_myself" : 'X\(//\)$' \| \
1791          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1792 $as_echo X"$as_myself" |
1793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1794             s//\1/
1795             q
1796           }
1797           /^X\(\/\/\)[^/].*/{
1798             s//\1/
1799             q
1800           }
1801           /^X\(\/\/\)$/{
1802             s//\1/
1803             q
1804           }
1805           /^X\(\/\).*/{
1806             s//\1/
1807             q
1808           }
1809           s/.*/./; q'`
1810   srcdir=$ac_confdir
1811   if test ! -r "$srcdir/$ac_unique_file"; then
1812     srcdir=..
1813   fi
1814 else
1815   ac_srcdir_defaulted=no
1816 fi
1817 if test ! -r "$srcdir/$ac_unique_file"; then
1818   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1819   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1820    { (exit 1); exit 1; }; }
1821 fi
1822 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1823 ac_abs_confdir=`(
1824         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1825    { (exit 1); exit 1; }; }
1826         pwd)`
1827 # When building in place, set srcdir=.
1828 if test "$ac_abs_confdir" = "$ac_pwd"; then
1829   srcdir=.
1830 fi
1831 # Remove unnecessary trailing slashes from srcdir.
1832 # Double slashes in file names in object file debugging info
1833 # mess up M-x gdb in Emacs.
1834 case $srcdir in
1835 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1836 esac
1837 for ac_var in $ac_precious_vars; do
1838   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1839   eval ac_env_${ac_var}_value=\$${ac_var}
1840   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1841   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1842 done
1843
1844 #
1845 # Report the --help message.
1846 #
1847 if test "$ac_init_help" = "long"; then
1848   # Omit some internal or obsolete options to make the list less imposing.
1849   # This message is too long to be a string in the A/UX 3.1 sh.
1850   cat <<_ACEOF
1851 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1852
1853 Usage: $0 [OPTION]... [VAR=VALUE]...
1854
1855 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1856 VAR=VALUE.  See below for descriptions of some of the useful variables.
1857
1858 Defaults for the options are specified in brackets.
1859
1860 Configuration:
1861   -h, --help              display this help and exit
1862       --help=short        display options specific to this package
1863       --help=recursive    display the short help of all the included packages
1864   -V, --version           display version information and exit
1865   -q, --quiet, --silent   do not print \`checking...' messages
1866       --cache-file=FILE   cache test results in FILE [disabled]
1867   -C, --config-cache      alias for \`--cache-file=config.cache'
1868   -n, --no-create         do not create output files
1869       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1870
1871 Installation directories:
1872   --prefix=PREFIX         install architecture-independent files in PREFIX
1873                           [$ac_default_prefix]
1874   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1875                           [PREFIX]
1876
1877 By default, \`make install' will install all the files in
1878 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1879 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1880 for instance \`--prefix=\$HOME'.
1881
1882 For better control, use the options below.
1883
1884 Fine tuning of the installation directories:
1885   --bindir=DIR            user executables [EPREFIX/bin]
1886   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1887   --libexecdir=DIR        program executables [EPREFIX/libexec]
1888   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1889   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1890   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1891   --libdir=DIR            object code libraries [EPREFIX/lib]
1892   --includedir=DIR        C header files [PREFIX/include]
1893   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1894   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1895   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1896   --infodir=DIR           info documentation [DATAROOTDIR/info]
1897   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1898   --mandir=DIR            man documentation [DATAROOTDIR/man]
1899   --docdir=DIR            documentation root [DATAROOTDIR/doc/asterisk]
1900   --htmldir=DIR           html documentation [DOCDIR]
1901   --dvidir=DIR            dvi documentation [DOCDIR]
1902   --pdfdir=DIR            pdf documentation [DOCDIR]
1903   --psdir=DIR             ps documentation [DOCDIR]
1904 _ACEOF
1905
1906   cat <<\_ACEOF
1907
1908 System types:
1909   --build=BUILD     configure for building on BUILD [guessed]
1910   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1911 _ACEOF
1912 fi
1913
1914 if test -n "$ac_init_help"; then
1915   case $ac_init_help in
1916      short | recursive ) echo "Configuration of asterisk trunk:";;
1917    esac
1918   cat <<\_ACEOF
1919
1920 Optional Features:
1921   --disable-option-checking  ignore unrecognized --enable/--with options
1922   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1923   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1924   --enable-dev-mode       Turn on developer mode
1925   --enable-coverage       Turn on code coverage tracking (for gcov)
1926   --disable-xmldoc        Explicity disable XML documentation
1927   --disable-largefile     omit support for large files
1928   --enable-internal-poll  Use Asterisk's poll implementation
1929
1930 Optional Packages:
1931   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1932   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1933   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1934   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
1935   --with-bfd=PATH         use Debug symbol decoding files in PATH
1936   --with-execinfo=PATH    use Stack Backtrace files in PATH
1937   --with-bluetooth=PATH   use Bluetooth files in PATH
1938   --with-cap=PATH         use POSIX 1.e capabilities files in PATH
1939   --with-curses=PATH      use curses files in PATH
1940   --with-crypto=PATH      use OpenSSL Cryptography files in PATH
1941   --with-dahdi=PATH       use DAHDI files in PATH
1942   --with-avcodec=PATH     use Ffmpeg and avcodec files in PATH
1943   --with-gsm=PATH         use External GSM files in PATH, use 'internal' GSM
1944                           otherwise
1945   --with-gtk2=PATH        use gtk2 files in PATH
1946   --with-gmime=PATH       use GMime files in PATH
1947   --with-h323=PATH        use OpenH323 files in PATH
1948   --with-hoard=PATH       use Hoard Memory Allocator files in PATH
1949   --with-ical=PATH        use iCal files in PATH
1950   --with-iconv=PATH       use Iconv files in PATH
1951   --with-iksemel=PATH     use Iksemel Jabber files in PATH
1952   --with-imap=PATH        use UW IMAP Toolkit files in PATH
1953   --with-inotify=PATH     use inotify support files in PATH
1954   --with-iodbc=PATH       use iODBC files in PATH
1955   --with-isdnnet=PATH     use ISDN4Linux files in PATH
1956   --with-jack=PATH        use Jack Audio Connection Kit files in PATH
1957   --with-kqueue=PATH      use kqueue support files in PATH
1958   --with-ldap=PATH        use OpenLDAP files in PATH
1959   --with-libcurl=DIR      look for the curl library in DIR
1960   --with-libxml2=PATH     use LibXML2 files in PATH
1961   --with-ltdl=PATH        use libtool files in PATH
1962   --with-lua=PATH         use Lua files in PATH
1963   --with-misdn=PATH       use mISDN user files in PATH
1964   --with-mysqlclient=PATH use MySQL client files in PATH
1965   --with-nbs=PATH         use Network Broadcast Sound files in PATH
1966   --with-ncurses=PATH     use ncurses files in PATH
1967   --with-neon=PATH        use neon files in PATH
1968   --with-neon29=PATH      use neon29 files in PATH
1969   --with-netsnmp=PATH     use Net-SNMP files in PATH
1970   --with-newt=PATH        use newt files in PATH
1971   --with-ogg=PATH         use OGG files in PATH
1972   --with-openais=PATH     use OpenAIS files in PATH
1973   --with-openr2=PATH      use MFR2 files in PATH
1974   --with-osptk=PATH       use OSP Toolkit files in PATH
1975   --with-oss=PATH         use Open Sound System files in PATH
1976   --with-postgres=PATH    use PostgreSQL files in PATH
1977   --with-popt=PATH        use popt files in PATH
1978   --with-portaudio=PATH   use PortAudio files in PATH
1979   --with-pri=PATH         use ISDN PRI files in PATH
1980   --with-pwlib=PATH       use PWlib files in PATH
1981   --with-radius=PATH      use Radius Client files in PATH
1982   --with-resample=PATH    use LIBRESAMPLE files in PATH
1983   --with-sdl=PATH         use Sdl files in PATH
1984   --with-SDL_image=PATH   use Sdl Image files in PATH
1985   --with-sounds-cache=PATH
1986                           use cached sound tarfiles in PATH
1987   --with-spandsp=PATH     use SPANDSP files in PATH
1988   --with-ss7=PATH         use ISDN SS7 files in PATH
1989   --with-speex=PATH       use Speex files in PATH
1990   --with-speex=PATH       use Speex preprocess routines files in PATH
1991   --with-speexdsp=PATH    use SpeexDSP files in PATH
1992   --with-sqlite=PATH      use SQLite files in PATH
1993   --with-sqlite3=PATH     use SQLite files in PATH
1994   --with-srtp=PATH        use Secure RTP files in PATH
1995   --with-ssl=PATH         use OpenSSL Secure Sockets Layer files in PATH
1996   --with-suppserv=PATH    use mISDN Supplemental Services files in PATH
1997   --with-tds=PATH         use FreeTDS files in PATH
1998   --with-termcap=PATH     use Termcap files in PATH
1999   --with-timerfd=PATH     use timerfd files in PATH
2000   --with-tinfo=PATH       use Term Info files in PATH
2001   --with-tonezone=PATH    use tonezone files in PATH
2002   --with-unixodbc=PATH    use unixODBC files in PATH
2003   --with-usb=PATH         use usb files in PATH
2004   --with-vorbis=PATH      use Vorbis files in PATH
2005   --with-vpb=PATH         use Voicetronix API files in PATH
2006   --with-x11=PATH         use X11 files in PATH
2007   --with-z=PATH           use zlib compression files in PATH
2008
2009 Some influential environment variables:
2010   CC          C compiler command
2011   CFLAGS      C compiler flags
2012   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2013               nonstandard directory <lib dir>
2014   LIBS        libraries to pass to the linker, e.g. -l<library>
2015   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2016               you have headers in a nonstandard directory <include dir>
2017   CPP         C preprocessor
2018   CXX         C++ compiler command
2019   CXXFLAGS    C++ compiler flags
2020   CXXCPP      C++ preprocessor
2021
2022 Use these variables to override the choices made by `configure' or to help
2023 it to find libraries and programs with nonstandard names/locations.
2024
2025 Report bugs to <https://issues.asterisk.org>.
2026 _ACEOF
2027 ac_status=$?
2028 fi
2029
2030 if test "$ac_init_help" = "recursive"; then
2031   # If there are subdirs, report their specific --help.
2032   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033     test -d "$ac_dir" ||
2034       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2035       continue
2036     ac_builddir=.
2037
2038 case "$ac_dir" in
2039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 *)
2041   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042   # A ".." for each directory in $ac_dir_suffix.
2043   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044   case $ac_top_builddir_sub in
2045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047   esac ;;
2048 esac
2049 ac_abs_top_builddir=$ac_pwd
2050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051 # for backward compatibility:
2052 ac_top_builddir=$ac_top_build_prefix
2053
2054 case $srcdir in
2055   .)  # We are building in place.
2056     ac_srcdir=.
2057     ac_top_srcdir=$ac_top_builddir_sub
2058     ac_abs_top_srcdir=$ac_pwd ;;
2059   [\\/]* | ?:[\\/]* )  # Absolute name.
2060     ac_srcdir=$srcdir$ac_dir_suffix;
2061     ac_top_srcdir=$srcdir
2062     ac_abs_top_srcdir=$srcdir ;;
2063   *) # Relative name.
2064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065     ac_top_srcdir=$ac_top_build_prefix$srcdir
2066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067 esac
2068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069
2070     cd "$ac_dir" || { ac_status=$?; continue; }
2071     # Check for guested configure.
2072     if test -f "$ac_srcdir/configure.gnu"; then
2073       echo &&
2074       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075     elif test -f "$ac_srcdir/configure"; then
2076       echo &&
2077       $SHELL "$ac_srcdir/configure" --help=recursive
2078     else
2079       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080     fi || ac_status=$?
2081     cd "$ac_pwd" || { ac_status=$?; break; }
2082   done
2083 fi
2084
2085 test -n "$ac_init_help" && exit $ac_status
2086 if $ac_init_version; then
2087   cat <<\_ACEOF
2088 asterisk configure trunk
2089 generated by GNU Autoconf 2.63
2090
2091 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2092 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2093 This configure script is free software; the Free Software Foundation
2094 gives unlimited permission to copy, distribute and modify it.
2095
2096 "Asterisk"
2097 _ACEOF
2098   exit
2099 fi
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by asterisk $as_me trunk, which was
2105 generated by GNU Autoconf 2.63.  Invocation command line was
2106
2107   $ $0 $@
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2125
2126 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2127 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2130 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2131 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2132 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   $as_echo "PATH: $as_dir"
2142 done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168   for ac_arg
2169   do
2170     case $ac_arg in
2171     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173     | -silent | --silent | --silen | --sile | --sil)
2174       continue ;;
2175     *\'*)
2176       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177     esac
2178     case $ac_pass in
2179     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2180     2)
2181       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2182       if test $ac_must_keep_next = true; then
2183         ac_must_keep_next=false # Got value, back to normal.
2184       else
2185         case $ac_arg in
2186           *=* | --config-cache | -C | -disable-* | --disable-* \
2187           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189           | -with-* | --with-* | -without-* | --without-* | --x)
2190             case "$ac_configure_args0 " in
2191               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192             esac
2193             ;;
2194           -* ) ac_must_keep_next=true ;;
2195         esac
2196       fi
2197       ac_configure_args="$ac_configure_args '$ac_arg'"
2198       ;;
2199     esac
2200   done
2201 done
2202 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2203 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log.  We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211   # Save into config.log some information that might help in debugging.
2212   {
2213     echo
2214
2215     cat <<\_ASBOX
2216 ## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##
2219 _ASBOX
2220     echo
2221     # The following way of writing the cache mishandles newlines in values,
2222 (
2223   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224     eval ac_val=\$$ac_var
2225     case $ac_val in #(
2226     *${as_nl}*)
2227       case $ac_var in #(
2228       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230       esac
2231       case $ac_var in #(
2232       _ | IFS | as_nl) ;; #(
2233       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234       *) $as_unset $ac_var ;;
2235       esac ;;
2236     esac
2237   done
2238   (set) 2>&1 |
2239     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240     *${as_nl}ac_space=\ *)
2241       sed -n \
2242         "s/'\''/'\''\\\\'\'''\''/g;
2243           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244       ;; #(
2245     *)
2246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247       ;;
2248     esac |
2249     sort
2250 )
2251     echo
2252
2253     cat <<\_ASBOX
2254 ## ----------------- ##
2255 ## Output variables. ##
2256 ## ----------------- ##
2257 _ASBOX
2258     echo
2259     for ac_var in $ac_subst_vars
2260     do
2261       eval ac_val=\$$ac_var
2262       case $ac_val in
2263       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264       esac
2265       $as_echo "$ac_var='\''$ac_val'\''"
2266     done | sort
2267     echo
2268
2269     if test -n "$ac_subst_files"; then
2270       cat <<\_ASBOX
2271 ## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##
2274 _ASBOX
2275       echo
2276       for ac_var in $ac_subst_files
2277       do
2278         eval ac_val=\$$ac_var
2279         case $ac_val in
2280         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281         esac
2282         $as_echo "$ac_var='\''$ac_val'\''"
2283       done | sort
2284       echo
2285     fi
2286
2287     if test -s confdefs.h; then
2288       cat <<\_ASBOX
2289 ## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##
2292 _ASBOX
2293       echo
2294       cat confdefs.h
2295       echo
2296     fi
2297     test "$ac_signal" != 0 &&
2298       $as_echo "$as_me: caught signal $ac_signal"
2299     $as_echo "$as_me: exit $exit_status"
2300   } >&5
2301   rm -f core *.core core.conftest.* &&
2302     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2303     exit $exit_status
2304 ' 0
2305 for ac_signal in 1 2 13 15; do
2306   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2307 done
2308 ac_signal=0
2309
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2312
2313 # Predefined preprocessor variables.
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 _ACEOF
2328
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_STRING "$PACKAGE_STRING"
2332 _ACEOF
2333
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337 _ACEOF
2338
2339
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345   ac_site_file1=$CONFIG_SITE
2346 elif test "x$prefix" != xNONE; then
2347   ac_site_file1=$prefix/share/config.site
2348   ac_site_file2=$prefix/etc/config.site
2349 else
2350   ac_site_file1=$ac_default_prefix/share/config.site
2351   ac_site_file2=$ac_default_prefix/etc/config.site
2352 fi
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 do
2355   test "x$ac_site_file" = xNONE && continue
2356   if test -r "$ac_site_file"; then
2357     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359     sed 's/^/| /' "$ac_site_file" >&5
2360     . "$ac_site_file"
2361   fi
2362 done
2363
2364 if test -r "$cache_file"; then
2365   # Some versions of bash will fail to source /dev/null (special
2366   # files actually), so we avoid doing that.
2367   if test -f "$cache_file"; then
2368     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370     case $cache_file in
2371       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372       *)                      . "./$cache_file";;
2373     esac
2374   fi
2375 else
2376   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378   >$cache_file
2379 fi
2380
2381 ac_header_list="$ac_header_list utime.h"
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387   eval ac_new_set=\$ac_env_${ac_var}_set
2388   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389   eval ac_new_val=\$ac_env_${ac_var}_value
2390   case $ac_old_set,$ac_new_set in
2391     set,)
2392       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394       ac_cache_corrupted=: ;;
2395     ,set)
2396       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,);;
2400     *)
2401       if test "x$ac_old_val" != "x$ac_new_val"; then
2402         # differences in whitespace do not lead to failure.
2403         ac_old_val_w=`echo x $ac_old_val`
2404         ac_new_val_w=`echo x $ac_new_val`
2405         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408           ac_cache_corrupted=:
2409         else
2410           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412           eval $ac_var=\$ac_old_val
2413         fi
2414         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2415 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2416         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2418       fi;;
2419   esac
2420   # Pass precious variables to config.status.
2421   if test "$ac_new_set" = set; then
2422     case $ac_new_val in
2423     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     *) ac_arg=$ac_var=$ac_new_val ;;
2425     esac
2426     case " $ac_configure_args " in
2427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2428       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2429     esac
2430   fi
2431 done
2432 if $ac_cache_corrupted; then
2433   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2438 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472
2473
2474 # cross-compile macros
2475 ac_aux_dir=
2476 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2477   if test -f "$ac_dir/install-sh"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/install-sh -c"
2480     break
2481   elif test -f "$ac_dir/install.sh"; then
2482     ac_aux_dir=$ac_dir
2483     ac_install_sh="$ac_aux_dir/install.sh -c"
2484     break
2485   elif test -f "$ac_dir/shtool"; then
2486     ac_aux_dir=$ac_dir
2487     ac_install_sh="$ac_aux_dir/shtool install -c"
2488     break
2489   fi
2490 done
2491 if test -z "$ac_aux_dir"; then
2492   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2493 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496
2497 # These three variables are undocumented and unsupported,
2498 # and are intended to be withdrawn in a future Autoconf release.
2499 # They can cause serious problems if a builder's source tree is in a directory
2500 # whose full name contains unusual characters.
2501 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2502 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2503 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2504
2505
2506 # Make sure we can run config.sub.
2507 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2508   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2509 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2510    { (exit 1); exit 1; }; }
2511
2512 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2513 $as_echo_n "checking build system type... " >&6; }
2514 if test "${ac_cv_build+set}" = set; then
2515   $as_echo_n "(cached) " >&6
2516 else
2517   ac_build_alias=$build_alias
2518 test "x$ac_build_alias" = x &&
2519   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2520 test "x$ac_build_alias" = x &&
2521   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2522 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2523    { (exit 1); exit 1; }; }
2524 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2525   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2526 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2527    { (exit 1); exit 1; }; }
2528
2529 fi
2530 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2531 $as_echo "$ac_cv_build" >&6; }
2532 case $ac_cv_build in
2533 *-*-*) ;;
2534 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2535 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2536    { (exit 1); exit 1; }; };;
2537 esac
2538 build=$ac_cv_build
2539 ac_save_IFS=$IFS; IFS='-'
2540 set x $ac_cv_build
2541 shift
2542 build_cpu=$1
2543 build_vendor=$2
2544 shift; shift
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2547 build_os=$*
2548 IFS=$ac_save_IFS
2549 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550
2551
2552 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2553 $as_echo_n "checking host system type... " >&6; }
2554 if test "${ac_cv_host+set}" = set; then
2555   $as_echo_n "(cached) " >&6
2556 else
2557   if test "x$host_alias" = x; then
2558   ac_cv_host=$ac_cv_build
2559 else
2560   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2561     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2562 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2563    { (exit 1); exit 1; }; }
2564 fi
2565
2566 fi
2567 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2568 $as_echo "$ac_cv_host" >&6; }
2569 case $ac_cv_host in
2570 *-*-*) ;;
2571 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2572 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2573    { (exit 1); exit 1; }; };;
2574 esac
2575 host=$ac_cv_host
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_host
2578 shift
2579 host_cpu=$1
2580 host_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 host_os=$*
2585 IFS=$ac_save_IFS
2586 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587
2588
2589
2590 # check existence of the package
2591
2592
2593 ac_aux_dir=
2594 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2595   if test -f "$ac_dir/install-sh"; then
2596     ac_aux_dir=$ac_dir
2597     ac_install_sh="$ac_aux_dir/install-sh -c"
2598     break
2599   elif test -f "$ac_dir/install.sh"; then
2600     ac_aux_dir=$ac_dir
2601     ac_install_sh="$ac_aux_dir/install.sh -c"
2602     break
2603   elif test -f "$ac_dir/shtool"; then
2604     ac_aux_dir=$ac_dir
2605     ac_install_sh="$ac_aux_dir/shtool install -c"
2606     break
2607   fi
2608 done
2609 if test -z "$ac_aux_dir"; then
2610   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2611 $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2612    { (exit 1); exit 1; }; }
2613 fi
2614
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2622
2623
2624
2625
2626
2627
2628 # preserve any CFLAGS or LDFLAGS that may be set
2629 # NOTE: This must be done before calling any macros that end up
2630 # calling AC_PROG_CC or the like, since they will set a default
2631 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2632 # we don't want those default flags to be carried over into the
2633 # rest of the build system since we have other means of controlling
2634 # debugging symbol generation and optimization.
2635 CONFIG_CFLAGS="${CFLAGS}"
2636 CONFIG_LDFLAGS="${LDFLAGS}"
2637
2638
2639
2640 # specify output header file
2641 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2642
2643
2644 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
2645 # other macro that uses the C compiler, or the default order will be used.
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 if test -n "$ac_tool_prefix"; then
2652   for ac_prog in gcc cc
2653   do
2654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test -n "$CC"; then
2662   ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669   for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2685 else
2686   { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691     test -n "$CC" && break
2692   done
2693 fi
2694 if test -z "$CC"; then
2695   ac_ct_CC=$CC
2696   for ac_prog in gcc cc
2697 do
2698   # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$ac_ct_CC"; then
2706   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_ac_ct_CC="$ac_prog"
2716     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 $as_echo "$ac_ct_CC" >&6; }
2729 else
2730   { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735   test -n "$ac_ct_CC" && break
2736 done
2737
2738   if test "x$ac_ct_CC" = x; then
2739     CC=""
2740   else
2741     case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747     CC=$ac_ct_CC
2748   fi
2749 fi
2750
2751
2752 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details." >&5
2756 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2757 See \`config.log' for more details." >&2;}
2758    { (exit 1); exit 1; }; }; }
2759
2760 # Provide some information about the compiler.
2761 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2762 set X $ac_compile
2763 ac_compiler=$2
2764 { (ac_try="$ac_compiler --version >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770 $as_echo "$ac_try_echo") >&5
2771   (eval "$ac_compiler --version >&5") 2>&5
2772   ac_status=$?
2773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }
2775 { (ac_try="$ac_compiler -v >&5"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2781 $as_echo "$ac_try_echo") >&5
2782   (eval "$ac_compiler -v >&5") 2>&5
2783   ac_status=$?
2784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }
2786 { (ac_try="$ac_compiler -V >&5"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792 $as_echo "$ac_try_echo") >&5
2793   (eval "$ac_compiler -V >&5") 2>&5
2794   ac_status=$?
2795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }
2797
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804
2805 int
2806 main ()
2807 {
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2817 # of exeext.
2818 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 $as_echo_n "checking for C compiler default output file name... " >&6; }
2820 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821
2822 # The possible output files:
2823 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2824
2825 ac_rmfiles=
2826 for ac_file in $ac_files
2827 do
2828   case $ac_file in
2829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2831   esac
2832 done
2833 rm -f $ac_rmfiles
2834
2835 if { (ac_try="$ac_link_default"
2836 case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841 $as_echo "$ac_try_echo") >&5
2842   (eval "$ac_link_default") 2>&5
2843   ac_status=$?
2844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); }; then
2846   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2849 # so that the user can short-circuit this test for compilers unknown to
2850 # Autoconf.
2851 for ac_file in $ac_files ''
2852 do
2853   test -f "$ac_file" || continue
2854   case $ac_file in
2855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2856         ;;
2857     [ab].out )
2858         # We found the default executable, but exeext='' is most
2859         # certainly right.
2860         break;;
2861     *.* )
2862         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2863         then :; else
2864            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865         fi
2866         # We set ac_cv_exeext here because the later test for it is not
2867         # safe: cross compilers may not add the suffix if given an `-o'
2868         # argument, so we may need to know it at that point already.
2869         # Even if this section looks crufty: it has the advantage of
2870         # actually working.
2871         break;;
2872     * )
2873         break;;
2874   esac
2875 done
2876 test "$ac_cv_exeext" = no && ac_cv_exeext=
2877
2878 else
2879   ac_file=''
2880 fi
2881
2882 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2883 $as_echo "$ac_file" >&6; }
2884 if test -z "$ac_file"; then
2885   $as_echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2891 See \`config.log' for more details." >&5
2892 $as_echo "$as_me: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&2;}
2894    { (exit 77); exit 77; }; }; }
2895 fi
2896
2897 ac_exeext=$ac_cv_exeext
2898
2899 # Check that the compiler produces executables we can run.  If not, either
2900 # the compiler is broken, or we cross compile.
2901 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2902 $as_echo_n "checking whether the C compiler works... " >&6; }
2903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2904 # If not cross compiling, check that we can run a simple program.
2905 if test "$cross_compiling" != yes; then
2906   if { ac_try='./$ac_file'
2907   { (case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
2913   (eval "$ac_try") 2>&5
2914   ac_status=$?
2915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917     cross_compiling=no
2918   else
2919     if test "$cross_compiling" = maybe; then
2920         cross_compiling=yes
2921     else
2922         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details." >&5
2927 $as_echo "$as_me: error: cannot run C compiled programs.
2928 If you meant to cross compile, use \`--host'.
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }; }
2931     fi
2932   fi
2933 fi
2934 { $as_echo "$as_me:$LINENO: result: yes" >&5
2935 $as_echo "yes" >&6; }
2936
2937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2938 ac_clean_files=$ac_clean_files_save
2939 # Check that the compiler produces executables we can run.  If not, either
2940 # the compiler is broken, or we cross compile.
2941 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2942 $as_echo_n "checking whether we are cross compiling... " >&6; }
2943 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2944 $as_echo "$cross_compiling" >&6; }
2945
2946 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2947 $as_echo_n "checking for suffix of executables... " >&6; }
2948 if { (ac_try="$ac_link"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955   (eval "$ac_link") 2>&5
2956   ac_status=$?
2957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; then
2959   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2962 # `rm'.
2963 for ac_file in conftest.exe conftest conftest.*; do
2964   test -f "$ac_file" || continue
2965   case $ac_file in
2966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2967     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968           break;;
2969     * ) break;;
2970   esac
2971 done
2972 else
2973   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&5
2977 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&2;}
2979    { (exit 1); exit 1; }; }; }
2980 fi
2981
2982 rm -f conftest$ac_cv_exeext
2983 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2984 $as_echo "$ac_cv_exeext" >&6; }
2985
2986 rm -f conftest.$ac_ext
2987 EXEEXT=$ac_cv_exeext
2988 ac_exeext=$EXEEXT
2989 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2990 $as_echo_n "checking for suffix of object files... " >&6; }
2991 if test "${ac_cv_objext+set}" = set; then
2992   $as_echo_n "(cached) " >&6
2993 else
2994   cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000
3001 int
3002 main ()
3003 {
3004
3005   ;
3006   return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.o conftest.obj
3010 if { (ac_try="$ac_compile"
3011 case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016 $as_echo "$ac_try_echo") >&5
3017   (eval "$ac_compile") 2>&5
3018   ac_status=$?
3019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; then
3021   for ac_file in conftest.o conftest.obj conftest.*; do
3022   test -f "$ac_file" || continue;
3023   case $ac_file in
3024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026        break;;
3027   esac
3028 done
3029 else
3030   $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&5
3037 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&2;}
3039    { (exit 1); exit 1; }; }; }
3040 fi
3041
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 fi
3044 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 $as_echo "$ac_cv_objext" >&6; }
3046 OBJEXT=$ac_cv_objext
3047 ac_objext=$OBJEXT
3048 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051   $as_echo_n "(cached) " >&6
3052 else
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063 #ifndef __GNUC__
3064        choke me
3065 #endif
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3078 $as_echo "$ac_try_echo") >&5
3079   (eval "$ac_compile") 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } && {
3086          test -z "$ac_c_werror_flag" ||
3087          test ! -s conftest.err
3088        } && test -s conftest.$ac_objext; then
3089   ac_compiler_gnu=yes
3090 else
3091   $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094         ac_compiler_gnu=no
3095 fi
3096
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3099
3100 fi
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3103 if test $ac_compiler_gnu = yes; then
3104   GCC=yes
3105 else
3106   GCC=
3107 fi
3108 ac_test_CFLAGS=${CFLAGS+set}
3109 ac_save_CFLAGS=$CFLAGS
3110 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3111 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3112 if test "${ac_cv_prog_cc_g+set}" = set; then
3113   $as_echo_n "(cached) " >&6
3114 else
3115   ac_save_c_werror_flag=$ac_c_werror_flag
3116    ac_c_werror_flag=yes
3117    ac_cv_prog_cc_g=no
3118    CFLAGS="-g"
3119    cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } && {
3149          test -z "$ac_c_werror_flag" ||
3150          test ! -s conftest.err
3151        } && test -s conftest.$ac_objext; then
3152   ac_cv_prog_cc_g=yes
3153 else
3154   $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         CFLAGS=""
3158       cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_c_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   :
3192 else
3193   $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196         ac_c_werror_flag=$ac_save_c_werror_flag
3197          CFLAGS="-g"
3198          cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3220 $as_echo "$ac_try_echo") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   ac_cv_prog_cc_g=yes
3232 else
3233   $as_echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246    ac_c_werror_flag=$ac_save_c_werror_flag
3247 fi
3248 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 $as_echo "$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251   CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253   if test "$GCC" = yes; then
3254     CFLAGS="-g -O2"
3255   else
3256     CFLAGS="-g"
3257   fi
3258 else
3259   if test "$GCC" = yes; then
3260     CFLAGS="-O2"
3261   else
3262     CFLAGS=
3263   fi
3264 fi
3265 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268   $as_echo_n "(cached) " >&6
3269 else
3270   ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286      char **p;
3287      int i;
3288 {
3289   return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293   char *s;
3294   va_list v;
3295   va_start (v,p);
3296   s = g (p, va_arg (v,int));
3297   va_end (v);
3298   return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3302    function prototypes and stuff, but not '\xHH' hex character constants.
3303    These don't provoke an error unfortunately, instead are silently treated
3304    as 'x'.  The following induces an error, until -std is added to get
3305    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3306    array size at least.  It's necessary to write '\x00'==0 to get something
3307    that's true only with -std.  */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311    inside strings and character constants.  */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332   CC="$ac_save_CC $ac_arg"
3333   rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341   (eval "$ac_compile") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } && {
3348          test -z "$ac_c_werror_flag" ||
3349          test ! -s conftest.err
3350        } && test -s conftest.$ac_objext; then
3351   ac_cv_prog_cc_c89=$ac_arg
3352 else
3353   $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext
3360   test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3364
3365 fi
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3368   x)
3369     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3370 $as_echo "none needed" >&6; } ;;
3371   xno)
3372     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3373 $as_echo "unsupported" >&6; } ;;
3374   *)
3375     CC="$CC $ac_cv_prog_cc_c89"
3376     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3396 # On Suns, sometimes $CPP names a directory.
3397 if test -n "$CPP" && test -d "$CPP"; then
3398   CPP=
3399 fi
3400 if test -z "$CPP"; then
3401   if test "${ac_cv_prog_CPP+set}" = set; then
3402   $as_echo_n "(cached) " >&6
3403 else
3404       # Double quotes because CPP needs to be expanded
3405     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406     do
3407       ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3409 do
3410   # Use a header file that comes with gcc, so configuring glibc
3411   # with a fresh cross-compiler works.
3412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413   # <limits.h> exists even on freestanding compilers.
3414   # On the NeXT, cc -E runs the code through the compiler's parser,
3415   # not just through cpp. "Syntax error" is here to catch this case.
3416   cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #ifdef __STDC__
3423 # include <limits.h>
3424 #else
3425 # include <assert.h>
3426 #endif
3427                      Syntax error
3428 _ACEOF
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435 $as_echo "$ac_try_echo") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null && {
3443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444          test ! -s conftest.err
3445        }; then
3446   :
3447 else
3448   $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451   # Broken: fails on valid input.
3452 continue
3453 fi
3454
3455 rm -f conftest.err conftest.$ac_ext
3456
3457   # OK, works on sane cases.  Now check whether nonexistent headers
3458   # can be detected and how.
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465 #include <ac_nonexistent.h>
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473 $as_echo "$ac_try_echo") >&5
3474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475   ac_status=$?
3476   grep -v '^ *+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } >/dev/null && {
3481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482          test ! -s conftest.err
3483        }; then
3484   # Broken: success on invalid input.
3485 continue
3486 else
3487   $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490   # Passes both tests.
3491 ac_preproc_ok=:
3492 break
3493 fi
3494
3495 rm -f conftest.err conftest.$ac_ext
3496
3497 done
3498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499 rm -f conftest.err conftest.$ac_ext
3500 if $ac_preproc_ok; then
3501   break
3502 fi
3503
3504     done
3505     ac_cv_prog_CPP=$CPP
3506
3507 fi
3508   CPP=$ac_cv_prog_CPP
3509 else
3510   ac_cv_prog_CPP=$CPP
3511 fi
3512 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3513 $as_echo "$CPP" >&6; }
3514 ac_preproc_ok=false
3515 for ac_c_preproc_warn_flag in '' yes
3516 do
3517   # Use a header file that comes with gcc, so configuring glibc
3518   # with a fresh cross-compiler works.
3519   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520   # <limits.h> exists even on freestanding compilers.
3521   # On the NeXT, cc -E runs the code through the compiler's parser,
3522   # not just through cpp. "Syntax error" is here to catch this case.
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529 #ifdef __STDC__
3530 # include <limits.h>
3531 #else
3532 # include <assert.h>
3533 #endif
3534                      Syntax error
3535 _ACEOF
3536 if { (ac_try="$ac_cpp conftest.$ac_ext"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } >/dev/null && {
3550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        }; then
3553   :
3554 else
3555   $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558   # Broken: fails on valid input.
3559 continue
3560 fi
3561
3562 rm -f conftest.err conftest.$ac_ext
3563
3564   # OK, works on sane cases.  Now check whether nonexistent headers
3565   # can be detected and how.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #include <ac_nonexistent.h>
3573 _ACEOF
3574 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } >/dev/null && {
3588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3589          test ! -s conftest.err
3590        }; then
3591   # Broken: success on invalid input.
3592 continue
3593 else
3594   $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597   # Passes both tests.
3598 ac_preproc_ok=:
3599 break
3600 fi
3601
3602 rm -f conftest.err conftest.$ac_ext
3603
3604 done
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then
3608   :
3609 else
3610   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details." >&5
3614 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3615 See \`config.log' for more details." >&2;}
3616    { (exit 1); exit 1; }; }; }
3617 fi
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629   $as_echo_n "(cached) " >&6
3630 else
3631   if test -z "$GREP"; then
3632   ac_path_GREP_found=false
3633   # Loop through the user's path and test for each of PROGNAME-LIST
3634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639   for ac_prog in grep ggrep; do
3640     for ac_exec_ext in '' $ac_executable_extensions; do
3641       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644   # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 *)
3649   ac_count=0
3650   $as_echo_n 0123456789 >"conftest.in"
3651   while :
3652   do
3653     cat "conftest.in" "conftest.in" >"conftest.tmp"
3654     mv "conftest.tmp" "conftest.in"
3655     cp "conftest.in" "conftest.nl"
3656     $as_echo 'GREP' >> "conftest.nl"
3657     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659     ac_count=`expr $ac_count + 1`
3660     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661       # Best one so far, save it but keep looking for a better one
3662       ac_cv_path_GREP="$ac_path_GREP"
3663       ac_path_GREP_max=$ac_count
3664     fi
3665     # 10*(2^10) chars as input seems more than enough
3666     test $ac_count -gt 10 && break
3667   done
3668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671       $ac_path_GREP_found && break 3
3672     done
3673   done
3674 done
3675 IFS=$as_save_IFS
3676   if test -z "$ac_cv_path_GREP"; then
3677     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679    { (exit 1); exit 1; }; }
3680   fi
3681 else
3682   ac_cv_path_GREP=$GREP
3683 fi
3684
3685 fi
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687 $as_echo "$ac_cv_path_GREP" >&6; }
3688  GREP="$ac_cv_path_GREP"
3689
3690
3691 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3692 $as_echo_n "checking for egrep... " >&6; }
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694   $as_echo_n "(cached) " >&6
3695 else
3696   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697    then ac_cv_path_EGREP="$GREP -E"
3698    else
3699      if test -z "$EGREP"; then
3700   ac_path_EGREP_found=false
3701   # Loop through the user's path and test for each of PROGNAME-LIST
3702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707   for ac_prog in egrep; do
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
3712   # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3714 *GNU*)
3715   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3716 *)
3717   ac_count=0
3718   $as_echo_n 0123456789 >"conftest.in"
3719   while :
3720   do
3721     cat "conftest.in" "conftest.in" >"conftest.tmp"
3722     mv "conftest.tmp" "conftest.in"
3723     cp "conftest.in" "conftest.nl"
3724     $as_echo 'EGREP' >> "conftest.nl"
3725     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727     ac_count=`expr $ac_count + 1`
3728     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729       # Best one so far, save it but keep looking for a better one
3730       ac_cv_path_EGREP="$ac_path_EGREP"
3731       ac_path_EGREP_max=$ac_count
3732     fi
3733     # 10*(2^10) chars as input seems more than enough
3734     test $ac_count -gt 10 && break
3735   done
3736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 esac
3738
3739       $ac_path_EGREP_found && break 3
3740     done
3741   done
3742 done
3743 IFS=$as_save_IFS
3744   if test -z "$ac_cv_path_EGREP"; then
3745     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747    { (exit 1); exit 1; }; }
3748   fi
3749 else
3750   ac_cv_path_EGREP=$EGREP
3751 fi
3752
3753    fi
3754 fi
3755 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3756 $as_echo "$ac_cv_path_EGREP" >&6; }
3757  EGREP="$ac_cv_path_EGREP"
3758
3759
3760 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 $as_echo_n "checking for ANSI C header files... " >&6; }
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763   $as_echo_n "(cached) " >&6
3764 else
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771 #include <stdlib.h>
3772 #include <stdarg.h>
3773 #include <string.h>
3774 #include <float.h>
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791 $as_echo "$ac_try_echo") >&5
3792   (eval "$ac_compile") 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } && {
3799          test -z "$ac_c_werror_flag" ||
3800          test ! -s conftest.err
3801        } && test -s conftest.$ac_objext; then
3802   ac_cv_header_stdc=yes
3803 else
3804   $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807         ac_cv_header_stdc=no
3808 fi
3809
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811
3812 if test $ac_cv_header_stdc = yes; then
3813   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <string.h>
3821
3822 _ACEOF
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824   $EGREP "memchr" >/dev/null 2>&1; then
3825   :
3826 else
3827   ac_cv_header_stdc=no
3828 fi
3829 rm -f conftest*
3830
3831 fi
3832
3833 if test $ac_cv_header_stdc = yes; then
3834   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835   cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841 #include <stdlib.h>
3842
3843 _ACEOF
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845   $EGREP "free" >/dev/null 2>&1; then
3846   :
3847 else
3848   ac_cv_header_stdc=no
3849 fi
3850 rm -f conftest*
3851
3852 fi
3853
3854 if test $ac_cv_header_stdc = yes; then
3855   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3856   if test "$cross_compiling" = yes; then
3857   :
3858 else
3859   cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #include <ctype.h>
3866 #include <stdlib.h>
3867 #if ((' ' & 0x0FF) == 0x020)
3868 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3869 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3870 #else
3871 # define ISLOWER(c) \
3872                    (('a' <= (c) && (c) <= 'i') \
3873                      || ('j' <= (c) && (c) <= 'r') \
3874                      || ('s' <= (c) && (c) <= 'z'))
3875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3876 #endif
3877
3878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3879 int
3880 main ()
3881 {
3882   int i;
3883   for (i = 0; i < 256; i++)
3884     if (XOR (islower (i), ISLOWER (i))
3885         || toupper (i) != TOUPPER (i))
3886       return 2;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest$ac_exeext
3891 if { (ac_try="$ac_link"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898   (eval "$ac_link") 2>&5
3899   ac_status=$?
3900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3902   { (case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908   (eval "$ac_try") 2>&5
3909   ac_status=$?
3910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   :
3913 else
3914   $as_echo "$as_me: program exited with status $ac_status" >&5
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ( exit $ac_status )
3919 ac_cv_header_stdc=no
3920 fi
3921 rm -rf conftest.dSYM
3922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3923 fi
3924
3925
3926 fi
3927 fi
3928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3929 $as_echo "$ac_cv_header_stdc" >&6; }
3930 if test $ac_cv_header_stdc = yes; then
3931
3932 cat >>confdefs.h <<\_ACEOF
3933 #define STDC_HEADERS 1
3934 _ACEOF
3935
3936 fi
3937
3938 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949                   inttypes.h stdint.h unistd.h
3950 do
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3953 $as_echo_n "checking for $ac_header... " >&6; }
3954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 $ac_includes_default
3964
3965 #include <$ac_header>
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971   *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3974 $as_echo "$ac_try_echo") >&5
3975   (eval "$ac_compile") 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978 &nb