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