2b2bc0b0e234badf87e2ff1459ac2dab8efc7487
[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.7.
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.7'
600 PACKAGE_STRING='lcr 1.7'
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_SS5_FALSE
644 ENABLE_SS5_TRUE
645 ENABLE_GSM_FALSE
646 ENABLE_GSM_TRUE
647 ENABLE_GSM_MS_FALSE
648 ENABLE_GSM_MS_TRUE
649 ENABLE_GSM_BS_FALSE
650 ENABLE_GSM_BS_TRUE
651 LIBCRYPTO
652 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
653 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
654 AST_CFLAGS
655 am__fastdepCXX_FALSE
656 am__fastdepCXX_TRUE
657 CXXDEPMODE
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 EGREP
692 GREP
693 CPP
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_dependency_tracking
742 with_asterisk
743 with_ssl
744 with_gsm_bs
745 with_gsm_ms
746 with_ss5
747 '
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 CXX
758 CXXFLAGS
759 CCC'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814   # If the previous option needs an argument, assign it.
815   if test -n "$ac_prev"; then
816     eval $ac_prev=\$ac_option
817     ac_prev=
818     continue
819   fi
820
821   case $ac_option in
822   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823   *)    ac_optarg=yes ;;
824   esac
825
826   # Accept the important Cygnus configure options, so we can diagnose typos.
827
828   case $ac_dashdash$ac_option in
829   --)
830     ac_dashdash=yes ;;
831
832   -bindir | --bindir | --bindi | --bind | --bin | --bi)
833     ac_prev=bindir ;;
834   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835     bindir=$ac_optarg ;;
836
837   -build | --build | --buil | --bui | --bu)
838     ac_prev=build_alias ;;
839   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840     build_alias=$ac_optarg ;;
841
842   -cache-file | --cache-file | --cache-fil | --cache-fi \
843   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844     ac_prev=cache_file ;;
845   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847     cache_file=$ac_optarg ;;
848
849   --config-cache | -C)
850     cache_file=config.cache ;;
851
852   -datadir | --datadir | --datadi | --datad)
853     ac_prev=datadir ;;
854   -datadir=* | --datadir=* | --datadi=* | --datad=*)
855     datadir=$ac_optarg ;;
856
857   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858   | --dataroo | --dataro | --datar)
859     ac_prev=datarootdir ;;
860   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862     datarootdir=$ac_optarg ;;
863
864   -disable-* | --disable-*)
865     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866     # Reject names that are not valid shell variable names.
867     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869    { (exit 1); exit 1; }; }
870     ac_useropt_orig=$ac_useropt
871     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872     case $ac_user_opts in
873       *"
874 "enable_$ac_useropt"
875 "*) ;;
876       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877          ac_unrecognized_sep=', ';;
878     esac
879     eval enable_$ac_useropt=no ;;
880
881   -docdir | --docdir | --docdi | --doc | --do)
882     ac_prev=docdir ;;
883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884     docdir=$ac_optarg ;;
885
886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887     ac_prev=dvidir ;;
888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889     dvidir=$ac_optarg ;;
890
891   -enable-* | --enable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896    { (exit 1); exit 1; }; }
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=\$ac_optarg ;;
1112
1113   -without-* | --without-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118    { (exit 1); exit 1; }; }
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=no ;;
1129
1130   --x)
1131     # Obsolete; use --with-x.
1132     with_x=yes ;;
1133
1134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135   | --x-incl | --x-inc | --x-in | --x-i)
1136     ac_prev=x_includes ;;
1137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139     x_includes=$ac_optarg ;;
1140
1141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143     ac_prev=x_libraries ;;
1144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146     x_libraries=$ac_optarg ;;
1147
1148   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150    { (exit 1); exit 1; }; }
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158    { (exit 1); exit 1; }; }
1159     eval $ac_envvar=\$ac_optarg
1160     export $ac_envvar ;;
1161
1162   *)
1163     # FIXME: should be removed in autoconf 3.0.
1164     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168     ;;
1169
1170   esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176    { (exit 1); exit 1; }; }
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180   case $enable_option_checking in
1181     no) ;;
1182     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183    { (exit 1); exit 1; }; } ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207    { (exit 1); exit 1; }; }
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219   if test "x$build_alias" = x; then
1220     cross_compiling=maybe
1221     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222     If a cross compiler is detected then cross compile mode will be used." >&2
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238    { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241    { (exit 1); exit 1; }; }
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246   ac_srcdir_defaulted=yes
1247   # Try the directory containing this script, then the parent directory.
1248   ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250          X"$as_myself" : 'X\(//\)[^/]' \| \
1251          X"$as_myself" : 'X\(//\)$' \| \
1252          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)[^/].*/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\).*/{
1267             s//\1/
1268             q
1269           }
1270           s/.*/./; q'`
1271   srcdir=$ac_confdir
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273     srcdir=..
1274   fi
1275 else
1276   ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286    { (exit 1); exit 1; }; }
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 Program names:
1370   --program-prefix=PREFIX            prepend PREFIX to installed program names
1371   --program-suffix=SUFFIX            append SUFFIX to installed program names
1372   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377   case $ac_init_help in
1378      short | recursive ) echo "Configuration of lcr 1.7:";;
1379    esac
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-option-checking  ignore unrecognized --enable/--with options
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --disable-dependency-tracking  speeds up one-time build
1387   --enable-dependency-tracking   do not reject slow dependency extractors
1388
1389 Optional Packages:
1390   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392   --with-asterisk         compile with built-in Asterisk channel driver
1393                           [default=check]
1394
1395   --with-ssl              compile with ssl support (libcrypto) [default=check]
1396
1397   --with-gsm-bs           compile with OpenBSC support [default=check]
1398
1399   --with-gsm-ms           compile with Osmocom-bb support [default=check]
1400
1401   --with-ss5              compile with CCITT No. 5 support [default=no]
1402
1403
1404 Some influential environment variables:
1405   CC          C compiler command
1406   CFLAGS      C compiler flags
1407   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1408               nonstandard directory <lib dir>
1409   LIBS        libraries to pass to the linker, e.g. -l<library>
1410   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1411               you have headers in a nonstandard directory <include dir>
1412   CPP         C preprocessor
1413   CXX         C++ compiler command
1414   CXXFLAGS    C++ compiler flags
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to <andreas@eversberg.eu>.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425   # If there are subdirs, report their specific --help.
1426   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427     test -d "$ac_dir" ||
1428       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429       continue
1430     ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436   # A ".." for each directory in $ac_dir_suffix.
1437   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438   case $ac_top_builddir_sub in
1439   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441   esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449   .)  # We are building in place.
1450     ac_srcdir=.
1451     ac_top_srcdir=$ac_top_builddir_sub
1452     ac_abs_top_srcdir=$ac_pwd ;;
1453   [\\/]* | ?:[\\/]* )  # Absolute name.
1454     ac_srcdir=$srcdir$ac_dir_suffix;
1455     ac_top_srcdir=$srcdir
1456     ac_abs_top_srcdir=$srcdir ;;
1457   *) # Relative name.
1458     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459     ac_top_srcdir=$ac_top_build_prefix$srcdir
1460     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464     cd "$ac_dir" || { ac_status=$?; continue; }
1465     # Check for guested configure.
1466     if test -f "$ac_srcdir/configure.gnu"; then
1467       echo &&
1468       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469     elif test -f "$ac_srcdir/configure"; then
1470       echo &&
1471       $SHELL "$ac_srcdir/configure" --help=recursive
1472     else
1473       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474     fi || ac_status=$?
1475     cd "$ac_pwd" || { ac_status=$?; break; }
1476   done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481   cat <<\_ACEOF
1482 lcr configure 1.7
1483 generated by GNU Autoconf 2.63
1484
1485 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1486 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490   exit
1491 fi
1492 cat >config.log <<_ACEOF
1493 This file contains any messages produced by compilers while
1494 running configure, to aid debugging if configure makes a mistake.
1495
1496 It was created by lcr $as_me 1.7, which was
1497 generated by GNU Autoconf 2.63.  Invocation command line was
1498
1499   $ $0 $@
1500
1501 _ACEOF
1502 exec 5>>config.log
1503 {
1504 cat <<_ASUNAME
1505 ## --------- ##
1506 ## Platform. ##
1507 ## --------- ##
1508
1509 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1514
1515 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1517
1518 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1519 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1520 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1521 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1522 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1523 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1524 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1525
1526 _ASUNAME
1527
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   $as_echo "PATH: $as_dir"
1534 done
1535 IFS=$as_save_IFS
1536
1537 } >&5
1538
1539 cat >&5 <<_ACEOF
1540
1541
1542 ## ----------- ##
1543 ## Core tests. ##
1544 ## ----------- ##
1545
1546 _ACEOF
1547
1548
1549 # Keep a trace of the command line.
1550 # Strip out --no-create and --no-recursion so they do not pile up.
1551 # Strip out --silent because we don't want to record it for future runs.
1552 # Also quote any args containing shell meta-characters.
1553 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_configure_args=
1555 ac_configure_args0=
1556 ac_configure_args1=
1557 ac_must_keep_next=false
1558 for ac_pass in 1 2
1559 do
1560   for ac_arg
1561   do
1562     case $ac_arg in
1563     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565     | -silent | --silent | --silen | --sile | --sil)
1566       continue ;;
1567     *\'*)
1568       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1569     esac
1570     case $ac_pass in
1571     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1572     2)
1573       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574       if test $ac_must_keep_next = true; then
1575         ac_must_keep_next=false # Got value, back to normal.
1576       else
1577         case $ac_arg in
1578           *=* | --config-cache | -C | -disable-* | --disable-* \
1579           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581           | -with-* | --with-* | -without-* | --without-* | --x)
1582             case "$ac_configure_args0 " in
1583               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584             esac
1585             ;;
1586           -* ) ac_must_keep_next=true ;;
1587         esac
1588       fi
1589       ac_configure_args="$ac_configure_args '$ac_arg'"
1590       ;;
1591     esac
1592   done
1593 done
1594 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1596
1597 # When interrupted or exit'd, cleanup temporary files, and complete
1598 # config.log.  We remove comments because anyway the quotes in there
1599 # would cause problems or look ugly.
1600 # WARNING: Use '\'' to represent an apostrophe within the trap.
1601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1602 trap 'exit_status=$?
1603   # Save into config.log some information that might help in debugging.
1604   {
1605     echo
1606
1607     cat <<\_ASBOX
1608 ## ---------------- ##
1609 ## Cache variables. ##
1610 ## ---------------- ##
1611 _ASBOX
1612     echo
1613     # The following way of writing the cache mishandles newlines in values,
1614 (
1615   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616     eval ac_val=\$$ac_var
1617     case $ac_val in #(
1618     *${as_nl}*)
1619       case $ac_var in #(
1620       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1622       esac
1623       case $ac_var in #(
1624       _ | IFS | as_nl) ;; #(
1625       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1626       *) $as_unset $ac_var ;;
1627       esac ;;
1628     esac
1629   done
1630   (set) 2>&1 |
1631     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1632     *${as_nl}ac_space=\ *)
1633       sed -n \
1634         "s/'\''/'\''\\\\'\'''\''/g;
1635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1636       ;; #(
1637     *)
1638       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639       ;;
1640     esac |
1641     sort
1642 )
1643     echo
1644
1645     cat <<\_ASBOX
1646 ## ----------------- ##
1647 ## Output variables. ##
1648 ## ----------------- ##
1649 _ASBOX
1650     echo
1651     for ac_var in $ac_subst_vars
1652     do
1653       eval ac_val=\$$ac_var
1654       case $ac_val in
1655       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656       esac
1657       $as_echo "$ac_var='\''$ac_val'\''"
1658     done | sort
1659     echo
1660
1661     if test -n "$ac_subst_files"; then
1662       cat <<\_ASBOX
1663 ## ------------------- ##
1664 ## File substitutions. ##
1665 ## ------------------- ##
1666 _ASBOX
1667       echo
1668       for ac_var in $ac_subst_files
1669       do
1670         eval ac_val=\$$ac_var
1671         case $ac_val in
1672         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1673         esac
1674         $as_echo "$ac_var='\''$ac_val'\''"
1675       done | sort
1676       echo
1677     fi
1678
1679     if test -s confdefs.h; then
1680       cat <<\_ASBOX
1681 ## ----------- ##
1682 ## confdefs.h. ##
1683 ## ----------- ##
1684 _ASBOX
1685       echo
1686       cat confdefs.h
1687       echo
1688     fi
1689     test "$ac_signal" != 0 &&
1690       $as_echo "$as_me: caught signal $ac_signal"
1691     $as_echo "$as_me: exit $exit_status"
1692   } >&5
1693   rm -f core *.core core.conftest.* &&
1694     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1695     exit $exit_status
1696 ' 0
1697 for ac_signal in 1 2 13 15; do
1698   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1699 done
1700 ac_signal=0
1701
1702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1703 rm -f -r conftest* confdefs.h
1704
1705 # Predefined preprocessor variables.
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_NAME "$PACKAGE_NAME"
1709 _ACEOF
1710
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1714 _ACEOF
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_STRING "$PACKAGE_STRING"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1729 _ACEOF
1730
1731
1732 # Let the site file select an alternate cache file if it wants to.
1733 # Prefer an explicitly selected file to automatically selected ones.
1734 ac_site_file1=NONE
1735 ac_site_file2=NONE
1736 if test -n "$CONFIG_SITE"; then
1737   ac_site_file1=$CONFIG_SITE
1738 elif test "x$prefix" != xNONE; then
1739   ac_site_file1=$prefix/share/config.site
1740   ac_site_file2=$prefix/etc/config.site
1741 else
1742   ac_site_file1=$ac_default_prefix/share/config.site
1743   ac_site_file2=$ac_default_prefix/etc/config.site
1744 fi
1745 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1746 do
1747   test "x$ac_site_file" = xNONE && continue
1748   if test -r "$ac_site_file"; then
1749     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1751     sed 's/^/| /' "$ac_site_file" >&5
1752     . "$ac_site_file"
1753   fi
1754 done
1755
1756 if test -r "$cache_file"; then
1757   # Some versions of bash will fail to source /dev/null (special
1758   # files actually), so we avoid doing that.
1759   if test -f "$cache_file"; then
1760     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761 $as_echo "$as_me: loading cache $cache_file" >&6;}
1762     case $cache_file in
1763       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1764       *)                      . "./$cache_file";;
1765     esac
1766   fi
1767 else
1768   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769 $as_echo "$as_me: creating cache $cache_file" >&6;}
1770   >$cache_file
1771 fi
1772
1773 # Check that the precious variables saved in the cache have kept the same
1774 # value.
1775 ac_cache_corrupted=false
1776 for ac_var in $ac_precious_vars; do
1777   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778   eval ac_new_set=\$ac_env_${ac_var}_set
1779   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780   eval ac_new_val=\$ac_env_${ac_var}_value
1781   case $ac_old_set,$ac_new_set in
1782     set,)
1783       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785       ac_cache_corrupted=: ;;
1786     ,set)
1787       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789       ac_cache_corrupted=: ;;
1790     ,);;
1791     *)
1792       if test "x$ac_old_val" != "x$ac_new_val"; then
1793         # differences in whitespace do not lead to failure.
1794         ac_old_val_w=`echo x $ac_old_val`
1795         ac_new_val_w=`echo x $ac_new_val`
1796         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1797           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1798 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1799           ac_cache_corrupted=:
1800         else
1801           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1802 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1803           eval $ac_var=\$ac_old_val
1804         fi
1805         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1806 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1807         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1808 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1809       fi;;
1810   esac
1811   # Pass precious variables to config.status.
1812   if test "$ac_new_set" = set; then
1813     case $ac_new_val in
1814     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1815     *) ac_arg=$ac_var=$ac_new_val ;;
1816     esac
1817     case " $ac_configure_args " in
1818       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1819       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1820     esac
1821   fi
1822 done
1823 if $ac_cache_corrupted; then
1824   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1826   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830    { (exit 1); exit 1; }; }
1831 fi
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
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
1863
1864
1865
1866 ac_config_headers="$ac_config_headers config.h"
1867
1868
1869 # fix warnings from autoconf + automake
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 $as_echo_n "checking for $ac_word... " >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881   $as_echo_n "(cached) " >&6
1882 else
1883   if test -n "$CC"; then
1884   ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899 IFS=$as_save_IFS
1900
1901 fi
1902 fi
1903 CC=$ac_cv_prog_CC
1904 if test -n "$CC"; then
1905   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1906 $as_echo "$CC" >&6; }
1907 else
1908   { $as_echo "$as_me:$LINENO: result: no" >&5
1909 $as_echo "no" >&6; }
1910 fi
1911
1912
1913 fi
1914 if test -z "$ac_cv_prog_CC"; then
1915   ac_ct_CC=$CC
1916   # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 $as_echo_n "checking for $ac_word... " >&6; }
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921   $as_echo_n "(cached) " >&6
1922 else
1923   if test -n "$ac_ct_CC"; then
1924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933     ac_cv_prog_ac_ct_CC="gcc"
1934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939 IFS=$as_save_IFS
1940
1941 fi
1942 fi
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 $as_echo "$ac_ct_CC" >&6; }
1947 else
1948   { $as_echo "$as_me:$LINENO: result: no" >&5
1949 $as_echo "no" >&6; }
1950 fi
1951
1952   if test "x$ac_ct_CC" = x; then
1953     CC=""
1954   else
1955     case $cross_compiling:$ac_tool_warned in
1956 yes:)
1957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1959 ac_tool_warned=yes ;;
1960 esac
1961     CC=$ac_ct_CC
1962   fi
1963 else
1964   CC="$ac_cv_prog_CC"
1965 fi
1966
1967 if test -z "$CC"; then
1968           if test -n "$ac_tool_prefix"; then
1969     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}cc; ac_word=$2
1971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 $as_echo_n "checking for $ac_word... " >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974   $as_echo_n "(cached) " >&6
1975 else
1976   if test -n "$CC"; then
1977   ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   for ac_exec_ext in '' $ac_executable_extensions; do
1985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1986     ac_cv_prog_CC="${ac_tool_prefix}cc"
1987     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988     break 2
1989   fi
1990 done
1991 done
1992 IFS=$as_save_IFS
1993
1994 fi
1995 fi
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1999 $as_echo "$CC" >&6; }
2000 else
2001   { $as_echo "$as_me:$LINENO: result: no" >&5
2002 $as_echo "no" >&6; }
2003 fi
2004
2005
2006   fi
2007 fi
2008 if test -z "$CC"; then
2009   # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 $as_echo_n "checking for $ac_word... " >&6; }
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   $as_echo_n "(cached) " >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019   ac_prog_rejected=no
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2028        ac_prog_rejected=yes
2029        continue
2030      fi
2031     ac_cv_prog_CC="cc"
2032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 if test $ac_prog_rejected = yes; then
2040   # We found a bogon in the path, so make sure we never use it.
2041   set dummy $ac_cv_prog_CC
2042   shift
2043   if test $# != 0; then
2044     # We chose a different compiler from the bogus one.
2045     # However, it has the same basename, so the bogon will be chosen
2046     # first if we set CC to just the basename; use the full file name.
2047     shift
2048     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2049   fi
2050 fi
2051 fi
2052 fi
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2056 $as_echo "$CC" >&6; }
2057 else
2058   { $as_echo "$as_me:$LINENO: result: no" >&5
2059 $as_echo "no" >&6; }
2060 fi
2061
2062
2063 fi
2064 if test -z "$CC"; then
2065   if test -n "$ac_tool_prefix"; then
2066   for ac_prog in cl.exe
2067   do
2068     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 $as_echo_n "checking for $ac_word... " >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073   $as_echo_n "(cached) " >&6
2074 else
2075   if test -n "$CC"; then
2076   ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2086     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2098 $as_echo "$CC" >&6; }
2099 else
2100   { $as_echo "$as_me:$LINENO: result: no" >&5
2101 $as_echo "no" >&6; }
2102 fi
2103
2104
2105     test -n "$CC" && break
2106   done
2107 fi
2108 if test -z "$CC"; then
2109   ac_ct_CC=$CC
2110   for ac_prog in cl.exe
2111 do
2112   # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy $ac_prog; ac_word=$2
2114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117   $as_echo_n "(cached) " >&6
2118 else
2119   if test -n "$ac_ct_CC"; then
2120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129     ac_cv_prog_ac_ct_CC="$ac_prog"
2130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135 IFS=$as_save_IFS
2136
2137 fi
2138 fi
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142 $as_echo "$ac_ct_CC" >&6; }
2143 else
2144   { $as_echo "$as_me:$LINENO: result: no" >&5
2145 $as_echo "no" >&6; }
2146 fi
2147
2148
2149   test -n "$ac_ct_CC" && break
2150 done
2151
2152   if test "x$ac_ct_CC" = x; then
2153     CC=""
2154   else
2155     case $cross_compiling:$ac_tool_warned in
2156 yes:)
2157 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2159 ac_tool_warned=yes ;;
2160 esac
2161     CC=$ac_ct_CC
2162   fi
2163 fi
2164
2165 fi
2166
2167
2168 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&5
2172 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&2;}
2174    { (exit 1); exit 1; }; }; }
2175
2176 # Provide some information about the compiler.
2177 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2178 set X $ac_compile
2179 ac_compiler=$2
2180 { (ac_try="$ac_compiler --version >&5"
2181 case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2186 $as_echo "$ac_try_echo") >&5
2187   (eval "$ac_compiler --version >&5") 2>&5
2188   ac_status=$?
2189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }
2191 { (ac_try="$ac_compiler -v >&5"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2197 $as_echo "$ac_try_echo") >&5
2198   (eval "$ac_compiler -v >&5") 2>&5
2199   ac_status=$?
2200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }
2202 { (ac_try="$ac_compiler -V >&5"
2203 case "(($ac_try" in
2204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205   *) ac_try_echo=$ac_try;;
2206 esac
2207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2208 $as_echo "$ac_try_echo") >&5
2209   (eval "$ac_compiler -V >&5") 2>&5
2210   ac_status=$?
2211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }
2213
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h.  */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h.  */
2220
2221 int
2222 main ()
2223 {
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 ac_clean_files_save=$ac_clean_files
2230 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2231 # Try to create an executable without -o first, disregard a.out.
2232 # It will help us diagnose broken compilers, and finding out an intuition
2233 # of exeext.
2234 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2235 $as_echo_n "checking for C compiler default output file name... " >&6; }
2236 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237
2238 # The possible output files:
2239 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2240
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2257 $as_echo "$ac_try_echo") >&5
2258   (eval "$ac_link_default") 2>&5
2259   ac_status=$?
2260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; then
2262   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2264 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2265 # so that the user can short-circuit this test for compilers unknown to
2266 # Autoconf.
2267 for ac_file in $ac_files ''
2268 do
2269   test -f "$ac_file" || continue
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2272         ;;
2273     [ab].out )
2274         # We found the default executable, but exeext='' is most
2275         # certainly right.
2276         break;;
2277     *.* )
2278         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279         then :; else
2280            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281         fi
2282         # We set ac_cv_exeext here because the later test for it is not
2283         # safe: cross compilers may not add the suffix if given an `-o'
2284         # argument, so we may need to know it at that point already.
2285         # Even if this section looks crufty: it has the advantage of
2286         # actually working.
2287         break;;
2288     * )
2289         break;;
2290   esac
2291 done
2292 test "$ac_cv_exeext" = no && ac_cv_exeext=
2293
2294 else
2295   ac_file=''
2296 fi
2297
2298 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2299 $as_echo "$ac_file" >&6; }
2300 if test -z "$ac_file"; then
2301   $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&5
2308 $as_echo "$as_me: error: C compiler cannot create executables
2309 See \`config.log' for more details." >&2;}
2310    { (exit 77); exit 77; }; }; }
2311 fi
2312
2313 ac_exeext=$ac_cv_exeext
2314
2315 # Check that the compiler produces executables we can run.  If not, either
2316 # the compiler is broken, or we cross compile.
2317 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2318 $as_echo_n "checking whether the C compiler works... " >&6; }
2319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2320 # If not cross compiling, check that we can run a simple program.
2321 if test "$cross_compiling" != yes; then
2322   if { ac_try='./$ac_file'
2323   { (case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2328 $as_echo "$ac_try_echo") >&5
2329   (eval "$ac_try") 2>&5
2330   ac_status=$?
2331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333     cross_compiling=no
2334   else
2335     if test "$cross_compiling" = maybe; then
2336         cross_compiling=yes
2337     else
2338         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2341 If you meant to cross compile, use \`--host'.
2342 See \`config.log' for more details." >&5
2343 $as_echo "$as_me: error: cannot run C compiled programs.
2344 If you meant to cross compile, use \`--host'.
2345 See \`config.log' for more details." >&2;}
2346    { (exit 1); exit 1; }; }; }
2347     fi
2348   fi
2349 fi
2350 { $as_echo "$as_me:$LINENO: result: yes" >&5
2351 $as_echo "yes" >&6; }
2352
2353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2354 ac_clean_files=$ac_clean_files_save
2355 # Check that the compiler produces executables we can run.  If not, either
2356 # the compiler is broken, or we cross compile.
2357 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2358 $as_echo_n "checking whether we are cross compiling... " >&6; }
2359 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2360 $as_echo "$cross_compiling" >&6; }
2361
2362 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2363 $as_echo_n "checking for suffix of executables... " >&6; }
2364 if { (ac_try="$ac_link"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2370 $as_echo "$ac_try_echo") >&5
2371   (eval "$ac_link") 2>&5
2372   ac_status=$?
2373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; then
2375   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2376 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2377 # work properly (i.e., refer to `conftest.exe'), while it won't with
2378 # `rm'.
2379 for ac_file in conftest.exe conftest conftest.*; do
2380   test -f "$ac_file" || continue
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2383     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384           break;;
2385     * ) break;;
2386   esac
2387 done
2388 else
2389   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&5
2393 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }; }
2396 fi
2397
2398 rm -f conftest$ac_cv_exeext
2399 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2400 $as_echo "$ac_cv_exeext" >&6; }
2401
2402 rm -f conftest.$ac_ext
2403 EXEEXT=$ac_cv_exeext
2404 ac_exeext=$EXEEXT
2405 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2406 $as_echo_n "checking for suffix of object files... " >&6; }
2407 if test "${ac_cv_objext+set}" = set; then
2408   $as_echo_n "(cached) " >&6
2409 else
2410   cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h.  */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h.  */
2416
2417 int
2418 main ()
2419 {
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.o conftest.obj
2426 if { (ac_try="$ac_compile"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2432 $as_echo "$ac_try_echo") >&5
2433   (eval "$ac_compile") 2>&5
2434   ac_status=$?
2435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; then
2437   for ac_file in conftest.o conftest.obj conftest.*; do
2438   test -f "$ac_file" || continue;
2439   case $ac_file in
2440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2441     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2442        break;;
2443   esac
2444 done
2445 else
2446   $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&5
2453 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }; }
2456 fi
2457
2458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459 fi
2460 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2461 $as_echo "$ac_cv_objext" >&6; }
2462 OBJEXT=$ac_cv_objext
2463 ac_objext=$OBJEXT
2464 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2467   $as_echo_n "(cached) " >&6
2468 else
2469   cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479 #ifndef __GNUC__
2480        choke me
2481 #endif
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2494 $as_echo "$ac_try_echo") >&5
2495   (eval "$ac_compile") 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } && {
2502          test -z "$ac_c_werror_flag" ||
2503          test ! -s conftest.err
2504        } && test -s conftest.$ac_objext; then
2505   ac_compiler_gnu=yes
2506 else
2507   $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_compiler_gnu=no
2511 fi
2512
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515
2516 fi
2517 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2519 if test $ac_compiler_gnu = yes; then
2520   GCC=yes
2521 else
2522   GCC=
2523 fi
2524 ac_test_CFLAGS=${CFLAGS+set}
2525 ac_save_CFLAGS=$CFLAGS
2526 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2528 if test "${ac_cv_prog_cc_g+set}" = set; then
2529   $as_echo_n "(cached) " >&6
2530 else
2531   ac_save_c_werror_flag=$ac_c_werror_flag
2532    ac_c_werror_flag=yes
2533    ac_cv_prog_cc_g=no
2534    CFLAGS="-g"
2535    cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541
2542 int
2543 main ()
2544 {
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558   (eval "$ac_compile") 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } && {
2565          test -z "$ac_c_werror_flag" ||
2566          test ! -s conftest.err
2567        } && test -s conftest.$ac_objext; then
2568   ac_cv_prog_cc_g=yes
2569 else
2570   $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573         CFLAGS=""
2574       cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 int
2582 main ()
2583 {
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2596 $as_echo "$ac_try_echo") >&5
2597   (eval "$ac_compile") 2>conftest.er1
2598   ac_status=$?
2599   grep -v '^ *+' conftest.er1 >conftest.err
2600   rm -f conftest.er1
2601   cat conftest.err >&5
2602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } && {
2604          test -z "$ac_c_werror_flag" ||
2605          test ! -s conftest.err
2606        } && test -s conftest.$ac_objext; then
2607   :
2608 else
2609   $as_echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612         ac_c_werror_flag=$ac_save_c_werror_flag
2613          CFLAGS="-g"
2614          cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h.  */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h.  */
2620
2621 int
2622 main ()
2623 {
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2631 case "(($ac_try" in
2632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633   *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2636 $as_echo "$ac_try_echo") >&5
2637   (eval "$ac_compile") 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } && {
2644          test -z "$ac_c_werror_flag" ||
2645          test ! -s conftest.err
2646        } && test -s conftest.$ac_objext; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662    ac_c_werror_flag=$ac_save_c_werror_flag
2663 fi
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 $as_echo "$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667   CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669   if test "$GCC" = yes; then
2670     CFLAGS="-g -O2"
2671   else
2672     CFLAGS="-g"
2673   fi
2674 else
2675   if test "$GCC" = yes; then
2676     CFLAGS="-O2"
2677   else
2678     CFLAGS=
2679   fi
2680 fi
2681 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684   $as_echo_n "(cached) " >&6
2685 else
2686   ac_cv_prog_cc_c89=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702      char **p;
2703      int i;
2704 {
2705   return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709   char *s;
2710   va_list v;
2711   va_start (v,p);
2712   s = g (p, va_arg (v,int));
2713   va_end (v);
2714   return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718    function prototypes and stuff, but not '\xHH' hex character constants.
2719    These don't provoke an error unfortunately, instead are silently treated
2720    as 'x'.  The following induces an error, until -std is added to get
2721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722    array size at least.  It's necessary to write '\x00'==0 to get something
2723    that's true only with -std.  */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727    inside strings and character constants.  */
2728 #define FOO(x) 'x'
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 int argc;
2736 char **argv;
2737 int
2738 main ()
2739 {
2740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747 do
2748   CC="$ac_save_CC $ac_arg"
2749   rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2756 $as_echo "$ac_try_echo") >&5
2757   (eval "$ac_compile") 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } && {
2764          test -z "$ac_c_werror_flag" ||
2765          test ! -s conftest.err
2766        } && test -s conftest.$ac_objext; then
2767   ac_cv_prog_cc_c89=$ac_arg
2768 else
2769   $as_echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772
2773 fi
2774
2775 rm -f core conftest.err conftest.$ac_objext
2776   test "x$ac_cv_prog_cc_c89" != "xno" && break
2777 done
2778 rm -f conftest.$ac_ext
2779 CC=$ac_save_CC
2780
2781 fi
2782 # AC_CACHE_VAL
2783 case "x$ac_cv_prog_cc_c89" in
2784   x)
2785     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2786 $as_echo "none needed" >&6; } ;;
2787   xno)
2788     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2789 $as_echo "unsupported" >&6; } ;;
2790   *)
2791     CC="$CC $ac_cv_prog_cc_c89"
2792     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2793 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2794 esac
2795
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2810 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2813   CPP=
2814 fi
2815 if test -z "$CPP"; then
2816   if test "${ac_cv_prog_CPP+set}" = set; then
2817   $as_echo_n "(cached) " >&6
2818 else
2819       # Double quotes because CPP needs to be expanded
2820     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2821     do
2822       ac_preproc_ok=false
2823 for ac_c_preproc_warn_flag in '' yes
2824 do
2825   # Use a header file that comes with gcc, so configuring glibc
2826   # with a fresh cross-compiler works.
2827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2828   # <limits.h> exists even on freestanding compilers.
2829   # On the NeXT, cc -E runs the code through the compiler's parser,
2830   # not just through cpp. "Syntax error" is here to catch this case.
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #ifdef __STDC__
2838 # include <limits.h>
2839 #else
2840 # include <assert.h>
2841 #endif
2842                      Syntax error
2843 _ACEOF
2844 if { (ac_try="$ac_cpp conftest.$ac_ext"
2845 case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2852   ac_status=$?
2853   grep -v '^ *+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } >/dev/null && {
2858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2859          test ! -s conftest.err
2860        }; then
2861   :
2862 else
2863   $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866   # Broken: fails on valid input.
2867 continue
2868 fi
2869
2870 rm -f conftest.err conftest.$ac_ext
2871
2872   # OK, works on sane cases.  Now check whether nonexistent headers
2873   # can be detected and how.
2874   cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880 #include <ac_nonexistent.h>
2881 _ACEOF
2882 if { (ac_try="$ac_cpp conftest.$ac_ext"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888 $as_echo "$ac_try_echo") >&5
2889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2890   ac_status=$?
2891   grep -v '^ *+' conftest.er1 >conftest.err
2892   rm -f conftest.er1
2893   cat conftest.err >&5
2894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); } >/dev/null && {
2896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2897          test ! -s conftest.err
2898        }; then
2899   # Broken: success on invalid input.
2900 continue
2901 else
2902   $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905   # Passes both tests.
2906 ac_preproc_ok=:
2907 break
2908 fi
2909
2910 rm -f conftest.err conftest.$ac_ext
2911
2912 done
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2916   break
2917 fi
2918
2919     done
2920     ac_cv_prog_CPP=$CPP
2921
2922 fi
2923   CPP=$ac_cv_prog_CPP
2924 else
2925   ac_cv_prog_CPP=$CPP
2926 fi
2927 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2928 $as_echo "$CPP" >&6; }
2929 ac_preproc_ok=false
2930 for ac_c_preproc_warn_flag in '' yes
2931 do
2932   # Use a header file that comes with gcc, so configuring glibc
2933   # with a fresh cross-compiler works.
2934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935   # <limits.h> exists even on freestanding compilers.
2936   # On the NeXT, cc -E runs the code through the compiler's parser,
2937   # not just through cpp. "Syntax error" is here to catch this case.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #ifdef __STDC__
2945 # include <limits.h>
2946 #else
2947 # include <assert.h>
2948 #endif
2949                      Syntax error
2950 _ACEOF
2951 if { (ac_try="$ac_cpp conftest.$ac_ext"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2957 $as_echo "$ac_try_echo") >&5
2958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } >/dev/null && {
2965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2966          test ! -s conftest.err
2967        }; then
2968   :
2969 else
2970   $as_echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973   # Broken: fails on valid input.
2974 continue
2975 fi
2976
2977 rm -f conftest.err conftest.$ac_ext
2978
2979   # OK, works on sane cases.  Now check whether nonexistent headers
2980   # can be detected and how.
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 #include <ac_nonexistent.h>
2988 _ACEOF
2989 if { (ac_try="$ac_cpp conftest.$ac_ext"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995 $as_echo "$ac_try_echo") >&5
2996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } >/dev/null && {
3003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3004          test ! -s conftest.err
3005        }; then
3006   # Broken: success on invalid input.
3007 continue
3008 else
3009   $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012   # Passes both tests.
3013 ac_preproc_ok=:
3014 break
3015 fi
3016
3017 rm -f conftest.err conftest.$ac_ext
3018
3019 done
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3023   :
3024 else
3025   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3030 See \`config.log' for more details." >&2;}
3031    { (exit 1); exit 1; }; }; }
3032 fi
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3042 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3043 if test "${ac_cv_path_GREP+set}" = set; then
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -z "$GREP"; then
3047   ac_path_GREP_found=false
3048   # Loop through the user's path and test for each of PROGNAME-LIST
3049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_prog in grep ggrep; do
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3057       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3058 # Check for GNU ac_path_GREP and select it if it is found.
3059   # Check for GNU $ac_path_GREP
3060 case `"$ac_path_GREP" --version 2>&1` in
3061 *GNU*)
3062   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3063 *)
3064   ac_count=0
3065   $as_echo_n 0123456789 >"conftest.in"
3066   while :
3067   do
3068     cat "conftest.in" "conftest.in" >"conftest.tmp"
3069     mv "conftest.tmp" "conftest.in"
3070     cp "conftest.in" "conftest.nl"
3071     $as_echo 'GREP' >> "conftest.nl"
3072     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3074     ac_count=`expr $ac_count + 1`
3075     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3076       # Best one so far, save it but keep looking for a better one
3077       ac_cv_path_GREP="$ac_path_GREP"
3078       ac_path_GREP_max=$ac_count
3079     fi
3080     # 10*(2^10) chars as input seems more than enough
3081     test $ac_count -gt 10 && break
3082   done
3083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3084 esac
3085
3086       $ac_path_GREP_found && break 3
3087     done
3088   done
3089 done
3090 IFS=$as_save_IFS
3091   if test -z "$ac_cv_path_GREP"; then
3092     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3093 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3094    { (exit 1); exit 1; }; }
3095   fi
3096 else
3097   ac_cv_path_GREP=$GREP
3098 fi
3099
3100 fi
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3102 $as_echo "$ac_cv_path_GREP" >&6; }
3103  GREP="$ac_cv_path_GREP"
3104
3105
3106 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3107 $as_echo_n "checking for egrep... " >&6; }
3108 if test "${ac_cv_path_EGREP+set}" = set; then
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3112    then ac_cv_path_EGREP="$GREP -E"
3113    else
3114      if test -z "$EGREP"; then
3115   ac_path_EGREP_found=false
3116   # Loop through the user's path and test for each of PROGNAME-LIST
3117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122   for ac_prog in egrep; do
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3125       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3126 # Check for GNU ac_path_EGREP and select it if it is found.
3127   # Check for GNU $ac_path_EGREP
3128 case `"$ac_path_EGREP" --version 2>&1` in
3129 *GNU*)
3130   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3131 *)
3132   ac_count=0
3133   $as_echo_n 0123456789 >"conftest.in"
3134   while :
3135   do
3136     cat "conftest.in" "conftest.in" >"conftest.tmp"
3137     mv "conftest.tmp" "conftest.in"
3138     cp "conftest.in" "conftest.nl"
3139     $as_echo 'EGREP' >> "conftest.nl"
3140     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3142     ac_count=`expr $ac_count + 1`
3143     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3144       # Best one so far, save it but keep looking for a better one
3145       ac_cv_path_EGREP="$ac_path_EGREP"
3146       ac_path_EGREP_max=$ac_count
3147     fi
3148     # 10*(2^10) chars as input seems more than enough
3149     test $ac_count -gt 10 && break
3150   done
3151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3152 esac
3153
3154       $ac_path_EGREP_found && break 3
3155     done
3156   done
3157 done
3158 IFS=$as_save_IFS
3159   if test -z "$ac_cv_path_EGREP"; then
3160     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3161 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3162    { (exit 1); exit 1; }; }
3163   fi
3164 else
3165   ac_cv_path_EGREP=$EGREP
3166 fi
3167
3168    fi
3169 fi
3170 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3171 $as_echo "$ac_cv_path_EGREP" >&6; }
3172  EGREP="$ac_cv_path_EGREP"
3173
3174
3175 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3176 $as_echo_n "checking for ANSI C header files... " >&6; }
3177 if test "${ac_cv_header_stdc+set}" = set; then
3178   $as_echo_n "(cached) " >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186 #include <stdlib.h>
3187 #include <stdarg.h>
3188 #include <string.h>
3189 #include <float.h>
3190
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206 $as_echo "$ac_try_echo") >&5
3207   (eval "$ac_compile") 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } && {
3214          test -z "$ac_c_werror_flag" ||
3215          test ! -s conftest.err
3216        } && test -s conftest.$ac_objext; then
3217   ac_cv_header_stdc=yes
3218 else
3219   $as_echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222         ac_cv_header_stdc=no
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226
3227 if test $ac_cv_header_stdc = yes; then
3228   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #include <string.h>
3236
3237 _ACEOF
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239   $EGREP "memchr" >/dev/null 2>&1; then
3240   :
3241 else
3242   ac_cv_header_stdc=no
3243 fi
3244 rm -f conftest*
3245
3246 fi
3247
3248 if test $ac_cv_header_stdc = yes; then
3249   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #include <stdlib.h>
3257
3258 _ACEOF
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260   $EGREP "free" >/dev/null 2>&1; then
3261   :
3262 else
3263   ac_cv_header_stdc=no
3264 fi
3265 rm -f conftest*
3266
3267 fi
3268
3269 if test $ac_cv_header_stdc = yes; then
3270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3271   if test "$cross_compiling" = yes; then
3272   :
3273 else
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ctype.h>
3281 #include <stdlib.h>
3282 #if ((' ' & 0x0FF) == 0x020)
3283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3285 #else
3286 # define ISLOWER(c) \
3287                    (('a' <= (c) && (c) <= 'i') \
3288                      || ('j' <= (c) && (c) <= 'r') \
3289                      || ('s' <= (c) && (c) <= 'z'))
3290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3291 #endif
3292
3293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3294 int
3295 main ()
3296 {
3297   int i;
3298   for (i = 0; i < 256; i++)
3299     if (XOR (islower (i), ISLOWER (i))
3300         || toupper (i) != TOUPPER (i))
3301       return 2;
3302   return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest$ac_exeext
3306 if { (ac_try="$ac_link"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313   (eval "$ac_link") 2>&5
3314   ac_status=$?
3315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3317   { (case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323   (eval "$ac_try") 2>&5
3324   ac_status=$?
3325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; }; then
3327   :
3328 else
3329   $as_echo "$as_me: program exited with status $ac_status" >&5
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ( exit $ac_status )
3334 ac_cv_header_stdc=no
3335 fi
3336 rm -rf conftest.dSYM
3337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340
3341 fi
3342 fi
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3344 $as_echo "$ac_cv_header_stdc" >&6; }
3345 if test $ac_cv_header_stdc = yes; then
3346
3347 cat >>confdefs.h <<\_ACEOF
3348 #define STDC_HEADERS 1
3349 _ACEOF
3350
3351 fi
3352
3353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3364                   inttypes.h stdint.h unistd.h
3365 do
3366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3368 $as_echo_n "checking for $ac_header... " >&6; }
3369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3370   $as_echo_n "(cached) " >&6
3371 else
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 $ac_includes_default
3379
3380 #include <$ac_header>
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390   (eval "$ac_compile") 2>conftest.er1
3391   ac_status=$?
3392   grep -v '^ *+' conftest.er1 >conftest.err
3393   rm -f conftest.er1
3394   cat conftest.err >&5
3395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); } && {
3397          test -z "$ac_c_werror_flag" ||
3398          test ! -s conftest.err
3399        } && test -s conftest.$ac_objext; then
3400   eval "$as_ac_Header=yes"
3401 else
3402   $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405         eval "$as_ac_Header=no"
3406 fi
3407
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 ac_res=`eval 'as_val=${'$as_ac_Header'}
3411                  $as_echo "$as_val"'`
3412                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3413 $as_echo "$ac_res" >&6; }
3414 as_val=`eval 'as_val=${'$as_ac_Header'}
3415                  $as_echo "$as_val"'`
3416    if test "x$as_val" = x""yes; then
3417   cat >>confdefs.h <<_ACEOF
3418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3419 _ACEOF
3420
3421 fi
3422
3423 done
3424
3425
3426
3427   if test "${ac_cv_header_minix_config_h+set}" = set; then
3428   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3429 $as_echo_n "checking for minix/config.h... " >&6; }
3430 if test "${ac_cv_header_minix_config_h+set}" = set; then
3431   $as_echo_n "(cached) " >&6
3432 fi
3433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3434 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3435 else
3436   # Is the header compilable?
3437 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3438 $as_echo_n "checking minix/config.h usability... " >&6; }
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 $ac_includes_default
3446 #include <minix/config.h>
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (ac_try="$ac_compile"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456   (eval "$ac_compile") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } && {
3463          test -z "$ac_c_werror_flag" ||
3464          test ! -s conftest.err
3465        } && test -s conftest.$ac_objext; then
3466   ac_header_compiler=yes
3467 else
3468   $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471         ac_header_compiler=no
3472 fi
3473
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3476 $as_echo "$ac_header_compiler" >&6; }
3477
3478 # Is the header present?
3479 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3480 $as_echo_n "checking minix/config.h presence... " >&6; }
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487 #include <minix/config.h>
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } >/dev/null && {
3503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3504          test ! -s conftest.err
3505        }; then
3506   ac_header_preproc=yes
3507 else
3508   $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511   ac_header_preproc=no
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3516 $as_echo "$ac_header_preproc" >&6; }
3517
3518 # So?  What about this header?
3519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3520   yes:no: )
3521     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3522 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3523     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3524 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3525     ac_header_preproc=yes
3526     ;;
3527   no:yes:* )
3528     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3529 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3530     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3531 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3532     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3533 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3534     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3535 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3536     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3537 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3538     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3539 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3540     ( cat <<\_ASBOX
3541 ## ----------------------------------- ##
3542 ## Report this to andreas@eversberg.eu ##
3543 ## ----------------------------------- ##
3544 _ASBOX
3545      ) | sed "s/^/$as_me: WARNING:     /" >&2
3546     ;;
3547 esac
3548 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 $as_echo_n "checking for minix/config.h... " >&6; }
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551   $as_echo_n "(cached) " >&6
3552 else
3553   ac_cv_header_minix_config_h=$ac_header_preproc
3554 fi
3555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3557
3558 fi
3559 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3560   MINIX=yes
3561 else
3562   MINIX=
3563 fi
3564
3565
3566   if test "$MINIX" = yes; then
3567
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3570 _ACEOF
3571
3572
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3575 _ACEOF
3576
3577
3578 cat >>confdefs.h <<\_ACEOF
3579 #define _MINIX 1
3580 _ACEOF
3581
3582   fi
3583
3584
3585
3586   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589   $as_echo_n "(cached) " >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597
3598 #         define __EXTENSIONS__ 1
3599           $ac_includes_default
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3615 $as_echo "$ac_try_echo") >&5
3616   (eval "$ac_compile") 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } && {
3623          test -z "$ac_c_werror_flag" ||
3624          test ! -s conftest.err
3625        } && test -s conftest.$ac_objext; then
3626   ac_cv_safe_to_define___extensions__=yes
3627 else
3628   $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631         ac_cv_safe_to_define___extensions__=no
3632 fi
3633
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 fi
3636 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3637 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3638   test $ac_cv_safe_to_define___extensions__ = yes &&
3639     cat >>confdefs.h <<\_ACEOF
3640 #define __EXTENSIONS__ 1
3641 _ACEOF
3642
3643   cat >>confdefs.h <<\_ACEOF
3644 #define _ALL_SOURCE 1
3645 _ACEOF
3646
3647   cat >>confdefs.h <<\_ACEOF
3648 #define _GNU_SOURCE 1
3649 _ACEOF
3650
3651   cat >>confdefs.h <<\_ACEOF
3652 #define _POSIX_PTHREAD_SEMANTICS 1
3653 _ACEOF
3654
3655   cat >>confdefs.h <<\_ACEOF
3656 #define _TANDEM_SOURCE 1
3657 _ACEOF
3658
3659
3660 # AC_USE_SYSTEM_EXTENSIONS
3661 am__api_version="1.9"
3662 ac_aux_dir=
3663 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3664   if test -f "$ac_dir/install-sh"; then
3665     ac_aux_dir=$ac_dir
3666     ac_install_sh="$ac_aux_dir/install-sh -c"
3667     break
3668   elif test -f "$ac_dir/install.sh"; then
3669     ac_aux_dir=$ac_dir
3670     ac_install_sh="$ac_aux_dir/install.sh -c"
3671     break
3672   elif test -f "$ac_dir/shtool"; then
3673     ac_aux_dir=$ac_dir
3674     ac_install_sh="$ac_aux_dir/shtool install -c"
3675     break
3676   fi
3677 done
3678 if test -z "$ac_aux_dir"; then
3679   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3680 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3681    { (exit 1); exit 1; }; }
3682 fi
3683
3684 # These three variables are undocumented and unsupported,
3685 # and are intended to be withdrawn in a future Autoconf release.
3686 # They can cause serious problems if a builder's source tree is in a directory
3687 # whose full name contains unusual characters.
3688 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3689 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3690 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3691
3692
3693 # Find a good install program.  We prefer a C program (faster),
3694 # so one script is as good as another.  But avoid the broken or
3695 # incompatible versions:
3696 # SysV /etc/install, /usr/sbin/install
3697 # SunOS /usr/etc/install
3698 # IRIX /sbin/install
3699 # AIX /bin/install
3700 # AmigaOS /C/install, which installs bootblocks on floppy discs
3701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3704 # OS/2's system install, which has a completely different semantic
3705 # ./install, which can be erroneously created by make from ./install.sh.
3706 # Reject install programs that cannot install multiple files.
3707 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3709 if test -z "$INSTALL"; then
3710 if test "${ac_cv_path_install+set}" = set; then
3711   $as_echo_n "(cached) " >&6
3712 else
3713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718   # Account for people who put trailing slashes in PATH elements.
3719 case $as_dir/ in
3720   ./ | .// | /cC/* | \
3721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3722   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3723   /usr/ucb/* ) ;;
3724   *)
3725     # OSF1 and SCO ODT 3.0 have their own names for install.
3726     # Don't use installbsd from OSF since it installs stuff as root
3727     # by default.
3728     for ac_prog in ginstall scoinst install; do
3729       for ac_exec_ext in '' $ac_executable_extensions; do
3730         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3731           if test $ac_prog = install &&
3732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3733             # AIX install.  It has an incompatible calling convention.
3734             :
3735           elif test $ac_prog = install &&
3736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3737             # program-specific install script used by HP pwplus--don't use.
3738             :
3739           else
3740             rm -rf conftest.one conftest.two conftest.dir
3741             echo one > conftest.one
3742             echo two > conftest.two
3743             mkdir conftest.dir
3744             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3745               test -s conftest.one && test -s conftest.two &&
3746               test -s conftest.dir/conftest.one &&
3747               test -s conftest.dir/conftest.two
3748             then
3749               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3750               break 3
3751             fi
3752           fi
3753         fi
3754       done
3755     done
3756     ;;
3757 esac
3758
3759 done
3760 IFS=$as_save_IFS
3761
3762 rm -rf conftest.one conftest.two conftest.dir
3763
3764 fi
3765   if test "${ac_cv_path_install+set}" = set; then
3766     INSTALL=$ac_cv_path_install
3767   else
3768     # As a last resort, use the slow shell script.  Don't cache a
3769     # value for INSTALL within a source directory, because that will
3770     # break other packages using the cache if that directory is
3771     # removed, or if the value is a relative name.
3772     INSTALL=$ac_install_sh
3773   fi
3774 fi
3775 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3776 $as_echo "$INSTALL" >&6; }
3777
3778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3779 # It thinks the first close brace ends the variable substitution.
3780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3781
3782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3783
3784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3785
3786 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3787 $as_echo_n "checking whether build environment is sane... " >&6; }
3788 # Just in case
3789 sleep 1
3790 echo timestamp > conftest.file
3791 # Do `set' in a subshell so we don't clobber the current shell's
3792 # arguments.  Must try -L first in case configure is actually a
3793 # symlink; some systems play weird games with the mod time of symlinks
3794 # (eg FreeBSD returns the mod time of the symlink's containing
3795 # directory).
3796 if (
3797    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3798    if test "$*" = "X"; then
3799       # -L didn't work.
3800       set X `ls -t $srcdir/configure conftest.file`
3801    fi
3802    rm -f conftest.file
3803    if test "$*" != "X $srcdir/configure conftest.file" \
3804       && test "$*" != "X conftest.file $srcdir/configure"; then
3805
3806       # If neither matched, then we have a broken ls.  This can happen
3807       # if, for instance, CONFIG_SHELL is bash and it inherits a
3808       # broken ls alias from the environment.  This has actually
3809       # happened.  Such a system could not be considered "sane".
3810       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3811 alias in your environment" >&5
3812 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3813 alias in your environment" >&2;}
3814    { (exit 1); exit 1; }; }
3815    fi
3816
3817    test "$2" = conftest.file
3818    )
3819 then
3820    # Ok.
3821    :
3822 else
3823    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3824 Check your system clock" >&5
3825 $as_echo "$as_me: error: newly created file is older than distributed files!
3826 Check your system clock" >&2;}
3827    { (exit 1); exit 1; }; }
3828 fi
3829 { $as_echo "$as_me:$LINENO: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 test "$program_prefix" != NONE &&
3832   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3833 # Use a double $ so make ignores it.
3834 test "$program_suffix" != NONE &&
3835   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3836 # Double any \ or $.
3837 # By default was `s,x,x', remove it if useless.
3838 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3839 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3840
3841 # expand $ac_aux_dir to an absolute path
3842 am_aux_dir=`cd $ac_aux_dir && pwd`
3843
3844 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3845 # Use eval to expand $SHELL
3846 if eval "$MISSING --run true"; then
3847   am_missing_run="$MISSING --run "
3848 else
3849   am_missing_run=
3850   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3851 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3852 fi
3853
3854 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3855   # We used to keeping the `.' as first argument, in order to
3856   # allow $(mkdir_p) to be used without argument.  As in
3857   #   $(mkdir_p) $(somedir)
3858   # where $(somedir) is conditionally defined.  However this is wrong
3859   # for two reasons:
3860   #  1. if the package is installed by a user who cannot write `.'
3861   #     make install will fail,
3862   #  2. the above comment should most certainly read
3863   #     $(mkdir_p) $(DESTDIR)$(somedir)
3864   #     so it does not work when $(somedir) is undefined and
3865   #     $(DESTDIR) is not.
3866   #  To support the latter case, we have to write
3867   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3868   #  so the `.' trick is pointless.
3869   mkdir_p='mkdir -p --'
3870 else
3871   # On NextStep and OpenStep, the `mkdir' command does not
3872   # recognize any option.  It will interpret all options as
3873   # directories to create, and then abort because `.' already
3874   # exists.
3875   for d in ./-p ./--version;
3876   do
3877     test -d $d && rmdir $d
3878   done
3879   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3880   if test -f "$ac_aux_dir/mkinstalldirs"; then
3881     mkdir_p='$(mkinstalldirs)'
3882   else
3883     mkdir_p='$(install_sh) -d'
3884   fi
3885 fi
3886
3887 for ac_prog in gawk mawk nawk awk
3888 do
3889   # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_AWK+set}" = set; then
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$AWK"; then
3897   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904   for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     ac_cv_prog_AWK="$ac_prog"
3907     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911 done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 AWK=$ac_cv_prog_AWK
3917 if test -n "$AWK"; then
3918   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3919 $as_echo "$AWK" >&6; }
3920 else
3921   { $as_echo "$as_me:$LINENO: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926   test -n "$AWK" && break
3927 done
3928
3929 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3931 set x ${MAKE-make}
3932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3934   $as_echo_n "(cached) " >&6
3935 else
3936   cat >conftest.make <<\_ACEOF
3937 SHELL = /bin/sh
3938 all:
3939         @echo '@@@%%%=$(MAKE)=@@@%%%'
3940 _ACEOF
3941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3943   *@@@%%%=?*=@@@%%%*)
3944     eval ac_cv_prog_make_${ac_make}_set=yes;;
3945   *)
3946     eval ac_cv_prog_make_${ac_make}_set=no;;
3947 esac
3948 rm -f conftest.make
3949 fi
3950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3951   { $as_echo "$as_me:$LINENO: result: yes" >&5
3952 $as_echo "yes" >&6; }
3953   SET_MAKE=
3954 else
3955   { $as_echo "$as_me:$LINENO: result: no" >&5
3956 $as_echo "no" >&6; }
3957   SET_MAKE="MAKE=${MAKE-make}"
3958 fi
3959
3960 rm -rf .tst 2>/dev/null
3961 mkdir .tst 2>/dev/null
3962 if test -d .tst; then
3963   am__leading_dot=.
3964 else
3965   am__leading_dot=_
3966 fi
3967 rmdir .tst 2>/dev/null
3968
3969 DEPDIR="${am__leading_dot}deps"
3970
3971 ac_config_commands="$ac_config_commands depfiles"
3972
3973
3974 am_make=${MAKE-make}
3975 cat > confinc << 'END'
3976 am__doit:
3977         @echo done
3978 .PHONY: am__doit
3979 END
3980 # If we don't find an include directive, just comment out the code.
3981 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3982 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3983 am__include="#"
3984 am__quote=
3985 _am_result=none
3986 # First try GNU make style include.
3987 echo "include confinc" > confmf
3988 # We grep out `Entering directory' and `Leaving directory'
3989 # messages which can occur if `w' ends up in MAKEFLAGS.
3990 # In particular we don't look at `^make:' because GNU make might
3991 # be invoked under some other name (usually "gmake"), in which
3992 # case it prints its new name instead of `make'.
3993 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3994    am__include=include
3995    am__quote=
3996    _am_result=GNU
3997 fi
3998 # Now try BSD make style include.
3999 if test "$am__include" = "#"; then
4000    echo '.include "confinc"' > confmf
4001    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4002       am__include=.include
4003       am__quote="\""
4004       _am_result=BSD
4005    fi
4006 fi
4007
4008
4009 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4010 $as_echo "$_am_result" >&6; }
4011 rm -f confinc confmf
4012
4013 # Check whether --enable-dependency-tracking was given.
4014 if test "${enable_dependency_tracking+set}" = set; then
4015   enableval=$enable_dependency_tracking;
4016 fi
4017
4018 if test "x$enable_dependency_tracking" != xno; then
4019   am_depcomp="$ac_aux_dir/depcomp"
4020   AMDEPBACKSLASH='\'
4021 fi
4022
4023
4024 if test "x$enable_dependency_tracking" != xno; then
4025   AMDEP_TRUE=
4026   AMDEP_FALSE='#'
4027 else
4028   AMDEP_TRUE='#'
4029   AMDEP_FALSE=
4030 fi
4031
4032
4033
4034 # test to see if srcdir already configured
4035 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4036    test -f $srcdir/config.status; then
4037   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4038 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 # test whether we have cygpath
4043 if test -z "$CYGPATH_W"; then
4044   if (cygpath --version) >/dev/null 2>/dev/null; then
4045     CYGPATH_W='cygpath -w'
4046   else
4047     CYGPATH_W=echo
4048   fi
4049 fi
4050
4051
4052 # Define the identity of the package.
4053  PACKAGE=lcr
4054  VERSION=1.7
4055
4056
4057 cat >>confdefs.h <<_ACEOF
4058 #define PACKAGE "$PACKAGE"
4059 _ACEOF
4060
4061
4062 cat >>confdefs.h <<_ACEOF
4063 #define VERSION "$VERSION"
4064 _ACEOF
4065
4066 # Some tools Automake needs.
4067
4068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4069
4070
4071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4072
4073
4074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4075
4076
4077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4078
4079
4080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4081
4082 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4083
4084 # Installed binaries are usually stripped using `strip' when the user
4085 # run `make install-strip'.  However `strip' might not be the right
4086 # tool to use in cross-compilation environments, therefore Automake
4087 # will honor the `STRIP' environment variable to overrule this program.
4088 if test "$cross_compiling" != no; then
4089   if test -n "$ac_tool_prefix"; then
4090   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}strip; ac_word=$2
4092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_STRIP+set}" = set; then
4095   $as_echo_n "(cached) " >&6
4096 else
4097   if test -n "$STRIP"; then
4098   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109     break 2
4110   fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 STRIP=$ac_cv_prog_STRIP
4118 if test -n "$STRIP"; then
4119   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4120 $as_echo "$STRIP" >&6; }
4121 else
4122   { $as_echo "$as_me:$LINENO: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 if test -z "$ac_cv_prog_STRIP"; then
4129   ac_ct_STRIP=$STRIP
4130   # Extract the first word of "strip", so it can be a program name with args.
4131 set dummy strip; ac_word=$2
4132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -n "$ac_ct_STRIP"; then
4138   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147     ac_cv_prog_ac_ct_STRIP="strip"
4148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4158 if test -n "$ac_ct_STRIP"; then
4159   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4160 $as_echo "$ac_ct_STRIP" >&6; }
4161 else
4162   { $as_echo "$as_me:$LINENO: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166   if test "x$ac_ct_STRIP" = x; then
4167     STRIP=":"
4168   else
4169     case $cross_compiling:$ac_tool_warned in
4170 yes:)
4171 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175     STRIP=$ac_ct_STRIP
4176   fi
4177 else
4178   STRIP="$ac_cv_prog_STRIP"
4179 fi
4180
4181 fi
4182 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4183
4184 # We need awk for the "check" target.  The system "awk" is bad on
4185 # some platforms.
4186 # Always define AMTAR for backward compatibility.
4187
4188 AMTAR=${AMTAR-"${am_missing_run}tar"}
4189
4190 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4191
4192
4193
4194
4195 depcc="$CC"   am_compiler_list=
4196
4197 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4200   $as_echo_n "(cached) " >&6
4201 else
4202   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203   # We make a subdir and do the tests there.  Otherwise we can end up
4204   # making bogus files that we don't know about and never remove.  For
4205   # instance it was reported that on HP-UX the gcc test will end up
4206   # making a dummy file named `D' -- because `-MD' means `put the output
4207   # in D'.
4208   mkdir conftest.dir
4209   # Copy depcomp to subdir because otherwise we won't find it if we're
4210   # using a relative directory.
4211   cp "$am_depcomp" conftest.dir
4212   cd conftest.dir
4213   # We will build objects and dependencies in a subdirectory because
4214   # it helps to detect inapplicable dependency modes.  For instance
4215   # both Tru64's cc and ICC support -MD to output dependencies as a
4216   # side effect of compilation, but ICC will put the dependencies in
4217   # the current directory while Tru64 will put them in the object
4218   # directory.
4219   mkdir sub
4220
4221   am_cv_CC_dependencies_compiler_type=none
4222   if test "$am_compiler_list" = ""; then
4223      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4224   fi
4225   for depmode in $am_compiler_list; do
4226     # Setup a source with many dependencies, because some compilers
4227     # like to wrap large dependency lists on column 80 (with \), and
4228     # we should not choose a depcomp mode which is confused by this.
4229     #
4230     # We need to recreate these files for each test, as the compiler may
4231     # overwrite some of them when testing with obscure command lines.
4232     # This happens at least with the AIX C compiler.
4233     : > sub/conftest.c
4234     for i in 1 2 3 4 5 6; do
4235       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4237       # Solaris 8's {/usr,}/bin/sh.
4238       touch sub/conftst$i.h
4239     done
4240     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241
4242     case $depmode in
4243     nosideeffect)
4244       # after this tag, mechanisms are not by side-effect, so they'll
4245       # only be used when explicitly requested
4246       if test "x$enable_dependency_tracking" = xyes; then
4247         continue
4248       else
4249         break
4250       fi
4251       ;;
4252     none) break ;;
4253     esac
4254     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4255     # mode.  It turns out that the SunPro C++ compiler does not properly
4256     # handle `-M -o', and we need to detect this.
4257     if depmode=$depmode \
4258        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4259        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4260        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4261          >/dev/null 2>conftest.err &&
4262        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4264        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265       # icc doesn't choke on unknown options, it will just issue warnings
4266       # or remarks (even with -Werror).  So we grep stderr for any message
4267       # that says an option was ignored or not supported.
4268       # When given -MP, icc 7.0 and 7.1 complain thusly:
4269       #   icc: Command line warning: ignoring option '-M'; no argument required
4270       # The diagnosis changed in icc 8.0:
4271       #   icc: Command line remark: option '-MP' not supported
4272       if (grep 'ignoring option' conftest.err ||
4273           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274         am_cv_CC_dependencies_compiler_type=$depmode
4275         break
4276       fi
4277     fi
4278   done
4279
4280   cd ..
4281   rm -rf conftest.dir
4282 else
4283   am_cv_CC_dependencies_compiler_type=none
4284 fi
4285
4286 fi
4287 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4288 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4289 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4290
4291
4292
4293 if
4294   test "x$enable_dependency_tracking" != xno \
4295   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4296   am__fastdepCC_TRUE=
4297   am__fastdepCC_FALSE='#'
4298 else
4299   am__fastdepCC_TRUE='#'
4300   am__fastdepCC_FALSE=
4301 fi
4302
4303
4304
4305
4306
4307
4308 # Checks for programs.
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4315 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4316 # On Suns, sometimes $CPP names a directory.
4317 if test -n "$CPP" && test -d "$CPP"; then
4318   CPP=
4319 fi
4320 if test -z "$CPP"; then
4321   if test "${ac_cv_prog_CPP+set}" = set; then
4322   $as_echo_n "(cached) " >&6
4323 else
4324       # Double quotes because CPP needs to be expanded
4325     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326     do
4327       ac_preproc_ok=false
4328 for ac_c_preproc_warn_flag in '' yes
4329 do
4330   # Use a header file that comes with gcc, so configuring glibc
4331   # with a fresh cross-compiler works.
4332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333   # <limits.h> exists even on freestanding compilers.
4334   # On the NeXT, cc -E runs the code through the compiler's parser,
4335   # not just through cpp. "Syntax error" is here to catch this case.
4336   cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347                      Syntax error
4348 _ACEOF
4349 if { (ac_try="$ac_cpp conftest.$ac_ext"
4350 case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } >/dev/null && {
4363          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364          test ! -s conftest.err
4365        }; then
4366   :
4367 else
4368   $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371   # Broken: fails on valid input.
4372 continue
4373 fi
4374
4375 rm -f conftest.err conftest.$ac_ext
4376
4377   # OK, works on sane cases.  Now check whether nonexistent headers
4378   # can be detected and how.
4379   cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <ac_nonexistent.h>
4386 _ACEOF
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4388 case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4393 $as_echo "$ac_try_echo") >&5
4394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } >/dev/null && {
4401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4402          test ! -s conftest.err
4403        }; then
4404   # Broken: success on invalid input.
4405 continue
4406 else
4407   $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410   # Passes both tests.
4411 ac_preproc_ok=:
4412 break
4413 fi
4414
4415 rm -f conftest.err conftest.$ac_ext
4416
4417 done
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then
4421   break
4422 fi
4423
4424     done
4425     ac_cv_prog_CPP=$CPP
4426
4427 fi
4428   CPP=$ac_cv_prog_CPP
4429 else
4430   ac_cv_prog_CPP=$CPP
4431 fi
4432 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4434 ac_preproc_ok=false
4435 for ac_c_preproc_warn_flag in '' yes
4436 do
4437   # Use a header file that comes with gcc, so configuring glibc
4438   # with a fresh cross-compiler works.
4439   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440   # <limits.h> exists even on freestanding compilers.
4441   # On the NeXT, cc -E runs the code through the compiler's parser,
4442   # not just through cpp. "Syntax error" is here to catch this case.
4443   cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h.  */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h.  */
4449 #ifdef __STDC__
4450 # include <limits.h>
4451 #else
4452 # include <assert.h>
4453 #endif
4454                      Syntax error
4455 _ACEOF
4456 if { (ac_try="$ac_cpp conftest.$ac_ext"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462 $as_echo "$ac_try_echo") >&5
4463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } >/dev/null && {
4470          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471          test ! -s conftest.err
4472        }; then
4473   :
4474 else
4475   $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478   # Broken: fails on valid input.
4479 continue
4480 fi
4481
4482 rm -f conftest.err conftest.$ac_ext
4483
4484   # OK, works on sane cases.  Now check whether nonexistent headers
4485   # can be detected and how.
4486   cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 #include <ac_nonexistent.h>
4493 _ACEOF
4494 if { (ac_try="$ac_cpp conftest.$ac_ext"
4495 case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } >/dev/null && {
4508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509          test ! -s conftest.err
4510        }; then
4511   # Broken: success on invalid input.
4512 continue
4513 else
4514   $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517   # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4520 fi
4521
4522 rm -f conftest.err conftest.$ac_ext
4523
4524 done
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then
4528   :
4529 else
4530   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log' for more details." >&5
4534 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4535 See \`config.log' for more details." >&2;}
4536    { (exit 1); exit 1; }; }; }
4537 fi
4538
4539 ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545 ac_ext=cpp
4546 ac_cpp='$CXXCPP $CPPFLAGS'
4547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4550 if test -z "$CXX"; then
4551   if test -n "$CCC"; then
4552     CXX=$CCC
4553   else
4554     if test -n "$ac_tool_prefix"; then
4555   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4556   do
4557     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_CXX+set}" = set; then
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -n "$CXX"; then
4565   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4575     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 CXX=$ac_cv_prog_CXX
4585 if test -n "$CXX"; then
4586   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4587 $as_echo "$CXX" >&6; }
4588 else
4589   { $as_echo "$as_me:$LINENO: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593
4594     test -n "$CXX" && break
4595   done
4596 fi
4597 if test -z "$CXX"; then
4598   ac_ct_CXX=$CXX
4599   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4600 do
4601   # Extract the first word of "$ac_prog", so it can be a program name with args.
4602 set dummy $ac_prog; ac_word=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if test -n "$ac_ct_CXX"; then
4609   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_ac_ct_CXX="$ac_prog"
4619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4629 if test -n "$ac_ct_CXX"; then
4630   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4631 $as_echo "$ac_ct_CXX" >&6; }
4632 else
4633   { $as_echo "$as_me:$LINENO: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638   test -n "$ac_ct_CXX" && break
4639 done
4640
4641   if test "x$ac_ct_CXX" = x; then
4642     CXX="g++"
4643   else
4644     case $cross_compiling:$ac_tool_warned in
4645 yes:)
4646 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648 ac_tool_warned=yes ;;
4649 esac
4650     CXX=$ac_ct_CXX
4651   fi
4652 fi
4653
4654   fi
4655 fi
4656 # Provide some information about the compiler.
4657 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4658 set X $ac_compile
4659 ac_compiler=$2
4660 { (ac_try="$ac_compiler --version >&5"
4661 case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667   (eval "$ac_compiler --version >&5") 2>&5
4668   ac_status=$?
4669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }
4671 { (ac_try="$ac_compiler -v >&5"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4677 $as_echo "$ac_try_echo") >&5
4678   (eval "$ac_compiler -v >&5") 2>&5
4679   ac_status=$?
4680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }
4682 { (ac_try="$ac_compiler -V >&5"
4683 case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688 $as_echo "$ac_try_echo") >&5
4689   (eval "$ac_compiler -V >&5") 2>&5
4690   ac_status=$?
4691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }
4693
4694 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4697   $as_echo_n "(cached) " >&6
4698 else
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705
4706 int
4707 main ()
4708 {
4709 #ifndef __GNUC__
4710        choke me
4711 #endif
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (ac_try="$ac_compile"
4719 case "(($ac_try" in
4720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721   *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725   (eval "$ac_compile") 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } && {
4732          test -z "$ac_cxx_werror_flag" ||
4733          test ! -s conftest.err
4734        } && test -s conftest.$ac_objext; then
4735   ac_compiler_gnu=yes
4736 else
4737   $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740         ac_compiler_gnu=no
4741 fi
4742
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4745
4746 fi
4747 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4748 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4749 if test $ac_compiler_gnu = yes; then
4750   GXX=yes
4751 else
4752   GXX=
4753 fi
4754 ac_test_CXXFLAGS=${CXXFLAGS+set}
4755 ac_save_CXXFLAGS=$CXXFLAGS
4756 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4757 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4758 if test "${ac_cv_prog_cxx_g+set}" = set; then
4759   $as_echo_n "(cached) " >&6
4760 else
4761   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4762    ac_cxx_werror_flag=yes
4763    ac_cv_prog_cxx_g=no
4764    CXXFLAGS="-g"
4765    cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771
4772 int
4773 main ()
4774 {
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788   (eval "$ac_compile") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } && {
4795          test -z "$ac_cxx_werror_flag" ||
4796          test ! -s conftest.err
4797        } && test -s conftest.$ac_objext; then
4798   ac_cv_prog_cxx_g=yes
4799 else
4800   $as_echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803         CXXFLAGS=""
4804       cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810
4811 int
4812 main ()
4813 {
4814
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827   (eval "$ac_compile") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && {
4834          test -z "$ac_cxx_werror_flag" ||
4835          test ! -s conftest.err
4836        } && test -s conftest.$ac_objext; then
4837   :
4838 else
4839   $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4843          CXXFLAGS="-g"
4844          cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850
4851 int
4852 main ()
4853 {
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4861 case "(($ac_try" in
4862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863   *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867   (eval "$ac_compile") 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } && {
4874          test -z "$ac_cxx_werror_flag" ||
4875          test ! -s conftest.err
4876        } && test -s conftest.$ac_objext; then
4877   ac_cv_prog_cxx_g=yes
4878 else
4879   $as_echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882
4883 fi
4884
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 fi
4887
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4893 fi
4894 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4896 if test "$ac_test_CXXFLAGS" = set; then
4897   CXXFLAGS=$ac_save_CXXFLAGS
4898 elif test $ac_cv_prog_cxx_g = yes; then
4899   if test "$GXX" = yes; then
4900     CXXFLAGS="-g -O2"
4901   else
4902     CXXFLAGS="-g"
4903   fi
4904 else
4905   if test "$GXX" = yes; then
4906     CXXFLAGS="-O2"
4907   else
4908     CXXFLAGS=
4909   fi
4910 fi
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917 depcc="$CXX"  am_compiler_list=
4918
4919 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4920 $as_echo_n "checking dependency style of $depcc... " >&6; }
4921 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4922   $as_echo_n "(cached) " >&6
4923 else
4924   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4925   # We make a subdir and do the tests there.  Otherwise we can end up
4926   # making bogus files that we don't know about and never remove.  For
4927   # instance it was reported that on HP-UX the gcc test will end up
4928   # making a dummy file named `D' -- because `-MD' means `put the output
4929   # in D'.
4930   mkdir conftest.dir
4931   # Copy depcomp to subdir because otherwise we won't find it if we're
4932   # using a relative directory.
4933   cp "$am_depcomp" conftest.dir
4934   cd conftest.dir
4935   # We will build objects and dependencies in a subdirectory because
4936   # it helps to detect inapplicable dependency modes.  For instance
4937   # both Tru64's cc and ICC support -MD to output dependencies as a
4938   # side effect of compilation, but ICC will put the dependencies in
4939   # the current directory while Tru64 will put them in the object
4940   # directory.
4941   mkdir sub
4942
4943   am_cv_CXX_dependencies_compiler_type=none
4944   if test "$am_compiler_list" = ""; then
4945      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4946   fi
4947   for depmode in $am_compiler_list; do
4948     # Setup a source with many dependencies, because some compilers
4949     # like to wrap large dependency lists on column 80 (with \), and
4950     # we should not choose a depcomp mode which is confused by this.
4951     #
4952     # We need to recreate these files for each test, as the compiler may
4953     # overwrite some of them when testing with obscure command lines.
4954     # This happens at least with the AIX C compiler.
4955     : > sub/conftest.c
4956     for i in 1 2 3 4 5 6; do
4957       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959       # Solaris 8's {/usr,}/bin/sh.
4960       touch sub/conftst$i.h
4961     done
4962     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4963
4964     case $depmode in
4965     nosideeffect)
4966       # after this tag, mechanisms are not by side-effect, so they'll
4967       # only be used when explicitly requested
4968       if test "x$enable_dependency_tracking" = xyes; then
4969         continue
4970       else
4971         break
4972       fi
4973       ;;
4974     none) break ;;
4975     esac
4976     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4977     # mode.  It turns out that the SunPro C++ compiler does not properly
4978     # handle `-M -o', and we need to detect this.
4979     if depmode=$depmode \
4980        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4981        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4982        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4983          >/dev/null 2>conftest.err &&
4984        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4985        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4986        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4987       # icc doesn't choke on unknown options, it will just issue warnings
4988       # or remarks (even with -Werror).  So we grep stderr for any message
4989       # that says an option was ignored or not supported.
4990       # When given -MP, icc 7.0 and 7.1 complain thusly:
4991       #   icc: Command line warning: ignoring option '-M'; no argument required
4992       # The diagnosis changed in icc 8.0:
4993       #   icc: Command line remark: option '-MP' not supported
4994       if (grep 'ignoring option' conftest.err ||
4995           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4996         am_cv_CXX_dependencies_compiler_type=$depmode
4997         break
4998       fi
4999     fi
5000   done
5001
5002   cd ..
5003   rm -rf conftest.dir
5004 else
5005   am_cv_CXX_dependencies_compiler_type=none
5006 fi
5007
5008 fi
5009 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5010 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5011 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5012
5013
5014
5015 if
5016   test "x$enable_dependency_tracking" != xno \
5017   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5018   am__fastdepCXX_TRUE=
5019   am__fastdepCXX_FALSE='#'
5020 else
5021   am__fastdepCXX_TRUE='#'
5022   am__fastdepCXX_FALSE=
5023 fi
5024
5025
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 if test -n "$ac_tool_prefix"; then
5032   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_CC+set}" = set; then
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -n "$CC"; then
5040   ac_cv_prog_CC="$CC" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 CC=$ac_cv_prog_CC
5060 if test -n "$CC"; then
5061   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5062 $as_echo "$CC" >&6; }
5063 else
5064   { $as_echo "$as_me:$LINENO: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 fi
5070 if test -z "$ac_cv_prog_CC"; then
5071   ac_ct_CC=$CC
5072   # Extract the first word of "gcc", so it can be a program name with args.
5073 set dummy gcc; ac_word=$2
5074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$ac_ct_CC"; then
5080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_prog_ac_ct_CC="gcc"
5090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5102 $as_echo "$ac_ct_CC" >&6; }
5103 else
5104   { $as_echo "$as_me:$LINENO: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108   if test "x$ac_ct_CC" = x; then
5109     CC=""
5110   else
5111     case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117     CC=$ac_ct_CC
5118   fi
5119 else
5120   CC="$ac_cv_prog_CC"
5121 fi
5122
5123 if test -z "$CC"; then
5124           if test -n "$ac_tool_prefix"; then
5125     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}cc; ac_word=$2
5127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_CC+set}" = set; then
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$CC"; then
5133   ac_cv_prog_CC="$CC" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140   for ac_exec_ext in '' $ac_executable_extensions; do
5141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142     ac_cv_prog_CC="${ac_tool_prefix}cc"
5143     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147 done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 CC=$ac_cv_prog_CC
5153 if test -n "$CC"; then
5154   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5155 $as_echo "$CC" >&6; }
5156 else
5157   { $as_echo "$as_me:$LINENO: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162   fi
5163 fi
5164 if test -z "$CC"; then
5165   # Extract the first word of "cc", so it can be a program name with args.
5166 set dummy cc; ac_word=$2
5167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_CC+set}" = set; then
5170   $as_echo_n "(cached) " >&6
5171 else
5172   if test -n "$CC"; then
5173   ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175   ac_prog_rejected=no
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181   for ac_exec_ext in '' $ac_executable_extensions; do
5182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5184        ac_prog_rejected=yes
5185        continue
5186      fi
5187     ac_cv_prog_CC="cc"
5188     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 if test $ac_prog_rejected = yes; then
5196   # We found a bogon in the path, so make sure we never use it.
5197   set dummy $ac_cv_prog_CC
5198   shift
5199   if test $# != 0; then
5200     # We chose a different compiler from the bogus one.
5201     # However, it has the same basename, so the bogon will be chosen
5202     # first if we set CC to just the basename; use the full file name.
5203     shift
5204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5205   fi
5206 fi
5207 fi
5208 fi
5209 CC=$ac_cv_prog_CC
5210 if test -n "$CC"; then
5211   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5213 else
5214   { $as_echo "$as_me:$LINENO: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 fi
5220 if test -z "$CC"; then
5221   if test -n "$ac_tool_prefix"; then
5222   for ac_prog in cl.exe
5223   do
5224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_CC+set}" = set; then
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if test -n "$CC"; then
5232   ac_cv_prog_CC="$CC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 CC=$ac_cv_prog_CC
5252 if test -n "$CC"; then
5253   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5255 else
5256   { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261     test -n "$CC" && break
5262   done
5263 fi
5264 if test -z "$CC"; then
5265   ac_ct_CC=$CC
5266   for ac_prog in cl.exe
5267 do
5268   # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5273   $as_echo_n "(cached) " >&6
5274 else
5275   if test -n "$ac_ct_CC"; then
5276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283   for ac_exec_ext in '' $ac_executable_extensions; do
5284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285     ac_cv_prog_ac_ct_CC="$ac_prog"
5286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290 done
5291 IFS=$as_save_IFS
5292
5293 fi
5294 fi
5295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5296 if test -n "$ac_ct_CC"; then
5297   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5298 $as_echo "$ac_ct_CC" >&6; }
5299 else
5300   { $as_echo "$as_me:$LINENO: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303
5304
5305   test -n "$ac_ct_CC" && break
5306 done
5307
5308   if test "x$ac_ct_CC" = x; then
5309     CC=""
5310   else
5311     case $cross_compiling:$ac_tool_warned in
5312 yes:)
5313 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315 ac_tool_warned=yes ;;
5316 esac
5317     CC=$ac_ct_CC
5318   fi
5319 fi
5320
5321 fi
5322
5323
5324 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5326 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5327 See \`config.log' for more details." >&5
5328 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5329 See \`config.log' for more details." >&2;}
5330    { (exit 1); exit 1; }; }; }
5331
5332 # Provide some information about the compiler.
5333 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5334 set X $ac_compile
5335 ac_compiler=$2
5336 { (ac_try="$ac_compiler --version >&5"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5342 $as_echo "$ac_try_echo") >&5
5343   (eval "$ac_compiler --version >&5") 2>&5
5344   ac_status=$?
5345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }
5347 { (ac_try="$ac_compiler -v >&5"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5353 $as_echo "$ac_try_echo") >&5
5354   (eval "$ac_compiler -v >&5") 2>&5
5355   ac_status=$?
5356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }
5358 { (ac_try="$ac_compiler -V >&5"
5359 case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365   (eval "$ac_compiler -V >&5") 2>&5
5366   ac_status=$?
5367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }
5369
5370 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5373   $as_echo_n "(cached) " >&6
5374 else
5375   cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h.  */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h.  */
5381
5382 int
5383 main ()
5384 {
5385 #ifndef __GNUC__
5386        choke me
5387 #endif
5388
5389   ;
5390   return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5395 case "(($ac_try" in
5396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397   *) ac_try_echo=$ac_try;;
5398 esac
5399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5400 $as_echo "$ac_try_echo") >&5
5401   (eval "$ac_compile") 2>conftest.er1
5402   ac_status=$?
5403   grep -v '^ *+' conftest.er1 >conftest.err
5404   rm -f conftest.er1
5405   cat conftest.err >&5
5406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } && {
5408          test -z "$ac_c_werror_flag" ||
5409          test ! -s conftest.err
5410        } && test -s conftest.$ac_objext; then
5411   ac_compiler_gnu=yes
5412 else
5413   $as_echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416         ac_compiler_gnu=no
5417 fi
5418
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5421
5422 fi
5423 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5425 if test $ac_compiler_gnu = yes; then
5426   GCC=yes
5427 else
5428   GCC=
5429 fi
5430 ac_test_CFLAGS=${CFLAGS+set}
5431 ac_save_CFLAGS=$CFLAGS
5432 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5434 if test "${ac_cv_prog_cc_g+set}" = set; then
5435   $as_echo_n "(cached) " >&6
5436 else
5437   ac_save_c_werror_flag=$ac_c_werror_flag
5438    ac_c_werror_flag=yes
5439    ac_cv_prog_cc_g=no
5440    CFLAGS="-g"
5441    cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h.  */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h.  */
5447
5448 int
5449 main ()
5450 {
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464   (eval "$ac_compile") 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } && {
5471          test -z "$ac_c_werror_flag" ||
5472          test ! -s conftest.err
5473        } && test -s conftest.$ac_objext; then
5474   ac_cv_prog_cc_g=yes
5475 else
5476   $as_echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479         CFLAGS=""
5480       cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486
5487 int
5488 main ()
5489 {
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5497 case "(($ac_try" in
5498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499   *) ac_try_echo=$ac_try;;
5500 esac
5501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5502 $as_echo "$ac_try_echo") >&5
5503   (eval "$ac_compile") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && {
5510          test -z "$ac_c_werror_flag" ||
5511          test ! -s conftest.err
5512        } && test -s conftest.$ac_objext; then
5513   :
5514 else
5515   $as_echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518         ac_c_werror_flag=$ac_save_c_werror_flag
5519          CFLAGS="-g"
5520          cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543   (eval "$ac_compile") 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && {
5550          test -z "$ac_c_werror_flag" ||
5551          test ! -s conftest.err
5552        } && test -s conftest.$ac_objext; then
5553   ac_cv_prog_cc_g=yes
5554 else
5555   $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558
5559 fi
5560
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568    ac_c_werror_flag=$ac_save_c_werror_flag
5569 fi
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5571 $as_echo "$ac_cv_prog_cc_g" >&6; }
5572 if test "$ac_test_CFLAGS" = set; then
5573   CFLAGS=$ac_save_CFLAGS
5574 elif test $ac_cv_prog_cc_g = yes; then
5575   if test "$GCC" = yes; then
5576     CFLAGS="-g -O2"
5577   else
5578     CFLAGS="-g"
5579   fi
5580 else
5581   if test "$GCC" = yes; then
5582     CFLAGS="-O2"
5583   else
5584     CFLAGS=
5585   fi
5586 fi
5587 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5589 if test "${ac_cv_prog_cc_c89+set}" = set; then
5590   $as_echo_n "(cached) " >&6
5591 else
5592   ac_cv_prog_cc_c89=no
5593 ac_save_CC=$CC
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <stdarg.h>
5601 #include <stdio.h>
5602 #include <sys/types.h>
5603 #include <sys/stat.h>
5604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5605 struct buf { int x; };
5606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5607 static char *e (p, i)
5608      char **p;
5609      int i;
5610 {
5611   return p[i];
5612 }
5613 static char *f (char * (*g) (char **, int), char **p, ...)
5614 {
5615   char *s;
5616   va_list v;
5617   va_start (v,p);
5618   s = g (p, va_arg (v,int));
5619   va_end (v);
5620   return s;
5621 }
5622
5623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5624    function prototypes and stuff, but not '\xHH' hex character constants.
5625    These don't provoke an error unfortunately, instead are silently treated
5626    as 'x'.  The following induces an error, until -std is added to get
5627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5628    array size at least.  It's necessary to write '\x00'==0 to get something
5629    that's true only with -std.  */
5630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5631
5632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5633    inside strings and character constants.  */
5634 #define FOO(x) 'x'
5635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5636
5637 int test (int i, double x);
5638 struct s1 {int (*f) (int a);};
5639 struct s2 {int (*f) (double a);};
5640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5641 int argc;
5642 char **argv;
5643 int
5644 main ()
5645 {
5646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5653 do
5654   CC="$ac_save_CC $ac_arg"
5655   rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662 $as_echo "$ac_try_echo") >&5
5663   (eval "$ac_compile") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } && {
5670          test -z "$ac_c_werror_flag" ||
5671          test ! -s conftest.err
5672        } && test -s conftest.$ac_objext; then
5673   ac_cv_prog_cc_c89=$ac_arg
5674 else
5675   $as_echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext
5682   test "x$ac_cv_prog_cc_c89" != "xno" && break
5683 done
5684 rm -f conftest.$ac_ext
5685 CC=$ac_save_CC
5686
5687 fi
5688 # AC_CACHE_VAL
5689 case "x$ac_cv_prog_cc_c89" in
5690   x)
5691     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5692 $as_echo "none needed" >&6; } ;;
5693   xno)
5694     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5695 $as_echo "unsupported" >&6; } ;;
5696   *)
5697     CC="$CC $ac_cv_prog_cc_c89"
5698     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5700 esac
5701
5702
5703 ac_ext=c
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708
5709 # Find a good install program.  We prefer a C program (faster),
5710 # so one script is as good as another.  But avoid the broken or
5711 # incompatible versions:
5712 # SysV /etc/install, /usr/sbin/install
5713 # SunOS /usr/etc/install
5714 # IRIX /sbin/install
5715 # AIX /bin/install
5716 # AmigaOS /C/install, which installs bootblocks on floppy discs
5717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5720 # OS/2's system install, which has a completely different semantic
5721 # ./install, which can be erroneously created by make from ./install.sh.
5722 # Reject install programs that cannot install multiple files.
5723 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5724 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5725 if test -z "$INSTALL"; then
5726 if test "${ac_cv_path_install+set}" = set; then
5727   $as_echo_n "(cached) " >&6
5728 else
5729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734   # Account for people who put trailing slashes in PATH elements.
5735 case $as_dir/ in
5736   ./ | .// | /cC/* | \
5737   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5738   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5739   /usr/ucb/* ) ;;
5740   *)
5741     # OSF1 and SCO ODT 3.0 have their own names for install.
5742     # Don't use installbsd from OSF since it installs stuff as root
5743     # by default.
5744     for ac_prog in ginstall scoinst install; do
5745       for ac_exec_ext in '' $ac_executable_extensions; do
5746         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5747           if test $ac_prog = install &&
5748             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749             # AIX install.  It has an incompatible calling convention.
5750             :
5751           elif test $ac_prog = install &&
5752             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753             # program-specific install script used by HP pwplus--don't use.
5754             :
5755           else
5756             rm -rf conftest.one conftest.two conftest.dir
5757             echo one > conftest.one
5758             echo two > conftest.two
5759             mkdir conftest.dir
5760             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5761               test -s conftest.one && test -s conftest.two &&
5762               test -s conftest.dir/conftest.one &&
5763               test -s conftest.dir/conftest.two
5764             then
5765               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5766               break 3
5767             fi
5768           fi
5769         fi
5770       done
5771     done
5772     ;;
5773 esac
5774
5775 done
5776 IFS=$as_save_IFS
5777
5778 rm -rf conftest.one conftest.two conftest.dir
5779
5780 fi
5781   if test "${ac_cv_path_install+set}" = set; then
5782     INSTALL=$ac_cv_path_install
5783   else
5784     # As a last resort, use the slow shell script.  Don't cache a
5785     # value for INSTALL within a source directory, because that will
5786     # break other packages using the cache if that directory is
5787     # removed, or if the value is a relative name.
5788     INSTALL=$ac_install_sh
5789   fi
5790 fi
5791 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5792 $as_echo "$INSTALL" >&6; }
5793
5794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795 # It thinks the first close brace ends the variable substitution.
5796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5797
5798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5799
5800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5801
5802 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5803 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5804 set x ${MAKE-make}
5805 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5806 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5807   $as_echo_n "(cached) " >&6
5808 else
5809   cat >conftest.make <<\_ACEOF
5810 SHELL = /bin/sh
5811 all:
5812         @echo '@@@%%%=$(MAKE)=@@@%%%'
5813 _ACEOF
5814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5816   *@@@%%%=?*=@@@%%%*)
5817     eval ac_cv_prog_make_${ac_make}_set=yes;;
5818   *)
5819     eval ac_cv_prog_make_${ac_make}_set=no;;
5820 esac
5821 rm -f conftest.make
5822 fi
5823 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5824   { $as_echo "$as_me:$LINENO: result: yes" >&5
5825 $as_echo "yes" >&6; }
5826   SET_MAKE=
5827 else
5828   { $as_echo "$as_me:$LINENO: result: no" >&5
5829 $as_echo "no" >&6; }
5830   SET_MAKE="MAKE=${MAKE-make}"
5831 fi
5832
5833
5834
5835 # site specific configs
5836
5837 # check for asterisk
5838
5839 # Check whether --with-asterisk was given.
5840 if test "${with_asterisk+set}" = set; then
5841   withval=$with_asterisk;
5842 else
5843   with_asterisk="check"
5844 fi
5845
5846
5847 if test "x$with_asterisk" != xno; then
5848
5849 for ac_header in asterisk/compiler.h
5850 do
5851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5853   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5854 $as_echo_n "checking for $ac_header... " >&6; }
5855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5856   $as_echo_n "(cached) " >&6
5857 fi
5858 ac_res=`eval 'as_val=${'$as_ac_Header'}
5859                  $as_echo "$as_val"'`
5860                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5861 $as_echo "$ac_res" >&6; }
5862 else
5863   # Is the header compilable?
5864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5865 $as_echo_n "checking $ac_header usability... " >&6; }
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 $ac_includes_default
5873 #include <$ac_header>
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (ac_try="$ac_compile"
5877 case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5882 $as_echo "$ac_try_echo") >&5
5883   (eval "$ac_compile") 2>conftest.er1
5884   ac_status=$?
5885   grep -v '^ *+' conftest.er1 >conftest.err
5886   rm -f conftest.er1
5887   cat conftest.err >&5
5888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } && {
5890          test -z "$ac_c_werror_flag" ||
5891          test ! -s conftest.err
5892        } && test -s conftest.$ac_objext; then
5893   ac_header_compiler=yes
5894 else
5895   $as_echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898         ac_header_compiler=no
5899 fi
5900
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5903 $as_echo "$ac_header_compiler" >&6; }
5904
5905 # Is the header present?
5906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5907 $as_echo_n "checking $ac_header presence... " >&6; }
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 #include <$ac_header>
5915 _ACEOF
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } >/dev/null && {
5930          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        }; then
5933   ac_header_preproc=yes
5934 else
5935   $as_echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938   ac_header_preproc=no
5939 fi
5940
5941 rm -f conftest.err conftest.$ac_ext
5942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5943 $as_echo "$ac_header_preproc" >&6; }
5944
5945 # So?  What about this header?
5946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5947   yes:no: )
5948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5952     ac_header_preproc=yes
5953     ;;
5954   no:yes:* )
5955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5958 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5959     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5962 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5967     ( cat <<\_ASBOX
5968 ## ----------------------------------- ##
5969 ## Report this to andreas@eversberg.eu ##
5970 ## ----------------------------------- ##
5971 _ASBOX
5972      ) | sed "s/^/$as_me: WARNING:     /" >&2
5973     ;;
5974 esac
5975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5976 $as_echo_n "checking for $ac_header... " >&6; }
5977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5978   $as_echo_n "(cached) " >&6
5979 else
5980   eval "$as_ac_Header=\$ac_header_preproc"
5981 fi
5982 ac_res=`eval 'as_val=${'$as_ac_Header'}
5983                  $as_echo "$as_val"'`
5984                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5985 $as_echo "$ac_res" >&6; }
5986
5987 fi
5988 as_val=`eval 'as_val=${'$as_ac_Header'}
5989                  $as_echo "$as_val"'`
5990    if test "x$as_val" = x""yes; then
5991   cat >>confdefs.h <<_ACEOF
5992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5993 _ACEOF
5994  with_asterisk="yes"
5995 else
5996   if test "x$with_asterisk" != xcheck ; then
5997                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5999 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6000 See \`config.log' for more details." >&5
6001 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6002 See \`config.log' for more details." >&2;}
6003    { (exit 1); exit 1; }; }; }
6004                      fi
6005
6006 fi
6007
6008 done
6009
6010
6011 fi
6012
6013
6014 if test "x$with_asterisk" = "xyes"; then
6015         ast_tone_zone_sound=
6016
6017         { $as_echo "$as_me:$LINENO: checking for struct tone_zone_sound in asterisk/indications.h" >&5
6018 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
6019         tzs_test_result=no
6020         cat >conftest.$ac_ext <<_ACEOF
6021
6022                 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027 #include <asterisk.h>,
6028                         #include <asterisk/linkedlists.h>,
6029                         #include <asterisk/indications.h>
6030 int
6031 main ()
6032 {
6033 struct tone_zone_sound * ts = NULL; (void) ts->data;
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042   *) ac_try_echo=$ac_try;;
6043 esac
6044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045 $as_echo "$ac_try_echo") >&5
6046   (eval "$ac_compile") 2>conftest.er1
6047   ac_status=$?
6048   grep -v '^ *+' conftest.er1 >conftest.err
6049   rm -f conftest.er1
6050   cat conftest.err >&5
6051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } && {
6053          test -z "$ac_c_werror_flag" ||
6054          test ! -s conftest.err
6055        } && test -s conftest.$ac_objext; then
6056   tzs_test_result=yes
6057 else
6058   $as_echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061
6062 fi
6063
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065         { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6066 $as_echo "$tzs_test_result" >&6; }
6067
6068         if test "x$tzs_test_result" = "xyes"; then
6069                 ast_tone_zone_sound=tone_zone_sound
6070         fi
6071
6072         if test "x$ast_tone_zone_sound" = "x"; then
6073                 { $as_echo "$as_me:$LINENO: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
6074 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
6075                 tzs_test_result=no
6076                 cat >conftest.$ac_ext <<_ACEOF
6077
6078                         /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include <asterisk.h>,
6084                                 #include <asterisk/linkedlists.h>,
6085                                 #include <asterisk/indications.h>
6086 int
6087 main ()
6088 {
6089 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
6090   ;
6091   return 0;
6092 }
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6096 case "(($ac_try" in
6097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098   *) ac_try_echo=$ac_try;;
6099 esac
6100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101 $as_echo "$ac_try_echo") >&5
6102   (eval "$ac_compile") 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && {
6109          test -z "$ac_c_werror_flag" ||
6110          test ! -s conftest.err
6111        } && test -s conftest.$ac_objext; then
6112   tzs_test_result=yes
6113 else
6114   $as_echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121                 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6122 $as_echo "$tzs_test_result" >&6; }
6123
6124                 if test "x$tzs_test_result" = "xyes"; then
6125                         ast_tone_zone_sound=ast_tone_zone_sound
6126                 fi
6127         fi
6128
6129         if test "x$ast_tone_zone_sound" = "x"; then
6130                 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6132 { { $as_echo "$as_me:$LINENO: error: No ast_tone_zone_sound, confused...
6133 See \`config.log' for more details." >&5
6134 $as_echo "$as_me: error: No ast_tone_zone_sound, confused...
6135 See \`config.log' for more details." >&2;}
6136    { (exit 1); exit 1; }; }; }
6137         fi
6138
6139         AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
6140
6141 fi
6142
6143
6144
6145 if test "x$with_asterisk" == "xyes" ; then
6146   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6147   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6148 else
6149   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6150   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6151 fi
6152
6153
6154 # check for crypto
6155
6156 # Check whether --with-ssl was given.
6157 if test "${with_ssl+set}" = set; then
6158   withval=$with_ssl;
6159 else
6160   with_ssl=check
6161 fi
6162
6163 LIBCRYPTO=
6164 if test "x$with_ssl" != xno; then
6165
6166 for ac_header in openssl/rsa.h
6167 do
6168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 $as_echo_n "checking for $ac_header... " >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173   $as_echo_n "(cached) " >&6
6174 fi
6175 ac_res=`eval 'as_val=${'$as_ac_Header'}
6176                  $as_echo "$as_val"'`
6177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6178 $as_echo "$ac_res" >&6; }
6179 else
6180   # Is the header compilable?
6181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6182 $as_echo_n "checking $ac_header usability... " >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189 $ac_includes_default
6190 #include <$ac_header>
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196   *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200   (eval "$ac_compile") 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } && {
6207          test -z "$ac_c_werror_flag" ||
6208          test ! -s conftest.err
6209        } && test -s conftest.$ac_objext; then
6210   ac_header_compiler=yes
6211 else
6212   $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215         ac_header_compiler=no
6216 fi
6217
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 $as_echo "$ac_header_compiler" >&6; }
6221
6222 # Is the header present?
6223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6224 $as_echo_n "checking $ac_header presence... " >&6; }
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h.  */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h.  */
6231 #include <$ac_header>
6232 _ACEOF
6233 if { (ac_try="$ac_cpp conftest.$ac_ext"
6234 case "(($ac_try" in
6235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236   *) ac_try_echo=$ac_try;;
6237 esac
6238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239 $as_echo "$ac_try_echo") >&5
6240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null && {
6247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6248          test ! -s conftest.err
6249        }; then
6250   ac_header_preproc=yes
6251 else
6252   $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255   ac_header_preproc=no
6256 fi
6257
6258 rm -f conftest.err conftest.$ac_ext
6259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 $as_echo "$ac_header_preproc" >&6; }
6261
6262 # So?  What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264   yes:no: )
6265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6269     ac_header_preproc=yes
6270     ;;
6271   no:yes:* )
6272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6275 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6279 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6284     ( cat <<\_ASBOX
6285 ## ----------------------------------- ##
6286 ## Report this to andreas@eversberg.eu ##
6287 ## ----------------------------------- ##
6288 _ASBOX
6289      ) | sed "s/^/$as_me: WARNING:     /" >&2
6290     ;;
6291 esac
6292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 $as_echo_n "checking for $ac_header... " >&6; }
6294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6295   $as_echo_n "(cached) " >&6
6296 else
6297   eval "$as_ac_Header=\$ac_header_preproc"
6298 fi
6299 ac_res=`eval 'as_val=${'$as_ac_Header'}
6300                  $as_echo "$as_val"'`
6301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6302 $as_echo "$ac_res" >&6; }
6303
6304 fi
6305 as_val=`eval 'as_val=${'$as_ac_Header'}
6306                  $as_echo "$as_val"'`
6307    if test "x$as_val" = x""yes; then
6308   cat >>confdefs.h <<_ACEOF
6309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6310 _ACEOF
6311
6312 fi
6313
6314 done
6315
6316        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6317 $as_echo_n "checking for main in -lcrypto... " >&6; }
6318 if test "${ac_cv_lib_crypto_main+set}" = set; then
6319   $as_echo_n "(cached) " >&6
6320 else
6321   ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lcrypto -lcrypto
6323                     $LIBS"
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330
6331
6332 int
6333 main ()
6334 {
6335 return main ();
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (ac_try="$ac_link"
6342 case "(($ac_try" in
6343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344   *) ac_try_echo=$ac_try;;
6345 esac
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347 $as_echo "$ac_try_echo") >&5
6348   (eval "$ac_link") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } && {
6355          test -z "$ac_c_werror_flag" ||
6356          test ! -s conftest.err
6357        } && test -s conftest$ac_exeext && {
6358          test "$cross_compiling" = yes ||
6359          $as_test_x conftest$ac_exeext
6360        }; then
6361   ac_cv_lib_crypto_main=yes
6362 else
6363   $as_echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366         ac_cv_lib_crypto_main=no
6367 fi
6368
6369 rm -rf conftest.dSYM
6370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371       conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6373 fi
6374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6375 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6376 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6377   LIBCRYPTO="-lcrypto"
6378
6379
6380 cat >>confdefs.h <<\_ACEOF
6381 #define HAVE_LIBCRYPTO 1
6382 _ACEOF
6383
6384
6385 else
6386   if test "x$with_ssl" != xcheck ; then
6387                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6389 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6390 See \`config.log' for more details." >&5
6391 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6392 See \`config.log' for more details." >&2;}
6393    { (exit 1); exit 1; }; }; }
6394                      fi
6395
6396 fi
6397
6398
6399
6400 fi
6401
6402
6403 # check for gsm-bs
6404
6405 # Check whether --with-gsm-bs was given.
6406 if test "${with_gsm_bs+set}" = set; then
6407   withval=$with_gsm_bs;
6408 else
6409   with_gsm_bs="check"
6410 fi
6411
6412
6413 if test "x$with_gsm_bs" != xno; then
6414   { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5
6415 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
6416 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then
6417   $as_echo_n "(cached) " >&6
6418 else
6419   test "$cross_compiling" = yes &&
6420   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6421 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6422    { (exit 1); exit 1; }; }
6423 if test -r "openbsc/include/openbsc/gsm_data.h"; then
6424   ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
6425 else
6426   ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
6427 fi
6428 fi
6429 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
6430 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
6431 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then
6432   with_gsm_bs="yes"
6433 else
6434   if test "x$with_gsm_bs" != xcheck ; then
6435                           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6437 { { $as_echo "$as_me:$LINENO: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6438 See \`config.log' for more details." >&5
6439 $as_echo "$as_me: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6440 See \`config.log' for more details." >&2;}
6441    { (exit 1); exit 1; }; }; }
6442                      fi
6443
6444 fi
6445
6446
6447 fi
6448
6449
6450
6451
6452 if test "x$with_gsm_bs" == "xyes" ; then
6453   ENABLE_GSM_BS_TRUE=
6454   ENABLE_GSM_BS_FALSE='#'
6455 else
6456   ENABLE_GSM_BS_TRUE='#'
6457   ENABLE_GSM_BS_FALSE=
6458 fi
6459
6460
6461 # check for gsm-ms
6462
6463 # Check whether --with-gsm-ms was given.
6464 if test "${with_gsm_ms+set}" = set; then
6465   withval=$with_gsm_ms;
6466 else
6467   with_gsm_ms="check"
6468 fi
6469
6470
6471 if test "x$with_gsm_ms" != xno; then
6472   { $as_echo "$as_me:$LINENO: checking for layer23/include/osmocom/osmocom_data.h" >&5
6473 $as_echo_n "checking for layer23/include/osmocom/osmocom_data.h... " >&6; }
6474 if test "${ac_cv_file_layer23_include_osmocom_osmocom_data_h+set}" = set; then
6475   $as_echo_n "(cached) " >&6
6476 else
6477   test "$cross_compiling" = yes &&
6478   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
6479 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
6480    { (exit 1); exit 1; }; }
6481 if test -r "layer23/include/osmocom/osmocom_data.h"; then
6482   ac_cv_file_layer23_include_osmocom_osmocom_data_h=yes
6483 else
6484   ac_cv_file_layer23_include_osmocom_osmocom_data_h=no
6485 fi
6486 fi
6487 { $as_echo "$as_me:$LINENO: result: $ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&5
6488 $as_echo "$ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&6; }
6489 if test "x$ac_cv_file_layer23_include_osmocom_osmocom_data_h" = x""yes; then
6490   with_gsm_ms="yes"
6491 else
6492   if test "x$with_gsm_ms" != xcheck ; then
6493                           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6495 { { $as_echo "$as_me:$LINENO: error: --with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
6496 See \`config.log' for more details." >&5
6497 $as_echo "$as_me: error: --with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
6498 See \`config.log' for more details." >&2;}
6499    { (exit 1); exit 1; }; }; }
6500                      fi
6501
6502 fi
6503
6504
6505 fi
6506
6507
6508
6509
6510 if test "x$with_gsm_ms" == "xyes" ; then
6511   ENABLE_GSM_MS_TRUE=
6512   ENABLE_GSM_MS_FALSE='#'
6513 else
6514   ENABLE_GSM_MS_TRUE='#'
6515   ENABLE_GSM_MS_FALSE=
6516 fi
6517
6518
6519
6520
6521 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
6522   ENABLE_GSM_TRUE=
6523   ENABLE_GSM_FALSE='#'
6524 else
6525   ENABLE_GSM_TRUE='#'
6526   ENABLE_GSM_FALSE=
6527 fi
6528
6529
6530 # check for ss5
6531
6532 # Check whether --with-ss5 was given.
6533 if test "${with_ss5+set}" = set; then
6534   withval=$with_ss5;
6535 else
6536   with_ss5="check"
6537 fi
6538
6539
6540
6541
6542 if test "x$with_ss5" == "xyes" ; then
6543   ENABLE_SS5_TRUE=
6544   ENABLE_SS5_FALSE='#'
6545 else
6546   ENABLE_SS5_TRUE='#'
6547   ENABLE_SS5_FALSE=
6548 fi
6549
6550
6551 # Checks for libraries.
6552
6553 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6554 $as_echo_n "checking for main in -lm... " >&6; }
6555 if test "${ac_cv_lib_m_main+set}" = set; then
6556   $as_echo_n "(cached) " >&6
6557 else
6558   ac_check_lib_save_LIBS=$LIBS
6559 LIBS="-lm  $LIBS"
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h.  */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h.  */
6566
6567
6568 int
6569 main ()
6570 {
6571 return main ();
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584   (eval "$ac_link") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } && {
6591          test -z "$ac_c_werror_flag" ||
6592          test ! -s conftest.err
6593        } && test -s conftest$ac_exeext && {
6594          test "$cross_compiling" = yes ||
6595          $as_test_x conftest$ac_exeext
6596        }; then
6597   ac_cv_lib_m_main=yes
6598 else
6599   $as_echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602         ac_cv_lib_m_main=no
6603 fi
6604
6605 rm -rf conftest.dSYM
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607       conftest$ac_exeext conftest.$ac_ext
6608 LIBS=$ac_check_lib_save_LIBS
6609 fi
6610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6611 $as_echo "$ac_cv_lib_m_main" >&6; }
6612 if test "x$ac_cv_lib_m_main" = x""yes; then
6613   cat >>confdefs.h <<_ACEOF
6614 #define HAVE_LIBM 1
6615 _ACEOF
6616
6617   LIBS="-lm $LIBS"
6618
6619 fi
6620
6621
6622 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6623 $as_echo_n "checking for main in -lncurses... " >&6; }
6624 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6625   $as_echo_n "(cached) " >&6
6626 else
6627   ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-lncurses  $LIBS"
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635
6636
6637 int
6638 main ()
6639 {
6640 return main ();
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 rm -f conftest.$ac_objext conftest$ac_exeext
6646 if { (ac_try="$ac_link"
6647 case "(($ac_try" in
6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649   *) ac_try_echo=$ac_try;;
6650 esac
6651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653   (eval "$ac_link") 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } && {
6660          test -z "$ac_c_werror_flag" ||
6661          test ! -s conftest.err
6662        } && test -s conftest$ac_exeext && {
6663          test "$cross_compiling" = yes ||
6664          $as_test_x conftest$ac_exeext
6665        }; then
6666   ac_cv_lib_ncurses_main=yes
6667 else
6668   $as_echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671         ac_cv_lib_ncurses_main=no
6672 fi
6673
6674 rm -rf conftest.dSYM
6675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676       conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6678 fi
6679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6680 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6681 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6682   cat >>confdefs.h <<_ACEOF
6683 #define HAVE_LIBNCURSES 1
6684 _ACEOF
6685
6686   LIBS="-lncurses $LIBS"
6687
6688 fi
6689
6690
6691 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6692 $as_echo_n "checking for main in -lpthread... " >&6; }
6693 if test "${ac_cv_lib_pthread_main+set}" = set; then
6694   $as_echo_n "(cached) " >&6
6695 else
6696   ac_check_lib_save_LIBS=$LIBS
6697 LIBS="-lpthread  $LIBS"
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704
6705
6706 int
6707 main ()
6708 {
6709 return main ();
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (ac_try="$ac_link"
6716 case "(($ac_try" in
6717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718   *) ac_try_echo=$ac_try;;
6719 esac
6720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6721 $as_echo "$ac_try_echo") >&5
6722   (eval "$ac_link") 2>conftest.er1
6723   ac_status=$?
6724   grep -v '^ *+' conftest.er1 >conftest.err
6725   rm -f conftest.er1
6726   cat conftest.err >&5
6727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); } && {
6729          test -z "$ac_c_werror_flag" ||
6730          test ! -s conftest.err
6731        } && test -s conftest$ac_exeext && {
6732          test "$cross_compiling" = yes ||
6733          $as_test_x conftest$ac_exeext
6734        }; then
6735   ac_cv_lib_pthread_main=yes
6736 else
6737   $as_echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740         ac_cv_lib_pthread_main=no
6741 fi
6742
6743 rm -rf conftest.dSYM
6744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6745       conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6747 fi
6748 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6749 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6750 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6751   cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBPTHREAD 1
6753 _ACEOF
6754
6755   LIBS="-lpthread $LIBS"
6756
6757 fi
6758
6759
6760 # Checks for header files.
6761
6762
6763
6764
6765
6766 ac_header_dirent=no
6767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6768   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6769 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6770 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6772   $as_echo_n "(cached) " >&6
6773 else
6774   cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h.  */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h.  */
6780 #include <sys/types.h>
6781 #include <$ac_hdr>
6782
6783 int
6784 main ()
6785 {
6786 if ((DIR *) 0)
6787 return 0;
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (ac_try="$ac_compile"
6794 case "(($ac_try" in
6795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796   *) ac_try_echo=$ac_try;;
6797 esac
6798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6799 $as_echo "$ac_try_echo") >&5
6800   (eval "$ac_compile") 2>conftest.er1
6801   ac_status=$?
6802   grep -v '^ *+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } && {
6807          test -z "$ac_c_werror_flag" ||
6808          test ! -s conftest.err
6809        } && test -s conftest.$ac_objext; then
6810   eval "$as_ac_Header=yes"
6811 else
6812   $as_echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815         eval "$as_ac_Header=no"
6816 fi
6817
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 fi
6820 ac_res=`eval 'as_val=${'$as_ac_Header'}
6821                  $as_echo "$as_val"'`
6822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 as_val=`eval 'as_val=${'$as_ac_Header'}
6825                  $as_echo "$as_val"'`
6826    if test "x$as_val" = x""yes; then
6827   cat >>confdefs.h <<_ACEOF
6828 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6829 _ACEOF
6830
6831 ac_header_dirent=$ac_hdr; break
6832 fi
6833
6834 done
6835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6836 if test $ac_header_dirent = dirent.h; then
6837   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6838 $as_echo_n "checking for library containing opendir... " >&6; }
6839 if test "${ac_cv_search_opendir+set}" = set; then
6840   $as_echo_n "(cached) " >&6
6841 else
6842   ac_func_search_save_LIBS=$LIBS
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6849
6850 /* Override any GCC internal prototype to avoid an error.
6851    Use char because int might match the return type of a GCC
6852    builtin and then its argument prototype would still apply.  */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 char opendir ();
6857 int
6858 main ()
6859 {
6860 return opendir ();
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 for ac_lib in '' dir; do
6866   if test -z "$ac_lib"; then
6867     ac_res="none required"
6868   else
6869     ac_res=-l$ac_lib
6870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6871   fi
6872   rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (ac_try="$ac_link"
6874 case "(($ac_try" in
6875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876   *) ac_try_echo=$ac_try;;
6877 esac
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880   (eval "$ac_link") 2>conftest.er1
6881   ac_status=$?
6882   grep -v '^ *+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } && {
6887          test -z "$ac_c_werror_flag" ||
6888          test ! -s conftest.err
6889        } && test -s conftest$ac_exeext && {
6890          test "$cross_compiling" = yes ||
6891          $as_test_x conftest$ac_exeext
6892        }; then
6893   ac_cv_search_opendir=$ac_res
6894 else
6895   $as_echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898
6899 fi
6900
6901 rm -rf conftest.dSYM
6902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6903       conftest$ac_exeext
6904   if test "${ac_cv_search_opendir+set}" = set; then
6905   break
6906 fi
6907 done
6908 if test "${ac_cv_search_opendir+set}" = set; then
6909   :
6910 else
6911   ac_cv_search_opendir=no
6912 fi
6913 rm conftest.$ac_ext
6914 LIBS=$ac_func_search_save_LIBS
6915 fi
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6917 $as_echo "$ac_cv_search_opendir" >&6; }
6918 ac_res=$ac_cv_search_opendir
6919 if test "$ac_res" != no; then
6920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6921
6922 fi
6923
6924 else
6925   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6926 $as_echo_n "checking for library containing opendir... " >&6; }
6927 if test "${ac_cv_search_opendir+set}" = set; then
6928   $as_echo_n "(cached) " >&6
6929 else
6930   ac_func_search_save_LIBS=$LIBS
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h.  */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h.  */
6937
6938 /* Override any GCC internal prototype to avoid an error.
6939    Use char because int might match the return type of a GCC
6940    builtin and then its argument prototype would still apply.  */
6941 #ifdef __cplusplus
6942 extern "C"
6943 #endif
6944 char opendir ();
6945 int
6946 main ()
6947 {
6948 return opendir ();
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 for ac_lib in '' x; do
6954   if test -z "$ac_lib"; then
6955     ac_res="none required"
6956   else
6957     ac_res=-l$ac_lib
6958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6959   fi
6960   rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6962 case "(($ac_try" in
6963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964   *) ac_try_echo=$ac_try;;
6965 esac
6966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968   (eval "$ac_link") 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && {
6975          test -z "$ac_c_werror_flag" ||
6976          test ! -s conftest.err
6977        } && test -s conftest$ac_exeext && {
6978          test "$cross_compiling" = yes ||
6979          $as_test_x conftest$ac_exeext
6980        }; then
6981   ac_cv_search_opendir=$ac_res
6982 else
6983   $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6985
6986
6987 fi
6988
6989 rm -rf conftest.dSYM
6990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6991       conftest$ac_exeext
6992   if test "${ac_cv_search_opendir+set}" = set; then
6993   break
6994 fi
6995 done
6996 if test "${ac_cv_search_opendir+set}" = set; then
6997   :
6998 else
6999   ac_cv_search_opendir=no
7000 fi
7001 rm conftest.$ac_ext
7002 LIBS=$ac_func_search_save_LIBS
7003 fi
7004 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7005 $as_echo "$ac_cv_search_opendir" >&6; }
7006 ac_res=$ac_cv_search_opendir
7007 if test "$ac_res" != no; then
7008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7009
7010 fi
7011
7012 fi
7013
7014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7015 $as_echo_n "checking for ANSI C header files... " >&6; }
7016 if test "${ac_cv_header_stdc+set}" = set; then
7017   $as_echo_n "(cached) " >&6
7018 else
7019   cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025 #include <stdlib.h>
7026 #include <stdarg.h>
7027 #include <string.h>
7028 #include <float.h>
7029
7030 int
7031 main ()
7032 {
7033
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042   *) ac_try_echo=$ac_try;;
7043 esac
7044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045 $as_echo "$ac_try_echo") >&5
7046   (eval "$ac_compile") 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } && {
7053          test -z "$ac_c_werror_flag" ||
7054          test ! -s conftest.err
7055        } && test -s conftest.$ac_objext; then
7056   ac_cv_header_stdc=yes
7057 else
7058   $as_echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061         ac_cv_header_stdc=no
7062 fi
7063
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066 if test $ac_cv_header_stdc = yes; then
7067   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068   cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 #include <string.h>
7075
7076 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078   $EGREP "memchr" >/dev/null 2>&1; then
7079   :
7080 else
7081   ac_cv_header_stdc=no
7082 fi
7083 rm -f conftest*
7084
7085 fi
7086
7087 if test $ac_cv_header_stdc = yes; then
7088   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7089   cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 #include <stdlib.h>
7096
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099   $EGREP "free" >/dev/null 2>&1; then
7100   :
7101 else
7102   ac_cv_header_stdc=no
7103 fi
7104 rm -f conftest*
7105
7106 fi
7107
7108 if test $ac_cv_header_stdc = yes; then
7109   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7110   if test "$cross_compiling" = yes; then
7111   :
7112 else
7113   cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119 #include <ctype.h>
7120 #include <stdlib.h>
7121 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7124 #else
7125 # define ISLOWER(c) \
7126                    (('a' <= (c) && (c) <= 'i') \
7127                      || ('j' <= (c) && (c) <= 'r') \
7128                      || ('s' <= (c) && (c) <= 'z'))
7129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7130 #endif
7131
7132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7133 int
7134 main ()
7135 {
7136   int i;
7137   for (i = 0; i < 256; i++)
7138     if (XOR (islower (i), ISLOWER (i))
7139         || toupper (i) != TOUPPER (i))
7140       return 2;
7141   return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest$ac_exeext
7145 if { (ac_try="$ac_link"
7146 case "(($ac_try" in
7147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148   *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152   (eval "$ac_link") 2>&5
7153   ac_status=$?
7154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156   { (case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162   (eval "$ac_try") 2>&5
7163   ac_status=$?
7164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; }; then
7166   :
7167 else
7168   $as_echo "$as_me: program exited with status $ac_status" >&5
7169 $as_echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ( exit $ac_status )
7173 ac_cv_header_stdc=no
7174 fi
7175 rm -rf conftest.dSYM
7176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177 fi
7178
7179
7180 fi
7181 fi
7182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7183 $as_echo "$ac_cv_header_stdc" >&6; }
7184 if test $ac_cv_header_stdc = yes; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define STDC_HEADERS 1
7188 _ACEOF
7189
7190 fi
7191
7192 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7193 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7194 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7195   $as_echo_n "(cached) " >&6
7196 else
7197   cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 #include <sys/types.h>
7204 #include <sys/wait.h>
7205 #ifndef WEXITSTATUS
7206 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7207 #endif
7208 #ifndef WIFEXITED
7209 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7210 #endif
7211
7212 int
7213 main ()
7214 {
7215   int s;
7216   wait (&s);
7217   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7224 case "(($ac_try" in
7225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226   *) ac_try_echo=$ac_try;;
7227 esac
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230   (eval "$ac_compile") 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } && {
7237          test -z "$ac_c_werror_flag" ||
7238          test ! -s conftest.err
7239        } && test -s conftest.$ac_objext; then
7240   ac_cv_header_sys_wait_h=yes
7241 else
7242   $as_echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245         ac_cv_header_sys_wait_h=no
7246 fi
7247
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7251 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7252 if test $ac_cv_header_sys_wait_h = yes; then
7253
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_SYS_WAIT_H 1
7256 _ACEOF
7257
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 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
7274 do
7275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7277   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7278 $as_echo_n "checking for $ac_header... " >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280   $as_echo_n "(cached) " >&6
7281 fi
7282 ac_res=`eval 'as_val=${'$as_ac_Header'}
7283                  $as_echo "$as_val"'`
7284                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7285 $as_echo "$ac_res" >&6; }
7286 else
7287   # Is the header compilable?
7288 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7289 $as_echo_n "checking $ac_header usability... " >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 $ac_includes_default
7297 #include <$ac_header>
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303   *) ac_try_echo=$ac_try;;
7304 esac
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307   (eval "$ac_compile") 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } && {
7314          test -z "$ac_c_werror_flag" ||
7315          test ! -s conftest.err
7316        } && test -s conftest.$ac_objext; then
7317   ac_header_compiler=yes
7318 else
7319   $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322         ac_header_compiler=no
7323 fi
7324
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7327 $as_echo "$ac_header_compiler" >&6; }
7328
7329 # Is the header present?
7330 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7331 $as_echo_n "checking $ac_header presence... " >&6; }
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338 #include <$ac_header>
7339 _ACEOF
7340 if { (ac_try="$ac_cpp conftest.$ac_ext"
7341 case "(($ac_try" in
7342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343   *) ac_try_echo=$ac_try;;
7344 esac
7345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } >/dev/null && {
7354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        }; then
7357   ac_header_preproc=yes
7358 else
7359   $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362   ac_header_preproc=no
7363 fi
7364
7365 rm -f conftest.err conftest.$ac_ext
7366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7367 $as_echo "$ac_header_preproc" >&6; }
7368
7369 # So?  What about this header?
7370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7371   yes:no: )
7372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7373 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7376     ac_header_preproc=yes
7377     ;;
7378   no:yes:* )
7379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7380 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7382 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7384 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7386 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7390 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7391     ( cat <<\_ASBOX
7392 ## ----------------------------------- ##
7393 ## Report this to andreas@eversberg.eu ##
7394 ## ----------------------------------- ##
7395 _ASBOX
7396      ) | sed "s/^/$as_me: WARNING:     /" >&2
7397     ;;
7398 esac
7399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7400 $as_echo_n "checking for $ac_header... " >&6; }
7401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7402   $as_echo_n "(cached) " >&6
7403 else
7404   eval "$as_ac_Header=\$ac_header_preproc"
7405 fi
7406 ac_res=`eval 'as_val=${'$as_ac_Header'}
7407                  $as_echo "$as_val"'`
7408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7409 $as_echo "$ac_res" >&6; }
7410
7411 fi
7412 as_val=`eval 'as_val=${'$as_ac_Header'}
7413                  $as_echo "$as_val"'`
7414    if test "x$as_val" = x""yes; then
7415   cat >>confdefs.h <<_ACEOF
7416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417 _ACEOF
7418
7419 fi
7420
7421 done
7422
7423
7424 # Checks for typedefs, structures, and compiler characteristics.
7425 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7426 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7427 if test "${ac_cv_header_stdbool_h+set}" = set; then
7428   $as_echo_n "(cached) " >&6
7429 else
7430   cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436
7437 #include <stdbool.h>
7438 #ifndef bool
7439  "error: bool is not defined"
7440 #endif
7441 #ifndef false
7442  "error: false is not defined"
7443 #endif
7444 #if false
7445  "error: false is not 0"
7446 #endif
7447 #ifndef true
7448  "error: true is not defined"
7449 #endif
7450 #if true != 1
7451  "error: true is not 1"
7452 #endif
7453 #ifndef __bool_true_false_are_defined
7454  "error: __bool_true_false_are_defined is not defined"
7455 #endif
7456
7457         struct s { _Bool s: 1; _Bool t; } s;
7458
7459         char a[true == 1 ? 1 : -1];
7460         char b[false == 0 ? 1 : -1];
7461         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7462         char d[(bool) 0.5 == true ? 1 : -1];
7463         bool e = &s;
7464         char f[(_Bool) 0.0 == false ? 1 : -1];
7465         char g[true];
7466         char h[sizeof (_Bool)];
7467         char i[sizeof s.t];
7468         enum { j = false, k = true, l = false * true, m = true * 256 };
7469         /* The following fails for
7470            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7471         _Bool n[m];
7472         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7473         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7474 #       if defined __xlc__ || defined __GNUC__
7475          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7476             reported by James Lemley on 2005-10-05; see
7477             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7478             This test is not quite right, since xlc is allowed to
7479             reject this program, as the initializer for xlcbug is
7480             not one of the forms that C requires support for.
7481             However, doing the test right would require a runtime
7482             test, and that would make cross-compilation harder.
7483             Let us hope that IBM fixes the xlc bug, and also adds
7484             support for this kind of constant expression.  In the
7485             meantime, this test will reject xlc, which is OK, since
7486             our stdbool.h substitute should suffice.  We also test
7487             this with GCC, where it should work, to detect more
7488             quickly whether someone messes up the test in the
7489             future.  */
7490          char digs[] = "0123456789";
7491          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7492 #       endif
7493         /* Catch a bug in an HP-UX C compiler.  See
7494            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7495            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7496          */
7497         _Bool q = true;
7498         _Bool *pq = &q;
7499
7500 int
7501 main ()
7502 {
7503
7504         *pq |= q;
7505         *pq |= ! q;
7506         /* Refer to every declared value, to avoid compiler optimizations.  */
7507         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7508                 + !m + !n + !o + !p + !q + !pq);
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522   (eval "$ac_compile") 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } && {
7529          test -z "$ac_c_werror_flag" ||
7530          test ! -s conftest.err
7531        } && test -s conftest.$ac_objext; then
7532   ac_cv_header_stdbool_h=yes
7533 else
7534   $as_echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7536
7537         ac_cv_header_stdbool_h=no
7538 fi
7539
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7543 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7544 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7545 $as_echo_n "checking for _Bool... " >&6; }
7546 if test "${ac_cv_type__Bool+set}" = set; then
7547   $as_echo_n "(cached) " >&6
7548 else
7549   ac_cv_type__Bool=no
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 $ac_includes_default
7557 int
7558 main ()
7559 {
7560 if (sizeof (_Bool))
7561        return 0;
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7573 $as_echo "$ac_try_echo") >&5
7574   (eval "$ac_compile") 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } && {
7581          test -z "$ac_c_werror_flag" ||
7582          test ! -s conftest.err
7583        } && test -s conftest.$ac_objext; then
7584   cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h.  */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h.  */
7590 $ac_includes_default
7591 int
7592 main ()
7593 {
7594 if (sizeof ((_Bool)))
7595           return 0;
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7602 case "(($ac_try" in
7603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604   *) ac_try_echo=$ac_try;;
7605 esac
7606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607 $as_echo "$ac_try_echo") >&5
7608   (eval "$ac_compile") 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } && {
7615          test -z "$ac_c_werror_flag" ||
7616          test ! -s conftest.err
7617        } && test -s conftest.$ac_objext; then
7618   :
7619 else
7620   $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623         ac_cv_type__Bool=yes
7624 fi
7625
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 else
7628   $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631
7632 fi
7633
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7637 $as_echo "$ac_cv_type__Bool" >&6; }
7638 if test "x$ac_cv_type__Bool" = x""yes; then
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define HAVE__BOOL 1
7642 _ACEOF
7643
7644
7645 fi
7646
7647 if test $ac_cv_header_stdbool_h = yes; then
7648
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_STDBOOL_H 1
7651 _ACEOF
7652
7653 fi
7654
7655 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7656 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7657 if test "${ac_cv_c_const+set}" = set; then
7658   $as_echo_n "(cached) " >&6
7659 else
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666
7667 int
7668 main ()
7669 {
7670 /* FIXME: Include the comments suggested by Paul. */
7671 #ifndef __cplusplus
7672   /* Ultrix mips cc rejects this.  */
7673   typedef int charset[2];
7674   const charset cs;
7675   /* SunOS 4.1.1 cc rejects this.  */
7676   char const *const *pcpcc;
7677   char **ppc;
7678   /* NEC SVR4.0.2 mips cc rejects this.  */
7679   struct point {int x, y;};
7680   static struct point const zero = {0,0};
7681   /* AIX XL C 1.02.0.0 rejects this.
7682      It does not let you subtract one const X* pointer from another in
7683      an arm of an if-expression whose if-part is not a constant
7684      expression */
7685   const char *g = "string";
7686   pcpcc = &g + (g ? g-g : 0);
7687   /* HPUX 7.0 cc rejects these. */
7688   ++pcpcc;
7689   ppc = (char**) pcpcc;
7690   pcpcc = (char const *const *) ppc;
7691   { /* SCO 3.2v4 cc rejects this.  */
7692     char *t;
7693     char const *s = 0 ? (char *) 0 : (char const *) 0;
7694
7695     *t++ = 0;
7696     if (s) return 0;
7697   }
7698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7699     int x[] = {25, 17};
7700     const int *foo = &x[0];
7701     ++foo;
7702   }
7703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7704     typedef const int *iptr;
7705     iptr p = 0;
7706     ++p;
7707   }
7708   { /* AIX XL C 1.02.0.0 rejects this saying
7709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7710     struct s { int j; const int *ap[3]; };
7711     struct s *b; b->j = 5;
7712   }
7713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7714     const int foo = 10;
7715     if (!foo) return 0;
7716   }
7717   return !cs[0] && !zero.x;
7718 #endif
7719
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7726 case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731 $as_echo "$ac_try_echo") >&5
7732   (eval "$ac_compile") 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } && {
7739          test -z "$ac_c_werror_flag" ||
7740          test ! -s conftest.err
7741        } && test -s conftest.$ac_objext; then
7742   ac_cv_c_const=yes
7743 else
7744   $as_echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         ac_cv_c_const=no
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7753 $as_echo "$ac_cv_c_const" >&6; }
7754 if test $ac_cv_c_const = no; then
7755
7756 cat >>confdefs.h <<\_ACEOF
7757 #define const /**/
7758 _ACEOF
7759
7760 fi
7761
7762 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7763 $as_echo_n "checking for inline... " >&6; }
7764 if test "${ac_cv_c_inline+set}" = set; then
7765   $as_echo_n "(cached) " >&6
7766 else
7767   ac_cv_c_inline=no
7768 for ac_kw in inline __inline__ __inline; do
7769   cat >conftest.$ac_ext <<_ACEOF
7770 /* confdefs.h.  */
7771 _ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h.  */
7775 #ifndef __cplusplus
7776 typedef int foo_t;
7777 static $ac_kw foo_t static_foo () {return 0; }
7778 $ac_kw foo_t foo () {return 0; }
7779 #endif
7780
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7784 case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7789 $as_echo "$ac_try_echo") >&5
7790   (eval "$ac_compile") 2>conftest.er1
7791   ac_status=$?
7792   grep -v '^ *+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } && {
7797          test -z "$ac_c_werror_flag" ||
7798          test ! -s conftest.err
7799        } && test -s conftest.$ac_objext; then
7800   ac_cv_c_inline=$ac_kw
7801 else
7802   $as_echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809   test "$ac_cv_c_inline" != no && break
7810 done
7811
7812 fi
7813 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7814 $as_echo "$ac_cv_c_inline" >&6; }
7815
7816
7817 case $ac_cv_c_inline in
7818   inline | yes) ;;
7819   *)
7820     case $ac_cv_c_inline in
7821       no) ac_val=;;
7822       *) ac_val=$ac_cv_c_inline;;
7823     esac
7824     cat >>confdefs.h <<_ACEOF
7825 #ifndef __cplusplus
7826 #define inline $ac_val
7827 #endif
7828 _ACEOF
7829     ;;
7830 esac
7831
7832 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7833 $as_echo_n "checking for pid_t... " >&6; }
7834 if test "${ac_cv_type_pid_t+set}" = set; then
7835   $as_echo_n "(cached) " >&6
7836 else
7837   ac_cv_type_pid_t=no
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844 $ac_includes_default
7845 int
7846 main ()
7847 {
7848 if (sizeof (pid_t))
7849        return 0;
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862   (eval "$ac_compile") 2>conftest.er1
7863   ac_status=$?
7864   grep -v '^ *+' conftest.er1 >conftest.err
7865   rm -f conftest.er1
7866   cat conftest.err >&5
7867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } && {
7869          test -z "$ac_c_werror_flag" ||
7870          test ! -s conftest.err
7871        } && test -s conftest.$ac_objext; then
7872   cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878 $ac_includes_default
7879 int
7880 main ()
7881 {
7882 if (sizeof ((pid_t)))
7883           return 0;
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7890 case "(($ac_try" in
7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892   *) ac_try_echo=$ac_try;;
7893 esac
7894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7895 $as_echo "$ac_try_echo") >&5
7896   (eval "$ac_compile") 2>conftest.er1
7897   ac_status=$?
7898   grep -v '^ *+' conftest.er1 >conftest.err
7899   rm -f conftest.er1
7900   cat conftest.err >&5
7901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } && {
7903          test -z "$ac_c_werror_flag" ||
7904          test ! -s conftest.err
7905        } && test -s conftest.$ac_objext; then
7906   :
7907 else
7908   $as_echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911         ac_cv_type_pid_t=yes
7912 fi
7913
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 else
7916   $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919
7920 fi
7921
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7925 $as_echo "$ac_cv_type_pid_t" >&6; }
7926 if test "x$ac_cv_type_pid_t" = x""yes; then
7927   :
7928 else
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define pid_t int
7932 _ACEOF
7933
7934 fi
7935
7936 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7937 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7938 if test "${ac_cv_header_time+set}" = set; then
7939   $as_echo_n "(cached) " >&6
7940 else
7941   cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947 #include <sys/types.h>
7948 #include <sys/time.h>
7949 #include <time.h>
7950
7951 int
7952 main ()
7953 {
7954 if ((struct tm *) 0)
7955 return 0;
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7967 $as_echo "$ac_try_echo") >&5
7968   (eval "$ac_compile") 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } && {
7975          test -z "$ac_c_werror_flag" ||
7976          test ! -s conftest.err
7977        } && test -s conftest.$ac_objext; then
7978   ac_cv_header_time=yes
7979 else
7980   $as_echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         ac_cv_header_time=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 fi
7988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7989 $as_echo "$ac_cv_header_time" >&6; }
7990 if test $ac_cv_header_time = yes; then
7991
7992 cat >>confdefs.h <<\_ACEOF
7993 #define TIME_WITH_SYS_TIME 1
7994 _ACEOF
7995
7996 fi
7997
7998 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7999 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8000 if test "${ac_cv_struct_tm+set}" = set; then
8001   $as_echo_n "(cached) " >&6
8002 else
8003   cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #include <sys/types.h>
8010 #include <time.h>
8011
8012 int
8013 main ()
8014 {
8015 struct tm tm;
8016                                      int *p = &tm.tm_sec;
8017                                      return !p;
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029 $as_echo "$ac_try_echo") >&5
8030   (eval "$ac_compile") 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } && {
8037          test -z "$ac_c_werror_flag" ||
8038          test ! -s conftest.err
8039        } && test -s conftest.$ac_objext; then
8040   ac_cv_struct_tm=time.h
8041 else
8042   $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045         ac_cv_struct_tm=sys/time.h
8046 fi
8047
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8051 $as_echo "$ac_cv_struct_tm" >&6; }
8052 if test $ac_cv_struct_tm = sys/time.h; then
8053
8054 cat >>confdefs.h <<\_ACEOF
8055 #define TM_IN_SYS_TIME 1
8056 _ACEOF
8057
8058 fi
8059
8060
8061 # Checks for library functions.
8062
8063 for ac_header in vfork.h
8064 do
8065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8067   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8068 $as_echo_n "checking for $ac_header... " >&6; }
8069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8070   $as_echo_n "(cached) " >&6
8071 fi
8072 ac_res=`eval 'as_val=${'$as_ac_Header'}
8073                  $as_echo "$as_val"'`
8074                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8075 $as_echo "$ac_res" >&6; }
8076 else
8077   # Is the header compilable?
8078 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8079 $as_echo_n "checking $ac_header usability... " >&6; }
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 $ac_includes_default
8087 #include <$ac_header>
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8096 $as_echo "$ac_try_echo") >&5
8097   (eval "$ac_compile") 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } && {
8104          test -z "$ac_c_werror_flag" ||
8105          test ! -s conftest.err
8106        } && test -s conftest.$ac_objext; then
8107   ac_header_compiler=yes
8108 else
8109   $as_echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112         ac_header_compiler=no
8113 fi
8114
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 $as_echo "$ac_header_compiler" >&6; }
8118
8119 # Is the header present?
8120 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8121 $as_echo_n "checking $ac_header presence... " >&6; }
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128 #include <$ac_header>
8129 _ACEOF
8130 if { (ac_try="$ac_cpp conftest.$ac_ext"
8131 case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136 $as_echo "$ac_try_echo") >&5
8137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } >/dev/null && {
8144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8145          test ! -s conftest.err
8146        }; then
8147   ac_header_preproc=yes
8148 else
8149   $as_echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152   ac_header_preproc=no
8153 fi
8154
8155 rm -f conftest.err conftest.$ac_ext
8156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8157 $as_echo "$ac_header_preproc" >&6; }
8158
8159 # So?  What about this header?
8160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8161   yes:no: )
8162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8163 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8165 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8166     ac_header_preproc=yes
8167     ;;
8168   no:yes:* )
8169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8170 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8172 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8174 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8176 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8180 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8181     ( cat <<\_ASBOX
8182 ## ----------------------------------- ##
8183 ## Report this to andreas@eversberg.eu ##
8184 ## ----------------------------------- ##
8185 _ASBOX
8186      ) | sed "s/^/$as_me: WARNING:     /" >&2
8187     ;;
8188 esac
8189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8190 $as_echo_n "checking for $ac_header... " >&6; }
8191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8192   $as_echo_n "(cached) " >&6
8193 else
8194   eval "$as_ac_Header=\$ac_header_preproc"
8195 fi
8196 ac_res=`eval 'as_val=${'$as_ac_Header'}
8197                  $as_echo "$as_val"'`
8198                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8199 $as_echo "$ac_res" >&6; }
8200
8201 fi
8202 as_val=`eval 'as_val=${'$as_ac_Header'}
8203                  $as_echo "$as_val"'`
8204    if test "x$as_val" = x""yes; then
8205   cat >>confdefs.h <<_ACEOF
8206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8207 _ACEOF
8208
8209 fi
8210
8211 done
8212
8213
8214
8215 for ac_func in fork vfork
8216 do
8217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8219 $as_echo_n "checking for $ac_func... " >&6; }
8220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8221   $as_echo_n "(cached) " >&6
8222 else
8223   cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8231 #define $ac_func innocuous_$ac_func
8232
8233 /* System header to define __stub macros and hopefully few prototypes,
8234     which can conflict with char $ac_func (); below.
8235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236     <limits.h> exists even on freestanding compilers.  */
8237
8238 #ifdef __STDC__
8239 # include <limits.h>
8240 #else
8241 # include <assert.h>
8242 #endif
8243
8244 #undef $ac_func
8245
8246 /* Override any GCC internal prototype to avoid an error.
8247    Use char because int might match the return type of a GCC
8248    builtin and then its argument prototype would still apply.  */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 char $ac_func ();
8253 /* The GNU C library defines this for functions which it implements
8254     to always fail with ENOSYS.  Some functions are actually named
8255     something starting with __ and the normal name is an alias.  */
8256 #if defined __stub_$ac_func || defined __stub___$ac_func
8257 choke me
8258 #endif
8259
8260 int
8261 main ()
8262 {
8263 return $ac_func ();
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8275 $as_echo "$ac_try_echo") >&5
8276   (eval "$ac_link") 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } && {
8283          test -z "$ac_c_werror_flag" ||
8284          test ! -s conftest.err
8285        } && test -s conftest$ac_exeext && {
8286          test "$cross_compiling" = yes ||
8287          $as_test_x conftest$ac_exeext
8288        }; then
8289   eval "$as_ac_var=yes"
8290 else
8291   $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         eval "$as_ac_var=no"
8295 fi
8296
8297 rm -rf conftest.dSYM
8298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299       conftest$ac_exeext conftest.$ac_ext
8300 fi
8301 ac_res=`eval 'as_val=${'$as_ac_var'}
8302                  $as_echo "$as_val"'`
8303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8304 $as_echo "$ac_res" >&6; }
8305 as_val=`eval 'as_val=${'$as_ac_var'}
8306                  $as_echo "$as_val"'`
8307    if test "x$as_val" = x""yes; then
8308   cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8310 _ACEOF
8311
8312 fi
8313 done
8314
8315 if test "x$ac_cv_func_fork" = xyes; then
8316   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8317 $as_echo_n "checking for working fork... " >&6; }
8318 if test "${ac_cv_func_fork_works+set}" = set; then
8319   $as_echo_n "(cached) " >&6
8320 else
8321   if test "$cross_compiling" = yes; then
8322   ac_cv_func_fork_works=cross
8323 else
8324   cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330 $ac_includes_default
8331 int
8332 main ()
8333 {
8334
8335           /* By Ruediger Kuhlmann. */
8336           return fork () < 0;
8337
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest$ac_exeext
8343 if { (ac_try="$ac_link"
8344 case "(($ac_try" in
8345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346   *) ac_try_echo=$ac_try;;
8347 esac
8348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8349 $as_echo "$ac_try_echo") >&5
8350   (eval "$ac_link") 2>&5
8351   ac_status=$?
8352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8354   { (case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360   (eval "$ac_try") 2>&5
8361   ac_status=$?
8362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_func_fork_works=yes
8365 else
8366   $as_echo "$as_me: program exited with status $ac_status" >&5
8367 $as_echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ( exit $ac_status )
8371 ac_cv_func_fork_works=no
8372 fi
8373 rm -rf conftest.dSYM
8374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8375 fi
8376
8377
8378 fi
8379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8380 $as_echo "$ac_cv_func_fork_works" >&6; }
8381
8382 else
8383   ac_cv_func_fork_works=$ac_cv_func_fork
8384 fi
8385 if test "x$ac_cv_func_fork_works" = xcross; then
8386   case $host in
8387     *-*-amigaos* | *-*-msdosdjgpp*)
8388       # Override, as these systems have only a dummy fork() stub
8389       ac_cv_func_fork_works=no
8390       ;;
8391     *)
8392       ac_cv_func_fork_works=yes
8393       ;;
8394   esac
8395   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8397 fi
8398 ac_cv_func_vfork_works=$ac_cv_func_vfork
8399 if test "x$ac_cv_func_vfork" = xyes; then
8400   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8401 $as_echo_n "checking for working vfork... " >&6; }
8402 if test "${ac_cv_func_vfork_works+set}" = set; then
8403   $as_echo_n "(cached) " >&6
8404 else
8405   if test "$cross_compiling" = yes; then
8406   ac_cv_func_vfork_works=cross
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414 /* Thanks to Paul Eggert for this test.  */
8415 $ac_includes_default
8416 #include <sys/wait.h>
8417 #ifdef HAVE_VFORK_H
8418 # include <vfork.h>
8419 #endif
8420 /* On some sparc systems, changes by the child to local and incoming
8421    argument registers are propagated back to the parent.  The compiler
8422    is told about this with #include <vfork.h>, but some compilers
8423    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8424    static variable whose address is put into a register that is
8425    clobbered by the vfork.  */
8426 static void
8427 #ifdef __cplusplus
8428 sparc_address_test (int arg)
8429 # else
8430 sparc_address_test (arg) int arg;
8431 #endif
8432 {
8433   static pid_t child;
8434   if (!child) {
8435     child = vfork ();
8436     if (child < 0) {
8437       perror ("vfork");
8438       _exit(2);
8439     }
8440     if (!child) {
8441       arg = getpid();
8442       write(-1, "", 0);
8443       _exit (arg);
8444     }
8445   }
8446 }
8447
8448 int
8449 main ()
8450 {
8451   pid_t parent = getpid ();
8452   pid_t child;
8453
8454   sparc_address_test (0);
8455
8456   child = vfork ();
8457
8458   if (child == 0) {
8459     /* Here is another test for sparc vfork register problems.  This
8460        test uses lots of local variables, at least as many local
8461        variables as main has allocated so far including compiler
8462        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8463        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8464        reuse the register of parent for one of the local variables,
8465        since it will think that parent can't possibly be used any more
8466        in this routine.  Assigning to the local variable will thus
8467        munge parent in the parent process.  */
8468     pid_t
8469       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8470       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8471     /* Convince the compiler that p..p7 are live; otherwise, it might
8472        use the same hardware register for all 8 local variables.  */
8473     if (p != p1 || p != p2 || p != p3 || p != p4
8474         || p != p5 || p != p6 || p != p7)
8475       _exit(1);
8476
8477     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8478        from child file descriptors.  If the child closes a descriptor
8479        before it execs or exits, this munges the parent's descriptor
8480        as well.  Test for this by closing stdout in the child.  */
8481     _exit(close(fileno(stdout)) != 0);
8482   } else {
8483     int status;
8484     struct stat st;
8485
8486     while (wait(&status) != child)
8487       ;
8488     return (
8489          /* Was there some problem with vforking?  */
8490          child < 0
8491
8492          /* Did the child fail?  (This shouldn't happen.)  */
8493          || status
8494
8495          /* Did the vfork/compiler bug occur?  */
8496          || parent != getpid()
8497
8498          /* Did the file descriptor bug occur?  */
8499          || fstat(fileno(stdout), &st) != 0
8500          );
8501   }
8502 }
8503 _ACEOF
8504 rm -f conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512   (eval "$ac_link") 2>&5
8513   ac_status=$?
8514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8516   { (case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522   (eval "$ac_try") 2>&5
8523   ac_status=$?
8524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_func_vfork_works=yes
8527 else
8528   $as_echo "$as_me: program exited with status $ac_status" >&5
8529 $as_echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ( exit $ac_status )
8533 ac_cv_func_vfork_works=no
8534 fi
8535 rm -rf conftest.dSYM
8536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8537 fi
8538
8539
8540 fi
8541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8542 $as_echo "$ac_cv_func_vfork_works" >&6; }
8543
8544 fi;
8545 if test "x$ac_cv_func_fork_works" = xcross; then
8546   ac_cv_func_vfork_works=$ac_cv_func_vfork
8547   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8548 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8549 fi
8550
8551 if test "x$ac_cv_func_vfork_works" = xyes; then
8552
8553 cat >>confdefs.h <<\_ACEOF
8554 #define HAVE_WORKING_VFORK 1
8555 _ACEOF
8556
8557 else
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define vfork fork
8561 _ACEOF
8562
8563 fi
8564 if test "x$ac_cv_func_fork_works" = xyes; then
8565
8566 cat >>confdefs.h <<\_ACEOF
8567 #define HAVE_WORKING_FORK 1
8568 _ACEOF
8569
8570 fi
8571
8572 if test $ac_cv_c_compiler_gnu = yes; then
8573     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8574 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8576   $as_echo_n "(cached) " >&6
8577 else
8578     ac_pattern="Autoconf.*'x'"
8579   cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #include <sgtty.h>
8586 Autoconf TIOCGETP
8587 _ACEOF
8588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8589   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8590   ac_cv_prog_gcc_traditional=yes
8591 else
8592   ac_cv_prog_gcc_traditional=no
8593 fi
8594 rm -f conftest*
8595
8596
8597   if test $ac_cv_prog_gcc_traditional = no; then
8598     cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h.  */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h.  */
8604 #include <termio.h>
8605 Autoconf TCGETA
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8609   ac_cv_prog_gcc_traditional=yes
8610 fi
8611 rm -f conftest*
8612
8613   fi
8614 fi
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8616 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8617   if test $ac_cv_prog_gcc_traditional = yes; then
8618     CC="$CC -traditional"
8619   fi
8620 fi
8621
8622 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8623 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8624 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8625   $as_echo_n "(cached) " >&6
8626 else
8627   rm -f conftest.sym conftest.file
8628 echo >conftest.file
8629 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8630   if test "$cross_compiling" = yes; then
8631   ac_cv_func_lstat_dereferences_slashed_symlink=no
8632 else
8633   cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639 $ac_includes_default
8640 int
8641 main ()
8642 {
8643 struct stat sbuf;
8644      /* Linux will dereference the symlink and fail.
8645         That is better in the sense that it means we will not
8646         have to compile and use the lstat wrapper.  */
8647      return lstat ("conftest.sym/", &sbuf) == 0;
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest$ac_exeext
8653 if { (ac_try="$ac_link"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660   (eval "$ac_link") 2>&5
8661   ac_status=$?
8662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8664   { (case "(($ac_try" in
8665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666   *) ac_try_echo=$ac_try;;
8667 esac
8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669 $as_echo "$ac_try_echo") >&5
8670   (eval "$ac_try") 2>&5
8671   ac_status=$?
8672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8675 else
8676   $as_echo "$as_me: program exited with status $ac_status" >&5
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 ( exit $ac_status )
8681 ac_cv_func_lstat_dereferences_slashed_symlink=no
8682 fi
8683 rm -rf conftest.dSYM
8684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685 fi
8686
8687
8688 else
8689   # If the `ln -s' command failed, then we probably don't even
8690   # have an lstat function.
8691   ac_cv_func_lstat_dereferences_slashed_symlink=no
8692 fi
8693 rm -f conftest.sym conftest.file
8694
8695 fi
8696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8697 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8698
8699 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8700
8701 cat >>confdefs.h <<_ACEOF
8702 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8703 _ACEOF
8704
8705
8706 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8707   case " $LIBOBJS " in
8708   *" lstat.$ac_objext "* ) ;;
8709   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8710  ;;
8711 esac
8712
8713 fi
8714
8715 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8716 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8717 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test "$cross_compiling" = yes; then
8721   ac_cv_func_lstat_empty_string_bug=yes
8722 else
8723   cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729 $ac_includes_default
8730 int
8731 main ()
8732 {
8733 struct stat sbuf;
8734   return lstat ("", &sbuf) == 0;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8741 case "(($ac_try" in
8742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743   *) ac_try_echo=$ac_try;;
8744 esac
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747   (eval "$ac_link") 2>&5
8748   ac_status=$?
8749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8751   { (case "(($ac_try" in
8752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753   *) ac_try_echo=$ac_try;;
8754 esac
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757   (eval "$ac_try") 2>&5
8758   ac_status=$?
8759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; }; then
8761   ac_cv_func_lstat_empty_string_bug=no
8762 else
8763   $as_echo "$as_me: program exited with status $ac_status" >&5
8764 $as_echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ( exit $ac_status )
8768 ac_cv_func_lstat_empty_string_bug=yes
8769 fi
8770 rm -rf conftest.dSYM
8771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8772 fi
8773
8774
8775 fi
8776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8777 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8778 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8779   case " $LIBOBJS " in
8780   *" lstat.$ac_objext "* ) ;;
8781   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8782  ;;
8783 esac
8784
8785
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8788 _ACEOF
8789
8790 fi
8791
8792 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8793 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8794 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8795   $as_echo_n "(cached) " >&6
8796 else
8797   rm -f conftest.sym conftest.file
8798 echo >conftest.file
8799 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8800   if test "$cross_compiling" = yes; then
8801   ac_cv_func_lstat_dereferences_slashed_symlink=no
8802 else
8803   cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 $ac_includes_default
8810 int
8811 main ()
8812 {
8813 struct stat sbuf;
8814      /* Linux will dereference the symlink and fail.
8815         That is better in the sense that it means we will not
8816         have to compile and use the lstat wrapper.  */
8817      return lstat ("conftest.sym/", &sbuf) == 0;
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830   (eval "$ac_link") 2>&5
8831   ac_status=$?
8832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
8841   ac_status=$?
8842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8845 else
8846   $as_echo "$as_me: program exited with status $ac_status" >&5
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ( exit $ac_status )
8851 ac_cv_func_lstat_dereferences_slashed_symlink=no
8852 fi
8853 rm -rf conftest.dSYM
8854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8855 fi
8856
8857
8858 else
8859   # If the `ln -s' command failed, then we probably don't even
8860   # have an lstat function.
8861   ac_cv_func_lstat_dereferences_slashed_symlink=no
8862 fi
8863 rm -f conftest.sym conftest.file
8864
8865 fi
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8867 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8868
8869 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8873 _ACEOF
8874
8875
8876 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8877   case " $LIBOBJS " in
8878   *" lstat.$ac_objext "* ) ;;
8879   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8880  ;;
8881 esac
8882
8883 fi
8884
8885
8886 for ac_header in stdlib.h
8887 do
8888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8890   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8891 $as_echo_n "checking for $ac_header... " >&6; }
8892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8893   $as_echo_n "(cached) " >&6
8894 fi
8895 ac_res=`eval 'as_val=${'$as_ac_Header'}
8896                  $as_echo "$as_val"'`
8897                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8898 $as_echo "$ac_res" >&6; }
8899 else
8900   # Is the header compilable?
8901 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 $as_echo_n "checking $ac_header usability... " >&6; }
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 $ac_includes_default
8910 #include <$ac_header>
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920   (eval "$ac_compile") 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } && {
8927          test -z "$ac_c_werror_flag" ||
8928          test ! -s conftest.err
8929        } && test -s conftest.$ac_objext; then
8930   ac_header_compiler=yes
8931 else
8932   $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935         ac_header_compiler=no
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 $as_echo "$ac_header_compiler" >&6; }
8941
8942 # Is the header present?
8943 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 $as_echo_n "checking $ac_header presence... " >&6; }
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 #include <$ac_header>
8952 _ACEOF
8953 if { (ac_try="$ac_cpp conftest.$ac_ext"
8954 case "(($ac_try" in
8955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956   *) ac_try_echo=$ac_try;;
8957 esac
8958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8959 $as_echo "$ac_try_echo") >&5
8960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8961   ac_status=$?
8962   grep -v '^ *+' conftest.er1 >conftest.err
8963   rm -f conftest.er1
8964   cat conftest.err >&5
8965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); } >/dev/null && {
8967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8968          test ! -s conftest.err
8969        }; then
8970   ac_header_preproc=yes
8971 else
8972   $as_echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975   ac_header_preproc=no
8976 fi
8977
8978 rm -f conftest.err conftest.$ac_ext
8979 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 $as_echo "$ac_header_preproc" >&6; }
8981
8982 # So?  What about this header?
8983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8984   yes:no: )
8985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989     ac_header_preproc=yes
8990     ;;
8991   no:yes:* )
8992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8995 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8999 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9000     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9004     ( cat <<\_ASBOX
9005 ## ----------------------------------- ##
9006 ## Report this to andreas@eversberg.eu ##
9007 ## ----------------------------------- ##
9008 _ASBOX
9009      ) | sed "s/^/$as_me: WARNING:     /" >&2
9010     ;;
9011 esac
9012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9013 $as_echo_n "checking for $ac_header... " >&6; }
9014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9015   $as_echo_n "(cached) " >&6
9016 else
9017   eval "$as_ac_Header=\$ac_header_preproc"
9018 fi
9019 ac_res=`eval 'as_val=${'$as_ac_Header'}
9020                  $as_echo "$as_val"'`
9021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9022 $as_echo "$ac_res" >&6; }
9023
9024 fi
9025 as_val=`eval 'as_val=${'$as_ac_Header'}
9026                  $as_echo "$as_val"'`
9027    if test "x$as_val" = x""yes; then
9028   cat >>confdefs.h <<_ACEOF
9029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9030 _ACEOF
9031
9032 fi
9033
9034 done
9035
9036 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9037 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9038 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9039   $as_echo_n "(cached) " >&6
9040 else
9041   if test "$cross_compiling" = yes; then
9042   ac_cv_func_malloc_0_nonnull=no
9043 else
9044   cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9051 # include <stdlib.h>
9052 #else
9053 char *malloc ();
9054 #endif
9055
9056 int
9057 main ()
9058 {
9059 return ! malloc (0);
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068   *) ac_try_echo=$ac_try;;
9069 esac
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072   (eval "$ac_link") 2>&5
9073   ac_status=$?
9074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9076   { (case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9081 $as_echo "$ac_try_echo") >&5
9082   (eval "$ac_try") 2>&5
9083   ac_status=$?
9084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   ac_cv_func_malloc_0_nonnull=yes
9087 else
9088   $as_echo "$as_me: program exited with status $ac_status" >&5
9089 $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092 ( exit $ac_status )
9093 ac_cv_func_malloc_0_nonnull=no
9094 fi
9095 rm -rf conftest.dSYM
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9097 fi
9098
9099
9100 fi
9101 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9102 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9103 if test $ac_cv_func_malloc_0_nonnull = yes; then
9104
9105 cat >>confdefs.h <<\_ACEOF
9106 #define HAVE_MALLOC 1
9107 _ACEOF
9108
9109 else
9110   cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_MALLOC 0
9112 _ACEOF
9113
9114    case " $LIBOBJS " in
9115   *" malloc.$ac_objext "* ) ;;
9116   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9117  ;;
9118 esac
9119
9120
9121 cat >>confdefs.h <<\_ACEOF
9122 #define malloc rpl_malloc
9123 _ACEOF
9124
9125 fi
9126
9127
9128
9129 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9130 $as_echo_n "checking for working memcmp... " >&6; }
9131 if test "${ac_cv_func_memcmp_working+set}" = set; then
9132   $as_echo_n "(cached) " >&6
9133 else
9134   if test "$cross_compiling" = yes; then
9135   ac_cv_func_memcmp_working=no
9136 else
9137   cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h.  */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h.  */
9143 $ac_includes_default
9144 int
9145 main ()
9146 {
9147
9148   /* Some versions of memcmp are not 8-bit clean.  */
9149   char c0 = '\100', c1 = '\200', c2 = '\201';
9150   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9151     return 1;
9152
9153   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9154      or more and with at least one buffer not starting on a 4-byte boundary.
9155      William Lewis provided this test program.   */
9156   {
9157     char foo[21];
9158     char bar[21];
9159     int i;
9160     for (i = 0; i < 4; i++)
9161       {
9162         char *a = foo + i;
9163         char *b = bar + i;
9164         strcpy (a, "--------01111111");
9165         strcpy (b, "--------10000000");
9166         if (memcmp (a, b, 16) >= 0)
9167           return 1;
9168       }
9169     return 0;
9170   }
9171
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest$ac_exeext
9177 if { (ac_try="$ac_link"
9178 case "(($ac_try" in
9179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180   *) ac_try_echo=$ac_try;;
9181 esac
9182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9183 $as_echo "$ac_try_echo") >&5
9184   (eval "$ac_link") 2>&5
9185   ac_status=$?
9186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9188   { (case "(($ac_try" in
9189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190   *) ac_try_echo=$ac_try;;
9191 esac
9192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193 $as_echo "$ac_try_echo") >&5
9194   (eval "$ac_try") 2>&5
9195   ac_status=$?
9196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_func_memcmp_working=yes
9199 else
9200   $as_echo "$as_me: program exited with status $ac_status" >&5
9201 $as_echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ( exit $ac_status )
9205 ac_cv_func_memcmp_working=no
9206 fi
9207 rm -rf conftest.dSYM
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9209 fi
9210
9211
9212 fi
9213 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9214 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9215 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9216   *" memcmp.$ac_objext "* ) ;;
9217   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9218  ;;
9219 esac
9220
9221
9222 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9223 $as_echo_n "checking return type of signal handlers... " >&6; }
9224 if test "${ac_cv_type_signal+set}" = set; then
9225   $as_echo_n "(cached) " >&6
9226 else
9227   cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233 #include <sys/types.h>
9234 #include <signal.h>
9235
9236 int
9237 main ()
9238 {
9239 return *(signal (0, 0)) (0) == 1;
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9251 $as_echo "$ac_try_echo") >&5
9252   (eval "$ac_compile") 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } && {
9259          test -z "$ac_c_werror_flag" ||
9260          test ! -s conftest.err
9261        } && test -s conftest.$ac_objext; then
9262   ac_cv_type_signal=int
9263 else
9264   $as_echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         ac_cv_type_signal=void
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9273 $as_echo "$ac_cv_type_signal" >&6; }
9274
9275 cat >>confdefs.h <<_ACEOF
9276 #define RETSIGTYPE $ac_cv_type_signal
9277 _ACEOF
9278
9279
9280 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9281 $as_echo_n "checking for working strnlen... " >&6; }
9282 if test "${ac_cv_func_strnlen_working+set}" = set; then
9283   $as_echo_n "(cached) " >&6
9284 else
9285   if test "$cross_compiling" = yes; then
9286   ac_cv_func_strnlen_working=no
9287 else
9288   cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294 $ac_includes_default
9295 int
9296 main ()
9297 {
9298
9299 #define S "foobar"
9300 #define S_LEN (sizeof S - 1)
9301
9302   /* At least one implementation is buggy: that of AIX 4.3 would
9303      give strnlen (S, 1) == 3.  */
9304
9305   int i;
9306   for (i = 0; i < S_LEN + 1; ++i)
9307     {
9308       int expected = i <= S_LEN ? i : S_LEN;
9309       if (strnlen (S, i) != expected)
9310         return 1;
9311     }
9312   return 0;
9313
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9320 case "(($ac_try" in
9321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322   *) ac_try_echo=$ac_try;;
9323 esac
9324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9325 $as_echo "$ac_try_echo") >&5
9326   (eval "$ac_link") 2>&5
9327   ac_status=$?
9328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9330   { (case "(($ac_try" in
9331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332   *) ac_try_echo=$ac_try;;
9333 esac
9334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9335 $as_echo "$ac_try_echo") >&5
9336   (eval "$ac_try") 2>&5
9337   ac_status=$?
9338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_func_strnlen_working=yes
9341 else
9342   $as_echo "$as_me: program exited with status $ac_status" >&5
9343 $as_echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ( exit $ac_status )
9347 ac_cv_func_strnlen_working=no
9348 fi
9349 rm -rf conftest.dSYM
9350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9351 fi
9352
9353
9354 fi
9355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9356 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9357 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9358   *" strnlen.$ac_objext "* ) ;;
9359   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9360  ;;
9361 esac
9362
9363
9364 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9365 $as_echo_n "checking for working strtod... " >&6; }
9366 if test "${ac_cv_func_strtod+set}" = set; then
9367   $as_echo_n "(cached) " >&6
9368 else
9369   if test "$cross_compiling" = yes; then
9370   ac_cv_func_strtod=no
9371 else
9372   cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378
9379 $ac_includes_default
9380 #ifndef strtod
9381 double strtod ();
9382 #endif
9383 int
9384 main()
9385 {
9386   {
9387     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9388     char *string = " +69";
9389     char *term;
9390     double value;
9391     value = strtod (string, &term);
9392     if (value != 69 || term != (string + 4))
9393       return 1;
9394   }
9395
9396   {
9397     /* Under Solaris 2.4, strtod returns the wrong value for the
9398        terminating character under some conditions.  */
9399     char *string = "NaN";
9400     char *term;
9401     strtod (string, &term);
9402     if (term != string && *(term - 1) == 0)
9403       return 1;
9404   }
9405   return 0;
9406 }
9407
9408 _ACEOF
9409 rm -f conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9411 case "(($ac_try" in
9412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413   *) ac_try_echo=$ac_try;;
9414 esac
9415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9416 $as_echo "$ac_try_echo") >&5
9417   (eval "$ac_link") 2>&5
9418   ac_status=$?
9419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421   { (case "(($ac_try" in
9422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423   *) ac_try_echo=$ac_try;;
9424 esac
9425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426 $as_echo "$ac_try_echo") >&5
9427   (eval "$ac_try") 2>&5
9428   ac_status=$?
9429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; }; then
9431   ac_cv_func_strtod=yes
9432 else
9433   $as_echo "$as_me: program exited with status $ac_status" >&5
9434 $as_echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 ( exit $ac_status )
9438 ac_cv_func_strtod=no
9439 fi
9440 rm -rf conftest.dSYM
9441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9442 fi
9443
9444
9445 fi
9446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9447 $as_echo "$ac_cv_func_strtod" >&6; }
9448 if test $ac_cv_func_strtod = no; then
9449   case " $LIBOBJS " in
9450   *" strtod.$ac_objext "* ) ;;
9451   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9452  ;;
9453 esac
9454
9455 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9456 $as_echo_n "checking for pow... " >&6; }
9457 if test "${ac_cv_func_pow+set}" = set; then
9458   $as_echo_n "(cached) " >&6
9459 else
9460   cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9468 #define pow innocuous_pow
9469
9470 /* System header to define __stub macros and hopefully few prototypes,
9471     which can conflict with char pow (); below.
9472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473     <limits.h> exists even on freestanding compilers.  */
9474
9475 #ifdef __STDC__
9476 # include <limits.h>
9477 #else
9478 # include <assert.h>
9479 #endif
9480
9481 #undef pow
9482
9483 /* Override any GCC internal prototype to avoid an error.
9484    Use char because int might match the return type of a GCC
9485    builtin and then its argument prototype would still apply.  */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char pow ();
9490 /* The GNU C library defines this for functions which it implements
9491     to always fail with ENOSYS.  Some functions are actually named
9492     something starting with __ and the normal name is an alias.  */
9493 #if defined __stub_pow || defined __stub___pow
9494 choke me
9495 #endif
9496
9497 int
9498 main ()
9499 {
9500 return pow ();
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9507 case "(($ac_try" in
9508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509   *) ac_try_echo=$ac_try;;
9510 esac
9511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9512 $as_echo "$ac_try_echo") >&5
9513   (eval "$ac_link") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } && {
9520          test -z "$ac_c_werror_flag" ||
9521          test ! -s conftest.err
9522        } && test -s conftest$ac_exeext && {
9523          test "$cross_compiling" = yes ||
9524          $as_test_x conftest$ac_exeext
9525        }; then
9526   ac_cv_func_pow=yes
9527 else
9528   $as_echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531         ac_cv_func_pow=no
9532 fi
9533
9534 rm -rf conftest.dSYM
9535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9536       conftest$ac_exeext conftest.$ac_ext
9537 fi
9538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9539 $as_echo "$ac_cv_func_pow" >&6; }
9540
9541 if test $ac_cv_func_pow = no; then
9542   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9543 $as_echo_n "checking for pow in -lm... " >&6; }
9544 if test "${ac_cv_lib_m_pow+set}" = set; then
9545   $as_echo_n "(cached) " >&6
9546 else
9547   ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lm  $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char pow ();
9563 int
9564 main ()
9565 {
9566 return pow ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579   (eval "$ac_link") 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } && {
9586          test -z "$ac_c_werror_flag" ||
9587          test ! -s conftest.err
9588        } && test -s conftest$ac_exeext && {
9589          test "$cross_compiling" = yes ||
9590          $as_test_x conftest$ac_exeext
9591        }; then
9592   ac_cv_lib_m_pow=yes
9593 else
9594   $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         ac_cv_lib_m_pow=no
9598 fi
9599
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602       conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9604 fi
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9606 $as_echo "$ac_cv_lib_m_pow" >&6; }
9607 if test "x$ac_cv_lib_m_pow" = x""yes; then
9608   POW_LIB=-lm
9609 else
9610   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9611 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9612 fi
9613
9614 fi
9615
9616 fi
9617
9618
9619 for ac_func in vprintf
9620 do
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9623 $as_echo_n "checking for $ac_func... " >&6; }
9624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9625   $as_echo_n "(cached) " >&6
9626 else
9627   cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9635 #define $ac_func innocuous_$ac_func
9636
9637 /* System header to define __stub macros and hopefully few prototypes,
9638     which can conflict with char $ac_func (); below.
9639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9640     <limits.h> exists even on freestanding compilers.  */
9641
9642 #ifdef __STDC__
9643 # include <limits.h>
9644 #else
9645 # include <assert.h>
9646 #endif
9647
9648 #undef $ac_func
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651    Use char because int might match the return type of a GCC
9652    builtin and then its argument prototype would still apply.  */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char $ac_func ();
9657 /* The GNU C library defines this for functions which it implements
9658     to always fail with ENOSYS.  Some functions are actually named
9659     something starting with __ and the normal name is an alias.  */
9660 #if defined __stub_$ac_func || defined __stub___$ac_func
9661 choke me
9662 #endif
9663
9664 int
9665 main ()
9666 {
9667 return $ac_func ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679 $as_echo "$ac_try_echo") >&5
9680   (eval "$ac_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } && {
9687          test -z "$ac_c_werror_flag" ||
9688          test ! -s conftest.err
9689        } && test -s conftest$ac_exeext && {
9690          test "$cross_compiling" = yes ||
9691          $as_test_x conftest$ac_exeext
9692        }; then
9693   eval "$as_ac_var=yes"
9694 else
9695   $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698         eval "$as_ac_var=no"
9699 fi
9700
9701 rm -rf conftest.dSYM
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703       conftest$ac_exeext conftest.$ac_ext
9704 fi
9705 ac_res=`eval 'as_val=${'$as_ac_var'}
9706                  $as_echo "$as_val"'`
9707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9708 $as_echo "$ac_res" >&6; }
9709 as_val=`eval 'as_val=${'$as_ac_var'}
9710                  $as_echo "$as_val"'`
9711    if test "x$as_val" = x""yes; then
9712   cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9714 _ACEOF
9715
9716 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9717 $as_echo_n "checking for _doprnt... " >&6; }
9718 if test "${ac_cv_func__doprnt+set}" = set; then
9719   $as_echo_n "(cached) " >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9729 #define _doprnt innocuous__doprnt
9730
9731 /* System header to define __stub macros and hopefully few prototypes,
9732     which can conflict with char _doprnt (); below.
9733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9734     <limits.h> exists even on freestanding compilers.  */
9735
9736 #ifdef __STDC__
9737 # include <limits.h>
9738 #else
9739 # include <assert.h>
9740 #endif
9741
9742 #undef _doprnt
9743
9744 /* Override any GCC internal prototype to avoid an error.
9745    Use char because int might match the return type of a GCC
9746    builtin and then its argument prototype would still apply.  */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 char _doprnt ();
9751 /* The GNU C library defines this for functions which it implements
9752     to always fail with ENOSYS.  Some functions are actually named
9753     something starting with __ and the normal name is an alias.  */
9754 #if defined __stub__doprnt || defined __stub____doprnt
9755 choke me
9756 #endif
9757
9758 int
9759 main ()
9760 {
9761 return _doprnt ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770   *) ac_try_echo=$ac_try;;
9771 esac
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774   (eval "$ac_link") 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } && {
9781          test -z "$ac_c_werror_flag" ||
9782          test ! -s conftest.err
9783        } && test -s conftest$ac_exeext && {
9784          test "$cross_compiling" = yes ||
9785          $as_test_x conftest$ac_exeext
9786        }; then
9787   ac_cv_func__doprnt=yes
9788 else
9789   $as_echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792         ac_cv_func__doprnt=no
9793 fi
9794
9795 rm -rf conftest.dSYM
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797       conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9800 $as_echo "$ac_cv_func__doprnt" >&6; }
9801 if test "x$ac_cv_func__doprnt" = x""yes; then
9802
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_DOPRNT 1
9805 _ACEOF
9806
9807 fi
9808
9809 fi
9810 done
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9826 do
9827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9829 $as_echo_n "checking for $ac_func... " >&6; }
9830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9831   $as_echo_n "(cached) " >&6
9832 else
9833   cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9841 #define $ac_func innocuous_$ac_func
9842
9843 /* System header to define __stub macros and hopefully few prototypes,
9844     which can conflict with char $ac_func (); below.
9845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9846     <limits.h> exists even on freestanding compilers.  */
9847
9848 #ifdef __STDC__
9849 # include <limits.h>
9850 #else
9851 # include <assert.h>
9852 #endif
9853
9854 #undef $ac_func
9855
9856 /* Override any GCC internal prototype to avoid an error.
9857    Use char because int might match the return type of a GCC
9858    builtin and then its argument prototype would still apply.  */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 char $ac_func ();
9863 /* The GNU C library defines this for functions which it implements
9864     to always fail with ENOSYS.  Some functions are actually named
9865     something starting with __ and the normal name is an alias.  */
9866 #if defined __stub_$ac_func || defined __stub___$ac_func
9867 choke me
9868 #endif
9869
9870 int
9871 main ()
9872 {
9873 return $ac_func ();
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885 $as_echo "$ac_try_echo") >&5
9886   (eval "$ac_link") 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } && {
9893          test -z "$ac_c_werror_flag" ||
9894          test ! -s conftest.err
9895        } && test -s conftest$ac_exeext && {
9896          test "$cross_compiling" = yes ||
9897          $as_test_x conftest$ac_exeext
9898        }; then
9899   eval "$as_ac_var=yes"
9900 else
9901   $as_echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         eval "$as_ac_var=no"
9905 fi
9906
9907 rm -rf conftest.dSYM
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909       conftest$ac_exeext conftest.$ac_ext
9910 fi
9911 ac_res=`eval 'as_val=${'$as_ac_var'}
9912                  $as_echo "$as_val"'`
9913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9914 $as_echo "$ac_res" >&6; }
9915 as_val=`eval 'as_val=${'$as_ac_var'}
9916                  $as_echo "$as_val"'`
9917    if test "x$as_val" = x""yes; then
9918   cat >>confdefs.h <<_ACEOF
9919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9920 _ACEOF
9921
9922 fi
9923 done
9924
9925
9926
9927 ac_config_files="$ac_config_files Makefile"
9928
9929 cat >confcache <<\_ACEOF
9930 # This file is a shell script that caches the results of configure
9931 # tests run on this system so they can be shared between configure
9932 # scripts and configure runs, see configure's option --config-cache.
9933 # It is not useful on other systems.  If it contains results you don't
9934 # want to keep, you may remove or edit it.
9935 #
9936 # config.status only pays attention to the cache file if you give it
9937 # the --recheck option to rerun configure.
9938 #
9939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9941 # following values.
9942
9943 _ACEOF
9944
9945 # The following way of writing the cache mishandles newlines in values,
9946 # but we know of no workaround that is simple, portable, and efficient.
9947 # So, we kill variables containing newlines.
9948 # Ultrix sh set writes to stderr and can't be redirected directly,
9949 # and sets the high bit in the cache file unless we assign to the vars.
9950 (
9951   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9952     eval ac_val=\$$ac_var
9953     case $ac_val in #(
9954     *${as_nl}*)
9955       case $ac_var in #(
9956       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9958       esac
9959       case $ac_var in #(
9960       _ | IFS | as_nl) ;; #(
9961       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9962       *) $as_unset $ac_var ;;
9963       esac ;;
9964     esac
9965   done
9966
9967   (set) 2>&1 |
9968     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9969     *${as_nl}ac_space=\ *)
9970       # `set' does not quote correctly, so add quotes (double-quote
9971       # substitution turns \\\\ into \\, and sed turns \\ into \).
9972       sed -n \
9973         "s/'/'\\\\''/g;
9974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9975       ;; #(
9976     *)
9977       # `set' quotes correctly as required by POSIX, so do not add quotes.
9978       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9979       ;;
9980     esac |
9981     sort
9982 ) |
9983   sed '
9984      /^ac_cv_env_/b end
9985      t clear
9986      :clear
9987      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9988      t end
9989      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9990      :end' >>confcache
9991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9992   if test -w "$cache_file"; then
9993     test "x$cache_file" != "x/dev/null" &&
9994       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9995 $as_echo "$as_me: updating cache $cache_file" >&6;}
9996     cat confcache >$cache_file
9997   else
9998     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9999 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10000   fi
10001 fi
10002 rm -f confcache
10003
10004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10005 # Let make expand exec_prefix.
10006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10007
10008 DEFS=-DHAVE_CONFIG_H
10009
10010 ac_libobjs=
10011 ac_ltlibobjs=
10012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10013   # 1. Remove the extension, and $U if already installed.
10014   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10015   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10016   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10017   #    will be set to the directory where LIBOBJS objects are built.
10018   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10019   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10020 done
10021 LIBOBJS=$ac_libobjs
10022
10023 LTLIBOBJS=$ac_ltlibobjs
10024
10025
10026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10027   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10028 Usually this means the macro was only invoked conditionally." >&5
10029 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10030 Usually this means the macro was only invoked conditionally." >&2;}
10031    { (exit 1); exit 1; }; }
10032 fi
10033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10034   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10035 Usually this means the macro was only invoked conditionally." >&5
10036 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10037 Usually this means the macro was only invoked conditionally." >&2;}
10038    { (exit 1); exit 1; }; }
10039 fi
10040 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10041   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10042 Usually this means the macro was only invoked conditionally." >&5
10043 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10044 Usually this means the macro was only invoked conditionally." >&2;}
10045    { (exit 1); exit 1; }; }
10046 fi
10047 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
10048   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10049 Usually this means the macro was only invoked conditionally." >&5
10050 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10051 Usually this means the macro was only invoked conditionally." >&2;}
10052    { (exit 1); exit 1; }; }
10053 fi
10054 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
10055   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_BS\" was never defined.
10056 Usually this means the macro was only invoked conditionally." >&5
10057 $as_echo "$as_me: error: conditional \"ENABLE_GSM_BS\" was never defined.
10058 Usually this means the macro was only invoked conditionally." >&2;}
10059    { (exit 1); exit 1; }; }
10060 fi
10061 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
10062   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_MS\" was never defined.
10063 Usually this means the macro was only invoked conditionally." >&5
10064 $as_echo "$as_me: error: conditional \"ENABLE_GSM_MS\" was never defined.
10065 Usually this means the macro was only invoked conditionally." >&2;}
10066    { (exit 1); exit 1; }; }
10067 fi
10068 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
10069   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
10070 Usually this means the macro was only invoked conditionally." >&5
10071 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
10072 Usually this means the macro was only invoked conditionally." >&2;}
10073    { (exit 1); exit 1; }; }
10074 fi
10075 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
10076   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
10077 Usually this means the macro was only invoked conditionally." >&5
10078 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
10079 Usually this means the macro was only invoked conditionally." >&2;}
10080    { (exit 1); exit 1; }; }
10081 fi
10082
10083 : ${CONFIG_STATUS=./config.status}
10084 ac_write_fail=0
10085 ac_clean_files_save=$ac_clean_files
10086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10087 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10089 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10090 #! $SHELL
10091 # Generated by $as_me.
10092 # Run this file to recreate the current configuration.
10093 # Compiler output produced by configure, useful for debugging
10094 # configure, is in config.log if it exists.
10095
10096 debug=false
10097 ac_cs_recheck=false
10098 ac_cs_silent=false
10099 SHELL=\${CONFIG_SHELL-$SHELL}
10100 _ACEOF
10101
10102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10103 ## --------------------- ##
10104 ## M4sh Initialization.  ##
10105 ## --------------------- ##
10106
10107 # Be more Bourne compatible
10108 DUALCASE=1; export DUALCASE # for MKS sh
10109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10110   emulate sh
10111   NULLCMD=:
10112   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10113   # is contrary to our usage.  Disable this feature.
10114   alias -g '${1+"$@"}'='"$@"'
10115   setopt NO_GLOB_SUBST
10116 else
10117   case `(set -o) 2>/dev/null` in
10118   *posix*) set -o posix ;;
10119 esac
10120
10121 fi
10122
10123
10124
10125
10126 # PATH needs CR
10127 # Avoid depending upon Character Ranges.
10128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10131 as_cr_digits='0123456789'
10132 as_cr_alnum=$as_cr_Letters$as_cr_digits
10133
10134 as_nl='
10135 '
10136 export as_nl
10137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10141 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10142   as_echo='printf %s\n'
10143   as_echo_n='printf %s'
10144 else
10145   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10146     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10147     as_echo_n='/usr/ucb/echo -n'
10148   else
10149     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10150     as_echo_n_body='eval
10151       arg=$1;
10152       case $arg in
10153       *"$as_nl"*)
10154         expr "X$arg" : "X\\(.*\\)$as_nl";
10155         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10156       esac;
10157       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10158     '
10159     export as_echo_n_body
10160     as_echo_n='sh -c $as_echo_n_body as_echo'
10161   fi
10162   export as_echo_body
10163   as_echo='sh -c $as_echo_body as_echo'
10164 fi
10165
10166 # The user is always right.
10167 if test "${PATH_SEPARATOR+set}" != set; then
10168   PATH_SEPARATOR=:
10169   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10170     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10171       PATH_SEPARATOR=';'
10172   }
10173 fi
10174
10175 # Support unset when possible.
10176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10177   as_unset=unset
10178 else
10179   as_unset=false
10180 fi
10181
10182
10183 # IFS
10184 # We need space, tab and new line, in precisely that order.  Quoting is
10185 # there to prevent editors from complaining about space-tab.
10186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10187 # splitting by setting IFS to empty value.)
10188 IFS=" ""        $as_nl"
10189
10190 # Find who we are.  Look in the path if we contain no directory separator.
10191 case $0 in
10192   *[\\/]* ) as_myself=$0 ;;
10193   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10199 done
10200 IFS=$as_save_IFS
10201
10202      ;;
10203 esac
10204 # We did not find ourselves, most probably we were run as `sh COMMAND'
10205 # in which case we are not to be found in the path.
10206 if test "x$as_myself" = x; then
10207   as_myself=$0
10208 fi
10209 if test ! -f "$as_myself"; then
10210   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10211   { (exit 1); exit 1; }
10212 fi
10213
10214 # Work around bugs in pre-3.0 UWIN ksh.
10215 for as_var in ENV MAIL MAILPATH
10216 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10217 done
10218 PS1='$ '
10219 PS2='> '
10220 PS4='+ '
10221
10222 # NLS nuisances.
10223 LC_ALL=C
10224 export LC_ALL
10225 LANGUAGE=C
10226 export LANGUAGE
10227
10228 # Required to use basename.
10229 if expr a : '\(a\)' >/dev/null 2>&1 &&
10230    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10231   as_expr=expr
10232 else
10233   as_expr=false
10234 fi
10235
10236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10237   as_basename=basename
10238 else
10239   as_basename=false
10240 fi
10241
10242
10243 # Name of the executable.
10244 as_me=`$as_basename -- "$0" ||
10245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10246          X"$0" : 'X\(//\)$' \| \
10247          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10248 $as_echo X/"$0" |
10249     sed '/^.*\/\([^/][^/]*\)\/*$/{
10250             s//\1/
10251             q
10252           }
10253           /^X\/\(\/\/\)$/{
10254             s//\1/
10255             q
10256           }
10257           /^X\/\(\/\).*/{
10258             s//\1/
10259             q
10260           }
10261           s/.*/./; q'`
10262
10263 # CDPATH.
10264 $as_unset CDPATH
10265
10266
10267
10268   as_lineno_1=$LINENO
10269   as_lineno_2=$LINENO
10270   test "x$as_lineno_1" != "x$as_lineno_2" &&
10271   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10272
10273   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10274   # uniformly replaced by the line number.  The first 'sed' inserts a
10275   # line-number line after each line using $LINENO; the second 'sed'
10276   # does the real work.  The second script uses 'N' to pair each
10277   # line-number line with the line containing $LINENO, and appends
10278   # trailing '-' during substitution so that $LINENO is not a special
10279   # case at line end.
10280   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10281   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10282   # E. McMahon (1931-1989) for sed's syntax.  :-)
10283   sed -n '
10284     p
10285     /[$]LINENO/=
10286   ' <$as_myself |
10287     sed '
10288       s/[$]LINENO.*/&-/
10289       t lineno
10290       b
10291       :lineno
10292       N
10293       :loop
10294       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10295       t loop
10296       s/-\n.*//
10297     ' >$as_me.lineno &&
10298   chmod +x "$as_me.lineno" ||
10299     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10300    { (exit 1); exit 1; }; }
10301
10302   # Don't try to exec as it changes $[0], causing all sort of problems
10303   # (the dirname of $[0] is not the place where we might find the
10304   # original and so on.  Autoconf is especially sensitive to this).
10305   . "./$as_me.lineno"
10306   # Exit status is that of the last command.
10307   exit
10308 }
10309
10310
10311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10312   as_dirname=dirname
10313 else
10314   as_dirname=false
10315 fi
10316
10317 ECHO_C= ECHO_N= ECHO_T=
10318 case `echo -n x` in
10319 -n*)
10320   case `echo 'x\c'` in
10321   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10322   *)   ECHO_C='\c';;
10323   esac;;
10324 *)
10325   ECHO_N='-n';;
10326 esac
10327 if expr a : '\(a\)' >/dev/null 2>&1 &&
10328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10329   as_expr=expr
10330 else
10331   as_expr=false
10332 fi
10333
10334 rm -f conf$$ conf$$.exe conf$$.file
10335 if test -d conf$$.dir; then
10336   rm -f conf$$.dir/conf$$.file
10337 else
10338   rm -f conf$$.dir
10339   mkdir conf$$.dir 2>/dev/null
10340 fi
10341 if (echo >conf$$.file) 2>/dev/null; then
10342   if ln -s conf$$.file conf$$ 2>/dev/null; then
10343     as_ln_s='ln -s'
10344     # ... but there are two gotchas:
10345     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10346     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10347     # In both cases, we have to default to `cp -p'.
10348     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10349       as_ln_s='cp -p'
10350   elif ln conf$$.file conf$$ 2>/dev/null; then
10351     as_ln_s=ln
10352   else
10353     as_ln_s='cp -p'
10354   fi
10355 else
10356   as_ln_s='cp -p'
10357 fi
10358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10359 rmdir conf$$.dir 2>/dev/null
10360
10361 if mkdir -p . 2>/dev/null; then
10362   as_mkdir_p=:
10363 else
10364   test -d ./-p && rmdir ./-p
10365   as_mkdir_p=false
10366 fi
10367
10368 if test -x / >/dev/null 2>&1; then
10369   as_test_x='test -x'
10370 else
10371   if ls -dL / >/dev/null 2>&1; then
10372     as_ls_L_option=L
10373   else
10374     as_ls_L_option=
10375   fi
10376   as_test_x='
10377     eval sh -c '\''
10378       if test -d "$1"; then
10379         test -d "$1/.";
10380       else
10381         case $1 in
10382         -*)set "./$1";;
10383         esac;
10384         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10385         ???[sx]*):;;*)false;;esac;fi
10386     '\'' sh
10387   '
10388 fi
10389 as_executable_p=$as_test_x
10390
10391 # Sed expression to map a string onto a valid CPP name.
10392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10393
10394 # Sed expression to map a string onto a valid variable name.
10395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10396
10397
10398 exec 6>&1
10399
10400 # Save the log message, to keep $[0] and so on meaningful, and to
10401 # report actual input values of CONFIG_FILES etc. instead of their
10402 # values after options handling.
10403 ac_log="
10404 This file was extended by lcr $as_me 1.7, which was
10405 generated by GNU Autoconf 2.63.  Invocation command line was
10406
10407   CONFIG_FILES    = $CONFIG_FILES
10408   CONFIG_HEADERS  = $CONFIG_HEADERS
10409   CONFIG_LINKS    = $CONFIG_LINKS
10410   CONFIG_COMMANDS = $CONFIG_COMMANDS
10411   $ $0 $@
10412
10413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10414 "
10415
10416 _ACEOF
10417
10418 case $ac_config_files in *"
10419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10420 esac
10421
10422 case $ac_config_headers in *"
10423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10424 esac
10425
10426
10427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10428 # Files that config.status was made for.
10429 config_files="$ac_config_files"
10430 config_headers="$ac_config_headers"
10431 config_commands="$ac_config_commands"
10432
10433 _ACEOF
10434
10435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10436 ac_cs_usage="\
10437 \`$as_me' instantiates files from templates according to the
10438 current configuration.
10439
10440 Usage: $0 [OPTION]... [FILE]...
10441
10442   -h, --help       print this help, then exit
10443   -V, --version    print version number and configuration settings, then exit
10444   -q, --quiet, --silent
10445                    do not print progress messages
10446   -d, --debug      don't remove temporary files
10447       --recheck    update $as_me by reconfiguring in the same conditions
10448       --file=FILE[:TEMPLATE]
10449                    instantiate the configuration file FILE
10450       --header=FILE[:TEMPLATE]
10451                    instantiate the configuration header FILE
10452
10453 Configuration files:
10454 $config_files
10455
10456 Configuration headers:
10457 $config_headers
10458
10459 Configuration commands:
10460 $config_commands
10461
10462 Report bugs to <bug-autoconf@gnu.org>."
10463
10464 _ACEOF
10465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10466 ac_cs_version="\\
10467 lcr config.status 1.7
10468 configured by $0, generated by GNU Autoconf 2.63,
10469   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10470
10471 Copyright (C) 2008 Free Software Foundation, Inc.
10472 This config.status script is free software; the Free Software Foundation
10473 gives unlimited permission to copy, distribute and modify it."
10474
10475 ac_pwd='$ac_pwd'
10476 srcdir='$srcdir'
10477 INSTALL='$INSTALL'
10478 AWK='$AWK'
10479 test -n "\$AWK" || AWK=awk
10480 _ACEOF
10481
10482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10483 # The default lists apply if the user does not specify any file.
10484 ac_need_defaults=:
10485 while test $# != 0
10486 do
10487   case $1 in
10488   --*=*)
10489     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10490     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10491     ac_shift=:
10492     ;;
10493   *)
10494     ac_option=$1
10495     ac_optarg=$2
10496     ac_shift=shift
10497     ;;
10498   esac
10499
10500   case $ac_option in
10501   # Handling of the options.
10502   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10503     ac_cs_recheck=: ;;
10504   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10505     $as_echo "$ac_cs_version"; exit ;;
10506   --debug | --debu | --deb | --de | --d | -d )
10507     debug=: ;;
10508   --file | --fil | --fi | --f )
10509     $ac_shift
10510     case $ac_optarg in
10511     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10512     esac
10513     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10514     ac_need_defaults=false;;
10515   --header | --heade | --head | --hea )
10516     $ac_shift
10517     case $ac_optarg in
10518     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10519     esac
10520     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10521     ac_need_defaults=false;;
10522   --he | --h)
10523     # Conflict between --help and --header
10524     { $as_echo "$as_me: error: ambiguous option: $1
10525 Try \`$0 --help' for more information." >&2
10526    { (exit 1); exit 1; }; };;
10527   --help | --hel | -h )
10528     $as_echo "$ac_cs_usage"; exit ;;
10529   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10530   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10531     ac_cs_silent=: ;;
10532
10533   # This is an error.
10534   -*) { $as_echo "$as_me: error: unrecognized option: $1
10535 Try \`$0 --help' for more information." >&2
10536    { (exit 1); exit 1; }; } ;;
10537
10538   *) ac_config_targets="$ac_config_targets $1"
10539      ac_need_defaults=false ;;
10540
10541   esac
10542   shift
10543 done
10544
10545 ac_configure_extra_args=
10546
10547 if $ac_cs_silent; then
10548   exec 6>/dev/null
10549   ac_configure_extra_args="$ac_configure_extra_args --silent"
10550 fi
10551
10552 _ACEOF
10553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10554 if \$ac_cs_recheck; then
10555   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10556   shift
10557   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10558   CONFIG_SHELL='$SHELL'
10559   export CONFIG_SHELL
10560   exec "\$@"
10561 fi
10562
10563 _ACEOF
10564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10565 exec 5>>config.log
10566 {
10567   echo
10568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10569 ## Running $as_me. ##
10570 _ASBOX
10571   $as_echo "$ac_log"
10572 } >&5
10573
10574 _ACEOF
10575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10576 #
10577 # INIT-COMMANDS
10578 #
10579 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10580
10581 _ACEOF
10582
10583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10584
10585 # Handling of arguments.
10586 for ac_config_target in $ac_config_targets
10587 do
10588   case $ac_config_target in
10589     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10590     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10591     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10592
10593   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10594 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10595    { (exit 1); exit 1; }; };;
10596   esac
10597 done
10598
10599
10600 # If the user did not use the arguments to specify the items to instantiate,
10601 # then the envvar interface is used.  Set only those that are not.
10602 # We use the long form for the default assignment because of an extremely
10603 # bizarre bug on SunOS 4.1.3.
10604 if $ac_need_defaults; then
10605   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10606   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10607   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10608 fi
10609
10610 # Have a temporary directory for convenience.  Make it in the build tree
10611 # simply because there is no reason against having it here, and in addition,
10612 # creating and moving files from /tmp can sometimes cause problems.
10613 # Hook for its removal unless debugging.
10614 # Note that there is a small window in which the directory will not be cleaned:
10615 # after its creation but before its name has been assigned to `$tmp'.
10616 $debug ||
10617 {
10618   tmp=
10619   trap 'exit_status=$?
10620   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10621 ' 0
10622   trap '{ (exit 1); exit 1; }' 1 2 13 15
10623 }
10624 # Create a (secure) tmp directory for tmp files.
10625
10626 {
10627   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10628   test -n "$tmp" && test -d "$tmp"
10629 }  ||
10630 {
10631   tmp=./conf$$-$RANDOM
10632   (umask 077 && mkdir "$tmp")
10633 } ||
10634 {
10635    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10636    { (exit 1); exit 1; }
10637 }
10638
10639 # Set up the scripts for CONFIG_FILES section.
10640 # No need to generate them if there are no CONFIG_FILES.
10641 # This happens for instance with `./config.status config.h'.
10642 if test -n "$CONFIG_FILES"; then
10643
10644
10645 ac_cr='\r'
10646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10648   ac_cs_awk_cr='\\r'
10649 else
10650   ac_cs_awk_cr=$ac_cr
10651 fi
10652
10653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10654 _ACEOF
10655
10656
10657 {
10658   echo "cat >conf$$subs.awk <<_ACEOF" &&
10659   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10660   echo "_ACEOF"
10661 } >conf$$subs.sh ||
10662   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10664    { (exit 1); exit 1; }; }
10665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10666 ac_delim='%!_!# '
10667 for ac_last_try in false false false false false :; do
10668   . ./conf$$subs.sh ||
10669     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10670 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10671    { (exit 1); exit 1; }; }
10672
10673   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10674   if test $ac_delim_n = $ac_delim_num; then
10675     break
10676   elif $ac_last_try; then
10677     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10678 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10679    { (exit 1); exit 1; }; }
10680   else
10681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10682   fi
10683 done
10684 rm -f conf$$subs.sh
10685
10686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10687 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10688 _ACEOF
10689 sed -n '
10690 h
10691 s/^/S["/; s/!.*/"]=/
10692 p
10693 g
10694 s/^[^!]*!//
10695 :repl
10696 t repl
10697 s/'"$ac_delim"'$//
10698 t delim
10699 :nl
10700 h
10701 s/\(.\{148\}\).*/\1/
10702 t more1
10703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10704 p
10705 n
10706 b repl
10707 :more1
10708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10709 p
10710 g
10711 s/.\{148\}//
10712 t nl
10713 :delim
10714 h
10715 s/\(.\{148\}\).*/\1/
10716 t more2
10717 s/["\\]/\\&/g; s/^/"/; s/$/"/
10718 p
10719 b
10720 :more2
10721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10722 p
10723 g
10724 s/.\{148\}//
10725 t delim
10726 ' <conf$$subs.awk | sed '
10727 /^[^""]/{
10728   N
10729   s/\n//
10730 }
10731 ' >>$CONFIG_STATUS || ac_write_fail=1
10732 rm -f conf$$subs.awk
10733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10734 _ACAWK
10735 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10736   for (key in S) S_is_set[key] = 1
10737   FS = "\a"
10738
10739 }
10740 {
10741   line = $ 0
10742   nfields = split(line, field, "@")
10743   substed = 0
10744   len = length(field[1])
10745   for (i = 2; i < nfields; i++) {
10746     key = field[i]
10747     keylen = length(key)
10748     if (S_is_set[key]) {
10749       value = S[key]
10750       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10751       len += length(value) + length(field[++i])
10752       substed = 1
10753     } else
10754       len += 1 + keylen
10755   }
10756
10757   print line
10758 }
10759
10760 _ACAWK
10761 _ACEOF
10762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10764   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10765 else
10766   cat
10767 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10768   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10769 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10770    { (exit 1); exit 1; }; }
10771 _ACEOF
10772
10773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10775 # trailing colons and then remove the whole line if VPATH becomes empty
10776 # (actually we leave an empty line to preserve line numbers).
10777 if test "x$srcdir" = x.; then
10778   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10779 s/:*\$(srcdir):*/:/
10780 s/:*\${srcdir}:*/:/
10781 s/:*@srcdir@:*/:/
10782 s/^\([^=]*=[     ]*\):*/\1/
10783 s/:*$//
10784 s/^[^=]*=[       ]*$//
10785 }'
10786 fi
10787
10788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10789 fi # test -n "$CONFIG_FILES"
10790
10791 # Set up the scripts for CONFIG_HEADERS section.
10792 # No need to generate them if there are no CONFIG_HEADERS.
10793 # This happens for instance with `./config.status Makefile'.
10794 if test -n "$CONFIG_HEADERS"; then
10795 cat >"$tmp/defines.awk" <<\_ACAWK ||
10796 BEGIN {
10797 _ACEOF
10798
10799 # Transform confdefs.h into an awk script `defines.awk', embedded as
10800 # here-document in config.status, that substitutes the proper values into
10801 # config.h.in to produce config.h.
10802
10803 # Create a delimiter string that does not exist in confdefs.h, to ease
10804 # handling of long lines.
10805 ac_delim='%!_!# '
10806 for ac_last_try in false false :; do
10807   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10808   if test -z "$ac_t"; then
10809     break
10810   elif $ac_last_try; then
10811     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10812 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10813    { (exit 1); exit 1; }; }
10814   else
10815     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10816   fi
10817 done
10818
10819 # For the awk script, D is an array of macro values keyed by name,
10820 # likewise P contains macro parameters if any.  Preserve backslash
10821 # newline sequences.
10822
10823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10824 sed -n '
10825 s/.\{148\}/&'"$ac_delim"'/g
10826 t rset
10827 :rset
10828 s/^[     ]*#[    ]*define[       ][      ]*/ /
10829 t def
10830 d
10831 :def
10832 s/\\$//
10833 t bsnl
10834 s/["\\]/\\&/g
10835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10836 D["\1"]=" \3"/p
10837 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10838 d
10839 :bsnl
10840 s/["\\]/\\&/g
10841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10842 D["\1"]=" \3\\\\\\n"\\/p
10843 t cont
10844 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10845 t cont
10846 d
10847 :cont
10848 n
10849 s/.\{148\}/&'"$ac_delim"'/g
10850 t clear
10851 :clear
10852 s/\\$//
10853 t bsnlc
10854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10855 d
10856 :bsnlc
10857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10858 b cont
10859 ' <confdefs.h | sed '
10860 s/'"$ac_delim"'/"\\\
10861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10862
10863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10864   for (key in D) D_is_set[key] = 1
10865   FS = "\a"
10866 }
10867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10868   line = \$ 0
10869   split(line, arg, " ")
10870   if (arg[1] == "#") {
10871     defundef = arg[2]
10872     mac1 = arg[3]
10873   } else {
10874     defundef = substr(arg[1], 2)
10875     mac1 = arg[2]
10876   }
10877   split(mac1, mac2, "(") #)
10878   macro = mac2[1]
10879   prefix = substr(line, 1, index(line, defundef) - 1)
10880   if (D_is_set[macro]) {
10881     # Preserve the white space surrounding the "#".
10882     print prefix "define", macro P[macro] D[macro]
10883     next
10884   } else {
10885     # Replace #undef with comments.  This is necessary, for example,
10886     # in the case of _POSIX_SOURCE, which is predefined and required
10887     # on some systems where configure will not decide to define it.
10888     if (defundef == "undef") {
10889       print "/*", prefix defundef, macro, "*/"
10890       next
10891     }
10892   }
10893 }
10894 { print }
10895 _ACAWK
10896 _ACEOF
10897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10898   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10899 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10900    { (exit 1); exit 1; }; }
10901 fi # test -n "$CONFIG_HEADERS"
10902
10903
10904 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10905 shift
10906 for ac_tag
10907 do
10908   case $ac_tag in
10909   :[FHLC]) ac_mode=$ac_tag; continue;;
10910   esac
10911   case $ac_mode$ac_tag in
10912   :[FHL]*:*);;
10913   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10914 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10915    { (exit 1); exit 1; }; };;
10916   :[FH]-) ac_tag=-:-;;
10917   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10918   esac
10919   ac_save_IFS=$IFS
10920   IFS=:
10921   set x $ac_tag
10922   IFS=$ac_save_IFS
10923   shift
10924   ac_file=$1
10925   shift
10926
10927   case $ac_mode in
10928   :L) ac_source=$1;;
10929   :[FH])
10930     ac_file_inputs=
10931     for ac_f
10932     do
10933       case $ac_f in
10934       -) ac_f="$tmp/stdin";;
10935       *) # Look for the file first in the build tree, then in the source tree
10936          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10937          # because $ac_f cannot contain `:'.
10938          test -f "$ac_f" ||
10939            case $ac_f in
10940            [\\/$]*) false;;
10941            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10942            esac ||
10943            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10944 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10945    { (exit 1); exit 1; }; };;
10946       esac
10947       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10948       ac_file_inputs="$ac_file_inputs '$ac_f'"
10949     done
10950
10951     # Let's still pretend it is `configure' which instantiates (i.e., don't
10952     # use $as_me), people would be surprised to read:
10953     #    /* config.h.  Generated by config.status.  */
10954     configure_input='Generated from '`
10955           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10956         `' by configure.'
10957     if test x"$ac_file" != x-; then
10958       configure_input="$ac_file.  $configure_input"
10959       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10960 $as_echo "$as_me: creating $ac_file" >&6;}
10961     fi
10962     # Neutralize special characters interpreted by sed in replacement strings.
10963     case $configure_input in #(
10964     *\&* | *\|* | *\\* )
10965        ac_sed_conf_input=`$as_echo "$configure_input" |
10966        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10967     *) ac_sed_conf_input=$configure_input;;
10968     esac
10969
10970     case $ac_tag in
10971     *:-:* | *:-) cat >"$tmp/stdin" \
10972       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10974    { (exit 1); exit 1; }; } ;;
10975     esac
10976     ;;
10977   esac
10978
10979   ac_dir=`$as_dirname -- "$ac_file" ||
10980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981          X"$ac_file" : 'X\(//\)[^/]' \| \
10982          X"$ac_file" : 'X\(//\)$' \| \
10983          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10984 $as_echo X"$ac_file" |
10985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10986             s//\1/
10987             q
10988           }
10989           /^X\(\/\/\)[^/].*/{
10990             s//\1/
10991             q
10992           }
10993           /^X\(\/\/\)$/{
10994             s//\1/
10995             q
10996           }
10997           /^X\(\/\).*/{
10998             s//\1/
10999             q
11000           }
11001           s/.*/./; q'`
11002   { as_dir="$ac_dir"
11003   case $as_dir in #(
11004   -*) as_dir=./$as_dir;;
11005   esac
11006   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11007     as_dirs=
11008     while :; do
11009       case $as_dir in #(
11010       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11011       *) as_qdir=$as_dir;;
11012       esac
11013       as_dirs="'$as_qdir' $as_dirs"
11014       as_dir=`$as_dirname -- "$as_dir" ||
11015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11016          X"$as_dir" : 'X\(//\)[^/]' \| \
11017          X"$as_dir" : 'X\(//\)$' \| \
11018          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11019 $as_echo X"$as_dir" |
11020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11021             s//\1/
11022             q
11023           }
11024           /^X\(\/\/\)[^/].*/{
11025             s//\1/
11026             q
11027           }
11028           /^X\(\/\/\)$/{
11029             s//\1/
11030             q
11031           }
11032           /^X\(\/\).*/{
11033             s//\1/
11034             q
11035           }
11036           s/.*/./; q'`
11037       test -d "$as_dir" && break
11038     done
11039     test -z "$as_dirs" || eval "mkdir $as_dirs"
11040   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11041 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11042    { (exit 1); exit 1; }; }; }
11043   ac_builddir=.
11044
11045 case "$ac_dir" in
11046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11047 *)
11048   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11049   # A ".." for each directory in $ac_dir_suffix.
11050   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11051   case $ac_top_builddir_sub in
11052   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11053   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11054   esac ;;
11055 esac
11056 ac_abs_top_builddir=$ac_pwd
11057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11058 # for backward compatibility:
11059 ac_top_builddir=$ac_top_build_prefix
11060
11061 case $srcdir in
11062   .)  # We are building in place.
11063     ac_srcdir=.
11064     ac_top_srcdir=$ac_top_builddir_sub
11065     ac_abs_top_srcdir=$ac_pwd ;;
11066   [\\/]* | ?:[\\/]* )  # Absolute name.
11067     ac_srcdir=$srcdir$ac_dir_suffix;
11068     ac_top_srcdir=$srcdir
11069     ac_abs_top_srcdir=$srcdir ;;
11070   *) # Relative name.
11071     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11072     ac_top_srcdir=$ac_top_build_prefix$srcdir
11073     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11074 esac
11075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11076
11077
11078   case $ac_mode in
11079   :F)
11080   #
11081   # CONFIG_FILE
11082   #
11083
11084   case $INSTALL in
11085   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11086   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11087   esac
11088 _ACEOF
11089
11090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11091 # If the template does not know about datarootdir, expand it.
11092 # FIXME: This hack should be removed a few years after 2.60.
11093 ac_datarootdir_hack=; ac_datarootdir_seen=
11094
11095 ac_sed_dataroot='
11096 /datarootdir/ {
11097   p
11098   q
11099 }
11100 /@datadir@/p
11101 /@docdir@/p
11102 /@infodir@/p
11103 /@localedir@/p
11104 /@mandir@/p
11105 '
11106 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11107 *datarootdir*) ac_datarootdir_seen=yes;;
11108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11109   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11110 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11111 _ACEOF
11112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11113   ac_datarootdir_hack='
11114   s&@datadir@&$datadir&g
11115   s&@docdir@&$docdir&g
11116   s&@infodir@&$infodir&g
11117   s&@localedir@&$localedir&g
11118   s&@mandir@&$mandir&g
11119     s&\\\${datarootdir}&$datarootdir&g' ;;
11120 esac
11121 _ACEOF
11122
11123 # Neutralize VPATH when `$srcdir' = `.'.
11124 # Shell code in configure.ac might set extrasub.
11125 # FIXME: do we really want to maintain this feature?
11126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11127 ac_sed_extra="$ac_vpsub
11128 $extrasub
11129 _ACEOF
11130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11131 :t
11132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11133 s|@configure_input@|$ac_sed_conf_input|;t t
11134 s&@top_builddir@&$ac_top_builddir_sub&;t t
11135 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11136 s&@srcdir@&$ac_srcdir&;t t
11137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11138 s&@top_srcdir@&$ac_top_srcdir&;t t
11139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11140 s&@builddir@&$ac_builddir&;t t
11141 s&@abs_builddir@&$ac_abs_builddir&;t t
11142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11143 s&@INSTALL@&$ac_INSTALL&;t t
11144 $ac_datarootdir_hack
11145 "
11146 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11147   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11149    { (exit 1); exit 1; }; }
11150
11151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11152   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11153   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11154   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11155 which seems to be undefined.  Please make sure it is defined." >&5
11156 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11157 which seems to be undefined.  Please make sure it is defined." >&2;}
11158
11159   rm -f "$tmp/stdin"
11160   case $ac_file in
11161   -) cat "$tmp/out" && rm -f "$tmp/out";;
11162   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11163   esac \
11164   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11165 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11166    { (exit 1); exit 1; }; }
11167  ;;
11168   :H)
11169   #
11170   # CONFIG_HEADER
11171   #
11172   if test x"$ac_file" != x-; then
11173     {
11174       $as_echo "/* $configure_input  */" \
11175       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11176     } >"$tmp/config.h" \
11177       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11178 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11179    { (exit 1); exit 1; }; }
11180     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11181       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11183     else
11184       rm -f "$ac_file"
11185       mv "$tmp/config.h" "$ac_file" \
11186         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11187 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11188    { (exit 1); exit 1; }; }
11189     fi
11190   else
11191     $as_echo "/* $configure_input  */" \
11192       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11193       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11194 $as_echo "$as_me: error: could not create -" >&2;}
11195    { (exit 1); exit 1; }; }
11196   fi
11197 # Compute "$ac_file"'s index in $config_headers.
11198 _am_stamp_count=1
11199 for _am_header in $config_headers :; do
11200   case $_am_header in
11201     "$ac_file" | "$ac_file":* )
11202       break ;;
11203     * )
11204       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11205   esac
11206 done
11207 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
11208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11209          X"$ac_file" : 'X\(//\)[^/]' \| \
11210          X"$ac_file" : 'X\(//\)$' \| \
11211          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11212 $as_echo X"$ac_file" |
11213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11214             s//\1/
11215             q
11216           }
11217           /^X\(\/\/\)[^/].*/{
11218             s//\1/
11219             q
11220           }
11221           /^X\(\/\/\)$/{
11222             s//\1/
11223             q
11224           }
11225           /^X\(\/\).*/{
11226             s//\1/
11227             q
11228           }
11229           s/.*/./; q'`/stamp-h$_am_stamp_count
11230  ;;
11231
11232   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11233 $as_echo "$as_me: executing $ac_file commands" >&6;}
11234  ;;
11235   esac
11236
11237
11238   case $ac_file$ac_mode in
11239     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11240   # Strip MF so we end up with the name of the file.
11241   mf=`echo "$mf" | sed -e 's/:.*$//'`
11242   # Check whether this is an Automake generated Makefile or not.
11243   # We used to match only the files named `Makefile.in', but
11244   # some people rename them; so instead we look at the file content.
11245   # Grep'ing the first line is not enough: some people post-process
11246   # each Makefile.in and add a new line on top of each file to say so.
11247   # So let's grep whole file.
11248   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11249     dirpart=`$as_dirname -- "$mf" ||
11250 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11251          X"$mf" : 'X\(//\)[^/]' \| \
11252          X"$mf" : 'X\(//\)$' \| \
11253          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11254 $as_echo X"$mf" |
11255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11256             s//\1/
11257             q
11258           }
11259           /^X\(\/\/\)[^/].*/{
11260             s//\1/
11261             q
11262           }
11263           /^X\(\/\/\)$/{
11264             s//\1/
11265             q
11266           }
11267           /^X\(\/\).*/{
11268             s//\1/
11269             q
11270           }
11271           s/.*/./; q'`
11272   else
11273     continue
11274   fi
11275   # Extract the definition of DEPDIR, am__include, and am__quote
11276   # from the Makefile without running `make'.
11277   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11278   test -z "$DEPDIR" && continue
11279   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11280   test -z "am__include" && continue
11281   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11282   # When using ansi2knr, U may be empty or an underscore; expand it
11283   U=`sed -n 's/^U = //p' < "$mf"`
11284   # Find all dependency output files, they are included files with
11285   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11286   # simplest approach to changing $(DEPDIR) to its actual value in the
11287   # expansion.
11288   for file in `sed -n "
11289     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11290        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11291     # Make sure the directory exists.
11292     test -f "$dirpart/$file" && continue
11293     fdir=`$as_dirname -- "$file" ||
11294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11295          X"$file" : 'X\(//\)[^/]' \| \
11296          X"$file" : 'X\(//\)$' \| \
11297          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11298 $as_echo X"$file" |
11299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11300             s//\1/
11301             q
11302           }
11303           /^X\(\/\/\)[^/].*/{
11304             s//\1/
11305             q
11306           }
11307           /^X\(\/\/\)$/{
11308             s//\1/
11309             q
11310           }
11311           /^X\(\/\).*/{
11312             s//\1/
11313             q
11314           }
11315           s/.*/./; q'`
11316     { as_dir=$dirpart/$fdir
11317   case $as_dir in #(
11318   -*) as_dir=./$as_dir;;
11319   esac
11320   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11321     as_dirs=
11322     while :; do
11323       case $as_dir in #(
11324       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11325       *) as_qdir=$as_dir;;
11326       esac
11327       as_dirs="'$as_qdir' $as_dirs"
11328       as_dir=`$as_dirname -- "$as_dir" ||
11329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11330          X"$as_dir" : 'X\(//\)[^/]' \| \
11331          X"$as_dir" : 'X\(//\)$' \| \
11332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11333 $as_echo X"$as_dir" |
11334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11335             s//\1/
11336             q
11337           }
11338           /^X\(\/\/\)[^/].*/{
11339             s//\1/
11340             q
11341           }
11342           /^X\(\/\/\)$/{
11343             s//\1/
11344             q
11345           }
11346           /^X\(\/\).*/{
11347             s//\1/
11348             q
11349           }
11350           s/.*/./; q'`
11351       test -d "$as_dir" && break
11352     done
11353     test -z "$as_dirs" || eval "mkdir $as_dirs"
11354   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11355 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11356    { (exit 1); exit 1; }; }; }
11357     # echo "creating $dirpart/$file"
11358     echo '# dummy' > "$dirpart/$file"
11359   done
11360 done
11361  ;;
11362
11363   esac
11364 done # for ac_tag
11365
11366
11367 { (exit 0); exit 0; }
11368 _ACEOF
11369 chmod +x $CONFIG_STATUS
11370 ac_clean_files=$ac_clean_files_save
11371
11372 test $ac_write_fail = 0 ||
11373   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11374 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11375    { (exit 1); exit 1; }; }
11376
11377
11378 # configure is writing to config.log, and then calls config.status.
11379 # config.status does its own redirection, appending to config.log.
11380 # Unfortunately, on DOS this fails, as config.log is still kept open
11381 # by configure, so config.status won't be able to write to it; its
11382 # output is simply discarded.  So we exec the FD to /dev/null,
11383 # effectively closing config.log, so it can be properly (re)opened and
11384 # appended to by config.status.  When coming back to configure, we
11385 # need to make the FD available again.
11386 if test "$no_create" != yes; then
11387   ac_cs_success=:
11388   ac_config_status_args=
11389   test "$silent" = yes &&
11390     ac_config_status_args="$ac_config_status_args --quiet"
11391   exec 5>/dev/null
11392   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11393   exec 5>>config.log
11394   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11395   # would make configure fail if this is the last instruction.
11396   $ac_cs_success || { (exit 1); exit 1; }
11397 fi
11398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11399   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11401 fi
11402