import source from 1.3.40
[external/swig.git] / CCache / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ccache-swig 0.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$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   # Zsh 3.x and 4.x performs 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 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='ccache-swig'
574 PACKAGE_TARNAME='ccache-swig'
575 PACKAGE_VERSION='0.0'
576 PACKAGE_STRING='ccache-swig 0.0'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="ccache.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 CPP
661 INSTALL_PROGRAM
662 INSTALL_SCRIPT
663 INSTALL_DATA
664 GREP
665 EGREP
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669       ac_precious_vars='build_alias
670 host_alias
671 target_alias
672 CC
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
678
679
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730   # If the previous option needs an argument, assign it.
731   if test -n "$ac_prev"; then
732     eval $ac_prev=\$ac_option
733     ac_prev=
734     continue
735   fi
736
737   case $ac_option in
738   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739   *)    ac_optarg=yes ;;
740   esac
741
742   # Accept the important Cygnus configure options, so we can diagnose typos.
743
744   case $ac_dashdash$ac_option in
745   --)
746     ac_dashdash=yes ;;
747
748   -bindir | --bindir | --bindi | --bind | --bin | --bi)
749     ac_prev=bindir ;;
750   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751     bindir=$ac_optarg ;;
752
753   -build | --build | --buil | --bui | --bu)
754     ac_prev=build_alias ;;
755   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756     build_alias=$ac_optarg ;;
757
758   -cache-file | --cache-file | --cache-fil | --cache-fi \
759   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760     ac_prev=cache_file ;;
761   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763     cache_file=$ac_optarg ;;
764
765   --config-cache | -C)
766     cache_file=config.cache ;;
767
768   -datadir | --datadir | --datadi | --datad)
769     ac_prev=datadir ;;
770   -datadir=* | --datadir=* | --datadi=* | --datad=*)
771     datadir=$ac_optarg ;;
772
773   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774   | --dataroo | --dataro | --datar)
775     ac_prev=datarootdir ;;
776   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778     datarootdir=$ac_optarg ;;
779
780   -disable-* | --disable-*)
781     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785    { (exit 1); exit 1; }; }
786     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787     eval enable_$ac_feature=no ;;
788
789   -docdir | --docdir | --docdi | --doc | --do)
790     ac_prev=docdir ;;
791   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792     docdir=$ac_optarg ;;
793
794   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795     ac_prev=dvidir ;;
796   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797     dvidir=$ac_optarg ;;
798
799   -enable-* | --enable-*)
800     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801     # Reject names that are not valid shell variable names.
802     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804    { (exit 1); exit 1; }; }
805     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806     eval enable_$ac_feature=\$ac_optarg ;;
807
808   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810   | --exec | --exe | --ex)
811     ac_prev=exec_prefix ;;
812   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814   | --exec=* | --exe=* | --ex=*)
815     exec_prefix=$ac_optarg ;;
816
817   -gas | --gas | --ga | --g)
818     # Obsolete; use --with-gas.
819     with_gas=yes ;;
820
821   -help | --help | --hel | --he | -h)
822     ac_init_help=long ;;
823   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824     ac_init_help=recursive ;;
825   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826     ac_init_help=short ;;
827
828   -host | --host | --hos | --ho)
829     ac_prev=host_alias ;;
830   -host=* | --host=* | --hos=* | --ho=*)
831     host_alias=$ac_optarg ;;
832
833   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834     ac_prev=htmldir ;;
835   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836   | --ht=*)
837     htmldir=$ac_optarg ;;
838
839   -includedir | --includedir | --includedi | --included | --include \
840   | --includ | --inclu | --incl | --inc)
841     ac_prev=includedir ;;
842   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843   | --includ=* | --inclu=* | --incl=* | --inc=*)
844     includedir=$ac_optarg ;;
845
846   -infodir | --infodir | --infodi | --infod | --info | --inf)
847     ac_prev=infodir ;;
848   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849     infodir=$ac_optarg ;;
850
851   -libdir | --libdir | --libdi | --libd)
852     ac_prev=libdir ;;
853   -libdir=* | --libdir=* | --libdi=* | --libd=*)
854     libdir=$ac_optarg ;;
855
856   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857   | --libexe | --libex | --libe)
858     ac_prev=libexecdir ;;
859   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860   | --libexe=* | --libex=* | --libe=*)
861     libexecdir=$ac_optarg ;;
862
863   -localedir | --localedir | --localedi | --localed | --locale)
864     ac_prev=localedir ;;
865   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866     localedir=$ac_optarg ;;
867
868   -localstatedir | --localstatedir | --localstatedi | --localstated \
869   | --localstate | --localstat | --localsta | --localst | --locals)
870     ac_prev=localstatedir ;;
871   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873     localstatedir=$ac_optarg ;;
874
875   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876     ac_prev=mandir ;;
877   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878     mandir=$ac_optarg ;;
879
880   -nfp | --nfp | --nf)
881     # Obsolete; use --without-fp.
882     with_fp=no ;;
883
884   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885   | --no-cr | --no-c | -n)
886     no_create=yes ;;
887
888   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890     no_recursion=yes ;;
891
892   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894   | --oldin | --oldi | --old | --ol | --o)
895     ac_prev=oldincludedir ;;
896   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899     oldincludedir=$ac_optarg ;;
900
901   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902     ac_prev=prefix ;;
903   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904     prefix=$ac_optarg ;;
905
906   -program-prefix | --program-prefix | --program-prefi | --program-pref \
907   | --program-pre | --program-pr | --program-p)
908     ac_prev=program_prefix ;;
909   -program-prefix=* | --program-prefix=* | --program-prefi=* \
910   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911     program_prefix=$ac_optarg ;;
912
913   -program-suffix | --program-suffix | --program-suffi | --program-suff \
914   | --program-suf | --program-su | --program-s)
915     ac_prev=program_suffix ;;
916   -program-suffix=* | --program-suffix=* | --program-suffi=* \
917   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918     program_suffix=$ac_optarg ;;
919
920   -program-transform-name | --program-transform-name \
921   | --program-transform-nam | --program-transform-na \
922   | --program-transform-n | --program-transform- \
923   | --program-transform | --program-transfor \
924   | --program-transfo | --program-transf \
925   | --program-trans | --program-tran \
926   | --progr-tra | --program-tr | --program-t)
927     ac_prev=program_transform_name ;;
928   -program-transform-name=* | --program-transform-name=* \
929   | --program-transform-nam=* | --program-transform-na=* \
930   | --program-transform-n=* | --program-transform-=* \
931   | --program-transform=* | --program-transfor=* \
932   | --program-transfo=* | --program-transf=* \
933   | --program-trans=* | --program-tran=* \
934   | --progr-tra=* | --program-tr=* | --program-t=*)
935     program_transform_name=$ac_optarg ;;
936
937   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938     ac_prev=pdfdir ;;
939   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940     pdfdir=$ac_optarg ;;
941
942   -psdir | --psdir | --psdi | --psd | --ps)
943     ac_prev=psdir ;;
944   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945     psdir=$ac_optarg ;;
946
947   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948   | -silent | --silent | --silen | --sile | --sil)
949     silent=yes ;;
950
951   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952     ac_prev=sbindir ;;
953   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954   | --sbi=* | --sb=*)
955     sbindir=$ac_optarg ;;
956
957   -sharedstatedir | --sharedstatedir | --sharedstatedi \
958   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959   | --sharedst | --shareds | --shared | --share | --shar \
960   | --sha | --sh)
961     ac_prev=sharedstatedir ;;
962   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965   | --sha=* | --sh=*)
966     sharedstatedir=$ac_optarg ;;
967
968   -site | --site | --sit)
969     ac_prev=site ;;
970   -site=* | --site=* | --sit=*)
971     site=$ac_optarg ;;
972
973   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974     ac_prev=srcdir ;;
975   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976     srcdir=$ac_optarg ;;
977
978   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979   | --syscon | --sysco | --sysc | --sys | --sy)
980     ac_prev=sysconfdir ;;
981   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983     sysconfdir=$ac_optarg ;;
984
985   -target | --target | --targe | --targ | --tar | --ta | --t)
986     ac_prev=target_alias ;;
987   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988     target_alias=$ac_optarg ;;
989
990   -v | -verbose | --verbose | --verbos | --verbo | --verb)
991     verbose=yes ;;
992
993   -version | --version | --versio | --versi | --vers | -V)
994     ac_init_version=: ;;
995
996   -with-* | --with-*)
997     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000       { echo "$as_me: error: invalid package name: $ac_package" >&2
1001    { (exit 1); exit 1; }; }
1002     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003     eval with_$ac_package=\$ac_optarg ;;
1004
1005   -without-* | --without-*)
1006     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009       { echo "$as_me: error: invalid package name: $ac_package" >&2
1010    { (exit 1); exit 1; }; }
1011     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012     eval with_$ac_package=no ;;
1013
1014   --x)
1015     # Obsolete; use --with-x.
1016     with_x=yes ;;
1017
1018   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019   | --x-incl | --x-inc | --x-in | --x-i)
1020     ac_prev=x_includes ;;
1021   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023     x_includes=$ac_optarg ;;
1024
1025   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027     ac_prev=x_libraries ;;
1028   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030     x_libraries=$ac_optarg ;;
1031
1032   -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034    { (exit 1); exit 1; }; }
1035     ;;
1036
1037   *=*)
1038     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042    { (exit 1); exit 1; }; }
1043     eval $ac_envvar=\$ac_optarg
1044     export $ac_envvar ;;
1045
1046   *)
1047     # FIXME: should be removed in autoconf 3.0.
1048     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052     ;;
1053
1054   esac
1055 done
1056
1057 if test -n "$ac_prev"; then
1058   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059   { echo "$as_me: error: missing argument to $ac_option" >&2
1060    { (exit 1); exit 1; }; }
1061 fi
1062
1063 # Be sure to have absolute directory names.
1064 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065                 datadir sysconfdir sharedstatedir localstatedir includedir \
1066                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067                 libdir localedir mandir
1068 do
1069   eval ac_val=\$$ac_var
1070   case $ac_val in
1071     [\\/$]* | ?:[\\/]* )  continue;;
1072     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073   esac
1074   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075    { (exit 1); exit 1; }; }
1076 done
1077
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1084
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087   if test "x$build_alias" = x; then
1088     cross_compiling=maybe
1089     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090     If a cross compiler is detected then cross compile mode will be used." >&2
1091   elif test "x$build_alias" != "x$host_alias"; then
1092     cross_compiling=yes
1093   fi
1094 fi
1095
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099 test "$silent" = yes && exec 6>/dev/null
1100
1101
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105   { echo "$as_me: error: Working directory cannot be determined" >&2
1106    { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108   { echo "$as_me: error: pwd does not report name of working directory" >&2
1109    { (exit 1); exit 1; }; }
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114   ac_srcdir_defaulted=yes
1115   # Try the directory containing this script, then the parent directory.
1116   ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118          X"$0" : 'X\(//\)[^/]' \| \
1119          X"$0" : 'X\(//\)$' \| \
1120          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123             s//\1/
1124             q
1125           }
1126           /^X\(\/\/\)[^/].*/{
1127             s//\1/
1128             q
1129           }
1130           /^X\(\/\/\)$/{
1131             s//\1/
1132             q
1133           }
1134           /^X\(\/\).*/{
1135             s//\1/
1136             q
1137           }
1138           s/.*/./; q'`
1139   srcdir=$ac_confdir
1140   if test ! -r "$srcdir/$ac_unique_file"; then
1141     srcdir=..
1142   fi
1143 else
1144   ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149    { (exit 1); exit 1; }; }
1150 fi
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154    { (exit 1); exit 1; }; }
1155         pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158   srcdir=.
1159 fi
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168   eval ac_env_${ac_var}_value=\$${ac_var}
1169   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1172
1173 #
1174 # Report the --help message.
1175 #
1176 if test "$ac_init_help" = "long"; then
1177   # Omit some internal or obsolete options to make the list less imposing.
1178   # This message is too long to be a string in the A/UX 3.1 sh.
1179   cat <<_ACEOF
1180 \`configure' configures ccache-swig 0.0 to adapt to many kinds of systems.
1181
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE.  See below for descriptions of some of the useful variables.
1186
1187 Defaults for the options are specified in brackets.
1188
1189 Configuration:
1190   -h, --help              display this help and exit
1191       --help=short        display options specific to this package
1192       --help=recursive    display the short help of all the included packages
1193   -V, --version           display version information and exit
1194   -q, --quiet, --silent   do not print \`checking...' messages
1195       --cache-file=FILE   cache test results in FILE [disabled]
1196   -C, --config-cache      alias for \`--cache-file=config.cache'
1197   -n, --no-create         do not create output files
1198       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1199
1200 Installation directories:
1201   --prefix=PREFIX         install architecture-independent files in PREFIX
1202                           [$ac_default_prefix]
1203   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1204                           [PREFIX]
1205
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1210
1211 For better control, use the options below.
1212
1213 Fine tuning of the installation directories:
1214   --bindir=DIR           user executables [EPREFIX/bin]
1215   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1216   --libexecdir=DIR       program executables [EPREFIX/libexec]
1217   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1218   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1219   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1220   --libdir=DIR           object code libraries [EPREFIX/lib]
1221   --includedir=DIR       C header files [PREFIX/include]
1222   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1223   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1224   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1225   --infodir=DIR          info documentation [DATAROOTDIR/info]
1226   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1227   --mandir=DIR           man documentation [DATAROOTDIR/man]
1228   --docdir=DIR           documentation root [DATAROOTDIR/doc/ccache-swig]
1229   --htmldir=DIR          html documentation [DOCDIR]
1230   --dvidir=DIR           dvi documentation [DOCDIR]
1231   --pdfdir=DIR           pdf documentation [DOCDIR]
1232   --psdir=DIR            ps documentation [DOCDIR]
1233 _ACEOF
1234
1235   cat <<\_ACEOF
1236
1237 Program names:
1238   --program-prefix=PREFIX            prepend PREFIX to installed program names
1239   --program-suffix=SUFFIX            append SUFFIX to installed program names
1240   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1241 _ACEOF
1242 fi
1243
1244 if test -n "$ac_init_help"; then
1245   case $ac_init_help in
1246      short | recursive ) echo "Configuration of ccache-swig 0.0:";;
1247    esac
1248   cat <<\_ACEOF
1249
1250 Optional Features:
1251   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1252   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1253   --enable-zlib           enable zlib support for ccache compression
1254
1255 Some influential environment variables:
1256   CC          C compiler command
1257   CFLAGS      C compiler flags
1258   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1259               nonstandard directory <lib dir>
1260   LIBS        libraries to pass to the linker, e.g. -l<library>
1261   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1262               you have headers in a nonstandard directory <include dir>
1263   CPP         C preprocessor
1264
1265 Use these variables to override the choices made by `configure' or to help
1266 it to find libraries and programs with nonstandard names/locations.
1267
1268 _ACEOF
1269 ac_status=$?
1270 fi
1271
1272 if test "$ac_init_help" = "recursive"; then
1273   # If there are subdirs, report their specific --help.
1274   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1275     test -d "$ac_dir" || continue
1276     ac_builddir=.
1277
1278 case "$ac_dir" in
1279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1280 *)
1281   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1282   # A ".." for each directory in $ac_dir_suffix.
1283   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1284   case $ac_top_builddir_sub in
1285   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1286   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1287   esac ;;
1288 esac
1289 ac_abs_top_builddir=$ac_pwd
1290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1291 # for backward compatibility:
1292 ac_top_builddir=$ac_top_build_prefix
1293
1294 case $srcdir in
1295   .)  # We are building in place.
1296     ac_srcdir=.
1297     ac_top_srcdir=$ac_top_builddir_sub
1298     ac_abs_top_srcdir=$ac_pwd ;;
1299   [\\/]* | ?:[\\/]* )  # Absolute name.
1300     ac_srcdir=$srcdir$ac_dir_suffix;
1301     ac_top_srcdir=$srcdir
1302     ac_abs_top_srcdir=$srcdir ;;
1303   *) # Relative name.
1304     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1305     ac_top_srcdir=$ac_top_build_prefix$srcdir
1306     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1307 esac
1308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1309
1310     cd "$ac_dir" || { ac_status=$?; continue; }
1311     # Check for guested configure.
1312     if test -f "$ac_srcdir/configure.gnu"; then
1313       echo &&
1314       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1315     elif test -f "$ac_srcdir/configure"; then
1316       echo &&
1317       $SHELL "$ac_srcdir/configure" --help=recursive
1318     else
1319       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1320     fi || ac_status=$?
1321     cd "$ac_pwd" || { ac_status=$?; break; }
1322   done
1323 fi
1324
1325 test -n "$ac_init_help" && exit $ac_status
1326 if $ac_init_version; then
1327   cat <<\_ACEOF
1328 ccache-swig configure 0.0
1329 generated by GNU Autoconf 2.61
1330
1331 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1332 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1333 This configure script is free software; the Free Software Foundation
1334 gives unlimited permission to copy, distribute and modify it.
1335 _ACEOF
1336   exit
1337 fi
1338 cat >config.log <<_ACEOF
1339 This file contains any messages produced by compilers while
1340 running configure, to aid debugging if configure makes a mistake.
1341
1342 It was created by ccache-swig $as_me 0.0, which was
1343 generated by GNU Autoconf 2.61.  Invocation command line was
1344
1345   $ $0 $@
1346
1347 _ACEOF
1348 exec 5>>config.log
1349 {
1350 cat <<_ASUNAME
1351 ## --------- ##
1352 ## Platform. ##
1353 ## --------- ##
1354
1355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1360
1361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1362 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1363
1364 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1365 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1367 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1368 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1369 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1370 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1371
1372 _ASUNAME
1373
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1376 do
1377   IFS=$as_save_IFS
1378   test -z "$as_dir" && as_dir=.
1379   echo "PATH: $as_dir"
1380 done
1381 IFS=$as_save_IFS
1382
1383 } >&5
1384
1385 cat >&5 <<_ACEOF
1386
1387
1388 ## ----------- ##
1389 ## Core tests. ##
1390 ## ----------- ##
1391
1392 _ACEOF
1393
1394
1395 # Keep a trace of the command line.
1396 # Strip out --no-create and --no-recursion so they do not pile up.
1397 # Strip out --silent because we don't want to record it for future runs.
1398 # Also quote any args containing shell meta-characters.
1399 # Make two passes to allow for proper duplicate-argument suppression.
1400 ac_configure_args=
1401 ac_configure_args0=
1402 ac_configure_args1=
1403 ac_must_keep_next=false
1404 for ac_pass in 1 2
1405 do
1406   for ac_arg
1407   do
1408     case $ac_arg in
1409     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1410     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1411     | -silent | --silent | --silen | --sile | --sil)
1412       continue ;;
1413     *\'*)
1414       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1415     esac
1416     case $ac_pass in
1417     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1418     2)
1419       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1420       if test $ac_must_keep_next = true; then
1421         ac_must_keep_next=false # Got value, back to normal.
1422       else
1423         case $ac_arg in
1424           *=* | --config-cache | -C | -disable-* | --disable-* \
1425           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1426           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1427           | -with-* | --with-* | -without-* | --without-* | --x)
1428             case "$ac_configure_args0 " in
1429               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1430             esac
1431             ;;
1432           -* ) ac_must_keep_next=true ;;
1433         esac
1434       fi
1435       ac_configure_args="$ac_configure_args '$ac_arg'"
1436       ;;
1437     esac
1438   done
1439 done
1440 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1441 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1442
1443 # When interrupted or exit'd, cleanup temporary files, and complete
1444 # config.log.  We remove comments because anyway the quotes in there
1445 # would cause problems or look ugly.
1446 # WARNING: Use '\'' to represent an apostrophe within the trap.
1447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1448 trap 'exit_status=$?
1449   # Save into config.log some information that might help in debugging.
1450   {
1451     echo
1452
1453     cat <<\_ASBOX
1454 ## ---------------- ##
1455 ## Cache variables. ##
1456 ## ---------------- ##
1457 _ASBOX
1458     echo
1459     # The following way of writing the cache mishandles newlines in values,
1460 (
1461   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1462     eval ac_val=\$$ac_var
1463     case $ac_val in #(
1464     *${as_nl}*)
1465       case $ac_var in #(
1466       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1467 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1468       esac
1469       case $ac_var in #(
1470       _ | IFS | as_nl) ;; #(
1471       *) $as_unset $ac_var ;;
1472       esac ;;
1473     esac
1474   done
1475   (set) 2>&1 |
1476     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1477     *${as_nl}ac_space=\ *)
1478       sed -n \
1479         "s/'\''/'\''\\\\'\'''\''/g;
1480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1481       ;; #(
1482     *)
1483       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1484       ;;
1485     esac |
1486     sort
1487 )
1488     echo
1489
1490     cat <<\_ASBOX
1491 ## ----------------- ##
1492 ## Output variables. ##
1493 ## ----------------- ##
1494 _ASBOX
1495     echo
1496     for ac_var in $ac_subst_vars
1497     do
1498       eval ac_val=\$$ac_var
1499       case $ac_val in
1500       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1501       esac
1502       echo "$ac_var='\''$ac_val'\''"
1503     done | sort
1504     echo
1505
1506     if test -n "$ac_subst_files"; then
1507       cat <<\_ASBOX
1508 ## ------------------- ##
1509 ## File substitutions. ##
1510 ## ------------------- ##
1511 _ASBOX
1512       echo
1513       for ac_var in $ac_subst_files
1514       do
1515         eval ac_val=\$$ac_var
1516         case $ac_val in
1517         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1518         esac
1519         echo "$ac_var='\''$ac_val'\''"
1520       done | sort
1521       echo
1522     fi
1523
1524     if test -s confdefs.h; then
1525       cat <<\_ASBOX
1526 ## ----------- ##
1527 ## confdefs.h. ##
1528 ## ----------- ##
1529 _ASBOX
1530       echo
1531       cat confdefs.h
1532       echo
1533     fi
1534     test "$ac_signal" != 0 &&
1535       echo "$as_me: caught signal $ac_signal"
1536     echo "$as_me: exit $exit_status"
1537   } >&5
1538   rm -f core *.core core.conftest.* &&
1539     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1540     exit $exit_status
1541 ' 0
1542 for ac_signal in 1 2 13 15; do
1543   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1544 done
1545 ac_signal=0
1546
1547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1548 rm -f -r conftest* confdefs.h
1549
1550 # Predefined preprocessor variables.
1551
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE_NAME "$PACKAGE_NAME"
1554 _ACEOF
1555
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1559 _ACEOF
1560
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_STRING "$PACKAGE_STRING"
1569 _ACEOF
1570
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1574 _ACEOF
1575
1576
1577 # Let the site file select an alternate cache file if it wants to.
1578 # Prefer explicitly selected file to automatically selected ones.
1579 if test -n "$CONFIG_SITE"; then
1580   set x "$CONFIG_SITE"
1581 elif test "x$prefix" != xNONE; then
1582   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1583 else
1584   set x "$ac_default_prefix/share/config.site" \
1585         "$ac_default_prefix/etc/config.site"
1586 fi
1587 shift
1588 for ac_site_file
1589 do
1590   if test -r "$ac_site_file"; then
1591     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1592 echo "$as_me: loading site script $ac_site_file" >&6;}
1593     sed 's/^/| /' "$ac_site_file" >&5
1594     . "$ac_site_file"
1595   fi
1596 done
1597
1598 if test -r "$cache_file"; then
1599   # Some versions of bash will fail to source /dev/null (special
1600   # files actually), so we avoid doing that.
1601   if test -f "$cache_file"; then
1602     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1603 echo "$as_me: loading cache $cache_file" >&6;}
1604     case $cache_file in
1605       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1606       *)                      . "./$cache_file";;
1607     esac
1608   fi
1609 else
1610   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1611 echo "$as_me: creating cache $cache_file" >&6;}
1612   >$cache_file
1613 fi
1614
1615 # Check that the precious variables saved in the cache have kept the same
1616 # value.
1617 ac_cache_corrupted=false
1618 for ac_var in $ac_precious_vars; do
1619   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1620   eval ac_new_set=\$ac_env_${ac_var}_set
1621   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1622   eval ac_new_val=\$ac_env_${ac_var}_value
1623   case $ac_old_set,$ac_new_set in
1624     set,)
1625       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1626 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1627       ac_cache_corrupted=: ;;
1628     ,set)
1629       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1630 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1631       ac_cache_corrupted=: ;;
1632     ,);;
1633     *)
1634       if test "x$ac_old_val" != "x$ac_new_val"; then
1635         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1636 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1637         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1638 echo "$as_me:   former value:  $ac_old_val" >&2;}
1639         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1640 echo "$as_me:   current value: $ac_new_val" >&2;}
1641         ac_cache_corrupted=:
1642       fi;;
1643   esac
1644   # Pass precious variables to config.status.
1645   if test "$ac_new_set" = set; then
1646     case $ac_new_val in
1647     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1648     *) ac_arg=$ac_var=$ac_new_val ;;
1649     esac
1650     case " $ac_configure_args " in
1651       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1652       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1653     esac
1654   fi
1655 done
1656 if $ac_cache_corrupted; then
1657   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1658 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1659   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1660 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1661    { (exit 1); exit 1; }; }
1662 fi
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688 ac_ext=c
1689 ac_cpp='$CPP $CPPFLAGS'
1690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693
1694  # Get version from SWIG in ccache_swig_config.h.in
1695
1696
1697
1698 { echo "$as_me:$LINENO: Configuring ccache" >&5
1699 echo "$as_me: Configuring ccache" >&6;}
1700
1701 ac_config_headers="$ac_config_headers config.h"
1702
1703
1704 ac_ext=c
1705 ac_cpp='$CPP $CPPFLAGS'
1706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1709 if test -n "$ac_tool_prefix"; then
1710   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   if test -n "$CC"; then
1718   ac_cv_prog_CC="$CC" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723   IFS=$as_save_IFS
1724   test -z "$as_dir" && as_dir=.
1725   for ac_exec_ext in '' $ac_executable_extensions; do
1726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1727     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729     break 2
1730   fi
1731 done
1732 done
1733 IFS=$as_save_IFS
1734
1735 fi
1736 fi
1737 CC=$ac_cv_prog_CC
1738 if test -n "$CC"; then
1739   { echo "$as_me:$LINENO: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6; }
1741 else
1742   { echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6; }
1744 fi
1745
1746
1747 fi
1748 if test -z "$ac_cv_prog_CC"; then
1749   ac_ct_CC=$CC
1750   # Extract the first word of "gcc", so it can be a program name with args.
1751 set dummy gcc; ac_word=$2
1752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$ac_ct_CC"; then
1758   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1767     ac_cv_prog_ac_ct_CC="gcc"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773 IFS=$as_save_IFS
1774
1775 fi
1776 fi
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6; }
1781 else
1782   { echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6; }
1784 fi
1785
1786   if test "x$ac_ct_CC" = x; then
1787     CC=""
1788   else
1789     case $cross_compiling:$ac_tool_warned in
1790 yes:)
1791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1792 whose name does not start with the host triplet.  If you think this
1793 configuration is useful to you, please write to autoconf@gnu.org." >&5
1794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1795 whose name does not start with the host triplet.  If you think this
1796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1797 ac_tool_warned=yes ;;
1798 esac
1799     CC=$ac_ct_CC
1800   fi
1801 else
1802   CC="$ac_cv_prog_CC"
1803 fi
1804
1805 if test -z "$CC"; then
1806           if test -n "$ac_tool_prefix"; then
1807     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}cc; ac_word=$2
1809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$CC"; then
1815   ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1824     ac_cv_prog_CC="${ac_tool_prefix}cc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830 IFS=$as_save_IFS
1831
1832 fi
1833 fi
1834 CC=$ac_cv_prog_CC
1835 if test -n "$CC"; then
1836   { echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6; }
1838 else
1839   { echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6; }
1841 fi
1842
1843
1844   fi
1845 fi
1846 if test -z "$CC"; then
1847   # Extract the first word of "cc", so it can be a program name with args.
1848 set dummy cc; ac_word=$2
1849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$CC"; then
1855   ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857   ac_prog_rejected=no
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1865     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1866        ac_prog_rejected=yes
1867        continue
1868      fi
1869     ac_cv_prog_CC="cc"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875 IFS=$as_save_IFS
1876
1877 if test $ac_prog_rejected = yes; then
1878   # We found a bogon in the path, so make sure we never use it.
1879   set dummy $ac_cv_prog_CC
1880   shift
1881   if test $# != 0; then
1882     # We chose a different compiler from the bogus one.
1883     # However, it has the same basename, so the bogon will be chosen
1884     # first if we set CC to just the basename; use the full file name.
1885     shift
1886     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1887   fi
1888 fi
1889 fi
1890 fi
1891 CC=$ac_cv_prog_CC
1892 if test -n "$CC"; then
1893   { echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6; }
1895 else
1896   { echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6; }
1898 fi
1899
1900
1901 fi
1902 if test -z "$CC"; then
1903   if test -n "$ac_tool_prefix"; then
1904   for ac_prog in cl.exe
1905   do
1906     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1923     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929 IFS=$as_save_IFS
1930
1931 fi
1932 fi
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935   { echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6; }
1937 else
1938   { echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6; }
1940 fi
1941
1942
1943     test -n "$CC" && break
1944   done
1945 fi
1946 if test -z "$CC"; then
1947   ac_ct_CC=$CC
1948   for ac_prog in cl.exe
1949 do
1950   # Extract the first word of "$ac_prog", so it can be a program name with args.
1951 set dummy $ac_prog; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$ac_ct_CC"; then
1958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967     ac_cv_prog_ac_ct_CC="$ac_prog"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973 IFS=$as_save_IFS
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6; }
1981 else
1982   { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1984 fi
1985
1986
1987   test -n "$ac_ct_CC" && break
1988 done
1989
1990   if test "x$ac_ct_CC" = x; then
1991     CC=""
1992   else
1993     case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet.  If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet.  If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003     CC=$ac_ct_CC
2004   fi
2005 fi
2006
2007 fi
2008
2009
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014    { (exit 1); exit 1; }; }
2015
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO: checking for C compiler version" >&5
2018 ac_compiler=`set X $ac_compile; echo $2`
2019 { (ac_try="$ac_compiler --version >&5"
2020 case "(($ac_try" in
2021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022   *) ac_try_echo=$ac_try;;
2023 esac
2024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2025   (eval "$ac_compiler --version >&5") 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }
2029 { (ac_try="$ac_compiler -v >&5"
2030 case "(($ac_try" in
2031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032   *) ac_try_echo=$ac_try;;
2033 esac
2034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2035   (eval "$ac_compiler -v >&5") 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039 { (ac_try="$ac_compiler -V >&5"
2040 case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2045   (eval "$ac_compiler -V >&5") 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }
2049
2050 cat >conftest.$ac_ext <<_ACEOF
2051 /* confdefs.h.  */
2052 _ACEOF
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h.  */
2056
2057 int
2058 main ()
2059 {
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 ac_clean_files_save=$ac_clean_files
2066 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2067 # Try to create an executable without -o first, disregard a.out.
2068 # It will help us diagnose broken compilers, and finding out an intuition
2069 # of exeext.
2070 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2071 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2072 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2073 #
2074 # List of possible output files, starting from the most likely.
2075 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2076 # only as a last resort.  b.out is created by i960 compilers.
2077 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2078 #
2079 # The IRIX 6 linker writes into existing files which may not be
2080 # executable, retaining their permissions.  Remove them first so a
2081 # subsequent execution test works.
2082 ac_rmfiles=
2083 for ac_file in $ac_files
2084 do
2085   case $ac_file in
2086     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2087     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2088   esac
2089 done
2090 rm -f $ac_rmfiles
2091
2092 if { (ac_try="$ac_link_default"
2093 case "(($ac_try" in
2094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095   *) ac_try_echo=$ac_try;;
2096 esac
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098   (eval "$ac_link_default") 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; then
2102   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2103 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2104 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2105 # so that the user can short-circuit this test for compilers unknown to
2106 # Autoconf.
2107 for ac_file in $ac_files ''
2108 do
2109   test -f "$ac_file" || continue
2110   case $ac_file in
2111     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2112         ;;
2113     [ab].out )
2114         # We found the default executable, but exeext='' is most
2115         # certainly right.
2116         break;;
2117     *.* )
2118         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2119         then :; else
2120            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         fi
2122         # We set ac_cv_exeext here because the later test for it is not
2123         # safe: cross compilers may not add the suffix if given an `-o'
2124         # argument, so we may need to know it at that point already.
2125         # Even if this section looks crufty: it has the advantage of
2126         # actually working.
2127         break;;
2128     * )
2129         break;;
2130   esac
2131 done
2132 test "$ac_cv_exeext" = no && ac_cv_exeext=
2133
2134 else
2135   ac_file=''
2136 fi
2137
2138 { echo "$as_me:$LINENO: result: $ac_file" >&5
2139 echo "${ECHO_T}$ac_file" >&6; }
2140 if test -z "$ac_file"; then
2141   echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2145 See \`config.log' for more details." >&5
2146 echo "$as_me: error: C compiler cannot create executables
2147 See \`config.log' for more details." >&2;}
2148    { (exit 77); exit 77; }; }
2149 fi
2150
2151 ac_exeext=$ac_cv_exeext
2152
2153 # Check that the compiler produces executables we can run.  If not, either
2154 # the compiler is broken, or we cross compile.
2155 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2156 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2158 # If not cross compiling, check that we can run a simple program.
2159 if test "$cross_compiling" != yes; then
2160   if { ac_try='./$ac_file'
2161   { (case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166   (eval "$ac_try") 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; }; then
2170     cross_compiling=no
2171   else
2172     if test "$cross_compiling" = maybe; then
2173         cross_compiling=yes
2174     else
2175         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot run C compiled programs.
2179 If you meant to cross compile, use \`--host'.
2180 See \`config.log' for more details." >&2;}
2181    { (exit 1); exit 1; }; }
2182     fi
2183   fi
2184 fi
2185 { echo "$as_me:$LINENO: result: yes" >&5
2186 echo "${ECHO_T}yes" >&6; }
2187
2188 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2189 ac_clean_files=$ac_clean_files_save
2190 # Check that the compiler produces executables we can run.  If not, either
2191 # the compiler is broken, or we cross compile.
2192 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2193 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2194 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2195 echo "${ECHO_T}$cross_compiling" >&6; }
2196
2197 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2198 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2199 if { (ac_try="$ac_link"
2200 case "(($ac_try" in
2201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202   *) ac_try_echo=$ac_try;;
2203 esac
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205   (eval "$ac_link") 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; then
2209   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2211 # work properly (i.e., refer to `conftest.exe'), while it won't with
2212 # `rm'.
2213 for ac_file in conftest.exe conftest conftest.*; do
2214   test -f "$ac_file" || continue
2215   case $ac_file in
2216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2217     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218           break;;
2219     * ) break;;
2220   esac
2221 done
2222 else
2223   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&2;}
2227    { (exit 1); exit 1; }; }
2228 fi
2229
2230 rm -f conftest$ac_cv_exeext
2231 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2233
2234 rm -f conftest.$ac_ext
2235 EXEEXT=$ac_cv_exeext
2236 ac_exeext=$EXEEXT
2237 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2239 if test "${ac_cv_objext+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.o conftest.obj
2258 if { (ac_try="$ac_compile"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_compile") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   for ac_file in conftest.o conftest.obj conftest.*; do
2269   test -f "$ac_file" || continue;
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2273        break;;
2274   esac
2275 done
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&2;}
2284    { (exit 1); exit 1; }; }
2285 fi
2286
2287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2288 fi
2289 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2290 echo "${ECHO_T}$ac_cv_objext" >&6; }
2291 OBJEXT=$ac_cv_objext
2292 ac_objext=$OBJEXT
2293 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h.  */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h.  */
2304
2305 int
2306 main ()
2307 {
2308 #ifndef __GNUC__
2309        choke me
2310 #endif
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (ac_try="$ac_compile"
2318 case "(($ac_try" in
2319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320   *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323   (eval "$ac_compile") 2>conftest.er1
2324   ac_status=$?
2325   grep -v '^ *+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } && {
2330          test -z "$ac_c_werror_flag" ||
2331          test ! -s conftest.err
2332        } && test -s conftest.$ac_objext; then
2333   ac_compiler_gnu=yes
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338         ac_compiler_gnu=no
2339 fi
2340
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2343
2344 fi
2345 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2346 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2347 GCC=`test $ac_compiler_gnu = yes && echo yes`
2348 ac_test_CFLAGS=${CFLAGS+set}
2349 ac_save_CFLAGS=$CFLAGS
2350 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2351 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_cc_g+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   ac_save_c_werror_flag=$ac_c_werror_flag
2356    ac_c_werror_flag=yes
2357    ac_cv_prog_cc_g=no
2358    CFLAGS="-g"
2359    cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365
2366 int
2367 main ()
2368 {
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381   (eval "$ac_compile") 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } && {
2388          test -z "$ac_c_werror_flag" ||
2389          test ! -s conftest.err
2390        } && test -s conftest.$ac_objext; then
2391   ac_cv_prog_cc_g=yes
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396         CFLAGS=""
2397       cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } && {
2426          test -z "$ac_c_werror_flag" ||
2427          test ! -s conftest.err
2428        } && test -s conftest.$ac_objext; then
2429   :
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434         ac_c_werror_flag=$ac_save_c_werror_flag
2435          CFLAGS="-g"
2436          cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442
2443 int
2444 main ()
2445 {
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_compile") 2>conftest.er1
2459   ac_status=$?
2460   grep -v '^ *+' conftest.er1 >conftest.err
2461   rm -f conftest.er1
2462   cat conftest.err >&5
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); } && {
2465          test -z "$ac_c_werror_flag" ||
2466          test ! -s conftest.err
2467        } && test -s conftest.$ac_objext; then
2468   ac_cv_prog_cc_g=yes
2469 else
2470   echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473
2474 fi
2475
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 fi
2481
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483    ac_c_werror_flag=$ac_save_c_werror_flag
2484 fi
2485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2487 if test "$ac_test_CFLAGS" = set; then
2488   CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490   if test "$GCC" = yes; then
2491     CFLAGS="-g -O2"
2492   else
2493     CFLAGS="-g"
2494   fi
2495 else
2496   if test "$GCC" = yes; then
2497     CFLAGS="-O2"
2498   else
2499     CFLAGS=
2500   fi
2501 fi
2502 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2503 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_cc_c89+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   ac_cv_prog_cc_c89=no
2508 ac_save_CC=$CC
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515 #include <stdarg.h>
2516 #include <stdio.h>
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2523      char **p;
2524      int i;
2525 {
2526   return p[i];
2527 }
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2529 {
2530   char *s;
2531   va_list v;
2532   va_start (v,p);
2533   s = g (p, va_arg (v,int));
2534   va_end (v);
2535   return s;
2536 }
2537
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2539    function prototypes and stuff, but not '\xHH' hex character constants.
2540    These don't provoke an error unfortunately, instead are silently treated
2541    as 'x'.  The following induces an error, until -std is added to get
2542    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2543    array size at least.  It's necessary to write '\x00'==0 to get something
2544    that's true only with -std.  */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2546
2547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2548    inside strings and character constants.  */
2549 #define FOO(x) 'x'
2550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2551
2552 int test (int i, double x);
2553 struct s1 {int (*f) (int a);};
2554 struct s2 {int (*f) (double a);};
2555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556 int argc;
2557 char **argv;
2558 int
2559 main ()
2560 {
2561 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2567         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2568 do
2569   CC="$ac_save_CC $ac_arg"
2570   rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2572 case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_compile") 2>conftest.er1
2578   ac_status=$?
2579   grep -v '^ *+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } && {
2584          test -z "$ac_c_werror_flag" ||
2585          test ! -s conftest.err
2586        } && test -s conftest.$ac_objext; then
2587   ac_cv_prog_cc_c89=$ac_arg
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592
2593 fi
2594
2595 rm -f core conftest.err conftest.$ac_objext
2596   test "x$ac_cv_prog_cc_c89" != "xno" && break
2597 done
2598 rm -f conftest.$ac_ext
2599 CC=$ac_save_CC
2600
2601 fi
2602 # AC_CACHE_VAL
2603 case "x$ac_cv_prog_cc_c89" in
2604   x)
2605     { echo "$as_me:$LINENO: result: none needed" >&5
2606 echo "${ECHO_T}none needed" >&6; } ;;
2607   xno)
2608     { echo "$as_me:$LINENO: result: unsupported" >&5
2609 echo "${ECHO_T}unsupported" >&6; } ;;
2610   *)
2611     CC="$CC $ac_cv_prog_cc_c89"
2612     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2614 esac
2615
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2630 # On Suns, sometimes $CPP names a directory.
2631 if test -n "$CPP" && test -d "$CPP"; then
2632   CPP=
2633 fi
2634 if test -z "$CPP"; then
2635   if test "${ac_cv_prog_CPP+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638       # Double quotes because CPP needs to be expanded
2639     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2640     do
2641       ac_preproc_ok=false
2642 for ac_c_preproc_warn_flag in '' yes
2643 do
2644   # Use a header file that comes with gcc, so configuring glibc
2645   # with a fresh cross-compiler works.
2646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647   # <limits.h> exists even on freestanding compilers.
2648   # On the NeXT, cc -E runs the code through the compiler's parser,
2649   # not just through cpp. "Syntax error" is here to catch this case.
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656 #ifdef __STDC__
2657 # include <limits.h>
2658 #else
2659 # include <assert.h>
2660 #endif
2661                      Syntax error
2662 _ACEOF
2663 if { (ac_try="$ac_cpp conftest.$ac_ext"
2664 case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2670   ac_status=$?
2671   grep -v '^ *+' conftest.er1 >conftest.err
2672   rm -f conftest.er1
2673   cat conftest.err >&5
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } >/dev/null && {
2676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2677          test ! -s conftest.err
2678        }; then
2679   :
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684   # Broken: fails on valid input.
2685 continue
2686 fi
2687
2688 rm -f conftest.err conftest.$ac_ext
2689
2690   # OK, works on sane cases.  Now check whether nonexistent headers
2691   # can be detected and how.
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 <ac_nonexistent.h>
2699 _ACEOF
2700 if { (ac_try="$ac_cpp conftest.$ac_ext"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } >/dev/null && {
2713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2714          test ! -s conftest.err
2715        }; then
2716   # Broken: success on invalid input.
2717 continue
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722   # Passes both tests.
2723 ac_preproc_ok=:
2724 break
2725 fi
2726
2727 rm -f conftest.err conftest.$ac_ext
2728
2729 done
2730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2731 rm -f conftest.err conftest.$ac_ext
2732 if $ac_preproc_ok; then
2733   break
2734 fi
2735
2736     done
2737     ac_cv_prog_CPP=$CPP
2738
2739 fi
2740   CPP=$ac_cv_prog_CPP
2741 else
2742   ac_cv_prog_CPP=$CPP
2743 fi
2744 { echo "$as_me:$LINENO: result: $CPP" >&5
2745 echo "${ECHO_T}$CPP" >&6; }
2746 ac_preproc_ok=false
2747 for ac_c_preproc_warn_flag in '' yes
2748 do
2749   # Use a header file that comes with gcc, so configuring glibc
2750   # with a fresh cross-compiler works.
2751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2752   # <limits.h> exists even on freestanding compilers.
2753   # On the NeXT, cc -E runs the code through the compiler's parser,
2754   # not just through cpp. "Syntax error" is here to catch this case.
2755   cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 #ifdef __STDC__
2762 # include <limits.h>
2763 #else
2764 # include <assert.h>
2765 #endif
2766                      Syntax error
2767 _ACEOF
2768 if { (ac_try="$ac_cpp conftest.$ac_ext"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } >/dev/null && {
2781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2782          test ! -s conftest.err
2783        }; then
2784   :
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789   # Broken: fails on valid input.
2790 continue
2791 fi
2792
2793 rm -f conftest.err conftest.$ac_ext
2794
2795   # OK, works on sane cases.  Now check whether nonexistent headers
2796   # can be detected and how.
2797   cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803 #include <ac_nonexistent.h>
2804 _ACEOF
2805 if { (ac_try="$ac_cpp conftest.$ac_ext"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } >/dev/null && {
2818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2819          test ! -s conftest.err
2820        }; then
2821   # Broken: success on invalid input.
2822 continue
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827   # Passes both tests.
2828 ac_preproc_ok=:
2829 break
2830 fi
2831
2832 rm -f conftest.err conftest.$ac_ext
2833
2834 done
2835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2836 rm -f conftest.err conftest.$ac_ext
2837 if $ac_preproc_ok; then
2838   :
2839 else
2840   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2843 See \`config.log' for more details." >&2;}
2844    { (exit 1); exit 1; }; }
2845 fi
2846
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852
2853 ac_aux_dir=
2854 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2855   if test -f "$ac_dir/install-sh"; then
2856     ac_aux_dir=$ac_dir
2857     ac_install_sh="$ac_aux_dir/install-sh -c"
2858     break
2859   elif test -f "$ac_dir/install.sh"; then
2860     ac_aux_dir=$ac_dir
2861     ac_install_sh="$ac_aux_dir/install.sh -c"
2862     break
2863   elif test -f "$ac_dir/shtool"; then
2864     ac_aux_dir=$ac_dir
2865     ac_install_sh="$ac_aux_dir/shtool install -c"
2866     break
2867   fi
2868 done
2869 if test -z "$ac_aux_dir"; then
2870   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2871 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2872    { (exit 1); exit 1; }; }
2873 fi
2874
2875 # These three variables are undocumented and unsupported,
2876 # and are intended to be withdrawn in a future Autoconf release.
2877 # They can cause serious problems if a builder's source tree is in a directory
2878 # whose full name contains unusual characters.
2879 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2880 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2881 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2882
2883
2884 # Find a good install program.  We prefer a C program (faster),
2885 # so one script is as good as another.  But avoid the broken or
2886 # incompatible versions:
2887 # SysV /etc/install, /usr/sbin/install
2888 # SunOS /usr/etc/install
2889 # IRIX /sbin/install
2890 # AIX /bin/install
2891 # AmigaOS /C/install, which installs bootblocks on floppy discs
2892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2895 # OS/2's system install, which has a completely different semantic
2896 # ./install, which can be erroneously created by make from ./install.sh.
2897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2899 if test -z "$INSTALL"; then
2900 if test "${ac_cv_path_install+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908   # Account for people who put trailing slashes in PATH elements.
2909 case $as_dir/ in
2910   ./ | .// | /cC/* | \
2911   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2912   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2913   /usr/ucb/* ) ;;
2914   *)
2915     # OSF1 and SCO ODT 3.0 have their own names for install.
2916     # Don't use installbsd from OSF since it installs stuff as root
2917     # by default.
2918     for ac_prog in ginstall scoinst install; do
2919       for ac_exec_ext in '' $ac_executable_extensions; do
2920         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2921           if test $ac_prog = install &&
2922             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923             # AIX install.  It has an incompatible calling convention.
2924             :
2925           elif test $ac_prog = install &&
2926             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927             # program-specific install script used by HP pwplus--don't use.
2928             :
2929           else
2930             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2931             break 3
2932           fi
2933         fi
2934       done
2935     done
2936     ;;
2937 esac
2938 done
2939 IFS=$as_save_IFS
2940
2941
2942 fi
2943   if test "${ac_cv_path_install+set}" = set; then
2944     INSTALL=$ac_cv_path_install
2945   else
2946     # As a last resort, use the slow shell script.  Don't cache a
2947     # value for INSTALL within a source directory, because that will
2948     # break other packages using the cache if that directory is
2949     # removed, or if the value is a relative name.
2950     INSTALL=$ac_install_sh
2951   fi
2952 fi
2953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2954 echo "${ECHO_T}$INSTALL" >&6; }
2955
2956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2957 # It thinks the first close brace ends the variable substitution.
2958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2959
2960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2961
2962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2963
2964 test "$program_prefix" != NONE &&
2965   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2966 # Use a double $ so make ignores it.
2967 test "$program_suffix" != NONE &&
2968   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2969 # Double any \ or $.  echo might interpret backslashes.
2970 # By default was `s,x,x', remove it if useless.
2971 cat <<\_ACEOF >conftest.sed
2972 s/[\\$]/&&/g;s/;s,x,x,$//
2973 _ACEOF
2974 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2975 rm -f conftest.sed
2976  # for program_transform_name
2977
2978
2979 cat >>confdefs.h <<\_ACEOF
2980 #define _GNU_SOURCE 1
2981 _ACEOF
2982
2983
2984 # If GCC, turn on warnings.
2985 if test "x$GCC" = "xyes"
2986 then
2987         CFLAGS="$CFLAGS -Wall -W"
2988 else
2989         CFLAGS="$CFLAGS -O"
2990 fi
2991
2992
2993
2994
2995
2996
2997
2998 ac_header_dirent=no
2999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3000   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <sys/types.h>
3013 #include <$ac_hdr>
3014
3015 int
3016 main ()
3017 {
3018 if ((DIR *) 0)
3019 return 0;
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } && {
3038          test -z "$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        } && test -s conftest.$ac_objext; then
3041   eval "$as_ac_Header=yes"
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046         eval "$as_ac_Header=no"
3047 fi
3048
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 fi
3051 ac_res=`eval echo '${'$as_ac_Header'}'`
3052                { echo "$as_me:$LINENO: result: $ac_res" >&5
3053 echo "${ECHO_T}$ac_res" >&6; }
3054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3055   cat >>confdefs.h <<_ACEOF
3056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3057 _ACEOF
3058
3059 ac_header_dirent=$ac_hdr; break
3060 fi
3061
3062 done
3063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3064 if test $ac_header_dirent = dirent.h; then
3065   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3067 if test "${ac_cv_search_opendir+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   ac_func_search_save_LIBS=$LIBS
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077
3078 /* Override any GCC internal prototype to avoid an error.
3079    Use char because int might match the return type of a GCC
3080    builtin and then its argument prototype would still apply.  */
3081 #ifdef __cplusplus
3082 extern "C"
3083 #endif
3084 char opendir ();
3085 int
3086 main ()
3087 {
3088 return opendir ();
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 for ac_lib in '' dir; do
3094   if test -z "$ac_lib"; then
3095     ac_res="none required"
3096   else
3097     ac_res=-l$ac_lib
3098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3099   fi
3100   rm -f conftest.$ac_objext conftest$ac_exeext
3101 if { (ac_try="$ac_link"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_link") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } && {
3114          test -z "$ac_c_werror_flag" ||
3115          test ! -s conftest.err
3116        } && test -s conftest$ac_exeext &&
3117        $as_test_x conftest$ac_exeext; then
3118   ac_cv_search_opendir=$ac_res
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3127       conftest$ac_exeext
3128   if test "${ac_cv_search_opendir+set}" = set; then
3129   break
3130 fi
3131 done
3132 if test "${ac_cv_search_opendir+set}" = set; then
3133   :
3134 else
3135   ac_cv_search_opendir=no
3136 fi
3137 rm conftest.$ac_ext
3138 LIBS=$ac_func_search_save_LIBS
3139 fi
3140 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3141 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3142 ac_res=$ac_cv_search_opendir
3143 if test "$ac_res" != no; then
3144   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3145
3146 fi
3147
3148 else
3149   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3150 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3151 if test "${ac_cv_search_opendir+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   ac_func_search_save_LIBS=$LIBS
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 /* Override any GCC internal prototype to avoid an error.
3163    Use char because int might match the return type of a GCC
3164    builtin and then its argument prototype would still apply.  */
3165 #ifdef __cplusplus
3166 extern "C"
3167 #endif
3168 char opendir ();
3169 int
3170 main ()
3171 {
3172 return opendir ();
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 for ac_lib in '' x; do
3178   if test -z "$ac_lib"; then
3179     ac_res="none required"
3180   else
3181     ac_res=-l$ac_lib
3182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3183   fi
3184   rm -f conftest.$ac_objext conftest$ac_exeext
3185 if { (ac_try="$ac_link"
3186 case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_link") 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } && {
3198          test -z "$ac_c_werror_flag" ||
3199          test ! -s conftest.err
3200        } && test -s conftest$ac_exeext &&
3201        $as_test_x conftest$ac_exeext; then
3202   ac_cv_search_opendir=$ac_res
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3211       conftest$ac_exeext
3212   if test "${ac_cv_search_opendir+set}" = set; then
3213   break
3214 fi
3215 done
3216 if test "${ac_cv_search_opendir+set}" = set; then
3217   :
3218 else
3219   ac_cv_search_opendir=no
3220 fi
3221 rm conftest.$ac_ext
3222 LIBS=$ac_func_search_save_LIBS
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3225 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3226 ac_res=$ac_cv_search_opendir
3227 if test "$ac_res" != no; then
3228   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3229
3230 fi
3231
3232 fi
3233
3234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
3236 if test "${ac_cv_header_time+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #include <sys/types.h>
3246 #include <sys/time.h>
3247 #include <time.h>
3248
3249 int
3250 main ()
3251 {
3252 if ((struct tm *) 0)
3253 return 0;
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_compile") 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } && {
3272          test -z "$ac_c_werror_flag" ||
3273          test ! -s conftest.err
3274        } && test -s conftest.$ac_objext; then
3275   ac_cv_header_time=yes
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280         ac_cv_header_time=no
3281 fi
3282
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3286 echo "${ECHO_T}$ac_cv_header_time" >&6; }
3287 if test $ac_cv_header_time = yes; then
3288
3289 cat >>confdefs.h <<\_ACEOF
3290 #define TIME_WITH_SYS_TIME 1
3291 _ACEOF
3292
3293 fi
3294
3295 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3296 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3297 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h.  */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h.  */
3306 #include <sys/types.h>
3307 #include <sys/wait.h>
3308 #ifndef WEXITSTATUS
3309 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3310 #endif
3311 #ifndef WIFEXITED
3312 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3313 #endif
3314
3315 int
3316 main ()
3317 {
3318   int s;
3319   wait (&s);
3320   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } && {
3339          test -z "$ac_c_werror_flag" ||
3340          test ! -s conftest.err
3341        } && test -s conftest.$ac_objext; then
3342   ac_cv_header_sys_wait_h=yes
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347         ac_cv_header_sys_wait_h=no
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3353 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3354 if test $ac_cv_header_sys_wait_h = yes; then
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define HAVE_SYS_WAIT_H 1
3358 _ACEOF
3359
3360 fi
3361
3362
3363
3364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   # Extract the first word of "grep ggrep" to use in msg output
3370 if test -z "$GREP"; then
3371 set dummy grep ggrep; ac_prog_name=$2
3372 if test "${ac_cv_path_GREP+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   ac_path_GREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382   for ac_prog in grep ggrep; do
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3386     # Check for GNU ac_path_GREP and select it if it is found.
3387   # Check for GNU $ac_path_GREP
3388 case `"$ac_path_GREP" --version 2>&1` in
3389 *GNU*)
3390   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391 *)
3392   ac_count=0
3393   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3394   while :
3395   do
3396     cat "conftest.in" "conftest.in" >"conftest.tmp"
3397     mv "conftest.tmp" "conftest.in"
3398     cp "conftest.in" "conftest.nl"
3399     echo 'GREP' >> "conftest.nl"
3400     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402     ac_count=`expr $ac_count + 1`
3403     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404       # Best one so far, save it but keep looking for a better one
3405       ac_cv_path_GREP="$ac_path_GREP"
3406       ac_path_GREP_max=$ac_count
3407     fi
3408     # 10*(2^10) chars as input seems more than enough
3409     test $ac_count -gt 10 && break
3410   done
3411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412 esac
3413
3414
3415     $ac_path_GREP_found && break 3
3416   done
3417 done
3418
3419 done
3420 IFS=$as_save_IFS
3421
3422
3423 fi
3424
3425 GREP="$ac_cv_path_GREP"
3426 if test -z "$GREP"; then
3427   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3429    { (exit 1); exit 1; }; }
3430 fi
3431
3432 else
3433   ac_cv_path_GREP=$GREP
3434 fi
3435
3436
3437 fi
3438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3440  GREP="$ac_cv_path_GREP"
3441
3442
3443 { echo "$as_me:$LINENO: checking for egrep" >&5
3444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3445 if test "${ac_cv_path_EGREP+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3449    then ac_cv_path_EGREP="$GREP -E"
3450    else
3451      # Extract the first word of "egrep" to use in msg output
3452 if test -z "$EGREP"; then
3453 set dummy egrep; ac_prog_name=$2
3454 if test "${ac_cv_path_EGREP+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   ac_path_EGREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464   for ac_prog in egrep; do
3465   for ac_exec_ext in '' $ac_executable_extensions; do
3466     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3467     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3468     # Check for GNU ac_path_EGREP and select it if it is found.
3469   # Check for GNU $ac_path_EGREP
3470 case `"$ac_path_EGREP" --version 2>&1` in
3471 *GNU*)
3472   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3473 *)
3474   ac_count=0
3475   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3476   while :
3477   do
3478     cat "conftest.in" "conftest.in" >"conftest.tmp"
3479     mv "conftest.tmp" "conftest.in"
3480     cp "conftest.in" "conftest.nl"
3481     echo 'EGREP' >> "conftest.nl"
3482     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484     ac_count=`expr $ac_count + 1`
3485     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3486       # Best one so far, save it but keep looking for a better one
3487       ac_cv_path_EGREP="$ac_path_EGREP"
3488       ac_path_EGREP_max=$ac_count
3489     fi
3490     # 10*(2^10) chars as input seems more than enough
3491     test $ac_count -gt 10 && break
3492   done
3493   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 esac
3495
3496
3497     $ac_path_EGREP_found && break 3
3498   done
3499 done
3500
3501 done
3502 IFS=$as_save_IFS
3503
3504
3505 fi
3506
3507 EGREP="$ac_cv_path_EGREP"
3508 if test -z "$EGREP"; then
3509   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3511    { (exit 1); exit 1; }; }
3512 fi
3513
3514 else
3515   ac_cv_path_EGREP=$EGREP
3516 fi
3517
3518
3519    fi
3520 fi
3521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3523  EGREP="$ac_cv_path_EGREP"
3524
3525
3526 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3527 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3528 if test "${ac_cv_header_stdc+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537 #include <stdlib.h>
3538 #include <stdarg.h>
3539 #include <string.h>
3540 #include <float.h>
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_compile") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } && {
3564          test -z "$ac_c_werror_flag" ||
3565          test ! -s conftest.err
3566        } && test -s conftest.$ac_objext; then
3567   ac_cv_header_stdc=yes
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572         ac_cv_header_stdc=no
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576
3577 if test $ac_cv_header_stdc = yes; then
3578   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3579   cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585 #include <string.h>
3586
3587 _ACEOF
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589   $EGREP "memchr" >/dev/null 2>&1; then
3590   :
3591 else
3592   ac_cv_header_stdc=no
3593 fi
3594 rm -f conftest*
3595
3596 fi
3597
3598 if test $ac_cv_header_stdc = yes; then
3599   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3600   cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #include <stdlib.h>
3607
3608 _ACEOF
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610   $EGREP "free" >/dev/null 2>&1; then
3611   :
3612 else
3613   ac_cv_header_stdc=no
3614 fi
3615 rm -f conftest*
3616
3617 fi
3618
3619 if test $ac_cv_header_stdc = yes; then
3620   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3621   if test "$cross_compiling" = yes; then
3622   :
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630 #include <ctype.h>
3631 #include <stdlib.h>
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3635 #else
3636 # define ISLOWER(c) \
3637                    (('a' <= (c) && (c) <= 'i') \
3638                      || ('j' <= (c) && (c) <= 'r') \
3639                      || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3641 #endif
3642
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 int
3645 main ()
3646 {
3647   int i;
3648   for (i = 0; i < 256; i++)
3649     if (XOR (islower (i), ISLOWER (i))
3650         || toupper (i) != TOUPPER (i))
3651       return 2;
3652   return 0;
3653 }
3654 _ACEOF
3655 rm -f conftest$ac_exeext
3656 if { (ac_try="$ac_link"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_link") 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666   { (case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_try") 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   :
3676 else
3677   echo "$as_me: program exited with status $ac_status" >&5
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ( exit $ac_status )
3682 ac_cv_header_stdc=no
3683 fi
3684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3685 fi
3686
3687
3688 fi
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3691 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3692 if test $ac_cv_header_stdc = yes; then
3693
3694 cat >>confdefs.h <<\_ACEOF
3695 #define STDC_HEADERS 1
3696 _ACEOF
3697
3698 fi
3699
3700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3711                   inttypes.h stdint.h unistd.h
3712 do
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 $ac_includes_default
3726
3727 #include <$ac_header>
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_compile") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } && {
3743          test -z "$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        } && test -s conftest.$ac_objext; then
3746   eval "$as_ac_Header=yes"
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751         eval "$as_ac_Header=no"
3752 fi
3753
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 fi
3756 ac_res=`eval echo '${'$as_ac_Header'}'`
3757                { echo "$as_me:$LINENO: result: $ac_res" >&5
3758 echo "${ECHO_T}$ac_res" >&6; }
3759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3760   cat >>confdefs.h <<_ACEOF
3761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3762 _ACEOF
3763
3764 fi
3765
3766 done
3767
3768
3769
3770
3771
3772
3773
3774
3775 for ac_header in ctype.h strings.h stdlib.h string.h pwd.h sys/time.h
3776 do
3777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 fi
3784 ac_res=`eval echo '${'$as_ac_Header'}'`
3785                { echo "$as_me:$LINENO: result: $ac_res" >&5
3786 echo "${ECHO_T}$ac_res" >&6; }
3787 else
3788   # Is the header compilable?
3789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h.  */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h.  */
3797 $ac_includes_default
3798 #include <$ac_header>
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } && {
3814          test -z "$ac_c_werror_flag" ||
3815          test ! -s conftest.err
3816        } && test -s conftest.$ac_objext; then
3817   ac_header_compiler=yes
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822         ac_header_compiler=no
3823 fi
3824
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3827 echo "${ECHO_T}$ac_header_compiler" >&6; }
3828
3829 # Is the header present?
3830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <$ac_header>
3839 _ACEOF
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } >/dev/null && {
3853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        }; then
3856   ac_header_preproc=yes
3857 else
3858   echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861   ac_header_preproc=no
3862 fi
3863
3864 rm -f conftest.err conftest.$ac_ext
3865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866 echo "${ECHO_T}$ac_header_preproc" >&6; }
3867
3868 # So?  What about this header?
3869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3870   yes:no: )
3871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3875     ac_header_preproc=yes
3876     ;;
3877   no:yes:* )
3878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3890
3891     ;;
3892 esac
3893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   eval "$as_ac_Header=\$ac_header_preproc"
3899 fi
3900 ac_res=`eval echo '${'$as_ac_Header'}'`
3901                { echo "$as_me:$LINENO: result: $ac_res" >&5
3902 echo "${ECHO_T}$ac_res" >&6; }
3903
3904 fi
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906   cat >>confdefs.h <<_ACEOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 _ACEOF
3909
3910 fi
3911
3912 done
3913
3914
3915
3916
3917
3918
3919
3920
3921 for ac_func in realpath snprintf vsnprintf vasprintf asprintf mkstemp
3922 do
3923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3937 #define $ac_func innocuous_$ac_func
3938
3939 /* System header to define __stub macros and hopefully few prototypes,
3940     which can conflict with char $ac_func (); below.
3941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942     <limits.h> exists even on freestanding compilers.  */
3943
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949
3950 #undef $ac_func
3951
3952 /* Override any GCC internal prototype to avoid an error.
3953    Use char because int might match the return type of a GCC
3954    builtin and then its argument prototype would still apply.  */
3955 #ifdef __cplusplus
3956 extern "C"
3957 #endif
3958 char $ac_func ();
3959 /* The GNU C library defines this for functions which it implements
3960     to always fail with ENOSYS.  Some functions are actually named
3961     something starting with __ and the normal name is an alias.  */
3962 #if defined __stub_$ac_func || defined __stub___$ac_func
3963 choke me
3964 #endif
3965
3966 int
3967 main ()
3968 {
3969 return $ac_func ();
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_link") 2>conftest.er1
3982   ac_status=$?
3983   grep -v '^ *+' conftest.er1 >conftest.err
3984   rm -f conftest.er1
3985   cat conftest.err >&5
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); } && {
3988          test -z "$ac_c_werror_flag" ||
3989          test ! -s conftest.err
3990        } && test -s conftest$ac_exeext &&
3991        $as_test_x conftest$ac_exeext; then
3992   eval "$as_ac_var=yes"
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997         eval "$as_ac_var=no"
3998 fi
3999
4000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4001       conftest$ac_exeext conftest.$ac_ext
4002 fi
4003 ac_res=`eval echo '${'$as_ac_var'}'`
4004                { echo "$as_me:$LINENO: result: $ac_res" >&5
4005 echo "${ECHO_T}$ac_res" >&6; }
4006 if test `eval echo '${'$as_ac_var'}'` = yes; then
4007   cat >>confdefs.h <<_ACEOF
4008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4009 _ACEOF
4010
4011 fi
4012 done
4013
4014
4015
4016 for ac_func in gethostname getpwuid
4017 do
4018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4032 #define $ac_func innocuous_$ac_func
4033
4034 /* System header to define __stub macros and hopefully few prototypes,
4035     which can conflict with char $ac_func (); below.
4036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037     <limits.h> exists even on freestanding compilers.  */
4038
4039 #ifdef __STDC__
4040 # include <limits.h>
4041 #else
4042 # include <assert.h>
4043 #endif
4044
4045 #undef $ac_func
4046
4047 /* Override any GCC internal prototype to avoid an error.
4048    Use char because int might match the return type of a GCC
4049    builtin and then its argument prototype would still apply.  */
4050 #ifdef __cplusplus
4051 extern "C"
4052 #endif
4053 char $ac_func ();
4054 /* The GNU C library defines this for functions which it implements
4055     to always fail with ENOSYS.  Some functions are actually named
4056     something starting with __ and the normal name is an alias.  */
4057 #if defined __stub_$ac_func || defined __stub___$ac_func
4058 choke me
4059 #endif
4060
4061 int
4062 main ()
4063 {
4064 return $ac_func ();
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (ac_try="$ac_link"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_link") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest$ac_exeext &&
4086        $as_test_x conftest$ac_exeext; then
4087   eval "$as_ac_var=yes"
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         eval "$as_ac_var=no"
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4096       conftest$ac_exeext conftest.$ac_ext
4097 fi
4098 ac_res=`eval echo '${'$as_ac_var'}'`
4099                { echo "$as_me:$LINENO: result: $ac_res" >&5
4100 echo "${ECHO_T}$ac_res" >&6; }
4101 if test `eval echo '${'$as_ac_var'}'` = yes; then
4102   cat >>confdefs.h <<_ACEOF
4103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4104 _ACEOF
4105
4106 fi
4107 done
4108
4109
4110 for ac_func in utimes
4111 do
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4126 #define $ac_func innocuous_$ac_func
4127
4128 /* System header to define __stub macros and hopefully few prototypes,
4129     which can conflict with char $ac_func (); below.
4130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131     <limits.h> exists even on freestanding compilers.  */
4132
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4138
4139 #undef $ac_func
4140
4141 /* Override any GCC internal prototype to avoid an error.
4142    Use char because int might match the return type of a GCC
4143    builtin and then its argument prototype would still apply.  */
4144 #ifdef __cplusplus
4145 extern "C"
4146 #endif
4147 char $ac_func ();
4148 /* The GNU C library defines this for functions which it implements
4149     to always fail with ENOSYS.  Some functions are actually named
4150     something starting with __ and the normal name is an alias.  */
4151 #if defined __stub_$ac_func || defined __stub___$ac_func
4152 choke me
4153 #endif
4154
4155 int
4156 main ()
4157 {
4158 return $ac_func ();
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext conftest$ac_exeext
4164 if { (ac_try="$ac_link"
4165 case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_link") 2>conftest.er1
4171   ac_status=$?
4172   grep -v '^ *+' conftest.er1 >conftest.err
4173   rm -f conftest.er1
4174   cat conftest.err >&5
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } && {
4177          test -z "$ac_c_werror_flag" ||
4178          test ! -s conftest.err
4179        } && test -s conftest$ac_exeext &&
4180        $as_test_x conftest$ac_exeext; then
4181   eval "$as_ac_var=yes"
4182 else
4183   echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186         eval "$as_ac_var=no"
4187 fi
4188
4189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4190       conftest$ac_exeext conftest.$ac_ext
4191 fi
4192 ac_res=`eval echo '${'$as_ac_var'}'`
4193                { echo "$as_me:$LINENO: result: $ac_res" >&5
4194 echo "${ECHO_T}$ac_res" >&6; }
4195 if test `eval echo '${'$as_ac_var'}'` = yes; then
4196   cat >>confdefs.h <<_ACEOF
4197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4198 _ACEOF
4199
4200 fi
4201 done
4202
4203
4204 { echo "$as_me:$LINENO: checking for compar_fn_t in stdlib.h" >&5
4205 echo $ECHO_N "checking for compar_fn_t in stdlib.h... $ECHO_C" >&6; }
4206 if test "${ccache_cv_COMPAR_FN_T+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209
4210     cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <stdlib.h>
4217 int
4218 main ()
4219 {
4220
4221 void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4229 case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234   (eval "$ac_compile") 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } && {
4241          test -z "$ac_c_werror_flag" ||
4242          test ! -s conftest.err
4243        } && test -s conftest.$ac_objext; then
4244   ccache_cv_COMPAR_FN_T=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         ccache_cv_COMPAR_FN_T=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 fi
4254 { echo "$as_me:$LINENO: result: $ccache_cv_COMPAR_FN_T" >&5
4255 echo "${ECHO_T}$ccache_cv_COMPAR_FN_T" >&6; }
4256 if test x"$ccache_cv_COMPAR_FN_T" = x"yes"; then
4257
4258 cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_COMPAR_FN_T 1
4260 _ACEOF
4261
4262 fi
4263
4264 { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
4265 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
4266 if test "${ccache_cv_HAVE_C99_VSNPRINTF+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269
4270 if test "$cross_compiling" = yes; then
4271   ccache_cv_HAVE_C99_VSNPRINTF=cross
4272 else
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279
4280 #include <sys/types.h>
4281 #include <stdarg.h>
4282 void foo(const char *format, ...) {
4283        va_list ap;
4284        int len;
4285        char buf[5];
4286
4287        va_start(ap, format);
4288        len = vsnprintf(0, 0, format, ap);
4289        va_end(ap);
4290        if (len != 5) exit(1);
4291
4292        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
4293
4294        exit(0);
4295 }
4296 main() { foo("hello"); }
4297
4298 _ACEOF
4299 rm -f conftest$ac_exeext
4300 if { (ac_try="$ac_link"
4301 case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_link") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310   { (case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_try") 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ccache_cv_HAVE_C99_VSNPRINTF=yes
4320 else
4321   echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 ( exit $ac_status )
4326 ccache_cv_HAVE_C99_VSNPRINTF=no
4327 fi
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329 fi
4330
4331
4332 fi
4333 { echo "$as_me:$LINENO: result: $ccache_cv_HAVE_C99_VSNPRINTF" >&5
4334 echo "${ECHO_T}$ccache_cv_HAVE_C99_VSNPRINTF" >&6; }
4335 if test x"$ccache_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
4336
4337 cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_C99_VSNPRINTF 1
4339 _ACEOF
4340
4341 fi
4342
4343 # Check whether --enable-zlib was given.
4344 if test "${enable_zlib+set}" = set; then
4345   enableval=$enable_zlib;
4346 else
4347   enable_zlib=yes
4348 fi
4349
4350
4351 if test x"$enable_zlib" = x"yes"; then
4352     if test "${ac_cv_header_zlib_h+set}" = set; then
4353   { echo "$as_me:$LINENO: checking for zlib.h" >&5
4354 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
4355 if test "${ac_cv_header_zlib_h+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 fi
4358 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4359 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
4360 else
4361   # Is the header compilable?
4362 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
4363 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 $ac_includes_default
4371 #include <zlib.h>
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } && {
4387          test -z "$ac_c_werror_flag" ||
4388          test ! -s conftest.err
4389        } && test -s conftest.$ac_objext; then
4390   ac_header_compiler=yes
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395         ac_header_compiler=no
4396 fi
4397
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4400 echo "${ECHO_T}$ac_header_compiler" >&6; }
4401
4402 # Is the header present?
4403 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
4404 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #include <zlib.h>
4412 _ACEOF
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null && {
4426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        }; then
4429   ac_header_preproc=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434   ac_header_preproc=no
4435 fi
4436
4437 rm -f conftest.err conftest.$ac_ext
4438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439 echo "${ECHO_T}$ac_header_preproc" >&6; }
4440
4441 # So?  What about this header?
4442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4443   yes:no: )
4444     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
4445 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
4447 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
4448     ac_header_preproc=yes
4449     ;;
4450   no:yes:* )
4451     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
4452 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
4453     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
4454 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
4455     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
4456 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
4458 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4460 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
4462 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
4463
4464     ;;
4465 esac
4466 { echo "$as_me:$LINENO: checking for zlib.h" >&5
4467 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
4468 if test "${ac_cv_header_zlib_h+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   ac_cv_header_zlib_h=$ac_header_preproc
4472 fi
4473 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4474 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
4475
4476 fi
4477 if test $ac_cv_header_zlib_h = yes; then
4478   { echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
4479 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6; }
4480 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lz  $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491
4492 /* Override any GCC internal prototype to avoid an error.
4493    Use char because int might match the return type of a GCC
4494    builtin and then its argument prototype would still apply.  */
4495 #ifdef __cplusplus
4496 extern "C"
4497 #endif
4498 char gzdopen ();
4499 int
4500 main ()
4501 {
4502 return gzdopen ();
4503   ;
4504   return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (ac_try="$ac_link"
4509 case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514   (eval "$ac_link") 2>conftest.er1
4515   ac_status=$?
4516   grep -v '^ *+' conftest.er1 >conftest.err
4517   rm -f conftest.er1
4518   cat conftest.err >&5
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } && {
4521          test -z "$ac_c_werror_flag" ||
4522          test ! -s conftest.err
4523        } && test -s conftest$ac_exeext &&
4524        $as_test_x conftest$ac_exeext; then
4525   ac_cv_lib_z_gzdopen=yes
4526 else
4527   echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530         ac_cv_lib_z_gzdopen=no
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4534       conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_check_lib_save_LIBS
4536 fi
4537 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
4538 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6; }
4539 if test $ac_cv_lib_z_gzdopen = yes; then
4540   LIBS="-lz $LIBS"
4541
4542 cat >>confdefs.h <<\_ACEOF
4543 #define ENABLE_ZLIB 1
4544 _ACEOF
4545
4546 fi
4547
4548 fi
4549
4550
4551 fi
4552
4553 ac_config_files="$ac_config_files Makefile"
4554
4555 cat >confcache <<\_ACEOF
4556 # This file is a shell script that caches the results of configure
4557 # tests run on this system so they can be shared between configure
4558 # scripts and configure runs, see configure's option --config-cache.
4559 # It is not useful on other systems.  If it contains results you don't
4560 # want to keep, you may remove or edit it.
4561 #
4562 # config.status only pays attention to the cache file if you give it
4563 # the --recheck option to rerun configure.
4564 #
4565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4567 # following values.
4568
4569 _ACEOF
4570
4571 # The following way of writing the cache mishandles newlines in values,
4572 # but we know of no workaround that is simple, portable, and efficient.
4573 # So, we kill variables containing newlines.
4574 # Ultrix sh set writes to stderr and can't be redirected directly,
4575 # and sets the high bit in the cache file unless we assign to the vars.
4576 (
4577   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4578     eval ac_val=\$$ac_var
4579     case $ac_val in #(
4580     *${as_nl}*)
4581       case $ac_var in #(
4582       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4584       esac
4585       case $ac_var in #(
4586       _ | IFS | as_nl) ;; #(
4587       *) $as_unset $ac_var ;;
4588       esac ;;
4589     esac
4590   done
4591
4592   (set) 2>&1 |
4593     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4594     *${as_nl}ac_space=\ *)
4595       # `set' does not quote correctly, so add quotes (double-quote
4596       # substitution turns \\\\ into \\, and sed turns \\ into \).
4597       sed -n \
4598         "s/'/'\\\\''/g;
4599           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4600       ;; #(
4601     *)
4602       # `set' quotes correctly as required by POSIX, so do not add quotes.
4603       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4604       ;;
4605     esac |
4606     sort
4607 ) |
4608   sed '
4609      /^ac_cv_env_/b end
4610      t clear
4611      :clear
4612      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4613      t end
4614      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4615      :end' >>confcache
4616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4617   if test -w "$cache_file"; then
4618     test "x$cache_file" != "x/dev/null" &&
4619       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4620 echo "$as_me: updating cache $cache_file" >&6;}
4621     cat confcache >$cache_file
4622   else
4623     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4624 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4625   fi
4626 fi
4627 rm -f confcache
4628
4629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4630 # Let make expand exec_prefix.
4631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4632
4633 DEFS=-DHAVE_CONFIG_H
4634
4635 ac_libobjs=
4636 ac_ltlibobjs=
4637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4638   # 1. Remove the extension, and $U if already installed.
4639   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4640   ac_i=`echo "$ac_i" | sed "$ac_script"`
4641   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4642   #    will be set to the directory where LIBOBJS objects are built.
4643   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4644   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4645 done
4646 LIBOBJS=$ac_libobjs
4647
4648 LTLIBOBJS=$ac_ltlibobjs
4649
4650
4651
4652 : ${CONFIG_STATUS=./config.status}
4653 ac_clean_files_save=$ac_clean_files
4654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4657 cat >$CONFIG_STATUS <<_ACEOF
4658 #! $SHELL
4659 # Generated by $as_me.
4660 # Run this file to recreate the current configuration.
4661 # Compiler output produced by configure, useful for debugging
4662 # configure, is in config.log if it exists.
4663
4664 debug=false
4665 ac_cs_recheck=false
4666 ac_cs_silent=false
4667 SHELL=\${CONFIG_SHELL-$SHELL}
4668 _ACEOF
4669
4670 cat >>$CONFIG_STATUS <<\_ACEOF
4671 ## --------------------- ##
4672 ## M4sh Initialization.  ##
4673 ## --------------------- ##
4674
4675 # Be more Bourne compatible
4676 DUALCASE=1; export DUALCASE # for MKS sh
4677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4678   emulate sh
4679   NULLCMD=:
4680   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4681   # is contrary to our usage.  Disable this feature.
4682   alias -g '${1+"$@"}'='"$@"'
4683   setopt NO_GLOB_SUBST
4684 else
4685   case `(set -o) 2>/dev/null` in
4686   *posix*) set -o posix ;;
4687 esac
4688
4689 fi
4690
4691
4692
4693
4694 # PATH needs CR
4695 # Avoid depending upon Character Ranges.
4696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4699 as_cr_digits='0123456789'
4700 as_cr_alnum=$as_cr_Letters$as_cr_digits
4701
4702 # The user is always right.
4703 if test "${PATH_SEPARATOR+set}" != set; then
4704   echo "#! /bin/sh" >conf$$.sh
4705   echo  "exit 0"   >>conf$$.sh
4706   chmod +x conf$$.sh
4707   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4708     PATH_SEPARATOR=';'
4709   else
4710     PATH_SEPARATOR=:
4711   fi
4712   rm -f conf$$.sh
4713 fi
4714
4715 # Support unset when possible.
4716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4717   as_unset=unset
4718 else
4719   as_unset=false
4720 fi
4721
4722
4723 # IFS
4724 # We need space, tab and new line, in precisely that order.  Quoting is
4725 # there to prevent editors from complaining about space-tab.
4726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4727 # splitting by setting IFS to empty value.)
4728 as_nl='
4729 '
4730 IFS=" ""        $as_nl"
4731
4732 # Find who we are.  Look in the path if we contain no directory separator.
4733 case $0 in
4734   *[\\/]* ) as_myself=$0 ;;
4735   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4741 done
4742 IFS=$as_save_IFS
4743
4744      ;;
4745 esac
4746 # We did not find ourselves, most probably we were run as `sh COMMAND'
4747 # in which case we are not to be found in the path.
4748 if test "x$as_myself" = x; then
4749   as_myself=$0
4750 fi
4751 if test ! -f "$as_myself"; then
4752   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4753   { (exit 1); exit 1; }
4754 fi
4755
4756 # Work around bugs in pre-3.0 UWIN ksh.
4757 for as_var in ENV MAIL MAILPATH
4758 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4759 done
4760 PS1='$ '
4761 PS2='> '
4762 PS4='+ '
4763
4764 # NLS nuisances.
4765 for as_var in \
4766   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4767   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4768   LC_TELEPHONE LC_TIME
4769 do
4770   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4771     eval $as_var=C; export $as_var
4772   else
4773     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4774   fi
4775 done
4776
4777 # Required to use basename.
4778 if expr a : '\(a\)' >/dev/null 2>&1 &&
4779    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4780   as_expr=expr
4781 else
4782   as_expr=false
4783 fi
4784
4785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4786   as_basename=basename
4787 else
4788   as_basename=false
4789 fi
4790
4791
4792 # Name of the executable.
4793 as_me=`$as_basename -- "$0" ||
4794 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4795          X"$0" : 'X\(//\)$' \| \
4796          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4797 echo X/"$0" |
4798     sed '/^.*\/\([^/][^/]*\)\/*$/{
4799             s//\1/
4800             q
4801           }
4802           /^X\/\(\/\/\)$/{
4803             s//\1/
4804             q
4805           }
4806           /^X\/\(\/\).*/{
4807             s//\1/
4808             q
4809           }
4810           s/.*/./; q'`
4811
4812 # CDPATH.
4813 $as_unset CDPATH
4814
4815
4816
4817   as_lineno_1=$LINENO
4818   as_lineno_2=$LINENO
4819   test "x$as_lineno_1" != "x$as_lineno_2" &&
4820   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4821
4822   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4823   # uniformly replaced by the line number.  The first 'sed' inserts a
4824   # line-number line after each line using $LINENO; the second 'sed'
4825   # does the real work.  The second script uses 'N' to pair each
4826   # line-number line with the line containing $LINENO, and appends
4827   # trailing '-' during substitution so that $LINENO is not a special
4828   # case at line end.
4829   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4830   # scripts with optimization help from Paolo Bonzini.  Blame Lee
4831   # E. McMahon (1931-1989) for sed's syntax.  :-)
4832   sed -n '
4833     p
4834     /[$]LINENO/=
4835   ' <$as_myself |
4836     sed '
4837       s/[$]LINENO.*/&-/
4838       t lineno
4839       b
4840       :lineno
4841       N
4842       :loop
4843       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4844       t loop
4845       s/-\n.*//
4846     ' >$as_me.lineno &&
4847   chmod +x "$as_me.lineno" ||
4848     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4849    { (exit 1); exit 1; }; }
4850
4851   # Don't try to exec as it changes $[0], causing all sort of problems
4852   # (the dirname of $[0] is not the place where we might find the
4853   # original and so on.  Autoconf is especially sensitive to this).
4854   . "./$as_me.lineno"
4855   # Exit status is that of the last command.
4856   exit
4857 }
4858
4859
4860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4861   as_dirname=dirname
4862 else
4863   as_dirname=false
4864 fi
4865
4866 ECHO_C= ECHO_N= ECHO_T=
4867 case `echo -n x` in
4868 -n*)
4869   case `echo 'x\c'` in
4870   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4871   *)   ECHO_C='\c';;
4872   esac;;
4873 *)
4874   ECHO_N='-n';;
4875 esac
4876
4877 if expr a : '\(a\)' >/dev/null 2>&1 &&
4878    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4879   as_expr=expr
4880 else
4881   as_expr=false
4882 fi
4883
4884 rm -f conf$$ conf$$.exe conf$$.file
4885 if test -d conf$$.dir; then
4886   rm -f conf$$.dir/conf$$.file
4887 else
4888   rm -f conf$$.dir
4889   mkdir conf$$.dir
4890 fi
4891 echo >conf$$.file
4892 if ln -s conf$$.file conf$$ 2>/dev/null; then
4893   as_ln_s='ln -s'
4894   # ... but there are two gotchas:
4895   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4896   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4897   # In both cases, we have to default to `cp -p'.
4898   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4899     as_ln_s='cp -p'
4900 elif ln conf$$.file conf$$ 2>/dev/null; then
4901   as_ln_s=ln
4902 else
4903   as_ln_s='cp -p'
4904 fi
4905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4906 rmdir conf$$.dir 2>/dev/null
4907
4908 if mkdir -p . 2>/dev/null; then
4909   as_mkdir_p=:
4910 else
4911   test -d ./-p && rmdir ./-p
4912   as_mkdir_p=false
4913 fi
4914
4915 if test -x / >/dev/null 2>&1; then
4916   as_test_x='test -x'
4917 else
4918   if ls -dL / >/dev/null 2>&1; then
4919     as_ls_L_option=L
4920   else
4921     as_ls_L_option=
4922   fi
4923   as_test_x='
4924     eval sh -c '\''
4925       if test -d "$1"; then
4926         test -d "$1/.";
4927       else
4928         case $1 in
4929         -*)set "./$1";;
4930         esac;
4931         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4932         ???[sx]*):;;*)false;;esac;fi
4933     '\'' sh
4934   '
4935 fi
4936 as_executable_p=$as_test_x
4937
4938 # Sed expression to map a string onto a valid CPP name.
4939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4940
4941 # Sed expression to map a string onto a valid variable name.
4942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4943
4944
4945 exec 6>&1
4946
4947 # Save the log message, to keep $[0] and so on meaningful, and to
4948 # report actual input values of CONFIG_FILES etc. instead of their
4949 # values after options handling.
4950 ac_log="
4951 This file was extended by ccache-swig $as_me 0.0, which was
4952 generated by GNU Autoconf 2.61.  Invocation command line was
4953
4954   CONFIG_FILES    = $CONFIG_FILES
4955   CONFIG_HEADERS  = $CONFIG_HEADERS
4956   CONFIG_LINKS    = $CONFIG_LINKS
4957   CONFIG_COMMANDS = $CONFIG_COMMANDS
4958   $ $0 $@
4959
4960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4961 "
4962
4963 _ACEOF
4964
4965 cat >>$CONFIG_STATUS <<_ACEOF
4966 # Files that config.status was made for.
4967 config_files="$ac_config_files"
4968 config_headers="$ac_config_headers"
4969
4970 _ACEOF
4971
4972 cat >>$CONFIG_STATUS <<\_ACEOF
4973 ac_cs_usage="\
4974 \`$as_me' instantiates files from templates according to the
4975 current configuration.
4976
4977 Usage: $0 [OPTIONS] [FILE]...
4978
4979   -h, --help       print this help, then exit
4980   -V, --version    print version number and configuration settings, then exit
4981   -q, --quiet      do not print progress messages
4982   -d, --debug      don't remove temporary files
4983       --recheck    update $as_me by reconfiguring in the same conditions
4984   --file=FILE[:TEMPLATE]
4985                    instantiate the configuration file FILE
4986   --header=FILE[:TEMPLATE]
4987                    instantiate the configuration header FILE
4988
4989 Configuration files:
4990 $config_files
4991
4992 Configuration headers:
4993 $config_headers
4994
4995 Report bugs to <bug-autoconf@gnu.org>."
4996
4997 _ACEOF
4998 cat >>$CONFIG_STATUS <<_ACEOF
4999 ac_cs_version="\\
5000 ccache-swig config.status 0.0
5001 configured by $0, generated by GNU Autoconf 2.61,
5002   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5003
5004 Copyright (C) 2006 Free Software Foundation, Inc.
5005 This config.status script is free software; the Free Software Foundation
5006 gives unlimited permission to copy, distribute and modify it."
5007
5008 ac_pwd='$ac_pwd'
5009 srcdir='$srcdir'
5010 INSTALL='$INSTALL'
5011 _ACEOF
5012
5013 cat >>$CONFIG_STATUS <<\_ACEOF
5014 # If no file are specified by the user, then we need to provide default
5015 # value.  By we need to know if files were specified by the user.
5016 ac_need_defaults=:
5017 while test $# != 0
5018 do
5019   case $1 in
5020   --*=*)
5021     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5022     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5023     ac_shift=:
5024     ;;
5025   *)
5026     ac_option=$1
5027     ac_optarg=$2
5028     ac_shift=shift
5029     ;;
5030   esac
5031
5032   case $ac_option in
5033   # Handling of the options.
5034   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5035     ac_cs_recheck=: ;;
5036   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5037     echo "$ac_cs_version"; exit ;;
5038   --debug | --debu | --deb | --de | --d | -d )
5039     debug=: ;;
5040   --file | --fil | --fi | --f )
5041     $ac_shift
5042     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5043     ac_need_defaults=false;;
5044   --header | --heade | --head | --hea )
5045     $ac_shift
5046     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5047     ac_need_defaults=false;;
5048   --he | --h)
5049     # Conflict between --help and --header
5050     { echo "$as_me: error: ambiguous option: $1
5051 Try \`$0 --help' for more information." >&2
5052    { (exit 1); exit 1; }; };;
5053   --help | --hel | -h )
5054     echo "$ac_cs_usage"; exit ;;
5055   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5056   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5057     ac_cs_silent=: ;;
5058
5059   # This is an error.
5060   -*) { echo "$as_me: error: unrecognized option: $1
5061 Try \`$0 --help' for more information." >&2
5062    { (exit 1); exit 1; }; } ;;
5063
5064   *) ac_config_targets="$ac_config_targets $1"
5065      ac_need_defaults=false ;;
5066
5067   esac
5068   shift
5069 done
5070
5071 ac_configure_extra_args=
5072
5073 if $ac_cs_silent; then
5074   exec 6>/dev/null
5075   ac_configure_extra_args="$ac_configure_extra_args --silent"
5076 fi
5077
5078 _ACEOF
5079 cat >>$CONFIG_STATUS <<_ACEOF
5080 if \$ac_cs_recheck; then
5081   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5082   CONFIG_SHELL=$SHELL
5083   export CONFIG_SHELL
5084   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5085 fi
5086
5087 _ACEOF
5088 cat >>$CONFIG_STATUS <<\_ACEOF
5089 exec 5>>config.log
5090 {
5091   echo
5092   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5093 ## Running $as_me. ##
5094 _ASBOX
5095   echo "$ac_log"
5096 } >&5
5097
5098 _ACEOF
5099 cat >>$CONFIG_STATUS <<_ACEOF
5100 _ACEOF
5101
5102 cat >>$CONFIG_STATUS <<\_ACEOF
5103
5104 # Handling of arguments.
5105 for ac_config_target in $ac_config_targets
5106 do
5107   case $ac_config_target in
5108     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5109     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5110
5111   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5113    { (exit 1); exit 1; }; };;
5114   esac
5115 done
5116
5117
5118 # If the user did not use the arguments to specify the items to instantiate,
5119 # then the envvar interface is used.  Set only those that are not.
5120 # We use the long form for the default assignment because of an extremely
5121 # bizarre bug on SunOS 4.1.3.
5122 if $ac_need_defaults; then
5123   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5124   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5125 fi
5126
5127 # Have a temporary directory for convenience.  Make it in the build tree
5128 # simply because there is no reason against having it here, and in addition,
5129 # creating and moving files from /tmp can sometimes cause problems.
5130 # Hook for its removal unless debugging.
5131 # Note that there is a small window in which the directory will not be cleaned:
5132 # after its creation but before its name has been assigned to `$tmp'.
5133 $debug ||
5134 {
5135   tmp=
5136   trap 'exit_status=$?
5137   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5138 ' 0
5139   trap '{ (exit 1); exit 1; }' 1 2 13 15
5140 }
5141 # Create a (secure) tmp directory for tmp files.
5142
5143 {
5144   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5145   test -n "$tmp" && test -d "$tmp"
5146 }  ||
5147 {
5148   tmp=./conf$$-$RANDOM
5149   (umask 077 && mkdir "$tmp")
5150 } ||
5151 {
5152    echo "$me: cannot create a temporary directory in ." >&2
5153    { (exit 1); exit 1; }
5154 }
5155
5156 #
5157 # Set up the sed scripts for CONFIG_FILES section.
5158 #
5159
5160 # No need to generate the scripts if there are no CONFIG_FILES.
5161 # This happens for instance when ./config.status config.h
5162 if test -n "$CONFIG_FILES"; then
5163
5164 _ACEOF
5165
5166
5167
5168 ac_delim='%!_!# '
5169 for ac_last_try in false false false false false :; do
5170   cat >conf$$subs.sed <<_ACEOF
5171 SHELL!$SHELL$ac_delim
5172 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5173 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5174 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5175 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5176 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5177 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5178 exec_prefix!$exec_prefix$ac_delim
5179 prefix!$prefix$ac_delim
5180 program_transform_name!$program_transform_name$ac_delim
5181 bindir!$bindir$ac_delim
5182 sbindir!$sbindir$ac_delim
5183 libexecdir!$libexecdir$ac_delim
5184 datarootdir!$datarootdir$ac_delim
5185 datadir!$datadir$ac_delim
5186 sysconfdir!$sysconfdir$ac_delim
5187 sharedstatedir!$sharedstatedir$ac_delim
5188 localstatedir!$localstatedir$ac_delim
5189 includedir!$includedir$ac_delim
5190 oldincludedir!$oldincludedir$ac_delim
5191 docdir!$docdir$ac_delim
5192 infodir!$infodir$ac_delim
5193 htmldir!$htmldir$ac_delim
5194 dvidir!$dvidir$ac_delim
5195 pdfdir!$pdfdir$ac_delim
5196 psdir!$psdir$ac_delim
5197 libdir!$libdir$ac_delim
5198 localedir!$localedir$ac_delim
5199 mandir!$mandir$ac_delim
5200 DEFS!$DEFS$ac_delim
5201 ECHO_C!$ECHO_C$ac_delim
5202 ECHO_N!$ECHO_N$ac_delim
5203 ECHO_T!$ECHO_T$ac_delim
5204 LIBS!$LIBS$ac_delim
5205 build_alias!$build_alias$ac_delim
5206 host_alias!$host_alias$ac_delim
5207 target_alias!$target_alias$ac_delim
5208 CC!$CC$ac_delim
5209 CFLAGS!$CFLAGS$ac_delim
5210 LDFLAGS!$LDFLAGS$ac_delim
5211 CPPFLAGS!$CPPFLAGS$ac_delim
5212 ac_ct_CC!$ac_ct_CC$ac_delim
5213 EXEEXT!$EXEEXT$ac_delim
5214 OBJEXT!$OBJEXT$ac_delim
5215 CPP!$CPP$ac_delim
5216 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5217 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5218 INSTALL_DATA!$INSTALL_DATA$ac_delim
5219 GREP!$GREP$ac_delim
5220 EGREP!$EGREP$ac_delim
5221 LIBOBJS!$LIBOBJS$ac_delim
5222 LTLIBOBJS!$LTLIBOBJS$ac_delim
5223 _ACEOF
5224
5225   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
5226     break
5227   elif $ac_last_try; then
5228     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5230    { (exit 1); exit 1; }; }
5231   else
5232     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5233   fi
5234 done
5235
5236 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5237 if test -n "$ac_eof"; then
5238   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5239   ac_eof=`expr $ac_eof + 1`
5240 fi
5241
5242 cat >>$CONFIG_STATUS <<_ACEOF
5243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5245 _ACEOF
5246 sed '
5247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5248 s/^/s,@/; s/!/@,|#_!!_#|/
5249 :n
5250 t n
5251 s/'"$ac_delim"'$/,g/; t
5252 s/$/\\/; p
5253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5254 ' >>$CONFIG_STATUS <conf$$subs.sed
5255 rm -f conf$$subs.sed
5256 cat >>$CONFIG_STATUS <<_ACEOF
5257 :end
5258 s/|#_!!_#|//g
5259 CEOF$ac_eof
5260 _ACEOF
5261
5262
5263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5265 # trailing colons and then remove the whole line if VPATH becomes empty
5266 # (actually we leave an empty line to preserve line numbers).
5267 if test "x$srcdir" = x.; then
5268   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5269 s/:*\$(srcdir):*/:/
5270 s/:*\${srcdir}:*/:/
5271 s/:*@srcdir@:*/:/
5272 s/^\([^=]*=[     ]*\):*/\1/
5273 s/:*$//
5274 s/^[^=]*=[       ]*$//
5275 }'
5276 fi
5277
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 fi # test -n "$CONFIG_FILES"
5280
5281
5282 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
5283 do
5284   case $ac_tag in
5285   :[FHLC]) ac_mode=$ac_tag; continue;;
5286   esac
5287   case $ac_mode$ac_tag in
5288   :[FHL]*:*);;
5289   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5290 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5291    { (exit 1); exit 1; }; };;
5292   :[FH]-) ac_tag=-:-;;
5293   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5294   esac
5295   ac_save_IFS=$IFS
5296   IFS=:
5297   set x $ac_tag
5298   IFS=$ac_save_IFS
5299   shift
5300   ac_file=$1
5301   shift
5302
5303   case $ac_mode in
5304   :L) ac_source=$1;;
5305   :[FH])
5306     ac_file_inputs=
5307     for ac_f
5308     do
5309       case $ac_f in
5310       -) ac_f="$tmp/stdin";;
5311       *) # Look for the file first in the build tree, then in the source tree
5312          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5313          # because $ac_f cannot contain `:'.
5314          test -f "$ac_f" ||
5315            case $ac_f in
5316            [\\/$]*) false;;
5317            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5318            esac ||
5319            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5320 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5321    { (exit 1); exit 1; }; };;
5322       esac
5323       ac_file_inputs="$ac_file_inputs $ac_f"
5324     done
5325
5326     # Let's still pretend it is `configure' which instantiates (i.e., don't
5327     # use $as_me), people would be surprised to read:
5328     #    /* config.h.  Generated by config.status.  */
5329     configure_input="Generated from "`IFS=:
5330           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5331     if test x"$ac_file" != x-; then
5332       configure_input="$ac_file.  $configure_input"
5333       { echo "$as_me:$LINENO: creating $ac_file" >&5
5334 echo "$as_me: creating $ac_file" >&6;}
5335     fi
5336
5337     case $ac_tag in
5338     *:-:* | *:-) cat >"$tmp/stdin";;
5339     esac
5340     ;;
5341   esac
5342
5343   ac_dir=`$as_dirname -- "$ac_file" ||
5344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5345          X"$ac_file" : 'X\(//\)[^/]' \| \
5346          X"$ac_file" : 'X\(//\)$' \| \
5347          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5348 echo X"$ac_file" |
5349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5350             s//\1/
5351             q
5352           }
5353           /^X\(\/\/\)[^/].*/{
5354             s//\1/
5355             q
5356           }
5357           /^X\(\/\/\)$/{
5358             s//\1/
5359             q
5360           }
5361           /^X\(\/\).*/{
5362             s//\1/
5363             q
5364           }
5365           s/.*/./; q'`
5366   { as_dir="$ac_dir"
5367   case $as_dir in #(
5368   -*) as_dir=./$as_dir;;
5369   esac
5370   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5371     as_dirs=
5372     while :; do
5373       case $as_dir in #(
5374       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5375       *) as_qdir=$as_dir;;
5376       esac
5377       as_dirs="'$as_qdir' $as_dirs"
5378       as_dir=`$as_dirname -- "$as_dir" ||
5379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5380          X"$as_dir" : 'X\(//\)[^/]' \| \
5381          X"$as_dir" : 'X\(//\)$' \| \
5382          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5383 echo X"$as_dir" |
5384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5385             s//\1/
5386             q
5387           }
5388           /^X\(\/\/\)[^/].*/{
5389             s//\1/
5390             q
5391           }
5392           /^X\(\/\/\)$/{
5393             s//\1/
5394             q
5395           }
5396           /^X\(\/\).*/{
5397             s//\1/
5398             q
5399           }
5400           s/.*/./; q'`
5401       test -d "$as_dir" && break
5402     done
5403     test -z "$as_dirs" || eval "mkdir $as_dirs"
5404   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5406    { (exit 1); exit 1; }; }; }
5407   ac_builddir=.
5408
5409 case "$ac_dir" in
5410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5411 *)
5412   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5413   # A ".." for each directory in $ac_dir_suffix.
5414   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5415   case $ac_top_builddir_sub in
5416   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5417   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5418   esac ;;
5419 esac
5420 ac_abs_top_builddir=$ac_pwd
5421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5422 # for backward compatibility:
5423 ac_top_builddir=$ac_top_build_prefix
5424
5425 case $srcdir in
5426   .)  # We are building in place.
5427     ac_srcdir=.
5428     ac_top_srcdir=$ac_top_builddir_sub
5429     ac_abs_top_srcdir=$ac_pwd ;;
5430   [\\/]* | ?:[\\/]* )  # Absolute name.
5431     ac_srcdir=$srcdir$ac_dir_suffix;
5432     ac_top_srcdir=$srcdir
5433     ac_abs_top_srcdir=$srcdir ;;
5434   *) # Relative name.
5435     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5436     ac_top_srcdir=$ac_top_build_prefix$srcdir
5437     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5438 esac
5439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5440
5441
5442   case $ac_mode in
5443   :F)
5444   #
5445   # CONFIG_FILE
5446   #
5447
5448   case $INSTALL in
5449   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5450   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5451   esac
5452 _ACEOF
5453
5454 cat >>$CONFIG_STATUS <<\_ACEOF
5455 # If the template does not know about datarootdir, expand it.
5456 # FIXME: This hack should be removed a few years after 2.60.
5457 ac_datarootdir_hack=; ac_datarootdir_seen=
5458
5459 case `sed -n '/datarootdir/ {
5460   p
5461   q
5462 }
5463 /@datadir@/p
5464 /@docdir@/p
5465 /@infodir@/p
5466 /@localedir@/p
5467 /@mandir@/p
5468 ' $ac_file_inputs` in
5469 *datarootdir*) ac_datarootdir_seen=yes;;
5470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5471   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5472 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5473 _ACEOF
5474 cat >>$CONFIG_STATUS <<_ACEOF
5475   ac_datarootdir_hack='
5476   s&@datadir@&$datadir&g
5477   s&@docdir@&$docdir&g
5478   s&@infodir@&$infodir&g
5479   s&@localedir@&$localedir&g
5480   s&@mandir@&$mandir&g
5481     s&\\\${datarootdir}&$datarootdir&g' ;;
5482 esac
5483 _ACEOF
5484
5485 # Neutralize VPATH when `$srcdir' = `.'.
5486 # Shell code in configure.ac might set extrasub.
5487 # FIXME: do we really want to maintain this feature?
5488 cat >>$CONFIG_STATUS <<_ACEOF
5489   sed "$ac_vpsub
5490 $extrasub
5491 _ACEOF
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 :t
5494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5495 s&@configure_input@&$configure_input&;t t
5496 s&@top_builddir@&$ac_top_builddir_sub&;t t
5497 s&@srcdir@&$ac_srcdir&;t t
5498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5499 s&@top_srcdir@&$ac_top_srcdir&;t t
5500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5501 s&@builddir@&$ac_builddir&;t t
5502 s&@abs_builddir@&$ac_abs_builddir&;t t
5503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5504 s&@INSTALL@&$ac_INSTALL&;t t
5505 $ac_datarootdir_hack
5506 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5507
5508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5509   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5510   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5511   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5512 which seems to be undefined.  Please make sure it is defined." >&5
5513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5514 which seems to be undefined.  Please make sure it is defined." >&2;}
5515
5516   rm -f "$tmp/stdin"
5517   case $ac_file in
5518   -) cat "$tmp/out"; rm -f "$tmp/out";;
5519   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5520   esac
5521  ;;
5522   :H)
5523   #
5524   # CONFIG_HEADER
5525   #
5526 _ACEOF
5527
5528 # Transform confdefs.h into a sed script `conftest.defines', that
5529 # substitutes the proper values into config.h.in to produce config.h.
5530 rm -f conftest.defines conftest.tail
5531 # First, append a space to every undef/define line, to ease matching.
5532 echo 's/$/ /' >conftest.defines
5533 # Then, protect against being on the right side of a sed subst, or in
5534 # an unquoted here document, in config.status.  If some macros were
5535 # called several times there might be several #defines for the same
5536 # symbol, which is useless.  But do not sort them, since the last
5537 # AC_DEFINE must be honored.
5538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
5541 # PARAMS is the parameter list in the macro definition--in most cases, it's
5542 # just an empty string.
5543 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
5544 ac_dB='\\)[      (].*,\\1define\\2'
5545 ac_dC=' '
5546 ac_dD=' ,'
5547
5548 uniq confdefs.h |
5549   sed -n '
5550         t rset
5551         :rset
5552         s/^[     ]*#[    ]*define[       ][      ]*//
5553         t ok
5554         d
5555         :ok
5556         s/[\\&,]/\\&/g
5557         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5558         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5559   ' >>conftest.defines
5560
5561 # Remove the space that was appended to ease matching.
5562 # Then replace #undef with comments.  This is necessary, for
5563 # example, in the case of _POSIX_SOURCE, which is predefined and required
5564 # on some systems where configure will not decide to define it.
5565 # (The regexp can be short, since the line contains either #define or #undef.)
5566 echo 's/ $//
5567 s,^[     #]*u.*,/* & */,' >>conftest.defines
5568
5569 # Break up conftest.defines:
5570 ac_max_sed_lines=50
5571
5572 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5573 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5574 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5575 # et cetera.
5576 ac_in='$ac_file_inputs'
5577 ac_out='"$tmp/out1"'
5578 ac_nxt='"$tmp/out2"'
5579
5580 while :
5581 do
5582   # Write a here document:
5583     cat >>$CONFIG_STATUS <<_ACEOF
5584     # First, check the format of the line:
5585     cat >"\$tmp/defines.sed" <<\\CEOF
5586 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
5587 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
5588 b
5589 :def
5590 _ACEOF
5591   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5592   echo 'CEOF
5593     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5594   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5595   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5596   grep . conftest.tail >/dev/null || break
5597   rm -f conftest.defines
5598   mv conftest.tail conftest.defines
5599 done
5600 rm -f conftest.defines conftest.tail
5601
5602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
5603 cat >>$CONFIG_STATUS <<\_ACEOF
5604   if test x"$ac_file" != x-; then
5605     echo "/* $configure_input  */" >"$tmp/config.h"
5606     cat "$ac_result" >>"$tmp/config.h"
5607     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5608       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5609 echo "$as_me: $ac_file is unchanged" >&6;}
5610     else
5611       rm -f $ac_file
5612       mv "$tmp/config.h" $ac_file
5613     fi
5614   else
5615     echo "/* $configure_input  */"
5616     cat "$ac_result"
5617   fi
5618   rm -f "$tmp/out12"
5619  ;;
5620
5621
5622   esac
5623
5624 done # for ac_tag
5625
5626
5627 { (exit 0); exit 0; }
5628 _ACEOF
5629 chmod +x $CONFIG_STATUS
5630 ac_clean_files=$ac_clean_files_save
5631
5632
5633 # configure is writing to config.log, and then calls config.status.
5634 # config.status does its own redirection, appending to config.log.
5635 # Unfortunately, on DOS this fails, as config.log is still kept open
5636 # by configure, so config.status won't be able to write to it; its
5637 # output is simply discarded.  So we exec the FD to /dev/null,
5638 # effectively closing config.log, so it can be properly (re)opened and
5639 # appended to by config.status.  When coming back to configure, we
5640 # need to make the FD available again.
5641 if test "$no_create" != yes; then
5642   ac_cs_success=:
5643   ac_config_status_args=
5644   test "$silent" = yes &&
5645     ac_config_status_args="$ac_config_status_args --quiet"
5646   exec 5>/dev/null
5647   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5648   exec 5>>config.log
5649   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5650   # would make configure fail if this is the last instruction.
5651   $ac_cs_success || { (exit 1); exit 1; }
5652 fi
5653