OSDN Git Service

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