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