OSDN Git Service

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