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