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