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