OSDN Git Service

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