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