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