687bbe8449b8474f9ce742f895d71f483be05a2f
[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='am__EXEEXT_FALSE
641 am__EXEEXT_TRUE
642 LTLIBOBJS
643 POW_LIB
644 LIBOBJS
645 ENABLE_SS5_FALSE
646 ENABLE_SS5_TRUE
647 ENABLE_GSM_FALSE
648 ENABLE_GSM_TRUE
649 ENABLE_GSM_MS_FALSE
650 ENABLE_GSM_MS_TRUE
651 ENABLE_GSM_BS_FALSE
652 ENABLE_GSM_BS_TRUE
653 LIBCRYPTO
654 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
655 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
656 AST_CFLAGS
657 am__fastdepCXX_FALSE
658 am__fastdepCXX_TRUE
659 CXXDEPMODE
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 EGREP
696 GREP
697 CPP
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_dependency_tracking
746 with_asterisk
747 with_ssl
748 with_gsm_bs
749 with_gsm_ms
750 with_ss5
751 '
752       ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CC
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CPP
761 CXX
762 CXXFLAGS
763 CCC'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818   # If the previous option needs an argument, assign it.
819   if test -n "$ac_prev"; then
820     eval $ac_prev=\$ac_option
821     ac_prev=
822     continue
823   fi
824
825   case $ac_option in
826   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827   *)    ac_optarg=yes ;;
828   esac
829
830   # Accept the important Cygnus configure options, so we can diagnose typos.
831
832   case $ac_dashdash$ac_option in
833   --)
834     ac_dashdash=yes ;;
835
836   -bindir | --bindir | --bindi | --bind | --bin | --bi)
837     ac_prev=bindir ;;
838   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839     bindir=$ac_optarg ;;
840
841   -build | --build | --buil | --bui | --bu)
842     ac_prev=build_alias ;;
843   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844     build_alias=$ac_optarg ;;
845
846   -cache-file | --cache-file | --cache-fil | --cache-fi \
847   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848     ac_prev=cache_file ;;
849   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851     cache_file=$ac_optarg ;;
852
853   --config-cache | -C)
854     cache_file=config.cache ;;
855
856   -datadir | --datadir | --datadi | --datad)
857     ac_prev=datadir ;;
858   -datadir=* | --datadir=* | --datadi=* | --datad=*)
859     datadir=$ac_optarg ;;
860
861   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862   | --dataroo | --dataro | --datar)
863     ac_prev=datarootdir ;;
864   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866     datarootdir=$ac_optarg ;;
867
868   -disable-* | --disable-*)
869     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870     # Reject names that are not valid shell variable names.
871     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873    { (exit 1); exit 1; }; }
874     ac_useropt_orig=$ac_useropt
875     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876     case $ac_user_opts in
877       *"
878 "enable_$ac_useropt"
879 "*) ;;
880       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881          ac_unrecognized_sep=', ';;
882     esac
883     eval enable_$ac_useropt=no ;;
884
885   -docdir | --docdir | --docdi | --doc | --do)
886     ac_prev=docdir ;;
887   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888     docdir=$ac_optarg ;;
889
890   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891     ac_prev=dvidir ;;
892   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893     dvidir=$ac_optarg ;;
894
895   -enable-* | --enable-*)
896     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
900    { (exit 1); exit 1; }; }
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=\$ac_optarg ;;
911
912   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914   | --exec | --exe | --ex)
915     ac_prev=exec_prefix ;;
916   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918   | --exec=* | --exe=* | --ex=*)
919     exec_prefix=$ac_optarg ;;
920
921   -gas | --gas | --ga | --g)
922     # Obsolete; use --with-gas.
923     with_gas=yes ;;
924
925   -help | --help | --hel | --he | -h)
926     ac_init_help=long ;;
927   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928     ac_init_help=recursive ;;
929   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930     ac_init_help=short ;;
931
932   -host | --host | --hos | --ho)
933     ac_prev=host_alias ;;
934   -host=* | --host=* | --hos=* | --ho=*)
935     host_alias=$ac_optarg ;;
936
937   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938     ac_prev=htmldir ;;
939   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940   | --ht=*)
941     htmldir=$ac_optarg ;;
942
943   -includedir | --includedir | --includedi | --included | --include \
944   | --includ | --inclu | --incl | --inc)
945     ac_prev=includedir ;;
946   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947   | --includ=* | --inclu=* | --incl=* | --inc=*)
948     includedir=$ac_optarg ;;
949
950   -infodir | --infodir | --infodi | --infod | --info | --inf)
951     ac_prev=infodir ;;
952   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953     infodir=$ac_optarg ;;
954
955   -libdir | --libdir | --libdi | --libd)
956     ac_prev=libdir ;;
957   -libdir=* | --libdir=* | --libdi=* | --libd=*)
958     libdir=$ac_optarg ;;
959
960   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961   | --libexe | --libex | --libe)
962     ac_prev=libexecdir ;;
963   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964   | --libexe=* | --libex=* | --libe=*)
965     libexecdir=$ac_optarg ;;
966
967   -localedir | --localedir | --localedi | --localed | --locale)
968     ac_prev=localedir ;;
969   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970     localedir=$ac_optarg ;;
971
972   -localstatedir | --localstatedir | --localstatedi | --localstated \
973   | --localstate | --localstat | --localsta | --localst | --locals)
974     ac_prev=localstatedir ;;
975   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977     localstatedir=$ac_optarg ;;
978
979   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980     ac_prev=mandir ;;
981   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982     mandir=$ac_optarg ;;
983
984   -nfp | --nfp | --nf)
985     # Obsolete; use --without-fp.
986     with_fp=no ;;
987
988   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989   | --no-cr | --no-c | -n)
990     no_create=yes ;;
991
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     no_recursion=yes ;;
995
996   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998   | --oldin | --oldi | --old | --ol | --o)
999     ac_prev=oldincludedir ;;
1000   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003     oldincludedir=$ac_optarg ;;
1004
1005   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006     ac_prev=prefix ;;
1007   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008     prefix=$ac_optarg ;;
1009
1010   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011   | --program-pre | --program-pr | --program-p)
1012     ac_prev=program_prefix ;;
1013   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015     program_prefix=$ac_optarg ;;
1016
1017   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018   | --program-suf | --program-su | --program-s)
1019     ac_prev=program_suffix ;;
1020   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022     program_suffix=$ac_optarg ;;
1023
1024   -program-transform-name | --program-transform-name \
1025   | --program-transform-nam | --program-transform-na \
1026   | --program-transform-n | --program-transform- \
1027   | --program-transform | --program-transfor \
1028   | --program-transfo | --program-transf \
1029   | --program-trans | --program-tran \
1030   | --progr-tra | --program-tr | --program-t)
1031     ac_prev=program_transform_name ;;
1032   -program-transform-name=* | --program-transform-name=* \
1033   | --program-transform-nam=* | --program-transform-na=* \
1034   | --program-transform-n=* | --program-transform-=* \
1035   | --program-transform=* | --program-transfor=* \
1036   | --program-transfo=* | --program-transf=* \
1037   | --program-trans=* | --program-tran=* \
1038   | --progr-tra=* | --program-tr=* | --program-t=*)
1039     program_transform_name=$ac_optarg ;;
1040
1041   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042     ac_prev=pdfdir ;;
1043   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044     pdfdir=$ac_optarg ;;
1045
1046   -psdir | --psdir | --psdi | --psd | --ps)
1047     ac_prev=psdir ;;
1048   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049     psdir=$ac_optarg ;;
1050
1051   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052   | -silent | --silent | --silen | --sile | --sil)
1053     silent=yes ;;
1054
1055   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056     ac_prev=sbindir ;;
1057   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058   | --sbi=* | --sb=*)
1059     sbindir=$ac_optarg ;;
1060
1061   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063   | --sharedst | --shareds | --shared | --share | --shar \
1064   | --sha | --sh)
1065     ac_prev=sharedstatedir ;;
1066   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069   | --sha=* | --sh=*)
1070     sharedstatedir=$ac_optarg ;;
1071
1072   -site | --site | --sit)
1073     ac_prev=site ;;
1074   -site=* | --site=* | --sit=*)
1075     site=$ac_optarg ;;
1076
1077   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078     ac_prev=srcdir ;;
1079   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080     srcdir=$ac_optarg ;;
1081
1082   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083   | --syscon | --sysco | --sysc | --sys | --sy)
1084     ac_prev=sysconfdir ;;
1085   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087     sysconfdir=$ac_optarg ;;
1088
1089   -target | --target | --targe | --targ | --tar | --ta | --t)
1090     ac_prev=target_alias ;;
1091   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092     target_alias=$ac_optarg ;;
1093
1094   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095     verbose=yes ;;
1096
1097   -version | --version | --versio | --versi | --vers | -V)
1098     ac_init_version=: ;;
1099
1100   -with-* | --with-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1105    { (exit 1); exit 1; }; }
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval with_$ac_useropt=\$ac_optarg ;;
1116
1117   -without-* | --without-*)
1118     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1122    { (exit 1); exit 1; }; }
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval with_$ac_useropt=no ;;
1133
1134   --x)
1135     # Obsolete; use --with-x.
1136     with_x=yes ;;
1137
1138   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139   | --x-incl | --x-inc | --x-in | --x-i)
1140     ac_prev=x_includes ;;
1141   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143     x_includes=$ac_optarg ;;
1144
1145   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147     ac_prev=x_libraries ;;
1148   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150     x_libraries=$ac_optarg ;;
1151
1152   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154    { (exit 1); exit 1; }; }
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162    { (exit 1); exit 1; }; }
1163     eval $ac_envvar=\$ac_optarg
1164     export $ac_envvar ;;
1165
1166   *)
1167     # FIXME: should be removed in autoconf 3.0.
1168     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172     ;;
1173
1174   esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184   case $enable_option_checking in
1185     no) ;;
1186     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1187    { (exit 1); exit 1; }; } ;;
1188     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189   esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194                 datadir sysconfdir sharedstatedir localstatedir includedir \
1195                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196                 libdir localedir mandir
1197 do
1198   eval ac_val=\$$ac_var
1199   # Remove trailing slashes.
1200   case $ac_val in
1201     */ )
1202       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203       eval $ac_var=\$ac_val;;
1204   esac
1205   # Be sure to have absolute directory names.
1206   case $ac_val in
1207     [\\/$]* | ?:[\\/]* )  continue;;
1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209   esac
1210   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211    { (exit 1); exit 1; }; }
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223   if test "x$build_alias" = x; then
1224     cross_compiling=maybe
1225     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226     If a cross compiler is detected then cross compile mode will be used." >&2
1227   elif test "x$build_alias" != "x$host_alias"; then
1228     cross_compiling=yes
1229   fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1242    { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1245    { (exit 1); exit 1; }; }
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250   ac_srcdir_defaulted=yes
1251   # Try the directory containing this script, then the parent directory.
1252   ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254          X"$as_myself" : 'X\(//\)[^/]' \| \
1255          X"$as_myself" : 'X\(//\)$' \| \
1256          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)[^/].*/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\).*/{
1271             s//\1/
1272             q
1273           }
1274           s/.*/./; q'`
1275   srcdir=$ac_confdir
1276   if test ! -r "$srcdir/$ac_unique_file"; then
1277     srcdir=..
1278   fi
1279 else
1280   ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285    { (exit 1); exit 1; }; }
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1290    { (exit 1); exit 1; }; }
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcr]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 Program names:
1374   --program-prefix=PREFIX            prepend PREFIX to installed program names
1375   --program-suffix=SUFFIX            append SUFFIX to installed program names
1376   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381   case $ac_init_help in
1382      short | recursive ) echo "Configuration of lcr 1.7:";;
1383    esac
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-option-checking  ignore unrecognized --enable/--with options
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --disable-dependency-tracking  speeds up one-time build
1391   --enable-dependency-tracking   do not reject slow dependency extractors
1392
1393 Optional Packages:
1394   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1395   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1396   --with-asterisk         compile with built-in Asterisk channel driver
1397                           [default=check]
1398
1399   --with-ssl              compile with ssl support (libcrypto) [default=check]
1400
1401   --with-gsm-bs           compile with OpenBSC support [default=check]
1402
1403   --with-gsm-ms           compile with Osmocom-bb support [default=check]
1404
1405   --with-ss5              compile with CCITT No. 5 support [default=no]
1406
1407
1408 Some influential environment variables:
1409   CC          C compiler command
1410   CFLAGS      C compiler flags
1411   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412               nonstandard directory <lib dir>
1413   LIBS        libraries to pass to the linker, e.g. -l<library>
1414   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415               you have headers in a nonstandard directory <include dir>
1416   CPP         C preprocessor
1417   CXX         C++ compiler command
1418   CXXFLAGS    C++ compiler flags
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <andreas@eversberg.eu>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429   # If there are subdirs, report their specific --help.
1430   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431     test -d "$ac_dir" ||
1432       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433       continue
1434     ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440   # A ".." for each directory in $ac_dir_suffix.
1441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442   case $ac_top_builddir_sub in
1443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445   esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453   .)  # We are building in place.
1454     ac_srcdir=.
1455     ac_top_srcdir=$ac_top_builddir_sub
1456     ac_abs_top_srcdir=$ac_pwd ;;
1457   [\\/]* | ?:[\\/]* )  # Absolute name.
1458     ac_srcdir=$srcdir$ac_dir_suffix;
1459     ac_top_srcdir=$srcdir
1460     ac_abs_top_srcdir=$srcdir ;;
1461   *) # Relative name.
1462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463     ac_top_srcdir=$ac_top_build_prefix$srcdir
1464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468     cd "$ac_dir" || { ac_status=$?; continue; }
1469     # Check for guested configure.
1470     if test -f "$ac_srcdir/configure.gnu"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473     elif test -f "$ac_srcdir/configure"; then
1474       echo &&
1475       $SHELL "$ac_srcdir/configure" --help=recursive
1476     else
1477       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478     fi || ac_status=$?
1479     cd "$ac_pwd" || { ac_status=$?; break; }
1480   done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485   cat <<\_ACEOF
1486 lcr configure 1.7
1487 generated by GNU Autoconf 2.63
1488
1489 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1490 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494   exit
1495 fi
1496 cat >config.log <<_ACEOF
1497 This file contains any messages produced by compilers while
1498 running configure, to aid debugging if configure makes a mistake.
1499
1500 It was created by lcr $as_me 1.7, which was
1501 generated by GNU Autoconf 2.63.  Invocation command line was
1502
1503   $ $0 $@
1504
1505 _ACEOF
1506 exec 5>>config.log
1507 {
1508 cat <<_ASUNAME
1509 ## --------- ##
1510 ## Platform. ##
1511 ## --------- ##
1512
1513 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1514 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1515 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1516 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1517 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1518
1519 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1520 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1521
1522 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1523 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1524 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1525 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1526 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1527 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1528 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1529
1530 _ASUNAME
1531
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   $as_echo "PATH: $as_dir"
1538 done
1539 IFS=$as_save_IFS
1540
1541 } >&5
1542
1543 cat >&5 <<_ACEOF
1544
1545
1546 ## ----------- ##
1547 ## Core tests. ##
1548 ## ----------- ##
1549
1550 _ACEOF
1551
1552
1553 # Keep a trace of the command line.
1554 # Strip out --no-create and --no-recursion so they do not pile up.
1555 # Strip out --silent because we don't want to record it for future runs.
1556 # Also quote any args containing shell meta-characters.
1557 # Make two passes to allow for proper duplicate-argument suppression.
1558 ac_configure_args=
1559 ac_configure_args0=
1560 ac_configure_args1=
1561 ac_must_keep_next=false
1562 for ac_pass in 1 2
1563 do
1564   for ac_arg
1565   do
1566     case $ac_arg in
1567     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1568     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569     | -silent | --silent | --silen | --sile | --sil)
1570       continue ;;
1571     *\'*)
1572       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1573     esac
1574     case $ac_pass in
1575     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1576     2)
1577       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1578       if test $ac_must_keep_next = true; then
1579         ac_must_keep_next=false # Got value, back to normal.
1580       else
1581         case $ac_arg in
1582           *=* | --config-cache | -C | -disable-* | --disable-* \
1583           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1584           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1585           | -with-* | --with-* | -without-* | --without-* | --x)
1586             case "$ac_configure_args0 " in
1587               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588             esac
1589             ;;
1590           -* ) ac_must_keep_next=true ;;
1591         esac
1592       fi
1593       ac_configure_args="$ac_configure_args '$ac_arg'"
1594       ;;
1595     esac
1596   done
1597 done
1598 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1599 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1600
1601 # When interrupted or exit'd, cleanup temporary files, and complete
1602 # config.log.  We remove comments because anyway the quotes in there
1603 # would cause problems or look ugly.
1604 # WARNING: Use '\'' to represent an apostrophe within the trap.
1605 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1606 trap 'exit_status=$?
1607   # Save into config.log some information that might help in debugging.
1608   {
1609     echo
1610
1611     cat <<\_ASBOX
1612 ## ---------------- ##
1613 ## Cache variables. ##
1614 ## ---------------- ##
1615 _ASBOX
1616     echo
1617     # The following way of writing the cache mishandles newlines in values,
1618 (
1619   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1620     eval ac_val=\$$ac_var
1621     case $ac_val in #(
1622     *${as_nl}*)
1623       case $ac_var in #(
1624       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1625 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1626       esac
1627       case $ac_var in #(
1628       _ | IFS | as_nl) ;; #(
1629       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1630       *) $as_unset $ac_var ;;
1631       esac ;;
1632     esac
1633   done
1634   (set) 2>&1 |
1635     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1636     *${as_nl}ac_space=\ *)
1637       sed -n \
1638         "s/'\''/'\''\\\\'\'''\''/g;
1639           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1640       ;; #(
1641     *)
1642       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1643       ;;
1644     esac |
1645     sort
1646 )
1647     echo
1648
1649     cat <<\_ASBOX
1650 ## ----------------- ##
1651 ## Output variables. ##
1652 ## ----------------- ##
1653 _ASBOX
1654     echo
1655     for ac_var in $ac_subst_vars
1656     do
1657       eval ac_val=\$$ac_var
1658       case $ac_val in
1659       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660       esac
1661       $as_echo "$ac_var='\''$ac_val'\''"
1662     done | sort
1663     echo
1664
1665     if test -n "$ac_subst_files"; then
1666       cat <<\_ASBOX
1667 ## ------------------- ##
1668 ## File substitutions. ##
1669 ## ------------------- ##
1670 _ASBOX
1671       echo
1672       for ac_var in $ac_subst_files
1673       do
1674         eval ac_val=\$$ac_var
1675         case $ac_val in
1676         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677         esac
1678         $as_echo "$ac_var='\''$ac_val'\''"
1679       done | sort
1680       echo
1681     fi
1682
1683     if test -s confdefs.h; then
1684       cat <<\_ASBOX
1685 ## ----------- ##
1686 ## confdefs.h. ##
1687 ## ----------- ##
1688 _ASBOX
1689       echo
1690       cat confdefs.h
1691       echo
1692     fi
1693     test "$ac_signal" != 0 &&
1694       $as_echo "$as_me: caught signal $ac_signal"
1695     $as_echo "$as_me: exit $exit_status"
1696   } >&5
1697   rm -f core *.core core.conftest.* &&
1698     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1699     exit $exit_status
1700 ' 0
1701 for ac_signal in 1 2 13 15; do
1702   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1703 done
1704 ac_signal=0
1705
1706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1707 rm -f -r conftest* confdefs.h
1708
1709 # Predefined preprocessor variables.
1710
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_NAME "$PACKAGE_NAME"
1713 _ACEOF
1714
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1718 _ACEOF
1719
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1723 _ACEOF
1724
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_STRING "$PACKAGE_STRING"
1728 _ACEOF
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1733 _ACEOF
1734
1735
1736 # Let the site file select an alternate cache file if it wants to.
1737 # Prefer an explicitly selected file to automatically selected ones.
1738 ac_site_file1=NONE
1739 ac_site_file2=NONE
1740 if test -n "$CONFIG_SITE"; then
1741   ac_site_file1=$CONFIG_SITE
1742 elif test "x$prefix" != xNONE; then
1743   ac_site_file1=$prefix/share/config.site
1744   ac_site_file2=$prefix/etc/config.site
1745 else
1746   ac_site_file1=$ac_default_prefix/share/config.site
1747   ac_site_file2=$ac_default_prefix/etc/config.site
1748 fi
1749 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1750 do
1751   test "x$ac_site_file" = xNONE && continue
1752   if test -r "$ac_site_file"; then
1753     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1754 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1755     sed 's/^/| /' "$ac_site_file" >&5
1756     . "$ac_site_file"
1757   fi
1758 done
1759
1760 if test -r "$cache_file"; then
1761   # Some versions of bash will fail to source /dev/null (special
1762   # files actually), so we avoid doing that.
1763   if test -f "$cache_file"; then
1764     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1765 $as_echo "$as_me: loading cache $cache_file" >&6;}
1766     case $cache_file in
1767       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1768       *)                      . "./$cache_file";;
1769     esac
1770   fi
1771 else
1772   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1773 $as_echo "$as_me: creating cache $cache_file" >&6;}
1774   >$cache_file
1775 fi
1776
1777 # Check that the precious variables saved in the cache have kept the same
1778 # value.
1779 ac_cache_corrupted=false
1780 for ac_var in $ac_precious_vars; do
1781   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1782   eval ac_new_set=\$ac_env_${ac_var}_set
1783   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1784   eval ac_new_val=\$ac_env_${ac_var}_value
1785   case $ac_old_set,$ac_new_set in
1786     set,)
1787       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1789       ac_cache_corrupted=: ;;
1790     ,set)
1791       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1793       ac_cache_corrupted=: ;;
1794     ,);;
1795     *)
1796       if test "x$ac_old_val" != "x$ac_new_val"; then
1797         # differences in whitespace do not lead to failure.
1798         ac_old_val_w=`echo x $ac_old_val`
1799         ac_new_val_w=`echo x $ac_new_val`
1800         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1801           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1803           ac_cache_corrupted=:
1804         else
1805           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1807           eval $ac_var=\$ac_old_val
1808         fi
1809         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1810 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1811         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1812 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1813       fi;;
1814   esac
1815   # Pass precious variables to config.status.
1816   if test "$ac_new_set" = set; then
1817     case $ac_new_val in
1818     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1819     *) ac_arg=$ac_var=$ac_new_val ;;
1820     esac
1821     case " $ac_configure_args " in
1822       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1823       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1824     esac
1825   fi
1826 done
1827 if $ac_cache_corrupted; then
1828   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1830   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1832   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1833 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861 ac_ext=c
1862 ac_cpp='$CPP $CPPFLAGS'
1863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866
1867
1868
1869
1870 ac_config_headers="$ac_config_headers config.h"
1871
1872
1873 # fix warnings from autoconf + automake
1874 ac_ext=c
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 if test -n "$ac_tool_prefix"; then
1880   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 $as_echo_n "checking for $ac_word... " >&6; }
1884 if test "${ac_cv_prog_CC+set}" = set; then
1885   $as_echo_n "(cached) " >&6
1886 else
1887   if test -n "$CC"; then
1888   ac_cv_prog_CC="$CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1897     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1898     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903 IFS=$as_save_IFS
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1910 $as_echo "$CC" >&6; }
1911 else
1912   { $as_echo "$as_me:$LINENO: result: no" >&5
1913 $as_echo "no" >&6; }
1914 fi
1915
1916
1917 fi
1918 if test -z "$ac_cv_prog_CC"; then
1919   ac_ct_CC=$CC
1920   # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 $as_echo_n "checking for $ac_word... " >&6; }
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925   $as_echo_n "(cached) " >&6
1926 else
1927   if test -n "$ac_ct_CC"; then
1928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937     ac_cv_prog_ac_ct_CC="gcc"
1938     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943 IFS=$as_save_IFS
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 $as_echo "$ac_ct_CC" >&6; }
1951 else
1952   { $as_echo "$as_me:$LINENO: result: no" >&5
1953 $as_echo "no" >&6; }
1954 fi
1955
1956   if test "x$ac_ct_CC" = x; then
1957     CC=""
1958   else
1959     case $cross_compiling:$ac_tool_warned in
1960 yes:)
1961 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1963 ac_tool_warned=yes ;;
1964 esac
1965     CC=$ac_ct_CC
1966   fi
1967 else
1968   CC="$ac_cv_prog_CC"
1969 fi
1970
1971 if test -z "$CC"; then
1972           if test -n "$ac_tool_prefix"; then
1973     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 $as_echo_n "checking for $ac_word... " >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978   $as_echo_n "(cached) " >&6
1979 else
1980   if test -n "$CC"; then
1981   ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990     ac_cv_prog_CC="${ac_tool_prefix}cc"
1991     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996 IFS=$as_save_IFS
1997
1998 fi
1999 fi
2000 CC=$ac_cv_prog_CC
2001 if test -n "$CC"; then
2002   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2003 $as_echo "$CC" >&6; }
2004 else
2005   { $as_echo "$as_me:$LINENO: result: no" >&5
2006 $as_echo "no" >&6; }
2007 fi
2008
2009
2010   fi
2011 fi
2012 if test -z "$CC"; then
2013   # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018   $as_echo_n "(cached) " >&6
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023   ac_prog_rejected=no
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032        ac_prog_rejected=yes
2033        continue
2034      fi
2035     ac_cv_prog_CC="cc"
2036     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037     break 2
2038   fi
2039 done
2040 done
2041 IFS=$as_save_IFS
2042
2043 if test $ac_prog_rejected = yes; then
2044   # We found a bogon in the path, so make sure we never use it.
2045   set dummy $ac_cv_prog_CC
2046   shift
2047   if test $# != 0; then
2048     # We chose a different compiler from the bogus one.
2049     # However, it has the same basename, so the bogon will be chosen
2050     # first if we set CC to just the basename; use the full file name.
2051     shift
2052     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053   fi
2054 fi
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2060 $as_echo "$CC" >&6; }
2061 else
2062   { $as_echo "$as_me:$LINENO: result: no" >&5
2063 $as_echo "no" >&6; }
2064 fi
2065
2066
2067 fi
2068 if test -z "$CC"; then
2069   if test -n "$ac_tool_prefix"; then
2070   for ac_prog in cl.exe
2071   do
2072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 $as_echo_n "checking for $ac_word... " >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077   $as_echo_n "(cached) " >&6
2078 else
2079   if test -n "$CC"; then
2080   ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095 IFS=$as_save_IFS
2096
2097 fi
2098 fi
2099 CC=$ac_cv_prog_CC
2100 if test -n "$CC"; then
2101   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2102 $as_echo "$CC" >&6; }
2103 else
2104   { $as_echo "$as_me:$LINENO: result: no" >&5
2105 $as_echo "no" >&6; }
2106 fi
2107
2108
2109     test -n "$CC" && break
2110   done
2111 fi
2112 if test -z "$CC"; then
2113   ac_ct_CC=$CC
2114   for ac_prog in cl.exe
2115 do
2116   # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 $as_echo_n "checking for $ac_word... " >&6; }
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121   $as_echo_n "(cached) " >&6
2122 else
2123   if test -n "$ac_ct_CC"; then
2124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133     ac_cv_prog_ac_ct_CC="$ac_prog"
2134     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142 fi
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 $as_echo "$ac_ct_CC" >&6; }
2147 else
2148   { $as_echo "$as_me:$LINENO: result: no" >&5
2149 $as_echo "no" >&6; }
2150 fi
2151
2152
2153   test -n "$ac_ct_CC" && break
2154 done
2155
2156   if test "x$ac_ct_CC" = x; then
2157     CC=""
2158   else
2159     case $cross_compiling:$ac_tool_warned in
2160 yes:)
2161 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2163 ac_tool_warned=yes ;;
2164 esac
2165     CC=$ac_ct_CC
2166   fi
2167 fi
2168
2169 fi
2170
2171
2172 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2175 See \`config.log' for more details." >&5
2176 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&2;}
2178    { (exit 1); exit 1; }; }; }
2179
2180 # Provide some information about the compiler.
2181 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2182 set X $ac_compile
2183 ac_compiler=$2
2184 { (ac_try="$ac_compiler --version >&5"
2185 case "(($ac_try" in
2186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187   *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2190 $as_echo "$ac_try_echo") >&5
2191   (eval "$ac_compiler --version >&5") 2>&5
2192   ac_status=$?
2193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }
2195 { (ac_try="$ac_compiler -v >&5"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2201 $as_echo "$ac_try_echo") >&5
2202   (eval "$ac_compiler -v >&5") 2>&5
2203   ac_status=$?
2204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }
2206 { (ac_try="$ac_compiler -V >&5"
2207 case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2212 $as_echo "$ac_try_echo") >&5
2213   (eval "$ac_compiler -V >&5") 2>&5
2214   ac_status=$?
2215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }
2217
2218 cat >conftest.$ac_ext <<_ACEOF
2219 /* confdefs.h.  */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h.  */
2224
2225 int
2226 main ()
2227 {
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2235 # Try to create an executable without -o first, disregard a.out.
2236 # It will help us diagnose broken compilers, and finding out an intuition
2237 # of exeext.
2238 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2239 $as_echo_n "checking for C compiler default output file name... " >&6; }
2240 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2241
2242 # The possible output files:
2243 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2244
2245 ac_rmfiles=
2246 for ac_file in $ac_files
2247 do
2248   case $ac_file in
2249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2250     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251   esac
2252 done
2253 rm -f $ac_rmfiles
2254
2255 if { (ac_try="$ac_link_default"
2256 case "(($ac_try" in
2257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258   *) ac_try_echo=$ac_try;;
2259 esac
2260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2261 $as_echo "$ac_try_echo") >&5
2262   (eval "$ac_link_default") 2>&5
2263   ac_status=$?
2264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2267 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2268 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2269 # so that the user can short-circuit this test for compilers unknown to
2270 # Autoconf.
2271 for ac_file in $ac_files ''
2272 do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2276         ;;
2277     [ab].out )
2278         # We found the default executable, but exeext='' is most
2279         # certainly right.
2280         break;;
2281     *.* )
2282         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2283         then :; else
2284            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285         fi
2286         # We set ac_cv_exeext here because the later test for it is not
2287         # safe: cross compilers may not add the suffix if given an `-o'
2288         # argument, so we may need to know it at that point already.
2289         # Even if this section looks crufty: it has the advantage of
2290         # actually working.
2291         break;;
2292     * )
2293         break;;
2294   esac
2295 done
2296 test "$ac_cv_exeext" = no && ac_cv_exeext=
2297
2298 else
2299   ac_file=''
2300 fi
2301
2302 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2303 $as_echo "$ac_file" >&6; }
2304 if test -z "$ac_file"; then
2305   $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 $as_echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314    { (exit 77); exit 77; }; }; }
2315 fi
2316
2317 ac_exeext=$ac_cv_exeext
2318
2319 # Check that the compiler produces executables we can run.  If not, either
2320 # the compiler is broken, or we cross compile.
2321 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2322 $as_echo_n "checking whether the C compiler works... " >&6; }
2323 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2324 # If not cross compiling, check that we can run a simple program.
2325 if test "$cross_compiling" != yes; then
2326   if { ac_try='./$ac_file'
2327   { (case "(($ac_try" in
2328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329   *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2332 $as_echo "$ac_try_echo") >&5
2333   (eval "$ac_try") 2>&5
2334   ac_status=$?
2335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; }; then
2337     cross_compiling=no
2338   else
2339     if test "$cross_compiling" = maybe; then
2340         cross_compiling=yes
2341     else
2342         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2345 If you meant to cross compile, use \`--host'.
2346 See \`config.log' for more details." >&5
2347 $as_echo "$as_me: error: cannot run C compiled programs.
2348 If you meant to cross compile, use \`--host'.
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }; }
2351     fi
2352   fi
2353 fi
2354 { $as_echo "$as_me:$LINENO: result: yes" >&5
2355 $as_echo "yes" >&6; }
2356
2357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2358 ac_clean_files=$ac_clean_files_save
2359 # Check that the compiler produces executables we can run.  If not, either
2360 # the compiler is broken, or we cross compile.
2361 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2362 $as_echo_n "checking whether we are cross compiling... " >&6; }
2363 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2364 $as_echo "$cross_compiling" >&6; }
2365
2366 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2367 $as_echo_n "checking for suffix of executables... " >&6; }
2368 if { (ac_try="$ac_link"
2369 case "(($ac_try" in
2370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371   *) ac_try_echo=$ac_try;;
2372 esac
2373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2374 $as_echo "$ac_try_echo") >&5
2375   (eval "$ac_link") 2>&5
2376   ac_status=$?
2377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; then
2379   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2380 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2381 # work properly (i.e., refer to `conftest.exe'), while it won't with
2382 # `rm'.
2383 for ac_file in conftest.exe conftest conftest.*; do
2384   test -f "$ac_file" || continue
2385   case $ac_file in
2386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2387     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388           break;;
2389     * ) break;;
2390   esac
2391 done
2392 else
2393   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2396 See \`config.log' for more details." >&5
2397 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2398 See \`config.log' for more details." >&2;}
2399    { (exit 1); exit 1; }; }; }
2400 fi
2401
2402 rm -f conftest$ac_cv_exeext
2403 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2404 $as_echo "$ac_cv_exeext" >&6; }
2405
2406 rm -f conftest.$ac_ext
2407 EXEEXT=$ac_cv_exeext
2408 ac_exeext=$EXEEXT
2409 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2410 $as_echo_n "checking for suffix of object files... " >&6; }
2411 if test "${ac_cv_objext+set}" = set; then
2412   $as_echo_n "(cached) " >&6
2413 else
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.o conftest.obj
2430 if { (ac_try="$ac_compile"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2436 $as_echo "$ac_try_echo") >&5
2437   (eval "$ac_compile") 2>&5
2438   ac_status=$?
2439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; then
2441   for ac_file in conftest.o conftest.obj conftest.*; do
2442   test -f "$ac_file" || continue;
2443   case $ac_file in
2444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2445     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2446        break;;
2447   esac
2448 done
2449 else
2450   $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459    { (exit 1); exit 1; }; }; }
2460 fi
2461
2462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2463 fi
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 $as_echo "$ac_cv_objext" >&6; }
2466 OBJEXT=$ac_cv_objext
2467 ac_objext=$OBJEXT
2468 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471   $as_echo_n "(cached) " >&6
2472 else
2473   cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h.  */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h.  */
2479
2480 int
2481 main ()
2482 {
2483 #ifndef __GNUC__
2484        choke me
2485 #endif
2486
2487   ;
2488   return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499   (eval "$ac_compile") 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } && {
2506          test -z "$ac_c_werror_flag" ||
2507          test ! -s conftest.err
2508        } && test -s conftest.$ac_objext; then
2509   ac_compiler_gnu=yes
2510 else
2511   $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514         ac_compiler_gnu=no
2515 fi
2516
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2519
2520 fi
2521 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2523 if test $ac_compiler_gnu = yes; then
2524   GCC=yes
2525 else
2526   GCC=
2527 fi
2528 ac_test_CFLAGS=${CFLAGS+set}
2529 ac_save_CFLAGS=$CFLAGS
2530 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2532 if test "${ac_cv_prog_cc_g+set}" = set; then
2533   $as_echo_n "(cached) " >&6
2534 else
2535   ac_save_c_werror_flag=$ac_c_werror_flag
2536    ac_c_werror_flag=yes
2537    ac_cv_prog_cc_g=no
2538    CFLAGS="-g"
2539    cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h.  */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h.  */
2545
2546 int
2547 main ()
2548 {
2549
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (ac_try="$ac_compile"
2556 case "(($ac_try" in
2557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558   *) ac_try_echo=$ac_try;;
2559 esac
2560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2561 $as_echo "$ac_try_echo") >&5
2562   (eval "$ac_compile") 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } && {
2569          test -z "$ac_c_werror_flag" ||
2570          test ! -s conftest.err
2571        } && test -s conftest.$ac_objext; then
2572   ac_cv_prog_cc_g=yes
2573 else
2574   $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577         CFLAGS=""
2578       cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600 $as_echo "$ac_try_echo") >&5
2601   (eval "$ac_compile") 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } && {
2608          test -z "$ac_c_werror_flag" ||
2609          test ! -s conftest.err
2610        } && test -s conftest.$ac_objext; then
2611   :
2612 else
2613   $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616         ac_c_werror_flag=$ac_save_c_werror_flag
2617          CFLAGS="-g"
2618          cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 $as_echo "$ac_try_echo") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } && {
2648          test -z "$ac_c_werror_flag" ||
2649          test ! -s conftest.err
2650        } && test -s conftest.$ac_objext; then
2651   ac_cv_prog_cc_g=yes
2652 else
2653   $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 fi
2661
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 fi
2664
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666    ac_c_werror_flag=$ac_save_c_werror_flag
2667 fi
2668 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 $as_echo "$ac_cv_prog_cc_g" >&6; }
2670 if test "$ac_test_CFLAGS" = set; then
2671   CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673   if test "$GCC" = yes; then
2674     CFLAGS="-g -O2"
2675   else
2676     CFLAGS="-g"
2677   fi
2678 else
2679   if test "$GCC" = yes; then
2680     CFLAGS="-O2"
2681   else
2682     CFLAGS=
2683   fi
2684 fi
2685 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2686 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2687 if test "${ac_cv_prog_cc_c89+set}" = set; then
2688   $as_echo_n "(cached) " >&6
2689 else
2690   ac_cv_prog_cc_c89=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698 #include <stdarg.h>
2699 #include <stdio.h>
2700 #include <sys/types.h>
2701 #include <sys/stat.h>
2702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2703 struct buf { int x; };
2704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2705 static char *e (p, i)
2706      char **p;
2707      int i;
2708 {
2709   return p[i];
2710 }
2711 static char *f (char * (*g) (char **, int), char **p, ...)
2712 {
2713   char *s;
2714   va_list v;
2715   va_start (v,p);
2716   s = g (p, va_arg (v,int));
2717   va_end (v);
2718   return s;
2719 }
2720
2721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2722    function prototypes and stuff, but not '\xHH' hex character constants.
2723    These don't provoke an error unfortunately, instead are silently treated
2724    as 'x'.  The following induces an error, until -std is added to get
2725    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2726    array size at least.  It's necessary to write '\x00'==0 to get something
2727    that's true only with -std.  */
2728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2729
2730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2731    inside strings and character constants.  */
2732 #define FOO(x) 'x'
2733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2734
2735 int test (int i, double x);
2736 struct s1 {int (*f) (int a);};
2737 struct s2 {int (*f) (double a);};
2738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2739 int argc;
2740 char **argv;
2741 int
2742 main ()
2743 {
2744 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2750         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2751 do
2752   CC="$ac_save_CC $ac_arg"
2753   rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2760 $as_echo "$ac_try_echo") >&5
2761   (eval "$ac_compile") 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } && {
2768          test -z "$ac_c_werror_flag" ||
2769          test ! -s conftest.err
2770        } && test -s conftest.$ac_objext; then
2771   ac_cv_prog_cc_c89=$ac_arg
2772 else
2773   $as_echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776
2777 fi
2778
2779 rm -f core conftest.err conftest.$ac_objext
2780   test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 done
2782 rm -f conftest.$ac_ext
2783 CC=$ac_save_CC
2784
2785 fi
2786 # AC_CACHE_VAL
2787 case "x$ac_cv_prog_cc_c89" in
2788   x)
2789     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2790 $as_echo "none needed" >&6; } ;;
2791   xno)
2792     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2793 $as_echo "unsupported" >&6; } ;;
2794   *)
2795     CC="$CC $ac_cv_prog_cc_c89"
2796     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2798 esac
2799
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807
2808 ac_ext=c
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2815 # On Suns, sometimes $CPP names a directory.
2816 if test -n "$CPP" && test -d "$CPP"; then
2817   CPP=
2818 fi
2819 if test -z "$CPP"; then
2820   if test "${ac_cv_prog_CPP+set}" = set; then
2821   $as_echo_n "(cached) " >&6
2822 else
2823       # Double quotes because CPP needs to be expanded
2824     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2825     do
2826       ac_preproc_ok=false
2827 for ac_c_preproc_warn_flag in '' yes
2828 do
2829   # Use a header file that comes with gcc, so configuring glibc
2830   # with a fresh cross-compiler works.
2831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832   # <limits.h> exists even on freestanding compilers.
2833   # On the NeXT, cc -E runs the code through the compiler's parser,
2834   # not just through cpp. "Syntax error" is here to catch this case.
2835   cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841 #ifdef __STDC__
2842 # include <limits.h>
2843 #else
2844 # include <assert.h>
2845 #endif
2846                      Syntax error
2847 _ACEOF
2848 if { (ac_try="$ac_cpp conftest.$ac_ext"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2854 $as_echo "$ac_try_echo") >&5
2855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } >/dev/null && {
2862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2863          test ! -s conftest.err
2864        }; then
2865   :
2866 else
2867   $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870   # Broken: fails on valid input.
2871 continue
2872 fi
2873
2874 rm -f conftest.err conftest.$ac_ext
2875
2876   # OK, works on sane cases.  Now check whether nonexistent headers
2877   # can be detected and how.
2878   cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 #include <ac_nonexistent.h>
2885 _ACEOF
2886 if { (ac_try="$ac_cpp conftest.$ac_ext"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2894   ac_status=$?
2895   grep -v '^ *+' conftest.er1 >conftest.err
2896   rm -f conftest.er1
2897   cat conftest.err >&5
2898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); } >/dev/null && {
2900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2901          test ! -s conftest.err
2902        }; then
2903   # Broken: success on invalid input.
2904 continue
2905 else
2906   $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909   # Passes both tests.
2910 ac_preproc_ok=:
2911 break
2912 fi
2913
2914 rm -f conftest.err conftest.$ac_ext
2915
2916 done
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.$ac_ext
2919 if $ac_preproc_ok; then
2920   break
2921 fi
2922
2923     done
2924     ac_cv_prog_CPP=$CPP
2925
2926 fi
2927   CPP=$ac_cv_prog_CPP
2928 else
2929   ac_cv_prog_CPP=$CPP
2930 fi
2931 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2932 $as_echo "$CPP" >&6; }
2933 ac_preproc_ok=false
2934 for ac_c_preproc_warn_flag in '' yes
2935 do
2936   # Use a header file that comes with gcc, so configuring glibc
2937   # with a fresh cross-compiler works.
2938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939   # <limits.h> exists even on freestanding compilers.
2940   # On the NeXT, cc -E runs the code through the compiler's parser,
2941   # not just through cpp. "Syntax error" is here to catch this case.
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #ifdef __STDC__
2949 # include <limits.h>
2950 #else
2951 # include <assert.h>
2952 #endif
2953                      Syntax error
2954 _ACEOF
2955 if { (ac_try="$ac_cpp conftest.$ac_ext"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961 $as_echo "$ac_try_echo") >&5
2962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } >/dev/null && {
2969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2970          test ! -s conftest.err
2971        }; then
2972   :
2973 else
2974   $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977   # Broken: fails on valid input.
2978 continue
2979 fi
2980
2981 rm -f conftest.err conftest.$ac_ext
2982
2983   # OK, works on sane cases.  Now check whether nonexistent headers
2984   # can be detected and how.
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <ac_nonexistent.h>
2992 _ACEOF
2993 if { (ac_try="$ac_cpp conftest.$ac_ext"
2994 case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999 $as_echo "$ac_try_echo") >&5
3000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3001   ac_status=$?
3002   grep -v '^ *+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } >/dev/null && {
3007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008          test ! -s conftest.err
3009        }; then
3010   # Broken: success on invalid input.
3011 continue
3012 else
3013   $as_echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016   # Passes both tests.
3017 ac_preproc_ok=:
3018 break
3019 fi
3020
3021 rm -f conftest.err conftest.$ac_ext
3022
3023 done
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3027   :
3028 else
3029   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3032 See \`config.log' for more details." >&5
3033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3034 See \`config.log' for more details." >&2;}
3035    { (exit 1); exit 1; }; }; }
3036 fi
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3046 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3047 if test "${ac_cv_path_GREP+set}" = set; then
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -z "$GREP"; then
3051   ac_path_GREP_found=false
3052   # Loop through the user's path and test for each of PROGNAME-LIST
3053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_prog in grep ggrep; do
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3061       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3062 # Check for GNU ac_path_GREP and select it if it is found.
3063   # Check for GNU $ac_path_GREP
3064 case `"$ac_path_GREP" --version 2>&1` in
3065 *GNU*)
3066   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3067 *)
3068   ac_count=0
3069   $as_echo_n 0123456789 >"conftest.in"
3070   while :
3071   do
3072     cat "conftest.in" "conftest.in" >"conftest.tmp"
3073     mv "conftest.tmp" "conftest.in"
3074     cp "conftest.in" "conftest.nl"
3075     $as_echo 'GREP' >> "conftest.nl"
3076     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3078     ac_count=`expr $ac_count + 1`
3079     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3080       # Best one so far, save it but keep looking for a better one
3081       ac_cv_path_GREP="$ac_path_GREP"
3082       ac_path_GREP_max=$ac_count
3083     fi
3084     # 10*(2^10) chars as input seems more than enough
3085     test $ac_count -gt 10 && break
3086   done
3087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3088 esac
3089
3090       $ac_path_GREP_found && break 3
3091     done
3092   done
3093 done
3094 IFS=$as_save_IFS
3095   if test -z "$ac_cv_path_GREP"; then
3096     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3097 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3098    { (exit 1); exit 1; }; }
3099   fi
3100 else
3101   ac_cv_path_GREP=$GREP
3102 fi
3103
3104 fi
3105 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3106 $as_echo "$ac_cv_path_GREP" >&6; }
3107  GREP="$ac_cv_path_GREP"
3108
3109
3110 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3111 $as_echo_n "checking for egrep... " >&6; }
3112 if test "${ac_cv_path_EGREP+set}" = set; then
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3116    then ac_cv_path_EGREP="$GREP -E"
3117    else
3118      if test -z "$EGREP"; then
3119   ac_path_EGREP_found=false
3120   # Loop through the user's path and test for each of PROGNAME-LIST
3121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126   for ac_prog in egrep; do
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3129       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3130 # Check for GNU ac_path_EGREP and select it if it is found.
3131   # Check for GNU $ac_path_EGREP
3132 case `"$ac_path_EGREP" --version 2>&1` in
3133 *GNU*)
3134   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3135 *)
3136   ac_count=0
3137   $as_echo_n 0123456789 >"conftest.in"
3138   while :
3139   do
3140     cat "conftest.in" "conftest.in" >"conftest.tmp"
3141     mv "conftest.tmp" "conftest.in"
3142     cp "conftest.in" "conftest.nl"
3143     $as_echo 'EGREP' >> "conftest.nl"
3144     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3146     ac_count=`expr $ac_count + 1`
3147     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3148       # Best one so far, save it but keep looking for a better one
3149       ac_cv_path_EGREP="$ac_path_EGREP"
3150       ac_path_EGREP_max=$ac_count
3151     fi
3152     # 10*(2^10) chars as input seems more than enough
3153     test $ac_count -gt 10 && break
3154   done
3155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3156 esac
3157
3158       $ac_path_EGREP_found && break 3
3159     done
3160   done
3161 done
3162 IFS=$as_save_IFS
3163   if test -z "$ac_cv_path_EGREP"; then
3164     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3165 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3166    { (exit 1); exit 1; }; }
3167   fi
3168 else
3169   ac_cv_path_EGREP=$EGREP
3170 fi
3171
3172    fi
3173 fi
3174 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3175 $as_echo "$ac_cv_path_EGREP" >&6; }
3176  EGREP="$ac_cv_path_EGREP"
3177
3178
3179 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3180 $as_echo_n "checking for ANSI C header files... " >&6; }
3181 if test "${ac_cv_header_stdc+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <stdlib.h>
3191 #include <stdarg.h>
3192 #include <string.h>
3193 #include <float.h>
3194
3195 int
3196 main ()
3197 {
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210 $as_echo "$ac_try_echo") >&5
3211   (eval "$ac_compile") 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } && {
3218          test -z "$ac_c_werror_flag" ||
3219          test ! -s conftest.err
3220        } && test -s conftest.$ac_objext; then
3221   ac_cv_header_stdc=yes
3222 else
3223   $as_echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226         ac_cv_header_stdc=no
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230
3231 if test $ac_cv_header_stdc = yes; then
3232   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #include <string.h>
3240
3241 _ACEOF
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243   $EGREP "memchr" >/dev/null 2>&1; then
3244   :
3245 else
3246   ac_cv_header_stdc=no
3247 fi
3248 rm -f conftest*
3249
3250 fi
3251
3252 if test $ac_cv_header_stdc = yes; then
3253   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <stdlib.h>
3261
3262 _ACEOF
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264   $EGREP "free" >/dev/null 2>&1; then
3265   :
3266 else
3267   ac_cv_header_stdc=no
3268 fi
3269 rm -f conftest*
3270
3271 fi
3272
3273 if test $ac_cv_header_stdc = yes; then
3274   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3275   if test "$cross_compiling" = yes; then
3276   :
3277 else
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <ctype.h>
3285 #include <stdlib.h>
3286 #if ((' ' & 0x0FF) == 0x020)
3287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3289 #else
3290 # define ISLOWER(c) \
3291                    (('a' <= (c) && (c) <= 'i') \
3292                      || ('j' <= (c) && (c) <= 'r') \
3293                      || ('s' <= (c) && (c) <= 'z'))
3294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3295 #endif
3296
3297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3298 int
3299 main ()
3300 {
3301   int i;
3302   for (i = 0; i < 256; i++)
3303     if (XOR (islower (i), ISLOWER (i))
3304         || toupper (i) != TOUPPER (i))
3305       return 2;
3306   return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest$ac_exeext
3310 if { (ac_try="$ac_link"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317   (eval "$ac_link") 2>&5
3318   ac_status=$?
3319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321   { (case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   :
3332 else
3333   $as_echo "$as_me: program exited with status $ac_status" >&5
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ( exit $ac_status )
3338 ac_cv_header_stdc=no
3339 fi
3340 rm -rf conftest.dSYM
3341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3342 fi
3343
3344
3345 fi
3346 fi
3347 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3348 $as_echo "$ac_cv_header_stdc" >&6; }
3349 if test $ac_cv_header_stdc = yes; then
3350
3351 cat >>confdefs.h <<\_ACEOF
3352 #define STDC_HEADERS 1
3353 _ACEOF
3354
3355 fi
3356
3357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3368                   inttypes.h stdint.h unistd.h
3369 do
3370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 $as_echo_n "checking for $ac_header... " >&6; }
3373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 $ac_includes_default
3383
3384 #include <$ac_header>
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393 $as_echo "$ac_try_echo") >&5
3394   (eval "$ac_compile") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } && {
3401          test -z "$ac_c_werror_flag" ||
3402          test ! -s conftest.err
3403        } && test -s conftest.$ac_objext; then
3404   eval "$as_ac_Header=yes"
3405 else
3406   $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409         eval "$as_ac_Header=no"
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414 ac_res=`eval 'as_val=${'$as_ac_Header'}
3415                  $as_echo "$as_val"'`
3416                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3417 $as_echo "$ac_res" >&6; }
3418 as_val=`eval 'as_val=${'$as_ac_Header'}
3419                  $as_echo "$as_val"'`
3420    if test "x$as_val" = x""yes; then
3421   cat >>confdefs.h <<_ACEOF
3422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3423 _ACEOF
3424
3425 fi
3426
3427 done
3428
3429
3430
3431   if test "${ac_cv_header_minix_config_h+set}" = set; then
3432   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3433 $as_echo_n "checking for minix/config.h... " >&6; }
3434 if test "${ac_cv_header_minix_config_h+set}" = set; then
3435   $as_echo_n "(cached) " >&6
3436 fi
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3438 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3439 else
3440   # Is the header compilable?
3441 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3442 $as_echo_n "checking minix/config.h usability... " >&6; }
3443 cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h.  */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h.  */
3449 $ac_includes_default
3450 #include <minix/config.h>
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459 $as_echo "$ac_try_echo") >&5
3460   (eval "$ac_compile") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } && {
3467          test -z "$ac_c_werror_flag" ||
3468          test ! -s conftest.err
3469        } && test -s conftest.$ac_objext; then
3470   ac_header_compiler=yes
3471 else
3472   $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475         ac_header_compiler=no
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3480 $as_echo "$ac_header_compiler" >&6; }
3481
3482 # Is the header present?
3483 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3484 $as_echo_n "checking minix/config.h presence... " >&6; }
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <minix/config.h>
3492 _ACEOF
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } >/dev/null && {
3507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508          test ! -s conftest.err
3509        }; then
3510   ac_header_preproc=yes
3511 else
3512   $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515   ac_header_preproc=no
3516 fi
3517
3518 rm -f conftest.err conftest.$ac_ext
3519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520 $as_echo "$ac_header_preproc" >&6; }
3521
3522 # So?  What about this header?
3523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3524   yes:no: )
3525     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3526 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3527     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3528 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3529     ac_header_preproc=yes
3530     ;;
3531   no:yes:* )
3532     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3533 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3534     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3535 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3536     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3537 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3538     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3539 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3540     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3541 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3542     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3543 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3544     ( cat <<\_ASBOX
3545 ## ----------------------------------- ##
3546 ## Report this to andreas@eversberg.eu ##
3547 ## ----------------------------------- ##
3548 _ASBOX
3549      ) | sed "s/^/$as_me: WARNING:     /" >&2
3550     ;;
3551 esac
3552 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3553 $as_echo_n "checking for minix/config.h... " >&6; }
3554 if test "${ac_cv_header_minix_config_h+set}" = set; then
3555   $as_echo_n "(cached) " >&6
3556 else
3557   ac_cv_header_minix_config_h=$ac_header_preproc
3558 fi
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3560 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3561
3562 fi
3563 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3564   MINIX=yes
3565 else
3566   MINIX=
3567 fi
3568
3569
3570   if test "$MINIX" = yes; then
3571
3572 cat >>confdefs.h <<\_ACEOF
3573 #define _POSIX_SOURCE 1
3574 _ACEOF
3575
3576
3577 cat >>confdefs.h <<\_ACEOF
3578 #define _POSIX_1_SOURCE 2
3579 _ACEOF
3580
3581
3582 cat >>confdefs.h <<\_ACEOF
3583 #define _MINIX 1
3584 _ACEOF
3585
3586   fi
3587
3588
3589
3590   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3592 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3593   $as_echo_n "(cached) " >&6
3594 else
3595   cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 #         define __EXTENSIONS__ 1
3603           $ac_includes_default
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619 $as_echo "$ac_try_echo") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_safe_to_define___extensions__=yes
3631 else
3632   $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635         ac_cv_safe_to_define___extensions__=no
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3641 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3642   test $ac_cv_safe_to_define___extensions__ = yes &&
3643     cat >>confdefs.h <<\_ACEOF
3644 #define __EXTENSIONS__ 1
3645 _ACEOF
3646
3647   cat >>confdefs.h <<\_ACEOF
3648 #define _ALL_SOURCE 1
3649 _ACEOF
3650
3651   cat >>confdefs.h <<\_ACEOF
3652 #define _GNU_SOURCE 1
3653 _ACEOF
3654
3655   cat >>confdefs.h <<\_ACEOF
3656 #define _POSIX_PTHREAD_SEMANTICS 1
3657 _ACEOF
3658
3659   cat >>confdefs.h <<\_ACEOF
3660 #define _TANDEM_SOURCE 1
3661 _ACEOF
3662
3663
3664 # AC_USE_SYSTEM_EXTENSIONS
3665 am__api_version='1.11'
3666
3667 ac_aux_dir=
3668 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3669   if test -f "$ac_dir/install-sh"; then
3670     ac_aux_dir=$ac_dir
3671     ac_install_sh="$ac_aux_dir/install-sh -c"
3672     break
3673   elif test -f "$ac_dir/install.sh"; then
3674     ac_aux_dir=$ac_dir
3675     ac_install_sh="$ac_aux_dir/install.sh -c"
3676     break
3677   elif test -f "$ac_dir/shtool"; then
3678     ac_aux_dir=$ac_dir
3679     ac_install_sh="$ac_aux_dir/shtool install -c"
3680     break
3681   fi
3682 done
3683 if test -z "$ac_aux_dir"; then
3684   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3685 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3686    { (exit 1); exit 1; }; }
3687 fi
3688
3689 # These three variables are undocumented and unsupported,
3690 # and are intended to be withdrawn in a future Autoconf release.
3691 # They can cause serious problems if a builder's source tree is in a directory
3692 # whose full name contains unusual characters.
3693 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3694 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3695 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3696
3697
3698 # Find a good install program.  We prefer a C program (faster),
3699 # so one script is as good as another.  But avoid the broken or
3700 # incompatible versions:
3701 # SysV /etc/install, /usr/sbin/install
3702 # SunOS /usr/etc/install
3703 # IRIX /sbin/install
3704 # AIX /bin/install
3705 # AmigaOS /C/install, which installs bootblocks on floppy discs
3706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3709 # OS/2's system install, which has a completely different semantic
3710 # ./install, which can be erroneously created by make from ./install.sh.
3711 # Reject install programs that cannot install multiple files.
3712 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3714 if test -z "$INSTALL"; then
3715 if test "${ac_cv_path_install+set}" = set; then
3716   $as_echo_n "(cached) " >&6
3717 else
3718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723   # Account for people who put trailing slashes in PATH elements.
3724 case $as_dir/ in
3725   ./ | .// | /cC/* | \
3726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3727   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3728   /usr/ucb/* ) ;;
3729   *)
3730     # OSF1 and SCO ODT 3.0 have their own names for install.
3731     # Don't use installbsd from OSF since it installs stuff as root
3732     # by default.
3733     for ac_prog in ginstall scoinst install; do
3734       for ac_exec_ext in '' $ac_executable_extensions; do
3735         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3736           if test $ac_prog = install &&
3737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3738             # AIX install.  It has an incompatible calling convention.
3739             :
3740           elif test $ac_prog = install &&
3741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3742             # program-specific install script used by HP pwplus--don't use.
3743             :
3744           else
3745             rm -rf conftest.one conftest.two conftest.dir
3746             echo one > conftest.one
3747             echo two > conftest.two
3748             mkdir conftest.dir
3749             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3750               test -s conftest.one && test -s conftest.two &&
3751               test -s conftest.dir/conftest.one &&
3752               test -s conftest.dir/conftest.two
3753             then
3754               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3755               break 3
3756             fi
3757           fi
3758         fi
3759       done
3760     done
3761     ;;
3762 esac
3763
3764 done
3765 IFS=$as_save_IFS
3766
3767 rm -rf conftest.one conftest.two conftest.dir
3768
3769 fi
3770   if test "${ac_cv_path_install+set}" = set; then
3771     INSTALL=$ac_cv_path_install
3772   else
3773     # As a last resort, use the slow shell script.  Don't cache a
3774     # value for INSTALL within a source directory, because that will
3775     # break other packages using the cache if that directory is
3776     # removed, or if the value is a relative name.
3777     INSTALL=$ac_install_sh
3778   fi
3779 fi
3780 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3781 $as_echo "$INSTALL" >&6; }
3782
3783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3784 # It thinks the first close brace ends the variable substitution.
3785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3786
3787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3788
3789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3790
3791 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3792 $as_echo_n "checking whether build environment is sane... " >&6; }
3793 # Just in case
3794 sleep 1
3795 echo timestamp > conftest.file
3796 # Reject unsafe characters in $srcdir or the absolute working directory
3797 # name.  Accept space and tab only in the latter.
3798 am_lf='
3799 '
3800 case `pwd` in
3801   *[\\\"\#\$\&\'\`$am_lf]*)
3802     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3803 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3804    { (exit 1); exit 1; }; };;
3805 esac
3806 case $srcdir in
3807   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3808     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3809 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3810    { (exit 1); exit 1; }; };;
3811 esac
3812
3813 # Do `set' in a subshell so we don't clobber the current shell's
3814 # arguments.  Must try -L first in case configure is actually a
3815 # symlink; some systems play weird games with the mod time of symlinks
3816 # (eg FreeBSD returns the mod time of the symlink's containing
3817 # directory).
3818 if (
3819    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3820    if test "$*" = "X"; then
3821       # -L didn't work.
3822       set X `ls -t "$srcdir/configure" conftest.file`
3823    fi
3824    rm -f conftest.file
3825    if test "$*" != "X $srcdir/configure conftest.file" \
3826       && test "$*" != "X conftest.file $srcdir/configure"; then
3827
3828       # If neither matched, then we have a broken ls.  This can happen
3829       # if, for instance, CONFIG_SHELL is bash and it inherits a
3830       # broken ls alias from the environment.  This has actually
3831       # happened.  Such a system could not be considered "sane".
3832       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3833 alias in your environment" >&5
3834 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3835 alias in your environment" >&2;}
3836    { (exit 1); exit 1; }; }
3837    fi
3838
3839    test "$2" = conftest.file
3840    )
3841 then
3842    # Ok.
3843    :
3844 else
3845    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3846 Check your system clock" >&5
3847 $as_echo "$as_me: error: newly created file is older than distributed files!
3848 Check your system clock" >&2;}
3849    { (exit 1); exit 1; }; }
3850 fi
3851 { $as_echo "$as_me:$LINENO: result: yes" >&5
3852 $as_echo "yes" >&6; }
3853 test "$program_prefix" != NONE &&
3854   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3855 # Use a double $ so make ignores it.
3856 test "$program_suffix" != NONE &&
3857   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3858 # Double any \ or $.
3859 # By default was `s,x,x', remove it if useless.
3860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3862
3863 # expand $ac_aux_dir to an absolute path
3864 am_aux_dir=`cd $ac_aux_dir && pwd`
3865
3866 if test x"${MISSING+set}" != xset; then
3867   case $am_aux_dir in
3868   *\ * | *\     *)
3869     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3870   *)
3871     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3872   esac
3873 fi
3874 # Use eval to expand $SHELL
3875 if eval "$MISSING --run true"; then
3876   am_missing_run="$MISSING --run "
3877 else
3878   am_missing_run=
3879   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3880 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3881 fi
3882
3883 if test x"${install_sh}" != xset; then
3884   case $am_aux_dir in
3885   *\ * | *\     *)
3886     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3887   *)
3888     install_sh="\${SHELL} $am_aux_dir/install-sh"
3889   esac
3890 fi
3891
3892 # Installed binaries are usually stripped using `strip' when the user
3893 # run `make install-strip'.  However `strip' might not be the right
3894 # tool to use in cross-compilation environments, therefore Automake
3895 # will honor the `STRIP' environment variable to overrule this program.
3896 if test "$cross_compiling" != no; then
3897   if test -n "$ac_tool_prefix"; then
3898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}strip; ac_word=$2
3900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if test "${ac_cv_prog_STRIP+set}" = set; then
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -n "$STRIP"; then
3906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3916     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 STRIP=$ac_cv_prog_STRIP
3926 if test -n "$STRIP"; then
3927   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3928 $as_echo "$STRIP" >&6; }
3929 else
3930   { $as_echo "$as_me:$LINENO: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935 fi
3936 if test -z "$ac_cv_prog_STRIP"; then
3937   ac_ct_STRIP=$STRIP
3938   # Extract the first word of "strip", so it can be a program name with args.
3939 set dummy strip; ac_word=$2
3940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3943   $as_echo_n "(cached) " >&6
3944 else
3945   if test -n "$ac_ct_STRIP"; then
3946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955     ac_cv_prog_ac_ct_STRIP="strip"
3956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961 IFS=$as_save_IFS
3962
3963 fi
3964 fi
3965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3966 if test -n "$ac_ct_STRIP"; then
3967   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3968 $as_echo "$ac_ct_STRIP" >&6; }
3969 else
3970   { $as_echo "$as_me:$LINENO: result: no" >&5
3971 $as_echo "no" >&6; }
3972 fi
3973
3974   if test "x$ac_ct_STRIP" = x; then
3975     STRIP=":"
3976   else
3977     case $cross_compiling:$ac_tool_warned in
3978 yes:)
3979 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983     STRIP=$ac_ct_STRIP
3984   fi
3985 else
3986   STRIP="$ac_cv_prog_STRIP"
3987 fi
3988
3989 fi
3990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3991
3992 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3994 if test -z "$MKDIR_P"; then
3995   if test "${ac_cv_path_mkdir+set}" = set; then
3996   $as_echo_n "(cached) " >&6
3997 else
3998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4000 do
4001   IFS=$as_save_IFS
4002   test -z "$as_dir" && as_dir=.
4003   for ac_prog in mkdir gmkdir; do
4004          for ac_exec_ext in '' $ac_executable_extensions; do
4005            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4006            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4007              'mkdir (GNU coreutils) '* | \
4008              'mkdir (coreutils) '* | \
4009              'mkdir (fileutils) '4.1*)
4010                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4011                break 3;;
4012            esac
4013          done
4014        done
4015 done
4016 IFS=$as_save_IFS
4017
4018 fi
4019
4020   if test "${ac_cv_path_mkdir+set}" = set; then
4021     MKDIR_P="$ac_cv_path_mkdir -p"
4022   else
4023     # As a last resort, use the slow shell script.  Don't cache a
4024     # value for MKDIR_P within a source directory, because that will
4025     # break other packages using the cache if that directory is
4026     # removed, or if the value is a relative name.
4027     test -d ./--version && rmdir ./--version
4028     MKDIR_P="$ac_install_sh -d"
4029   fi
4030 fi
4031 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4032 $as_echo "$MKDIR_P" >&6; }
4033
4034 mkdir_p="$MKDIR_P"
4035 case $mkdir_p in
4036   [\\/$]* | ?:[\\/]*) ;;
4037   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4038 esac
4039
4040 for ac_prog in gawk mawk nawk awk
4041 do
4042   # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047   $as_echo_n "(cached) " >&6
4048 else
4049   if test -n "$AWK"; then
4050   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059     ac_cv_prog_AWK="$ac_prog"
4060     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 fi
4068 fi
4069 AWK=$ac_cv_prog_AWK
4070 if test -n "$AWK"; then
4071   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4072 $as_echo "$AWK" >&6; }
4073 else
4074   { $as_echo "$as_me:$LINENO: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077
4078
4079   test -n "$AWK" && break
4080 done
4081
4082 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4083 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4084 set x ${MAKE-make}
4085 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4086 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4087   $as_echo_n "(cached) " >&6
4088 else
4089   cat >conftest.make <<\_ACEOF
4090 SHELL = /bin/sh
4091 all:
4092         @echo '@@@%%%=$(MAKE)=@@@%%%'
4093 _ACEOF
4094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4096   *@@@%%%=?*=@@@%%%*)
4097     eval ac_cv_prog_make_${ac_make}_set=yes;;
4098   *)
4099     eval ac_cv_prog_make_${ac_make}_set=no;;
4100 esac
4101 rm -f conftest.make
4102 fi
4103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4104   { $as_echo "$as_me:$LINENO: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106   SET_MAKE=
4107 else
4108   { $as_echo "$as_me:$LINENO: result: no" >&5
4109 $as_echo "no" >&6; }
4110   SET_MAKE="MAKE=${MAKE-make}"
4111 fi
4112
4113 rm -rf .tst 2>/dev/null
4114 mkdir .tst 2>/dev/null
4115 if test -d .tst; then
4116   am__leading_dot=.
4117 else
4118   am__leading_dot=_
4119 fi
4120 rmdir .tst 2>/dev/null
4121
4122 DEPDIR="${am__leading_dot}deps"
4123
4124 ac_config_commands="$ac_config_commands depfiles"
4125
4126
4127 am_make=${MAKE-make}
4128 cat > confinc << 'END'
4129 am__doit:
4130         @echo this is the am__doit target
4131 .PHONY: am__doit
4132 END
4133 # If we don't find an include directive, just comment out the code.
4134 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4135 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4136 am__include="#"
4137 am__quote=
4138 _am_result=none
4139 # First try GNU make style include.
4140 echo "include confinc" > confmf
4141 # Ignore all kinds of additional output from `make'.
4142 case `$am_make -s -f confmf 2> /dev/null` in #(
4143 *the\ am__doit\ target*)
4144   am__include=include
4145   am__quote=
4146   _am_result=GNU
4147   ;;
4148 esac
4149 # Now try BSD make style include.
4150 if test "$am__include" = "#"; then
4151    echo '.include "confinc"' > confmf
4152    case `$am_make -s -f confmf 2> /dev/null` in #(
4153    *the\ am__doit\ target*)
4154      am__include=.include
4155      am__quote="\""
4156      _am_result=BSD
4157      ;;
4158    esac
4159 fi
4160
4161
4162 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4163 $as_echo "$_am_result" >&6; }
4164 rm -f confinc confmf
4165
4166 # Check whether --enable-dependency-tracking was given.
4167 if test "${enable_dependency_tracking+set}" = set; then
4168   enableval=$enable_dependency_tracking;
4169 fi
4170
4171 if test "x$enable_dependency_tracking" != xno; then
4172   am_depcomp="$ac_aux_dir/depcomp"
4173   AMDEPBACKSLASH='\'
4174 fi
4175  if test "x$enable_dependency_tracking" != xno; then
4176   AMDEP_TRUE=
4177   AMDEP_FALSE='#'
4178 else
4179   AMDEP_TRUE='#'
4180   AMDEP_FALSE=
4181 fi
4182
4183
4184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4185   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4186   # is not polluted with repeated "-I."
4187   am__isrc=' -I$(srcdir)'
4188   # test to see if srcdir already configured
4189   if test -f $srcdir/config.status; then
4190     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4191 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4192    { (exit 1); exit 1; }; }
4193   fi
4194 fi
4195
4196 # test whether we have cygpath
4197 if test -z "$CYGPATH_W"; then
4198   if (cygpath --version) >/dev/null 2>/dev/null; then
4199     CYGPATH_W='cygpath -w'
4200   else
4201     CYGPATH_W=echo
4202   fi
4203 fi
4204
4205
4206 # Define the identity of the package.
4207  PACKAGE=lcr
4208  VERSION=1.7
4209
4210
4211 cat >>confdefs.h <<_ACEOF
4212 #define PACKAGE "$PACKAGE"
4213 _ACEOF
4214
4215
4216 cat >>confdefs.h <<_ACEOF
4217 #define VERSION "$VERSION"
4218 _ACEOF
4219
4220 # Some tools Automake needs.
4221
4222 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4223
4224
4225 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4226
4227
4228 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4229
4230
4231 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4232
4233
4234 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4235
4236 # We need awk for the "check" target.  The system "awk" is bad on
4237 # some platforms.
4238 # Always define AMTAR for backward compatibility.
4239
4240 AMTAR=${AMTAR-"${am_missing_run}tar"}
4241
4242 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4243
4244
4245
4246
4247 depcc="$CC"   am_compiler_list=
4248
4249 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250 $as_echo_n "checking dependency style of $depcc... " >&6; }
4251 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4252   $as_echo_n "(cached) " >&6
4253 else
4254   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255   # We make a subdir and do the tests there.  Otherwise we can end up
4256   # making bogus files that we don't know about and never remove.  For
4257   # instance it was reported that on HP-UX the gcc test will end up
4258   # making a dummy file named `D' -- because `-MD' means `put the output
4259   # in D'.
4260   mkdir conftest.dir
4261   # Copy depcomp to subdir because otherwise we won't find it if we're
4262   # using a relative directory.
4263   cp "$am_depcomp" conftest.dir
4264   cd conftest.dir
4265   # We will build objects and dependencies in a subdirectory because
4266   # it helps to detect inapplicable dependency modes.  For instance
4267   # both Tru64's cc and ICC support -MD to output dependencies as a
4268   # side effect of compilation, but ICC will put the dependencies in
4269   # the current directory while Tru64 will put them in the object
4270   # directory.
4271   mkdir sub
4272
4273   am_cv_CC_dependencies_compiler_type=none
4274   if test "$am_compiler_list" = ""; then
4275      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276   fi
4277   am__universal=false
4278   case " $depcc " in #(
4279      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4280      esac
4281
4282   for depmode in $am_compiler_list; do
4283     # Setup a source with many dependencies, because some compilers
4284     # like to wrap large dependency lists on column 80 (with \), and
4285     # we should not choose a depcomp mode which is confused by this.
4286     #
4287     # We need to recreate these files for each test, as the compiler may
4288     # overwrite some of them when testing with obscure command lines.
4289     # This happens at least with the AIX C compiler.
4290     : > sub/conftest.c
4291     for i in 1 2 3 4 5 6; do
4292       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4293       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4294       # Solaris 8's {/usr,}/bin/sh.
4295       touch sub/conftst$i.h
4296     done
4297     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4298
4299     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4300     # mode.  It turns out that the SunPro C++ compiler does not properly
4301     # handle `-M -o', and we need to detect this.  Also, some Intel
4302     # versions had trouble with output in subdirs
4303     am__obj=sub/conftest.${OBJEXT-o}
4304     am__minus_obj="-o $am__obj"
4305     case $depmode in
4306     gcc)
4307       # This depmode causes a compiler race in universal mode.
4308       test "$am__universal" = false || continue
4309       ;;
4310     nosideeffect)
4311       # after this tag, mechanisms are not by side-effect, so they'll
4312       # only be used when explicitly requested
4313       if test "x$enable_dependency_tracking" = xyes; then
4314         continue
4315       else
4316         break
4317       fi
4318       ;;
4319     msvisualcpp | msvcmsys)
4320       # This compiler won't grok `-c -o', but also, the minuso test has
4321       # not run yet.  These depmodes are late enough in the game, and
4322       # so weak that their functioning should not be impacted.
4323       am__obj=conftest.${OBJEXT-o}
4324       am__minus_obj=
4325       ;;
4326     none) break ;;
4327     esac
4328     if depmode=$depmode \
4329        source=sub/conftest.c object=$am__obj \
4330        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4331        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4332          >/dev/null 2>conftest.err &&
4333        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4334        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4336        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337       # icc doesn't choke on unknown options, it will just issue warnings
4338       # or remarks (even with -Werror).  So we grep stderr for any message
4339       # that says an option was ignored or not supported.
4340       # When given -MP, icc 7.0 and 7.1 complain thusly:
4341       #   icc: Command line warning: ignoring option '-M'; no argument required
4342       # The diagnosis changed in icc 8.0:
4343       #   icc: Command line remark: option '-MP' not supported
4344       if (grep 'ignoring option' conftest.err ||
4345           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346         am_cv_CC_dependencies_compiler_type=$depmode
4347         break
4348       fi
4349     fi
4350   done
4351
4352   cd ..
4353   rm -rf conftest.dir
4354 else
4355   am_cv_CC_dependencies_compiler_type=none
4356 fi
4357
4358 fi
4359 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4360 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4362
4363  if
4364   test "x$enable_dependency_tracking" != xno \
4365   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4366   am__fastdepCC_TRUE=
4367   am__fastdepCC_FALSE='#'
4368 else
4369   am__fastdepCC_TRUE='#'
4370   am__fastdepCC_FALSE=
4371 fi
4372
4373
4374
4375
4376
4377
4378 # Checks for programs.
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4385 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4386 # On Suns, sometimes $CPP names a directory.
4387 if test -n "$CPP" && test -d "$CPP"; then
4388   CPP=
4389 fi
4390 if test -z "$CPP"; then
4391   if test "${ac_cv_prog_CPP+set}" = set; then
4392   $as_echo_n "(cached) " >&6
4393 else
4394       # Double quotes because CPP needs to be expanded
4395     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4396     do
4397       ac_preproc_ok=false
4398 for ac_c_preproc_warn_flag in '' yes
4399 do
4400   # Use a header file that comes with gcc, so configuring glibc
4401   # with a fresh cross-compiler works.
4402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4403   # <limits.h> exists even on freestanding compilers.
4404   # On the NeXT, cc -E runs the code through the compiler's parser,
4405   # not just through cpp. "Syntax error" is here to catch this case.
4406   cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #ifdef __STDC__
4413 # include <limits.h>
4414 #else
4415 # include <assert.h>
4416 #endif
4417                      Syntax error
4418 _ACEOF
4419 if { (ac_try="$ac_cpp conftest.$ac_ext"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4425 $as_echo "$ac_try_echo") >&5
4426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } >/dev/null && {
4433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4434          test ! -s conftest.err
4435        }; then
4436   :
4437 else
4438   $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   # Broken: fails on valid input.
4442 continue
4443 fi
4444
4445 rm -f conftest.err conftest.$ac_ext
4446
4447   # OK, works on sane cases.  Now check whether nonexistent headers
4448   # can be detected and how.
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <ac_nonexistent.h>
4456 _ACEOF
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4458 case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } >/dev/null && {
4471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4472          test ! -s conftest.err
4473        }; then
4474   # Broken: success on invalid input.
4475 continue
4476 else
4477   $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480   # Passes both tests.
4481 ac_preproc_ok=:
4482 break
4483 fi
4484
4485 rm -f conftest.err conftest.$ac_ext
4486
4487 done
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.err conftest.$ac_ext
4490 if $ac_preproc_ok; then
4491   break
4492 fi
4493
4494     done
4495     ac_cv_prog_CPP=$CPP
4496
4497 fi
4498   CPP=$ac_cv_prog_CPP
4499 else
4500   ac_cv_prog_CPP=$CPP
4501 fi
4502 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4503 $as_echo "$CPP" >&6; }
4504 ac_preproc_ok=false
4505 for ac_c_preproc_warn_flag in '' yes
4506 do
4507   # Use a header file that comes with gcc, so configuring glibc
4508   # with a fresh cross-compiler works.
4509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510   # <limits.h> exists even on freestanding compilers.
4511   # On the NeXT, cc -E runs the code through the compiler's parser,
4512   # not just through cpp. "Syntax error" is here to catch this case.
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 #ifdef __STDC__
4520 # include <limits.h>
4521 #else
4522 # include <assert.h>
4523 #endif
4524                      Syntax error
4525 _ACEOF
4526 if { (ac_try="$ac_cpp conftest.$ac_ext"
4527 case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532 $as_echo "$ac_try_echo") >&5
4533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } >/dev/null && {
4540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541          test ! -s conftest.err
4542        }; then
4543   :
4544 else
4545   $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548   # Broken: fails on valid input.
4549 continue
4550 fi
4551
4552 rm -f conftest.err conftest.$ac_ext
4553
4554   # OK, works on sane cases.  Now check whether nonexistent headers
4555   # can be detected and how.
4556   cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h.  */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h.  */
4562 #include <ac_nonexistent.h>
4563 _ACEOF
4564 if { (ac_try="$ac_cpp conftest.$ac_ext"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4570 $as_echo "$ac_try_echo") >&5
4571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4572   ac_status=$?
4573   grep -v '^ *+' conftest.er1 >conftest.err
4574   rm -f conftest.er1
4575   cat conftest.err >&5
4576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } >/dev/null && {
4578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579          test ! -s conftest.err
4580        }; then
4581   # Broken: success on invalid input.
4582 continue
4583 else
4584   $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587   # Passes both tests.
4588 ac_preproc_ok=:
4589 break
4590 fi
4591
4592 rm -f conftest.err conftest.$ac_ext
4593
4594 done
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then
4598   :
4599 else
4600   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4603 See \`config.log' for more details." >&5
4604 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4605 See \`config.log' for more details." >&2;}
4606    { (exit 1); exit 1; }; }; }
4607 fi
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614
4615 ac_ext=cpp
4616 ac_cpp='$CXXCPP $CPPFLAGS'
4617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 if test -z "$CXX"; then
4621   if test -n "$CCC"; then
4622     CXX=$CCC
4623   else
4624     if test -n "$ac_tool_prefix"; then
4625   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4626   do
4627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_CXX+set}" = set; then
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$CXX"; then
4635   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4645     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 CXX=$ac_cv_prog_CXX
4655 if test -n "$CXX"; then
4656   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4657 $as_echo "$CXX" >&6; }
4658 else
4659   { $as_echo "$as_me:$LINENO: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664     test -n "$CXX" && break
4665   done
4666 fi
4667 if test -z "$CXX"; then
4668   ac_ct_CXX=$CXX
4669   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4670 do
4671   # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$ac_ct_CXX"; then
4679   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686   for ac_exec_ext in '' $ac_executable_extensions; do
4687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688     ac_cv_prog_ac_ct_CXX="$ac_prog"
4689     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4699 if test -n "$ac_ct_CXX"; then
4700   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4701 $as_echo "$ac_ct_CXX" >&6; }
4702 else
4703   { $as_echo "$as_me:$LINENO: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708   test -n "$ac_ct_CXX" && break
4709 done
4710
4711   if test "x$ac_ct_CXX" = x; then
4712     CXX="g++"
4713   else
4714     case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720     CXX=$ac_ct_CXX
4721   fi
4722 fi
4723
4724   fi
4725 fi
4726 # Provide some information about the compiler.
4727 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4728 set X $ac_compile
4729 ac_compiler=$2
4730 { (ac_try="$ac_compiler --version >&5"
4731 case "(($ac_try" in
4732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733   *) ac_try_echo=$ac_try;;
4734 esac
4735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4736 $as_echo "$ac_try_echo") >&5
4737   (eval "$ac_compiler --version >&5") 2>&5
4738   ac_status=$?
4739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }
4741 { (ac_try="$ac_compiler -v >&5"
4742 case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4747 $as_echo "$ac_try_echo") >&5
4748   (eval "$ac_compiler -v >&5") 2>&5
4749   ac_status=$?
4750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }
4752 { (ac_try="$ac_compiler -V >&5"
4753 case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4758 $as_echo "$ac_try_echo") >&5
4759   (eval "$ac_compiler -V >&5") 2>&5
4760   ac_status=$?
4761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }
4763
4764 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4765 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4767   $as_echo_n "(cached) " >&6
4768 else
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775
4776 int
4777 main ()
4778 {
4779 #ifndef __GNUC__
4780        choke me
4781 #endif
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791   *) ac_try_echo=$ac_try;;
4792 esac
4793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794 $as_echo "$ac_try_echo") >&5
4795   (eval "$ac_compile") 2>conftest.er1
4796   ac_status=$?
4797   grep -v '^ *+' conftest.er1 >conftest.err
4798   rm -f conftest.er1
4799   cat conftest.err >&5
4800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } && {
4802          test -z "$ac_cxx_werror_flag" ||
4803          test ! -s conftest.err
4804        } && test -s conftest.$ac_objext; then
4805   ac_compiler_gnu=yes
4806 else
4807   $as_echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810         ac_compiler_gnu=no
4811 fi
4812
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4815
4816 fi
4817 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4819 if test $ac_compiler_gnu = yes; then
4820   GXX=yes
4821 else
4822   GXX=
4823 fi
4824 ac_test_CXXFLAGS=${CXXFLAGS+set}
4825 ac_save_CXXFLAGS=$CXXFLAGS
4826 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4828 if test "${ac_cv_prog_cxx_g+set}" = set; then
4829   $as_echo_n "(cached) " >&6
4830 else
4831   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4832    ac_cxx_werror_flag=yes
4833    ac_cv_prog_cxx_g=no
4834    CXXFLAGS="-g"
4835    cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (ac_try="$ac_compile"
4852 case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858   (eval "$ac_compile") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } && {
4865          test -z "$ac_cxx_werror_flag" ||
4866          test ! -s conftest.err
4867        } && test -s conftest.$ac_objext; then
4868   ac_cv_prog_cxx_g=yes
4869 else
4870   $as_echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873         CXXFLAGS=""
4874       cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880
4881 int
4882 main ()
4883 {
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4891 case "(($ac_try" in
4892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893   *) ac_try_echo=$ac_try;;
4894 esac
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897   (eval "$ac_compile") 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } && {
4904          test -z "$ac_cxx_werror_flag" ||
4905          test ! -s conftest.err
4906        } && test -s conftest.$ac_objext; then
4907   :
4908 else
4909   $as_echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4913          CXXFLAGS="-g"
4914          cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920
4921 int
4922 main ()
4923 {
4924
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4931 case "(($ac_try" in
4932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933   *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4936 $as_echo "$ac_try_echo") >&5
4937   (eval "$ac_compile") 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } && {
4944          test -z "$ac_cxx_werror_flag" ||
4945          test ! -s conftest.err
4946        } && test -s conftest.$ac_objext; then
4947   ac_cv_prog_cxx_g=yes
4948 else
4949   $as_echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4963 fi
4964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4965 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4966 if test "$ac_test_CXXFLAGS" = set; then
4967   CXXFLAGS=$ac_save_CXXFLAGS
4968 elif test $ac_cv_prog_cxx_g = yes; then
4969   if test "$GXX" = yes; then
4970     CXXFLAGS="-g -O2"
4971   else
4972     CXXFLAGS="-g"
4973   fi
4974 else
4975   if test "$GXX" = yes; then
4976     CXXFLAGS="-O2"
4977   else
4978     CXXFLAGS=
4979   fi
4980 fi
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986
4987 depcc="$CXX"  am_compiler_list=
4988
4989 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4990 $as_echo_n "checking dependency style of $depcc... " >&6; }
4991 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4992   $as_echo_n "(cached) " >&6
4993 else
4994   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995   # We make a subdir and do the tests there.  Otherwise we can end up
4996   # making bogus files that we don't know about and never remove.  For
4997   # instance it was reported that on HP-UX the gcc test will end up
4998   # making a dummy file named `D' -- because `-MD' means `put the output
4999   # in D'.
5000   mkdir conftest.dir
5001   # Copy depcomp to subdir because otherwise we won't find it if we're
5002   # using a relative directory.
5003   cp "$am_depcomp" conftest.dir
5004   cd conftest.dir
5005   # We will build objects and dependencies in a subdirectory because
5006   # it helps to detect inapplicable dependency modes.  For instance
5007   # both Tru64's cc and ICC support -MD to output dependencies as a
5008   # side effect of compilation, but ICC will put the dependencies in
5009   # the current directory while Tru64 will put them in the object
5010   # directory.
5011   mkdir sub
5012
5013   am_cv_CXX_dependencies_compiler_type=none
5014   if test "$am_compiler_list" = ""; then
5015      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016   fi
5017   am__universal=false
5018   case " $depcc " in #(
5019      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5020      esac
5021
5022   for depmode in $am_compiler_list; do
5023     # Setup a source with many dependencies, because some compilers
5024     # like to wrap large dependency lists on column 80 (with \), and
5025     # we should not choose a depcomp mode which is confused by this.
5026     #
5027     # We need to recreate these files for each test, as the compiler may
5028     # overwrite some of them when testing with obscure command lines.
5029     # This happens at least with the AIX C compiler.
5030     : > sub/conftest.c
5031     for i in 1 2 3 4 5 6; do
5032       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5033       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5034       # Solaris 8's {/usr,}/bin/sh.
5035       touch sub/conftst$i.h
5036     done
5037     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5038
5039     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5040     # mode.  It turns out that the SunPro C++ compiler does not properly
5041     # handle `-M -o', and we need to detect this.  Also, some Intel
5042     # versions had trouble with output in subdirs
5043     am__obj=sub/conftest.${OBJEXT-o}
5044     am__minus_obj="-o $am__obj"
5045     case $depmode in
5046     gcc)
5047       # This depmode causes a compiler race in universal mode.
5048       test "$am__universal" = false || continue
5049       ;;
5050     nosideeffect)
5051       # after this tag, mechanisms are not by side-effect, so they'll
5052       # only be used when explicitly requested
5053       if test "x$enable_dependency_tracking" = xyes; then
5054         continue
5055       else
5056         break
5057       fi
5058       ;;
5059     msvisualcpp | msvcmsys)
5060       # This compiler won't grok `-c -o', but also, the minuso test has
5061       # not run yet.  These depmodes are late enough in the game, and
5062       # so weak that their functioning should not be impacted.
5063       am__obj=conftest.${OBJEXT-o}
5064       am__minus_obj=
5065       ;;
5066     none) break ;;
5067     esac
5068     if depmode=$depmode \
5069        source=sub/conftest.c object=$am__obj \
5070        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5072          >/dev/null 2>conftest.err &&
5073        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5074        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5075        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5076        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5077       # icc doesn't choke on unknown options, it will just issue warnings
5078       # or remarks (even with -Werror).  So we grep stderr for any message
5079       # that says an option was ignored or not supported.
5080       # When given -MP, icc 7.0 and 7.1 complain thusly:
5081       #   icc: Command line warning: ignoring option '-M'; no argument required
5082       # The diagnosis changed in icc 8.0:
5083       #   icc: Command line remark: option '-MP' not supported
5084       if (grep 'ignoring option' conftest.err ||
5085           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5086         am_cv_CXX_dependencies_compiler_type=$depmode
5087         break
5088       fi
5089     fi
5090   done
5091
5092   cd ..
5093   rm -rf conftest.dir
5094 else
5095   am_cv_CXX_dependencies_compiler_type=none
5096 fi
5097
5098 fi
5099 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5100 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5101 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5102
5103  if
5104   test "x$enable_dependency_tracking" != xno \
5105   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5106   am__fastdepCXX_TRUE=
5107   am__fastdepCXX_FALSE='#'
5108 else
5109   am__fastdepCXX_TRUE='#'
5110   am__fastdepCXX_FALSE=
5111 fi
5112
5113
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 if test -n "$ac_tool_prefix"; then
5120   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_CC+set}" = set; then
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$CC"; then
5128   ac_cv_prog_CC="$CC" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135   for ac_exec_ext in '' $ac_executable_extensions; do
5136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 CC=$ac_cv_prog_CC
5148 if test -n "$CC"; then
5149   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5150 $as_echo "$CC" >&6; }
5151 else
5152   { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156
5157 fi
5158 if test -z "$ac_cv_prog_CC"; then
5159   ac_ct_CC=$CC
5160   # Extract the first word of "gcc", so it can be a program name with args.
5161 set dummy gcc; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if test -n "$ac_ct_CC"; then
5168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_exec_ext in '' $ac_executable_extensions; do
5176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177     ac_cv_prog_ac_ct_CC="gcc"
5178     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5188 if test -n "$ac_ct_CC"; then
5189   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5190 $as_echo "$ac_ct_CC" >&6; }
5191 else
5192   { $as_echo "$as_me:$LINENO: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196   if test "x$ac_ct_CC" = x; then
5197     CC=""
5198   else
5199     case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205     CC=$ac_ct_CC
5206   fi
5207 else
5208   CC="$ac_cv_prog_CC"
5209 fi
5210
5211 if test -z "$CC"; then
5212           if test -n "$ac_tool_prefix"; then
5213     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}cc; ac_word=$2
5215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_CC+set}" = set; then
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if test -n "$CC"; then
5221   ac_cv_prog_CC="$CC" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228   for ac_exec_ext in '' $ac_executable_extensions; do
5229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230     ac_cv_prog_CC="${ac_tool_prefix}cc"
5231     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 CC=$ac_cv_prog_CC
5241 if test -n "$CC"; then
5242   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5243 $as_echo "$CC" >&6; }
5244 else
5245   { $as_echo "$as_me:$LINENO: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250   fi
5251 fi
5252 if test -z "$CC"; then
5253   # Extract the first word of "cc", so it can be a program name with args.
5254 set dummy cc; ac_word=$2
5255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_CC+set}" = set; then
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test -n "$CC"; then
5261   ac_cv_prog_CC="$CC" # Let the user override the test.
5262 else
5263   ac_prog_rejected=no
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269   for ac_exec_ext in '' $ac_executable_extensions; do
5270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5272        ac_prog_rejected=yes
5273        continue
5274      fi
5275     ac_cv_prog_CC="cc"
5276     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 if test $ac_prog_rejected = yes; then
5284   # We found a bogon in the path, so make sure we never use it.
5285   set dummy $ac_cv_prog_CC
5286   shift
5287   if test $# != 0; then
5288     # We chose a different compiler from the bogus one.
5289     # However, it has the same basename, so the bogon will be chosen
5290     # first if we set CC to just the basename; use the full file name.
5291     shift
5292     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5293   fi
5294 fi
5295 fi
5296 fi
5297 CC=$ac_cv_prog_CC
5298 if test -n "$CC"; then
5299   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5300 $as_echo "$CC" >&6; }
5301 else
5302   { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 fi
5308 if test -z "$CC"; then
5309   if test -n "$ac_tool_prefix"; then
5310   for ac_prog in cl.exe
5311   do
5312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_CC+set}" = set; then
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$CC"; then
5320   ac_cv_prog_CC="$CC" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327   for ac_exec_ext in '' $ac_executable_extensions; do
5328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5330     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 CC=$ac_cv_prog_CC
5340 if test -n "$CC"; then
5341   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5342 $as_echo "$CC" >&6; }
5343 else
5344   { $as_echo "$as_me:$LINENO: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349     test -n "$CC" && break
5350   done
5351 fi
5352 if test -z "$CC"; then
5353   ac_ct_CC=$CC
5354   for ac_prog in cl.exe
5355 do
5356   # Extract the first word of "$ac_prog", so it can be a program name with args.
5357 set dummy $ac_prog; ac_word=$2
5358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$ac_ct_CC"; then
5364   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371   for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_prog_ac_ct_CC="$ac_prog"
5374     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5384 if test -n "$ac_ct_CC"; then
5385   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5386 $as_echo "$ac_ct_CC" >&6; }
5387 else
5388   { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393   test -n "$ac_ct_CC" && break
5394 done
5395
5396   if test "x$ac_ct_CC" = x; then
5397     CC=""
5398   else
5399     case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405     CC=$ac_ct_CC
5406   fi
5407 fi
5408
5409 fi
5410
5411
5412 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5414 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5415 See \`config.log' for more details." >&5
5416 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5417 See \`config.log' for more details." >&2;}
5418    { (exit 1); exit 1; }; }; }
5419
5420 # Provide some information about the compiler.
5421 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5422 set X $ac_compile
5423 ac_compiler=$2
5424 { (ac_try="$ac_compiler --version >&5"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5430 $as_echo "$ac_try_echo") >&5
5431   (eval "$ac_compiler --version >&5") 2>&5
5432   ac_status=$?
5433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }
5435 { (ac_try="$ac_compiler -v >&5"
5436 case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441 $as_echo "$ac_try_echo") >&5
5442   (eval "$ac_compiler -v >&5") 2>&5
5443   ac_status=$?
5444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }
5446 { (ac_try="$ac_compiler -V >&5"
5447 case "(($ac_try" in
5448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449   *) ac_try_echo=$ac_try;;
5450 esac
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453   (eval "$ac_compiler -V >&5") 2>&5
5454   ac_status=$?
5455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }
5457
5458 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5460 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5461   $as_echo_n "(cached) " >&6
5462 else
5463   cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h.  */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h.  */
5469
5470 int
5471 main ()
5472 {
5473 #ifndef __GNUC__
5474        choke me
5475 #endif
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (ac_try="$ac_compile"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_compiler_gnu=yes
5500 else
5501   $as_echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         ac_compiler_gnu=no
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5509
5510 fi
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5513 if test $ac_compiler_gnu = yes; then
5514   GCC=yes
5515 else
5516   GCC=
5517 fi
5518 ac_test_CFLAGS=${CFLAGS+set}
5519 ac_save_CFLAGS=$CFLAGS
5520 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5522 if test "${ac_cv_prog_cc_g+set}" = set; then
5523   $as_echo_n "(cached) " >&6
5524 else
5525   ac_save_c_werror_flag=$ac_c_werror_flag
5526    ac_c_werror_flag=yes
5527    ac_cv_prog_cc_g=no
5528    CFLAGS="-g"
5529    cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h.  */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h.  */
5535
5536 int
5537 main ()
5538 {
5539
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (ac_try="$ac_compile"
5546 case "(($ac_try" in
5547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548   *) ac_try_echo=$ac_try;;
5549 esac
5550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5551 $as_echo "$ac_try_echo") >&5
5552   (eval "$ac_compile") 2>conftest.er1
5553   ac_status=$?
5554   grep -v '^ *+' conftest.er1 >conftest.err
5555   rm -f conftest.er1
5556   cat conftest.err >&5
5557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } && {
5559          test -z "$ac_c_werror_flag" ||
5560          test ! -s conftest.err
5561        } && test -s conftest.$ac_objext; then
5562   ac_cv_prog_cc_g=yes
5563 else
5564   $as_echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567         CFLAGS=""
5568       cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h.  */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h.  */
5574
5575 int
5576 main ()
5577 {
5578
5579   ;
5580   return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587   *) ac_try_echo=$ac_try;;
5588 esac
5589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5590 $as_echo "$ac_try_echo") >&5
5591   (eval "$ac_compile") 2>conftest.er1
5592   ac_status=$?
5593   grep -v '^ *+' conftest.er1 >conftest.err
5594   rm -f conftest.er1
5595   cat conftest.err >&5
5596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } && {
5598          test -z "$ac_c_werror_flag" ||
5599          test ! -s conftest.err
5600        } && test -s conftest.$ac_objext; then
5601   :
5602 else
5603   $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606         ac_c_werror_flag=$ac_save_c_werror_flag
5607          CFLAGS="-g"
5608          cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614
5615 int
5616 main ()
5617 {
5618
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627   *) ac_try_echo=$ac_try;;
5628 esac
5629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5630 $as_echo "$ac_try_echo") >&5
5631   (eval "$ac_compile") 2>conftest.er1
5632   ac_status=$?
5633   grep -v '^ *+' conftest.er1 >conftest.err
5634   rm -f conftest.er1
5635   cat conftest.err >&5
5636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); } && {
5638          test -z "$ac_c_werror_flag" ||
5639          test ! -s conftest.err
5640        } && test -s conftest.$ac_objext; then
5641   ac_cv_prog_cc_g=yes
5642 else
5643   $as_echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 fi
5651
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656    ac_c_werror_flag=$ac_save_c_werror_flag
5657 fi
5658 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5659 $as_echo "$ac_cv_prog_cc_g" >&6; }
5660 if test "$ac_test_CFLAGS" = set; then
5661   CFLAGS=$ac_save_CFLAGS
5662 elif test $ac_cv_prog_cc_g = yes; then
5663   if test "$GCC" = yes; then
5664     CFLAGS="-g -O2"
5665   else
5666     CFLAGS="-g"
5667   fi
5668 else
5669   if test "$GCC" = yes; then
5670     CFLAGS="-O2"
5671   else
5672     CFLAGS=
5673   fi
5674 fi
5675 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5677 if test "${ac_cv_prog_cc_c89+set}" = set; then
5678   $as_echo_n "(cached) " >&6
5679 else
5680   ac_cv_prog_cc_c89=no
5681 ac_save_CC=$CC
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h.  */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h.  */
5688 #include <stdarg.h>
5689 #include <stdio.h>
5690 #include <sys/types.h>
5691 #include <sys/stat.h>
5692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5693 struct buf { int x; };
5694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5695 static char *e (p, i)
5696      char **p;
5697      int i;
5698 {
5699   return p[i];
5700 }
5701 static char *f (char * (*g) (char **, int), char **p, ...)
5702 {
5703   char *s;
5704   va_list v;
5705   va_start (v,p);
5706   s = g (p, va_arg (v,int));
5707   va_end (v);
5708   return s;
5709 }
5710
5711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5712    function prototypes and stuff, but not '\xHH' hex character constants.
5713    These don't provoke an error unfortunately, instead are silently treated
5714    as 'x'.  The following induces an error, until -std is added to get
5715    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5716    array size at least.  It's necessary to write '\x00'==0 to get something
5717    that's true only with -std.  */
5718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5719
5720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5721    inside strings and character constants.  */
5722 #define FOO(x) 'x'
5723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5724
5725 int test (int i, double x);
5726 struct s1 {int (*f) (int a);};
5727 struct s2 {int (*f) (double a);};
5728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5729 int argc;
5730 char **argv;
5731 int
5732 main ()
5733 {
5734 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5740         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5741 do
5742   CC="$ac_save_CC $ac_arg"
5743   rm -f conftest.$ac_objext
5744 if { (ac_try="$ac_compile"
5745 case "(($ac_try" in
5746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747   *) ac_try_echo=$ac_try;;
5748 esac
5749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5750 $as_echo "$ac_try_echo") >&5
5751   (eval "$ac_compile") 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } && {
5758          test -z "$ac_c_werror_flag" ||
5759          test ! -s conftest.err
5760        } && test -s conftest.$ac_objext; then
5761   ac_cv_prog_cc_c89=$ac_arg
5762 else
5763   $as_echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext
5770   test "x$ac_cv_prog_cc_c89" != "xno" && break
5771 done
5772 rm -f conftest.$ac_ext
5773 CC=$ac_save_CC
5774
5775 fi
5776 # AC_CACHE_VAL
5777 case "x$ac_cv_prog_cc_c89" in
5778   x)
5779     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5780 $as_echo "none needed" >&6; } ;;
5781   xno)
5782     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5783 $as_echo "unsupported" >&6; } ;;
5784   *)
5785     CC="$CC $ac_cv_prog_cc_c89"
5786     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5788 esac
5789
5790
5791 ac_ext=c
5792 ac_cpp='$CPP $CPPFLAGS'
5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796
5797 # Find a good install program.  We prefer a C program (faster),
5798 # so one script is as good as another.  But avoid the broken or
5799 # incompatible versions:
5800 # SysV /etc/install, /usr/sbin/install
5801 # SunOS /usr/etc/install
5802 # IRIX /sbin/install
5803 # AIX /bin/install
5804 # AmigaOS /C/install, which installs bootblocks on floppy discs
5805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5808 # OS/2's system install, which has a completely different semantic
5809 # ./install, which can be erroneously created by make from ./install.sh.
5810 # Reject install programs that cannot install multiple files.
5811 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5812 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5813 if test -z "$INSTALL"; then
5814 if test "${ac_cv_path_install+set}" = set; then
5815   $as_echo_n "(cached) " >&6
5816 else
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   # Account for people who put trailing slashes in PATH elements.
5823 case $as_dir/ in
5824   ./ | .// | /cC/* | \
5825   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5826   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5827   /usr/ucb/* ) ;;
5828   *)
5829     # OSF1 and SCO ODT 3.0 have their own names for install.
5830     # Don't use installbsd from OSF since it installs stuff as root
5831     # by default.
5832     for ac_prog in ginstall scoinst install; do
5833       for ac_exec_ext in '' $ac_executable_extensions; do
5834         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5835           if test $ac_prog = install &&
5836             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5837             # AIX install.  It has an incompatible calling convention.
5838             :
5839           elif test $ac_prog = install &&
5840             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5841             # program-specific install script used by HP pwplus--don't use.
5842             :
5843           else
5844             rm -rf conftest.one conftest.two conftest.dir
5845             echo one > conftest.one
5846             echo two > conftest.two
5847             mkdir conftest.dir
5848             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5849               test -s conftest.one && test -s conftest.two &&
5850               test -s conftest.dir/conftest.one &&
5851               test -s conftest.dir/conftest.two
5852             then
5853               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5854               break 3
5855             fi
5856           fi
5857         fi
5858       done
5859     done
5860     ;;
5861 esac
5862
5863 done
5864 IFS=$as_save_IFS
5865
5866 rm -rf conftest.one conftest.two conftest.dir
5867
5868 fi
5869   if test "${ac_cv_path_install+set}" = set; then
5870     INSTALL=$ac_cv_path_install
5871   else
5872     # As a last resort, use the slow shell script.  Don't cache a
5873     # value for INSTALL within a source directory, because that will
5874     # break other packages using the cache if that directory is
5875     # removed, or if the value is a relative name.
5876     INSTALL=$ac_install_sh
5877   fi
5878 fi
5879 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5880 $as_echo "$INSTALL" >&6; }
5881
5882 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5883 # It thinks the first close brace ends the variable substitution.
5884 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5885
5886 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5887
5888 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5889
5890 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5891 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5892 set x ${MAKE-make}
5893 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5894 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5895   $as_echo_n "(cached) " >&6
5896 else
5897   cat >conftest.make <<\_ACEOF
5898 SHELL = /bin/sh
5899 all:
5900         @echo '@@@%%%=$(MAKE)=@@@%%%'
5901 _ACEOF
5902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5904   *@@@%%%=?*=@@@%%%*)
5905     eval ac_cv_prog_make_${ac_make}_set=yes;;
5906   *)
5907     eval ac_cv_prog_make_${ac_make}_set=no;;
5908 esac
5909 rm -f conftest.make
5910 fi
5911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5912   { $as_echo "$as_me:$LINENO: result: yes" >&5
5913 $as_echo "yes" >&6; }
5914   SET_MAKE=
5915 else
5916   { $as_echo "$as_me:$LINENO: result: no" >&5
5917 $as_echo "no" >&6; }
5918   SET_MAKE="MAKE=${MAKE-make}"
5919 fi
5920
5921
5922
5923 # site specific configs
5924
5925 # check for asterisk
5926
5927 # Check whether --with-asterisk was given.
5928 if test "${with_asterisk+set}" = set; then
5929   withval=$with_asterisk;
5930 else
5931   with_asterisk="check"
5932 fi
5933
5934
5935 if test "x$with_asterisk" != xno; then
5936
5937 for ac_header in asterisk/compiler.h
5938 do
5939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5941   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 $as_echo_n "checking for $ac_header... " >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944   $as_echo_n "(cached) " >&6
5945 fi
5946 ac_res=`eval 'as_val=${'$as_ac_Header'}
5947                  $as_echo "$as_val"'`
5948                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5949 $as_echo "$ac_res" >&6; }
5950 else
5951   # Is the header compilable?
5952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953 $as_echo_n "checking $ac_header usability... " >&6; }
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 $ac_includes_default
5961 #include <$ac_header>
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5965 case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971   (eval "$ac_compile") 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } && {
5978          test -z "$ac_c_werror_flag" ||
5979          test ! -s conftest.err
5980        } && test -s conftest.$ac_objext; then
5981   ac_header_compiler=yes
5982 else
5983   $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986         ac_header_compiler=no
5987 fi
5988
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5991 $as_echo "$ac_header_compiler" >&6; }
5992
5993 # Is the header present?
5994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5995 $as_echo_n "checking $ac_header presence... " >&6; }
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h.  */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h.  */
6002 #include <$ac_header>
6003 _ACEOF
6004 if { (ac_try="$ac_cpp conftest.$ac_ext"
6005 case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null && {
6018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6019          test ! -s conftest.err
6020        }; then
6021   ac_header_preproc=yes
6022 else
6023   $as_echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026   ac_header_preproc=no
6027 fi
6028
6029 rm -f conftest.err conftest.$ac_ext
6030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6031 $as_echo "$ac_header_preproc" >&6; }
6032
6033 # So?  What about this header?
6034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6035   yes:no: )
6036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6040     ac_header_preproc=yes
6041     ;;
6042   no:yes:* )
6043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6046 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6050 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6055     ( cat <<\_ASBOX
6056 ## ----------------------------------- ##
6057 ## Report this to andreas@eversberg.eu ##
6058 ## ----------------------------------- ##
6059 _ASBOX
6060      ) | sed "s/^/$as_me: WARNING:     /" >&2
6061     ;;
6062 esac
6063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 $as_echo_n "checking for $ac_header... " >&6; }
6065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6066   $as_echo_n "(cached) " >&6
6067 else
6068   eval "$as_ac_Header=\$ac_header_preproc"
6069 fi
6070 ac_res=`eval 'as_val=${'$as_ac_Header'}
6071                  $as_echo "$as_val"'`
6072                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6073 $as_echo "$ac_res" >&6; }
6074
6075 fi
6076 as_val=`eval 'as_val=${'$as_ac_Header'}
6077                  $as_echo "$as_val"'`
6078    if test "x$as_val" = x""yes; then
6079   cat >>confdefs.h <<_ACEOF
6080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6081 _ACEOF
6082  with_asterisk="yes"
6083 else
6084   if test "x$with_asterisk" != xcheck ; then
6085                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6087 { { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6088 See \`config.log' for more details." >&5
6089 $as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed
6090 See \`config.log' for more details." >&2;}
6091    { (exit 1); exit 1; }; }; }
6092                      fi
6093
6094 fi
6095
6096 done
6097
6098
6099 fi
6100
6101
6102 if test "x$with_asterisk" = "xyes"; then
6103         ast_tone_zone_sound=
6104
6105         { $as_echo "$as_me:$LINENO: checking for struct tone_zone_sound in asterisk/indications.h" >&5
6106 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
6107         tzs_test_result=no
6108         cat >conftest.$ac_ext <<_ACEOF
6109
6110                 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 #include <asterisk.h>,
6116                         #include <asterisk/linkedlists.h>,
6117                         #include <asterisk/indications.h>
6118 int
6119 main ()
6120 {
6121 struct tone_zone_sound * ts = NULL; (void) ts->data;
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130   *) ac_try_echo=$ac_try;;
6131 esac
6132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133 $as_echo "$ac_try_echo") >&5
6134   (eval "$ac_compile") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_c_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   tzs_test_result=yes
6145 else
6146   $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153         { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6154 $as_echo "$tzs_test_result" >&6; }
6155
6156         if test "x$tzs_test_result" = "xyes"; then
6157                 ast_tone_zone_sound=tone_zone_sound
6158         fi
6159
6160         if test "x$ast_tone_zone_sound" = "x"; then
6161                 { $as_echo "$as_me:$LINENO: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
6162 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
6163                 tzs_test_result=no
6164                 cat >conftest.$ac_ext <<_ACEOF
6165
6166                         /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171 #include <asterisk.h>,
6172                                 #include <asterisk/linkedlists.h>,
6173                                 #include <asterisk/indications.h>
6174 int
6175 main ()
6176 {
6177 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (ac_try="$ac_compile"
6184 case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189 $as_echo "$ac_try_echo") >&5
6190   (eval "$ac_compile") 2>conftest.er1
6191   ac_status=$?
6192   grep -v '^ *+' conftest.er1 >conftest.err
6193   rm -f conftest.er1
6194   cat conftest.err >&5
6195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } && {
6197          test -z "$ac_c_werror_flag" ||
6198          test ! -s conftest.err
6199        } && test -s conftest.$ac_objext; then
6200   tzs_test_result=yes
6201 else
6202   $as_echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205
6206 fi
6207
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209                 { $as_echo "$as_me:$LINENO: result: $tzs_test_result" >&5
6210 $as_echo "$tzs_test_result" >&6; }
6211
6212                 if test "x$tzs_test_result" = "xyes"; then
6213                         ast_tone_zone_sound=ast_tone_zone_sound
6214                 fi
6215         fi
6216
6217         if test "x$ast_tone_zone_sound" = "x"; then
6218                 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6220 { { $as_echo "$as_me:$LINENO: error: No ast_tone_zone_sound, confused...
6221 See \`config.log' for more details." >&5
6222 $as_echo "$as_me: error: No ast_tone_zone_sound, confused...
6223 See \`config.log' for more details." >&2;}
6224    { (exit 1); exit 1; }; }; }
6225         fi
6226
6227         AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
6228
6229 fi
6230
6231  if test "x$with_asterisk" == "xyes" ; then
6232   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
6233   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
6234 else
6235   ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
6236   ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
6237 fi
6238
6239
6240 # check for crypto
6241
6242 # Check whether --with-ssl was given.
6243 if test "${with_ssl+set}" = set; then
6244   withval=$with_ssl;
6245 else
6246   with_ssl=check
6247 fi
6248
6249 LIBCRYPTO=
6250 if test "x$with_ssl" != xno; then
6251
6252 for ac_header in openssl/rsa.h
6253 do
6254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 $as_echo_n "checking for $ac_header... " >&6; }
6258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6259   $as_echo_n "(cached) " >&6
6260 fi
6261 ac_res=`eval 'as_val=${'$as_ac_Header'}
6262                  $as_echo "$as_val"'`
6263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6264 $as_echo "$ac_res" >&6; }
6265 else
6266   # Is the header compilable?
6267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6268 $as_echo_n "checking $ac_header usability... " >&6; }
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 $ac_includes_default
6276 #include <$ac_header>
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (ac_try="$ac_compile"
6280 case "(($ac_try" in
6281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282   *) ac_try_echo=$ac_try;;
6283 esac
6284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6285 $as_echo "$ac_try_echo") >&5
6286   (eval "$ac_compile") 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } && {
6293          test -z "$ac_c_werror_flag" ||
6294          test ! -s conftest.err
6295        } && test -s conftest.$ac_objext; then
6296   ac_header_compiler=yes
6297 else
6298   $as_echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301         ac_header_compiler=no
6302 fi
6303
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306 $as_echo "$ac_header_compiler" >&6; }
6307
6308 # Is the header present?
6309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6310 $as_echo_n "checking $ac_header presence... " >&6; }
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <$ac_header>
6318 _ACEOF
6319 if { (ac_try="$ac_cpp conftest.$ac_ext"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6325 $as_echo "$ac_try_echo") >&5
6326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6327   ac_status=$?
6328   grep -v '^ *+' conftest.er1 >conftest.err
6329   rm -f conftest.er1
6330   cat conftest.err >&5
6331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } >/dev/null && {
6333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6334          test ! -s conftest.err
6335        }; then
6336   ac_header_preproc=yes
6337 else
6338   $as_echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341   ac_header_preproc=no
6342 fi
6343
6344 rm -f conftest.err conftest.$ac_ext
6345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6346 $as_echo "$ac_header_preproc" >&6; }
6347
6348 # So?  What about this header?
6349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350   yes:no: )
6351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6355     ac_header_preproc=yes
6356     ;;
6357   no:yes:* )
6358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6361 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6365 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6370     ( cat <<\_ASBOX
6371 ## ----------------------------------- ##
6372 ## Report this to andreas@eversberg.eu ##
6373 ## ----------------------------------- ##
6374 _ASBOX
6375      ) | sed "s/^/$as_me: WARNING:     /" >&2
6376     ;;
6377 esac
6378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 $as_echo_n "checking for $ac_header... " >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381   $as_echo_n "(cached) " >&6
6382 else
6383   eval "$as_ac_Header=\$ac_header_preproc"
6384 fi
6385 ac_res=`eval 'as_val=${'$as_ac_Header'}
6386                  $as_echo "$as_val"'`
6387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389
6390 fi
6391 as_val=`eval 'as_val=${'$as_ac_Header'}
6392                  $as_echo "$as_val"'`
6393    if test "x$as_val" = x""yes; then
6394   cat >>confdefs.h <<_ACEOF
6395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 _ACEOF
6397
6398 fi
6399
6400 done
6401
6402        { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6403 $as_echo_n "checking for main in -lcrypto... " >&6; }
6404 if test "${ac_cv_lib_crypto_main+set}" = set; then
6405   $as_echo_n "(cached) " >&6
6406 else
6407   ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-lcrypto -lcrypto
6409                     $LIBS"
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416
6417
6418 int
6419 main ()
6420 {
6421 return main ();
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6428 case "(($ac_try" in
6429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430   *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434   (eval "$ac_link") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && {
6441          test -z "$ac_c_werror_flag" ||
6442          test ! -s conftest.err
6443        } && test -s conftest$ac_exeext && {
6444          test "$cross_compiling" = yes ||
6445          $as_test_x conftest$ac_exeext
6446        }; then
6447   ac_cv_lib_crypto_main=yes
6448 else
6449   $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452         ac_cv_lib_crypto_main=no
6453 fi
6454
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6457       conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6459 fi
6460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6461 $as_echo "$ac_cv_lib_crypto_main" >&6; }
6462 if test "x$ac_cv_lib_crypto_main" = x""yes; then
6463   LIBCRYPTO="-lcrypto"
6464
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_LIBCRYPTO 1
6468 _ACEOF
6469
6470
6471 else
6472   if test "x$with_ssl" != xcheck ; then
6473                       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6475 { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but test for libcrypto failed
6476 See \`config.log' for more details." >&5
6477 $as_echo "$as_me: error: --with-ssl was given, but test for libcrypto failed
6478 See \`config.log' for more details." >&2;}
6479    { (exit 1); exit 1; }; }; }
6480                      fi
6481
6482 fi
6483
6484
6485
6486 fi
6487
6488
6489 # check for gsm-bs
6490
6491 # Check whether --with-gsm-bs was given.
6492 if test "${with_gsm_bs+set}" = set; then
6493   withval=$with_gsm_bs;
6494 else
6495   with_gsm_bs="check"
6496 fi
6497
6498
6499 if test "x$with_gsm_bs" != xno; then
6500   { $as_echo "$as_me:$LINENO: checking openbsc/include/openbsc/gsm_data.h" >&5
6501 $as_echo_n "checking openbsc/include/openbsc/gsm_data.h... " >&6; }
6502        if test -e openbsc/include/openbsc/gsm_data.h; then
6503                 with_gsm_bs="yes"
6504                 { $as_echo "$as_me:$LINENO: result: yes" >&5
6505 $as_echo "yes" >&6; }
6506        elif test "x$with_gsm_bs" != xcheck ; then
6507                 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6509 { { $as_echo "$as_me:$LINENO: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Please link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6510 See \`config.log' for more details." >&5
6511 $as_echo "$as_me: error: --with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Please link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
6512 See \`config.log' for more details." >&2;}
6513    { (exit 1); exit 1; }; }; }
6514        else
6515                 { $as_echo "$as_me:$LINENO: result: no" >&5
6516 $as_echo "no" >&6; }
6517        fi
6518
6519 fi
6520
6521
6522  if test "x$with_gsm_bs" == "xyes" ; then
6523   ENABLE_GSM_BS_TRUE=
6524   ENABLE_GSM_BS_FALSE='#'
6525 else
6526   ENABLE_GSM_BS_TRUE='#'
6527   ENABLE_GSM_BS_FALSE=
6528 fi
6529
6530
6531 # check for gsm-ms
6532
6533 # Check whether --with-gsm-ms was given.
6534 if test "${with_gsm_ms+set}" = set; then
6535   withval=$with_gsm_ms;
6536 else
6537   with_gsm_ms="check"
6538 fi
6539
6540
6541 if test "x$with_gsm_ms" != xno; then
6542   { $as_echo "$as_me:$LINENO: checking layer23/include/osmocom/osmocom_data.h" >&5
6543 $as_echo_n "checking layer23/include/osmocom/osmocom_data.h... " >&6; }
6544        if test -e layer23/include/osmocom/osmocom_data.h; then
6545                 with_gsm_ms="yes"
6546                 { $as_echo "$as_me:$LINENO: result: yes" >&5
6547 $as_echo "yes" >&6; }
6548        elif test "x$with_gsm_ms" != xcheck ; then
6549                 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6551 { { $as_echo "$as_me:$LINENO: error: --with-gsm-ms was given, but layer23/include/osmocom/osmocom_data.h was not found! Please 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
6552 See \`config.log' for more details." >&5
6553 $as_echo "$as_me: error: --with-gsm-ms was given, but layer23/include/osmocom/osmocom_data.h was not found! Please 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
6554 See \`config.log' for more details." >&2;}
6555    { (exit 1); exit 1; }; }; }
6556        else
6557                 { $as_echo "$as_me:$LINENO: result: no" >&5
6558 $as_echo "no" >&6; }
6559        fi
6560
6561 fi
6562
6563
6564  if test "x$with_gsm_ms" == "xyes" ; then
6565   ENABLE_GSM_MS_TRUE=
6566   ENABLE_GSM_MS_FALSE='#'
6567 else
6568   ENABLE_GSM_MS_TRUE='#'
6569   ENABLE_GSM_MS_FALSE=
6570 fi
6571
6572
6573  if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
6574   ENABLE_GSM_TRUE=
6575   ENABLE_GSM_FALSE='#'
6576 else
6577   ENABLE_GSM_TRUE='#'
6578   ENABLE_GSM_FALSE=
6579 fi
6580
6581
6582 # check for ss5
6583
6584 # Check whether --with-ss5 was given.
6585 if test "${with_ss5+set}" = set; then
6586   withval=$with_ss5;
6587 else
6588   with_ss5="check"
6589 fi
6590
6591
6592  if test "x$with_ss5" == "xyes" ; then
6593   ENABLE_SS5_TRUE=
6594   ENABLE_SS5_FALSE='#'
6595 else
6596   ENABLE_SS5_TRUE='#'
6597   ENABLE_SS5_FALSE=
6598 fi
6599
6600
6601 # Checks for libraries.
6602
6603 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
6604 $as_echo_n "checking for main in -lm... " >&6; }
6605 if test "${ac_cv_lib_m_main+set}" = set; then
6606   $as_echo_n "(cached) " >&6
6607 else
6608   ac_check_lib_save_LIBS=$LIBS
6609 LIBS="-lm  $LIBS"
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616
6617
6618 int
6619 main ()
6620 {
6621 return main ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (ac_try="$ac_link"
6628 case "(($ac_try" in
6629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630   *) ac_try_echo=$ac_try;;
6631 esac
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634   (eval "$ac_link") 2>conftest.er1
6635   ac_status=$?
6636   grep -v '^ *+' conftest.er1 >conftest.err
6637   rm -f conftest.er1
6638   cat conftest.err >&5
6639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); } && {
6641          test -z "$ac_c_werror_flag" ||
6642          test ! -s conftest.err
6643        } && test -s conftest$ac_exeext && {
6644          test "$cross_compiling" = yes ||
6645          $as_test_x conftest$ac_exeext
6646        }; then
6647   ac_cv_lib_m_main=yes
6648 else
6649   $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652         ac_cv_lib_m_main=no
6653 fi
6654
6655 rm -rf conftest.dSYM
6656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657       conftest$ac_exeext conftest.$ac_ext
6658 LIBS=$ac_check_lib_save_LIBS
6659 fi
6660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6661 $as_echo "$ac_cv_lib_m_main" >&6; }
6662 if test "x$ac_cv_lib_m_main" = x""yes; then
6663   cat >>confdefs.h <<_ACEOF
6664 #define HAVE_LIBM 1
6665 _ACEOF
6666
6667   LIBS="-lm $LIBS"
6668
6669 fi
6670
6671
6672 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6673 $as_echo_n "checking for main in -lncurses... " >&6; }
6674 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6675   $as_echo_n "(cached) " >&6
6676 else
6677   ac_check_lib_save_LIBS=$LIBS
6678 LIBS="-lncurses  $LIBS"
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h.  */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h.  */
6685
6686
6687 int
6688 main ()
6689 {
6690 return main ();
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (ac_try="$ac_link"
6697 case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702 $as_echo "$ac_try_echo") >&5
6703   (eval "$ac_link") 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } && {
6710          test -z "$ac_c_werror_flag" ||
6711          test ! -s conftest.err
6712        } && test -s conftest$ac_exeext && {
6713          test "$cross_compiling" = yes ||
6714          $as_test_x conftest$ac_exeext
6715        }; then
6716   ac_cv_lib_ncurses_main=yes
6717 else
6718   $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721         ac_cv_lib_ncurses_main=no
6722 fi
6723
6724 rm -rf conftest.dSYM
6725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6726       conftest$ac_exeext conftest.$ac_ext
6727 LIBS=$ac_check_lib_save_LIBS
6728 fi
6729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6730 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
6731 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
6732   cat >>confdefs.h <<_ACEOF
6733 #define HAVE_LIBNCURSES 1
6734 _ACEOF
6735
6736   LIBS="-lncurses $LIBS"
6737
6738 fi
6739
6740
6741 { $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6742 $as_echo_n "checking for main in -lpthread... " >&6; }
6743 if test "${ac_cv_lib_pthread_main+set}" = set; then
6744   $as_echo_n "(cached) " >&6
6745 else
6746   ac_check_lib_save_LIBS=$LIBS
6747 LIBS="-lpthread  $LIBS"
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754
6755
6756 int
6757 main ()
6758 {
6759 return main ();
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (ac_try="$ac_link"
6766 case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772   (eval "$ac_link") 2>conftest.er1
6773   ac_status=$?
6774   grep -v '^ *+' conftest.er1 >conftest.err
6775   rm -f conftest.er1
6776   cat conftest.err >&5
6777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } && {
6779          test -z "$ac_c_werror_flag" ||
6780          test ! -s conftest.err
6781        } && test -s conftest$ac_exeext && {
6782          test "$cross_compiling" = yes ||
6783          $as_test_x conftest$ac_exeext
6784        }; then
6785   ac_cv_lib_pthread_main=yes
6786 else
6787   $as_echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790         ac_cv_lib_pthread_main=no
6791 fi
6792
6793 rm -rf conftest.dSYM
6794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6795       conftest$ac_exeext conftest.$ac_ext
6796 LIBS=$ac_check_lib_save_LIBS
6797 fi
6798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6799 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6800 if test "x$ac_cv_lib_pthread_main" = x""yes; then
6801   cat >>confdefs.h <<_ACEOF
6802 #define HAVE_LIBPTHREAD 1
6803 _ACEOF
6804
6805   LIBS="-lpthread $LIBS"
6806
6807 fi
6808
6809
6810 # Checks for header files.
6811
6812
6813
6814
6815
6816 ac_header_dirent=no
6817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6818   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6819 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6822   $as_echo_n "(cached) " >&6
6823 else
6824   cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830 #include <sys/types.h>
6831 #include <$ac_hdr>
6832
6833 int
6834 main ()
6835 {
6836 if ((DIR *) 0)
6837 return 0;
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6844 case "(($ac_try" in
6845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846   *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850   (eval "$ac_compile") 2>conftest.er1
6851   ac_status=$?
6852   grep -v '^ *+' conftest.er1 >conftest.err
6853   rm -f conftest.er1
6854   cat conftest.err >&5
6855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } && {
6857          test -z "$ac_c_werror_flag" ||
6858          test ! -s conftest.err
6859        } && test -s conftest.$ac_objext; then
6860   eval "$as_ac_Header=yes"
6861 else
6862   $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865         eval "$as_ac_Header=no"
6866 fi
6867
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 ac_res=`eval 'as_val=${'$as_ac_Header'}
6871                  $as_echo "$as_val"'`
6872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 as_val=`eval 'as_val=${'$as_ac_Header'}
6875                  $as_echo "$as_val"'`
6876    if test "x$as_val" = x""yes; then
6877   cat >>confdefs.h <<_ACEOF
6878 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6879 _ACEOF
6880
6881 ac_header_dirent=$ac_hdr; break
6882 fi
6883
6884 done
6885 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6886 if test $ac_header_dirent = dirent.h; then
6887   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6888 $as_echo_n "checking for library containing opendir... " >&6; }
6889 if test "${ac_cv_search_opendir+set}" = set; then
6890   $as_echo_n "(cached) " >&6
6891 else
6892   ac_func_search_save_LIBS=$LIBS
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899
6900 /* Override any GCC internal prototype to avoid an error.
6901    Use char because int might match the return type of a GCC
6902    builtin and then its argument prototype would still apply.  */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 char opendir ();
6907 int
6908 main ()
6909 {
6910 return opendir ();
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 for ac_lib in '' dir; do
6916   if test -z "$ac_lib"; then
6917     ac_res="none required"
6918   else
6919     ac_res=-l$ac_lib
6920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6921   fi
6922   rm -f conftest.$ac_objext conftest$ac_exeext
6923 if { (ac_try="$ac_link"
6924 case "(($ac_try" in
6925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926   *) ac_try_echo=$ac_try;;
6927 esac
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930   (eval "$ac_link") 2>conftest.er1
6931   ac_status=$?
6932   grep -v '^ *+' conftest.er1 >conftest.err
6933   rm -f conftest.er1
6934   cat conftest.err >&5
6935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); } && {
6937          test -z "$ac_c_werror_flag" ||
6938          test ! -s conftest.err
6939        } && test -s conftest$ac_exeext && {
6940          test "$cross_compiling" = yes ||
6941          $as_test_x conftest$ac_exeext
6942        }; then
6943   ac_cv_search_opendir=$ac_res
6944 else
6945   $as_echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948
6949 fi
6950
6951 rm -rf conftest.dSYM
6952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6953       conftest$ac_exeext
6954   if test "${ac_cv_search_opendir+set}" = set; then
6955   break
6956 fi
6957 done
6958 if test "${ac_cv_search_opendir+set}" = set; then
6959   :
6960 else
6961   ac_cv_search_opendir=no
6962 fi
6963 rm conftest.$ac_ext
6964 LIBS=$ac_func_search_save_LIBS
6965 fi
6966 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6967 $as_echo "$ac_cv_search_opendir" >&6; }
6968 ac_res=$ac_cv_search_opendir
6969 if test "$ac_res" != no; then
6970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6971
6972 fi
6973
6974 else
6975   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6976 $as_echo_n "checking for library containing opendir... " >&6; }
6977 if test "${ac_cv_search_opendir+set}" = set; then
6978   $as_echo_n "(cached) " >&6
6979 else
6980   ac_func_search_save_LIBS=$LIBS
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987
6988 /* Override any GCC internal prototype to avoid an error.
6989    Use char because int might match the return type of a GCC
6990    builtin and then its argument prototype would still apply.  */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 char opendir ();
6995 int
6996 main ()
6997 {
6998 return opendir ();
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 for ac_lib in '' x; do
7004   if test -z "$ac_lib"; then
7005     ac_res="none required"
7006   else
7007     ac_res=-l$ac_lib
7008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7009   fi
7010   rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (ac_try="$ac_link"
7012 case "(($ac_try" in
7013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014   *) ac_try_echo=$ac_try;;
7015 esac
7016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018   (eval "$ac_link") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } && {
7025          test -z "$ac_c_werror_flag" ||
7026          test ! -s conftest.err
7027        } && test -s conftest$ac_exeext && {
7028          test "$cross_compiling" = yes ||
7029          $as_test_x conftest$ac_exeext
7030        }; then
7031   ac_cv_search_opendir=$ac_res
7032 else
7033   $as_echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036
7037 fi
7038
7039 rm -rf conftest.dSYM
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041       conftest$ac_exeext
7042   if test "${ac_cv_search_opendir+set}" = set; then
7043   break
7044 fi
7045 done
7046 if test "${ac_cv_search_opendir+set}" = set; then
7047   :
7048 else
7049   ac_cv_search_opendir=no
7050 fi
7051 rm conftest.$ac_ext
7052 LIBS=$ac_func_search_save_LIBS
7053 fi
7054 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7055 $as_echo "$ac_cv_search_opendir" >&6; }
7056 ac_res=$ac_cv_search_opendir
7057 if test "$ac_res" != no; then
7058   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7059
7060 fi
7061
7062 fi
7063
7064 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7065 $as_echo_n "checking for ANSI C header files... " >&6; }
7066 if test "${ac_cv_header_stdc+set}" = set; then
7067   $as_echo_n "(cached) " >&6
7068 else
7069   cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 #include <stdlib.h>
7076 #include <stdarg.h>
7077 #include <string.h>
7078 #include <float.h>
7079
7080 int
7081 main ()
7082 {
7083
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (ac_try="$ac_compile"
7090 case "(($ac_try" in
7091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092   *) ac_try_echo=$ac_try;;
7093 esac
7094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7095 $as_echo "$ac_try_echo") >&5
7096   (eval "$ac_compile") 2>conftest.er1
7097   ac_status=$?
7098   grep -v '^ *+' conftest.er1 >conftest.err
7099   rm -f conftest.er1
7100   cat conftest.err >&5
7101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); } && {
7103          test -z "$ac_c_werror_flag" ||
7104          test ! -s conftest.err
7105        } && test -s conftest.$ac_objext; then
7106   ac_cv_header_stdc=yes
7107 else
7108   $as_echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111         ac_cv_header_stdc=no
7112 fi
7113
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115
7116 if test $ac_cv_header_stdc = yes; then
7117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <string.h>
7125
7126 _ACEOF
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128   $EGREP "memchr" >/dev/null 2>&1; then
7129   :
7130 else
7131   ac_cv_header_stdc=no
7132 fi
7133 rm -f conftest*
7134
7135 fi
7136
7137 if test $ac_cv_header_stdc = yes; then
7138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7139   cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145 #include <stdlib.h>
7146
7147 _ACEOF
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149   $EGREP "free" >/dev/null 2>&1; then
7150   :
7151 else
7152   ac_cv_header_stdc=no
7153 fi
7154 rm -f conftest*
7155
7156 fi
7157
7158 if test $ac_cv_header_stdc = yes; then
7159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7160   if test "$cross_compiling" = yes; then
7161   :
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 #include <ctype.h>
7170 #include <stdlib.h>
7171 #if ((' ' & 0x0FF) == 0x020)
7172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7174 #else
7175 # define ISLOWER(c) \
7176                    (('a' <= (c) && (c) <= 'i') \
7177                      || ('j' <= (c) && (c) <= 'r') \
7178                      || ('s' <= (c) && (c) <= 'z'))
7179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7180 #endif
7181
7182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7183 int
7184 main ()
7185 {
7186   int i;
7187   for (i = 0; i < 256; i++)
7188     if (XOR (islower (i), ISLOWER (i))
7189         || toupper (i) != TOUPPER (i))
7190       return 2;
7191   return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest$ac_exeext
7195 if { (ac_try="$ac_link"
7196 case "(($ac_try" in
7197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198   *) ac_try_echo=$ac_try;;
7199 esac
7200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7201 $as_echo "$ac_try_echo") >&5
7202   (eval "$ac_link") 2>&5
7203   ac_status=$?
7204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7206   { (case "(($ac_try" in
7207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208   *) ac_try_echo=$ac_try;;
7209 esac
7210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7211 $as_echo "$ac_try_echo") >&5
7212   (eval "$ac_try") 2>&5
7213   ac_status=$?
7214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; }; then
7216   :
7217 else
7218   $as_echo "$as_me: program exited with status $ac_status" >&5
7219 $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 ( exit $ac_status )
7223 ac_cv_header_stdc=no
7224 fi
7225 rm -rf conftest.dSYM
7226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7227 fi
7228
7229
7230 fi
7231 fi
7232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7233 $as_echo "$ac_cv_header_stdc" >&6; }
7234 if test $ac_cv_header_stdc = yes; then
7235
7236 cat >>confdefs.h <<\_ACEOF
7237 #define STDC_HEADERS 1
7238 _ACEOF
7239
7240 fi
7241
7242 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7243 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7244 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7245   $as_echo_n "(cached) " >&6
7246 else
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <sys/types.h>
7254 #include <sys/wait.h>
7255 #ifndef WEXITSTATUS
7256 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7257 #endif
7258 #ifndef WIFEXITED
7259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7260 #endif
7261
7262 int
7263 main ()
7264 {
7265   int s;
7266   wait (&s);
7267   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276   *) ac_try_echo=$ac_try;;
7277 esac
7278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280   (eval "$ac_compile") 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } && {
7287          test -z "$ac_c_werror_flag" ||
7288          test ! -s conftest.err
7289        } && test -s conftest.$ac_objext; then
7290   ac_cv_header_sys_wait_h=yes
7291 else
7292   $as_echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295         ac_cv_header_sys_wait_h=no
7296 fi
7297
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7301 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7302 if test $ac_cv_header_sys_wait_h = yes; then
7303
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_SYS_WAIT_H 1
7306 _ACEOF
7307
7308 fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 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
7324 do
7325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7328 $as_echo_n "checking for $ac_header... " >&6; }
7329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7330   $as_echo_n "(cached) " >&6
7331 fi
7332 ac_res=`eval 'as_val=${'$as_ac_Header'}
7333                  $as_echo "$as_val"'`
7334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7335 $as_echo "$ac_res" >&6; }
7336 else
7337   # Is the header compilable?
7338 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7339 $as_echo_n "checking $ac_header usability... " >&6; }
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 $ac_includes_default
7347 #include <$ac_header>
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353   *) ac_try_echo=$ac_try;;
7354 esac
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   ac_header_compiler=yes
7368 else
7369   $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         ac_header_compiler=no
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7377 $as_echo "$ac_header_compiler" >&6; }
7378
7379 # Is the header present?
7380 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7381 $as_echo_n "checking $ac_header presence... " >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #include <$ac_header>
7389 _ACEOF
7390 if { (ac_try="$ac_cpp conftest.$ac_ext"
7391 case "(($ac_try" in
7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393   *) ac_try_echo=$ac_try;;
7394 esac
7395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7396 $as_echo "$ac_try_echo") >&5
7397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } >/dev/null && {
7404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7405          test ! -s conftest.err
7406        }; then
7407   ac_header_preproc=yes
7408 else
7409   $as_echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412   ac_header_preproc=no
7413 fi
7414
7415 rm -f conftest.err conftest.$ac_ext
7416 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7417 $as_echo "$ac_header_preproc" >&6; }
7418
7419 # So?  What about this header?
7420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7421   yes:no: )
7422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7423 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7426     ac_header_preproc=yes
7427     ;;
7428   no:yes:* )
7429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7432 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7434 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7436 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7440 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7441     ( cat <<\_ASBOX
7442 ## ----------------------------------- ##
7443 ## Report this to andreas@eversberg.eu ##
7444 ## ----------------------------------- ##
7445 _ASBOX
7446      ) | sed "s/^/$as_me: WARNING:     /" >&2
7447     ;;
7448 esac
7449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7450 $as_echo_n "checking for $ac_header... " >&6; }
7451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7452   $as_echo_n "(cached) " >&6
7453 else
7454   eval "$as_ac_Header=\$ac_header_preproc"
7455 fi
7456 ac_res=`eval 'as_val=${'$as_ac_Header'}
7457                  $as_echo "$as_val"'`
7458                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7459 $as_echo "$ac_res" >&6; }
7460
7461 fi
7462 as_val=`eval 'as_val=${'$as_ac_Header'}
7463                  $as_echo "$as_val"'`
7464    if test "x$as_val" = x""yes; then
7465   cat >>confdefs.h <<_ACEOF
7466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 _ACEOF
7468
7469 fi
7470
7471 done
7472
7473
7474 # Checks for typedefs, structures, and compiler characteristics.
7475 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7476 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7477 if test "${ac_cv_header_stdbool_h+set}" = set; then
7478   $as_echo_n "(cached) " >&6
7479 else
7480   cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h.  */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h.  */
7486
7487 #include <stdbool.h>
7488 #ifndef bool
7489  "error: bool is not defined"
7490 #endif
7491 #ifndef false
7492  "error: false is not defined"
7493 #endif
7494 #if false
7495  "error: false is not 0"
7496 #endif
7497 #ifndef true
7498  "error: true is not defined"
7499 #endif
7500 #if true != 1
7501  "error: true is not 1"
7502 #endif
7503 #ifndef __bool_true_false_are_defined
7504  "error: __bool_true_false_are_defined is not defined"
7505 #endif
7506
7507         struct s { _Bool s: 1; _Bool t; } s;
7508
7509         char a[true == 1 ? 1 : -1];
7510         char b[false == 0 ? 1 : -1];
7511         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7512         char d[(bool) 0.5 == true ? 1 : -1];
7513         bool e = &s;
7514         char f[(_Bool) 0.0 == false ? 1 : -1];
7515         char g[true];
7516         char h[sizeof (_Bool)];
7517         char i[sizeof s.t];
7518         enum { j = false, k = true, l = false * true, m = true * 256 };
7519         /* The following fails for
7520            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7521         _Bool n[m];
7522         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7523         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7524 #       if defined __xlc__ || defined __GNUC__
7525          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7526             reported by James Lemley on 2005-10-05; see
7527             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7528             This test is not quite right, since xlc is allowed to
7529             reject this program, as the initializer for xlcbug is
7530             not one of the forms that C requires support for.
7531             However, doing the test right would require a runtime
7532             test, and that would make cross-compilation harder.
7533             Let us hope that IBM fixes the xlc bug, and also adds
7534             support for this kind of constant expression.  In the
7535             meantime, this test will reject xlc, which is OK, since
7536             our stdbool.h substitute should suffice.  We also test
7537             this with GCC, where it should work, to detect more
7538             quickly whether someone messes up the test in the
7539             future.  */
7540          char digs[] = "0123456789";
7541          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7542 #       endif
7543         /* Catch a bug in an HP-UX C compiler.  See
7544            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7545            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7546          */
7547         _Bool q = true;
7548         _Bool *pq = &q;
7549
7550 int
7551 main ()
7552 {
7553
7554         *pq |= q;
7555         *pq |= ! q;
7556         /* Refer to every declared value, to avoid compiler optimizations.  */
7557         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7558                 + !m + !n + !o + !p + !q + !pq);
7559
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7566 case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572   (eval "$ac_compile") 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } && {
7579          test -z "$ac_c_werror_flag" ||
7580          test ! -s conftest.err
7581        } && test -s conftest.$ac_objext; then
7582   ac_cv_header_stdbool_h=yes
7583 else
7584   $as_echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587         ac_cv_header_stdbool_h=no
7588 fi
7589
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 fi
7592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7593 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7594 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7595 $as_echo_n "checking for _Bool... " >&6; }
7596 if test "${ac_cv_type__Bool+set}" = set; then
7597   $as_echo_n "(cached) " >&6
7598 else
7599   ac_cv_type__Bool=no
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606 $ac_includes_default
7607 int
7608 main ()
7609 {
7610 if (sizeof (_Bool))
7611        return 0;
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7618 case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7623 $as_echo "$ac_try_echo") >&5
7624   (eval "$ac_compile") 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } && {
7631          test -z "$ac_c_werror_flag" ||
7632          test ! -s conftest.err
7633        } && test -s conftest.$ac_objext; then
7634   cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 $ac_includes_default
7641 int
7642 main ()
7643 {
7644 if (sizeof ((_Bool)))
7645           return 0;
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (ac_try="$ac_compile"
7652 case "(($ac_try" in
7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654   *) ac_try_echo=$ac_try;;
7655 esac
7656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7657 $as_echo "$ac_try_echo") >&5
7658   (eval "$ac_compile") 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } && {
7665          test -z "$ac_c_werror_flag" ||
7666          test ! -s conftest.err
7667        } && test -s conftest.$ac_objext; then
7668   :
7669 else
7670   $as_echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673         ac_cv_type__Bool=yes
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 else
7678   $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7687 $as_echo "$ac_cv_type__Bool" >&6; }
7688 if test "x$ac_cv_type__Bool" = x""yes; then
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE__BOOL 1
7692 _ACEOF
7693
7694
7695 fi
7696
7697 if test $ac_cv_header_stdbool_h = yes; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_STDBOOL_H 1
7701 _ACEOF
7702
7703 fi
7704
7705 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7706 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7707 if test "${ac_cv_c_const+set}" = set; then
7708   $as_echo_n "(cached) " >&6
7709 else
7710   cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h.  */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h.  */
7716
7717 int
7718 main ()
7719 {
7720 /* FIXME: Include the comments suggested by Paul. */
7721 #ifndef __cplusplus
7722   /* Ultrix mips cc rejects this.  */
7723   typedef int charset[2];
7724   const charset cs;
7725   /* SunOS 4.1.1 cc rejects this.  */
7726   char const *const *pcpcc;
7727   char **ppc;
7728   /* NEC SVR4.0.2 mips cc rejects this.  */
7729   struct point {int x, y;};
7730   static struct point const zero = {0,0};
7731   /* AIX XL C 1.02.0.0 rejects this.
7732      It does not let you subtract one const X* pointer from another in
7733      an arm of an if-expression whose if-part is not a constant
7734      expression */
7735   const char *g = "string";
7736   pcpcc = &g + (g ? g-g : 0);
7737   /* HPUX 7.0 cc rejects these. */
7738   ++pcpcc;
7739   ppc = (char**) pcpcc;
7740   pcpcc = (char const *const *) ppc;
7741   { /* SCO 3.2v4 cc rejects this.  */
7742     char *t;
7743     char const *s = 0 ? (char *) 0 : (char const *) 0;
7744
7745     *t++ = 0;
7746     if (s) return 0;
7747   }
7748   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7749     int x[] = {25, 17};
7750     const int *foo = &x[0];
7751     ++foo;
7752   }
7753   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7754     typedef const int *iptr;
7755     iptr p = 0;
7756     ++p;
7757   }
7758   { /* AIX XL C 1.02.0.0 rejects this saying
7759        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7760     struct s { int j; const int *ap[3]; };
7761     struct s *b; b->j = 5;
7762   }
7763   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7764     const int foo = 10;
7765     if (!foo) return 0;
7766   }
7767   return !cs[0] && !zero.x;
7768 #endif
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778   *) ac_try_echo=$ac_try;;
7779 esac
7780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7781 $as_echo "$ac_try_echo") >&5
7782   (eval "$ac_compile") 2>conftest.er1
7783   ac_status=$?
7784   grep -v '^ *+' conftest.er1 >conftest.err
7785   rm -f conftest.er1
7786   cat conftest.err >&5
7787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); } && {
7789          test -z "$ac_c_werror_flag" ||
7790          test ! -s conftest.err
7791        } && test -s conftest.$ac_objext; then
7792   ac_cv_c_const=yes
7793 else
7794   $as_echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797         ac_cv_c_const=no
7798 fi
7799
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7803 $as_echo "$ac_cv_c_const" >&6; }
7804 if test $ac_cv_c_const = no; then
7805
7806 cat >>confdefs.h <<\_ACEOF
7807 #define const /**/
7808 _ACEOF
7809
7810 fi
7811
7812 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7813 $as_echo_n "checking for inline... " >&6; }
7814 if test "${ac_cv_c_inline+set}" = set; then
7815   $as_echo_n "(cached) " >&6
7816 else
7817   ac_cv_c_inline=no
7818 for ac_kw in inline __inline__ __inline; do
7819   cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h.  */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h.  */
7825 #ifndef __cplusplus
7826 typedef int foo_t;
7827 static $ac_kw foo_t static_foo () {return 0; }
7828 $ac_kw foo_t foo () {return 0; }
7829 #endif
7830
7831 _ACEOF
7832 rm -f conftest.$ac_objext
7833 if { (ac_try="$ac_compile"
7834 case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840   (eval "$ac_compile") 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } && {
7847          test -z "$ac_c_werror_flag" ||
7848          test ! -s conftest.err
7849        } && test -s conftest.$ac_objext; then
7850   ac_cv_c_inline=$ac_kw
7851 else
7852   $as_echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855
7856 fi
7857
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859   test "$ac_cv_c_inline" != no && break
7860 done
7861
7862 fi
7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7864 $as_echo "$ac_cv_c_inline" >&6; }
7865
7866
7867 case $ac_cv_c_inline in
7868   inline | yes) ;;
7869   *)
7870     case $ac_cv_c_inline in
7871       no) ac_val=;;
7872       *) ac_val=$ac_cv_c_inline;;
7873     esac
7874     cat >>confdefs.h <<_ACEOF
7875 #ifndef __cplusplus
7876 #define inline $ac_val
7877 #endif
7878 _ACEOF
7879     ;;
7880 esac
7881
7882 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7883 $as_echo_n "checking for pid_t... " >&6; }
7884 if test "${ac_cv_type_pid_t+set}" = set; then
7885   $as_echo_n "(cached) " >&6
7886 else
7887   ac_cv_type_pid_t=no
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894 $ac_includes_default
7895 int
7896 main ()
7897 {
7898 if (sizeof (pid_t))
7899        return 0;
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (ac_try="$ac_compile"
7906 case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7911 $as_echo "$ac_try_echo") >&5
7912   (eval "$ac_compile") 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } && {
7919          test -z "$ac_c_werror_flag" ||
7920          test ! -s conftest.err
7921        } && test -s conftest.$ac_objext; then
7922   cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928 $ac_includes_default
7929 int
7930 main ()
7931 {
7932 if (sizeof ((pid_t)))
7933           return 0;
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942   *) ac_try_echo=$ac_try;;
7943 esac
7944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7945 $as_echo "$ac_try_echo") >&5
7946   (eval "$ac_compile") 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } && {
7953          test -z "$ac_c_werror_flag" ||
7954          test ! -s conftest.err
7955        } && test -s conftest.$ac_objext; then
7956   :
7957 else
7958   $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961         ac_cv_type_pid_t=yes
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 else
7966   $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969
7970 fi
7971
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 fi
7974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7975 $as_echo "$ac_cv_type_pid_t" >&6; }
7976 if test "x$ac_cv_type_pid_t" = x""yes; then
7977   :
7978 else
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define pid_t int
7982 _ACEOF
7983
7984 fi
7985
7986 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7987 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7988 if test "${ac_cv_header_time+set}" = set; then
7989   $as_echo_n "(cached) " >&6
7990 else
7991   cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 #include <sys/types.h>
7998 #include <sys/time.h>
7999 #include <time.h>
8000
8001 int
8002 main ()
8003 {
8004 if ((struct tm *) 0)
8005 return 0;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014   *) ac_try_echo=$ac_try;;
8015 esac
8016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017 $as_echo "$ac_try_echo") >&5
8018   (eval "$ac_compile") 2>conftest.er1
8019   ac_status=$?
8020   grep -v '^ *+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } && {
8025          test -z "$ac_c_werror_flag" ||
8026          test ! -s conftest.err
8027        } && test -s conftest.$ac_objext; then
8028   ac_cv_header_time=yes
8029 else
8030   $as_echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033         ac_cv_header_time=no
8034 fi
8035
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 fi
8038 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8039 $as_echo "$ac_cv_header_time" >&6; }
8040 if test $ac_cv_header_time = yes; then
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define TIME_WITH_SYS_TIME 1
8044 _ACEOF
8045
8046 fi
8047
8048 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8049 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8050 if test "${ac_cv_struct_tm+set}" = set; then
8051   $as_echo_n "(cached) " >&6
8052 else
8053   cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059 #include <sys/types.h>
8060 #include <time.h>
8061
8062 int
8063 main ()
8064 {
8065 struct tm tm;
8066                                      int *p = &tm.tm_sec;
8067                                      return !p;
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8074 case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8079 $as_echo "$ac_try_echo") >&5
8080   (eval "$ac_compile") 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } && {
8087          test -z "$ac_c_werror_flag" ||
8088          test ! -s conftest.err
8089        } && test -s conftest.$ac_objext; then
8090   ac_cv_struct_tm=time.h
8091 else
8092   $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095         ac_cv_struct_tm=sys/time.h
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8101 $as_echo "$ac_cv_struct_tm" >&6; }
8102 if test $ac_cv_struct_tm = sys/time.h; then
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define TM_IN_SYS_TIME 1
8106 _ACEOF
8107
8108 fi
8109
8110
8111 # Checks for library functions.
8112
8113 for ac_header in vfork.h
8114 do
8115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 $as_echo_n "checking for $ac_header... " >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120   $as_echo_n "(cached) " >&6
8121 fi
8122 ac_res=`eval 'as_val=${'$as_ac_Header'}
8123                  $as_echo "$as_val"'`
8124                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8125 $as_echo "$ac_res" >&6; }
8126 else
8127   # Is the header compilable?
8128 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8129 $as_echo_n "checking $ac_header usability... " >&6; }
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 $ac_includes_default
8137 #include <$ac_header>
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143   *) ac_try_echo=$ac_try;;
8144 esac
8145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8146 $as_echo "$ac_try_echo") >&5
8147   (eval "$ac_compile") 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } && {
8154          test -z "$ac_c_werror_flag" ||
8155          test ! -s conftest.err
8156        } && test -s conftest.$ac_objext; then
8157   ac_header_compiler=yes
8158 else
8159   $as_echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162         ac_header_compiler=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 $as_echo "$ac_header_compiler" >&6; }
8168
8169 # Is the header present?
8170 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 $as_echo_n "checking $ac_header presence... " >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <$ac_header>
8179 _ACEOF
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } >/dev/null && {
8194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8195          test ! -s conftest.err
8196        }; then
8197   ac_header_preproc=yes
8198 else
8199   $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202   ac_header_preproc=no
8203 fi
8204
8205 rm -f conftest.err conftest.$ac_ext
8206 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8207 $as_echo "$ac_header_preproc" >&6; }
8208
8209 # So?  What about this header?
8210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8211   yes:no: )
8212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8213 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8215 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8216     ac_header_preproc=yes
8217     ;;
8218   no:yes:* )
8219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8220 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8222 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8224 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8226 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8230 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8231     ( cat <<\_ASBOX
8232 ## ----------------------------------- ##
8233 ## Report this to andreas@eversberg.eu ##
8234 ## ----------------------------------- ##
8235 _ASBOX
8236      ) | sed "s/^/$as_me: WARNING:     /" >&2
8237     ;;
8238 esac
8239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8240 $as_echo_n "checking for $ac_header... " >&6; }
8241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8242   $as_echo_n "(cached) " >&6
8243 else
8244   eval "$as_ac_Header=\$ac_header_preproc"
8245 fi
8246 ac_res=`eval 'as_val=${'$as_ac_Header'}
8247                  $as_echo "$as_val"'`
8248                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8249 $as_echo "$ac_res" >&6; }
8250
8251 fi
8252 as_val=`eval 'as_val=${'$as_ac_Header'}
8253                  $as_echo "$as_val"'`
8254    if test "x$as_val" = x""yes; then
8255   cat >>confdefs.h <<_ACEOF
8256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8257 _ACEOF
8258
8259 fi
8260
8261 done
8262
8263
8264
8265 for ac_func in fork vfork
8266 do
8267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8269 $as_echo_n "checking for $ac_func... " >&6; }
8270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8271   $as_echo_n "(cached) " >&6
8272 else
8273   cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8281 #define $ac_func innocuous_$ac_func
8282
8283 /* System header to define __stub macros and hopefully few prototypes,
8284     which can conflict with char $ac_func (); below.
8285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286     <limits.h> exists even on freestanding compilers.  */
8287
8288 #ifdef __STDC__
8289 # include <limits.h>
8290 #else
8291 # include <assert.h>
8292 #endif
8293
8294 #undef $ac_func
8295
8296 /* Override any GCC internal prototype to avoid an error.
8297    Use char because int might match the return type of a GCC
8298    builtin and then its argument prototype would still apply.  */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char $ac_func ();
8303 /* The GNU C library defines this for functions which it implements
8304     to always fail with ENOSYS.  Some functions are actually named
8305     something starting with __ and the normal name is an alias.  */
8306 #if defined __stub_$ac_func || defined __stub___$ac_func
8307 choke me
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 return $ac_func ();
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (ac_try="$ac_link"
8320 case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326   (eval "$ac_link") 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } && {
8333          test -z "$ac_c_werror_flag" ||
8334          test ! -s conftest.err
8335        } && test -s conftest$ac_exeext && {
8336          test "$cross_compiling" = yes ||
8337          $as_test_x conftest$ac_exeext
8338        }; then
8339   eval "$as_ac_var=yes"
8340 else
8341   $as_echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344         eval "$as_ac_var=no"
8345 fi
8346
8347 rm -rf conftest.dSYM
8348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8349       conftest$ac_exeext conftest.$ac_ext
8350 fi
8351 ac_res=`eval 'as_val=${'$as_ac_var'}
8352                  $as_echo "$as_val"'`
8353                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8354 $as_echo "$ac_res" >&6; }
8355 as_val=`eval 'as_val=${'$as_ac_var'}
8356                  $as_echo "$as_val"'`
8357    if test "x$as_val" = x""yes; then
8358   cat >>confdefs.h <<_ACEOF
8359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360 _ACEOF
8361
8362 fi
8363 done
8364
8365 if test "x$ac_cv_func_fork" = xyes; then
8366   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8367 $as_echo_n "checking for working fork... " >&6; }
8368 if test "${ac_cv_func_fork_works+set}" = set; then
8369   $as_echo_n "(cached) " >&6
8370 else
8371   if test "$cross_compiling" = yes; then
8372   ac_cv_func_fork_works=cross
8373 else
8374   cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 $ac_includes_default
8381 int
8382 main ()
8383 {
8384
8385           /* By Ruediger Kuhlmann. */
8386           return fork () < 0;
8387
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399 $as_echo "$ac_try_echo") >&5
8400   (eval "$ac_link") 2>&5
8401   ac_status=$?
8402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8404   { (case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410   (eval "$ac_try") 2>&5
8411   ac_status=$?
8412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_cv_func_fork_works=yes
8415 else
8416   $as_echo "$as_me: program exited with status $ac_status" >&5
8417 $as_echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ( exit $ac_status )
8421 ac_cv_func_fork_works=no
8422 fi
8423 rm -rf conftest.dSYM
8424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8425 fi
8426
8427
8428 fi
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8430 $as_echo "$ac_cv_func_fork_works" >&6; }
8431
8432 else
8433   ac_cv_func_fork_works=$ac_cv_func_fork
8434 fi
8435 if test "x$ac_cv_func_fork_works" = xcross; then
8436   case $host in
8437     *-*-amigaos* | *-*-msdosdjgpp*)
8438       # Override, as these systems have only a dummy fork() stub
8439       ac_cv_func_fork_works=no
8440       ;;
8441     *)
8442       ac_cv_func_fork_works=yes
8443       ;;
8444   esac
8445   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8447 fi
8448 ac_cv_func_vfork_works=$ac_cv_func_vfork
8449 if test "x$ac_cv_func_vfork" = xyes; then
8450   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8451 $as_echo_n "checking for working vfork... " >&6; }
8452 if test "${ac_cv_func_vfork_works+set}" = set; then
8453   $as_echo_n "(cached) " >&6
8454 else
8455   if test "$cross_compiling" = yes; then
8456   ac_cv_func_vfork_works=cross
8457 else
8458   cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464 /* Thanks to Paul Eggert for this test.  */
8465 $ac_includes_default
8466 #include <sys/wait.h>
8467 #ifdef HAVE_VFORK_H
8468 # include <vfork.h>
8469 #endif
8470 /* On some sparc systems, changes by the child to local and incoming
8471    argument registers are propagated back to the parent.  The compiler
8472    is told about this with #include <vfork.h>, but some compilers
8473    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8474    static variable whose address is put into a register that is
8475    clobbered by the vfork.  */
8476 static void
8477 #ifdef __cplusplus
8478 sparc_address_test (int arg)
8479 # else
8480 sparc_address_test (arg) int arg;
8481 #endif
8482 {
8483   static pid_t child;
8484   if (!child) {
8485     child = vfork ();
8486     if (child < 0) {
8487       perror ("vfork");
8488       _exit(2);
8489     }
8490     if (!child) {
8491       arg = getpid();
8492       write(-1, "", 0);
8493       _exit (arg);
8494     }
8495   }
8496 }
8497
8498 int
8499 main ()
8500 {
8501   pid_t parent = getpid ();
8502   pid_t child;
8503
8504   sparc_address_test (0);
8505
8506   child = vfork ();
8507
8508   if (child == 0) {
8509     /* Here is another test for sparc vfork register problems.  This
8510        test uses lots of local variables, at least as many local
8511        variables as main has allocated so far including compiler
8512        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8513        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8514        reuse the register of parent for one of the local variables,
8515        since it will think that parent can't possibly be used any more
8516        in this routine.  Assigning to the local variable will thus
8517        munge parent in the parent process.  */
8518     pid_t
8519       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8520       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8521     /* Convince the compiler that p..p7 are live; otherwise, it might
8522        use the same hardware register for all 8 local variables.  */
8523     if (p != p1 || p != p2 || p != p3 || p != p4
8524         || p != p5 || p != p6 || p != p7)
8525       _exit(1);
8526
8527     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8528        from child file descriptors.  If the child closes a descriptor
8529        before it execs or exits, this munges the parent's descriptor
8530        as well.  Test for this by closing stdout in the child.  */
8531     _exit(close(fileno(stdout)) != 0);
8532   } else {
8533     int status;
8534     struct stat st;
8535
8536     while (wait(&status) != child)
8537       ;
8538     return (
8539          /* Was there some problem with vforking?  */
8540          child < 0
8541
8542          /* Did the child fail?  (This shouldn't happen.)  */
8543          || status
8544
8545          /* Did the vfork/compiler bug occur?  */
8546          || parent != getpid()
8547
8548          /* Did the file descriptor bug occur?  */
8549          || fstat(fileno(stdout), &st) != 0
8550          );
8551   }
8552 }
8553 _ACEOF
8554 rm -f conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562   (eval "$ac_link") 2>&5
8563   ac_status=$?
8564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8566   { (case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572   (eval "$ac_try") 2>&5
8573   ac_status=$?
8574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; }; then
8576   ac_cv_func_vfork_works=yes
8577 else
8578   $as_echo "$as_me: program exited with status $ac_status" >&5
8579 $as_echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 ( exit $ac_status )
8583 ac_cv_func_vfork_works=no
8584 fi
8585 rm -rf conftest.dSYM
8586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8587 fi
8588
8589
8590 fi
8591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8592 $as_echo "$ac_cv_func_vfork_works" >&6; }
8593
8594 fi;
8595 if test "x$ac_cv_func_fork_works" = xcross; then
8596   ac_cv_func_vfork_works=$ac_cv_func_vfork
8597   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8598 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8599 fi
8600
8601 if test "x$ac_cv_func_vfork_works" = xyes; then
8602
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_WORKING_VFORK 1
8605 _ACEOF
8606
8607 else
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define vfork fork
8611 _ACEOF
8612
8613 fi
8614 if test "x$ac_cv_func_fork_works" = xyes; then
8615
8616 cat >>confdefs.h <<\_ACEOF
8617 #define HAVE_WORKING_FORK 1
8618 _ACEOF
8619
8620 fi
8621
8622 if test $ac_cv_c_compiler_gnu = yes; then
8623     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8624 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
8625 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8626   $as_echo_n "(cached) " >&6
8627 else
8628     ac_pattern="Autoconf.*'x'"
8629   cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 #include <sgtty.h>
8636 Autoconf TIOCGETP
8637 _ACEOF
8638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8639   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8640   ac_cv_prog_gcc_traditional=yes
8641 else
8642   ac_cv_prog_gcc_traditional=no
8643 fi
8644 rm -f conftest*
8645
8646
8647   if test $ac_cv_prog_gcc_traditional = no; then
8648     cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h.  */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h.  */
8654 #include <termio.h>
8655 Autoconf TCGETA
8656 _ACEOF
8657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8658   $EGREP "$ac_pattern" >/dev/null 2>&1; then
8659   ac_cv_prog_gcc_traditional=yes
8660 fi
8661 rm -f conftest*
8662
8663   fi
8664 fi
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8666 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8667   if test $ac_cv_prog_gcc_traditional = yes; then
8668     CC="$CC -traditional"
8669   fi
8670 fi
8671
8672 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8673 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8674 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8675   $as_echo_n "(cached) " >&6
8676 else
8677   rm -f conftest.sym conftest.file
8678 echo >conftest.file
8679 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8680   if test "$cross_compiling" = yes; then
8681   ac_cv_func_lstat_dereferences_slashed_symlink=no
8682 else
8683   cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689 $ac_includes_default
8690 int
8691 main ()
8692 {
8693 struct stat sbuf;
8694      /* Linux will dereference the symlink and fail.
8695         That is better in the sense that it means we will not
8696         have to compile and use the lstat wrapper.  */
8697      return lstat ("conftest.sym/", &sbuf) == 0;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8704 case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710   (eval "$ac_link") 2>&5
8711   ac_status=$?
8712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8714   { (case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720   (eval "$ac_try") 2>&5
8721   ac_status=$?
8722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; }; then
8724   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8725 else
8726   $as_echo "$as_me: program exited with status $ac_status" >&5
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ( exit $ac_status )
8731 ac_cv_func_lstat_dereferences_slashed_symlink=no
8732 fi
8733 rm -rf conftest.dSYM
8734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8735 fi
8736
8737
8738 else
8739   # If the `ln -s' command failed, then we probably don't even
8740   # have an lstat function.
8741   ac_cv_func_lstat_dereferences_slashed_symlink=no
8742 fi
8743 rm -f conftest.sym conftest.file
8744
8745 fi
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8747 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8748
8749 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8750
8751 cat >>confdefs.h <<_ACEOF
8752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8753 _ACEOF
8754
8755
8756 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8757   case " $LIBOBJS " in
8758   *" lstat.$ac_objext "* ) ;;
8759   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8760  ;;
8761 esac
8762
8763 fi
8764
8765 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
8766 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
8767 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
8768   $as_echo_n "(cached) " >&6
8769 else
8770   if test "$cross_compiling" = yes; then
8771   ac_cv_func_lstat_empty_string_bug=yes
8772 else
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 $ac_includes_default
8780 int
8781 main ()
8782 {
8783 struct stat sbuf;
8784   return lstat ("", &sbuf) == 0;
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796 $as_echo "$ac_try_echo") >&5
8797   (eval "$ac_link") 2>&5
8798   ac_status=$?
8799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8801   { (case "(($ac_try" in
8802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803   *) ac_try_echo=$ac_try;;
8804 esac
8805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8806 $as_echo "$ac_try_echo") >&5
8807   (eval "$ac_try") 2>&5
8808   ac_status=$?
8809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; }; then
8811   ac_cv_func_lstat_empty_string_bug=no
8812 else
8813   $as_echo "$as_me: program exited with status $ac_status" >&5
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8816
8817 ( exit $ac_status )
8818 ac_cv_func_lstat_empty_string_bug=yes
8819 fi
8820 rm -rf conftest.dSYM
8821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8822 fi
8823
8824
8825 fi
8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
8827 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
8828 if test $ac_cv_func_lstat_empty_string_bug = yes; then
8829   case " $LIBOBJS " in
8830   *" lstat.$ac_objext "* ) ;;
8831   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8832  ;;
8833 esac
8834
8835
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8838 _ACEOF
8839
8840 fi
8841
8842 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8843 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
8844 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   rm -f conftest.sym conftest.file
8848 echo >conftest.file
8849 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8850   if test "$cross_compiling" = yes; then
8851   ac_cv_func_lstat_dereferences_slashed_symlink=no
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 $ac_includes_default
8860 int
8861 main ()
8862 {
8863 struct stat sbuf;
8864      /* Linux will dereference the symlink and fail.
8865         That is better in the sense that it means we will not
8866         have to compile and use the lstat wrapper.  */
8867      return lstat ("conftest.sym/", &sbuf) == 0;
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest$ac_exeext
8873 if { (ac_try="$ac_link"
8874 case "(($ac_try" in
8875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876   *) ac_try_echo=$ac_try;;
8877 esac
8878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879 $as_echo "$ac_try_echo") >&5
8880   (eval "$ac_link") 2>&5
8881   ac_status=$?
8882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8884   { (case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890   (eval "$ac_try") 2>&5
8891   ac_status=$?
8892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; }; then
8894   ac_cv_func_lstat_dereferences_slashed_symlink=yes
8895 else
8896   $as_echo "$as_me: program exited with status $ac_status" >&5
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ( exit $ac_status )
8901 ac_cv_func_lstat_dereferences_slashed_symlink=no
8902 fi
8903 rm -rf conftest.dSYM
8904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8905 fi
8906
8907
8908 else
8909   # If the `ln -s' command failed, then we probably don't even
8910   # have an lstat function.
8911   ac_cv_func_lstat_dereferences_slashed_symlink=no
8912 fi
8913 rm -f conftest.sym conftest.file
8914
8915 fi
8916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8917 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8918
8919 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8920
8921 cat >>confdefs.h <<_ACEOF
8922 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8923 _ACEOF
8924
8925
8926 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8927   case " $LIBOBJS " in
8928   *" lstat.$ac_objext "* ) ;;
8929   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8930  ;;
8931 esac
8932
8933 fi
8934
8935
8936 for ac_header in stdlib.h
8937 do
8938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 $as_echo_n "checking for $ac_header... " >&6; }
8942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8943   $as_echo_n "(cached) " >&6
8944 fi
8945 ac_res=`eval 'as_val=${'$as_ac_Header'}
8946                  $as_echo "$as_val"'`
8947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8948 $as_echo "$ac_res" >&6; }
8949 else
8950   # Is the header compilable?
8951 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8952 $as_echo_n "checking $ac_header usability... " >&6; }
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959 $ac_includes_default
8960 #include <$ac_header>
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (ac_try="$ac_compile"
8964 case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970   (eval "$ac_compile") 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } && {
8977          test -z "$ac_c_werror_flag" ||
8978          test ! -s conftest.err
8979        } && test -s conftest.$ac_objext; then
8980   ac_header_compiler=yes
8981 else
8982   $as_echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985         ac_header_compiler=no
8986 fi
8987
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 $as_echo "$ac_header_compiler" >&6; }
8991
8992 # Is the header present?
8993 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 $as_echo_n "checking $ac_header presence... " >&6; }
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 #include <$ac_header>
9002 _ACEOF
9003 if { (ac_try="$ac_cpp conftest.$ac_ext"
9004 case "(($ac_try" in
9005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006   *) ac_try_echo=$ac_try;;
9007 esac
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } >/dev/null && {
9017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9018          test ! -s conftest.err
9019        }; then
9020   ac_header_preproc=yes
9021 else
9022   $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025   ac_header_preproc=no
9026 fi
9027
9028 rm -f conftest.err conftest.$ac_ext
9029 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 $as_echo "$ac_header_preproc" >&6; }
9031
9032 # So?  What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034   yes:no: )
9035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039     ac_header_preproc=yes
9040     ;;
9041   no:yes:* )
9042     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9045 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9049 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054     ( cat <<\_ASBOX
9055 ## ----------------------------------- ##
9056 ## Report this to andreas@eversberg.eu ##
9057 ## ----------------------------------- ##
9058 _ASBOX
9059      ) | sed "s/^/$as_me: WARNING:     /" >&2
9060     ;;
9061 esac
9062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 $as_echo_n "checking for $ac_header... " >&6; }
9064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9065   $as_echo_n "(cached) " >&6
9066 else
9067   eval "$as_ac_Header=\$ac_header_preproc"
9068 fi
9069 ac_res=`eval 'as_val=${'$as_ac_Header'}
9070                  $as_echo "$as_val"'`
9071                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9072 $as_echo "$ac_res" >&6; }
9073
9074 fi
9075 as_val=`eval 'as_val=${'$as_ac_Header'}
9076                  $as_echo "$as_val"'`
9077    if test "x$as_val" = x""yes; then
9078   cat >>confdefs.h <<_ACEOF
9079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080 _ACEOF
9081
9082 fi
9083
9084 done
9085
9086 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9087 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9088 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9089   $as_echo_n "(cached) " >&6
9090 else
9091   if test "$cross_compiling" = yes; then
9092   ac_cv_func_malloc_0_nonnull=no
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9101 # include <stdlib.h>
9102 #else
9103 char *malloc ();
9104 #endif
9105
9106 int
9107 main ()
9108 {
9109 return ! malloc (0);
9110   ;
9111   return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118   *) ac_try_echo=$ac_try;;
9119 esac
9120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9121 $as_echo "$ac_try_echo") >&5
9122   (eval "$ac_link") 2>&5
9123   ac_status=$?
9124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9126   { (case "(($ac_try" in
9127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128   *) ac_try_echo=$ac_try;;
9129 esac
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132   (eval "$ac_try") 2>&5
9133   ac_status=$?
9134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); }; }; then
9136   ac_cv_func_malloc_0_nonnull=yes
9137 else
9138   $as_echo "$as_me: program exited with status $ac_status" >&5
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ( exit $ac_status )
9143 ac_cv_func_malloc_0_nonnull=no
9144 fi
9145 rm -rf conftest.dSYM
9146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9147 fi
9148
9149
9150 fi
9151 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9152 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9153 if test $ac_cv_func_malloc_0_nonnull = yes; then
9154
9155 cat >>confdefs.h <<\_ACEOF
9156 #define HAVE_MALLOC 1
9157 _ACEOF
9158
9159 else
9160   cat >>confdefs.h <<\_ACEOF
9161 #define HAVE_MALLOC 0
9162 _ACEOF
9163
9164    case " $LIBOBJS " in
9165   *" malloc.$ac_objext "* ) ;;
9166   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9167  ;;
9168 esac
9169
9170
9171 cat >>confdefs.h <<\_ACEOF
9172 #define malloc rpl_malloc
9173 _ACEOF
9174
9175 fi
9176
9177
9178
9179 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9180 $as_echo_n "checking for working memcmp... " >&6; }
9181 if test "${ac_cv_func_memcmp_working+set}" = set; then
9182   $as_echo_n "(cached) " >&6
9183 else
9184   if test "$cross_compiling" = yes; then
9185   ac_cv_func_memcmp_working=no
9186 else
9187   cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h.  */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h.  */
9193 $ac_includes_default
9194 int
9195 main ()
9196 {
9197
9198   /* Some versions of memcmp are not 8-bit clean.  */
9199   char c0 = '\100', c1 = '\200', c2 = '\201';
9200   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9201     return 1;
9202
9203   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9204      or more and with at least one buffer not starting on a 4-byte boundary.
9205      William Lewis provided this test program.   */
9206   {
9207     char foo[21];
9208     char bar[21];
9209     int i;
9210     for (i = 0; i < 4; i++)
9211       {
9212         char *a = foo + i;
9213         char *b = bar + i;
9214         strcpy (a, "--------01111111");
9215         strcpy (b, "--------10000000");
9216         if (memcmp (a, b, 16) >= 0)
9217           return 1;
9218       }
9219     return 0;
9220   }
9221
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9228 case "(($ac_try" in
9229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230   *) ac_try_echo=$ac_try;;
9231 esac
9232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9233 $as_echo "$ac_try_echo") >&5
9234   (eval "$ac_link") 2>&5
9235   ac_status=$?
9236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9238   { (case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244   (eval "$ac_try") 2>&5
9245   ac_status=$?
9246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   ac_cv_func_memcmp_working=yes
9249 else
9250   $as_echo "$as_me: program exited with status $ac_status" >&5
9251 $as_echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ( exit $ac_status )
9255 ac_cv_func_memcmp_working=no
9256 fi
9257 rm -rf conftest.dSYM
9258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9259 fi
9260
9261
9262 fi
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9264 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9265 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9266   *" memcmp.$ac_objext "* ) ;;
9267   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9268  ;;
9269 esac
9270
9271
9272 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9273 $as_echo_n "checking return type of signal handlers... " >&6; }
9274 if test "${ac_cv_type_signal+set}" = set; then
9275   $as_echo_n "(cached) " >&6
9276 else
9277   cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h.  */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h.  */
9283 #include <sys/types.h>
9284 #include <signal.h>
9285
9286 int
9287 main ()
9288 {
9289 return *(signal (0, 0)) (0) == 1;
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext
9295 if { (ac_try="$ac_compile"
9296 case "(($ac_try" in
9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298   *) ac_try_echo=$ac_try;;
9299 esac
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302   (eval "$ac_compile") 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } && {
9309          test -z "$ac_c_werror_flag" ||
9310          test ! -s conftest.err
9311        } && test -s conftest.$ac_objext; then
9312   ac_cv_type_signal=int
9313 else
9314   $as_echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317         ac_cv_type_signal=void
9318 fi
9319
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 fi
9322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9323 $as_echo "$ac_cv_type_signal" >&6; }
9324
9325 cat >>confdefs.h <<_ACEOF
9326 #define RETSIGTYPE $ac_cv_type_signal
9327 _ACEOF
9328
9329
9330 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
9331 $as_echo_n "checking for working strnlen... " >&6; }
9332 if test "${ac_cv_func_strnlen_working+set}" = set; then
9333   $as_echo_n "(cached) " >&6
9334 else
9335   if test "$cross_compiling" = yes; then
9336   ac_cv_func_strnlen_working=no
9337 else
9338   cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 $ac_includes_default
9345 int
9346 main ()
9347 {
9348
9349 #define S "foobar"
9350 #define S_LEN (sizeof S - 1)
9351
9352   /* At least one implementation is buggy: that of AIX 4.3 would
9353      give strnlen (S, 1) == 3.  */
9354
9355   int i;
9356   for (i = 0; i < S_LEN + 1; ++i)
9357     {
9358       int expected = i <= S_LEN ? i : S_LEN;
9359       if (strnlen (S, i) != expected)
9360         return 1;
9361     }
9362   return 0;
9363
9364   ;
9365   return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest$ac_exeext
9369 if { (ac_try="$ac_link"
9370 case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9375 $as_echo "$ac_try_echo") >&5
9376   (eval "$ac_link") 2>&5
9377   ac_status=$?
9378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9380   { (case "(($ac_try" in
9381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382   *) ac_try_echo=$ac_try;;
9383 esac
9384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9385 $as_echo "$ac_try_echo") >&5
9386   (eval "$ac_try") 2>&5
9387   ac_status=$?
9388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; }; then
9390   ac_cv_func_strnlen_working=yes
9391 else
9392   $as_echo "$as_me: program exited with status $ac_status" >&5
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ( exit $ac_status )
9397 ac_cv_func_strnlen_working=no
9398 fi
9399 rm -rf conftest.dSYM
9400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9401 fi
9402
9403
9404 fi
9405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
9406 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9407 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
9408   *" strnlen.$ac_objext "* ) ;;
9409   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9410  ;;
9411 esac
9412
9413
9414 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
9415 $as_echo_n "checking for working strtod... " >&6; }
9416 if test "${ac_cv_func_strtod+set}" = set; then
9417   $as_echo_n "(cached) " >&6
9418 else
9419   if test "$cross_compiling" = yes; then
9420   ac_cv_func_strtod=no
9421 else
9422   cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9428
9429 $ac_includes_default
9430 #ifndef strtod
9431 double strtod ();
9432 #endif
9433 int
9434 main()
9435 {
9436   {
9437     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9438     char *string = " +69";
9439     char *term;
9440     double value;
9441     value = strtod (string, &term);
9442     if (value != 69 || term != (string + 4))
9443       return 1;
9444   }
9445
9446   {
9447     /* Under Solaris 2.4, strtod returns the wrong value for the
9448        terminating character under some conditions.  */
9449     char *string = "NaN";
9450     char *term;
9451     strtod (string, &term);
9452     if (term != string && *(term - 1) == 0)
9453       return 1;
9454   }
9455   return 0;
9456 }
9457
9458 _ACEOF
9459 rm -f conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9466 $as_echo "$ac_try_echo") >&5
9467   (eval "$ac_link") 2>&5
9468   ac_status=$?
9469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477   (eval "$ac_try") 2>&5
9478   ac_status=$?
9479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_func_strtod=yes
9482 else
9483   $as_echo "$as_me: program exited with status $ac_status" >&5
9484 $as_echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ( exit $ac_status )
9488 ac_cv_func_strtod=no
9489 fi
9490 rm -rf conftest.dSYM
9491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9492 fi
9493
9494
9495 fi
9496 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9497 $as_echo "$ac_cv_func_strtod" >&6; }
9498 if test $ac_cv_func_strtod = no; then
9499   case " $LIBOBJS " in
9500   *" strtod.$ac_objext "* ) ;;
9501   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9502  ;;
9503 esac
9504
9505 { $as_echo "$as_me:$LINENO: checking for pow" >&5
9506 $as_echo_n "checking for pow... " >&6; }
9507 if test "${ac_cv_func_pow+set}" = set; then
9508   $as_echo_n "(cached) " >&6
9509 else
9510   cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9518 #define pow innocuous_pow
9519
9520 /* System header to define __stub macros and hopefully few prototypes,
9521     which can conflict with char pow (); below.
9522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9523     <limits.h> exists even on freestanding compilers.  */
9524
9525 #ifdef __STDC__
9526 # include <limits.h>
9527 #else
9528 # include <assert.h>
9529 #endif
9530
9531 #undef pow
9532
9533 /* Override any GCC internal prototype to avoid an error.
9534    Use char because int might match the return type of a GCC
9535    builtin and then its argument prototype would still apply.  */
9536 #ifdef __cplusplus
9537 extern "C"
9538 #endif
9539 char pow ();
9540 /* The GNU C library defines this for functions which it implements
9541     to always fail with ENOSYS.  Some functions are actually named
9542     something starting with __ and the normal name is an alias.  */
9543 #if defined __stub_pow || defined __stub___pow
9544 choke me
9545 #endif
9546
9547 int
9548 main ()
9549 {
9550 return pow ();
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9557 case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9562 $as_echo "$ac_try_echo") >&5
9563   (eval "$ac_link") 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } && {
9570          test -z "$ac_c_werror_flag" ||
9571          test ! -s conftest.err
9572        } && test -s conftest$ac_exeext && {
9573          test "$cross_compiling" = yes ||
9574          $as_test_x conftest$ac_exeext
9575        }; then
9576   ac_cv_func_pow=yes
9577 else
9578   $as_echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581         ac_cv_func_pow=no
9582 fi
9583
9584 rm -rf conftest.dSYM
9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586       conftest$ac_exeext conftest.$ac_ext
9587 fi
9588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9589 $as_echo "$ac_cv_func_pow" >&6; }
9590
9591 if test $ac_cv_func_pow = no; then
9592   { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
9593 $as_echo_n "checking for pow in -lm... " >&6; }
9594 if test "${ac_cv_lib_m_pow+set}" = set; then
9595   $as_echo_n "(cached) " >&6
9596 else
9597   ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lm  $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char pow ();
9613 int
9614 main ()
9615 {
9616 return pow ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629   (eval "$ac_link") 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } && {
9636          test -z "$ac_c_werror_flag" ||
9637          test ! -s conftest.err
9638        } && test -s conftest$ac_exeext && {
9639          test "$cross_compiling" = yes ||
9640          $as_test_x conftest$ac_exeext
9641        }; then
9642   ac_cv_lib_m_pow=yes
9643 else
9644   $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647         ac_cv_lib_m_pow=no
9648 fi
9649
9650 rm -rf conftest.dSYM
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652       conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9654 fi
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9656 $as_echo "$ac_cv_lib_m_pow" >&6; }
9657 if test "x$ac_cv_lib_m_pow" = x""yes; then
9658   POW_LIB=-lm
9659 else
9660   { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9661 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9662 fi
9663
9664 fi
9665
9666 fi
9667
9668
9669 for ac_func in vprintf
9670 do
9671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9673 $as_echo_n "checking for $ac_func... " >&6; }
9674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9675   $as_echo_n "(cached) " >&6
9676 else
9677   cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9685 #define $ac_func innocuous_$ac_func
9686
9687 /* System header to define __stub macros and hopefully few prototypes,
9688     which can conflict with char $ac_func (); below.
9689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690     <limits.h> exists even on freestanding compilers.  */
9691
9692 #ifdef __STDC__
9693 # include <limits.h>
9694 #else
9695 # include <assert.h>
9696 #endif
9697
9698 #undef $ac_func
9699
9700 /* Override any GCC internal prototype to avoid an error.
9701    Use char because int might match the return type of a GCC
9702    builtin and then its argument prototype would still apply.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char $ac_func ();
9707 /* The GNU C library defines this for functions which it implements
9708     to always fail with ENOSYS.  Some functions are actually named
9709     something starting with __ and the normal name is an alias.  */
9710 #if defined __stub_$ac_func || defined __stub___$ac_func
9711 choke me
9712 #endif
9713
9714 int
9715 main ()
9716 {
9717 return $ac_func ();
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9729 $as_echo "$ac_try_echo") >&5
9730   (eval "$ac_link") 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } && {
9737          test -z "$ac_c_werror_flag" ||
9738          test ! -s conftest.err
9739        } && test -s conftest$ac_exeext && {
9740          test "$cross_compiling" = yes ||
9741          $as_test_x conftest$ac_exeext
9742        }; then
9743   eval "$as_ac_var=yes"
9744 else
9745   $as_echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748         eval "$as_ac_var=no"
9749 fi
9750
9751 rm -rf conftest.dSYM
9752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9753       conftest$ac_exeext conftest.$ac_ext
9754 fi
9755 ac_res=`eval 'as_val=${'$as_ac_var'}
9756                  $as_echo "$as_val"'`
9757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9758 $as_echo "$ac_res" >&6; }
9759 as_val=`eval 'as_val=${'$as_ac_var'}
9760                  $as_echo "$as_val"'`
9761    if test "x$as_val" = x""yes; then
9762   cat >>confdefs.h <<_ACEOF
9763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9764 _ACEOF
9765
9766 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9767 $as_echo_n "checking for _doprnt... " >&6; }
9768 if test "${ac_cv_func__doprnt+set}" = set; then
9769   $as_echo_n "(cached) " >&6
9770 else
9771   cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h.  */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h.  */
9777 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9779 #define _doprnt innocuous__doprnt
9780
9781 /* System header to define __stub macros and hopefully few prototypes,
9782     which can conflict with char _doprnt (); below.
9783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784     <limits.h> exists even on freestanding compilers.  */
9785
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9791
9792 #undef _doprnt
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795    Use char because int might match the return type of a GCC
9796    builtin and then its argument prototype would still apply.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char _doprnt ();
9801 /* The GNU C library defines this for functions which it implements
9802     to always fail with ENOSYS.  Some functions are actually named
9803     something starting with __ and the normal name is an alias.  */
9804 #if defined __stub__doprnt || defined __stub____doprnt
9805 choke me
9806 #endif
9807
9808 int
9809 main ()
9810 {
9811 return _doprnt ();
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && {
9831          test -z "$ac_c_werror_flag" ||
9832          test ! -s conftest.err
9833        } && test -s conftest$ac_exeext && {
9834          test "$cross_compiling" = yes ||
9835          $as_test_x conftest$ac_exeext
9836        }; then
9837   ac_cv_func__doprnt=yes
9838 else
9839   $as_echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842         ac_cv_func__doprnt=no
9843 fi
9844
9845 rm -rf conftest.dSYM
9846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847       conftest$ac_exeext conftest.$ac_ext
9848 fi
9849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9850 $as_echo "$ac_cv_func__doprnt" >&6; }
9851 if test "x$ac_cv_func__doprnt" = x""yes; then
9852
9853 cat >>confdefs.h <<\_ACEOF
9854 #define HAVE_DOPRNT 1
9855 _ACEOF
9856
9857 fi
9858
9859 fi
9860 done
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
9876 do
9877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9878 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9879 $as_echo_n "checking for $ac_func... " >&6; }
9880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9881   $as_echo_n "(cached) " >&6
9882 else
9883   cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9891 #define $ac_func innocuous_$ac_func
9892
9893 /* System header to define __stub macros and hopefully few prototypes,
9894     which can conflict with char $ac_func (); below.
9895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896     <limits.h> exists even on freestanding compilers.  */
9897
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903
9904 #undef $ac_func
9905
9906 /* Override any GCC internal prototype to avoid an error.
9907    Use char because int might match the return type of a GCC
9908    builtin and then its argument prototype would still apply.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char $ac_func ();
9913 /* The GNU C library defines this for functions which it implements
9914     to always fail with ENOSYS.  Some functions are actually named
9915     something starting with __ and the normal name is an alias.  */
9916 #if defined __stub_$ac_func || defined __stub___$ac_func
9917 choke me
9918 #endif
9919
9920 int
9921 main ()
9922 {
9923 return $ac_func ();
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } && {
9943          test -z "$ac_c_werror_flag" ||
9944          test ! -s conftest.err
9945        } && test -s conftest$ac_exeext && {
9946          test "$cross_compiling" = yes ||
9947          $as_test_x conftest$ac_exeext
9948        }; then
9949   eval "$as_ac_var=yes"
9950 else
9951   $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         eval "$as_ac_var=no"
9955 fi
9956
9957 rm -rf conftest.dSYM
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959       conftest$ac_exeext conftest.$ac_ext
9960 fi
9961 ac_res=`eval 'as_val=${'$as_ac_var'}
9962                  $as_echo "$as_val"'`
9963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9964 $as_echo "$ac_res" >&6; }
9965 as_val=`eval 'as_val=${'$as_ac_var'}
9966                  $as_echo "$as_val"'`
9967    if test "x$as_val" = x""yes; then
9968   cat >>confdefs.h <<_ACEOF
9969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 _ACEOF
9971
9972 fi
9973 done
9974
9975
9976
9977 ac_config_files="$ac_config_files Makefile"
9978
9979 cat >confcache <<\_ACEOF
9980 # This file is a shell script that caches the results of configure
9981 # tests run on this system so they can be shared between configure
9982 # scripts and configure runs, see configure's option --config-cache.
9983 # It is not useful on other systems.  If it contains results you don't
9984 # want to keep, you may remove or edit it.
9985 #
9986 # config.status only pays attention to the cache file if you give it
9987 # the --recheck option to rerun configure.
9988 #
9989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9991 # following values.
9992
9993 _ACEOF
9994
9995 # The following way of writing the cache mishandles newlines in values,
9996 # but we know of no workaround that is simple, portable, and efficient.
9997 # So, we kill variables containing newlines.
9998 # Ultrix sh set writes to stderr and can't be redirected directly,
9999 # and sets the high bit in the cache file unless we assign to the vars.
10000 (
10001   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10002     eval ac_val=\$$ac_var
10003     case $ac_val in #(
10004     *${as_nl}*)
10005       case $ac_var in #(
10006       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10008       esac
10009       case $ac_var in #(
10010       _ | IFS | as_nl) ;; #(
10011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10012       *) $as_unset $ac_var ;;
10013       esac ;;
10014     esac
10015   done
10016
10017   (set) 2>&1 |
10018     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10019     *${as_nl}ac_space=\ *)
10020       # `set' does not quote correctly, so add quotes (double-quote
10021       # substitution turns \\\\ into \\, and sed turns \\ into \).
10022       sed -n \
10023         "s/'/'\\\\''/g;
10024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10025       ;; #(
10026     *)
10027       # `set' quotes correctly as required by POSIX, so do not add quotes.
10028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10029       ;;
10030     esac |
10031     sort
10032 ) |
10033   sed '
10034      /^ac_cv_env_/b end
10035      t clear
10036      :clear
10037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10038      t end
10039      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10040      :end' >>confcache
10041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10042   if test -w "$cache_file"; then
10043     test "x$cache_file" != "x/dev/null" &&
10044       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10045 $as_echo "$as_me: updating cache $cache_file" >&6;}
10046     cat confcache >$cache_file
10047   else
10048     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10050   fi
10051 fi
10052 rm -f confcache
10053
10054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10055 # Let make expand exec_prefix.
10056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10057
10058 DEFS=-DHAVE_CONFIG_H
10059
10060 ac_libobjs=
10061 ac_ltlibobjs=
10062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10063   # 1. Remove the extension, and $U if already installed.
10064   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10065   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10066   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10067   #    will be set to the directory where LIBOBJS objects are built.
10068   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10069   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10070 done
10071 LIBOBJS=$ac_libobjs
10072
10073 LTLIBOBJS=$ac_ltlibobjs
10074
10075
10076 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10077   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10078 Usually this means the macro was only invoked conditionally." >&5
10079 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10080 Usually this means the macro was only invoked conditionally." >&2;}
10081    { (exit 1); exit 1; }; }
10082 fi
10083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10084   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10085 Usually this means the macro was only invoked conditionally." >&5
10086 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10087 Usually this means the macro was only invoked conditionally." >&2;}
10088    { (exit 1); exit 1; }; }
10089 fi
10090  if test -n "$EXEEXT"; then
10091   am__EXEEXT_TRUE=
10092   am__EXEEXT_FALSE='#'
10093 else
10094   am__EXEEXT_TRUE='#'
10095   am__EXEEXT_FALSE=
10096 fi
10097
10098 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10099   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10100 Usually this means the macro was only invoked conditionally." >&5
10101 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10102 Usually this means the macro was only invoked conditionally." >&2;}
10103    { (exit 1); exit 1; }; }
10104 fi
10105 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
10106   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10107 Usually this means the macro was only invoked conditionally." >&5
10108 $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
10109 Usually this means the macro was only invoked conditionally." >&2;}
10110    { (exit 1); exit 1; }; }
10111 fi
10112 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
10113   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_BS\" was never defined.
10114 Usually this means the macro was only invoked conditionally." >&5
10115 $as_echo "$as_me: error: conditional \"ENABLE_GSM_BS\" was never defined.
10116 Usually this means the macro was only invoked conditionally." >&2;}
10117    { (exit 1); exit 1; }; }
10118 fi
10119 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
10120   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM_MS\" was never defined.
10121 Usually this means the macro was only invoked conditionally." >&5
10122 $as_echo "$as_me: error: conditional \"ENABLE_GSM_MS\" was never defined.
10123 Usually this means the macro was only invoked conditionally." >&2;}
10124    { (exit 1); exit 1; }; }
10125 fi
10126 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
10127   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined.
10128 Usually this means the macro was only invoked conditionally." >&5
10129 $as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined.
10130 Usually this means the macro was only invoked conditionally." >&2;}
10131    { (exit 1); exit 1; }; }
10132 fi
10133 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
10134   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined.
10135 Usually this means the macro was only invoked conditionally." >&5
10136 $as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined.
10137 Usually this means the macro was only invoked conditionally." >&2;}
10138    { (exit 1); exit 1; }; }
10139 fi
10140
10141 : ${CONFIG_STATUS=./config.status}
10142 ac_write_fail=0
10143 ac_clean_files_save=$ac_clean_files
10144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10145 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10147 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10148 #! $SHELL
10149 # Generated by $as_me.
10150 # Run this file to recreate the current configuration.
10151 # Compiler output produced by configure, useful for debugging
10152 # configure, is in config.log if it exists.
10153
10154 debug=false
10155 ac_cs_recheck=false
10156 ac_cs_silent=false
10157 SHELL=\${CONFIG_SHELL-$SHELL}
10158 _ACEOF
10159
10160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10161 ## --------------------- ##
10162 ## M4sh Initialization.  ##
10163 ## --------------------- ##
10164
10165 # Be more Bourne compatible
10166 DUALCASE=1; export DUALCASE # for MKS sh
10167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10168   emulate sh
10169   NULLCMD=:
10170   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10171   # is contrary to our usage.  Disable this feature.
10172   alias -g '${1+"$@"}'='"$@"'
10173   setopt NO_GLOB_SUBST
10174 else
10175   case `(set -o) 2>/dev/null` in
10176   *posix*) set -o posix ;;
10177 esac
10178
10179 fi
10180
10181
10182
10183
10184 # PATH needs CR
10185 # Avoid depending upon Character Ranges.
10186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10189 as_cr_digits='0123456789'
10190 as_cr_alnum=$as_cr_Letters$as_cr_digits
10191
10192 as_nl='
10193 '
10194 export as_nl
10195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10199 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10200   as_echo='printf %s\n'
10201   as_echo_n='printf %s'
10202 else
10203   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10204     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10205     as_echo_n='/usr/ucb/echo -n'
10206   else
10207     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10208     as_echo_n_body='eval
10209       arg=$1;
10210       case $arg in
10211       *"$as_nl"*)
10212         expr "X$arg" : "X\\(.*\\)$as_nl";
10213         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10214       esac;
10215       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10216     '
10217     export as_echo_n_body
10218     as_echo_n='sh -c $as_echo_n_body as_echo'
10219   fi
10220   export as_echo_body
10221   as_echo='sh -c $as_echo_body as_echo'
10222 fi
10223
10224 # The user is always right.
10225 if test "${PATH_SEPARATOR+set}" != set; then
10226   PATH_SEPARATOR=:
10227   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10228     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10229       PATH_SEPARATOR=';'
10230   }
10231 fi
10232
10233 # Support unset when possible.
10234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10235   as_unset=unset
10236 else
10237   as_unset=false
10238 fi
10239
10240
10241 # IFS
10242 # We need space, tab and new line, in precisely that order.  Quoting is
10243 # there to prevent editors from complaining about space-tab.
10244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10245 # splitting by setting IFS to empty value.)
10246 IFS=" ""        $as_nl"
10247
10248 # Find who we are.  Look in the path if we contain no directory separator.
10249 case $0 in
10250   *[\\/]* ) as_myself=$0 ;;
10251   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10257 done
10258 IFS=$as_save_IFS
10259
10260      ;;
10261 esac
10262 # We did not find ourselves, most probably we were run as `sh COMMAND'
10263 # in which case we are not to be found in the path.
10264 if test "x$as_myself" = x; then
10265   as_myself=$0
10266 fi
10267 if test ! -f "$as_myself"; then
10268   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10269   { (exit 1); exit 1; }
10270 fi
10271
10272 # Work around bugs in pre-3.0 UWIN ksh.
10273 for as_var in ENV MAIL MAILPATH
10274 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10275 done
10276 PS1='$ '
10277 PS2='> '
10278 PS4='+ '
10279
10280 # NLS nuisances.
10281 LC_ALL=C
10282 export LC_ALL
10283 LANGUAGE=C
10284 export LANGUAGE
10285
10286 # Required to use basename.
10287 if expr a : '\(a\)' >/dev/null 2>&1 &&
10288    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10289   as_expr=expr
10290 else
10291   as_expr=false
10292 fi
10293
10294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10295   as_basename=basename
10296 else
10297   as_basename=false
10298 fi
10299
10300
10301 # Name of the executable.
10302 as_me=`$as_basename -- "$0" ||
10303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10304          X"$0" : 'X\(//\)$' \| \
10305          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10306 $as_echo X/"$0" |
10307     sed '/^.*\/\([^/][^/]*\)\/*$/{
10308             s//\1/
10309             q
10310           }
10311           /^X\/\(\/\/\)$/{
10312             s//\1/
10313             q
10314           }
10315           /^X\/\(\/\).*/{
10316             s//\1/
10317             q
10318           }
10319           s/.*/./; q'`
10320
10321 # CDPATH.
10322 $as_unset CDPATH
10323
10324
10325
10326   as_lineno_1=$LINENO
10327   as_lineno_2=$LINENO
10328   test "x$as_lineno_1" != "x$as_lineno_2" &&
10329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10330
10331   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10332   # uniformly replaced by the line number.  The first 'sed' inserts a
10333   # line-number line after each line using $LINENO; the second 'sed'
10334   # does the real work.  The second script uses 'N' to pair each
10335   # line-number line with the line containing $LINENO, and appends
10336   # trailing '-' during substitution so that $LINENO is not a special
10337   # case at line end.
10338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10339   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10340   # E. McMahon (1931-1989) for sed's syntax.  :-)
10341   sed -n '
10342     p
10343     /[$]LINENO/=
10344   ' <$as_myself |
10345     sed '
10346       s/[$]LINENO.*/&-/
10347       t lineno
10348       b
10349       :lineno
10350       N
10351       :loop
10352       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10353       t loop
10354       s/-\n.*//
10355     ' >$as_me.lineno &&
10356   chmod +x "$as_me.lineno" ||
10357     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10358    { (exit 1); exit 1; }; }
10359
10360   # Don't try to exec as it changes $[0], causing all sort of problems
10361   # (the dirname of $[0] is not the place where we might find the
10362   # original and so on.  Autoconf is especially sensitive to this).
10363   . "./$as_me.lineno"
10364   # Exit status is that of the last command.
10365   exit
10366 }
10367
10368
10369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10370   as_dirname=dirname
10371 else
10372   as_dirname=false
10373 fi
10374
10375 ECHO_C= ECHO_N= ECHO_T=
10376 case `echo -n x` in
10377 -n*)
10378   case `echo 'x\c'` in
10379   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10380   *)   ECHO_C='\c';;
10381   esac;;
10382 *)
10383   ECHO_N='-n';;
10384 esac
10385 if expr a : '\(a\)' >/dev/null 2>&1 &&
10386    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10387   as_expr=expr
10388 else
10389   as_expr=false
10390 fi
10391
10392 rm -f conf$$ conf$$.exe conf$$.file
10393 if test -d conf$$.dir; then
10394   rm -f conf$$.dir/conf$$.file
10395 else
10396   rm -f conf$$.dir
10397   mkdir conf$$.dir 2>/dev/null
10398 fi
10399 if (echo >conf$$.file) 2>/dev/null; then
10400   if ln -s conf$$.file conf$$ 2>/dev/null; then
10401     as_ln_s='ln -s'
10402     # ... but there are two gotchas:
10403     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10404     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10405     # In both cases, we have to default to `cp -p'.
10406     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10407       as_ln_s='cp -p'
10408   elif ln conf$$.file conf$$ 2>/dev/null; then
10409     as_ln_s=ln
10410   else
10411     as_ln_s='cp -p'
10412   fi
10413 else
10414   as_ln_s='cp -p'
10415 fi
10416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10417 rmdir conf$$.dir 2>/dev/null
10418
10419 if mkdir -p . 2>/dev/null; then
10420   as_mkdir_p=:
10421 else
10422   test -d ./-p && rmdir ./-p
10423   as_mkdir_p=false
10424 fi
10425
10426 if test -x / >/dev/null 2>&1; then
10427   as_test_x='test -x'
10428 else
10429   if ls -dL / >/dev/null 2>&1; then
10430     as_ls_L_option=L
10431   else
10432     as_ls_L_option=
10433   fi
10434   as_test_x='
10435     eval sh -c '\''
10436       if test -d "$1"; then
10437         test -d "$1/.";
10438       else
10439         case $1 in
10440         -*)set "./$1";;
10441         esac;
10442         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10443         ???[sx]*):;;*)false;;esac;fi
10444     '\'' sh
10445   '
10446 fi
10447 as_executable_p=$as_test_x
10448
10449 # Sed expression to map a string onto a valid CPP name.
10450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10451
10452 # Sed expression to map a string onto a valid variable name.
10453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10454
10455
10456 exec 6>&1
10457
10458 # Save the log message, to keep $[0] and so on meaningful, and to
10459 # report actual input values of CONFIG_FILES etc. instead of their
10460 # values after options handling.
10461 ac_log="
10462 This file was extended by lcr $as_me 1.7, which was
10463 generated by GNU Autoconf 2.63.  Invocation command line was
10464
10465   CONFIG_FILES    = $CONFIG_FILES
10466   CONFIG_HEADERS  = $CONFIG_HEADERS
10467   CONFIG_LINKS    = $CONFIG_LINKS
10468   CONFIG_COMMANDS = $CONFIG_COMMANDS
10469   $ $0 $@
10470
10471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10472 "
10473
10474 _ACEOF
10475
10476 case $ac_config_files in *"
10477 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10478 esac
10479
10480 case $ac_config_headers in *"
10481 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10482 esac
10483
10484
10485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10486 # Files that config.status was made for.
10487 config_files="$ac_config_files"
10488 config_headers="$ac_config_headers"
10489 config_commands="$ac_config_commands"
10490
10491 _ACEOF
10492
10493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10494 ac_cs_usage="\
10495 \`$as_me' instantiates files from templates according to the
10496 current configuration.
10497
10498 Usage: $0 [OPTION]... [FILE]...
10499
10500   -h, --help       print this help, then exit
10501   -V, --version    print version number and configuration settings, then exit
10502   -q, --quiet, --silent
10503                    do not print progress messages
10504   -d, --debug      don't remove temporary files
10505       --recheck    update $as_me by reconfiguring in the same conditions
10506       --file=FILE[:TEMPLATE]
10507                    instantiate the configuration file FILE
10508       --header=FILE[:TEMPLATE]
10509                    instantiate the configuration header FILE
10510
10511 Configuration files:
10512 $config_files
10513
10514 Configuration headers:
10515 $config_headers
10516
10517 Configuration commands:
10518 $config_commands
10519
10520 Report bugs to <bug-autoconf@gnu.org>."
10521
10522 _ACEOF
10523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10524 ac_cs_version="\\
10525 lcr config.status 1.7
10526 configured by $0, generated by GNU Autoconf 2.63,
10527   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10528
10529 Copyright (C) 2008 Free Software Foundation, Inc.
10530 This config.status script is free software; the Free Software Foundation
10531 gives unlimited permission to copy, distribute and modify it."
10532
10533 ac_pwd='$ac_pwd'
10534 srcdir='$srcdir'
10535 INSTALL='$INSTALL'
10536 MKDIR_P='$MKDIR_P'
10537 AWK='$AWK'
10538 test -n "\$AWK" || AWK=awk
10539 _ACEOF
10540
10541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10542 # The default lists apply if the user does not specify any file.
10543 ac_need_defaults=:
10544 while test $# != 0
10545 do
10546   case $1 in
10547   --*=*)
10548     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10549     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10550     ac_shift=:
10551     ;;
10552   *)
10553     ac_option=$1
10554     ac_optarg=$2
10555     ac_shift=shift
10556     ;;
10557   esac
10558
10559   case $ac_option in
10560   # Handling of the options.
10561   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10562     ac_cs_recheck=: ;;
10563   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10564     $as_echo "$ac_cs_version"; exit ;;
10565   --debug | --debu | --deb | --de | --d | -d )
10566     debug=: ;;
10567   --file | --fil | --fi | --f )
10568     $ac_shift
10569     case $ac_optarg in
10570     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10571     esac
10572     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10573     ac_need_defaults=false;;
10574   --header | --heade | --head | --hea )
10575     $ac_shift
10576     case $ac_optarg in
10577     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10578     esac
10579     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10580     ac_need_defaults=false;;
10581   --he | --h)
10582     # Conflict between --help and --header
10583     { $as_echo "$as_me: error: ambiguous option: $1
10584 Try \`$0 --help' for more information." >&2
10585    { (exit 1); exit 1; }; };;
10586   --help | --hel | -h )
10587     $as_echo "$ac_cs_usage"; exit ;;
10588   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10589   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10590     ac_cs_silent=: ;;
10591
10592   # This is an error.
10593   -*) { $as_echo "$as_me: error: unrecognized option: $1
10594 Try \`$0 --help' for more information." >&2
10595    { (exit 1); exit 1; }; } ;;
10596
10597   *) ac_config_targets="$ac_config_targets $1"
10598      ac_need_defaults=false ;;
10599
10600   esac
10601   shift
10602 done
10603
10604 ac_configure_extra_args=
10605
10606 if $ac_cs_silent; then
10607   exec 6>/dev/null
10608   ac_configure_extra_args="$ac_configure_extra_args --silent"
10609 fi
10610
10611 _ACEOF
10612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10613 if \$ac_cs_recheck; then
10614   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10615   shift
10616   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10617   CONFIG_SHELL='$SHELL'
10618   export CONFIG_SHELL
10619   exec "\$@"
10620 fi
10621
10622 _ACEOF
10623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10624 exec 5>>config.log
10625 {
10626   echo
10627   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10628 ## Running $as_me. ##
10629 _ASBOX
10630   $as_echo "$ac_log"
10631 } >&5
10632
10633 _ACEOF
10634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10635 #
10636 # INIT-COMMANDS
10637 #
10638 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10639
10640 _ACEOF
10641
10642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10643
10644 # Handling of arguments.
10645 for ac_config_target in $ac_config_targets
10646 do
10647   case $ac_config_target in
10648     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10649     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10650     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10651
10652   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10653 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10654    { (exit 1); exit 1; }; };;
10655   esac
10656 done
10657
10658
10659 # If the user did not use the arguments to specify the items to instantiate,
10660 # then the envvar interface is used.  Set only those that are not.
10661 # We use the long form for the default assignment because of an extremely
10662 # bizarre bug on SunOS 4.1.3.
10663 if $ac_need_defaults; then
10664   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10665   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10666   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10667 fi
10668
10669 # Have a temporary directory for convenience.  Make it in the build tree
10670 # simply because there is no reason against having it here, and in addition,
10671 # creating and moving files from /tmp can sometimes cause problems.
10672 # Hook for its removal unless debugging.
10673 # Note that there is a small window in which the directory will not be cleaned:
10674 # after its creation but before its name has been assigned to `$tmp'.
10675 $debug ||
10676 {
10677   tmp=
10678   trap 'exit_status=$?
10679   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10680 ' 0
10681   trap '{ (exit 1); exit 1; }' 1 2 13 15
10682 }
10683 # Create a (secure) tmp directory for tmp files.
10684
10685 {
10686   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10687   test -n "$tmp" && test -d "$tmp"
10688 }  ||
10689 {
10690   tmp=./conf$$-$RANDOM
10691   (umask 077 && mkdir "$tmp")
10692 } ||
10693 {
10694    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10695    { (exit 1); exit 1; }
10696 }
10697
10698 # Set up the scripts for CONFIG_FILES section.
10699 # No need to generate them if there are no CONFIG_FILES.
10700 # This happens for instance with `./config.status config.h'.
10701 if test -n "$CONFIG_FILES"; then
10702
10703
10704 ac_cr='\r'
10705 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10706 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10707   ac_cs_awk_cr='\\r'
10708 else
10709   ac_cs_awk_cr=$ac_cr
10710 fi
10711
10712 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10713 _ACEOF
10714
10715
10716 {
10717   echo "cat >conf$$subs.awk <<_ACEOF" &&
10718   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10719   echo "_ACEOF"
10720 } >conf$$subs.sh ||
10721   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10722 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10723    { (exit 1); exit 1; }; }
10724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10725 ac_delim='%!_!# '
10726 for ac_last_try in false false false false false :; do
10727   . ./conf$$subs.sh ||
10728     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10729 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10730    { (exit 1); exit 1; }; }
10731
10732   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10733   if test $ac_delim_n = $ac_delim_num; then
10734     break
10735   elif $ac_last_try; then
10736     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10737 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10738    { (exit 1); exit 1; }; }
10739   else
10740     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10741   fi
10742 done
10743 rm -f conf$$subs.sh
10744
10745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10746 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10747 _ACEOF
10748 sed -n '
10749 h
10750 s/^/S["/; s/!.*/"]=/
10751 p
10752 g
10753 s/^[^!]*!//
10754 :repl
10755 t repl
10756 s/'"$ac_delim"'$//
10757 t delim
10758 :nl
10759 h
10760 s/\(.\{148\}\).*/\1/
10761 t more1
10762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10763 p
10764 n
10765 b repl
10766 :more1
10767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10768 p
10769 g
10770 s/.\{148\}//
10771 t nl
10772 :delim
10773 h
10774 s/\(.\{148\}\).*/\1/
10775 t more2
10776 s/["\\]/\\&/g; s/^/"/; s/$/"/
10777 p
10778 b
10779 :more2
10780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10781 p
10782 g
10783 s/.\{148\}//
10784 t delim
10785 ' <conf$$subs.awk | sed '
10786 /^[^""]/{
10787   N
10788   s/\n//
10789 }
10790 ' >>$CONFIG_STATUS || ac_write_fail=1
10791 rm -f conf$$subs.awk
10792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10793 _ACAWK
10794 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10795   for (key in S) S_is_set[key] = 1
10796   FS = "\a"
10797
10798 }
10799 {
10800   line = $ 0
10801   nfields = split(line, field, "@")
10802   substed = 0
10803   len = length(field[1])
10804   for (i = 2; i < nfields; i++) {
10805     key = field[i]
10806     keylen = length(key)
10807     if (S_is_set[key]) {
10808       value = S[key]
10809       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10810       len += length(value) + length(field[++i])
10811       substed = 1
10812     } else
10813       len += 1 + keylen
10814   }
10815
10816   print line
10817 }
10818
10819 _ACAWK
10820 _ACEOF
10821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10823   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10824 else
10825   cat
10826 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10827   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10828 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10829    { (exit 1); exit 1; }; }
10830 _ACEOF
10831
10832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10834 # trailing colons and then remove the whole line if VPATH becomes empty
10835 # (actually we leave an empty line to preserve line numbers).
10836 if test "x$srcdir" = x.; then
10837   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10838 s/:*\$(srcdir):*/:/
10839 s/:*\${srcdir}:*/:/
10840 s/:*@srcdir@:*/:/
10841 s/^\([^=]*=[     ]*\):*/\1/
10842 s/:*$//
10843 s/^[^=]*=[       ]*$//
10844 }'
10845 fi
10846
10847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10848 fi # test -n "$CONFIG_FILES"
10849
10850 # Set up the scripts for CONFIG_HEADERS section.
10851 # No need to generate them if there are no CONFIG_HEADERS.
10852 # This happens for instance with `./config.status Makefile'.
10853 if test -n "$CONFIG_HEADERS"; then
10854 cat >"$tmp/defines.awk" <<\_ACAWK ||
10855 BEGIN {
10856 _ACEOF
10857
10858 # Transform confdefs.h into an awk script `defines.awk', embedded as
10859 # here-document in config.status, that substitutes the proper values into
10860 # config.h.in to produce config.h.
10861
10862 # Create a delimiter string that does not exist in confdefs.h, to ease
10863 # handling of long lines.
10864 ac_delim='%!_!# '
10865 for ac_last_try in false false :; do
10866   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10867   if test -z "$ac_t"; then
10868     break
10869   elif $ac_last_try; then
10870     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10871 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10872    { (exit 1); exit 1; }; }
10873   else
10874     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10875   fi
10876 done
10877
10878 # For the awk script, D is an array of macro values keyed by name,
10879 # likewise P contains macro parameters if any.  Preserve backslash
10880 # newline sequences.
10881
10882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10883 sed -n '
10884 s/.\{148\}/&'"$ac_delim"'/g
10885 t rset
10886 :rset
10887 s/^[     ]*#[    ]*define[       ][      ]*/ /
10888 t def
10889 d
10890 :def
10891 s/\\$//
10892 t bsnl
10893 s/["\\]/\\&/g
10894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10895 D["\1"]=" \3"/p
10896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10897 d
10898 :bsnl
10899 s/["\\]/\\&/g
10900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10901 D["\1"]=" \3\\\\\\n"\\/p
10902 t cont
10903 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10904 t cont
10905 d
10906 :cont
10907 n
10908 s/.\{148\}/&'"$ac_delim"'/g
10909 t clear
10910 :clear
10911 s/\\$//
10912 t bsnlc
10913 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10914 d
10915 :bsnlc
10916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10917 b cont
10918 ' <confdefs.h | sed '
10919 s/'"$ac_delim"'/"\\\
10920 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10921
10922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10923   for (key in D) D_is_set[key] = 1
10924   FS = "\a"
10925 }
10926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10927   line = \$ 0
10928   split(line, arg, " ")
10929   if (arg[1] == "#") {
10930     defundef = arg[2]
10931     mac1 = arg[3]
10932   } else {
10933     defundef = substr(arg[1], 2)
10934     mac1 = arg[2]
10935   }
10936   split(mac1, mac2, "(") #)
10937   macro = mac2[1]
10938   prefix = substr(line, 1, index(line, defundef) - 1)
10939   if (D_is_set[macro]) {
10940     # Preserve the white space surrounding the "#".
10941     print prefix "define", macro P[macro] D[macro]
10942     next
10943   } else {
10944     # Replace #undef with comments.  This is necessary, for example,
10945     # in the case of _POSIX_SOURCE, which is predefined and required
10946     # on some systems where configure will not decide to define it.
10947     if (defundef == "undef") {
10948       print "/*", prefix defundef, macro, "*/"
10949       next
10950     }
10951   }
10952 }
10953 { print }
10954 _ACAWK
10955 _ACEOF
10956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10957   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10958 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10959    { (exit 1); exit 1; }; }
10960 fi # test -n "$CONFIG_HEADERS"
10961
10962
10963 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10964 shift
10965 for ac_tag
10966 do
10967   case $ac_tag in
10968   :[FHLC]) ac_mode=$ac_tag; continue;;
10969   esac
10970   case $ac_mode$ac_tag in
10971   :[FHL]*:*);;
10972   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10973 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10974    { (exit 1); exit 1; }; };;
10975   :[FH]-) ac_tag=-:-;;
10976   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10977   esac
10978   ac_save_IFS=$IFS
10979   IFS=:
10980   set x $ac_tag
10981   IFS=$ac_save_IFS
10982   shift
10983   ac_file=$1
10984   shift
10985
10986   case $ac_mode in
10987   :L) ac_source=$1;;
10988   :[FH])
10989     ac_file_inputs=
10990     for ac_f
10991     do
10992       case $ac_f in
10993       -) ac_f="$tmp/stdin";;
10994       *) # Look for the file first in the build tree, then in the source tree
10995          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10996          # because $ac_f cannot contain `:'.
10997          test -f "$ac_f" ||
10998            case $ac_f in
10999            [\\/$]*) false;;
11000            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11001            esac ||
11002            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11003 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11004    { (exit 1); exit 1; }; };;
11005       esac
11006       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11007       ac_file_inputs="$ac_file_inputs '$ac_f'"
11008     done
11009
11010     # Let's still pretend it is `configure' which instantiates (i.e., don't
11011     # use $as_me), people would be surprised to read:
11012     #    /* config.h.  Generated by config.status.  */
11013     configure_input='Generated from '`
11014           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11015         `' by configure.'
11016     if test x"$ac_file" != x-; then
11017       configure_input="$ac_file.  $configure_input"
11018       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11019 $as_echo "$as_me: creating $ac_file" >&6;}
11020     fi
11021     # Neutralize special characters interpreted by sed in replacement strings.
11022     case $configure_input in #(
11023     *\&* | *\|* | *\\* )
11024        ac_sed_conf_input=`$as_echo "$configure_input" |
11025        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11026     *) ac_sed_conf_input=$configure_input;;
11027     esac
11028
11029     case $ac_tag in
11030     *:-:* | *:-) cat >"$tmp/stdin" \
11031       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11032 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11033    { (exit 1); exit 1; }; } ;;
11034     esac
11035     ;;
11036   esac
11037
11038   ac_dir=`$as_dirname -- "$ac_file" ||
11039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11040          X"$ac_file" : 'X\(//\)[^/]' \| \
11041          X"$ac_file" : 'X\(//\)$' \| \
11042          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11043 $as_echo X"$ac_file" |
11044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11045             s//\1/
11046             q
11047           }
11048           /^X\(\/\/\)[^/].*/{
11049             s//\1/
11050             q
11051           }
11052           /^X\(\/\/\)$/{
11053             s//\1/
11054             q
11055           }
11056           /^X\(\/\).*/{
11057             s//\1/
11058             q
11059           }
11060           s/.*/./; q'`
11061   { as_dir="$ac_dir"
11062   case $as_dir in #(
11063   -*) as_dir=./$as_dir;;
11064   esac
11065   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11066     as_dirs=
11067     while :; do
11068       case $as_dir in #(
11069       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11070       *) as_qdir=$as_dir;;
11071       esac
11072       as_dirs="'$as_qdir' $as_dirs"
11073       as_dir=`$as_dirname -- "$as_dir" ||
11074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11075          X"$as_dir" : 'X\(//\)[^/]' \| \
11076          X"$as_dir" : 'X\(//\)$' \| \
11077          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11078 $as_echo X"$as_dir" |
11079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11080             s//\1/
11081             q
11082           }
11083           /^X\(\/\/\)[^/].*/{
11084             s//\1/
11085             q
11086           }
11087           /^X\(\/\/\)$/{
11088             s//\1/
11089             q
11090           }
11091           /^X\(\/\).*/{
11092             s//\1/
11093             q
11094           }
11095           s/.*/./; q'`
11096       test -d "$as_dir" && break
11097     done
11098     test -z "$as_dirs" || eval "mkdir $as_dirs"
11099   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11100 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11101    { (exit 1); exit 1; }; }; }
11102   ac_builddir=.
11103
11104 case "$ac_dir" in
11105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11106 *)
11107   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11108   # A ".." for each directory in $ac_dir_suffix.
11109   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11110   case $ac_top_builddir_sub in
11111   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11112   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11113   esac ;;
11114 esac
11115 ac_abs_top_builddir=$ac_pwd
11116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11117 # for backward compatibility:
11118 ac_top_builddir=$ac_top_build_prefix
11119
11120 case $srcdir in
11121   .)  # We are building in place.
11122     ac_srcdir=.
11123     ac_top_srcdir=$ac_top_builddir_sub
11124     ac_abs_top_srcdir=$ac_pwd ;;
11125   [\\/]* | ?:[\\/]* )  # Absolute name.
11126     ac_srcdir=$srcdir$ac_dir_suffix;
11127     ac_top_srcdir=$srcdir
11128     ac_abs_top_srcdir=$srcdir ;;
11129   *) # Relative name.
11130     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11131     ac_top_srcdir=$ac_top_build_prefix$srcdir
11132     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11133 esac
11134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11135
11136
11137   case $ac_mode in
11138   :F)
11139   #
11140   # CONFIG_FILE
11141   #
11142
11143   case $INSTALL in
11144   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11145   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11146   esac
11147   ac_MKDIR_P=$MKDIR_P
11148   case $MKDIR_P in
11149   [\\/$]* | ?:[\\/]* ) ;;
11150   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11151   esac
11152 _ACEOF
11153
11154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11155 # If the template does not know about datarootdir, expand it.
11156 # FIXME: This hack should be removed a few years after 2.60.
11157 ac_datarootdir_hack=; ac_datarootdir_seen=
11158
11159 ac_sed_dataroot='
11160 /datarootdir/ {
11161   p
11162   q
11163 }
11164 /@datadir@/p
11165 /@docdir@/p
11166 /@infodir@/p
11167 /@localedir@/p
11168 /@mandir@/p
11169 '
11170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11171 *datarootdir*) ac_datarootdir_seen=yes;;
11172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11173   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11175 _ACEOF
11176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11177   ac_datarootdir_hack='
11178   s&@datadir@&$datadir&g
11179   s&@docdir@&$docdir&g
11180   s&@infodir@&$infodir&g
11181   s&@localedir@&$localedir&g
11182   s&@mandir@&$mandir&g
11183     s&\\\${datarootdir}&$datarootdir&g' ;;
11184 esac
11185 _ACEOF
11186
11187 # Neutralize VPATH when `$srcdir' = `.'.
11188 # Shell code in configure.ac might set extrasub.
11189 # FIXME: do we really want to maintain this feature?
11190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11191 ac_sed_extra="$ac_vpsub
11192 $extrasub
11193 _ACEOF
11194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11195 :t
11196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11197 s|@configure_input@|$ac_sed_conf_input|;t t
11198 s&@top_builddir@&$ac_top_builddir_sub&;t t
11199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11200 s&@srcdir@&$ac_srcdir&;t t
11201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11202 s&@top_srcdir@&$ac_top_srcdir&;t t
11203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11204 s&@builddir@&$ac_builddir&;t t
11205 s&@abs_builddir@&$ac_abs_builddir&;t t
11206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11207 s&@INSTALL@&$ac_INSTALL&;t t
11208 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11209 $ac_datarootdir_hack
11210 "
11211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11212   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11213 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11214    { (exit 1); exit 1; }; }
11215
11216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11217   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11218   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11219   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11220 which seems to be undefined.  Please make sure it is defined." >&5
11221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11222 which seems to be undefined.  Please make sure it is defined." >&2;}
11223
11224   rm -f "$tmp/stdin"
11225   case $ac_file in
11226   -) cat "$tmp/out" && rm -f "$tmp/out";;
11227   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11228   esac \
11229   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11230 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11231    { (exit 1); exit 1; }; }
11232  ;;
11233   :H)
11234   #
11235   # CONFIG_HEADER
11236   #
11237   if test x"$ac_file" != x-; then
11238     {
11239       $as_echo "/* $configure_input  */" \
11240       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11241     } >"$tmp/config.h" \
11242       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11243 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11244    { (exit 1); exit 1; }; }
11245     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11246       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11248     else
11249       rm -f "$ac_file"
11250       mv "$tmp/config.h" "$ac_file" \
11251         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11252 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11253    { (exit 1); exit 1; }; }
11254     fi
11255   else
11256     $as_echo "/* $configure_input  */" \
11257       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11258       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11259 $as_echo "$as_me: error: could not create -" >&2;}
11260    { (exit 1); exit 1; }; }
11261   fi
11262 # Compute "$ac_file"'s index in $config_headers.
11263 _am_arg="$ac_file"
11264 _am_stamp_count=1
11265 for _am_header in $config_headers :; do
11266   case $_am_header in
11267     $_am_arg | $_am_arg:* )
11268       break ;;
11269     * )
11270       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11271   esac
11272 done
11273 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11274 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11275          X"$_am_arg" : 'X\(//\)[^/]' \| \
11276          X"$_am_arg" : 'X\(//\)$' \| \
11277          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11278 $as_echo X"$_am_arg" |
11279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11280             s//\1/
11281             q
11282           }
11283           /^X\(\/\/\)[^/].*/{
11284             s//\1/
11285             q
11286           }
11287           /^X\(\/\/\)$/{
11288             s//\1/
11289             q
11290           }
11291           /^X\(\/\).*/{
11292             s//\1/
11293             q
11294           }
11295           s/.*/./; q'`/stamp-h$_am_stamp_count
11296  ;;
11297
11298   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11299 $as_echo "$as_me: executing $ac_file commands" >&6;}
11300  ;;
11301   esac
11302
11303
11304   case $ac_file$ac_mode in
11305     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11306   # Autoconf 2.62 quotes --file arguments for eval, but not when files
11307   # are listed without --file.  Let's play safe and only enable the eval
11308   # if we detect the quoting.
11309   case $CONFIG_FILES in
11310   *\'*) eval set x "$CONFIG_FILES" ;;
11311   *)   set x $CONFIG_FILES ;;
11312   esac
11313   shift
11314   for mf
11315   do
11316     # Strip MF so we end up with the name of the file.
11317     mf=`echo "$mf" | sed -e 's/:.*$//'`
11318     # Check whether this is an Automake generated Makefile or not.
11319     # We used to match only the files named `Makefile.in', but
11320     # some people rename them; so instead we look at the file content.
11321     # Grep'ing the first line is not enough: some people post-process
11322     # each Makefile.in and add a new line on top of each file to say so.
11323     # Grep'ing the whole file is not good either: AIX grep has a line
11324     # limit of 2048, but all sed's we know have understand at least 4000.
11325     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11326       dirpart=`$as_dirname -- "$mf" ||
11327 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11328          X"$mf" : 'X\(//\)[^/]' \| \
11329          X"$mf" : 'X\(//\)$' \| \
11330          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11331 $as_echo X"$mf" |
11332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11333             s//\1/
11334             q
11335           }
11336           /^X\(\/\/\)[^/].*/{
11337             s//\1/
11338             q
11339           }
11340           /^X\(\/\/\)$/{
11341             s//\1/
11342             q
11343           }
11344           /^X\(\/\).*/{
11345             s//\1/
11346             q
11347           }
11348           s/.*/./; q'`
11349     else
11350       continue
11351     fi
11352     # Extract the definition of DEPDIR, am__include, and am__quote
11353     # from the Makefile without running `make'.
11354     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11355     test -z "$DEPDIR" && continue
11356     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11357     test -z "am__include" && continue
11358     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11359     # When using ansi2knr, U may be empty or an underscore; expand it
11360     U=`sed -n 's/^U = //p' < "$mf"`
11361     # Find all dependency output files, they are included files with
11362     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11363     # simplest approach to changing $(DEPDIR) to its actual value in the
11364     # expansion.
11365     for file in `sed -n "
11366       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11367          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11368       # Make sure the directory exists.
11369       test -f "$dirpart/$file" && continue
11370       fdir=`$as_dirname -- "$file" ||
11371 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11372          X"$file" : 'X\(//\)[^/]' \| \
11373          X"$file" : 'X\(//\)$' \| \
11374          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11375 $as_echo X"$file" |
11376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11377             s//\1/
11378             q
11379           }
11380           /^X\(\/\/\)[^/].*/{
11381             s//\1/
11382             q
11383           }
11384           /^X\(\/\/\)$/{
11385             s//\1/
11386             q
11387           }
11388           /^X\(\/\).*/{
11389             s//\1/
11390             q
11391           }
11392           s/.*/./; q'`
11393       { as_dir=$dirpart/$fdir
11394   case $as_dir in #(
11395   -*) as_dir=./$as_dir;;
11396   esac
11397   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11398     as_dirs=
11399     while :; do
11400       case $as_dir in #(
11401       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11402       *) as_qdir=$as_dir;;
11403       esac
11404       as_dirs="'$as_qdir' $as_dirs"
11405       as_dir=`$as_dirname -- "$as_dir" ||
11406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11407          X"$as_dir" : 'X\(//\)[^/]' \| \
11408          X"$as_dir" : 'X\(//\)$' \| \
11409          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11410 $as_echo X"$as_dir" |
11411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11412             s//\1/
11413             q
11414           }
11415           /^X\(\/\/\)[^/].*/{
11416             s//\1/
11417             q
11418           }
11419           /^X\(\/\/\)$/{
11420             s//\1/
11421             q
11422           }
11423           /^X\(\/\).*/{
11424             s//\1/
11425             q
11426           }
11427           s/.*/./; q'`
11428       test -d "$as_dir" && break
11429     done
11430     test -z "$as_dirs" || eval "mkdir $as_dirs"
11431   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11432 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11433    { (exit 1); exit 1; }; }; }
11434       # echo "creating $dirpart/$file"
11435       echo '# dummy' > "$dirpart/$file"
11436     done
11437   done
11438 }
11439  ;;
11440
11441   esac
11442 done # for ac_tag
11443
11444
11445 { (exit 0); exit 0; }
11446 _ACEOF
11447 chmod +x $CONFIG_STATUS
11448 ac_clean_files=$ac_clean_files_save
11449
11450 test $ac_write_fail = 0 ||
11451   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11452 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11453    { (exit 1); exit 1; }; }
11454
11455
11456 # configure is writing to config.log, and then calls config.status.
11457 # config.status does its own redirection, appending to config.log.
11458 # Unfortunately, on DOS this fails, as config.log is still kept open
11459 # by configure, so config.status won't be able to write to it; its
11460 # output is simply discarded.  So we exec the FD to /dev/null,
11461 # effectively closing config.log, so it can be properly (re)opened and
11462 # appended to by config.status.  When coming back to configure, we
11463 # need to make the FD available again.
11464 if test "$no_create" != yes; then
11465   ac_cs_success=:
11466   ac_config_status_args=
11467   test "$silent" = yes &&
11468     ac_config_status_args="$ac_config_status_args --quiet"
11469   exec 5>/dev/null
11470   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11471   exec 5>>config.log
11472   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11473   # would make configure fail if this is the last instruction.
11474   $ac_cs_success || { (exit 1); exit 1; }
11475 fi
11476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11477   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11479 fi
11480