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