LCR now compiles with current version of OpenBSC.
[lcr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for lcr 1.5.
4 #
5 # Report bugs to <andreas@eversberg.eu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do 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
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='lcr'
598 PACKAGE_TARNAME='lcr'
599 PACKAGE_VERSION='1.5'
600 PACKAGE_STRING='lcr 1.5'
601 PACKAGE_BUGREPORT='andreas@eversberg.eu'
602
603 ac_unique_file="main.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 POW_LIB
642 LIBOBJS
643 ENABLE_GSM_FALSE
644 ENABLE_GSM_TRUE
645 LIBCRYPTO
646 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
647 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
653 CXX
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_dependency_tracking
735 with_asterisk
736 with_ssl
737 with_gsm
738 '
739       ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 CXX
749 CXXFLAGS
750 CCC'
751
752
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805   # If the previous option needs an argument, assign it.
806   if test -n "$ac_prev"; then
807     eval $ac_prev=\$ac_option
808     ac_prev=
809     continue
810   fi
811
812   case $ac_option in
813   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814   *)    ac_optarg=yes ;;
815   esac
816
817   # Accept the important Cygnus configure options, so we can diagnose typos.
818
819   case $ac_dashdash$ac_option in
820   --)
821     ac_dashdash=yes ;;
822
823   -bindir | --bindir | --bindi | --bind | --bin | --bi)
824     ac_prev=bindir ;;
825   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826     bindir=$ac_optarg ;;
827
828   -build | --build | --buil | --bui | --bu)
829     ac_prev=build_alias ;;
830   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831     build_alias=$ac_optarg ;;
832
833   -cache-file | --cache-file | --cache-fil | --cache-fi \
834   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835     ac_prev=cache_file ;;
836   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838     cache_file=$ac_optarg ;;
839
840   --config-cache | -C)
841     cache_file=config.cache ;;
842
843   -datadir | --datadir | --datadi | --datad)
844     ac_prev=datadir ;;
845   -datadir=* | --datadir=* | --datadi=* | --datad=*)
846     datadir=$ac_optarg ;;
847
848   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849   | --dataroo | --dataro | --datar)
850     ac_prev=datarootdir ;;
851   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853     datarootdir=$ac_optarg ;;
854
855   -disable-* | --disable-*)
856     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857     # Reject names that are not valid shell variable names.
858     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860    { (exit 1); exit 1; }; }
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=no ;;
871
872   -docdir | --docdir | --docdi | --doc | --do)
873     ac_prev=docdir ;;
874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875     docdir=$ac_optarg ;;
876
877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878     ac_prev=dvidir ;;
879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880     dvidir=$ac_optarg ;;
881
882   -enable-* | --enable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
887    { (exit 1); exit 1; }; }
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=\$ac_optarg ;;
898
899   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901   | --exec | --exe | --ex)
902     ac_prev=exec_prefix ;;
903   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905   | --exec=* | --exe=* | --ex=*)
906     exec_prefix=$ac_optarg ;;
907
908   -gas | --gas | --ga | --g)
909     # Obsolete; use --with-gas.
910     with_gas=yes ;;
911
912   -help | --help | --hel | --he | -h)
913     ac_init_help=long ;;
914   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915     ac_init_help=recursive ;;
916   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917     ac_init_help=short ;;
918
919   -host | --host | --hos | --ho)
920     ac_prev=host_alias ;;
921   -host=* | --host=* | --hos=* | --ho=*)
922     host_alias=$ac_optarg ;;
923
924   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925     ac_prev=htmldir ;;
926   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927   | --ht=*)
928     htmldir=$ac_optarg ;;
929
930   -includedir | --includedir | --includedi | --included | --include \
931   | --includ | --inclu | --incl | --inc)
932     ac_prev=includedir ;;
933   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934   | --includ=* | --inclu=* | --incl=* | --inc=*)
935     includedir=$ac_optarg ;;
936
937   -infodir | --infodir | --infodi | --infod | --info | --inf)
938     ac_prev=infodir ;;
939   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940     infodir=$ac_optarg ;;
941
942   -libdir | --libdir | --libdi | --libd)
943     ac_prev=libdir ;;
944   -libdir=* | --libdir=* | --libdi=* | --libd=*)
945     libdir=$ac_optarg ;;
946
947   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948   | --libexe | --libex | --libe)
949     ac_prev=libexecdir ;;
950   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951   | --libexe=* | --libex=* | --libe=*)
952     libexecdir=$ac_optarg ;;
953
954   -localedir | --localedir | --localedi | --localed | --locale)
955     ac_prev=localedir ;;
956   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957     localedir=$ac_optarg ;;
958
959   -localstatedir | --localstatedir | --localstatedi | --localstated \
960   | --localstate | --localstat | --localsta | --localst | --locals)
961     ac_prev=localstatedir ;;
962   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964     localstatedir=$ac_optarg ;;
965
966   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967     ac_prev=mandir ;;
968   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969     mandir=$ac_optarg ;;
970
971   -nfp | --nfp | --nf)
972     # Obsolete; use --without-fp.
973     with_fp=no ;;
974
975   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976   | --no-cr | --no-c | -n)
977     no_create=yes ;;
978
979   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981     no_recursion=yes ;;
982
983   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985   | --oldin | --oldi | --old | --ol | --o)
986     ac_prev=oldincludedir ;;
987   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990     oldincludedir=$ac_optarg ;;
991
992   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993     ac_prev=prefix ;;
994   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995     prefix=$ac_optarg ;;
996
997   -program-prefix | --program-prefix | --program-prefi | --program-pref \
998   | --program-pre | --program-pr | --program-p)
999     ac_prev=program_prefix ;;
1000   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002     program_prefix=$ac_optarg ;;
1003
1004   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005   | --program-suf | --program-su | --program-s)
1006     ac_prev=program_suffix ;;
1007   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009     program_suffix=$ac_optarg ;;
1010
1011   -program-transform-name | --program-transform-name \
1012   | --program-transform-nam | --program-transform-na \
1013   | --program-transform-n | --program-transform- \
1014   | --program-transform | --program-transfor \
1015   | --program-transfo | --program-transf \
1016   | --program-trans | --program-tran \
1017   | --progr-tra | --program-tr | --program-t)
1018     ac_prev=program_transform_name ;;
1019   -program-transform-name=* | --program-transform-name=* \
1020   | --program-transform-nam=* | --program-transform-na=* \
1021   | --program-transform-n=* | --program-transform-=* \
1022   | --program-transform=* | --program-transfor=* \
1023   | --program-transfo=* | --program-transf=* \
1024   | --program-trans=* | --program-tran=* \
1025   | --progr-tra=* | --program-tr=* | --program-t=*)
1026     program_transform_name=$ac_optarg ;;
1027
1028   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029     ac_prev=pdfdir ;;
1030   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031     pdfdir=$ac_optarg ;;
1032
1033   -psdir | --psdir | --psdi | --psd | --ps)
1034     ac_prev=psdir ;;
1035   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036     psdir=$ac_optarg ;;
1037
1038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039   | -silent | --silent | --silen | --sile | --sil)
1040     silent=yes ;;
1041
1042   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043     ac_prev=sbindir ;;
1044   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045   | --sbi=* | --sb=*)
1046     sbindir=$ac_optarg ;;
1047
1048   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050   | --sharedst | --shareds | --shared | --share | --shar \
1051   | --sha | --sh)
1052     ac_prev=sharedstatedir ;;
1053   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056   | --sha=* | --sh=*)
1057     sharedstatedir=$ac_optarg ;;
1058
1059   -site | --site | --sit)
1060     ac_prev=site ;;
1061   -site=* | --site=* | --sit=*)
1062     site=$ac_optarg ;;
1063
1064   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065     ac_prev=srcdir ;;
1066   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067     srcdir=$ac_optarg ;;
1068
1069   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070   | --syscon | --sysco | --sysc | --sys | --sy)
1071     ac_prev=sysconfdir ;;
1072   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074     sysconfdir=$ac_optarg ;;
1075
1076   -target | --target | --targe | --targ | --tar | --ta | --t)
1077     ac_prev=target_alias ;;
1078   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079     target_alias=$ac_optarg ;;
1080
1081   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082     verbose=yes ;;
1083
1084   -version | --version | --versio | --versi | --vers | -V)
1085     ac_init_version=: ;;
1086
1087   -with-* | --with-*)
1088     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1092    { (exit 1); exit 1; }; }
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval with_$ac_useropt=\$ac_optarg ;;
1103
1104   -without-* | --without-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1109    { (exit 1); exit 1; }; }
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=no ;;
1120
1121   --x)
1122     # Obsolete; use --with-x.
1123     with_x=yes ;;
1124
1125   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126   | --x-incl | --x-inc | --x-in | --x-i)
1127     ac_prev=x_includes ;;
1128   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130     x_includes=$ac_optarg ;;
1131
1132   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134     ac_prev=x_libraries ;;
1135   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137     x_libraries=$ac_optarg ;;
1138
1139   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1140 Try \`$0 --help' for more information." >&2
1141    { (exit 1); exit 1; }; }
1142     ;;
1143
1144   *=*)
1145     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149    { (exit 1); exit 1; }; }
1150     eval $ac_envvar=\$ac_optarg
1151     export $ac_envvar ;;
1152
1153   *)
1154     # FIXME: should be removed in autoconf 3.0.
1155     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159     ;;
1160
1161   esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1167    { (exit 1); exit 1; }; }
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171   case $enable_option_checking in
1172     no) ;;
1173     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1174    { (exit 1); exit 1; }; } ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198    { (exit 1); exit 1; }; }
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213     If a cross compiler is detected then cross compile mode will be used." >&2
1214   elif test "x$build_alias" != "x$host_alias"; then
1215     cross_compiling=yes
1216   fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1229    { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1232    { (exit 1); exit 1; }; }
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237   ac_srcdir_defaulted=yes
1238   # Try the directory containing this script, then the parent directory.
1239   ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241          X"$as_myself" : 'X\(//\)[^/]' \| \
1242          X"$as_myself" : 'X\(//\)$' \| \
1243          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)[^/].*/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\).*/{
1258             s//\1/
1259             q
1260           }
1261           s/.*/./; q'`
1262   srcdir=$ac_confdir
1263   if test ! -r "$srcdir/$ac_unique_file"; then
1264     srcdir=..
1265   fi
1266 else
1267   ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1277    { (exit 1); exit 1; }; }
1278         pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281   srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291   eval ac_env_${ac_var}_value=\$${ac_var}
1292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300   # Omit some internal or obsolete options to make the list less imposing.
1301   # This message is too long to be a string in the A/UX 3.1 sh.
1302   cat <<_ACEOF
1303 \`configure' configures lcr 1.5 to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313   -h, --help              display this help and exit
1314       --help=short        display options specific to this package
1315       --help=recursive    display the short help of all the included packages
1316   -V, --version           display version information and exit
1317   -q, --quiet, --silent   do not print \`checking...' messages
1318       --cache-file=FILE   cache test results in FILE [disabled]
1319   -C, --config-cache      alias for \`--cache-file=config.cache'
1320   -n, --no-create         do not create output files
1321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324   --prefix=PREFIX         install architecture-independent files in PREFIX
1325                           [$ac_default_prefix]
1326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                           [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337   --bindir=DIR            user executables [EPREFIX/bin]
1338   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1339   --libexecdir=DIR        program executables [EPREFIX/libexec]
1340   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1341   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1342   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1343   --libdir=DIR            object code libraries [EPREFIX/lib]
1344   --includedir=DIR        C header files [PREFIX/include]
1345   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1346   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1347   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1348   --infodir=DIR           info documentation [DATAROOTDIR/info]
1349   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1350   --mandir=DIR            man documentation [DATAROOTDIR/man]
1351   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1352   --htmldir=DIR           html documentation [DOCDIR]
1353   --dvidir=DIR            dvi documentation [DOCDIR]
1354   --pdfdir=DIR            pdf documentation [DOCDIR]
1355   --psdir=DIR             ps documentation [DOCDIR]
1356 _ACEOF
1357
1358   cat <<\_ACEOF
1359
1360 Program names:
1361   --program-prefix=PREFIX            prepend PREFIX to installed program names
1362   --program-suffix=SUFFIX            append SUFFIX to installed program names
1363   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of lcr 1.5:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-option-checking  ignore unrecognized --enable/--with options
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --disable-dependency-tracking  speeds up one-time build
1378   --enable-dependency-tracking   do not reject slow dependency extractors
1379
1380 Optional Packages:
1381   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383   --with-asterisk         compile with built-in Asterisk channel driver
1384                           [default=check]
1385
1386   --with-ssl              compile with ssl support (libcrypto) [default=check]
1387
1388   --with-gsm              compile with OpenBSC support [default=no]
1389
1390
1391 Some influential environment variables:
1392   CC          C compiler command
1393   CFLAGS      C compiler flags
1394   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395               nonstandard directory <lib dir>
1396   LIBS        libraries to pass to the linker, e.g. -l<library>
1397   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398               you have headers in a nonstandard directory <include dir>
1399   CPP         C preprocessor
1400   CXX         C++ compiler command
1401   CXXFLAGS    C++ compiler flags
1402
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1405
1406 Report bugs to <andreas@eversberg.eu>.
1407 _ACEOF
1408 ac_status=$?
1409 fi
1410
1411 if test "$ac_init_help" = "recursive"; then
1412   # If there are subdirs, report their specific --help.
1413   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414     test -d "$ac_dir" ||
1415       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416       continue
1417     ac_builddir=.
1418
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *)
1422   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423   # A ".." for each directory in $ac_dir_suffix.
1424   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425   case $ac_top_builddir_sub in
1426   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428   esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1434
1435 case $srcdir in
1436   .)  # We are building in place.
1437     ac_srcdir=.
1438     ac_top_srcdir=$ac_top_builddir_sub
1439     ac_abs_top_srcdir=$ac_pwd ;;
1440   [\\/]* | ?:[\\/]* )  # Absolute name.
1441     ac_srcdir=$srcdir$ac_dir_suffix;
1442     ac_top_srcdir=$srcdir
1443     ac_abs_top_srcdir=$srcdir ;;
1444   *) # Relative name.
1445     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446     ac_top_srcdir=$ac_top_build_prefix$srcdir
1447     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450
1451     cd "$ac_dir" || { ac_status=$?; continue; }
1452     # Check for guested configure.
1453     if test -f "$ac_srcdir/configure.gnu"; then
1454       echo &&
1455       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456     elif test -f "$ac_srcdir/configure"; then
1457       echo &&
1458       $SHELL "$ac_srcdir/configure" --help=recursive
1459     else
1460       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461     fi || ac_status=$?
1462     cd "$ac_pwd" || { ac_status=$?; break; }
1463   done
1464 fi
1465
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468   cat <<\_ACEOF
1469 lcr configure 1.5
1470 generated by GNU Autoconf 2.63
1471
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477   exit
1478 fi
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1482
1483 It was created by lcr $as_me 1.5, which was
1484 generated by GNU Autoconf 2.63.  Invocation command line was
1485
1486   $ $0 $@
1487
1488 _ACEOF
1489 exec 5>>config.log
1490 {
1491 cat <<_ASUNAME
1492 ## --------- ##
1493 ## Platform. ##
1494 ## --------- ##
1495
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1504
1505 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1506 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1509 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1510 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1511 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1512
1513 _ASUNAME
1514
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1517 do
1518   IFS=$as_save_IFS
1519   test -z "$as_dir" && as_dir=.
1520   $as_echo "PATH: $as_dir"
1521 done
1522 IFS=$as_save_IFS
1523
1524 } >&5
1525
1526 cat >&5 <<_ACEOF
1527
1528
1529 ## ----------- ##
1530 ## Core tests. ##
1531 ## ----------- ##
1532
1533 _ACEOF
1534
1535
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1541 ac_configure_args=
1542 ac_configure_args0=
1543 ac_configure_args1=
1544 ac_must_keep_next=false
1545 for ac_pass in 1 2
1546 do
1547   for ac_arg
1548   do
1549     case $ac_arg in
1550     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552     | -silent | --silent | --silen | --sile | --sil)
1553       continue ;;
1554     *\'*)
1555       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556     esac
1557     case $ac_pass in
1558     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559     2)
1560       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561       if test $ac_must_keep_next = true; then
1562         ac_must_keep_next=false # Got value, back to normal.
1563       else
1564         case $ac_arg in
1565           *=* | --config-cache | -C | -disable-* | --disable-* \
1566           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568           | -with-* | --with-* | -without-* | --without-* | --x)
1569             case "$ac_configure_args0 " in
1570               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571             esac
1572             ;;
1573           -* ) ac_must_keep_next=true ;;
1574         esac
1575       fi
1576       ac_configure_args="$ac_configure_args '$ac_arg'"
1577       ;;
1578     esac
1579   done
1580 done
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log.  We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590   # Save into config.log some information that might help in debugging.
1591   {
1592     echo
1593
1594     cat <<\_ASBOX
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1598 _ASBOX
1599     echo
1600     # The following way of writing the cache mishandles newlines in values,
1601 (
1602   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603     eval ac_val=\$$ac_var
1604     case $ac_val in #(
1605     *${as_nl}*)
1606       case $ac_var in #(
1607       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1609       esac
1610       case $ac_var in #(
1611       _ | IFS | as_nl) ;; #(
1612       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1613       *) $as_unset $ac_var ;;
1614       esac ;;
1615     esac
1616   done
1617   (set) 2>&1 |
1618     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619     *${as_nl}ac_space=\ *)
1620       sed -n \
1621         "s/'\''/'\''\\\\'\'''\''/g;
1622           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623       ;; #(
1624     *)
1625       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1626       ;;
1627     esac |
1628     sort
1629 )
1630     echo
1631
1632     cat <<\_ASBOX
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1636 _ASBOX
1637     echo
1638     for ac_var in $ac_subst_vars
1639     do
1640       eval ac_val=\$$ac_var
1641       case $ac_val in
1642       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643       esac
1644       $as_echo "$ac_var='\''$ac_val'\''"
1645     done | sort
1646     echo
1647
1648     if test -n "$ac_subst_files"; then
1649       cat <<\_ASBOX
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1653 _ASBOX
1654       echo
1655       for ac_var in $ac_subst_files
1656       do
1657         eval ac_val=\$$ac_var
1658         case $ac_val in
1659         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660         esac
1661         $as_echo "$ac_var='\''$ac_val'\''"
1662       done | sort
1663       echo
1664     fi
1665
1666     if test -s confdefs.h; then
1667       cat <<\_ASBOX
1668 ## ----------- ##
1669 ## confdefs.h. ##
1670 ## ----------- ##
1671 _ASBOX
1672       echo
1673       cat confdefs.h
1674       echo
1675     fi
1676     test "$ac_signal" != 0 &&
1677       $as_echo "$as_me: caught signal $ac_signal"
1678     $as_echo "$as_me: exit $exit_status"
1679   } >&5
1680   rm -f core *.core core.conftest.* &&
1681     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682     exit $exit_status
1683 ' 0
1684 for ac_signal in 1 2 13 15; do
1685   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1686 done
1687 ac_signal=0
1688
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1691
1692 # Predefined preprocessor variables.
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1716 _ACEOF
1717
1718
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer an explicitly selected file to automatically selected ones.
1721 ac_site_file1=NONE
1722 ac_site_file2=NONE
1723 if test -n "$CONFIG_SITE"; then
1724   ac_site_file1=$CONFIG_SITE
1725 elif test "x$prefix" != xNONE; then
1726   ac_site_file1=$prefix/share/config.site
1727   ac_site_file2=$prefix/etc/config.site
1728 else
1729   ac_site_file1=$ac_default_prefix/share/config.site
1730   ac_site_file2=$ac_default_prefix/etc/config.site
1731 fi
1732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1733 do
1734   test "x$ac_site_file" = xNONE && continue
1735   if test -r "$ac_site_file"; then
1736     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1738     sed 's/^/| /' "$ac_site_file" >&5
1739     . "$ac_site_file"
1740   fi
1741 done
1742
1743 if test -r "$cache_file"; then
1744   # Some versions of bash will fail to source /dev/null (special
1745   # files actually), so we avoid doing that.
1746   if test -f "$cache_file"; then
1747     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1748 $as_echo "$as_me: loading cache $cache_file" >&6;}
1749     case $cache_file in
1750       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1751       *)                      . "./$cache_file";;
1752     esac
1753   fi
1754 else
1755   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1756 $as_echo "$as_me: creating cache $cache_file" >&6;}
1757   >$cache_file
1758 fi
1759
1760 # Check that the precious variables saved in the cache have kept the same
1761 # value.
1762 ac_cache_corrupted=false
1763 for ac_var in $ac_precious_vars; do
1764   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1765   eval ac_new_set=\$ac_env_${ac_var}_set
1766   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1767   eval ac_new_val=\$ac_env_${ac_var}_value
1768   case $ac_old_set,$ac_new_set in
1769     set,)
1770       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1772       ac_cache_corrupted=: ;;
1773     ,set)
1774       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1776       ac_cache_corrupted=: ;;
1777     ,);;
1778     *)
1779       if test "x$ac_old_val" != "x$ac_new_val"; then
1780         # differences in whitespace do not lead to failure.
1781         ac_old_val_w=`echo x $ac_old_val`
1782         ac_new_val_w=`echo x $ac_new_val`
1783         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1784           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786           ac_cache_corrupted=:
1787         else
1788           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1790           eval $ac_var=\$ac_old_val
1791         fi
1792         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1793 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1794         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1795 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1796       fi;;
1797   esac
1798   # Pass precious variables to config.status.
1799   if test "$ac_new_set" = set; then
1800     case $ac_new_val in
1801     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802     *) ac_arg=$ac_var=$ac_new_val ;;
1803     esac
1804     case " $ac_configure_args " in
1805       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1806       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807     esac
1808   fi
1809 done
1810 if $ac_cache_corrupted; then
1811   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1813   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1815   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844 ac_ext=c
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849
1850
1851
1852
1853 ac_config_headers="$ac_config_headers config.h"
1854
1855
1856 # fix warnings from autoconf + automake
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 $as_echo_n "checking for $ac_word... " >&6; }
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868   $as_echo_n "(cached) " >&6
1869 else
1870   if test -n "$CC"; then
1871   ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1880     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1881     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886 IFS=$as_save_IFS
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1893 $as_echo "$CC" >&6; }
1894 else
1895   { $as_echo "$as_me:$LINENO: result: no" >&5
1896 $as_echo "no" >&6; }
1897 fi
1898
1899
1900 fi
1901 if test -z "$ac_cv_prog_CC"; then
1902   ac_ct_CC=$CC
1903   # Extract the first word of "gcc", so it can be a program name with args.
1904 set dummy gcc; ac_word=$2
1905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 $as_echo_n "checking for $ac_word... " >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908   $as_echo_n "(cached) " >&6
1909 else
1910   if test -n "$ac_ct_CC"; then
1911   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920     ac_cv_prog_ac_ct_CC="gcc"
1921     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926 IFS=$as_save_IFS
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 $as_echo "$ac_ct_CC" >&6; }
1934 else
1935   { $as_echo "$as_me:$LINENO: result: no" >&5
1936 $as_echo "no" >&6; }
1937 fi
1938
1939   if test "x$ac_ct_CC" = x; then
1940     CC=""
1941   else
1942     case $cross_compiling:$ac_tool_warned in
1943 yes:)
1944 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1946 ac_tool_warned=yes ;;
1947 esac
1948     CC=$ac_ct_CC
1949   fi
1950 else
1951   CC="$ac_cv_prog_CC"
1952 fi
1953
1954 if test -z "$CC"; then
1955           if test -n "$ac_tool_prefix"; then
1956     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 $as_echo_n "checking for $ac_word... " >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961   $as_echo_n "(cached) " >&6
1962 else
1963   if test -n "$CC"; then
1964   ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973     ac_cv_prog_CC="${ac_tool_prefix}cc"
1974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979 IFS=$as_save_IFS
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1986 $as_echo "$CC" >&6; }
1987 else
1988   { $as_echo "$as_me:$LINENO: result: no" >&5
1989 $as_echo "no" >&6; }
1990 fi
1991
1992
1993   fi
1994 fi
1995 if test -z "$CC"; then
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 $as_echo_n "checking for $ac_word... " >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   $as_echo_n "(cached) " >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006   ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015        ac_prog_rejected=yes
2016        continue
2017      fi
2018     ac_cv_prog_CC="cc"
2019     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 if test $ac_prog_rejected = yes; then
2027   # We found a bogon in the path, so make sure we never use it.
2028   set dummy $ac_cv_prog_CC
2029   shift
2030   if test $# != 0; then
2031     # We chose a different compiler from the bogus one.
2032     # However, it has the same basename, so the bogon will be chosen
2033     # first if we set CC to just the basename; use the full file name.
2034     shift
2035     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036   fi
2037 fi
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2044 else
2045   { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2047 fi
2048
2049
2050 fi
2051 if test -z "$CC"; then
2052   if test -n "$ac_tool_prefix"; then
2053   for ac_prog in cl.exe
2054   do
2055     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060   $as_echo_n "(cached) " >&6
2061 else
2062   if test -n "$CC"; then
2063   ac_cv_prog_CC="$CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2085 $as_echo "$CC" >&6; }
2086 else
2087   { $as_echo "$as_me:$LINENO: result: no" >&5
2088 $as_echo "no" >&6; }
2089 fi
2090
2091
2092     test -n "$CC" && break
2093   done
2094 fi
2095 if test -z "$CC"; then
2096   ac_ct_CC=$CC
2097   for ac_prog in cl.exe
2098 do
2099   # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 $as_echo_n "checking for $ac_word... " >&6; }
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104   $as_echo_n "(cached) " >&6
2105 else
2106   if test -n "$ac_ct_CC"; then
2107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   for ac_exec_ext in '' $ac_executable_extensions; do
2115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116     ac_cv_prog_ac_ct_CC="$ac_prog"
2117     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122 IFS=$as_save_IFS
2123
2124 fi
2125 fi
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 $as_echo "$ac_ct_CC" >&6; }
2130 else
2131   { $as_echo "$as_me:$LINENO: result: no" >&5
2132 $as_echo "no" >&6; }
2133 fi
2134
2135
2136   test -n "$ac_ct_CC" && break
2137 done
2138
2139   if test "x$ac_ct_CC" = x; then
2140     CC=""
2141   else
2142     case $cross_compiling:$ac_tool_warned in
2143 yes:)
2144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2146 ac_tool_warned=yes ;;
2147 esac
2148     CC=$ac_ct_CC
2149   fi
2150 fi
2151
2152 fi
2153
2154
2155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&5
2159 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2160 See \`config.log' for more details." >&2;}
2161    { (exit 1); exit 1; }; }; }
2162
2163 # Provide some information about the compiler.
2164 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2165 set X $ac_compile
2166 ac_compiler=$2
2167 { (ac_try="$ac_compiler --version >&5"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2173 $as_echo "$ac_try_echo") >&5
2174   (eval "$ac_compiler --version >&5") 2>&5
2175   ac_status=$?
2176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (ac_try="$ac_compiler -v >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185   (eval "$ac_compiler -v >&5") 2>&5
2186   ac_status=$?
2187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }
2189 { (ac_try="$ac_compiler -V >&5"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196   (eval "$ac_compiler -V >&5") 2>&5
2197   ac_status=$?
2198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h.  */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h.  */
2207
2208 int
2209 main ()
2210 {
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2220 # of exeext.
2221 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 $as_echo_n "checking for C compiler default output file name... " >&6; }
2223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224
2225 # The possible output files:
2226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2227
2228 ac_rmfiles=
2229 for ac_file in $ac_files
2230 do
2231   case $ac_file in
2232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2233     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2234   esac
2235 done
2236 rm -f $ac_rmfiles
2237
2238 if { (ac_try="$ac_link_default"
2239 case "(($ac_try" in
2240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241   *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2244 $as_echo "$ac_try_echo") >&5
2245   (eval "$ac_link_default") 2>&5
2246   ac_status=$?
2247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; then
2249   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2251 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2252 # so that the user can short-circuit this test for compilers unknown to
2253 # Autoconf.
2254 for ac_file in $ac_files ''
2255 do
2256   test -f "$ac_file" || continue
2257   case $ac_file in
2258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2259         ;;
2260     [ab].out )
2261         # We found the default executable, but exeext='' is most
2262         # certainly right.
2263         break;;
2264     *.* )
2265         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2266         then :; else
2267            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268         fi
2269         # We set ac_cv_exeext here because the later test for it is not
2270         # safe: cross compilers may not add the suffix if given an `-o'
2271         # argument, so we may need to know it at that point already.
2272         # Even if this section looks crufty: it has the advantage of
2273         # actually working.
2274         break;;
2275     * )
2276         break;;
2277   esac
2278 done
2279 test "$ac_cv_exeext" = no && ac_cv_exeext=
2280
2281 else
2282   ac_file=''
2283 fi
2284
2285 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2286 $as_echo "$ac_file" >&6; }
2287 if test -z "$ac_file"; then
2288   $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2294 See \`config.log' for more details." >&5
2295 $as_echo "$as_me: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&2;}
2297    { (exit 77); exit 77; }; }; }
2298 fi
2299
2300 ac_exeext=$ac_cv_exeext
2301
2302 # Check that the compiler produces executables we can run.  If not, either
2303 # the compiler is broken, or we cross compile.
2304 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2305 $as_echo_n "checking whether the C compiler works... " >&6; }
2306 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2307 # If not cross compiling, check that we can run a simple program.
2308 if test "$cross_compiling" != yes; then
2309   if { ac_try='./$ac_file'
2310   { (case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2315 $as_echo "$ac_try_echo") >&5
2316   (eval "$ac_try") 2>&5
2317   ac_status=$?
2318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320     cross_compiling=no
2321   else
2322     if test "$cross_compiling" = maybe; then
2323         cross_compiling=yes
2324     else
2325         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }; }
2334     fi
2335   fi
2336 fi
2337 { $as_echo "$as_me:$LINENO: result: yes" >&5
2338 $as_echo "yes" >&6; }
2339
2340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check that the compiler produces executables we can run.  If not, either
2343 # the compiler is broken, or we cross compile.
2344 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 $as_echo_n "checking whether we are cross compiling... " >&6; }
2346 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 $as_echo "$cross_compiling" >&6; }
2348
2349 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 $as_echo_n "checking for suffix of executables... " >&6; }
2351 if { (ac_try="$ac_link"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2357 $as_echo "$ac_try_echo") >&5
2358   (eval "$ac_link") 2>&5
2359   ac_status=$?
2360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2365 # `rm'.
2366 for ac_file in conftest.exe conftest conftest.*; do
2367   test -f "$ac_file" || continue
2368   case $ac_file in
2369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371           break;;
2372     * ) break;;
2373   esac
2374 done
2375 else
2376   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 $as_echo "$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 $as_echo_n "checking for suffix of object files... " >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395   $as_echo_n "(cached) " >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2419 $as_echo "$ac_try_echo") >&5
2420   (eval "$ac_compile") 2>&5
2421   ac_status=$?
2422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   for ac_file in conftest.o conftest.obj conftest.*; do
2425   test -f "$ac_file" || continue;
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2429        break;;
2430   esac
2431 done
2432 else
2433   $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2439 See \`config.log' for more details." >&5
2440 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }; }
2443 fi
2444
2445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2446 fi
2447 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2448 $as_echo "$ac_cv_objext" >&6; }
2449 OBJEXT=$ac_cv_objext
2450 ac_objext=$OBJEXT
2451 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2454   $as_echo_n "(cached) " >&6
2455 else
2456   cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466 #ifndef __GNUC__
2467        choke me
2468 #endif
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (ac_try="$ac_compile"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2481 $as_echo "$ac_try_echo") >&5
2482   (eval "$ac_compile") 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } && {
2489          test -z "$ac_c_werror_flag" ||
2490          test ! -s conftest.err
2491        } && test -s conftest.$ac_objext; then
2492   ac_compiler_gnu=yes
2493 else
2494   $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497         ac_compiler_gnu=no
2498 fi
2499
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502
2503 fi
2504 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2506 if test $ac_compiler_gnu = yes; then
2507   GCC=yes
2508 else
2509   GCC=
2510 fi
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   ac_save_c_werror_flag=$ac_c_werror_flag
2519    ac_c_werror_flag=yes
2520    ac_cv_prog_cc_g=no
2521    CFLAGS="-g"
2522    cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2544 $as_echo "$ac_try_echo") >&5
2545   (eval "$ac_compile") 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } && {
2552          test -z "$ac_c_werror_flag" ||
2553          test ! -s conftest.err
2554        } && test -s conftest.$ac_objext; then
2555   ac_cv_prog_cc_g=yes
2556 else
2557   $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560         CFLAGS=""
2561       cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2583 $as_echo "$ac_try_echo") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } && {
2591          test -z "$ac_c_werror_flag" ||
2592          test ! -s conftest.err
2593        } && test -s conftest.$ac_objext; then
2594   :
2595 else
2596   $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599         ac_c_werror_flag=$ac_save_c_werror_flag
2600          CFLAGS="-g"
2601          cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2623 $as_echo "$ac_try_echo") >&5
2624   (eval "$ac_compile") 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } && {
2631          test -z "$ac_c_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest.$ac_objext; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649    ac_c_werror_flag=$ac_save_c_werror_flag
2650 fi
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 $as_echo "$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654   CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656   if test "$GCC" = yes; then
2657     CFLAGS="-g -O2"
2658   else
2659     CFLAGS="-g"
2660   fi
2661 else
2662   if test "$GCC" = yes; then
2663     CFLAGS="-O2"
2664   else
2665     CFLAGS=
2666   fi
2667 fi
2668 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671   $as_echo_n "(cached) " >&6
2672 else
2673   ac_cv_prog_cc_c89=no
2674 ac_save_CC=$CC
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 #include <stdarg.h>
2682 #include <stdio.h>
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2689      char **p;
2690      int i;
2691 {
2692   return p[i];
2693 }
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2695 {
2696   char *s;
2697   va_list v;
2698   va_start (v,p);
2699   s = g (p, va_arg (v,int));
2700   va_end (v);
2701   return s;
2702 }
2703
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2705    function prototypes and stuff, but not '\xHH' hex character constants.
2706    These don't provoke an error unfortunately, instead are silently treated
2707    as 'x'.  The following induces an error, until -std is added to get
2708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2709    array size at least.  It's necessary to write '\x00'==0 to get something
2710    that's true only with -std.  */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714    inside strings and character constants.  */
2715 #define FOO(x) 'x'
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2717
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2724 int
2725 main ()
2726 {
2727 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 do
2735   CC="$ac_save_CC $ac_arg"
2736   rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743 $as_echo "$ac_try_echo") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } && {
2751          test -z "$ac_c_werror_flag" ||
2752          test ! -s conftest.err
2753        } && test -s conftest.$ac_objext; then
2754   ac_cv_prog_cc_c89=$ac_arg
2755 else
2756   $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext
2763   test "x$ac_cv_prog_cc_c89" != "xno" && break
2764 done
2765 rm -f conftest.$ac_ext
2766 CC=$ac_save_CC
2767
2768 fi
2769 # AC_CACHE_VAL
2770 case "x$ac_cv_prog_cc_c89" in
2771   x)
2772     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2773 $as_echo "none needed" >&6; } ;;
2774   xno)
2775     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2776 $as_echo "unsupported" >&6; } ;;
2777   *)
2778     CC="$CC $ac_cv_prog_cc_c89"
2779     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2781 esac
2782
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   $as_echo_n "(cached) " >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #ifdef __STDC__
2825 # include <limits.h>
2826 #else
2827 # include <assert.h>
2828 #endif
2829                      Syntax error
2830 _ACEOF
2831 if { (ac_try="$ac_cpp conftest.$ac_ext"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } >/dev/null && {
2845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        }; then
2848   :
2849 else
2850   $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Broken: fails on valid input.
2854 continue
2855 fi
2856
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether nonexistent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #include <ac_nonexistent.h>
2868 _ACEOF
2869 if { (ac_try="$ac_cpp conftest.$ac_ext"
2870 case "(($ac_try" in
2871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872   *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2875 $as_echo "$ac_try_echo") >&5
2876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } >/dev/null && {
2883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2884          test ! -s conftest.err
2885        }; then
2886   # Broken: success on invalid input.
2887 continue
2888 else
2889   $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892   # Passes both tests.
2893 ac_preproc_ok=:
2894 break
2895 fi
2896
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2915 $as_echo "$CPP" >&6; }
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (ac_try="$ac_cpp conftest.$ac_ext"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } >/dev/null && {
2952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2953          test ! -s conftest.err
2954        }; then
2955   :
2956 else
2957   $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Broken: fails on valid input.
2961 continue
2962 fi
2963
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether nonexistent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } >/dev/null && {
2990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991          test ! -s conftest.err
2992        }; then
2993   # Broken: success on invalid input.
2994 continue
2995 else
2996   $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999   # Passes both tests.
3000 ac_preproc_ok=:
3001 break
3002 fi
3003
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&2;}
3018    { (exit 1); exit 1; }; }; }
3019 fi
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027
3028 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3030 if test "${ac_cv_path_GREP+set}" = set; then
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -z "$GREP"; then
3034   ac_path_GREP_found=false
3035   # Loop through the user's path and test for each of PROGNAME-LIST
3036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041   for ac_prog in grep ggrep; do
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3044       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3045 # Check for GNU ac_path_GREP and select it if it is found.
3046   # Check for GNU $ac_path_GREP
3047 case `"$ac_path_GREP" --version 2>&1` in
3048 *GNU*)
3049   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3050 *)
3051   ac_count=0
3052   $as_echo_n 0123456789 >"conftest.in"
3053   while :
3054   do
3055     cat "conftest.in" "conftest.in" >"conftest.tmp"
3056     mv "conftest.tmp" "conftest.in"
3057     cp "conftest.in" "conftest.nl"
3058     $as_echo 'GREP' >> "conftest.nl"
3059     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3060     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3061     ac_count=`expr $ac_count + 1`
3062     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3063       # Best one so far, save it but keep looking for a better one
3064       ac_cv_path_GREP="$ac_path_GREP"
3065       ac_path_GREP_max=$ac_count
3066     fi
3067     # 10*(2^10) chars as input seems more than enough
3068     test $ac_count -gt 10 && break
3069   done
3070   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3071 esac
3072
3073       $ac_path_GREP_found && break 3
3074     done
3075   done
3076 done
3077 IFS=$as_save_IFS
3078   if test -z "$ac_cv_path_GREP"; then
3079     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081    { (exit 1); exit 1; }; }
3082   fi
3083 else
3084   ac_cv_path_GREP=$GREP
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 $as_echo "$ac_cv_path_GREP" >&6; }
3090  GREP="$ac_cv_path_GREP"
3091
3092
3093 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3094 $as_echo_n "checking for egrep... " >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3099    then ac_cv_path_EGREP="$GREP -E"
3100    else
3101      if test -z "$EGREP"; then
3102   ac_path_EGREP_found=false
3103   # Loop through the user's path and test for each of PROGNAME-LIST
3104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_prog in egrep; do
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3112       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3113 # Check for GNU ac_path_EGREP and select it if it is found.
3114   # Check for GNU $ac_path_EGREP
3115 case `"$ac_path_EGREP" --version 2>&1` in
3116 *GNU*)
3117   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3118 *)
3119   ac_count=0
3120   $as_echo_n 0123456789 >"conftest.in"
3121   while :
3122   do
3123     cat "conftest.in" "conftest.in" >"conftest.tmp"
3124     mv "conftest.tmp" "conftest.in"
3125     cp "conftest.in" "conftest.nl"
3126     $as_echo 'EGREP' >> "conftest.nl"
3127     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3129     ac_count=`expr $ac_count + 1`
3130     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3131       # Best one so far, save it but keep looking for a better one
3132       ac_cv_path_EGREP="$ac_path_EGREP"
3133       ac_path_EGREP_max=$ac_count
3134     fi
3135     # 10*(2^10) chars as input seems more than enough
3136     test $ac_count -gt 10 && break
3137   done
3138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3139 esac
3140
3141       $ac_path_EGREP_found && break 3
3142     done
3143   done
3144 done
3145 IFS=$as_save_IFS
3146   if test -z "$ac_cv_path_EGREP"; then
3147     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3148 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3149    { (exit 1); exit 1; }; }
3150   fi
3151 else
3152   ac_cv_path_EGREP=$EGREP
3153 fi
3154
3155    fi
3156 fi
3157 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3158 $as_echo "$ac_cv_path_EGREP" >&6; }
3159  EGREP="$ac_cv_path_EGREP"
3160
3161
3162 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3163 $as_echo_n "checking for ANSI C header files... " >&6; }
3164 if test "${ac_cv_header_stdc+set}" = set; then
3165   $as_echo_n "(cached) " >&6
3166 else
3167   cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #include <stdlib.h>
3174 #include <stdarg.h>
3175 #include <string.h>
3176 #include <float.h>
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194   (eval "$ac_compile") 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } && {
3201          test -z "$ac_c_werror_flag" ||
3202          test ! -s conftest.err
3203        } && test -s conftest.$ac_objext; then
3204   ac_cv_header_stdc=yes
3205 else
3206   $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209         ac_cv_header_stdc=no
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213
3214 if test $ac_cv_header_stdc = yes; then
3215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3216   cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222 #include <string.h>
3223
3224 _ACEOF
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226   $EGREP "memchr" >/dev/null 2>&1; then
3227   :
3228 else
3229   ac_cv_header_stdc=no
3230 fi
3231 rm -f conftest*
3232
3233 fi
3234
3235 if test $ac_cv_header_stdc = yes; then
3236   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <stdlib.h>
3244
3245 _ACEOF
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247   $EGREP "free" >/dev/null 2>&1; then
3248   :
3249 else
3250   ac_cv_header_stdc=no
3251 fi
3252 rm -f conftest*
3253
3254 fi
3255
3256 if test $ac_cv_header_stdc = yes; then
3257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3258   if test "$cross_compiling" = yes; then
3259   :
3260 else
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <ctype.h>
3268 #include <stdlib.h>
3269 #if ((' ' & 0x0FF) == 0x020)
3270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3272 #else
3273 # define ISLOWER(c) \
3274                    (('a' <= (c) && (c) <= 'i') \
3275                      || ('j' <= (c) && (c) <= 'r') \
3276                      || ('s' <= (c) && (c) <= 'z'))
3277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3278 #endif
3279
3280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3281 int
3282 main ()
3283 {
3284   int i;
3285   for (i = 0; i < 256; i++)
3286     if (XOR (islower (i), ISLOWER (i))
3287         || toupper (i) != TOUPPER (i))
3288       return 2;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest$ac_exeext
3293 if { (ac_try="$ac_link"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300   (eval "$ac_link") 2>&5
3301   ac_status=$?
3302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3304   { (case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310   (eval "$ac_try") 2>&5
3311   ac_status=$?
3312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; }; then
3314   :
3315 else
3316   $as_echo "$as_me: program exited with status $ac_status" >&5
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ( exit $ac_status )
3321 ac_cv_header_stdc=no
3322 fi
3323 rm -rf conftest.dSYM
3324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3325 fi
3326
3327
3328 fi
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3331 $as_echo "$ac_cv_header_stdc" >&6; }
3332 if test $ac_cv_header_stdc = yes; then
3333
3334 cat >>confdefs.h <<\_ACEOF
3335 #define STDC_HEADERS 1
3336 _ACEOF
3337
3338 fi
3339
3340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3351                   inttypes.h stdint.h unistd.h
3352 do
3353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 $as_echo_n "checking for $ac_header... " >&6; }
3356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3357   $as_echo_n "(cached) " >&6
3358 else
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 $ac_includes_default
3366
3367 #include <$ac_header>
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376 $as_echo "$ac_try_echo") >&5
3377   (eval "$ac_compile") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } && {
3384          test -z "$ac_c_werror_flag" ||
3385          test ! -s conftest.err
3386        } && test -s conftest.$ac_objext; then
3387   eval "$as_ac_Header=yes"
3388 else
3389   $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392         eval "$as_ac_Header=no"
3393 fi
3394
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397 ac_res=`eval 'as_val=${'$as_ac_Header'}
3398                  $as_echo "$as_val"'`
3399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3400 $as_echo "$ac_res" >&6; }
3401 as_val=`eval 'as_val=${'$as_ac_Header'}
3402                  $as_echo "$as_val"'`
3403    if test "x$as_val" = x""yes; then
3404   cat >>confdefs.h <<_ACEOF
3405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3406 _ACEOF
3407
3408 fi
3409
3410 done
3411
3412
3413
3414   if test "${ac_cv_header_minix_config_h+set}" = set; then
3415   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3416 $as_echo_n "checking for minix/config.h... " >&6; }
3417 if test "${ac_cv_header_minix_config_h+set}" = set; then
3418   $as_echo_n "(cached) " >&6
3419 fi
3420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3421 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3422 else
3423   # Is the header compilable?
3424 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3425 $as_echo_n "checking minix/config.h usability... " >&6; }
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 $ac_includes_default
3433 #include <minix/config.h>
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443   (eval "$ac_compile") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } && {
3450          test -z "$ac_c_werror_flag" ||
3451          test ! -s conftest.err
3452        } && test -s conftest.$ac_objext; then
3453   ac_header_compiler=yes
3454 else
3455   $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458         ac_header_compiler=no
3459 fi
3460
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3463 $as_echo "$ac_header_compiler" >&6; }
3464
3465 # Is the header present?
3466 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3467 $as_echo_n "checking minix/config.h presence... " >&6; }
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <minix/config.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } >/dev/null && {
3490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491          test ! -s conftest.err
3492        }; then
3493   ac_header_preproc=yes
3494 else
3495   $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   ac_header_preproc=no
3499 fi
3500
3501 rm -f conftest.err conftest.$ac_ext
3502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3503 $as_echo "$ac_header_preproc" >&6; }
3504
3505 # So?  What about this header?
3506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3507   yes:no: )
3508     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3509 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3510     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3511 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3512     ac_header_preproc=yes
3513     ;;
3514   no:yes:* )
3515     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3516 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3517     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3518 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3519     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3520 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3521     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3523     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3525     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3527     ( cat <<\_ASBOX
3528 ## ----------------------------------- ##
3529 ## Report this to andreas@eversberg.eu ##
3530 ## ----------------------------------- ##
3531 _ASBOX
3532      ) | sed "s/^/$as_me: WARNING:     /" >&2
3533     ;;
3534 esac
3535 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3536 $as_echo_n "checking for minix/config.h... " >&6; }
3537 if test "${ac_cv_header_minix_config_h+set}" = set; then
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_cv_header_minix_config_h=$ac_header_preproc
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3543 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3544
3545 fi
3546 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3547   MINIX=yes
3548 else
3549   MINIX=
3550 fi
3551
3552
3553   if test "$MINIX" = yes; then
3554
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _POSIX_SOURCE 1
3557 _ACEOF
3558
3559
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _POSIX_1_SOURCE 2
3562 _ACEOF
3563
3564
3565 cat >>confdefs.h <<\_ACEOF
3566 #define _MINIX 1
3567 _ACEOF
3568
3569   fi
3570
3571
3572
3573   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3574 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3575 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3576   $as_echo_n "(cached) " >&6
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 #         define __EXTENSIONS__ 1
3586           $ac_includes_default
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603   (eval "$ac_compile") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && {
3610          test -z "$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        } && test -s conftest.$ac_objext; then
3613   ac_cv_safe_to_define___extensions__=yes
3614 else
3615   $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618         ac_cv_safe_to_define___extensions__=no
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625   test $ac_cv_safe_to_define___extensions__ = yes &&
3626     cat >>confdefs.h <<\_ACEOF
3627 #define __EXTENSIONS__ 1
3628 _ACEOF
3629
3630   cat >>confdefs.h <<\_ACEOF
3631 #define _ALL_SOURCE 1
3632 _ACEOF
3633
3634   cat >>confdefs.h <<\_ACEOF
3635 #define _GNU_SOURCE 1
3636 _ACEOF
3637
3638   cat >>confdefs.h <<\_ACEOF
3639 #define _POSIX_PTHREAD_SEMANTICS 1
3640 _ACEOF
3641
3642   cat >>confdefs.h <<\_ACEOF
3643 #define _TANDEM_SOURCE 1
3644 _ACEOF
3645
3646
3647 # AC_USE_SYSTEM_EXTENSIONS
3648 am__api_version="1.9"
3649 ac_aux_dir=
3650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3651   if test -f "$ac_dir/install-sh"; then
3652     ac_aux_dir=$ac_dir
3653     ac_install_sh="$ac_aux_dir/install-sh -c"
3654     break
3655   elif test -f "$ac_dir/install.sh"; then
3656     ac_aux_dir=$ac_dir
3657     ac_install_sh="$ac_aux_dir/install.sh -c"
3658     break
3659   elif test -f "$ac_dir/shtool"; then
3660     ac_aux_dir=$ac_dir
3661     ac_install_sh="$ac_aux_dir/shtool install -c"
3662     break
3663   fi
3664 done
3665 if test -z "$ac_aux_dir"; then
3666   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3667 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3668    { (exit 1); exit 1; }; }
3669 fi
3670
3671 # These three variables are undocumented and unsupported,
3672 # and are intended to be withdrawn in a future Autoconf release.
3673 # They can cause serious problems if a builder's source tree is in a directory
3674 # whose full name contains unusual characters.
3675 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3676 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3677 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3678
3679
3680 # Find a good install program.  We prefer a C program (faster),
3681 # so one script is as good as another.  But avoid the broken or
3682 # incompatible versions:
3683 # SysV /etc/install, /usr/sbin/install
3684 # SunOS /usr/etc/install
3685 # IRIX /sbin/install
3686 # AIX /bin/install
3687 # AmigaOS /C/install, which installs bootblocks on floppy discs
3688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691 # OS/2's system install, which has a completely different semantic
3692 # ./install, which can be erroneously created by make from ./install.sh.
3693 # Reject install programs that cannot install multiple files.
3694 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698   $as_echo_n "(cached) " >&6
3699 else
3700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   # Account for people who put trailing slashes in PATH elements.
3706 case $as_dir/ in
3707   ./ | .// | /cC/* | \
3708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3710   /usr/ucb/* ) ;;
3711   *)
3712     # OSF1 and SCO ODT 3.0 have their own names for install.
3713     # Don't use installbsd from OSF since it installs stuff as root
3714     # by default.
3715     for ac_prog in ginstall scoinst install; do
3716       for ac_exec_ext in '' $ac_executable_extensions; do
3717         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718           if test $ac_prog = install &&
3719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720             # AIX install.  It has an incompatible calling convention.
3721             :
3722           elif test $ac_prog = install &&
3723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724             # program-specific install script used by HP pwplus--don't use.
3725             :
3726           else
3727             rm -rf conftest.one conftest.two conftest.dir
3728             echo one > conftest.one
3729             echo two > conftest.two
3730             mkdir conftest.dir
3731             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732               test -s conftest.one && test -s conftest.two &&
3733               test -s conftest.dir/conftest.one &&
3734               test -s conftest.dir/conftest.two
3735             then
3736               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3737               break 3
3738             fi
3739           fi
3740         fi
3741       done
3742     done
3743     ;;
3744 esac
3745
3746 done
3747 IFS=$as_save_IFS
3748
3749 rm -rf conftest.one conftest.two conftest.dir
3750
3751 fi
3752   if test "${ac_cv_path_install+set}" = set; then
3753     INSTALL=$ac_cv_path_install
3754   else
3755     # As a last resort, use the slow shell script.  Don't cache a
3756     # value for INSTALL within a source directory, because that will
3757     # break other packages using the cache if that directory is
3758     # removed, or if the value is a relative name.
3759     INSTALL=$ac_install_sh
3760   fi
3761 fi
3762 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3763 $as_echo "$INSTALL" >&6; }
3764
3765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766 # It thinks the first close brace ends the variable substitution.
3767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3768
3769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3770
3771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3772
3773 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3774 $as_echo_n "checking whether build environment is sane... " >&6; }
3775 # Just in case
3776 sleep 1
3777 echo timestamp > conftest.file
3778 # Do `set' in a subshell so we don't clobber the current shell's
3779 # arguments.  Must try -L first in case configure is actually a
3780 # symlink; some systems play weird games with the mod time of symlinks
3781 # (eg FreeBSD returns the mod time of the symlink's containing
3782 # directory).
3783 if (
3784    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3785    if test "$*" = "X"; then
3786       # -L didn't work.
3787       set X `ls -t $srcdir/configure conftest.file`
3788    fi
3789    rm -f conftest.file
3790    if test "$*" != "X $srcdir/configure conftest.file" \
3791       && test "$*" != "X conftest.file $srcdir/configure"; then
3792
3793       # If neither matched, then we have a broken ls.  This can happen
3794       # if, for instance, CONFIG_SHELL is bash and it inherits a
3795       # broken ls alias from the environment.  This has actually
3796       # happened.  Such a system could not be considered "sane".
3797       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3798 alias in your environment" >&5
3799 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3800 alias in your environment" >&2;}
3801    { (exit 1); exit 1; }; }
3802    fi
3803
3804    test "$2" = conftest.file
3805    )
3806 then
3807    # Ok.
3808    :
3809 else
3810    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3811 Check your system clock" >&5
3812 $as_echo "$as_me: error: newly created file is older than distributed files!
3813 Check your system clock" >&2;}
3814    { (exit 1); exit 1; }; }
3815 fi
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 test "$program_prefix" != NONE &&
3819   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3820 # Use a double $ so make ignores it.
3821 test "$program_suffix" != NONE &&
3822   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3823 # Double any \ or $.
3824 # By default was `s,x,x', remove it if useless.
3825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3827
3828 # expand $ac_aux_dir to an absolute path
3829 am_aux_dir=`cd $ac_aux_dir && pwd`
3830
3831 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3832 # Use eval to expand $SHELL
3833 if eval "$MISSING --run true"; then
3834   am_missing_run="$MISSING --run "
3835 else
3836   am_missing_run=
3837   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3838 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3839 fi
3840
3841 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3842   # We used to keeping the `.' as first argument, in order to
3843   # allow $(mkdir_p) to be used without argument.  As in
3844   #   $(mkdir_p) $(somedir)
3845   # where $(somedir) is conditionally defined.  However this is wrong
3846   # for two reasons:
3847   #  1. if the package is installed by a user who cannot write `.'
3848   #     make install will fail,
3849   #  2. the above comment should most certainly read
3850   #     $(mkdir_p) $(DESTDIR)$(somedir)
3851   #     so it does not work when $(somedir) is undefined and
3852   #     $(DESTDIR) is not.
3853   #  To support the latter case, we have to write
3854   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3855   #  so the `.' trick is pointless.
3856   mkdir_p='mkdir -p --'
3857 else
3858   # On NextStep and OpenStep, the `mkdir' command does not
3859   # recognize any option.  It will interpret all options as
3860   # directories to create, and then abort because `.' already
3861   # exists.
3862   for d in ./-p ./--version;
3863   do
3864     test -d $d && rmdir $d
3865   done
3866   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3867   if test -f "$ac_aux_dir/mkinstalldirs"; then
3868     mkdir_p='$(mkinstalldirs)'
3869   else
3870     mkdir_p='$(install_sh) -d'
3871   fi
3872 fi
3873
3874 for ac_prog in gawk mawk nawk awk
3875 do
3876   # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_AWK+set}" = set; then
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -n "$AWK"; then
3884   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893     ac_cv_prog_AWK="$ac_prog"
3894     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895     break 2
3896   fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3900
3901 fi
3902 fi
3903 AWK=$ac_cv_prog_AWK
3904 if test -n "$AWK"; then
3905   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3906 $as_echo "$AWK" >&6; }
3907 else
3908   { $as_echo "$as_me:$LINENO: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911
3912
3913   test -n "$AWK" && break
3914 done
3915
3916 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3918 set x ${MAKE-make}
3919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3920 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3921   $as_echo_n "(cached) " >&6
3922 else
3923   cat >conftest.make <<\_ACEOF
3924 SHELL = /bin/sh
3925 all:
3926         @echo '@@@%%%=$(MAKE)=@@@%%%'
3927 _ACEOF
3928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3930   *@@@%%%=?*=@@@%%%*)
3931     eval ac_cv_prog_make_${ac_make}_set=yes;;
3932   *)
3933     eval ac_cv_prog_make_${ac_make}_set=no;;
3934 esac
3935 rm -f conftest.make
3936 fi
3937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3938   { $as_echo "$as_me:$LINENO: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940   SET_MAKE=
3941 else
3942   { $as_echo "$as_me:$LINENO: result: no" >&5
3943 $as_echo "no" >&6; }
3944   SET_MAKE="MAKE=${MAKE-make}"
3945 fi
3946
3947 rm -rf .tst 2>/dev/null
3948 mkdir .tst 2>/dev/null
3949 if test -d .tst; then
3950   am__leading_dot=.
3951 else
3952   am__leading_dot=_
3953 fi
3954 rmdir .tst 2>/dev/null
3955
3956 DEPDIR="${am__leading_dot}deps"
3957
3958 ac_config_commands="$ac_config_commands depfiles"
3959
3960
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3963 am__doit:
3964         @echo done
3965 .PHONY: am__doit
3966 END
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 am__include="#"
3971 am__quote=
3972 _am_result=none
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # We grep out `Entering directory' and `Leaving directory'
3976 # messages which can occur if `w' ends up in MAKEFLAGS.
3977 # In particular we don't look at `^make:' because GNU make might
3978 # be invoked under some other name (usually "gmake"), in which
3979 # case it prints its new name instead of `make'.
3980 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3981    am__include=include
3982    am__quote=
3983    _am_result=GNU
3984 fi
3985 # Now try BSD make style include.
3986 if test "$am__include" = "#"; then
3987    echo '.include "confinc"' > confmf
3988    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3989       am__include=.include
3990       am__quote="\""
3991       _am_result=BSD
3992    fi
3993 fi
3994
3995
3996 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
3999
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then
4002   enableval=$enable_dependency_tracking;
4003 fi
4004
4005 if test "x$enable_dependency_tracking" != xno; then
4006   am_depcomp="$ac_aux_dir/depcomp"
4007   AMDEPBACKSLASH='\'
4008 fi
4009
4010
4011 if test "x$enable_dependency_tracking" != xno; then
4012   AMDEP_TRUE=
4013   AMDEP_FALSE='#'
4014 else
4015   AMDEP_TRUE='#'
4016   AMDEP_FALSE=
4017 fi
4018
4019
4020
4021 # test to see if srcdir already configured
4022 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4023    test -f $srcdir/config.status; then
4024   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4025 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 # test whether we have cygpath
4030 if test -z "$CYGPATH_W"; then
4031   if (cygpath --version) >/dev/null 2>/dev/null; then
4032     CYGPATH_W='cygpath -w'
4033   else
4034     CYGPATH_W=echo
4035   fi
4036 fi
4037
4038
4039 # Define the identity of the package.
4040  PACKAGE=lcr
4041  VERSION=1.5
4042
4043
4044 cat >>confdefs.h <<_ACEOF
4045 #define PACKAGE "$PACKAGE"
4046 _ACEOF
4047
4048
4049 cat >>confdefs.h <<_ACEOF
4050 #define VERSION "$VERSION"
4051 _ACEOF
4052
4053 # Some tools Automake needs.
4054
4055 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4056
4057
4058 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4059
4060
4061 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4062
4063
4064 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4065
4066
4067 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4068
4069 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4070
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'.  However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076   if test -n "$ac_tool_prefix"; then
4077   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then
4082   $as_echo_n "(cached) " >&6
4083 else
4084   if test -n "$STRIP"; then
4085   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   test -z "$as_dir" && as_dir=.
4092   for ac_exec_ext in '' $ac_executable_extensions; do
4093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096     break 2
4097   fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4108 else
4109   { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 fi
4115 if test -z "$ac_cv_prog_STRIP"; then
4116   ac_ct_STRIP=$STRIP
4117   # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$ac_ct_STRIP"; then
4125   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_prog_ac_ct_STRIP="strip"
4135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4148 else
4149   { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153   if test "x$ac_ct_STRIP" = x; then
4154     STRIP=":"
4155   else
4156     case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162     STRIP=$ac_ct_STRIP
4163   fi
4164 else
4165   STRIP="$ac_cv_prog_STRIP"
4166 fi
4167
4168 fi
4169 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4170
4171 # We need awk for the "check" target.  The system "awk" is bad on
4172 # some platforms.
4173 # Always define AMTAR for backward compatibility.
4174
4175 AMTAR=${AMTAR-"${am_missing_run}tar"}
4176
4177 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4178
4179
4180
4181
4182 depcc="$CC"   am_compiler_list=
4183
4184 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4185 $as_echo_n "checking dependency style of $depcc... " >&6; }
4186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190   # We make a subdir and do the tests there.  Otherwise we can end up
4191   # making bogus files that we don't know about and never remove.  For
4192   # instance it was reported that on HP-UX the gcc test will end up
4193   # making a dummy file named `D' -- because `-MD' means `put the output
4194   # in D'.
4195   mkdir conftest.dir
4196   # Copy depcomp to subdir because otherwise we won't find it if we're
4197   # using a relative directory.
4198   cp "$am_depcomp" conftest.dir
4199   cd conftest.dir
4200   # We will build objects and dependencies in a subdirectory because
4201   # it helps to detect inapplicable dependency modes.  For instance
4202   # both Tru64's cc and ICC support -MD to output dependencies as a
4203   # side effect of compilation, but ICC will put the dependencies in
4204   # the current directory while Tru64 will put them in the object
4205   # directory.
4206   mkdir sub
4207
4208   am_cv_CC_dependencies_compiler_type=none
4209   if test "$am_compiler_list" = ""; then
4210      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4211   fi
4212   for depmode in $am_compiler_list; do
4213     # Setup a source with many dependencies, because some compilers
4214     # like to wrap large dependency lists on column 80 (with \), and
4215     # we should not choose a depcomp mode which is confused by this.
4216     #
4217     # We need to recreate these files for each test, as the compiler may
4218     # overwrite some of them when testing with obscure command lines.
4219     # This happens at least with the AIX C compiler.
4220     : > sub/conftest.c
4221     for i in 1 2 3 4 5 6; do
4222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224       # Solaris 8's {/usr,}/bin/sh.
4225       touch sub/conftst$i.h
4226     done
4227     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229     case $depmode in
4230     nosideeffect)
4231       # after this tag, mechanisms are not by side-effect, so they'll
4232       # only be used when explicitly requested
4233       if test "x$enable_dependency_tracking" = xyes; then
4234         continue
4235       else
4236         break
4237       fi
4238       ;;
4239     none) break ;;
4240     esac
4241     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4242     # mode.  It turns out that the SunPro C++ compiler does not properly
4243     # handle `-M -o', and we need to detect this.
4244     if depmode=$depmode \
4245        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4246        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4247        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4248          >/dev/null 2>conftest.err &&
4249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252       # icc doesn't choke on unknown options, it will just issue warnings
4253       # or remarks (even with -Werror).  So we grep stderr for any message
4254       # that says an option was ignored or not supported.
4255       # When given -MP, icc 7.0 and 7.1 complain thusly:
4256       #   icc: Command line warning: ignoring option '-M'; no argument required
4257       # The diagnosis changed in icc 8.0:
4258       #   icc: Command line remark: option '-MP' not supported
4259       if (grep 'ignoring option' conftest.err ||
4260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261         am_cv_CC_dependencies_compiler_type=$depmode
4262         break
4263       fi
4264     fi
4265   done
4266
4267   cd ..
4268   rm -rf conftest.dir
4269 else
4270   am_cv_CC_dependencies_compiler_type=none
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277
4278
4279
4280 if
4281   test "x$enable_dependency_tracking" != xno \
4282   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4283   am__fastdepCC_TRUE=
4284   am__fastdepCC_FALSE='#'
4285 else
4286   am__fastdepCC_TRUE='#'
4287   am__fastdepCC_FALSE=
4288 fi
4289
4290
4291
4292
4293
4294
4295 # Checks for programs.
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4305   CPP=
4306 fi
4307 if test -z "$CPP"; then
4308   if test "${ac_cv_prog_CPP+set}" = set; then
4309   $as_echo_n "(cached) " >&6
4310 else
4311       # Double quotes because CPP needs to be expanded
4312     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313     do
4314       ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334                      Syntax error
4335 _ACEOF
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4337 case "(($ac_try" in
4338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339   *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } >/dev/null && {
4350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351          test ! -s conftest.err
4352        }; then
4353   :
4354 else
4355   $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358   # Broken: fails on valid input.
4359 continue
4360 fi
4361
4362 rm -f conftest.err conftest.$ac_ext
4363
4364   # OK, works on sane cases.  Now check whether nonexistent headers
4365   # can be detected and how.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if { (ac_try="$ac_cpp conftest.$ac_ext"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } >/dev/null && {
4388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389          test ! -s conftest.err
4390        }; then
4391   # Broken: success on invalid input.
4392 continue
4393 else
4394   $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397   # Passes both tests.
4398 ac_preproc_ok=:
4399 break
4400 fi
4401
4402 rm -f conftest.err conftest.$ac_ext
4403
4404 done
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then
4408   break
4409 fi
4410
4411     done
4412     ac_cv_prog_CPP=$CPP
4413
4414 fi
4415   CPP=$ac_cv_prog_CPP
4416 else
4417   ac_cv_prog_CPP=$CPP
4418 fi
4419 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4420 $as_echo "$CPP" >&6; }
4421 ac_preproc_ok=false
4422 for ac_c_preproc_warn_flag in '' yes
4423 do
4424   # Use a header file that comes with gcc, so configuring glibc
4425   # with a fresh cross-compiler works.
4426   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427   # <limits.h> exists even on freestanding compilers.
4428   # On the NeXT, cc -E runs the code through the compiler's parser,
4429   # not just through cpp. "Syntax error" is here to catch this case.
4430   cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 #ifdef __STDC__
4437 # include <limits.h>
4438 #else
4439 # include <assert.h>
4440 #endif
4441                      Syntax error
4442 _ACEOF
4443 if { (ac_try="$ac_cpp conftest.$ac_ext"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4449 $as_echo "$ac_try_echo") >&5
4450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } >/dev/null && {
4457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4458          test ! -s conftest.err
4459        }; then
4460   :
4461 else
4462   $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465   # Broken: fails on valid input.
4466 continue
4467 fi
4468
4469 rm -f conftest.err conftest.$ac_ext
4470
4471   # OK, works on sane cases.  Now check whether nonexistent headers
4472   # can be detected and how.
4473   cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h.  */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h.  */
4479 #include <ac_nonexistent.h>
4480 _ACEOF
4481 if { (ac_try="$ac_cpp conftest.$ac_ext"
4482 case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4487 $as_echo "$ac_try_echo") >&5
4488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null && {
4495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496          test ! -s conftest.err
4497        }; then
4498   # Broken: success on invalid input.
4499 continue
4500 else
4501   $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504   # Passes both tests.
4505 ac_preproc_ok=:
4506 break
4507 fi
4508
4509 rm -f conftest.err conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4515   :
4516 else
4517   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&5
4521 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&2;}
4523    { (exit 1); exit 1; }; }; }
4524 fi
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 ac_ext=cpp
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 if test -z "$CXX"; then
4538   if test -n "$CCC"; then
4539     CXX=$CCC
4540   else
4541     if test -n "$ac_tool_prefix"; then
4542   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4543   do
4544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_CXX+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$CXX"; then
4552   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559   for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4562     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CXX=$ac_cv_prog_CXX
4572 if test -n "$CXX"; then
4573   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4574 $as_echo "$CXX" >&6; }
4575 else
4576   { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581     test -n "$CXX" && break
4582   done
4583 fi
4584 if test -z "$CXX"; then
4585   ac_ct_CXX=$CXX
4586   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4587 do
4588   # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if test -n "$ac_ct_CXX"; then
4596   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_prog_ac_ct_CXX="$ac_prog"
4606     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4616 if test -n "$ac_ct_CXX"; then
4617   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4618 $as_echo "$ac_ct_CXX" >&6; }
4619 else
4620   { $as_echo "$as_me:$LINENO: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624
4625   test -n "$ac_ct_CXX" && break
4626 done
4627
4628   if test "x$ac_ct_CXX" = x; then
4629     CXX="g++"
4630   else
4631     case $cross_compiling:$ac_tool_warned in
4632 yes:)
4633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635 ac_tool_warned=yes ;;
4636 esac
4637     CXX=$ac_ct_CXX
4638   fi
4639 fi
4640
4641   fi
4642 fi
4643 # Provide some information about the compiler.
4644 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4645 set X $ac_compile
4646 ac_compiler=$2
4647 { (ac_try="$ac_compiler --version >&5"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4653 $as_echo "$ac_try_echo") >&5
4654   (eval "$ac_compiler --version >&5") 2>&5
4655   ac_status=$?
4656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }
4658 { (ac_try="$ac_compiler -v >&5"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665   (eval "$ac_compiler -v >&5") 2>&5
4666   ac_status=$?
4667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }
4669 { (ac_try="$ac_compiler -V >&5"
4670 case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4675 $as_echo "$ac_try_echo") >&5
4676   (eval "$ac_compiler -V >&5") 2>&5
4677   ac_status=$?
4678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }
4680
4681 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4682 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4683 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4684   $as_echo_n "(cached) " >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696 #ifndef __GNUC__
4697        choke me
4698 #endif
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_compile") 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } && {
4719          test -z "$ac_cxx_werror_flag" ||
4720          test ! -s conftest.err
4721        } && test -s conftest.$ac_objext; then
4722   ac_compiler_gnu=yes
4723 else
4724   $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727         ac_compiler_gnu=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4732
4733 fi
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4735 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4737   GXX=yes
4738 else
4739   GXX=
4740 fi
4741 ac_test_CXXFLAGS=${CXXFLAGS+set}
4742 ac_save_CXXFLAGS=$CXXFLAGS
4743 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4744 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4745 if test "${ac_cv_prog_cxx_g+set}" = set; then
4746   $as_echo_n "(cached) " >&6
4747 else
4748   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4749    ac_cxx_werror_flag=yes
4750    ac_cv_prog_cxx_g=no
4751    CXXFLAGS="-g"
4752    cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775   (eval "$ac_compile") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_cxx_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest.$ac_objext; then
4785   ac_cv_prog_cxx_g=yes
4786 else
4787   $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790         CXXFLAGS=""
4791       cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4808 case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4813 $as_echo "$ac_try_echo") >&5
4814   (eval "$ac_compile") 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } && {
4821          test -z "$ac_cxx_werror_flag" ||
4822          test ! -s conftest.err
4823        } && test -s conftest.$ac_objext; then
4824   :
4825 else
4826   $as_echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4830          CXXFLAGS="-g"
4831          cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854   (eval "$ac_compile") 2>conftest.er1
4855   ac_status=$?
4856   grep -v '^ *+' conftest.er1 >conftest.err
4857   rm -f conftest.er1
4858   cat conftest.err >&5
4859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } && {
4861          test -z "$ac_cxx_werror_flag" ||
4862          test ! -s conftest.err
4863        } && test -s conftest.$ac_objext; then
4864   ac_cv_prog_cxx_g=yes
4865 else
4866   $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 fi
4881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4882 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4883 if test "$ac_test_CXXFLAGS" = set; then
4884   CXXFLAGS=$ac_save_CXXFLAGS
4885 elif test $ac_cv_prog_cxx_g = yes; then
4886   if test "$GXX" = yes; then
4887     CXXFLAGS="-g -O2"
4888   else
4889     CXXFLAGS="-g"
4890   fi
4891 else
4892   if test "$GXX" = yes; then
4893     CXXFLAGS="-O2"
4894   else
4895     CXXFLAGS=
4896   fi
4897 fi
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904 depcc="$CXX"  am_compiler_list=
4905
4906 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4907 $as_echo_n "checking dependency style of $depcc... " >&6; }
4908 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4912   # We make a subdir and do the tests there.  Otherwise we can end up
4913   # making bogus files that we don't know about and never remove.  For
4914   # instance it was reported that on HP-UX the gcc test will end up
4915   # making a dummy file named `D' -- because `-MD' means `put the output
4916   # in D'.
4917   mkdir conftest.dir
4918   # Copy depcomp to subdir because otherwise we won't find it if we're
4919   # using a relative directory.
4920   cp "$am_depcomp" conftest.dir
4921   cd conftest.dir
4922   # We will build objects and dependencies in a subdirectory because
4923   # it helps to detect inapplicable dependency modes.  For instance
4924   # both Tru64's cc and ICC support -MD to output dependencies as a
4925   # side effect of compilation, but ICC will put the dependencies in
4926   # the current directory while Tru64 will put them in the object
4927   # directory.
4928   mkdir sub
4929
4930   am_cv_CXX_dependencies_compiler_type=none
4931   if test "$am_compiler_list" = ""; then
4932      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4933   fi
4934   for depmode in $am_compiler_list; do
4935     # Setup a source with many dependencies, because some compilers
4936     # like to wrap large dependency lists on column 80 (with \), and
4937     # we should not choose a depcomp mode which is confused by this.
4938     #
4939     # We need to recreate these files for each test, as the compiler may
4940     # overwrite some of them when testing with obscure command lines.
4941     # This happens at least with the AIX C compiler.
4942     : > sub/conftest.c
4943     for i in 1 2 3 4 5 6; do
4944       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4946       # Solaris 8's {/usr,}/bin/sh.
4947       touch sub/conftst$i.h
4948     done
4949     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4950
4951     case $depmode in
4952     nosideeffect)
4953       # after this tag, mechanisms are not by side-effect, so they'll
4954       # only be used when explicitly requested
4955       if test "x$enable_dependency_tracking" = xyes; then
4956         continue
4957       else
4958         break
4959       fi
4960       ;;
4961     none) break ;;
4962     esac
4963     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4964     # mode.  It turns out that the SunPro C++ compiler does not properly
4965     # handle `-M -o', and we need to detect this.
4966     if depmode=$depmode \
4967        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4968        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4969        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4970          >/dev/null 2>conftest.err &&
4971        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4973        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974       # icc doesn't choke on unknown options, it will just issue warnings
4975       # or remarks (even with -Werror).  So we grep stderr for any message
4976       # that says an option was ignored or not supported.
4977       # When given -MP, icc 7.0 and 7.1 complain thusly:
4978       #   icc: Command line warning: ignoring option '-M'; no argument required
4979       # The diagnosis changed in icc 8.0:
4980       #   icc: Command line remark: option '-MP' not supported
4981       if (grep 'ignoring option' conftest.err ||
4982           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983         am_cv_CXX_dependencies_compiler_type=$depmode
4984         break
4985       fi
4986     fi
4987   done
4988
4989   cd ..
4990   rm -rf conftest.dir
4991 else
4992   am_cv_CXX_dependencies_compiler_type=none
4993 fi
4994
4995 fi
4996 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4998 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4999
5000
5001
5002 if
5003   test "x$enable_dependency_tracking" != xno \
5004   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5005   am__fastdepCXX_TRUE=
5006   am__fastdepCXX_FALSE='#'
5007 else
5008   am__fastdepCXX_TRUE='#'
5009   am__fastdepCXX_FALSE=
5010 fi
5011
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 if test -n "$ac_tool_prefix"; then
5019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$CC"; then
5027   ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 CC=$ac_cv_prog_CC
5047 if test -n "$CC"; then
5048   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5049 $as_echo "$CC" >&6; }
5050 else
5051   { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 fi
5057 if test -z "$ac_cv_prog_CC"; then
5058   ac_ct_CC=$CC
5059   # Extract the first word of "gcc", so it can be a program name with args.
5060 set dummy gcc; ac_word=$2
5061 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5064   $as_echo_n "(cached) " >&6
5065 else
5066   if test -n "$ac_ct_CC"; then
5067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_prog_ac_ct_CC="gcc"
5077     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5090 else
5091   { $as_echo "$as_me:$LINENO: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095   if test "x$ac_ct_CC" = x; then
5096     CC=""
5097   else
5098     case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104     CC=$ac_ct_CC
5105   fi
5106 else
5107   CC="$ac_cv_prog_CC"
5108 fi
5109
5110 if test -z "$CC"; then
5111           if test -n "$ac_tool_prefix"; then
5112     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}cc; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_CC+set}" = set; then
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$CC"; then
5120   ac_cv_prog_CC="$CC" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_CC="${ac_tool_prefix}cc"
5130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 CC=$ac_cv_prog_CC
5140 if test -n "$CC"; then
5141   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5142 $as_echo "$CC" >&6; }
5143 else
5144   { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149   fi
5150 fi
5151 if test -z "$CC"; then
5152   # Extract the first word of "cc", so it can be a program name with args.
5153 set dummy cc; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_CC+set}" = set; then
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -n "$CC"; then
5160   ac_cv_prog_CC="$CC" # Let the user override the test.
5161 else
5162   ac_prog_rejected=no
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5171        ac_prog_rejected=yes
5172        continue
5173      fi
5174     ac_cv_prog_CC="cc"
5175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 if test $ac_prog_rejected = yes; then
5183   # We found a bogon in the path, so make sure we never use it.
5184   set dummy $ac_cv_prog_CC
5185   shift
5186   if test $# != 0; then
5187     # We chose a different compiler from the bogus one.
5188     # However, it has the same basename, so the bogon will be chosen
5189     # first if we set CC to just the basename; use the full file name.
5190     shift
5191     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5192   fi
5193 fi
5194 fi
5195 fi
5196 CC=$ac_cv_prog_CC
5197 if test -n "$CC"; then
5198   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5199 $as_echo "$CC" >&6; }
5200 else
5201   { $as_echo "$as_me:$LINENO: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 fi
5207 if test -z "$CC"; then
5208   if test -n "$ac_tool_prefix"; then
5209   for ac_prog in cl.exe
5210   do
5211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_CC+set}" = set; then
5216   $as_echo_n "(cached) " >&6
5217 else
5218   if test -n "$CC"; then
5219   ac_cv_prog_CC="$CC" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 CC=$ac_cv_prog_CC
5239 if test -n "$CC"; then
5240   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5241 $as_echo "$CC" >&6; }
5242 else
5243   { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248     test -n "$CC" && break
5249   done
5250 fi
5251 if test -z "$CC"; then
5252   ac_ct_CC=$CC
5253   for ac_prog in cl.exe
5254 do
5255   # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$ac_ct_CC"; then
5263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270   for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_ac_ct_CC="$ac_prog"
5273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5286 else
5287   { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292   test -n "$ac_ct_CC" && break
5293 done
5294
5295   if test "x$ac_ct_CC" = x; then
5296     CC=""
5297   else
5298     case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304     CC=$ac_ct_CC
5305   fi
5306 fi
5307
5308 fi
5309
5310
5311 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5316 See \`config.log' for more details." >&2;}
5317    { (exit 1); exit 1; }; }; }
5318
5319 # Provide some information about the compiler.
5320 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5321 set X $ac_compile
5322 ac_compiler=$2
5323 { (ac_try="$ac_compiler --version >&5"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330   (eval "$ac_compiler --version >&5") 2>&5
5331   ac_status=$?
5332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }
5334 { (ac_try="$ac_compiler -v >&5"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341   (eval "$ac_compiler -v >&5") 2>&5
5342   ac_status=$?
5343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }
5345 { (ac_try="$ac_compiler -V >&5"
5346 case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352   (eval "$ac_compiler -V >&5") 2>&5
5353   ac_status=$?
5354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }
5356
5357 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5360   $as_echo_n "(cached) " >&6
5361 else
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368
5369 int
5370 main ()
5371 {
5372 #ifndef __GNUC__
5373        choke me
5374 #endif
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388   (eval "$ac_compile") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } && {
5395          test -z "$ac_c_werror_flag" ||
5396          test ! -s conftest.err
5397        } && test -s conftest.$ac_objext; then
5398   ac_compiler_gnu=yes
5399 else
5400   $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403         ac_compiler_gnu=no
5404 fi
5405
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5408
5409 fi
5410 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5412 if test $ac_compiler_gnu = yes; then
5413   GCC=yes
5414 else
5415   GCC=
5416 fi
5417 ac_test_CFLAGS=${CFLAGS+set}
5418 ac_save_CFLAGS=$CFLAGS
5419 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5421 if test "${ac_cv_prog_cc_g+set}" = set; then
5422   $as_echo_n "(cached) " >&6
5423 else
5424   ac_save_c_werror_flag=$ac_c_werror_flag
5425    ac_c_werror_flag=yes
5426    ac_cv_prog_cc_g=no
5427    CFLAGS="-g"
5428    cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434
5435 int
5436 main ()
5437 {
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_c_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   ac_cv_prog_cc_g=yes
5462 else
5463   $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         CFLAGS=""
5467       cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 int
5475 main ()
5476 {
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490   (eval "$ac_compile") 2>conftest.er1
5491   ac_status=$?
5492   grep -v '^ *+' conftest.er1 >conftest.err
5493   rm -f conftest.er1
5494   cat conftest.err >&5
5495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } && {
5497          test -z "$ac_c_werror_flag" ||
5498          test ! -s conftest.err
5499        } && test -s conftest.$ac_objext; then
5500   :
5501 else
5502   $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505         ac_c_werror_flag=$ac_save_c_werror_flag
5506          CFLAGS="-g"
5507          cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530   (eval "$ac_compile") 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } && {
5537          test -z "$ac_c_werror_flag" ||
5538          test ! -s conftest.err
5539        } && test -s conftest.$ac_objext; then
5540   ac_cv_prog_cc_g=yes
5541 else
5542   $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555    ac_c_werror_flag=$ac_save_c_werror_flag
5556 fi
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5558 $as_echo "$ac_cv_prog_cc_g" >&6; }
5559 if test "$ac_test_CFLAGS" = set; then
5560   CFLAGS=$ac_save_CFLAGS
5561 elif test $ac_cv_prog_cc_g = yes; then
5562   if test "$GCC" = yes; then
5563     CFLAGS="-g -O2"
5564   else
5565     CFLAGS="-g"
5566   fi
5567 else
5568   if test "$GCC" = yes; then
5569     CFLAGS="-O2"
5570   else
5571     CFLAGS=
5572   fi
5573 fi
5574 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5576 if test "${ac_cv_prog_cc_c89+set}" = set; then
5577   $as_echo_n "(cached) " >&6
5578 else
5579   ac_cv_prog_cc_c89=no
5580 ac_save_CC=$CC
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 #include <stdarg.h>
5588 #include <stdio.h>
5589 #include <sys/types.h>
5590 #include <sys/stat.h>
5591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5592 struct buf { int x; };
5593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5594 static char *e (p, i)
5595      char **p;
5596      int i;
5597 {
5598   return p[i];
5599 }
5600 static char *f (char * (*g) (char **, int), char **p, ...)
5601 {
5602   char *s;
5603   va_list v;
5604   va_start (v,p);
5605   s = g (p, va_arg (v,int));
5606   va_end (v);
5607   return s;
5608 }
5609
5610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5611    function prototypes and stuff, but not '\xHH' hex character constants.
5612    These don't provoke an error unfortunately, instead are silently treated
5613    as 'x'.  The following induces an error, until -std is added to get
5614    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5615    array size at least.  It's necessary to write '\x00'==0 to get something
5616    that's true only with -std.  */
5617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5618
5619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5620    inside strings and character constants.  */
5621 #define FOO(x) 'x'
5622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5623
5624 int test (int i, double x);
5625 struct s1 {int (*f) (int a);};
5626 struct s2 {int (*f) (double a);};
5627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5628 int argc;
5629 char **argv;
5630 int
5631 main ()
5632 {
5633 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5639         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5640 do
5641   CC="$ac_save_CC $ac_arg"
5642   rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650   (eval "$ac_compile") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } && {
5657          test -z "$ac_c_werror_flag" ||
5658          test ! -s conftest.err
5659        } && test -s conftest.$ac_objext; then
5660   ac_cv_prog_cc_c89=$ac_arg
5661 else
5662   $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666 fi
5667
5668 rm -f core conftest.err conftest.$ac_objext
5669   test "x$ac_cv_prog_cc_c89" != "xno" && break
5670 done
5671 rm -f conftest.$ac_ext
5672 CC=$ac_save_CC
5673
5674 fi
5675 # AC_CACHE_VAL
5676 case "x$ac_cv_prog_cc_c89" in
5677   x)
5678     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5679 $as_echo "none needed" >&6; } ;;
5680   xno)
5681     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5682 $as_echo "unsupported" >&6; } ;;
5683   *)
5684     CC="$CC $ac_cv_prog_cc_c89"
5685     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5687 esac
5688
5689
5690 ac_ext=c
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696 # Find a good install program.  We prefer a C program (faster),
5697 # so one script is as good as another.  But avoid the broken or
5698 # incompatible versions:
5699 # SysV /etc/install, /usr/sbin/install
5700 # SunOS /usr/etc/install
5701 # IRIX /sbin/install
5702 # AIX /bin/install
5703 # AmigaOS /C/install, which installs bootblocks on floppy discs
5704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5707 # OS/2's system install, which has a completely different semantic
5708 # ./install, which can be erroneously created by make from ./install.sh.
5709 # Reject install programs that cannot install multiple files.
5710 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5711 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5712 if test -z "$INSTALL"; then
5713 if test "${ac_cv_path_install+set}" = set; then
5714   $as_echo_n "(cached) " >&6
5715 else
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   # Account for people who put trailing slashes in PATH elements.
5722 case $as_dir/ in
5723   ./ | .// | /cC/* | \
5724   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5725   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5726   /usr/ucb/* ) ;;
5727   *)
5728     # OSF1 and SCO ODT 3.0 have their own names for install.
5729     # Don't use installbsd from OSF since it installs stuff as root
5730     # by default.
5731     for ac_prog in ginstall scoinst install; do
5732       for ac_exec_ext in '' $ac_executable_extensions; do
5733         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5734           if test $ac_prog = install &&
5735             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5736             # AIX install.  It has an incompatible calling convention.
5737             :
5738           elif test $ac_prog = install &&
5739             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5740             # program-specific install script used by HP pwplus--don't use.
5741             :
5742           else
5743             rm -rf conftest.one conftest.two conftest.dir
5744             echo one > conftest.one
5745             echo two > conftest.two
5746             mkdir conftest.dir
5747             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5748               test -s conftest.one && test -s conftest.two &&
5749               test -s conftest.dir/conftest.one &&
5750               test -s conftest.dir/conftest.two
5751             then
5752               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5753               break 3
5754             fi
5755           fi
5756         fi
5757       done
5758     done
5759     ;;
5760 esac
5761
5762 done
5763 IFS=$as_save_IFS
5764
5765 rm -rf conftest.one conftest.two conftest.dir
5766
5767 fi
5768   if test "${ac_cv_path_install+set}" = set; then
5769     INSTALL=$ac_cv_path_install
5770   else
5771     # As a last resort, use the slow shell script.  Don't cache a
5772     # value for INSTALL within a source directory, because that will
5773     # break other packages using the cache if that directory is
5774     # removed, or if the value is a relative name.
5775     INSTALL=$ac_install_sh
5776   fi
5777 fi
5778 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5779 $as_echo "$INSTALL" >&6; }
5780
5781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5782 # It thinks the first close brace ends the variable substitution.
5783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5784
5785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5786
5787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5788
5789 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5791 set x ${MAKE-make}
5792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794   $as_echo_n "(cached) " >&6
5795 else
5796   cat >conftest.make <<\_ACEOF
5797 SHELL = /bin/sh
5798 all:
5799         @echo '@@@%%%=$(MAKE)=@@@%%%'
5800 _ACEOF
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5803   *@@@%%%=?*=@@@%%%*)
5804     eval ac_cv_prog_make_${ac_make}_set=yes;;
5805   *)
5806     eval ac_cv_prog_make_${ac_make}_set=no;;
5807 esac
5808 rm -f conftest.make
5809 fi
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811   { $as_echo "$as_me:$LINENO: result: yes" >&5
5812 $as_echo "yes" >&6; }
5813   SET_MAKE=
5814 else
5815   { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5817   SET_MAKE="MAKE=${MAKE-make}"
5818 fi
5819
5820
5821
5822 # site specific configs
5823
5824 # check for asterisk
5825
5826 # Check whether --with-asterisk was given.
5827 if test "${with_asterisk+set}" = set; then
5828   withval=$with_asterisk;
5829 else
5830   with_asterisk="check"
5831 fi
5832
5833
5834 if test "x$with_asterisk" != xno; then
5835
5836 for ac_header in asterisk/compiler.h
5837 do
5838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 $as_echo_n "checking for $ac_header... " >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843   $as_echo_n "(cached) " >&6
5844 fi
5845 ac_res=`eval 'as_val=${'$as_ac_Header'}
5846                  $as_echo "$as_val"'`
5847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5849 else
5850   # Is the header compilable?
5851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5852 $as_echo_n "checking $ac_header usability... " >&6; }
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 $ac_includes_default
5860 #include <$ac_header>
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870   (eval "$ac_compile") 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } && {
5877          test -z "$ac_c_werror_flag" ||
5878          test ! -s conftest.err
5879        } && test -s conftest.$ac_objext; then
5880   ac_header_compiler=yes
5881 else
5882   $as_echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885         ac_header_compiler=no
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890 $as_echo "$ac_header_compiler" >&6; }
5891
5892 # Is the header present?
5893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5894 $as_echo_n "checking $ac_header presence... " >&6; }
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 #include <$ac_header>
5902 _ACEOF
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } >/dev/null && {
5917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5918          test ! -s conftest.err
5919        }; then
5920   ac_header_preproc=yes
5921 else
5922   $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925   ac_header_preproc=no
5926 fi
5927
5928 rm -f conftest.err conftest.$ac_ext
5929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5930 $as_echo "$ac_header_preproc" >&6; }
5931
5932 # So?  What about this header?
5933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5934   yes:no: )
5935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5939     ac_header_preproc=yes
5940     ;;
5941   no:yes:* )
5942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5945 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5949 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5952     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5954     ( cat <<\_ASBOX
5955 ## ----------------------------------- ##
5956 ## Report this to andreas@eversberg.eu ##
5957 ## ----------------------------------- ##
5958 _ASBOX
5959      ) | sed "s/^/$as_me: WARNING:     /" >&2
5960     ;;
5961 esac
5962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 $as_echo_n "checking for $ac_header... " >&6; }
5964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5965   $as_echo_n "(cached) " >&6
5966 else
5967   eval "$as_ac_Header=\$ac_header_preproc"
5968 fi
5969 ac_res=`eval 'as_val=${'$as_ac_Header'}
5970                  $as_echo "$as_val"'`
5971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5972 $as_echo "$ac_res" >&6; }
5973
5974 fi
5975 as_val=`eval 'as_val=${'$as_ac_Header'}
5976                  $as_echo "$as_val"'`
5977    if test "x$as_val" = x""yes; then
5978   cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 _ACEOF
5981  with_asterisk="yes"
5982 else
5983   if test "x$with_asterisk" != xcheck ; then
5984                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5986 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5987 See \`config.log' for more details." >&5
5988 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
5989 See \`config.log' for more details." >&2;}
5990    { (exit 1); exit 1; }; }; }
5991                      fi
5992
5993 fi
5994
5995 done
5996
5997
5998 fi
5999
6000
6001
6002
6003 if test "x$with_asterisk" == "xyes" ; then
6004   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6005   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6006 else
6007   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6008   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6009 fi
6010
6011
6012 # check for crypto
6013
6014 # Check whether --with-ssl was given.
6015 if test "${with_ssl+set}" = set; then
6016   withval=$with_ssl;
6017 else
6018   with_ssl=check
6019 fi
6020
6021 LIBCRYPTO=
6022 if test "x$with_ssl" != xno; then
6023
6024 for ac_header in openssl/rsa.h
6025 do
6026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 $as_echo_n "checking for $ac_header... " >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031   $as_echo_n "(cached) " >&6
6032 fi
6033 ac_res=`eval 'as_val=${'$as_ac_Header'}
6034                  $as_echo "$as_val"'`
6035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6036 $as_echo "$ac_res" >&6; }
6037 else
6038   # Is the header compilable?
6039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6040 $as_echo_n "checking $ac_header usability... " >&6; }
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 $ac_includes_default
6048 #include <$ac_header>
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058   (eval "$ac_compile") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } && {
6065          test -z "$ac_c_werror_flag" ||
6066          test ! -s conftest.err
6067        } && test -s conftest.$ac_objext; then
6068   ac_header_compiler=yes
6069 else
6070   $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_header_compiler=no
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078 $as_echo "$ac_header_compiler" >&6; }
6079
6080 # Is the header present?
6081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082 $as_echo_n "checking $ac_header presence... " >&6; }
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #include <$ac_header>
6090 _ACEOF
6091 if { (ac_try="$ac_cpp conftest.$ac_ext"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } >/dev/null && {
6105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106          test ! -s conftest.err
6107        }; then
6108   ac_header_preproc=yes
6109 else
6110   $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_header_preproc=no
6114 fi
6115
6116 rm -f conftest.err conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 $as_echo "$ac_header_preproc" >&6; }
6119
6120 # So?  What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122   yes:no: )
6123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127     ac_header_preproc=yes
6128     ;;
6129   no:yes:* )
6130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6133 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6137 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142     ( cat <<\_ASBOX
6143 ## ----------------------------------- ##
6144 ## Report this to andreas@eversberg.eu ##
6145 ## ----------------------------------- ##
6146 _ASBOX
6147      ) | sed "s/^/$as_me: WARNING:     /" >&2
6148     ;;
6149 esac
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153   $as_echo_n "(cached) " >&6
6154 else
6155   eval "$as_ac_Header=\$ac_header_preproc"
6156 fi
6157 ac_res=`eval 'as_val=${'$as_ac_Header'}
6158                  $as_echo "$as_val"'`
6159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6160 $as_echo "$ac_res" >&6; }
6161
6162 fi
6163 as_val=`eval 'as_val=${'$as_ac_Header'}
6164                  $as_echo "$as_val"'`
6165    if test "x$as_val" = x""yes; then
6166   cat >>confdefs.h <<_ACEOF
6167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6168 _ACEOF
6169
6170 fi
6171
6172 done
6173
6174        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6175 $as_echo_n "checking for main in -lcrypto... " >&6; }
6176 if test "${ac_cv_lib_crypto_main+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lcrypto -lcrypto
6181                     $LIBS"
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189
6190 int
6191 main ()
6192 {
6193 return main ();
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6200 case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206   (eval "$ac_link") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } && {
6213          test -z "$ac_c_werror_flag" ||
6214          test ! -s conftest.err
6215        } && test -s conftest$ac_exeext && {
6216          test "$cross_compiling" = yes ||
6217          $as_test_x conftest$ac_exeext
6218        }; then
6219   ac_cv_lib_crypto_main=yes
6220 else
6221   $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         ac_cv_lib_crypto_main=no
6225 fi
6226
6227 rm -rf conftest.dSYM
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229       conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6231 fi
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6233 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6234 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6235   LIBCRYPTO="-lcrypto"
6236
6237
6238 cat >>confdefs.h <<\_ACEOF
6239 #define HAVE_LIBCRYPTO 1
6240 _ACEOF
6241
6242
6243 else
6244   if test "x$with_ssl" != xcheck ; then
6245                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6247 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6248 See \`config.log' for more details." >&5
6249 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6250 See \`config.log' for more details." >&2;}
6251    { (exit 1); exit 1; }; }; }
6252                      fi
6253
6254 fi
6255
6256
6257
6258 fi
6259
6260
6261 # check for gsm
6262
6263 # Check whether --with-gsm was given.
6264 if test "${with_gsm+set}" = set; then
6265   withval=$with_gsm;
6266 else
6267   with_gsm="check"
6268 fi
6269
6270
6271 if test "x$with_gsm" != xno; then
6272   { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6273 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6274 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6275   $as_echo_n "(cached) " >&6
6276 else
6277   test "$cross_compiling" = yes &&
6278   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6279 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6280    { (exit 1); exit 1; }; }
6281 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6282   ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6283 else
6284   ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6285 fi
6286 fi
6287 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6288 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6289 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6290   with_gsm="yes"
6291 else
6292   if test "x$with_gsm" != xcheck ; then
6293                           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 { { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
6296 See \`config.log' for more details." >&5
6297 $as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ .
6298 See \`config.log' for more details." >&2;}
6299    { (exit 1); exit 1; }; }; }
6300                      fi
6301
6302 fi
6303
6304
6305 fi
6306
6307
6308
6309
6310 if test "x$with_gsm" == "xyes" ; then
6311   ENABLE_GSM_TRUE=
6312   ENABLE_GSM_FALSE='#'
6313 else
6314   ENABLE_GSM_TRUE='#'
6315   ENABLE_GSM_FALSE=
6316 fi
6317
6318
6319 # Checks for libraries.
6320
6321 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6322 $as_echo_n "checking for main in -lm... " >&6; }
6323 if test "${ac_cv_lib_m_main+set}" = set; then
6324   $as_echo_n "(cached) " >&6
6325 else
6326   ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lm  $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334
6335
6336 int
6337 main ()
6338 {
6339 return main ();
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6346 case "(($ac_try" in
6347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348   *) ac_try_echo=$ac_try;;
6349 esac
6350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6351 $as_echo "$ac_try_echo") >&5
6352   (eval "$ac_link") 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } && {
6359          test -z "$ac_c_werror_flag" ||
6360          test ! -s conftest.err
6361        } && test -s conftest$ac_exeext && {
6362          test "$cross_compiling" = yes ||
6363          $as_test_x conftest$ac_exeext
6364        }; then
6365   ac_cv_lib_m_main=yes
6366 else
6367   $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370         ac_cv_lib_m_main=no
6371 fi
6372
6373 rm -rf conftest.dSYM
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375       conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6377 fi
6378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6379 $as_echo "$ac_cv_lib_m_main" >&6; }
6380 if test "x$ac_cv_lib_m_main" = x""yes; then
6381   cat >>confdefs.h <<_ACEOF
6382 #define HAVE_LIBM 1
6383 _ACEOF
6384
6385   LIBS="-lm $LIBS"
6386
6387 fi
6388
6389
6390 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6391 $as_echo_n "checking for main in -lncurses... " >&6; }
6392 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6393   $as_echo_n "(cached) " >&6
6394 else
6395   ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lncurses  $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403
6404
6405 int
6406 main ()
6407 {
6408 return main ();
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (ac_try="$ac_link"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420 $as_echo "$ac_try_echo") >&5
6421   (eval "$ac_link") 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } && {
6428          test -z "$ac_c_werror_flag" ||
6429          test ! -s conftest.err
6430        } && test -s conftest$ac_exeext && {
6431          test "$cross_compiling" = yes ||
6432          $as_test_x conftest$ac_exeext
6433        }; then
6434   ac_cv_lib_ncurses_main=yes
6435 else
6436   $as_echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439         ac_cv_lib_ncurses_main=no
6440 fi
6441
6442 rm -rf conftest.dSYM
6443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6444       conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6446 fi
6447 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6448 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6449 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6450   cat >>confdefs.h <<_ACEOF
6451 #define HAVE_LIBNCURSES 1
6452 _ACEOF
6453
6454   LIBS="-lncurses $LIBS"
6455
6456 fi
6457
6458
6459 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6460 $as_echo_n "checking for main in -lpthread... " >&6; }
6461 if test "${ac_cv_lib_pthread_main+set}" = set; then
6462   $as_echo_n "(cached) " >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lpthread  $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472
6473
6474 int
6475 main ()
6476 {
6477 return main ();
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (ac_try="$ac_link"
6484 case "(($ac_try" in
6485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486   *) ac_try_echo=$ac_try;;
6487 esac
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490   (eval "$ac_link") 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } && {
6497          test -z "$ac_c_werror_flag" ||
6498          test ! -s conftest.err
6499        } && test -s conftest$ac_exeext && {
6500          test "$cross_compiling" = yes ||
6501          $as_test_x conftest$ac_exeext
6502        }; then
6503   ac_cv_lib_pthread_main=yes
6504 else
6505   $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508         ac_cv_lib_pthread_main=no
6509 fi
6510
6511 rm -rf conftest.dSYM
6512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6513       conftest$ac_exeext conftest.$ac_ext
6514 LIBS=$ac_check_lib_save_LIBS
6515 fi
6516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6517 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6518 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6519   cat >>confdefs.h <<_ACEOF
6520 #define HAVE_LIBPTHREAD 1
6521 _ACEOF
6522
6523   LIBS="-lpthread $LIBS"
6524
6525 fi
6526
6527
6528 # Checks for header files.
6529
6530
6531
6532
6533
6534 ac_header_dirent=no
6535 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6536   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6537 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6538 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540   $as_echo_n "(cached) " >&6
6541 else
6542   cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548 #include <sys/types.h>
6549 #include <$ac_hdr>
6550
6551 int
6552 main ()
6553 {
6554 if ((DIR *) 0)
6555 return 0;
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568   (eval "$ac_compile") 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } && {
6575          test -z "$ac_c_werror_flag" ||
6576          test ! -s conftest.err
6577        } && test -s conftest.$ac_objext; then
6578   eval "$as_ac_Header=yes"
6579 else
6580   $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583         eval "$as_ac_Header=no"
6584 fi
6585
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588 ac_res=`eval 'as_val=${'$as_ac_Header'}
6589                  $as_echo "$as_val"'`
6590                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6591 $as_echo "$ac_res" >&6; }
6592 as_val=`eval 'as_val=${'$as_ac_Header'}
6593                  $as_echo "$as_val"'`
6594    if test "x$as_val" = x""yes; then
6595   cat >>confdefs.h <<_ACEOF
6596 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6597 _ACEOF
6598
6599 ac_header_dirent=$ac_hdr; break
6600 fi
6601
6602 done
6603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6604 if test $ac_header_dirent = dirent.h; then
6605   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6606 $as_echo_n "checking for library containing opendir... " >&6; }
6607 if test "${ac_cv_search_opendir+set}" = set; then
6608   $as_echo_n "(cached) " >&6
6609 else
6610   ac_func_search_save_LIBS=$LIBS
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617
6618 /* Override any GCC internal prototype to avoid an error.
6619    Use char because int might match the return type of a GCC
6620    builtin and then its argument prototype would still apply.  */
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 char opendir ();
6625 int
6626 main ()
6627 {
6628 return opendir ();
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 for ac_lib in '' dir; do
6634   if test -z "$ac_lib"; then
6635     ac_res="none required"
6636   else
6637     ac_res=-l$ac_lib
6638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6639   fi
6640   rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (ac_try="$ac_link"
6642 case "(($ac_try" in
6643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644   *) ac_try_echo=$ac_try;;
6645 esac
6646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6647 $as_echo "$ac_try_echo") >&5
6648   (eval "$ac_link") 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && {
6655          test -z "$ac_c_werror_flag" ||
6656          test ! -s conftest.err
6657        } && test -s conftest$ac_exeext && {
6658          test "$cross_compiling" = yes ||
6659          $as_test_x conftest$ac_exeext
6660        }; then
6661   ac_cv_search_opendir=$ac_res
6662 else
6663   $as_echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666
6667 fi
6668
6669 rm -rf conftest.dSYM
6670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6671       conftest$ac_exeext
6672   if test "${ac_cv_search_opendir+set}" = set; then
6673   break
6674 fi
6675 done
6676 if test "${ac_cv_search_opendir+set}" = set; then
6677   :
6678 else
6679   ac_cv_search_opendir=no
6680 fi
6681 rm conftest.$ac_ext
6682 LIBS=$ac_func_search_save_LIBS
6683 fi
6684 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6685 $as_echo "$ac_cv_search_opendir" >&6; }
6686 ac_res=$ac_cv_search_opendir
6687 if test "$ac_res" != no; then
6688   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6689
6690 fi
6691
6692 else
6693   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6694 $as_echo_n "checking for library containing opendir... " >&6; }
6695 if test "${ac_cv_search_opendir+set}" = set; then
6696   $as_echo_n "(cached) " >&6
6697 else
6698   ac_func_search_save_LIBS=$LIBS
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705
6706 /* Override any GCC internal prototype to avoid an error.
6707    Use char because int might match the return type of a GCC
6708    builtin and then its argument prototype would still apply.  */
6709 #ifdef __cplusplus
6710 extern "C"
6711 #endif
6712 char opendir ();
6713 int
6714 main ()
6715 {
6716 return opendir ();
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 for ac_lib in '' x; do
6722   if test -z "$ac_lib"; then
6723     ac_res="none required"
6724   else
6725     ac_res=-l$ac_lib
6726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6727   fi
6728   rm -f conftest.$ac_objext conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6730 case "(($ac_try" in
6731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732   *) ac_try_echo=$ac_try;;
6733 esac
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736   (eval "$ac_link") 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } && {
6743          test -z "$ac_c_werror_flag" ||
6744          test ! -s conftest.err
6745        } && test -s conftest$ac_exeext && {
6746          test "$cross_compiling" = yes ||
6747          $as_test_x conftest$ac_exeext
6748        }; then
6749   ac_cv_search_opendir=$ac_res
6750 else
6751   $as_echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6753
6754
6755 fi
6756
6757 rm -rf conftest.dSYM
6758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6759       conftest$ac_exeext
6760   if test "${ac_cv_search_opendir+set}" = set; then
6761   break
6762 fi
6763 done
6764 if test "${ac_cv_search_opendir+set}" = set; then
6765   :
6766 else
6767   ac_cv_search_opendir=no
6768 fi
6769 rm conftest.$ac_ext
6770 LIBS=$ac_func_search_save_LIBS
6771 fi
6772 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6773 $as_echo "$ac_cv_search_opendir" >&6; }
6774 ac_res=$ac_cv_search_opendir
6775 if test "$ac_res" != no; then
6776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6777
6778 fi
6779
6780 fi
6781
6782 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 $as_echo_n "checking for ANSI C header files... " >&6; }
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785   $as_echo_n "(cached) " >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <stdlib.h>
6794 #include <stdarg.h>
6795 #include <string.h>
6796 #include <float.h>
6797
6798 int
6799 main ()
6800 {
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810   *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814   (eval "$ac_compile") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest.$ac_objext; then
6824   ac_cv_header_stdc=yes
6825 else
6826   $as_echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829         ac_cv_header_stdc=no
6830 fi
6831
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833
6834 if test $ac_cv_header_stdc = yes; then
6835   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836   cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842 #include <string.h>
6843
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846   $EGREP "memchr" >/dev/null 2>&1; then
6847   :
6848 else
6849   ac_cv_header_stdc=no
6850 fi
6851 rm -f conftest*
6852
6853 fi
6854
6855 if test $ac_cv_header_stdc = yes; then
6856   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857   cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863 #include <stdlib.h>
6864
6865 _ACEOF
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867   $EGREP "free" >/dev/null 2>&1; then
6868   :
6869 else
6870   ac_cv_header_stdc=no
6871 fi
6872 rm -f conftest*
6873
6874 fi
6875
6876 if test $ac_cv_header_stdc = yes; then
6877   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6878   if test "$cross_compiling" = yes; then
6879   :
6880 else
6881   cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <ctype.h>
6888 #include <stdlib.h>
6889 #if ((' ' & 0x0FF) == 0x020)
6890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6892 #else
6893 # define ISLOWER(c) \
6894                    (('a' <= (c) && (c) <= 'i') \
6895                      || ('j' <= (c) && (c) <= 'r') \
6896                      || ('s' <= (c) && (c) <= 'z'))
6897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6898 #endif
6899
6900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6901 int
6902 main ()
6903 {
6904   int i;
6905   for (i = 0; i < 256; i++)
6906     if (XOR (islower (i), ISLOWER (i))
6907         || toupper (i) != TOUPPER (i))
6908       return 2;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6914 case "(($ac_try" in
6915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916   *) ac_try_echo=$ac_try;;
6917 esac
6918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920   (eval "$ac_link") 2>&5
6921   ac_status=$?
6922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6924   { (case "(($ac_try" in
6925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926   *) ac_try_echo=$ac_try;;
6927 esac
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930   (eval "$ac_try") 2>&5
6931   ac_status=$?
6932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; }; then
6934   :
6935 else
6936   $as_echo "$as_me: program exited with status $ac_status" >&5
6937 $as_echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ( exit $ac_status )
6941 ac_cv_header_stdc=no
6942 fi
6943 rm -rf conftest.dSYM
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6945 fi
6946
6947
6948 fi
6949 fi
6950 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6951 $as_echo "$ac_cv_header_stdc" >&6; }
6952 if test $ac_cv_header_stdc = yes; then
6953
6954 cat >>confdefs.h <<\_ACEOF
6955 #define STDC_HEADERS 1
6956 _ACEOF
6957
6958 fi
6959
6960 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6961 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6962 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6963   $as_echo_n "(cached) " >&6
6964 else
6965   cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971 #include <sys/types.h>
6972 #include <sys/wait.h>
6973 #ifndef WEXITSTATUS
6974 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6975 #endif
6976 #ifndef WIFEXITED
6977 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6978 #endif
6979
6980 int
6981 main ()
6982 {
6983   int s;
6984   wait (&s);
6985   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998   (eval "$ac_compile") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } && {
7005          test -z "$ac_c_werror_flag" ||
7006          test ! -s conftest.err
7007        } && test -s conftest.$ac_objext; then
7008   ac_cv_header_sys_wait_h=yes
7009 else
7010   $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013         ac_cv_header_sys_wait_h=no
7014 fi
7015
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7019 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7020 if test $ac_cv_header_sys_wait_h = yes; then
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_SYS_WAIT_H 1
7024 _ACEOF
7025
7026 fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
7042 do
7043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7045   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 $as_echo_n "checking for $ac_header... " >&6; }
7047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7048   $as_echo_n "(cached) " >&6
7049 fi
7050 ac_res=`eval 'as_val=${'$as_ac_Header'}
7051                  $as_echo "$as_val"'`
7052                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054 else
7055   # Is the header compilable?
7056 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7057 $as_echo_n "checking $ac_header usability... " >&6; }
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 $ac_includes_default
7065 #include <$ac_header>
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071   *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075   (eval "$ac_compile") 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } && {
7082          test -z "$ac_c_werror_flag" ||
7083          test ! -s conftest.err
7084        } && test -s conftest.$ac_objext; then
7085   ac_header_compiler=yes
7086 else
7087   $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090         ac_header_compiler=no
7091 fi
7092
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 $as_echo "$ac_header_compiler" >&6; }
7096
7097 # Is the header present?
7098 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 $as_echo_n "checking $ac_header presence... " >&6; }
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <$ac_header>
7107 _ACEOF
7108 if { (ac_try="$ac_cpp conftest.$ac_ext"
7109 case "(($ac_try" in
7110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111   *) ac_try_echo=$ac_try;;
7112 esac
7113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7116   ac_status=$?
7117   grep -v '^ *+' conftest.er1 >conftest.err
7118   rm -f conftest.er1
7119   cat conftest.err >&5
7120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } >/dev/null && {
7122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7123          test ! -s conftest.err
7124        }; then
7125   ac_header_preproc=yes
7126 else
7127   $as_echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130   ac_header_preproc=no
7131 fi
7132
7133 rm -f conftest.err conftest.$ac_ext
7134 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 $as_echo "$ac_header_preproc" >&6; }
7136
7137 # So?  What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7139   yes:no: )
7140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7141 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7144     ac_header_preproc=yes
7145     ;;
7146   no:yes:* )
7147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7148 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7150 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7152 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7154 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7158 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7159     ( cat <<\_ASBOX
7160 ## ----------------------------------- ##
7161 ## Report this to andreas@eversberg.eu ##
7162 ## ----------------------------------- ##
7163 _ASBOX
7164      ) | sed "s/^/$as_me: WARNING:     /" >&2
7165     ;;
7166 esac
7167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7168 $as_echo_n "checking for $ac_header... " >&6; }
7169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7170   $as_echo_n "(cached) " >&6
7171 else
7172   eval "$as_ac_Header=\$ac_header_preproc"
7173 fi
7174 ac_res=`eval 'as_val=${'$as_ac_Header'}
7175                  $as_echo "$as_val"'`
7176                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7177 $as_echo "$ac_res" >&6; }
7178
7179 fi
7180 as_val=`eval 'as_val=${'$as_ac_Header'}
7181                  $as_echo "$as_val"'`
7182    if test "x$as_val" = x""yes; then
7183   cat >>confdefs.h <<_ACEOF
7184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7185 _ACEOF
7186
7187 fi
7188
7189 done
7190
7191
7192 # Checks for typedefs, structures, and compiler characteristics.
7193 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7194 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7195 if test "${ac_cv_header_stdbool_h+set}" = set; then
7196   $as_echo_n "(cached) " >&6
7197 else
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204
7205 #include <stdbool.h>
7206 #ifndef bool
7207  "error: bool is not defined"
7208 #endif
7209 #ifndef false
7210  "error: false is not defined"
7211 #endif
7212 #if false
7213  "error: false is not 0"
7214 #endif
7215 #ifndef true
7216  "error: true is not defined"
7217 #endif
7218 #if true != 1
7219  "error: true is not 1"
7220 #endif
7221 #ifndef __bool_true_false_are_defined
7222  "error: __bool_true_false_are_defined is not defined"
7223 #endif
7224
7225         struct s { _Bool s: 1; _Bool t; } s;
7226
7227         char a[true == 1 ? 1 : -1];
7228         char b[false == 0 ? 1 : -1];
7229         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7230         char d[(bool) 0.5 == true ? 1 : -1];
7231         bool e = &s;
7232         char f[(_Bool) 0.0 == false ? 1 : -1];
7233         char g[true];
7234         char h[sizeof (_Bool)];
7235         char i[sizeof s.t];
7236         enum { j = false, k = true, l = false * true, m = true * 256 };
7237         /* The following fails for
7238            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7239         _Bool n[m];
7240         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7241         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7242 #       if defined __xlc__ || defined __GNUC__
7243          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7244             reported by James Lemley on 2005-10-05; see
7245             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7246             This test is not quite right, since xlc is allowed to
7247             reject this program, as the initializer for xlcbug is
7248             not one of the forms that C requires support for.
7249             However, doing the test right would require a runtime
7250             test, and that would make cross-compilation harder.
7251             Let us hope that IBM fixes the xlc bug, and also adds
7252             support for this kind of constant expression.  In the
7253             meantime, this test will reject xlc, which is OK, since
7254             our stdbool.h substitute should suffice.  We also test
7255             this with GCC, where it should work, to detect more
7256             quickly whether someone messes up the test in the
7257             future.  */
7258          char digs[] = "0123456789";
7259          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7260 #       endif
7261         /* Catch a bug in an HP-UX C compiler.  See
7262            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7263            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7264          */
7265         _Bool q = true;
7266         _Bool *pq = &q;
7267
7268 int
7269 main ()
7270 {
7271
7272         *pq |= q;
7273         *pq |= ! q;
7274         /* Refer to every declared value, to avoid compiler optimizations.  */
7275         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7276                 + !m + !n + !o + !p + !q + !pq);
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7284 case "(($ac_try" in
7285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286   *) ac_try_echo=$ac_try;;
7287 esac
7288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7289 $as_echo "$ac_try_echo") >&5
7290   (eval "$ac_compile") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && {
7297          test -z "$ac_c_werror_flag" ||
7298          test ! -s conftest.err
7299        } && test -s conftest.$ac_objext; then
7300   ac_cv_header_stdbool_h=yes
7301 else
7302   $as_echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305         ac_cv_header_stdbool_h=no
7306 fi
7307
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7311 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7312 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7313 $as_echo_n "checking for _Bool... " >&6; }
7314 if test "${ac_cv_type__Bool+set}" = set; then
7315   $as_echo_n "(cached) " >&6
7316 else
7317   ac_cv_type__Bool=no
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 $ac_includes_default
7325 int
7326 main ()
7327 {
7328 if (sizeof (_Bool))
7329        return 0;
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (ac_try="$ac_compile"
7336 case "(($ac_try" in
7337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338   *) ac_try_echo=$ac_try;;
7339 esac
7340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7341 $as_echo "$ac_try_echo") >&5
7342   (eval "$ac_compile") 2>conftest.er1
7343   ac_status=$?
7344   grep -v '^ *+' conftest.er1 >conftest.err
7345   rm -f conftest.er1
7346   cat conftest.err >&5
7347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } && {
7349          test -z "$ac_c_werror_flag" ||
7350          test ! -s conftest.err
7351        } && test -s conftest.$ac_objext; then
7352   cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h.  */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h.  */
7358 $ac_includes_default
7359 int
7360 main ()
7361 {
7362 if (sizeof ((_Bool)))
7363           return 0;
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (ac_try="$ac_compile"
7370 case "(($ac_try" in
7371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372   *) ac_try_echo=$ac_try;;
7373 esac
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376   (eval "$ac_compile") 2>conftest.er1
7377   ac_status=$?
7378   grep -v '^ *+' conftest.er1 >conftest.err
7379   rm -f conftest.er1
7380   cat conftest.err >&5
7381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); } && {
7383          test -z "$ac_c_werror_flag" ||
7384          test ! -s conftest.err
7385        } && test -s conftest.$ac_objext; then
7386   :
7387 else
7388   $as_echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391         ac_cv_type__Bool=yes
7392 fi
7393
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 else
7396   $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399
7400 fi
7401
7402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 fi
7404 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7405 $as_echo "$ac_cv_type__Bool" >&6; }
7406 if test "x$ac_cv_type__Bool" = x""yes; then
7407
7408 cat >>confdefs.h <<_ACEOF
7409 #define HAVE__BOOL 1
7410 _ACEOF
7411
7412
7413 fi
7414
7415 if test $ac_cv_header_stdbool_h = yes; then
7416
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_STDBOOL_H 1
7419 _ACEOF
7420
7421 fi
7422
7423 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7424 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7425 if test "${ac_cv_c_const+set}" = set; then
7426   $as_echo_n "(cached) " >&6
7427 else
7428   cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434
7435 int
7436 main ()
7437 {
7438 /* FIXME: Include the comments suggested by Paul. */
7439 #ifndef __cplusplus
7440   /* Ultrix mips cc rejects this.  */
7441   typedef int charset[2];
7442   const charset cs;
7443   /* SunOS 4.1.1 cc rejects this.  */
7444   char const *const *pcpcc;
7445   char **ppc;
7446   /* NEC SVR4.0.2 mips cc rejects this.  */
7447   struct point {int x, y;};
7448   static struct point const zero = {0,0};
7449   /* AIX XL C 1.02.0.0 rejects this.
7450      It does not let you subtract one const X* pointer from another in
7451      an arm of an if-expression whose if-part is not a constant
7452      expression */
7453   const char *g = "string";
7454   pcpcc = &g + (g ? g-g : 0);
7455   /* HPUX 7.0 cc rejects these. */
7456   ++pcpcc;
7457   ppc = (char**) pcpcc;
7458   pcpcc = (char const *const *) ppc;
7459   { /* SCO 3.2v4 cc rejects this.  */
7460     char *t;
7461     char const *s = 0 ? (char *) 0 : (char const *) 0;
7462
7463     *t++ = 0;
7464     if (s) return 0;
7465   }
7466   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7467     int x[] = {25, 17};
7468     const int *foo = &x[0];
7469     ++foo;
7470   }
7471   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7472     typedef const int *iptr;
7473     iptr p = 0;
7474     ++p;
7475   }
7476   { /* AIX XL C 1.02.0.0 rejects this saying
7477        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7478     struct s { int j; const int *ap[3]; };
7479     struct s *b; b->j = 5;
7480   }
7481   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7482     const int foo = 10;
7483     if (!foo) return 0;
7484   }
7485   return !cs[0] && !zero.x;
7486 #endif
7487
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7499 $as_echo "$ac_try_echo") >&5
7500   (eval "$ac_compile") 2>conftest.er1
7501   ac_status=$?
7502   grep -v '^ *+' conftest.er1 >conftest.err
7503   rm -f conftest.er1
7504   cat conftest.err >&5
7505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } && {
7507          test -z "$ac_c_werror_flag" ||
7508          test ! -s conftest.err
7509        } && test -s conftest.$ac_objext; then
7510   ac_cv_c_const=yes
7511 else
7512   $as_echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515         ac_cv_c_const=no
7516 fi
7517
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 fi
7520 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7521 $as_echo "$ac_cv_c_const" >&6; }
7522 if test $ac_cv_c_const = no; then
7523
7524 cat >>confdefs.h <<\_ACEOF
7525 #define const /**/
7526 _ACEOF
7527
7528 fi
7529
7530 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7531 $as_echo_n "checking for inline... " >&6; }
7532 if test "${ac_cv_c_inline+set}" = set; then
7533   $as_echo_n "(cached) " >&6
7534 else
7535   ac_cv_c_inline=no
7536 for ac_kw in inline __inline__ __inline; do
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 #ifndef __cplusplus
7544 typedef int foo_t;
7545 static $ac_kw foo_t static_foo () {return 0; }
7546 $ac_kw foo_t foo () {return 0; }
7547 #endif
7548
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554   *) ac_try_echo=$ac_try;;
7555 esac
7556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7557 $as_echo "$ac_try_echo") >&5
7558   (eval "$ac_compile") 2>conftest.er1
7559   ac_status=$?
7560   grep -v '^ *+' conftest.er1 >conftest.err
7561   rm -f conftest.er1
7562   cat conftest.err >&5
7563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); } && {
7565          test -z "$ac_c_werror_flag" ||
7566          test ! -s conftest.err
7567        } && test -s conftest.$ac_objext; then
7568   ac_cv_c_inline=$ac_kw
7569 else
7570   $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573
7574 fi
7575
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577   test "$ac_cv_c_inline" != no && break
7578 done
7579
7580 fi
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7582 $as_echo "$ac_cv_c_inline" >&6; }
7583
7584
7585 case $ac_cv_c_inline in
7586   inline | yes) ;;
7587   *)
7588     case $ac_cv_c_inline in
7589       no) ac_val=;;
7590       *) ac_val=$ac_cv_c_inline;;
7591     esac
7592     cat >>confdefs.h <<_ACEOF
7593 #ifndef __cplusplus
7594 #define inline $ac_val
7595 #endif
7596 _ACEOF
7597     ;;
7598 esac
7599
7600 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7601 $as_echo_n "checking for pid_t... " >&6; }
7602 if test "${ac_cv_type_pid_t+set}" = set; then
7603   $as_echo_n "(cached) " >&6
7604 else
7605   ac_cv_type_pid_t=no
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613 int
7614 main ()
7615 {
7616 if (sizeof (pid_t))
7617        return 0;
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7629 $as_echo "$ac_try_echo") >&5
7630   (eval "$ac_compile") 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } && {
7637          test -z "$ac_c_werror_flag" ||
7638          test ! -s conftest.err
7639        } && test -s conftest.$ac_objext; then
7640   cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 $ac_includes_default
7647 int
7648 main ()
7649 {
7650 if (sizeof ((pid_t)))
7651           return 0;
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660   *) ac_try_echo=$ac_try;;
7661 esac
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664   (eval "$ac_compile") 2>conftest.er1
7665   ac_status=$?
7666   grep -v '^ *+' conftest.er1 >conftest.err
7667   rm -f conftest.er1
7668   cat conftest.err >&5
7669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } && {
7671          test -z "$ac_c_werror_flag" ||
7672          test ! -s conftest.err
7673        } && test -s conftest.$ac_objext; then
7674   :
7675 else
7676   $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679         ac_cv_type_pid_t=yes
7680 fi
7681
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 else
7684   $as_echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687
7688 fi
7689
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 fi
7692 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7693 $as_echo "$ac_cv_type_pid_t" >&6; }
7694 if test "x$ac_cv_type_pid_t" = x""yes; then
7695   :
7696 else
7697
7698 cat >>confdefs.h <<_ACEOF
7699 #define pid_t int
7700 _ACEOF
7701
7702 fi
7703
7704 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7705 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7706 if test "${ac_cv_header_time+set}" = set; then
7707   $as_echo_n "(cached) " >&6
7708 else
7709   cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 #include <sys/types.h>
7716 #include <sys/time.h>
7717 #include <time.h>
7718
7719 int
7720 main ()
7721 {
7722 if ((struct tm *) 0)
7723 return 0;
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736   (eval "$ac_compile") 2>conftest.er1
7737   ac_status=$?
7738   grep -v '^ *+' conftest.er1 >conftest.err
7739   rm -f conftest.er1
7740   cat conftest.err >&5
7741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } && {
7743          test -z "$ac_c_werror_flag" ||
7744          test ! -s conftest.err
7745        } && test -s conftest.$ac_objext; then
7746   ac_cv_header_time=yes
7747 else
7748   $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751         ac_cv_header_time=no
7752 fi
7753
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 fi
7756 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7757 $as_echo "$ac_cv_header_time" >&6; }
7758 if test $ac_cv_header_time = yes; then
7759
7760 cat >>confdefs.h <<\_ACEOF
7761 #define TIME_WITH_SYS_TIME 1
7762 _ACEOF
7763
7764 fi
7765
7766 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7768 if test "${ac_cv_struct_tm+set}" = set; then
7769   $as_echo_n "(cached) " >&6
7770 else
7771   cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h.  */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h.  */
7777 #include <sys/types.h>
7778 #include <time.h>
7779
7780 int
7781 main ()
7782 {
7783 struct tm tm;
7784                                      int *p = &tm.tm_sec;
7785                                      return !p;
7786   ;
7787   return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798   (eval "$ac_compile") 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } && {
7805          test -z "$ac_c_werror_flag" ||
7806          test ! -s conftest.err
7807        } && test -s conftest.$ac_objext; then
7808   ac_cv_struct_tm=time.h
7809 else
7810   $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813         ac_cv_struct_tm=sys/time.h
7814 fi
7815
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7819 $as_echo "$ac_cv_struct_tm" >&6; }
7820 if test $ac_cv_struct_tm = sys/time.h; then
7821
7822 cat >>confdefs.h <<\_ACEOF
7823 #define TM_IN_SYS_TIME 1
7824 _ACEOF
7825
7826 fi
7827
7828
7829 # Checks for library functions.
7830
7831 for ac_header in vfork.h
7832 do
7833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7836 $as_echo_n "checking for $ac_header... " >&6; }
7837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7838   $as_echo_n "(cached) " >&6
7839 fi
7840 ac_res=`eval 'as_val=${'$as_ac_Header'}
7841                  $as_echo "$as_val"'`
7842                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7843 $as_echo "$ac_res" >&6; }
7844 else
7845   # Is the header compilable?
7846 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847 $as_echo_n "checking $ac_header usability... " >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854 $ac_includes_default
7855 #include <$ac_header>
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861   *) ac_try_echo=$ac_try;;
7862 esac
7863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864 $as_echo "$ac_try_echo") >&5
7865   (eval "$ac_compile") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } && {
7872          test -z "$ac_c_werror_flag" ||
7873          test ! -s conftest.err
7874        } && test -s conftest.$ac_objext; then
7875   ac_header_compiler=yes
7876 else
7877   $as_echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880         ac_header_compiler=no
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7885 $as_echo "$ac_header_compiler" >&6; }
7886
7887 # Is the header present?
7888 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7889 $as_echo_n "checking $ac_header presence... " >&6; }
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <$ac_header>
7897 _ACEOF
7898 if { (ac_try="$ac_cpp conftest.$ac_ext"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } >/dev/null && {
7912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7913          test ! -s conftest.err
7914        }; then
7915   ac_header_preproc=yes
7916 else
7917   $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920   ac_header_preproc=no
7921 fi
7922
7923 rm -f conftest.err conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7925 $as_echo "$ac_header_preproc" >&6; }
7926
7927 # So?  What about this header?
7928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7929   yes:no: )
7930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7931 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7934     ac_header_preproc=yes
7935     ;;
7936   no:yes:* )
7937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7938 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7940 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7942 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7944 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7948 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7949     ( cat <<\_ASBOX
7950 ## ----------------------------------- ##
7951 ## Report this to andreas@eversberg.eu ##
7952 ## ----------------------------------- ##
7953 _ASBOX
7954      ) | sed "s/^/$as_me: WARNING:     /" >&2
7955     ;;
7956 esac
7957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 $as_echo_n "checking for $ac_header... " >&6; }
7959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960   $as_echo_n "(cached) " >&6
7961 else
7962   eval "$as_ac_Header=\$ac_header_preproc"
7963 fi
7964 ac_res=`eval 'as_val=${'$as_ac_Header'}
7965                  $as_echo "$as_val"'`
7966                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7967 $as_echo "$ac_res" >&6; }
7968
7969 fi
7970 as_val=`eval 'as_val=${'$as_ac_Header'}
7971                  $as_echo "$as_val"'`
7972    if test "x$as_val" = x""yes; then
7973   cat >>confdefs.h <<_ACEOF
7974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975 _ACEOF
7976
7977 fi
7978
7979 done
7980
7981
7982
7983 for ac_func in fork vfork
7984 do
7985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7986 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7987 $as_echo_n "checking for $ac_func... " >&6; }
7988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7989   $as_echo_n "(cached) " >&6
7990 else
7991   cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7999 #define $ac_func innocuous_$ac_func
8000
8001 /* System header to define __stub macros and hopefully few prototypes,
8002     which can conflict with char $ac_func (); below.
8003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8004     <limits.h> exists even on freestanding compilers.  */
8005
8006 #ifdef __STDC__
8007 # include <limits.h>
8008 #else
8009 # include <assert.h>
8010 #endif
8011
8012 #undef $ac_func
8013
8014 /* Override any GCC internal prototype to avoid an error.
8015    Use char because int might match the return type of a GCC
8016    builtin and then its argument prototype would still apply.  */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 char $ac_func ();
8021 /* The GNU C library defines this for functions which it implements
8022     to always fail with ENOSYS.  Some functions are actually named
8023     something starting with __ and the normal name is an alias.  */
8024 #if defined __stub_$ac_func || defined __stub___$ac_func
8025 choke me
8026 #endif
8027
8028 int
8029 main ()
8030 {
8031 return $ac_func ();
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8038 case "(($ac_try" in
8039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040   *) ac_try_echo=$ac_try;;
8041 esac
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044   (eval "$ac_link") 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } && {
8051          test -z "$ac_c_werror_flag" ||
8052          test ! -s conftest.err
8053        } && test -s conftest$ac_exeext && {
8054          test "$cross_compiling" = yes ||
8055          $as_test_x conftest$ac_exeext
8056        }; then
8057   eval "$as_ac_var=yes"
8058 else
8059   $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062         eval "$as_ac_var=no"
8063 fi
8064
8065 rm -rf conftest.dSYM
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067       conftest$ac_exeext conftest.$ac_ext
8068 fi
8069 ac_res=`eval 'as_val=${'$as_ac_var'}
8070                  $as_echo "$as_val"'`
8071                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8072 $as_echo "$ac_res" >&6; }
8073 as_val=`eval 'as_val=${'$as_ac_var'}
8074                  $as_echo "$as_val"'`
8075    if test "x$as_val" = x""yes; then
8076   cat >>confdefs.h <<_ACEOF
8077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078 _ACEOF
8079
8080 fi
8081 done
8082
8083 if test "x$ac_cv_func_fork" = xyes; then
8084   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8085 $as_echo_n "checking for working fork... " >&6; }
8086 if test "${ac_cv_func_fork_works+set}" = set; then
8087   $as_echo_n "(cached) " >&6
8088 else
8089   if test "$cross_compiling" = yes; then
8090   ac_cv_func_fork_works=cross
8091 else
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 $ac_includes_default
8099 int
8100 main ()
8101 {
8102
8103           /* By Ruediger Kuhlmann. */
8104           return fork () < 0;
8105
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 rm -f conftest$ac_exeext
8111 if { (ac_try="$ac_link"
8112 case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8117 $as_echo "$ac_try_echo") >&5
8118   (eval "$ac_link") 2>&5
8119   ac_status=$?
8120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128   (eval "$ac_try") 2>&5
8129   ac_status=$?
8130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_cv_func_fork_works=yes
8133 else
8134   $as_echo "$as_me: program exited with status $ac_status" >&5
8135 $as_echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 ( exit $ac_status )
8139 ac_cv_func_fork_works=no
8140 fi
8141 rm -rf conftest.dSYM
8142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8143 fi
8144
8145
8146 fi
8147 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8148 $as_echo "$ac_cv_func_fork_works" >&6; }
8149
8150 else
8151   ac_cv_func_fork_works=$ac_cv_func_fork
8152 fi
8153 if test "x$ac_cv_func_fork_works" = xcross; then
8154   case $host in
8155     *-*-amigaos* | *-*-msdosdjgpp*)
8156       # Override, as these systems have only a dummy fork() stub
8157       ac_cv_func_fork_works=no
8158       ;;
8159     *)
8160       ac_cv_func_fork_works=yes
8161       ;;
8162   esac
8163   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8164 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8165 fi
8166 ac_cv_func_vfork_works=$ac_cv_func_vfork
8167 if test "x$ac_cv_func_vfork" = xyes; then
8168   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8169 $as_echo_n "checking for working vfork... " >&6; }
8170 if test "${ac_cv_func_vfork_works+set}" = set; then
8171   $as_echo_n "(cached) " >&6
8172 else
8173   if test "$cross_compiling" = yes; then
8174   ac_cv_func_vfork_works=cross
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 /* Thanks to Paul Eggert for this test.  */
8183 $ac_includes_default
8184 #include <sys/wait.h>
8185 #ifdef HAVE_VFORK_H
8186 # include <vfork.h>
8187 #endif
8188 /* On some sparc systems, changes by the child to local and incoming
8189    argument registers are propagated back to the parent.  The compiler
8190    is told about this with #include <vfork.h>, but some compilers
8191    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8192    static variable whose address is put into a register that is
8193    clobbered by the vfork.  */
8194 static void
8195 #ifdef __cplusplus
8196 sparc_address_test (int arg)
8197 # else
8198 sparc_address_test (arg) int arg;
8199 #endif
8200 {
8201   static pid_t child;
8202   if (!child) {
8203     child = vfork ();
8204     if (child < 0) {
8205       perror ("vfork");
8206       _exit(2);
8207     }
8208     if (!child) {
8209       arg = getpid();
8210       write(-1, "", 0);
8211       _exit (arg);
8212     }
8213   }
8214 }
8215
8216 int
8217 main ()
8218 {
8219   pid_t parent = getpid ();
8220   pid_t child;
8221
8222   sparc_address_test (0);
8223
8224   child = vfork ();
8225
8226   if (child == 0) {
8227     /* Here is another test for sparc vfork register problems.  This
8228        test uses lots of local variables, at least as many local
8229        variables as main has allocated so far including compiler
8230        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8231        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8232        reuse the register of parent for one of the local variables,
8233        since it will think that parent can't possibly be used any more
8234        in this routine.  Assigning to the local variable will thus
8235        munge parent in the parent process.  */
8236     pid_t
8237       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8238       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8239     /* Convince the compiler that p..p7 are live; otherwise, it might
8240        use the same hardware register for all 8 local variables.  */
8241     if (p != p1 || p != p2 || p != p3 || p != p4
8242         || p != p5 || p != p6 || p != p7)
8243       _exit(1);
8244
8245     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8246        from child file descriptors.  If the child closes a descriptor
8247        before it execs or exits, this munges the parent's descriptor
8248        as well.  Test for this by closing stdout in the child.  */
8249     _exit(close(fileno(stdout)) != 0);
8250   } else {
8251     int status;
8252     struct stat st;
8253
8254     while (wait(&status) != child)
8255       ;
8256     return (
8257          /* Was there some problem with vforking?  */
8258          child < 0
8259
8260          /* Did the child fail?  (This shouldn't happen.)  */
8261          || status
8262
8263          /* Did the vfork/compiler bug occur?  */
8264          || parent != getpid()
8265
8266          /* Did the file descriptor bug occur?  */
8267          || fstat(fileno(stdout), &st) != 0
8268          );
8269   }
8270 }
8271 _ACEOF
8272 rm -f conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8274 case "(($ac_try" in
8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276   *) ac_try_echo=$ac_try;;
8277 esac
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280   (eval "$ac_link") 2>&5
8281   ac_status=$?
8282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8284   { (case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290   (eval "$ac_try") 2>&5
8291   ac_status=$?
8292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; }; then
8294   ac_cv_func_vfork_works=yes
8295 else
8296   $as_echo "$as_me: program exited with status $ac_status" >&5
8297 $as_echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ( exit $ac_status )
8301 ac_cv_func_vfork_works=no
8302 fi
8303 rm -rf conftest.dSYM
8304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8305 fi
8306
8307
8308 fi
8309 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8310 $as_echo "$ac_cv_func_vfork_works" >&6; }
8311
8312 fi;
8313 if test "x$ac_cv_func_fork_works" = xcross; then
8314   ac_cv_func_vfork_works=$ac_cv_func_vfork
8315   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8316 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8317 fi
8318
8319 if test "x$ac_cv_func_vfork_works" = xyes; then
8320
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_WORKING_VFORK 1
8323 _ACEOF
8324
8325 else
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define vfork fork
8329 _ACEOF
8330
8331 fi
8332 if test "x$ac_cv_func_fork_works" = xyes; then
8333
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_WORKING_FORK 1
8336 _ACEOF
8337
8338 fi
8339
8340 if test $ac_cv_c_compiler_gnu = yes; then
8341     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8342 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8343 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8344   $as_echo_n "(cached) " >&6
8345 else
8346     ac_pattern="Autoconf.*'x'"
8347   cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 #include <sgtty.h>
8354 Autoconf TIOCGETP
8355 _ACEOF
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8358   ac_cv_prog_gcc_traditional=yes
8359 else
8360   ac_cv_prog_gcc_traditional=no
8361 fi
8362 rm -f conftest*
8363
8364
8365   if test $ac_cv_prog_gcc_traditional = no; then
8366     cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372 #include <termio.h>
8373 Autoconf TCGETA
8374 _ACEOF
8375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8376   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8377   ac_cv_prog_gcc_traditional=yes
8378 fi
8379 rm -f conftest*
8380
8381   fi
8382 fi
8383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8384 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8385   if test $ac_cv_prog_gcc_traditional = yes; then
8386     CC="$CC -traditional"
8387   fi
8388 fi
8389
8390 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8391 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8392 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8393   $as_echo_n "(cached) " >&6
8394 else
8395   rm -f conftest.sym conftest.file
8396 echo >conftest.file
8397 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8398   if test "$cross_compiling" = yes; then
8399   ac_cv_func_lstat_dereferences_slashed_symlink=no
8400 else
8401   cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h.  */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h.  */
8407 $ac_includes_default
8408 int
8409 main ()
8410 {
8411 struct stat sbuf;
8412      /* Linux will dereference the symlink and fail.
8413         That is better in the sense that it means we will not
8414         have to compile and use the lstat wrapper.  */
8415      return lstat ("conftest.sym/", &sbuf) == 0;
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428   (eval "$ac_link") 2>&5
8429   ac_status=$?
8430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8443 else
8444   $as_echo "$as_me: program exited with status $ac_status" >&5
8445 $as_echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ( exit $ac_status )
8449 ac_cv_func_lstat_dereferences_slashed_symlink=no
8450 fi
8451 rm -rf conftest.dSYM
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8453 fi
8454
8455
8456 else
8457   # If the `ln -s' command failed, then we probably don't even
8458   # have an lstat function.
8459   ac_cv_func_lstat_dereferences_slashed_symlink=no
8460 fi
8461 rm -f conftest.sym conftest.file
8462
8463 fi
8464 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8465 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8466
8467 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8468
8469 cat >>confdefs.h <<_ACEOF
8470 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8471 _ACEOF
8472
8473
8474 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8475   case " $LIBOBJS " in
8476   *" lstat.$ac_objext "* ) ;;
8477   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8478  ;;
8479 esac
8480
8481 fi
8482
8483 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8484 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8485 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if test "$cross_compiling" = yes; then
8489   ac_cv_func_lstat_empty_string_bug=yes
8490 else
8491   cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497 $ac_includes_default
8498 int
8499 main ()
8500 {
8501 struct stat sbuf;
8502   return lstat ("", &sbuf) == 0;
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest$ac_exeext
8508 if { (ac_try="$ac_link"
8509 case "(($ac_try" in
8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511   *) ac_try_echo=$ac_try;;
8512 esac
8513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8514 $as_echo "$ac_try_echo") >&5
8515   (eval "$ac_link") 2>&5
8516   ac_status=$?
8517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8519   { (case "(($ac_try" in
8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521   *) ac_try_echo=$ac_try;;
8522 esac
8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525   (eval "$ac_try") 2>&5
8526   ac_status=$?
8527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_cv_func_lstat_empty_string_bug=no
8530 else
8531   $as_echo "$as_me: program exited with status $ac_status" >&5
8532 $as_echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 ( exit $ac_status )
8536 ac_cv_func_lstat_empty_string_bug=yes
8537 fi
8538 rm -rf conftest.dSYM
8539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8540 fi
8541
8542
8543 fi
8544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8545 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8546 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8547   case " $LIBOBJS " in
8548   *" lstat.$ac_objext "* ) ;;
8549   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8550  ;;
8551 esac
8552
8553
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8556 _ACEOF
8557
8558 fi
8559
8560 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8561 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8562 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8563   $as_echo_n "(cached) " >&6
8564 else
8565   rm -f conftest.sym conftest.file
8566 echo >conftest.file
8567 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8568   if test "$cross_compiling" = yes; then
8569   ac_cv_func_lstat_dereferences_slashed_symlink=no
8570 else
8571   cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h.  */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h.  */
8577 $ac_includes_default
8578 int
8579 main ()
8580 {
8581 struct stat sbuf;
8582      /* Linux will dereference the symlink and fail.
8583         That is better in the sense that it means we will not
8584         have to compile and use the lstat wrapper.  */
8585      return lstat ("conftest.sym/", &sbuf) == 0;
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest$ac_exeext
8591 if { (ac_try="$ac_link"
8592 case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598   (eval "$ac_link") 2>&5
8599   ac_status=$?
8600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608   (eval "$ac_try") 2>&5
8609   ac_status=$?
8610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8613 else
8614   $as_echo "$as_me: program exited with status $ac_status" >&5
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ( exit $ac_status )
8619 ac_cv_func_lstat_dereferences_slashed_symlink=no
8620 fi
8621 rm -rf conftest.dSYM
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8623 fi
8624
8625
8626 else
8627   # If the `ln -s' command failed, then we probably don't even
8628   # have an lstat function.
8629   ac_cv_func_lstat_dereferences_slashed_symlink=no
8630 fi
8631 rm -f conftest.sym conftest.file
8632
8633 fi
8634 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8635 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8636
8637 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8638
8639 cat >>confdefs.h <<_ACEOF
8640 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8641 _ACEOF
8642
8643
8644 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8645   case " $LIBOBJS " in
8646   *" lstat.$ac_objext "* ) ;;
8647   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8648  ;;
8649 esac
8650
8651 fi
8652
8653
8654 for ac_header in stdlib.h
8655 do
8656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 $as_echo_n "checking for $ac_header... " >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661   $as_echo_n "(cached) " >&6
8662 fi
8663 ac_res=`eval 'as_val=${'$as_ac_Header'}
8664                  $as_echo "$as_val"'`
8665                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8666 $as_echo "$ac_res" >&6; }
8667 else
8668   # Is the header compilable?
8669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 $as_echo_n "checking $ac_header usability... " >&6; }
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 $ac_includes_default
8678 #include <$ac_header>
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684   *) ac_try_echo=$ac_try;;
8685 esac
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688   (eval "$ac_compile") 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } && {
8695          test -z "$ac_c_werror_flag" ||
8696          test ! -s conftest.err
8697        } && test -s conftest.$ac_objext; then
8698   ac_header_compiler=yes
8699 else
8700   $as_echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703         ac_header_compiler=no
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708 $as_echo "$ac_header_compiler" >&6; }
8709
8710 # Is the header present?
8711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712 $as_echo_n "checking $ac_header presence... " >&6; }
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 #include <$ac_header>
8720 _ACEOF
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8722 case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727 $as_echo "$ac_try_echo") >&5
8728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8729   ac_status=$?
8730   grep -v '^ *+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } >/dev/null && {
8735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8736          test ! -s conftest.err
8737        }; then
8738   ac_header_preproc=yes
8739 else
8740   $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743   ac_header_preproc=no
8744 fi
8745
8746 rm -f conftest.err conftest.$ac_ext
8747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 $as_echo "$ac_header_preproc" >&6; }
8749
8750 # So?  What about this header?
8751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8752   yes:no: )
8753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757     ac_header_preproc=yes
8758     ;;
8759   no:yes:* )
8760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8763 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8767 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8772     ( cat <<\_ASBOX
8773 ## ----------------------------------- ##
8774 ## Report this to andreas@eversberg.eu ##
8775 ## ----------------------------------- ##
8776 _ASBOX
8777      ) | sed "s/^/$as_me: WARNING:     /" >&2
8778     ;;
8779 esac
8780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 $as_echo_n "checking for $ac_header... " >&6; }
8782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8783   $as_echo_n "(cached) " >&6
8784 else
8785   eval "$as_ac_Header=\$ac_header_preproc"
8786 fi
8787 ac_res=`eval 'as_val=${'$as_ac_Header'}
8788                  $as_echo "$as_val"'`
8789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8790 $as_echo "$ac_res" >&6; }
8791
8792 fi
8793 as_val=`eval 'as_val=${'$as_ac_Header'}
8794                  $as_echo "$as_val"'`
8795    if test "x$as_val" = x""yes; then
8796   cat >>confdefs.h <<_ACEOF
8797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8805 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8806 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8807   $as_echo_n "(cached) " >&6
8808 else
8809   if test "$cross_compiling" = yes; then
8810   ac_cv_func_malloc_0_nonnull=no
8811 else
8812   cat >conftest.$ac_ext <<_ACEOF
8813 /* confdefs.h.  */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h.  */
8818 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8819 # include <stdlib.h>
8820 #else
8821 char *malloc ();
8822 #endif
8823
8824 int
8825 main ()
8826 {
8827 return ! malloc (0);
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest$ac_exeext
8833 if { (ac_try="$ac_link"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8839 $as_echo "$ac_try_echo") >&5
8840   (eval "$ac_link") 2>&5
8841   ac_status=$?
8842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8844   { (case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850   (eval "$ac_try") 2>&5
8851   ac_status=$?
8852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_cv_func_malloc_0_nonnull=yes
8855 else
8856   $as_echo "$as_me: program exited with status $ac_status" >&5
8857 $as_echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ( exit $ac_status )
8861 ac_cv_func_malloc_0_nonnull=no
8862 fi
8863 rm -rf conftest.dSYM
8864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8865 fi
8866
8867
8868 fi
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8870 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8871 if test $ac_cv_func_malloc_0_nonnull = yes; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_MALLOC 1
8875 _ACEOF
8876
8877 else
8878   cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_MALLOC 0
8880 _ACEOF
8881
8882    case " $LIBOBJS " in
8883   *" malloc.$ac_objext "* ) ;;
8884   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8885  ;;
8886 esac
8887
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define malloc rpl_malloc
8891 _ACEOF
8892
8893 fi
8894
8895
8896
8897 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8898 $as_echo_n "checking for working memcmp... " >&6; }
8899 if test "${ac_cv_func_memcmp_working+set}" = set; then
8900   $as_echo_n "(cached) " >&6
8901 else
8902   if test "$cross_compiling" = yes; then
8903   ac_cv_func_memcmp_working=no
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 $ac_includes_default
8912 int
8913 main ()
8914 {
8915
8916   /* Some versions of memcmp are not 8-bit clean.  */
8917   char c0 = '\100', c1 = '\200', c2 = '\201';
8918   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8919     return 1;
8920
8921   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8922      or more and with at least one buffer not starting on a 4-byte boundary.
8923      William Lewis provided this test program.   */
8924   {
8925     char foo[21];
8926     char bar[21];
8927     int i;
8928     for (i = 0; i < 4; i++)
8929       {
8930         char *a = foo + i;
8931         char *b = bar + i;
8932         strcpy (a, "--------01111111");
8933         strcpy (b, "--------10000000");
8934         if (memcmp (a, b, 16) >= 0)
8935           return 1;
8936       }
8937     return 0;
8938   }
8939
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest$ac_exeext
8945 if { (ac_try="$ac_link"
8946 case "(($ac_try" in
8947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948   *) ac_try_echo=$ac_try;;
8949 esac
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952   (eval "$ac_link") 2>&5
8953   ac_status=$?
8954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8956   { (case "(($ac_try" in
8957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958   *) ac_try_echo=$ac_try;;
8959 esac
8960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961 $as_echo "$ac_try_echo") >&5
8962   (eval "$ac_try") 2>&5
8963   ac_status=$?
8964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   ac_cv_func_memcmp_working=yes
8967 else
8968   $as_echo "$as_me: program exited with status $ac_status" >&5
8969 $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ( exit $ac_status )
8973 ac_cv_func_memcmp_working=no
8974 fi
8975 rm -rf conftest.dSYM
8976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8977 fi
8978
8979
8980 fi
8981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8982 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8983 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8984   *" memcmp.$ac_objext "* ) ;;
8985   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8986  ;;
8987 esac
8988
8989
8990 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8991 $as_echo_n "checking return type of signal handlers... " >&6; }
8992 if test "${ac_cv_type_signal+set}" = set; then
8993   $as_echo_n "(cached) " >&6
8994 else
8995   cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 #include <sys/types.h>
9002 #include <signal.h>
9003
9004 int
9005 main ()
9006 {
9007 return *(signal (0, 0)) (0) == 1;
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (ac_try="$ac_compile"
9014 case "(($ac_try" in
9015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016   *) ac_try_echo=$ac_try;;
9017 esac
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020   (eval "$ac_compile") 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } && {
9027          test -z "$ac_c_werror_flag" ||
9028          test ! -s conftest.err
9029        } && test -s conftest.$ac_objext; then
9030   ac_cv_type_signal=int
9031 else
9032   $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035         ac_cv_type_signal=void
9036 fi
9037
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 fi
9040 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9041 $as_echo "$ac_cv_type_signal" >&6; }
9042
9043 cat >>confdefs.h <<_ACEOF
9044 #define RETSIGTYPE $ac_cv_type_signal
9045 _ACEOF
9046
9047
9048 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9049 $as_echo_n "checking for working strnlen... " >&6; }
9050 if test "${ac_cv_func_strnlen_working+set}" = set; then
9051   $as_echo_n "(cached) " >&6
9052 else
9053   if test "$cross_compiling" = yes; then
9054   ac_cv_func_strnlen_working=no
9055 else
9056   cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h.  */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h.  */
9062 $ac_includes_default
9063 int
9064 main ()
9065 {
9066
9067 #define S "foobar"
9068 #define S_LEN (sizeof S - 1)
9069
9070   /* At least one implementation is buggy: that of AIX 4.3 would
9071      give strnlen (S, 1) == 3.  */
9072
9073   int i;
9074   for (i = 0; i < S_LEN + 1; ++i)
9075     {
9076       int expected = i <= S_LEN ? i : S_LEN;
9077       if (strnlen (S, i) != expected)
9078         return 1;
9079     }
9080   return 0;
9081
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 rm -f conftest$ac_exeext
9087 if { (ac_try="$ac_link"
9088 case "(($ac_try" in
9089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090   *) ac_try_echo=$ac_try;;
9091 esac
9092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9093 $as_echo "$ac_try_echo") >&5
9094   (eval "$ac_link") 2>&5
9095   ac_status=$?
9096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9098   { (case "(($ac_try" in
9099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100   *) ac_try_echo=$ac_try;;
9101 esac
9102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9103 $as_echo "$ac_try_echo") >&5
9104   (eval "$ac_try") 2>&5
9105   ac_status=$?
9106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   ac_cv_func_strnlen_working=yes
9109 else
9110   $as_echo "$as_me: program exited with status $ac_status" >&5
9111 $as_echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ( exit $ac_status )
9115 ac_cv_func_strnlen_working=no
9116 fi
9117 rm -rf conftest.dSYM
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9119 fi
9120
9121
9122 fi
9123 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9124 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9125 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9126   *" strnlen.$ac_objext "* ) ;;
9127   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9128  ;;
9129 esac
9130
9131
9132 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9133 $as_echo_n "checking for working strtod... " >&6; }
9134 if test "${ac_cv_func_strtod+set}" = set; then
9135   $as_echo_n "(cached) " >&6
9136 else
9137   if test "$cross_compiling" = yes; then
9138   ac_cv_func_strtod=no
9139 else
9140   cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146
9147 $ac_includes_default
9148 #ifndef strtod
9149 double strtod ();
9150 #endif
9151 int
9152 main()
9153 {
9154   {
9155     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9156     char *string = " +69";
9157     char *term;
9158     double value;
9159     value = strtod (string, &term);
9160     if (value != 69 || term != (string + 4))
9161       return 1;
9162   }
9163
9164   {
9165     /* Under Solaris 2.4, strtod returns the wrong value for the
9166        terminating character under some conditions.  */
9167     char *string = "NaN";
9168     char *term;
9169     strtod (string, &term);
9170     if (term != string && *(term - 1) == 0)
9171       return 1;
9172   }
9173   return 0;
9174 }
9175
9176 _ACEOF
9177 rm -f conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185   (eval "$ac_link") 2>&5
9186   ac_status=$?
9187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189   { (case "(($ac_try" in
9190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191   *) ac_try_echo=$ac_try;;
9192 esac
9193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194 $as_echo "$ac_try_echo") >&5
9195   (eval "$ac_try") 2>&5
9196   ac_status=$?
9197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_func_strtod=yes
9200 else
9201   $as_echo "$as_me: program exited with status $ac_status" >&5
9202 $as_echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ( exit $ac_status )
9206 ac_cv_func_strtod=no
9207 fi
9208 rm -rf conftest.dSYM
9209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9210 fi
9211
9212
9213 fi
9214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9215 $as_echo "$ac_cv_func_strtod" >&6; }
9216 if test $ac_cv_func_strtod = no; then
9217   case " $LIBOBJS " in
9218   *" strtod.$ac_objext "* ) ;;
9219   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9220  ;;
9221 esac
9222
9223 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9224 $as_echo_n "checking for pow... " >&6; }
9225 if test "${ac_cv_func_pow+set}" = set; then
9226   $as_echo_n "(cached) " >&6
9227 else
9228   cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9236 #define pow innocuous_pow
9237
9238 /* System header to define __stub macros and hopefully few prototypes,
9239     which can conflict with char pow (); below.
9240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9241     <limits.h> exists even on freestanding compilers.  */
9242
9243 #ifdef __STDC__
9244 # include <limits.h>
9245 #else
9246 # include <assert.h>
9247 #endif
9248
9249 #undef pow
9250
9251 /* Override any GCC internal prototype to avoid an error.
9252    Use char because int might match the return type of a GCC
9253    builtin and then its argument prototype would still apply.  */
9254 #ifdef __cplusplus
9255 extern "C"
9256 #endif
9257 char pow ();
9258 /* The GNU C library defines this for functions which it implements
9259     to always fail with ENOSYS.  Some functions are actually named
9260     something starting with __ and the normal name is an alias.  */
9261 #if defined __stub_pow || defined __stub___pow
9262 choke me
9263 #endif
9264
9265 int
9266 main ()
9267 {
9268 return pow ();
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9275 case "(($ac_try" in
9276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277   *) ac_try_echo=$ac_try;;
9278 esac
9279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9280 $as_echo "$ac_try_echo") >&5
9281   (eval "$ac_link") 2>conftest.er1
9282   ac_status=$?
9283   grep -v '^ *+' conftest.er1 >conftest.err
9284   rm -f conftest.er1
9285   cat conftest.err >&5
9286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } && {
9288          test -z "$ac_c_werror_flag" ||
9289          test ! -s conftest.err
9290        } && test -s conftest$ac_exeext && {
9291          test "$cross_compiling" = yes ||
9292          $as_test_x conftest$ac_exeext
9293        }; then
9294   ac_cv_func_pow=yes
9295 else
9296   $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299         ac_cv_func_pow=no
9300 fi
9301
9302 rm -rf conftest.dSYM
9303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304       conftest$ac_exeext conftest.$ac_ext
9305 fi
9306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9307 $as_echo "$ac_cv_func_pow" >&6; }
9308
9309 if test $ac_cv_func_pow = no; then
9310   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9311 $as_echo_n "checking for pow in -lm... " >&6; }
9312 if test "${ac_cv_lib_m_pow+set}" = set; then
9313   $as_echo_n "(cached) " >&6
9314 else
9315   ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-lm  $LIBS"
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323
9324 /* Override any GCC internal prototype to avoid an error.
9325    Use char because int might match the return type of a GCC
9326    builtin and then its argument prototype would still apply.  */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 char pow ();
9331 int
9332 main ()
9333 {
9334 return pow ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9341 case "(($ac_try" in
9342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343   *) ac_try_echo=$ac_try;;
9344 esac
9345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346 $as_echo "$ac_try_echo") >&5
9347   (eval "$ac_link") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest$ac_exeext && {
9357          test "$cross_compiling" = yes ||
9358          $as_test_x conftest$ac_exeext
9359        }; then
9360   ac_cv_lib_m_pow=yes
9361 else
9362   $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365         ac_cv_lib_m_pow=no
9366 fi
9367
9368 rm -rf conftest.dSYM
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370       conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9372 fi
9373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9374 $as_echo "$ac_cv_lib_m_pow" >&6; }
9375 if test "x$ac_cv_lib_m_pow" = x""yes; then
9376   POW_LIB=-lm
9377 else
9378   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9379 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9380 fi
9381
9382 fi
9383
9384 fi
9385
9386
9387 for ac_func in vprintf
9388 do
9389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9391 $as_echo_n "checking for $ac_func... " >&6; }
9392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9393   $as_echo_n "(cached) " >&6
9394 else
9395   cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9403 #define $ac_func innocuous_$ac_func
9404
9405 /* System header to define __stub macros and hopefully few prototypes,
9406     which can conflict with char $ac_func (); below.
9407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9408     <limits.h> exists even on freestanding compilers.  */
9409
9410 #ifdef __STDC__
9411 # include <limits.h>
9412 #else
9413 # include <assert.h>
9414 #endif
9415
9416 #undef $ac_func
9417
9418 /* Override any GCC internal prototype to avoid an error.
9419    Use char because int might match the return type of a GCC
9420    builtin and then its argument prototype would still apply.  */
9421 #ifdef __cplusplus
9422 extern "C"
9423 #endif
9424 char $ac_func ();
9425 /* The GNU C library defines this for functions which it implements
9426     to always fail with ENOSYS.  Some functions are actually named
9427     something starting with __ and the normal name is an alias.  */
9428 #if defined __stub_$ac_func || defined __stub___$ac_func
9429 choke me
9430 #endif
9431
9432 int
9433 main ()
9434 {
9435 return $ac_func ();
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448   (eval "$ac_link") 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } && {
9455          test -z "$ac_c_werror_flag" ||
9456          test ! -s conftest.err
9457        } && test -s conftest$ac_exeext && {
9458          test "$cross_compiling" = yes ||
9459          $as_test_x conftest$ac_exeext
9460        }; then
9461   eval "$as_ac_var=yes"
9462 else
9463   $as_echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466         eval "$as_ac_var=no"
9467 fi
9468
9469 rm -rf conftest.dSYM
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471       conftest$ac_exeext conftest.$ac_ext
9472 fi
9473 ac_res=`eval 'as_val=${'$as_ac_var'}
9474                  $as_echo "$as_val"'`
9475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9476 $as_echo "$ac_res" >&6; }
9477 as_val=`eval 'as_val=${'$as_ac_var'}
9478                  $as_echo "$as_val"'`
9479    if test "x$as_val" = x""yes; then
9480   cat >>confdefs.h <<_ACEOF
9481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9482 _ACEOF
9483
9484 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9485 $as_echo_n "checking for _doprnt... " >&6; }
9486 if test "${ac_cv_func__doprnt+set}" = set; then
9487   $as_echo_n "(cached) " >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497 #define _doprnt innocuous__doprnt
9498
9499 /* System header to define __stub macros and hopefully few prototypes,
9500     which can conflict with char _doprnt (); below.
9501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502     <limits.h> exists even on freestanding compilers.  */
9503
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9509
9510 #undef _doprnt
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513    Use char because int might match the return type of a GCC
9514    builtin and then its argument prototype would still apply.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char _doprnt ();
9519 /* The GNU C library defines this for functions which it implements
9520     to always fail with ENOSYS.  Some functions are actually named
9521     something starting with __ and the normal name is an alias.  */
9522 #if defined __stub__doprnt || defined __stub____doprnt
9523 choke me
9524 #endif
9525
9526 int
9527 main ()
9528 {
9529 return _doprnt ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538   *) ac_try_echo=$ac_try;;
9539 esac
9540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541 $as_echo "$ac_try_echo") >&5
9542   (eval "$ac_link") 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } && {
9549          test -z "$ac_c_werror_flag" ||
9550          test ! -s conftest.err
9551        } && test -s conftest$ac_exeext && {
9552          test "$cross_compiling" = yes ||
9553          $as_test_x conftest$ac_exeext
9554        }; then
9555   ac_cv_func__doprnt=yes
9556 else
9557   $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560         ac_cv_func__doprnt=no
9561 fi
9562
9563 rm -rf conftest.dSYM
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565       conftest$ac_exeext conftest.$ac_ext
9566 fi
9567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9568 $as_echo "$ac_cv_func__doprnt" >&6; }
9569 if test "x$ac_cv_func__doprnt" = x""yes; then
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_DOPRNT 1
9573 _ACEOF
9574
9575 fi
9576
9577 fi
9578 done
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9594 do
9595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 $as_echo_n "checking for $ac_func... " >&6; }
9598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9599   $as_echo_n "(cached) " >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9609 #define $ac_func innocuous_$ac_func
9610
9611 /* System header to define __stub macros and hopefully few prototypes,
9612     which can conflict with char $ac_func (); below.
9613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614     <limits.h> exists even on freestanding compilers.  */
9615
9616 #ifdef __STDC__
9617 # include <limits.h>
9618 #else
9619 # include <assert.h>
9620 #endif
9621
9622 #undef $ac_func
9623
9624 /* Override any GCC internal prototype to avoid an error.
9625    Use char because int might match the return type of a GCC
9626    builtin and then its argument prototype would still apply.  */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char $ac_func ();
9631 /* The GNU C library defines this for functions which it implements
9632     to always fail with ENOSYS.  Some functions are actually named
9633     something starting with __ and the normal name is an alias.  */
9634 #if defined __stub_$ac_func || defined __stub___$ac_func
9635 choke me
9636 #endif
9637
9638 int
9639 main ()
9640 {
9641 return $ac_func ();
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654   (eval "$ac_link") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } && {
9661          test -z "$ac_c_werror_flag" ||
9662          test ! -s conftest.err
9663        } && test -s conftest$ac_exeext && {
9664          test "$cross_compiling" = yes ||
9665          $as_test_x conftest$ac_exeext
9666        }; then
9667   eval "$as_ac_var=yes"
9668 else
9669   $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672         eval "$as_ac_var=no"
9673 fi
9674
9675 rm -rf conftest.dSYM
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677       conftest$ac_exeext conftest.$ac_ext
9678 fi
9679 ac_res=`eval 'as_val=${'$as_ac_var'}
9680                  $as_echo "$as_val"'`
9681                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9682 $as_echo "$ac_res" >&6; }
9683 as_val=`eval 'as_val=${'$as_ac_var'}
9684                  $as_echo "$as_val"'`
9685    if test "x$as_val" = x""yes; then
9686   cat >>confdefs.h <<_ACEOF
9687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9688 _ACEOF
9689
9690 fi
9691 done
9692
9693
9694
9695 ac_config_files="$ac_config_files Makefile"
9696
9697 cat >confcache <<\_ACEOF
9698 # This file is a shell script that caches the results of configure
9699 # tests run on this system so they can be shared between configure
9700 # scripts and configure runs, see configure's option --config-cache.
9701 # It is not useful on other systems.  If it contains results you don't
9702 # want to keep, you may remove or edit it.
9703 #
9704 # config.status only pays attention to the cache file if you give it
9705 # the --recheck option to rerun configure.
9706 #
9707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9709 # following values.
9710
9711 _ACEOF
9712
9713 # The following way of writing the cache mishandles newlines in values,
9714 # but we know of no workaround that is simple, portable, and efficient.
9715 # So, we kill variables containing newlines.
9716 # Ultrix sh set writes to stderr and can't be redirected directly,
9717 # and sets the high bit in the cache file unless we assign to the vars.
9718 (
9719   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9720     eval ac_val=\$$ac_var
9721     case $ac_val in #(
9722     *${as_nl}*)
9723       case $ac_var in #(
9724       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9726       esac
9727       case $ac_var in #(
9728       _ | IFS | as_nl) ;; #(
9729       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9730       *) $as_unset $ac_var ;;
9731       esac ;;
9732     esac
9733   done
9734
9735   (set) 2>&1 |
9736     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9737     *${as_nl}ac_space=\ *)
9738       # `set' does not quote correctly, so add quotes (double-quote
9739       # substitution turns \\\\ into \\, and sed turns \\ into \).
9740       sed -n \
9741         "s/'/'\\\\''/g;
9742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9743       ;; #(
9744     *)
9745       # `set' quotes correctly as required by POSIX, so do not add quotes.
9746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9747       ;;
9748     esac |
9749     sort
9750 ) |
9751   sed '
9752      /^ac_cv_env_/b end
9753      t clear
9754      :clear
9755      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9756      t end
9757      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9758      :end' >>confcache
9759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9760   if test -w "$cache_file"; then
9761     test "x$cache_file" != "x/dev/null" &&
9762       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9763 $as_echo "$as_me: updating cache $cache_file" >&6;}
9764     cat confcache >$cache_file
9765   else
9766     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9768   fi
9769 fi
9770 rm -f confcache
9771
9772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9773 # Let make expand exec_prefix.
9774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9775
9776 DEFS=-DHAVE_CONFIG_H
9777
9778 ac_libobjs=
9779 ac_ltlibobjs=
9780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9781   # 1. Remove the extension, and $U if already installed.
9782   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9783   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9784   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9785   #    will be set to the directory where LIBOBJS objects are built.
9786   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9787   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9788 done
9789 LIBOBJS=$ac_libobjs
9790
9791 LTLIBOBJS=$ac_ltlibobjs
9792
9793
9794 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9795   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9796 Usually this means the macro was only invoked conditionally." >&5
9797 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
9798 Usually this means the macro was only invoked conditionally." >&2;}
9799    { (exit 1); exit 1; }; }
9800 fi
9801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9802   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9803 Usually this means the macro was only invoked conditionally." >&5
9804 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9805 Usually this means the macro was only invoked conditionally." >&2;}
9806    { (exit 1); exit 1; }; }
9807 fi
9808 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9809   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9810 Usually this means the macro was only invoked conditionally." >&5
9811 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9812 Usually this means the macro was only invoked conditionally." >&2;}
9813    { (exit 1); exit 1; }; }
9814 fi
9815 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
9816   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9817 Usually this means the macro was only invoked conditionally." >&5
9818 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
9819 Usually this means the macro was only invoked conditionally." >&2;}
9820    { (exit 1); exit 1; }; }
9821 fi
9822 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
9823   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
9824 Usually this means the macro was only invoked conditionally." >&5
9825 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
9826 Usually this means the macro was only invoked conditionally." >&2;}
9827    { (exit 1); exit 1; }; }
9828 fi
9829
9830 : ${CONFIG_STATUS=./config.status}
9831 ac_write_fail=0
9832 ac_clean_files_save=$ac_clean_files
9833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9834 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9835 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9836 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9837 #! $SHELL
9838 # Generated by $as_me.
9839 # Run this file to recreate the current configuration.
9840 # Compiler output produced by configure, useful for debugging
9841 # configure, is in config.log if it exists.
9842
9843 debug=false
9844 ac_cs_recheck=false
9845 ac_cs_silent=false
9846 SHELL=\${CONFIG_SHELL-$SHELL}
9847 _ACEOF
9848
9849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9850 ## --------------------- ##
9851 ## M4sh Initialization.  ##
9852 ## --------------------- ##
9853
9854 # Be more Bourne compatible
9855 DUALCASE=1; export DUALCASE # for MKS sh
9856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9857   emulate sh
9858   NULLCMD=:
9859   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9860   # is contrary to our usage.  Disable this feature.
9861   alias -g '${1+"$@"}'='"$@"'
9862   setopt NO_GLOB_SUBST
9863 else
9864   case `(set -o) 2>/dev/null` in
9865   *posix*) set -o posix ;;
9866 esac
9867
9868 fi
9869
9870
9871
9872
9873 # PATH needs CR
9874 # Avoid depending upon Character Ranges.
9875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9878 as_cr_digits='0123456789'
9879 as_cr_alnum=$as_cr_Letters$as_cr_digits
9880
9881 as_nl='
9882 '
9883 export as_nl
9884 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9885 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9888 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9889   as_echo='printf %s\n'
9890   as_echo_n='printf %s'
9891 else
9892   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9893     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9894     as_echo_n='/usr/ucb/echo -n'
9895   else
9896     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9897     as_echo_n_body='eval
9898       arg=$1;
9899       case $arg in
9900       *"$as_nl"*)
9901         expr "X$arg" : "X\\(.*\\)$as_nl";
9902         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9903       esac;
9904       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9905     '
9906     export as_echo_n_body
9907     as_echo_n='sh -c $as_echo_n_body as_echo'
9908   fi
9909   export as_echo_body
9910   as_echo='sh -c $as_echo_body as_echo'
9911 fi
9912
9913 # The user is always right.
9914 if test "${PATH_SEPARATOR+set}" != set; then
9915   PATH_SEPARATOR=:
9916   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9917     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9918       PATH_SEPARATOR=';'
9919   }
9920 fi
9921
9922 # Support unset when possible.
9923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9924   as_unset=unset
9925 else
9926   as_unset=false
9927 fi
9928
9929
9930 # IFS
9931 # We need space, tab and new line, in precisely that order.  Quoting is
9932 # there to prevent editors from complaining about space-tab.
9933 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9934 # splitting by setting IFS to empty value.)
9935 IFS=" ""        $as_nl"
9936
9937 # Find who we are.  Look in the path if we contain no directory separator.
9938 case $0 in
9939   *[\\/]* ) as_myself=$0 ;;
9940   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943   IFS=$as_save_IFS
9944   test -z "$as_dir" && as_dir=.
9945   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9946 done
9947 IFS=$as_save_IFS
9948
9949      ;;
9950 esac
9951 # We did not find ourselves, most probably we were run as `sh COMMAND'
9952 # in which case we are not to be found in the path.
9953 if test "x$as_myself" = x; then
9954   as_myself=$0
9955 fi
9956 if test ! -f "$as_myself"; then
9957   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9958   { (exit 1); exit 1; }
9959 fi
9960
9961 # Work around bugs in pre-3.0 UWIN ksh.
9962 for as_var in ENV MAIL MAILPATH
9963 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9964 done
9965 PS1='$ '
9966 PS2='> '
9967 PS4='+ '
9968
9969 # NLS nuisances.
9970 LC_ALL=C
9971 export LC_ALL
9972 LANGUAGE=C
9973 export LANGUAGE
9974
9975 # Required to use basename.
9976 if expr a : '\(a\)' >/dev/null 2>&1 &&
9977    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9978   as_expr=expr
9979 else
9980   as_expr=false
9981 fi
9982
9983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9984   as_basename=basename
9985 else
9986   as_basename=false
9987 fi
9988
9989
9990 # Name of the executable.
9991 as_me=`$as_basename -- "$0" ||
9992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9993          X"$0" : 'X\(//\)$' \| \
9994          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9995 $as_echo X/"$0" |
9996     sed '/^.*\/\([^/][^/]*\)\/*$/{
9997             s//\1/
9998             q
9999           }
10000           /^X\/\(\/\/\)$/{
10001             s//\1/
10002             q
10003           }
10004           /^X\/\(\/\).*/{
10005             s//\1/
10006             q
10007           }
10008           s/.*/./; q'`
10009
10010 # CDPATH.
10011 $as_unset CDPATH
10012
10013
10014
10015   as_lineno_1=$LINENO
10016   as_lineno_2=$LINENO
10017   test "x$as_lineno_1" != "x$as_lineno_2" &&
10018   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10019
10020   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10021   # uniformly replaced by the line number.  The first 'sed' inserts a
10022   # line-number line after each line using $LINENO; the second 'sed'
10023   # does the real work.  The second script uses 'N' to pair each
10024   # line-number line with the line containing $LINENO, and appends
10025   # trailing '-' during substitution so that $LINENO is not a special
10026   # case at line end.
10027   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10028   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10029   # E. McMahon (1931-1989) for sed's syntax.  :-)
10030   sed -n '
10031     p
10032     /[$]LINENO/=
10033   ' <$as_myself |
10034     sed '
10035       s/[$]LINENO.*/&-/
10036       t lineno
10037       b
10038       :lineno
10039       N
10040       :loop
10041       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10042       t loop
10043       s/-\n.*//
10044     ' >$as_me.lineno &&
10045   chmod +x "$as_me.lineno" ||
10046     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10047    { (exit 1); exit 1; }; }
10048
10049   # Don't try to exec as it changes $[0], causing all sort of problems
10050   # (the dirname of $[0] is not the place where we might find the
10051   # original and so on.  Autoconf is especially sensitive to this).
10052   . "./$as_me.lineno"
10053   # Exit status is that of the last command.
10054   exit
10055 }
10056
10057
10058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10059   as_dirname=dirname
10060 else
10061   as_dirname=false
10062 fi
10063
10064 ECHO_C= ECHO_N= ECHO_T=
10065 case `echo -n x` in
10066 -n*)
10067   case `echo 'x\c'` in
10068   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10069   *)   ECHO_C='\c';;
10070   esac;;
10071 *)
10072   ECHO_N='-n';;
10073 esac
10074 if expr a : '\(a\)' >/dev/null 2>&1 &&
10075    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10076   as_expr=expr
10077 else
10078   as_expr=false
10079 fi
10080
10081 rm -f conf$$ conf$$.exe conf$$.file
10082 if test -d conf$$.dir; then
10083   rm -f conf$$.dir/conf$$.file
10084 else
10085   rm -f conf$$.dir
10086   mkdir conf$$.dir 2>/dev/null
10087 fi
10088 if (echo >conf$$.file) 2>/dev/null; then
10089   if ln -s conf$$.file conf$$ 2>/dev/null; then
10090     as_ln_s='ln -s'
10091     # ... but there are two gotchas:
10092     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10093     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10094     # In both cases, we have to default to `cp -p'.
10095     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10096       as_ln_s='cp -p'
10097   elif ln conf$$.file conf$$ 2>/dev/null; then
10098     as_ln_s=ln
10099   else
10100     as_ln_s='cp -p'
10101   fi
10102 else
10103   as_ln_s='cp -p'
10104 fi
10105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10106 rmdir conf$$.dir 2>/dev/null
10107
10108 if mkdir -p . 2>/dev/null; then
10109   as_mkdir_p=:
10110 else
10111   test -d ./-p && rmdir ./-p
10112   as_mkdir_p=false
10113 fi
10114
10115 if test -x / >/dev/null 2>&1; then
10116   as_test_x='test -x'
10117 else
10118   if ls -dL / >/dev/null 2>&1; then
10119     as_ls_L_option=L
10120   else
10121     as_ls_L_option=
10122   fi
10123   as_test_x='
10124     eval sh -c '\''
10125       if test -d "$1"; then
10126         test -d "$1/.";
10127       else
10128         case $1 in
10129         -*)set "./$1";;
10130         esac;
10131         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10132         ???[sx]*):;;*)false;;esac;fi
10133     '\'' sh
10134   '
10135 fi
10136 as_executable_p=$as_test_x
10137
10138 # Sed expression to map a string onto a valid CPP name.
10139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10140
10141 # Sed expression to map a string onto a valid variable name.
10142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10143
10144
10145 exec 6>&1
10146
10147 # Save the log message, to keep $[0] and so on meaningful, and to
10148 # report actual input values of CONFIG_FILES etc. instead of their
10149 # values after options handling.
10150 ac_log="
10151 This file was extended by lcr $as_me 1.5, which was
10152 generated by GNU Autoconf 2.63.  Invocation command line was
10153
10154   CONFIG_FILES    = $CONFIG_FILES
10155   CONFIG_HEADERS  = $CONFIG_HEADERS
10156   CONFIG_LINKS    = $CONFIG_LINKS
10157   CONFIG_COMMANDS = $CONFIG_COMMANDS
10158   $ $0 $@
10159
10160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10161 "
10162
10163 _ACEOF
10164
10165 case $ac_config_files in *"
10166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10167 esac
10168
10169 case $ac_config_headers in *"
10170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10171 esac
10172
10173
10174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10175 # Files that config.status was made for.
10176 config_files="$ac_config_files"
10177 config_headers="$ac_config_headers"
10178 config_commands="$ac_config_commands"
10179
10180 _ACEOF
10181
10182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10183 ac_cs_usage="\
10184 \`$as_me' instantiates files from templates according to the
10185 current configuration.
10186
10187 Usage: $0 [OPTION]... [FILE]...
10188
10189   -h, --help       print this help, then exit
10190   -V, --version    print version number and configuration settings, then exit
10191   -q, --quiet, --silent
10192                    do not print progress messages
10193   -d, --debug      don't remove temporary files
10194       --recheck    update $as_me by reconfiguring in the same conditions
10195       --file=FILE[:TEMPLATE]
10196                    instantiate the configuration file FILE
10197       --header=FILE[:TEMPLATE]
10198                    instantiate the configuration header FILE
10199
10200 Configuration files:
10201 $config_files
10202
10203 Configuration headers:
10204 $config_headers
10205
10206 Configuration commands:
10207 $config_commands
10208
10209 Report bugs to <bug-autoconf@gnu.org>."
10210
10211 _ACEOF
10212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10213 ac_cs_version="\\
10214 lcr config.status 1.5
10215 configured by $0, generated by GNU Autoconf 2.63,
10216   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10217
10218 Copyright (C) 2008 Free Software Foundation, Inc.
10219 This config.status script is free software; the Free Software Foundation
10220 gives unlimited permission to copy, distribute and modify it."
10221
10222 ac_pwd='$ac_pwd'
10223 srcdir='$srcdir'
10224 INSTALL='$INSTALL'
10225 AWK='$AWK'
10226 test -n "\$AWK" || AWK=awk
10227 _ACEOF
10228
10229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10230 # The default lists apply if the user does not specify any file.
10231 ac_need_defaults=:
10232 while test $# != 0
10233 do
10234   case $1 in
10235   --*=*)
10236     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10237     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10238     ac_shift=:
10239     ;;
10240   *)
10241     ac_option=$1
10242     ac_optarg=$2
10243     ac_shift=shift
10244     ;;
10245   esac
10246
10247   case $ac_option in
10248   # Handling of the options.
10249   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10250     ac_cs_recheck=: ;;
10251   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10252     $as_echo "$ac_cs_version"; exit ;;
10253   --debug | --debu | --deb | --de | --d | -d )
10254     debug=: ;;
10255   --file | --fil | --fi | --f )
10256     $ac_shift
10257     case $ac_optarg in
10258     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10259     esac
10260     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10261     ac_need_defaults=false;;
10262   --header | --heade | --head | --hea )
10263     $ac_shift
10264     case $ac_optarg in
10265     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10266     esac
10267     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10268     ac_need_defaults=false;;
10269   --he | --h)
10270     # Conflict between --help and --header
10271     { $as_echo "$as_me: error: ambiguous option: $1
10272 Try \`$0 --help' for more information." >&2
10273    { (exit 1); exit 1; }; };;
10274   --help | --hel | -h )
10275     $as_echo "$ac_cs_usage"; exit ;;
10276   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10277   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10278     ac_cs_silent=: ;;
10279
10280   # This is an error.
10281   -*) { $as_echo "$as_me: error: unrecognized option: $1
10282 Try \`$0 --help' for more information." >&2
10283    { (exit 1); exit 1; }; } ;;
10284
10285   *) ac_config_targets="$ac_config_targets $1"
10286      ac_need_defaults=false ;;
10287
10288   esac
10289   shift
10290 done
10291
10292 ac_configure_extra_args=
10293
10294 if $ac_cs_silent; then
10295   exec 6>/dev/null
10296   ac_configure_extra_args="$ac_configure_extra_args --silent"
10297 fi
10298
10299 _ACEOF
10300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10301 if \$ac_cs_recheck; then
10302   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10303   shift
10304   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10305   CONFIG_SHELL='$SHELL'
10306   export CONFIG_SHELL
10307   exec "\$@"
10308 fi
10309
10310 _ACEOF
10311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10312 exec 5>>config.log
10313 {
10314   echo
10315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10316 ## Running $as_me. ##
10317 _ASBOX
10318   $as_echo "$ac_log"
10319 } >&5
10320
10321 _ACEOF
10322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10323 #
10324 # INIT-COMMANDS
10325 #
10326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10327
10328 _ACEOF
10329
10330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10331
10332 # Handling of arguments.
10333 for ac_config_target in $ac_config_targets
10334 do
10335   case $ac_config_target in
10336     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10338     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10339
10340   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10341 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10342    { (exit 1); exit 1; }; };;
10343   esac
10344 done
10345
10346
10347 # If the user did not use the arguments to specify the items to instantiate,
10348 # then the envvar interface is used.  Set only those that are not.
10349 # We use the long form for the default assignment because of an extremely
10350 # bizarre bug on SunOS 4.1.3.
10351 if $ac_need_defaults; then
10352   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10353   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10355 fi
10356
10357 # Have a temporary directory for convenience.  Make it in the build tree
10358 # simply because there is no reason against having it here, and in addition,
10359 # creating and moving files from /tmp can sometimes cause problems.
10360 # Hook for its removal unless debugging.
10361 # Note that there is a small window in which the directory will not be cleaned:
10362 # after its creation but before its name has been assigned to `$tmp'.
10363 $debug ||
10364 {
10365   tmp=
10366   trap 'exit_status=$?
10367   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10368 ' 0
10369   trap '{ (exit 1); exit 1; }' 1 2 13 15
10370 }
10371 # Create a (secure) tmp directory for tmp files.
10372
10373 {
10374   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10375   test -n "$tmp" && test -d "$tmp"
10376 }  ||
10377 {
10378   tmp=./conf$$-$RANDOM
10379   (umask 077 && mkdir "$tmp")
10380 } ||
10381 {
10382    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10383    { (exit 1); exit 1; }
10384 }
10385
10386 # Set up the scripts for CONFIG_FILES section.
10387 # No need to generate them if there are no CONFIG_FILES.
10388 # This happens for instance with `./config.status config.h'.
10389 if test -n "$CONFIG_FILES"; then
10390
10391
10392 ac_cr='\r'
10393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10395   ac_cs_awk_cr='\\r'
10396 else
10397   ac_cs_awk_cr=$ac_cr
10398 fi
10399
10400 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10401 _ACEOF
10402
10403
10404 {
10405   echo "cat >conf$$subs.awk <<_ACEOF" &&
10406   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10407   echo "_ACEOF"
10408 } >conf$$subs.sh ||
10409   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10410 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10411    { (exit 1); exit 1; }; }
10412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10413 ac_delim='%!_!# '
10414 for ac_last_try in false false false false false :; do
10415   . ./conf$$subs.sh ||
10416     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10417 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10418    { (exit 1); exit 1; }; }
10419
10420   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10421   if test $ac_delim_n = $ac_delim_num; then
10422     break
10423   elif $ac_last_try; then
10424     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10425 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10426    { (exit 1); exit 1; }; }
10427   else
10428     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10429   fi
10430 done
10431 rm -f conf$$subs.sh
10432
10433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10434 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10435 _ACEOF
10436 sed -n '
10437 h
10438 s/^/S["/; s/!.*/"]=/
10439 p
10440 g
10441 s/^[^!]*!//
10442 :repl
10443 t repl
10444 s/'"$ac_delim"'$//
10445 t delim
10446 :nl
10447 h
10448 s/\(.\{148\}\).*/\1/
10449 t more1
10450 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10451 p
10452 n
10453 b repl
10454 :more1
10455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10456 p
10457 g
10458 s/.\{148\}//
10459 t nl
10460 :delim
10461 h
10462 s/\(.\{148\}\).*/\1/
10463 t more2
10464 s/["\\]/\\&/g; s/^/"/; s/$/"/
10465 p
10466 b
10467 :more2
10468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10469 p
10470 g
10471 s/.\{148\}//
10472 t delim
10473 ' <conf$$subs.awk | sed '
10474 /^[^""]/{
10475   N
10476   s/\n//
10477 }
10478 ' >>$CONFIG_STATUS || ac_write_fail=1
10479 rm -f conf$$subs.awk
10480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10481 _ACAWK
10482 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10483   for (key in S) S_is_set[key] = 1
10484   FS = "\a"
10485
10486 }
10487 {
10488   line = $ 0
10489   nfields = split(line, field, "@")
10490   substed = 0
10491   len = length(field[1])
10492   for (i = 2; i < nfields; i++) {
10493     key = field[i]
10494     keylen = length(key)
10495     if (S_is_set[key]) {
10496       value = S[key]
10497       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10498       len += length(value) + length(field[++i])
10499       substed = 1
10500     } else
10501       len += 1 + keylen
10502   }
10503
10504   print line
10505 }
10506
10507 _ACAWK
10508 _ACEOF
10509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10510 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10511   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10512 else
10513   cat
10514 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10515   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10516 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10517    { (exit 1); exit 1; }; }
10518 _ACEOF
10519
10520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10522 # trailing colons and then remove the whole line if VPATH becomes empty
10523 # (actually we leave an empty line to preserve line numbers).
10524 if test "x$srcdir" = x.; then
10525   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10526 s/:*\$(srcdir):*/:/
10527 s/:*\${srcdir}:*/:/
10528 s/:*@srcdir@:*/:/
10529 s/^\([^=]*=[     ]*\):*/\1/
10530 s/:*$//
10531 s/^[^=]*=[       ]*$//
10532 }'
10533 fi
10534
10535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10536 fi # test -n "$CONFIG_FILES"
10537
10538 # Set up the scripts for CONFIG_HEADERS section.
10539 # No need to generate them if there are no CONFIG_HEADERS.
10540 # This happens for instance with `./config.status Makefile'.
10541 if test -n "$CONFIG_HEADERS"; then
10542 cat >"$tmp/defines.awk" <<\_ACAWK ||
10543 BEGIN {
10544 _ACEOF
10545
10546 # Transform confdefs.h into an awk script `defines.awk', embedded as
10547 # here-document in config.status, that substitutes the proper values into
10548 # config.h.in to produce config.h.
10549
10550 # Create a delimiter string that does not exist in confdefs.h, to ease
10551 # handling of long lines.
10552 ac_delim='%!_!# '
10553 for ac_last_try in false false :; do
10554   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10555   if test -z "$ac_t"; then
10556     break
10557   elif $ac_last_try; then
10558     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10559 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10560    { (exit 1); exit 1; }; }
10561   else
10562     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10563   fi
10564 done
10565
10566 # For the awk script, D is an array of macro values keyed by name,
10567 # likewise P contains macro parameters if any.  Preserve backslash
10568 # newline sequences.
10569
10570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10571 sed -n '
10572 s/.\{148\}/&'"$ac_delim"'/g
10573 t rset
10574 :rset
10575 s/^[     ]*#[    ]*define[       ][      ]*/ /
10576 t def
10577 d
10578 :def
10579 s/\\$//
10580 t bsnl
10581 s/["\\]/\\&/g
10582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10583 D["\1"]=" \3"/p
10584 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10585 d
10586 :bsnl
10587 s/["\\]/\\&/g
10588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10589 D["\1"]=" \3\\\\\\n"\\/p
10590 t cont
10591 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10592 t cont
10593 d
10594 :cont
10595 n
10596 s/.\{148\}/&'"$ac_delim"'/g
10597 t clear
10598 :clear
10599 s/\\$//
10600 t bsnlc
10601 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10602 d
10603 :bsnlc
10604 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10605 b cont
10606 ' <confdefs.h | sed '
10607 s/'"$ac_delim"'/"\\\
10608 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10609
10610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10611   for (key in D) D_is_set[key] = 1
10612   FS = "\a"
10613 }
10614 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10615   line = \$ 0
10616   split(line, arg, " ")
10617   if (arg[1] == "#") {
10618     defundef = arg[2]
10619     mac1 = arg[3]
10620   } else {
10621     defundef = substr(arg[1], 2)
10622     mac1 = arg[2]
10623   }
10624   split(mac1, mac2, "(") #)
10625   macro = mac2[1]
10626   prefix = substr(line, 1, index(line, defundef) - 1)
10627   if (D_is_set[macro]) {
10628     # Preserve the white space surrounding the "#".
10629     print prefix "define", macro P[macro] D[macro]
10630     next
10631   } else {
10632     # Replace #undef with comments.  This is necessary, for example,
10633     # in the case of _POSIX_SOURCE, which is predefined and required
10634     # on some systems where configure will not decide to define it.
10635     if (defundef == "undef") {
10636       print "/*", prefix defundef, macro, "*/"
10637       next
10638     }
10639   }
10640 }
10641 { print }
10642 _ACAWK
10643 _ACEOF
10644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10645   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10646 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10647    { (exit 1); exit 1; }; }
10648 fi # test -n "$CONFIG_HEADERS"
10649
10650
10651 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10652 shift
10653 for ac_tag
10654 do
10655   case $ac_tag in
10656   :[FHLC]) ac_mode=$ac_tag; continue;;
10657   esac
10658   case $ac_mode$ac_tag in
10659   :[FHL]*:*);;
10660   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10661 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10662    { (exit 1); exit 1; }; };;
10663   :[FH]-) ac_tag=-:-;;
10664   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10665   esac
10666   ac_save_IFS=$IFS
10667   IFS=:
10668   set x $ac_tag
10669   IFS=$ac_save_IFS
10670   shift
10671   ac_file=$1
10672   shift
10673
10674   case $ac_mode in
10675   :L) ac_source=$1;;
10676   :[FH])
10677     ac_file_inputs=
10678     for ac_f
10679     do
10680       case $ac_f in
10681       -) ac_f="$tmp/stdin";;
10682       *) # Look for the file first in the build tree, then in the source tree
10683          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10684          # because $ac_f cannot contain `:'.
10685          test -f "$ac_f" ||
10686            case $ac_f in
10687            [\\/$]*) false;;
10688            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10689            esac ||
10690            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10691 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10692    { (exit 1); exit 1; }; };;
10693       esac
10694       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10695       ac_file_inputs="$ac_file_inputs '$ac_f'"
10696     done
10697
10698     # Let's still pretend it is `configure' which instantiates (i.e., don't
10699     # use $as_me), people would be surprised to read:
10700     #    /* config.h.  Generated by config.status.  */
10701     configure_input='Generated from '`
10702           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10703         `' by configure.'
10704     if test x"$ac_file" != x-; then
10705       configure_input="$ac_file.  $configure_input"
10706       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10707 $as_echo "$as_me: creating $ac_file" >&6;}
10708     fi
10709     # Neutralize special characters interpreted by sed in replacement strings.
10710     case $configure_input in #(
10711     *\&* | *\|* | *\\* )
10712        ac_sed_conf_input=`$as_echo "$configure_input" |
10713        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10714     *) ac_sed_conf_input=$configure_input;;
10715     esac
10716
10717     case $ac_tag in
10718     *:-:* | *:-) cat >"$tmp/stdin" \
10719       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10720 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10721    { (exit 1); exit 1; }; } ;;
10722     esac
10723     ;;
10724   esac
10725
10726   ac_dir=`$as_dirname -- "$ac_file" ||
10727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10728          X"$ac_file" : 'X\(//\)[^/]' \| \
10729          X"$ac_file" : 'X\(//\)$' \| \
10730          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10731 $as_echo X"$ac_file" |
10732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10733             s//\1/
10734             q
10735           }
10736           /^X\(\/\/\)[^/].*/{
10737             s//\1/
10738             q
10739           }
10740           /^X\(\/\/\)$/{
10741             s//\1/
10742             q
10743           }
10744           /^X\(\/\).*/{
10745             s//\1/
10746             q
10747           }
10748           s/.*/./; q'`
10749   { as_dir="$ac_dir"
10750   case $as_dir in #(
10751   -*) as_dir=./$as_dir;;
10752   esac
10753   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10754     as_dirs=
10755     while :; do
10756       case $as_dir in #(
10757       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10758       *) as_qdir=$as_dir;;
10759       esac
10760       as_dirs="'$as_qdir' $as_dirs"
10761       as_dir=`$as_dirname -- "$as_dir" ||
10762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10763          X"$as_dir" : 'X\(//\)[^/]' \| \
10764          X"$as_dir" : 'X\(//\)$' \| \
10765          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10766 $as_echo X"$as_dir" |
10767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10768             s//\1/
10769             q
10770           }
10771           /^X\(\/\/\)[^/].*/{
10772             s//\1/
10773             q
10774           }
10775           /^X\(\/\/\)$/{
10776             s//\1/
10777             q
10778           }
10779           /^X\(\/\).*/{
10780             s//\1/
10781             q
10782           }
10783           s/.*/./; q'`
10784       test -d "$as_dir" && break
10785     done
10786     test -z "$as_dirs" || eval "mkdir $as_dirs"
10787   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10788 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10789    { (exit 1); exit 1; }; }; }
10790   ac_builddir=.
10791
10792 case "$ac_dir" in
10793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10794 *)
10795   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10796   # A ".." for each directory in $ac_dir_suffix.
10797   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10798   case $ac_top_builddir_sub in
10799   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10800   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10801   esac ;;
10802 esac
10803 ac_abs_top_builddir=$ac_pwd
10804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10805 # for backward compatibility:
10806 ac_top_builddir=$ac_top_build_prefix
10807
10808 case $srcdir in
10809   .)  # We are building in place.
10810     ac_srcdir=.
10811     ac_top_srcdir=$ac_top_builddir_sub
10812     ac_abs_top_srcdir=$ac_pwd ;;
10813   [\\/]* | ?:[\\/]* )  # Absolute name.
10814     ac_srcdir=$srcdir$ac_dir_suffix;
10815     ac_top_srcdir=$srcdir
10816     ac_abs_top_srcdir=$srcdir ;;
10817   *) # Relative name.
10818     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10819     ac_top_srcdir=$ac_top_build_prefix$srcdir
10820     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10821 esac
10822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10823
10824
10825   case $ac_mode in
10826   :F)
10827   #
10828   # CONFIG_FILE
10829   #
10830
10831   case $INSTALL in
10832   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10833   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10834   esac
10835 _ACEOF
10836
10837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10838 # If the template does not know about datarootdir, expand it.
10839 # FIXME: This hack should be removed a few years after 2.60.
10840 ac_datarootdir_hack=; ac_datarootdir_seen=
10841
10842 ac_sed_dataroot='
10843 /datarootdir/ {
10844   p
10845   q
10846 }
10847 /@datadir@/p
10848 /@docdir@/p
10849 /@infodir@/p
10850 /@localedir@/p
10851 /@mandir@/p
10852 '
10853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10854 *datarootdir*) ac_datarootdir_seen=yes;;
10855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10856   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10858 _ACEOF
10859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10860   ac_datarootdir_hack='
10861   s&@datadir@&$datadir&g
10862   s&@docdir@&$docdir&g
10863   s&@infodir@&$infodir&g
10864   s&@localedir@&$localedir&g
10865   s&@mandir@&$mandir&g
10866     s&\\\${datarootdir}&$datarootdir&g' ;;
10867 esac
10868 _ACEOF
10869
10870 # Neutralize VPATH when `$srcdir' = `.'.
10871 # Shell code in configure.ac might set extrasub.
10872 # FIXME: do we really want to maintain this feature?
10873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10874 ac_sed_extra="$ac_vpsub
10875 $extrasub
10876 _ACEOF
10877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10878 :t
10879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10880 s|@configure_input@|$ac_sed_conf_input|;t t
10881 s&@top_builddir@&$ac_top_builddir_sub&;t t
10882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10883 s&@srcdir@&$ac_srcdir&;t t
10884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10885 s&@top_srcdir@&$ac_top_srcdir&;t t
10886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10887 s&@builddir@&$ac_builddir&;t t
10888 s&@abs_builddir@&$ac_abs_builddir&;t t
10889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10890 s&@INSTALL@&$ac_INSTALL&;t t
10891 $ac_datarootdir_hack
10892 "
10893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10894   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10895 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10896    { (exit 1); exit 1; }; }
10897
10898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10899   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10900   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10901   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10902 which seems to be undefined.  Please make sure it is defined." >&5
10903 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10904 which seems to be undefined.  Please make sure it is defined." >&2;}
10905
10906   rm -f "$tmp/stdin"
10907   case $ac_file in
10908   -) cat "$tmp/out" && rm -f "$tmp/out";;
10909   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10910   esac \
10911   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10912 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10913    { (exit 1); exit 1; }; }
10914  ;;
10915   :H)
10916   #
10917   # CONFIG_HEADER
10918   #
10919   if test x"$ac_file" != x-; then
10920     {
10921       $as_echo "/* $configure_input  */" \
10922       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10923     } >"$tmp/config.h" \
10924       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10925 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10926    { (exit 1); exit 1; }; }
10927     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10928       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10930     else
10931       rm -f "$ac_file"
10932       mv "$tmp/config.h" "$ac_file" \
10933         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10934 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10935    { (exit 1); exit 1; }; }
10936     fi
10937   else
10938     $as_echo "/* $configure_input  */" \
10939       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10940       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10941 $as_echo "$as_me: error: could not create -" >&2;}
10942    { (exit 1); exit 1; }; }
10943   fi
10944 # Compute "$ac_file"'s index in $config_headers.
10945 _am_stamp_count=1
10946 for _am_header in $config_headers :; do
10947   case $_am_header in
10948     "$ac_file" | "$ac_file":* )
10949       break ;;
10950     * )
10951       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10952   esac
10953 done
10954 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
10955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10956          X"$ac_file" : 'X\(//\)[^/]' \| \
10957          X"$ac_file" : 'X\(//\)$' \| \
10958          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10959 $as_echo X"$ac_file" |
10960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10961             s//\1/
10962             q
10963           }
10964           /^X\(\/\/\)[^/].*/{
10965             s//\1/
10966             q
10967           }
10968           /^X\(\/\/\)$/{
10969             s//\1/
10970             q
10971           }
10972           /^X\(\/\).*/{
10973             s//\1/
10974             q
10975           }
10976           s/.*/./; q'`/stamp-h$_am_stamp_count
10977  ;;
10978
10979   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10980 $as_echo "$as_me: executing $ac_file commands" >&6;}
10981  ;;
10982   esac
10983
10984
10985   case $ac_file$ac_mode in
10986     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10987   # Strip MF so we end up with the name of the file.
10988   mf=`echo "$mf" | sed -e 's/:.*$//'`
10989   # Check whether this is an Automake generated Makefile or not.
10990   # We used to match only the files named `Makefile.in', but
10991   # some people rename them; so instead we look at the file content.
10992   # Grep'ing the first line is not enough: some people post-process
10993   # each Makefile.in and add a new line on top of each file to say so.
10994   # So let's grep whole file.
10995   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10996     dirpart=`$as_dirname -- "$mf" ||
10997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10998          X"$mf" : 'X\(//\)[^/]' \| \
10999          X"$mf" : 'X\(//\)$' \| \
11000          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11001 $as_echo X"$mf" |
11002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11003             s//\1/
11004             q
11005           }
11006           /^X\(\/\/\)[^/].*/{
11007             s//\1/
11008             q
11009           }
11010           /^X\(\/\/\)$/{
11011             s//\1/
11012             q
11013           }
11014           /^X\(\/\).*/{
11015             s//\1/
11016             q
11017           }
11018           s/.*/./; q'`
11019   else
11020     continue
11021   fi
11022   # Extract the definition of DEPDIR, am__include, and am__quote
11023   # from the Makefile without running `make'.
11024   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11025   test -z "$DEPDIR" && continue
11026   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11027   test -z "am__include" && continue
11028   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11029   # When using ansi2knr, U may be empty or an underscore; expand it
11030   U=`sed -n 's/^U = //p' < "$mf"`
11031   # Find all dependency output files, they are included files with
11032   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11033   # simplest approach to changing $(DEPDIR) to its actual value in the
11034   # expansion.
11035   for file in `sed -n "
11036     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11037        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11038     # Make sure the directory exists.
11039     test -f "$dirpart/$file" && continue
11040     fdir=`$as_dirname -- "$file" ||
11041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11042          X"$file" : 'X\(//\)[^/]' \| \
11043          X"$file" : 'X\(//\)$' \| \
11044          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11045 $as_echo X"$file" |
11046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11047             s//\1/
11048             q
11049           }
11050           /^X\(\/\/\)[^/].*/{
11051             s//\1/
11052             q
11053           }
11054           /^X\(\/\/\)$/{
11055             s//\1/
11056             q
11057           }
11058           /^X\(\/\).*/{
11059             s//\1/
11060             q
11061           }
11062           s/.*/./; q'`
11063     { as_dir=$dirpart/$fdir
11064   case $as_dir in #(
11065   -*) as_dir=./$as_dir;;
11066   esac
11067   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11068     as_dirs=
11069     while :; do
11070       case $as_dir in #(
11071       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11072       *) as_qdir=$as_dir;;
11073       esac
11074       as_dirs="'$as_qdir' $as_dirs"
11075       as_dir=`$as_dirname -- "$as_dir" ||
11076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11077          X"$as_dir" : 'X\(//\)[^/]' \| \
11078          X"$as_dir" : 'X\(//\)$' \| \
11079          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11080 $as_echo X"$as_dir" |
11081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11082             s//\1/
11083             q
11084           }
11085           /^X\(\/\/\)[^/].*/{
11086             s//\1/
11087             q
11088           }
11089           /^X\(\/\/\)$/{
11090             s//\1/
11091             q
11092           }
11093           /^X\(\/\).*/{
11094             s//\1/
11095             q
11096           }
11097           s/.*/./; q'`
11098       test -d "$as_dir" && break
11099     done
11100     test -z "$as_dirs" || eval "mkdir $as_dirs"
11101   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11102 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11103    { (exit 1); exit 1; }; }; }
11104     # echo "creating $dirpart/$file"
11105     echo '# dummy' > "$dirpart/$file"
11106   done
11107 done
11108  ;;
11109
11110   esac
11111 done # for ac_tag
11112
11113
11114 { (exit 0); exit 0; }
11115 _ACEOF
11116 chmod +x $CONFIG_STATUS
11117 ac_clean_files=$ac_clean_files_save
11118
11119 test $ac_write_fail = 0 ||
11120   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11121 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11122    { (exit 1); exit 1; }; }
11123
11124
11125 # configure is writing to config.log, and then calls config.status.
11126 # config.status does its own redirection, appending to config.log.
11127 # Unfortunately, on DOS this fails, as config.log is still kept open
11128 # by configure, so config.status won't be able to write to it; its
11129 # output is simply discarded.  So we exec the FD to /dev/null,
11130 # effectively closing config.log, so it can be properly (re)opened and
11131 # appended to by config.status.  When coming back to configure, we
11132 # need to make the FD available again.
11133 if test "$no_create" != yes; then
11134   ac_cs_success=:
11135   ac_config_status_args=
11136   test "$silent" = yes &&
11137     ac_config_status_args="$ac_config_status_args --quiet"
11138   exec 5>/dev/null
11139   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11140   exec 5>>config.log
11141   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11142   # would make configure fail if this is the last instruction.
11143   $ac_cs_success || { (exit 1); exit 1; }
11144 fi
11145 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11146   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11147 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11148 fi
11149