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