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