OSDN Git Service

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