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