2006-12-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[official-gcc.git] / libobjc / configure
blob59d556537169db5e0e2eec9cf055f63e4ff58e9e
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.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
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=''
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"
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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc 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 LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
763 # Report the --help message.
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.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
776 Defaults for the options are specified in brackets.
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 \`..']
789 _ACEOF
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]
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'.
803 For better control, use the options below.
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
820 cat <<\_ACEOF
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
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
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-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
839 --enable-objc-gc enable the use of Boehm's garbage collector with
840 the GNU Objective-C runtime.
841 --enable-multilib build many library versions (default)
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
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-build-libsubdir=DIR Directory where to find libraries for build system
855 --with-target-subdir=SUBDIR
856 configuring in a subdirectory
857 --with-cross-host=HOST configuring with a cross compiler
858 --with-gnu-ld assume the C compiler uses GNU ld default=no
859 --with-pic try to use only PIC/non-PIC objects default=use both
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968 package-unused configure version-unused
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by package-unused $as_me version-unused, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 break
1325 elif test -f $ac_dir/install.sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 break
1329 elif test -f $ac_dir/shtool; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 break
1334 done
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344 # Make sure we can run config.sub.
1345 $ac_config_sub sun4 >/dev/null 2>&1 ||
1346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1348 { (exit 1); exit 1; }; }
1350 echo "$as_me:$LINENO: checking build system type" >&5
1351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1352 if test "${ac_cv_build+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 ac_cv_build_alias=$build_alias
1356 test -z "$ac_cv_build_alias" &&
1357 ac_cv_build_alias=`$ac_config_guess`
1358 test -z "$ac_cv_build_alias" &&
1359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1361 { (exit 1); exit 1; }; }
1362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1369 echo "${ECHO_T}$ac_cv_build" >&6
1370 build=$ac_cv_build
1371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 case ${build_alias} in
1377 "") build_noncanonical=${build} ;;
1378 *) build_noncanonical=${build_alias} ;;
1379 esac
1381 case ${host_alias} in
1382 "") host_noncanonical=${build_noncanonical} ;;
1383 *) host_noncanonical=${host_alias} ;;
1384 esac
1386 case ${target_alias} in
1387 "") target_noncanonical=${host_noncanonical} ;;
1388 *) target_noncanonical=${target_alias} ;;
1389 esac
1392 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1393 # have matching libraries, they should use host libraries: Makefile.tpl
1394 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1395 # However, they still use the build modules, because the corresponding
1396 # host modules (e.g. bison) are only built for the host when bootstrap
1397 # finishes. So:
1398 # - build_subdir is where we find build modules, and never changes.
1399 # - build_libsubdir is where we find build libraries, and can be overridden.
1401 # Prefix 'build-' so this never conflicts with target_subdir.
1402 build_subdir="build-${build_noncanonical}"
1404 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1405 if test "${with_build_libsubdir+set}" = set; then
1406 withval="$with_build_libsubdir"
1407 build_libsubdir="$withval"
1408 else
1409 build_libsubdir="$build_subdir"
1411 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1412 if ( test $srcdir = . && test -d gcc ) \
1413 || test -d $srcdir/../host-${host_noncanonical}; then
1414 host_subdir="host-${host_noncanonical}"
1415 else
1416 host_subdir=.
1418 # No prefix.
1419 target_subdir=${target_noncanonical}
1422 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1423 PACKAGE=libobjc
1424 # Version is pulled out to make it a bit easier to change using sed.
1425 VERSION=2:0:0
1428 # This works around the fact that libtool configuration may change LD
1429 # for this particular configuration, but some shells, instead of
1430 # keeping the changes in LD private, export them just because LD is
1431 # exported.
1432 ORIGINAL_LD_FOR_MULTILIBS=$LD
1434 # -------
1435 # Options
1436 # -------
1438 # We use these options to decide which functions to include.
1440 # Check whether --with-target-subdir or --without-target-subdir was given.
1441 if test "${with_target_subdir+set}" = set; then
1442 withval="$with_target_subdir"
1446 # Check whether --with-cross-host or --without-cross-host was given.
1447 if test "${with_cross_host+set}" = set; then
1448 withval="$with_cross_host"
1452 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1453 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1454 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1455 if test "${enable_version_specific_runtime_libs+set}" = set; then
1456 enableval="$enable_version_specific_runtime_libs"
1457 case "$enableval" in
1458 yes) version_specific_libs=yes ;;
1459 no) version_specific_libs=no ;;
1460 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1461 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1462 { (exit 1); exit 1; }; };;
1463 esac
1464 else
1465 version_specific_libs=no
1467 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1468 echo "${ECHO_T}$version_specific_libs" >&6
1470 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1471 if test "${enable_objc_gc+set}" = set; then
1472 enableval="$enable_objc_gc"
1473 case $enable_objc_gc in
1475 OBJC_BOEHM_GC=''
1476 OBJC_BOEHM_GC_INCLUDES=''
1479 OBJC_BOEHM_GC=libobjc_gc.la
1480 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1482 esac
1483 else
1484 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1489 # -----------
1490 # Directories
1491 # -----------
1493 # Find the rest of the source tree framework.
1494 # Default to --enable-multilib
1495 # Check whether --enable-multilib or --disable-multilib was given.
1496 if test "${enable_multilib+set}" = set; then
1497 enableval="$enable_multilib"
1498 case "$enableval" in
1499 yes) multilib=yes ;;
1500 no) multilib=no ;;
1501 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1502 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1503 { (exit 1); exit 1; }; } ;;
1504 esac
1505 else
1506 multilib=yes
1509 # We may get other options which we leave undocumented:
1510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1511 # See config-ml.in if you want the gory details.
1513 if test "$srcdir" = "."; then
1514 if test "$with_target_subdir" != "."; then
1515 multi_basedir="$srcdir/$with_multisrctop../.."
1516 else
1517 multi_basedir="$srcdir/$with_multisrctop.."
1519 else
1520 multi_basedir="$srcdir/.."
1524 # Even if the default multilib is not a cross compilation,
1525 # it may be that some of the other multilibs are.
1526 if test $cross_compiling = no && test $multilib = yes \
1527 && test "x${with_multisubdir}" != x ; then
1528 cross_compiling=maybe
1531 ac_config_commands="$ac_config_commands default-1"
1534 echo "$as_me:$LINENO: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1550 host=$ac_cv_host
1551 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$as_me:$LINENO: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 # The aliases save the names the user supplied, while $host etc.
1579 # will get canonicalized.
1580 test -n "$target_alias" &&
1581 test "$program_prefix$program_suffix$program_transform_name" = \
1582 NONENONEs,x,x, &&
1583 program_prefix=${target_alias}-
1587 # Export source directory.
1588 # These need to be absolute paths, yet at the same time need to
1589 # canonicalize only relative paths, because then amd will not unmount
1590 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1591 case $srcdir in
1592 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1593 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1594 esac
1597 # Calculate toolexeclibdir
1598 # Also toolexecdir, though it's only used in toolexeclibdir
1599 case ${version_specific_libs} in
1600 yes)
1601 # Need the gcc compiler version to know where to install libraries
1602 # and header files if --enable-version-specific-runtime-libs option
1603 # is selected.
1604 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1605 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1608 if test -n "$with_cross_host" &&
1609 test x"$with_cross_host" != x"no"; then
1610 # Install a library built with a cross compiler in tooldir, not libdir.
1611 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1612 toolexeclibdir='$(toolexecdir)/lib'
1613 else
1614 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1615 toolexeclibdir='$(libdir)'
1617 multi_os_directory=`$CC -print-multi-os-directory`
1618 case $multi_os_directory in
1619 .) ;; # Avoid trailing /.
1620 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1621 esac
1623 esac
1627 # Figure out if we want to name the include directory and the
1628 # library name changes differently.
1629 includedirname=include
1630 libext=
1631 case "${host}" in
1632 *-darwin*)
1633 # Darwin is the only target so far that needs a different include directory.
1634 includedirname=include-gnu-runtime
1635 libext=-gnu
1637 esac
1641 ac_config_headers="$ac_config_headers config.h"
1644 # --------
1645 # Programs
1646 # --------
1650 # We must force CC to /not/ be a precious variable; otherwise
1651 # the wrong, non-multilib-adjusted value will be used in multilibs.
1652 # As a side effect, we have to subst CFLAGS ourselves.
1655 ac_ext=c
1656 ac_cpp='$CPP $CPPFLAGS'
1657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1682 done
1683 done
1687 CC=$ac_cv_prog_CC
1688 if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1691 else
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$ac_cv_prog_CC"; then
1698 ac_ct_CC=$CC
1699 # Extract the first word of "gcc", so it can be a program name with args.
1700 set dummy gcc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="gcc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1720 done
1721 done
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 CC=$ac_ct_CC
1735 else
1736 CC="$ac_cv_prog_CC"
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1742 set dummy ${ac_tool_prefix}cc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="${ac_tool_prefix}cc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1762 done
1763 done
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1777 if test -z "$ac_cv_prog_CC"; then
1778 ac_ct_CC=$CC
1779 # Extract the first word of "cc", so it can be a program name with args.
1780 set dummy cc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$ac_ct_CC"; then
1787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_ac_ct_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 CC=$ac_ct_CC
1815 else
1816 CC="$ac_cv_prog_CC"
1820 if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 ac_prog_rejected=no
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1841 continue
1843 ac_cv_prog_CC="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1847 done
1848 done
1850 if test $ac_prog_rejected = yes; then
1851 # We found a bogon in the path, so make sure we never use it.
1852 set dummy $ac_cv_prog_CC
1853 shift
1854 if test $# != 0; then
1855 # We chose a different compiler from the bogus one.
1856 # However, it has the same basename, so the bogon will be chosen
1857 # first if we set CC to just the basename; use the full file name.
1858 shift
1859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$CC"; then
1875 if test -n "$ac_tool_prefix"; then
1876 for ac_prog in cl
1878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1899 done
1900 done
1904 CC=$ac_cv_prog_CC
1905 if test -n "$CC"; then
1906 echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1908 else
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$CC" && break
1914 done
1916 if test -z "$CC"; then
1917 ac_ct_CC=$CC
1918 for ac_prog in cl
1920 # Extract the first word of "$ac_prog", so it can be a program name with args.
1921 set dummy $ac_prog; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1941 done
1942 done
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1950 else
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1955 test -n "$ac_ct_CC" && break
1956 done
1958 CC=$ac_ct_CC
1964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: no acceptable C compiler found in \$PATH
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1970 # Provide some information about the compiler.
1971 echo "$as_me:$LINENO:" \
1972 "checking for C compiler version" >&5
1973 ac_compiler=`set X $ac_compile; echo $2`
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975 (eval $ac_compiler --version </dev/null >&5) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980 (eval $ac_compiler -v </dev/null >&5) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985 (eval $ac_compiler -V </dev/null >&5) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h. */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1998 main ()
2002 return 0;
2004 _ACEOF
2005 # FIXME: Cleanup?
2006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2007 (eval $ac_link) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; then
2011 gcc_no_link=no
2012 else
2013 gcc_no_link=yes
2016 if test x$gcc_no_link = xyes; then
2017 # Setting cross_compile will disable run tests; it will
2018 # also disable AC_CHECK_FILE but that's generally
2019 # correct if we can't link.
2020 cross_compiling=yes
2021 EXEEXT=
2022 else
2023 cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h. */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2031 main ()
2035 return 0;
2037 _ACEOF
2038 ac_clean_files_save=$ac_clean_files
2039 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2040 # Try to create an executable without -o first, disregard a.out.
2041 # It will help us diagnose broken compilers, and finding out an intuition
2042 # of exeext.
2043 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2044 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2045 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2046 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2047 (eval $ac_link_default) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; then
2051 # Find the output, starting from the most likely. This scheme is
2052 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2053 # resort.
2055 # Be careful to initialize this variable, since it used to be cached.
2056 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2057 ac_cv_exeext=
2058 # b.out is created by i960 compilers.
2059 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2061 test -f "$ac_file" || continue
2062 case $ac_file in
2063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2065 conftest.$ac_ext )
2066 # This is the source file.
2068 [ab].out )
2069 # We found the default executable, but exeext='' is most
2070 # certainly right.
2071 break;;
2072 *.* )
2073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 # FIXME: I believe we export ac_cv_exeext for Libtool,
2075 # but it would be cool to find out if it's true. Does anybody
2076 # maintain Libtool? --akim.
2077 export ac_cv_exeext
2078 break;;
2080 break;;
2081 esac
2082 done
2083 else
2084 echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2088 See \`config.log' for more details." >&5
2089 echo "$as_me: error: C compiler cannot create executables
2090 See \`config.log' for more details." >&2;}
2091 { (exit 77); exit 77; }; }
2094 ac_exeext=$ac_cv_exeext
2095 echo "$as_me:$LINENO: result: $ac_file" >&5
2096 echo "${ECHO_T}$ac_file" >&6
2098 # Check the compiler produces executables we can run. If not, either
2099 # the compiler is broken, or we cross compile.
2100 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2103 # If not cross compiling, check that we can run a simple program.
2104 if test "$cross_compiling" != yes; then
2105 if { ac_try='./$ac_file'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 cross_compiling=no
2112 else
2113 if test "$cross_compiling" = maybe; then
2114 cross_compiling=yes
2115 else
2116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2117 If you meant to cross compile, use \`--host'.
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: cannot run C compiled programs.
2120 If you meant to cross compile, use \`--host'.
2121 See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2126 echo "$as_me:$LINENO: result: yes" >&5
2127 echo "${ECHO_T}yes" >&6
2129 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2130 ac_clean_files=$ac_clean_files_save
2131 # Check the compiler produces executables we can run. If not, either
2132 # the compiler is broken, or we cross compile.
2133 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2135 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2136 echo "${ECHO_T}$cross_compiling" >&6
2138 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2141 (eval $ac_link) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; then
2145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2147 # work properly (i.e., refer to `conftest.exe'), while it won't with
2148 # `rm'.
2149 for ac_file in conftest.exe conftest conftest.*; do
2150 test -f "$ac_file" || continue
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154 export ac_cv_exeext
2155 break;;
2156 * ) break;;
2157 esac
2158 done
2159 else
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2163 See \`config.log' for more details." >&2;}
2164 { (exit 1); exit 1; }; }
2167 rm -f conftest$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2169 echo "${ECHO_T}$ac_cv_exeext" >&6
2171 rm -f conftest.$ac_ext
2172 EXEEXT=$ac_cv_exeext
2173 ac_exeext=$EXEEXT
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h. */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2188 main ()
2192 return 0;
2194 _ACEOF
2195 rm -f conftest.o conftest.obj
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2202 case $ac_file in
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205 break;;
2206 esac
2207 done
2208 else
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222 echo "${ECHO_T}$ac_cv_objext" >&6
2223 OBJEXT=$ac_cv_objext
2224 ac_objext=$OBJEXT
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.$ac_ext <<_ACEOF
2231 /* confdefs.h. */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2238 main ()
2240 #ifndef __GNUC__
2241 choke me
2242 #endif
2245 return 0;
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 ac_compiler_gnu=yes
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 ac_compiler_gnu=no
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283 GCC=`test $ac_compiler_gnu = yes && echo yes`
2284 ac_test_CFLAGS=${CFLAGS+set}
2285 ac_save_CFLAGS=$CFLAGS
2286 CFLAGS="-g"
2287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289 if test "${ac_cv_prog_cc_g+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 main ()
2304 return 0;
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2310 ac_status=$?
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 ac_cv_prog_cc_g=yes
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 ac_cv_prog_cc_g=no
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340 if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS=$ac_save_CFLAGS
2342 elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2344 CFLAGS="-g -O2"
2345 else
2346 CFLAGS="-g"
2348 else
2349 if test "$GCC" = yes; then
2350 CFLAGS="-O2"
2351 else
2352 CFLAGS=
2355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 ac_cv_prog_cc_stdc=no
2361 ac_save_CC=$CC
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h. */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2368 #include <stdarg.h>
2369 #include <stdio.h>
2370 #include <sys/types.h>
2371 #include <sys/stat.h>
2372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2373 struct buf { int x; };
2374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2375 static char *e (p, i)
2376 char **p;
2377 int i;
2379 return p[i];
2381 static char *f (char * (*g) (char **, int), char **p, ...)
2383 char *s;
2384 va_list v;
2385 va_start (v,p);
2386 s = g (p, va_arg (v,int));
2387 va_end (v);
2388 return s;
2391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2392 function prototypes and stuff, but not '\xHH' hex character constants.
2393 These don't provoke an error unfortunately, instead are silently treated
2394 as 'x'. The following induces an error, until -std1 is added to get
2395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2396 array size at least. It's necessary to write '\x00'==0 to get something
2397 that's true only with -std1. */
2398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2400 int test (int i, double x);
2401 struct s1 {int (*f) (int a);};
2402 struct s2 {int (*f) (double a);};
2403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404 int argc;
2405 char **argv;
2407 main ()
2409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2411 return 0;
2413 _ACEOF
2414 # Don't try gcc -ansi; that turns off useful extensions and
2415 # breaks some systems' header files.
2416 # AIX -qlanglvl=ansi
2417 # Ultrix and OSF/1 -std1
2418 # HP-UX 10.20 and later -Ae
2419 # HP-UX older versions -Aa -D_HPUX_SOURCE
2420 # SVR4 -Xc -D__EXTENSIONS__
2421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2423 CC="$ac_save_CC $ac_arg"
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 ac_cv_prog_cc_stdc=$ac_arg
2447 break
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext
2454 done
2455 rm -f conftest.$ac_ext conftest.$ac_objext
2456 CC=$ac_save_CC
2460 case "x$ac_cv_prog_cc_stdc" in
2461 x|xno)
2462 echo "$as_me:$LINENO: result: none needed" >&5
2463 echo "${ECHO_T}none needed" >&6 ;;
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2467 CC="$CC $ac_cv_prog_cc_stdc" ;;
2468 esac
2470 # Some people use a C++ compiler to compile C. Since we use `exit',
2471 # in C++ we need to declare it. In case someone uses the same compiler
2472 # for both compiling C and C++ we need to have the C++ compiler decide
2473 # the declaration of exit, since it's the most demanding environment.
2474 cat >conftest.$ac_ext <<_ACEOF
2475 #ifndef __cplusplus
2476 choke me
2477 #endif
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>conftest.er1
2482 ac_status=$?
2483 grep -v '^ *+' conftest.er1 >conftest.err
2484 rm -f conftest.er1
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag"
2489 || test ! -s conftest.err'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 for ac_declaration in \
2502 '' \
2503 'extern "C" void std::exit (int) throw (); using std::exit;' \
2504 'extern "C" void std::exit (int); using std::exit;' \
2505 'extern "C" void exit (int) throw ();' \
2506 'extern "C" void exit (int);' \
2507 'void exit (int);'
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 $ac_declaration
2516 #include <stdlib.h>
2518 main ()
2520 exit (42);
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 continue
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h. */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2561 $ac_declaration
2563 main ()
2565 exit (42);
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 break
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 done
2600 rm -f conftest*
2601 if test -n "$ac_declaration"; then
2602 echo '#ifdef __cplusplus' >>confdefs.h
2603 echo $ac_declaration >>confdefs.h
2604 echo '#endif' >>confdefs.h
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 # extra LD Flags which are required for targets
2622 case "${host}" in
2623 *-darwin*)
2624 # Darwin needs -single_module when linking libobjc
2625 extra_ldflags_libobjc=-Wl,-single_module
2627 esac
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}as; ac_word=$2
2635 echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_AS+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$AS"; then
2641 ac_cv_prog_AS="$AS" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_AS="${ac_tool_prefix}as"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2659 AS=$ac_cv_prog_AS
2660 if test -n "$AS"; then
2661 echo "$as_me:$LINENO: result: $AS" >&5
2662 echo "${ECHO_T}$AS" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2669 if test -z "$ac_cv_prog_AS"; then
2670 ac_ct_AS=$AS
2671 # Extract the first word of "as", so it can be a program name with args.
2672 set dummy as; ac_word=$2
2673 echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$ac_ct_AS"; then
2679 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_AS="as"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2697 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2698 if test -n "$ac_ct_AS"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2700 echo "${ECHO_T}$ac_ct_AS" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 AS=$ac_ct_AS
2707 else
2708 AS="$ac_cv_prog_AS"
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}ar; ac_word=$2
2714 echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716 if test "${ac_cv_prog_AR+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 if test -n "$AR"; then
2720 ac_cv_prog_AR="$AR" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_AR="${ac_tool_prefix}ar"
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2738 AR=$ac_cv_prog_AR
2739 if test -n "$AR"; then
2740 echo "$as_me:$LINENO: result: $AR" >&5
2741 echo "${ECHO_T}$AR" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2748 if test -z "$ac_cv_prog_AR"; then
2749 ac_ct_AR=$AR
2750 # Extract the first word of "ar", so it can be a program name with args.
2751 set dummy ar; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 if test -n "$ac_ct_AR"; then
2758 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_ac_ct_AR="ar"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2777 if test -n "$ac_ct_AR"; then
2778 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2779 echo "${ECHO_T}$ac_ct_AR" >&6
2780 else
2781 echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2785 AR=$ac_ct_AR
2786 else
2787 AR="$ac_cv_prog_AR"
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_RANLIB+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$RANLIB"; then
2799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2817 RANLIB=$ac_cv_prog_RANLIB
2818 if test -n "$RANLIB"; then
2819 echo "$as_me:$LINENO: result: $RANLIB" >&5
2820 echo "${ECHO_T}$RANLIB" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2827 if test -z "$ac_cv_prog_RANLIB"; then
2828 ac_ct_RANLIB=$RANLIB
2829 # Extract the first word of "ranlib", so it can be a program name with args.
2830 set dummy ranlib; ac_word=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 if test -n "$ac_ct_RANLIB"; then
2837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_RANLIB="ranlib"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2853 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2857 if test -n "$ac_ct_RANLIB"; then
2858 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2859 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2860 else
2861 echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2865 RANLIB=$ac_ct_RANLIB
2866 else
2867 RANLIB="$ac_cv_prog_RANLIB"
2870 # Find a good install program. We prefer a C program (faster),
2871 # so one script is as good as another. But avoid the broken or
2872 # incompatible versions:
2873 # SysV /etc/install, /usr/sbin/install
2874 # SunOS /usr/etc/install
2875 # IRIX /sbin/install
2876 # AIX /bin/install
2877 # AmigaOS /C/install, which installs bootblocks on floppy discs
2878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881 # OS/2's system install, which has a completely different semantic
2882 # ./install, which can be erroneously created by make from ./install.sh.
2883 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2884 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2885 if test -z "$INSTALL"; then
2886 if test "${ac_cv_path_install+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 # Account for people who put trailing slashes in PATH elements.
2895 case $as_dir/ in
2896 ./ | .// | /cC/* | \
2897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2899 /usr/ucb/* ) ;;
2901 # OSF1 and SCO ODT 3.0 have their own names for install.
2902 # Don't use installbsd from OSF since it installs stuff as root
2903 # by default.
2904 for ac_prog in ginstall scoinst install; do
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2907 if test $ac_prog = install &&
2908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909 # AIX install. It has an incompatible calling convention.
2911 elif test $ac_prog = install &&
2912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913 # program-specific install script used by HP pwplus--don't use.
2915 else
2916 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2917 break 3
2920 done
2921 done
2923 esac
2924 done
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. We don't cache a
2932 # path for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the path is relative.
2935 INSTALL=$ac_install_sh
2938 echo "$as_me:$LINENO: result: $INSTALL" >&5
2939 echo "${ECHO_T}$INSTALL" >&6
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2951 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2952 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then
2954 enableval="$enable_maintainer_mode"
2955 USE_MAINTAINER_MODE=$enableval
2956 else
2957 USE_MAINTAINER_MODE=no
2959 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2960 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2963 if test $USE_MAINTAINER_MODE = yes; then
2964 MAINTAINER_MODE_TRUE=
2965 MAINTAINER_MODE_FALSE='#'
2966 else
2967 MAINTAINER_MODE_TRUE='#'
2968 MAINTAINER_MODE_FALSE=
2971 MAINT=$MAINTAINER_MODE_TRUE
2975 # Enable Win32 DLL on MS Windows - FIXME
2978 # Check whether --enable-shared or --disable-shared was given.
2979 if test "${enable_shared+set}" = set; then
2980 enableval="$enable_shared"
2981 p=${PACKAGE-default}
2982 case $enableval in
2983 yes) enable_shared=yes ;;
2984 no) enable_shared=no ;;
2986 enable_shared=no
2987 # Look at the argument we got. We use all the common list separators.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2989 for pkg in $enableval; do
2990 if test "X$pkg" = "X$p"; then
2991 enable_shared=yes
2993 done
2994 IFS="$ac_save_ifs"
2996 esac
2997 else
2998 enable_shared=yes
3000 # Check whether --enable-static or --disable-static was given.
3001 if test "${enable_static+set}" = set; then
3002 enableval="$enable_static"
3003 p=${PACKAGE-default}
3004 case $enableval in
3005 yes) enable_static=yes ;;
3006 no) enable_static=no ;;
3008 enable_static=no
3009 # Look at the argument we got. We use all the common list separators.
3010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3011 for pkg in $enableval; do
3012 if test "X$pkg" = "X$p"; then
3013 enable_static=yes
3015 done
3016 IFS="$ac_save_ifs"
3018 esac
3019 else
3020 enable_static=yes
3022 # Check whether --enable-fast-install or --disable-fast-install was given.
3023 if test "${enable_fast_install+set}" = set; then
3024 enableval="$enable_fast_install"
3025 p=${PACKAGE-default}
3026 case $enableval in
3027 yes) enable_fast_install=yes ;;
3028 no) enable_fast_install=no ;;
3030 enable_fast_install=no
3031 # Look at the argument we got. We use all the common list separators.
3032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3033 for pkg in $enableval; do
3034 if test "X$pkg" = "X$p"; then
3035 enable_fast_install=yes
3037 done
3038 IFS="$ac_save_ifs"
3040 esac
3041 else
3042 enable_fast_install=yes
3045 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3046 if test "${with_gnu_ld+set}" = set; then
3047 withval="$with_gnu_ld"
3048 test "$withval" = no || with_gnu_ld=yes
3049 else
3050 with_gnu_ld=no
3052 ac_prog=ld
3053 if test "$GCC" = yes; then
3054 # Check if gcc -print-prog-name=ld gives a path.
3055 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3056 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3057 case $host in
3058 *-*-mingw*)
3059 # gcc leaves a trailing carriage return which upsets mingw
3060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3063 esac
3064 case $ac_prog in
3065 # Accept absolute paths.
3066 [\\/]* | [A-Za-z]:[\\/]*)
3067 re_direlt='/[^/][^/]*/\.\./'
3068 # Canonicalize the path of ld
3069 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3071 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3072 done
3073 test -z "$LD" && LD="$ac_prog"
3076 # If it fails, then pretend we aren't using GCC.
3077 ac_prog=ld
3080 # If it is relative, then search for the first ld in PATH.
3081 with_gnu_ld=unknown
3083 esac
3084 elif test "$with_gnu_ld" = yes; then
3085 echo "$as_me:$LINENO: checking for GNU ld" >&5
3086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3087 else
3088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3091 if test "${lt_cv_path_LD+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 if test -z "$LD"; then
3095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3096 for ac_dir in $PATH; do
3097 test -z "$ac_dir" && ac_dir=.
3098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3099 lt_cv_path_LD="$ac_dir/$ac_prog"
3100 # Check to see if the program is GNU ld. I'd rather use --version,
3101 # but apparently some GNU ld's only accept -v.
3102 # Break only if it was the GNU/non-GNU ld that we prefer.
3103 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3104 test "$with_gnu_ld" != no && break
3105 else
3106 test "$with_gnu_ld" != yes && break
3109 done
3110 IFS="$ac_save_ifs"
3111 else
3112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3116 LD="$lt_cv_path_LD"
3117 if test -n "$LD"; then
3118 echo "$as_me:$LINENO: result: $LD" >&5
3119 echo "${ECHO_T}$LD" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3126 { (exit 1); exit 1; }; }
3127 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3133 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3134 lt_cv_prog_gnu_ld=yes
3135 else
3136 lt_cv_prog_gnu_ld=no
3139 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3141 with_gnu_ld=$lt_cv_prog_gnu_ld
3144 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3145 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3146 if test "${lt_cv_ld_reload_flag+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 lt_cv_ld_reload_flag='-r'
3151 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3152 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3153 reload_flag=$lt_cv_ld_reload_flag
3154 test -n "$reload_flag" && reload_flag=" $reload_flag"
3156 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3158 if test "${lt_cv_path_NM+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 if test -n "$NM"; then
3162 # Let the user override the test.
3163 lt_cv_path_NM="$NM"
3164 else
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3166 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3167 test -z "$ac_dir" && ac_dir=.
3168 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3169 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3170 # Check to see if the nm accepts a BSD-compat flag.
3171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3172 # nm: unknown option "B" ignored
3173 # Tru64's nm complains that /dev/null is an invalid object file
3174 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3175 lt_cv_path_NM="$tmp_nm -B"
3176 break
3177 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3178 lt_cv_path_NM="$tmp_nm -p"
3179 break
3180 else
3181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3182 continue # so that we can try to find one that supports BSD flags
3185 done
3186 IFS="$ac_save_ifs"
3187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3191 NM="$lt_cv_path_NM"
3192 echo "$as_me:$LINENO: result: $NM" >&5
3193 echo "${ECHO_T}$NM" >&6
3195 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3196 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3197 LN_S=$as_ln_s
3198 if test "$LN_S" = "ln -s"; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3203 echo "${ECHO_T}no, using $LN_S" >&6
3206 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3207 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3208 if test "${lt_cv_deplibs_check_method+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 lt_cv_file_magic_cmd='$MAGIC_CMD'
3212 lt_cv_file_magic_test_file=
3213 lt_cv_deplibs_check_method='unknown'
3214 # Need to set the preceding variable on all platforms that support
3215 # interlibrary dependencies.
3216 # 'none' -- dependencies not supported.
3217 # `unknown' -- same as none, but documents that we really don't know.
3218 # 'pass_all' -- all dependencies passed with no checks.
3219 # 'test_compile' -- check by making test program.
3220 # 'file_magic [regex]' -- check by looking for files in library path
3221 # which responds to the $file_magic_cmd with a given egrep regex.
3222 # If you have `file' or equivalent on your system and you're not sure
3223 # whether `pass_all' will *always* work, you probably want this one.
3225 case $host_os in
3226 aix*)
3227 lt_cv_deplibs_check_method=pass_all
3230 beos*)
3231 lt_cv_deplibs_check_method=pass_all
3234 bsdi4*)
3235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3236 lt_cv_file_magic_cmd='/usr/bin/file -L'
3237 lt_cv_file_magic_test_file=/shlib/libc.so
3240 cygwin* | mingw* |pw32*)
3241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3242 lt_cv_file_magic_cmd='$OBJDUMP -f'
3245 darwin* | rhapsody*)
3246 # this will be overwritten by pass_all, but leave it in just in case
3247 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3248 lt_cv_file_magic_cmd='/usr/bin/file -L'
3249 case "$host_os" in
3250 rhapsody* | darwin1.012)
3251 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3253 *) # Darwin 1.3 on
3254 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3256 esac
3257 lt_cv_deplibs_check_method=pass_all
3260 freebsd* | kfreebsd*-gnu)
3261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3262 case $host_cpu in
3263 i*86 )
3264 # Not sure whether the presence of OpenBSD here was a mistake.
3265 # Let's accept both of them until this is cleared up.
3266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3267 lt_cv_file_magic_cmd=/usr/bin/file
3268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3270 esac
3271 else
3272 lt_cv_deplibs_check_method=pass_all
3276 gnu*)
3277 lt_cv_deplibs_check_method=pass_all
3280 hpux10.20*|hpux11*)
3281 case $host_cpu in
3282 hppa*)
3283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3284 lt_cv_file_magic_cmd=/usr/bin/file
3285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3287 ia64*)
3288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3289 lt_cv_file_magic_cmd=/usr/bin/file
3290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3292 esac
3295 irix5* | irix6*)
3296 case $host_os in
3297 irix5*)
3298 # this will be overridden with pass_all, but let us keep it just in case
3299 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3302 case $LD in
3303 *-32|*"-32 ") libmagic=32-bit;;
3304 *-n32|*"-n32 ") libmagic=N32;;
3305 *-64|*"-64 ") libmagic=64-bit;;
3306 *) libmagic=never-match;;
3307 esac
3308 # this will be overridden with pass_all, but let us keep it just in case
3309 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3311 esac
3312 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3313 lt_cv_deplibs_check_method=pass_all
3316 # This must be Linux ELF.
3317 linux-gnu*)
3318 lt_cv_deplibs_check_method=pass_all
3321 netbsd* | knetbsd*-gnu)
3322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3324 else
3325 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3329 newsos6)
3330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3331 lt_cv_file_magic_cmd=/usr/bin/file
3332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3335 osf3* | osf4* | osf5*)
3336 # this will be overridden with pass_all, but let us keep it just in case
3337 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3338 lt_cv_file_magic_test_file=/shlib/libc.so
3339 lt_cv_deplibs_check_method=pass_all
3342 sco3.2v5*)
3343 lt_cv_deplibs_check_method=pass_all
3346 solaris*)
3347 lt_cv_deplibs_check_method=pass_all
3348 lt_cv_file_magic_test_file=/lib/libc.so
3351 sysv5uw[78]* | sysv4*uw2*)
3352 lt_cv_deplibs_check_method=pass_all
3355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3356 case $host_vendor in
3357 ncr)
3358 lt_cv_deplibs_check_method=pass_all
3360 motorola)
3361 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]'
3362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3364 esac
3366 esac
3369 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3370 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3371 file_magic_cmd=$lt_cv_file_magic_cmd
3372 deplibs_check_method=$lt_cv_deplibs_check_method
3378 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3380 # find the maximum length of command line arguments
3381 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3382 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3387 teststring="ABCD"
3389 case $build_os in
3390 msdosdjgpp*)
3391 # On DJGPP, this test can blow up pretty badly due to problems in libc
3392 # (any single argument exceeding 2000 bytes causes a buffer overrun
3393 # during glob expansion). Even if it were fixed, the result of this
3394 # check would be larger than it should be.
3395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3398 cygwin* | mingw*)
3399 # On Win9x/ME, this test blows up -- it succeeds, but takes
3400 # about 5 minutes as the teststring grows exponentially.
3401 # Worse, since 9x/ME are not pre-emptively multitasking,
3402 # you end up with a "frozen" computer, even though with patience
3403 # the test eventually succeeds (with a max line length of 256k).
3404 # Instead, let's just punt: use the minimum linelength reported by
3405 # all of the supported platforms: 8192 (on NT/2K/XP).
3406 lt_cv_sys_max_cmd_len=8192;
3409 amigaos*)
3410 # On AmigaOS with pdksh, this test takes hours, literally.
3411 # So we just punt and use a minimum line length of 8192.
3412 lt_cv_sys_max_cmd_len=8192;
3415 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3416 # This has been around since 386BSD, at least. Likely further.
3417 if test -x /sbin/sysctl; then
3418 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3419 elif test -x /usr/sbin/sysctl; then
3420 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3421 else
3422 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3424 # And add a safety zone
3425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3428 esac
3432 if test -n "$lt_cv_sys_max_cmd_len" ; then
3433 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3434 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3435 else
3436 echo "$as_me:$LINENO: result: none" >&5
3437 echo "${ECHO_T}none" >&6
3441 # Only perform the check for file, if the check method requires it
3442 case $deplibs_check_method in
3443 file_magic*)
3444 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3445 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3446 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 case $MAGIC_CMD in
3452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3454 ?:/*)
3455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3458 ac_save_MAGIC_CMD="$MAGIC_CMD"
3459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3460 ac_dummy="/usr/bin:$PATH"
3461 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if test -f $ac_dir/${ac_tool_prefix}file; then
3464 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3465 if test -n "$file_magic_test_file"; then
3466 case $deplibs_check_method in
3467 "file_magic "*)
3468 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3471 egrep "$file_magic_regex" > /dev/null; then
3473 else
3474 cat <<EOF 1>&2
3476 *** Warning: the command libtool uses to detect shared libraries,
3477 *** $file_magic_cmd, produces output that libtool cannot recognize.
3478 *** The result is that libtool may fail to recognize shared libraries
3479 *** as such. This will affect the creation of libtool libraries that
3480 *** depend on shared libraries, but programs linked with such libtool
3481 *** libraries will work regardless of this problem. Nevertheless, you
3482 *** may want to report the problem to your system manager and/or to
3483 *** bug-libtool@gnu.org
3486 fi ;;
3487 esac
3489 break
3491 done
3492 IFS="$ac_save_ifs"
3493 MAGIC_CMD="$ac_save_MAGIC_CMD"
3495 esac
3498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3499 if test -n "$MAGIC_CMD"; then
3500 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3501 echo "${ECHO_T}$MAGIC_CMD" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 if test -z "$lt_cv_path_MAGIC_CMD"; then
3508 if test -n "$ac_tool_prefix"; then
3509 echo "$as_me:$LINENO: checking for file" >&5
3510 echo $ECHO_N "checking for file... $ECHO_C" >&6
3511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 case $MAGIC_CMD in
3516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3518 ?:/*)
3519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3522 ac_save_MAGIC_CMD="$MAGIC_CMD"
3523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3524 ac_dummy="/usr/bin:$PATH"
3525 for ac_dir in $ac_dummy; do
3526 test -z "$ac_dir" && ac_dir=.
3527 if test -f $ac_dir/file; then
3528 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3529 if test -n "$file_magic_test_file"; then
3530 case $deplibs_check_method in
3531 "file_magic "*)
3532 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3535 egrep "$file_magic_regex" > /dev/null; then
3537 else
3538 cat <<EOF 1>&2
3540 *** Warning: the command libtool uses to detect shared libraries,
3541 *** $file_magic_cmd, produces output that libtool cannot recognize.
3542 *** The result is that libtool may fail to recognize shared libraries
3543 *** as such. This will affect the creation of libtool libraries that
3544 *** depend on shared libraries, but programs linked with such libtool
3545 *** libraries will work regardless of this problem. Nevertheless, you
3546 *** may want to report the problem to your system manager and/or to
3547 *** bug-libtool@gnu.org
3550 fi ;;
3551 esac
3553 break
3555 done
3556 IFS="$ac_save_ifs"
3557 MAGIC_CMD="$ac_save_MAGIC_CMD"
3559 esac
3562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3563 if test -n "$MAGIC_CMD"; then
3564 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3565 echo "${ECHO_T}$MAGIC_CMD" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3571 else
3572 MAGIC_CMD=:
3578 esac
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_RANLIB+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$RANLIB"; then
3589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3607 RANLIB=$ac_cv_prog_RANLIB
3608 if test -n "$RANLIB"; then
3609 echo "$as_me:$LINENO: result: $RANLIB" >&5
3610 echo "${ECHO_T}$RANLIB" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3617 if test -z "$ac_cv_prog_RANLIB"; then
3618 ac_ct_RANLIB=$RANLIB
3619 # Extract the first word of "ranlib", so it can be a program name with args.
3620 set dummy ranlib; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 if test -n "$ac_ct_RANLIB"; then
3627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_ac_ct_RANLIB="ranlib"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3640 done
3641 done
3643 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3647 if test -n "$ac_ct_RANLIB"; then
3648 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3649 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3655 RANLIB=$ac_ct_RANLIB
3656 else
3657 RANLIB="$ac_cv_prog_RANLIB"
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}strip; ac_word=$2
3663 echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_STRIP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 if test -n "$STRIP"; then
3669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3682 done
3683 done
3687 STRIP=$ac_cv_prog_STRIP
3688 if test -n "$STRIP"; then
3689 echo "$as_me:$LINENO: result: $STRIP" >&5
3690 echo "${ECHO_T}$STRIP" >&6
3691 else
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3697 if test -z "$ac_cv_prog_STRIP"; then
3698 ac_ct_STRIP=$STRIP
3699 # Extract the first word of "strip", so it can be a program name with args.
3700 set dummy strip; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 if test -n "$ac_ct_STRIP"; then
3707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_ac_ct_STRIP="strip"
3717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3723 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3727 if test -n "$ac_ct_STRIP"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3729 echo "${ECHO_T}$ac_ct_STRIP" >&6
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3735 STRIP=$ac_ct_STRIP
3736 else
3737 STRIP="$ac_cv_prog_STRIP"
3741 # Check for any special flags to pass to ltconfig.
3742 libtool_flags="--cache-file=$cache_file"
3743 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3744 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3745 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3746 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3747 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3750 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3751 if test "${enable_libtool_lock+set}" = set; then
3752 enableval="$enable_libtool_lock"
3755 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3756 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3759 # Check whether --with-pic or --without-pic was given.
3760 if test "${with_pic+set}" = set; then
3761 withval="$with_pic"
3762 pic_mode="$withval"
3763 else
3764 pic_mode=default
3766 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3767 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3769 # Some flags need to be propagated to the compiler or linker for good
3770 # libtool support.
3771 case $host in
3772 *-*-irix6*)
3773 # Find out which ABI we are using.
3774 echo '#line 3774 "configure"' > conftest.$ac_ext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; then
3780 if test "$lt_cv_prog_gnu_ld" = yes; then
3781 case `/usr/bin/file conftest.$ac_objext` in
3782 *32-bit*)
3783 LD="${LD-ld} -melf32bsmip"
3785 *N32*)
3786 LD="${LD-ld} -melf32bmipn32"
3788 *64-bit*)
3789 LD="${LD-ld} -melf64bmip"
3791 esac
3792 else
3793 case `/usr/bin/file conftest.$ac_objext` in
3794 *32-bit*)
3795 LD="${LD-ld} -32"
3797 *N32*)
3798 LD="${LD-ld} -n32"
3800 *64-bit*)
3801 LD="${LD-ld} -64"
3803 esac
3806 rm -rf conftest*
3809 ia64-*-hpux*)
3810 # Find out which ABI we are using.
3811 echo 'int i;' > conftest.$ac_ext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3813 (eval $ac_compile) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; then
3817 case "`/usr/bin/file conftest.o`" in
3818 *ELF-32*)
3819 HPUX_IA64_MODE="32"
3821 *ELF-64*)
3822 HPUX_IA64_MODE="64"
3824 esac
3826 rm -rf conftest*
3829 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3830 # Find out which ABI we are using.
3831 echo 'int i;' > conftest.$ac_ext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 case "`/usr/bin/file conftest.o`" in
3838 *32-bit*)
3839 case $host in
3840 x86_64-*linux*)
3841 LD="${LD-ld} -m elf_i386"
3843 ppc64-*linux*|powerpc64-*linux*)
3844 LD="${LD-ld} -m elf32ppclinux"
3846 s390x-*linux*)
3847 LD="${LD-ld} -m elf_s390"
3849 sparc64-*linux*)
3850 LD="${LD-ld} -m elf32_sparc"
3852 esac
3854 *64-bit*)
3855 case $host in
3856 x86_64-*linux*)
3857 LD="${LD-ld} -m elf_x86_64"
3859 ppc*-*linux*|powerpc*-*linux*)
3860 LD="${LD-ld} -m elf64ppc"
3862 s390*-*linux*)
3863 LD="${LD-ld} -m elf64_s390"
3865 sparc*-*linux*)
3866 LD="${LD-ld} -m elf64_sparc"
3868 esac
3870 esac
3872 rm -rf conftest*
3875 *-*-sco3.2v5*)
3876 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3877 SAVE_CFLAGS="$CFLAGS"
3878 CFLAGS="$CFLAGS -belf"
3879 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3880 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3881 if test "${lt_cv_cc_needs_belf+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 if test x$gcc_no_link = xyes; then
3893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3895 { (exit 1); exit 1; }; }
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h. */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 lt_cv_cc_needs_belf=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 lt_cv_cc_needs_belf=no
3941 rm -f conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3951 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3954 CFLAGS="$SAVE_CFLAGS"
3959 esac
3962 # Save cache, so that ltconfig can load it
3963 cat >confcache <<\_ACEOF
3964 # This file is a shell script that caches the results of configure
3965 # tests run on this system so they can be shared between configure
3966 # scripts and configure runs, see configure's option --config-cache.
3967 # It is not useful on other systems. If it contains results you don't
3968 # want to keep, you may remove or edit it.
3970 # config.status only pays attention to the cache file if you give it
3971 # the --recheck option to rerun configure.
3973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3975 # following values.
3977 _ACEOF
3979 # The following way of writing the cache mishandles newlines in values,
3980 # but we know of no workaround that is simple, portable, and efficient.
3981 # So, don't put newlines in cache variables' values.
3982 # Ultrix sh set writes to stderr and can't be redirected directly,
3983 # and sets the high bit in the cache file unless we assign to the vars.
3985 (set) 2>&1 |
3986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3987 *ac_space=\ *)
3988 # `set' does not quote correctly, so add quotes (double-quote
3989 # substitution turns \\\\ into \\, and sed turns \\ into \).
3990 sed -n \
3991 "s/'/'\\\\''/g;
3992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3995 # `set' quotes correctly as required by POSIX, so do not add quotes.
3996 sed -n \
3997 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3999 esac;
4001 sed '
4002 t clear
4003 : clear
4004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4005 t end
4006 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4007 : end' >>confcache
4008 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4009 if test -w $cache_file; then
4010 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4011 cat confcache >$cache_file
4012 else
4013 echo "not updating unwritable cache $cache_file"
4016 rm -f confcache
4018 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4019 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4020 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4021 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4022 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4023 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4024 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4025 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4026 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4027 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4028 echo "$as_me: error: libtool configure failed" >&2;}
4029 { (exit 1); exit 1; }; }
4031 # Reload cache, that may have been modified by ltconfig
4032 if test -r "$cache_file"; then
4033 # Some versions of bash will fail to source /dev/null (special
4034 # files actually), so we avoid doing that.
4035 if test -f "$cache_file"; then
4036 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4037 echo "$as_me: loading cache $cache_file" >&6;}
4038 case $cache_file in
4039 [\\/]* | ?:[\\/]* ) . $cache_file;;
4040 *) . ./$cache_file;;
4041 esac
4043 else
4044 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4045 echo "$as_me: creating cache $cache_file" >&6;}
4046 >$cache_file
4050 # This can be used to rebuild libtool when needed
4051 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4053 # Always use our own libtool.
4054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4056 # Redirect the config.log output again, so that the ltconfig log is not
4057 # clobbered by the next message.
4058 exec 5>>./config.log
4066 if test "x$CC" != xcc; then
4067 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4068 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4069 else
4070 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4071 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4073 set dummy $CC; ac_cc=`echo $2 |
4074 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4075 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 # Make sure it works both with $CC and with simple cc.
4094 # We do the test twice because some compilers refuse to overwrite an
4095 # existing .o file with -o, though they will create one.
4096 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4097 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); };
4107 then
4108 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4109 if test "x$CC" != xcc; then
4110 # Test first that cc exists at all.
4111 if { ac_try='cc -c conftest.$ac_ext >&5'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4118 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); };
4128 then
4129 # cc works too.
4131 else
4132 # cc exists but doesn't like -o.
4133 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4137 else
4138 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4140 rm -f conftest*
4143 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4144 echo "$as_me:$LINENO: result: yes" >&5
4145 echo "${ECHO_T}yes" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4150 cat >>confdefs.h <<\_ACEOF
4151 #define NO_MINUS_C_MINUS_O 1
4152 _ACEOF
4156 # expand $ac_aux_dir to an absolute path
4157 am_aux_dir=`cd $ac_aux_dir && pwd`
4159 # FIXME: we rely on the cache variable name because
4160 # there is no other way.
4161 set dummy $CC
4162 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4163 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4164 # Losing compiler, so override with the script.
4165 # FIXME: It is wrong to rewrite CC.
4166 # But if we don't then we get into trouble of one sort or another.
4167 # A longer-term fix would be to have automake use am__CC in this case,
4168 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4169 CC="$am_aux_dir/compile $CC"
4173 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4174 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4175 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4176 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 cat >conftest.make <<\_ACEOF
4180 all:
4181 @echo 'ac_maketemp="$(MAKE)"'
4182 _ACEOF
4183 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4184 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4185 if test -n "$ac_maketemp"; then
4186 eval ac_cv_prog_make_${ac_make}_set=yes
4187 else
4188 eval ac_cv_prog_make_${ac_make}_set=no
4190 rm -f conftest.make
4192 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4193 echo "$as_me:$LINENO: result: yes" >&5
4194 echo "${ECHO_T}yes" >&6
4195 SET_MAKE=
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 SET_MAKE="MAKE=${MAKE-make}"
4203 # -------
4204 # Headers
4205 # -------
4207 # Sanity check for the cross-compilation case:
4208 ac_ext=c
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4214 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4217 CPP=
4219 if test -z "$CPP"; then
4220 if test "${ac_cv_prog_CPP+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226 ac_preproc_ok=false
4227 for ac_c_preproc_warn_flag in '' yes
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #ifdef __STDC__
4242 # include <limits.h>
4243 #else
4244 # include <assert.h>
4245 #endif
4246 Syntax error
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4259 else
4260 ac_cpp_err=
4262 else
4263 ac_cpp_err=yes
4265 if test -z "$ac_cpp_err"; then
4267 else
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4271 # Broken: fails on valid input.
4272 continue
4274 rm -f conftest.err conftest.$ac_ext
4276 # OK, works on sane cases. Now check whether non-existent headers
4277 # can be detected and how.
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h. */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 #include <ac_nonexistent.h>
4285 _ACEOF
4286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } >/dev/null; then
4294 if test -s conftest.err; then
4295 ac_cpp_err=$ac_c_preproc_warn_flag
4296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4297 else
4298 ac_cpp_err=
4300 else
4301 ac_cpp_err=yes
4303 if test -z "$ac_cpp_err"; then
4304 # Broken: success on invalid input.
4305 continue
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 # Passes both tests.
4311 ac_preproc_ok=:
4312 break
4314 rm -f conftest.err conftest.$ac_ext
4316 done
4317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4318 rm -f conftest.err conftest.$ac_ext
4319 if $ac_preproc_ok; then
4320 break
4323 done
4324 ac_cv_prog_CPP=$CPP
4327 CPP=$ac_cv_prog_CPP
4328 else
4329 ac_cv_prog_CPP=$CPP
4331 echo "$as_me:$LINENO: result: $CPP" >&5
4332 echo "${ECHO_T}$CPP" >&6
4333 ac_preproc_ok=false
4334 for ac_c_preproc_warn_flag in '' yes
4336 # Use a header file that comes with gcc, so configuring glibc
4337 # with a fresh cross-compiler works.
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339 # <limits.h> exists even on freestanding compilers.
4340 # On the NeXT, cc -E runs the code through the compiler's parser,
4341 # not just through cpp. "Syntax error" is here to catch this case.
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #ifdef __STDC__
4349 # include <limits.h>
4350 #else
4351 # include <assert.h>
4352 #endif
4353 Syntax error
4354 _ACEOF
4355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev/null; then
4363 if test -s conftest.err; then
4364 ac_cpp_err=$ac_c_preproc_warn_flag
4365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4366 else
4367 ac_cpp_err=
4369 else
4370 ac_cpp_err=yes
4372 if test -z "$ac_cpp_err"; then
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 # Broken: fails on valid input.
4379 continue
4381 rm -f conftest.err conftest.$ac_ext
4383 # OK, works on sane cases. Now check whether non-existent headers
4384 # can be detected and how.
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 #include <ac_nonexistent.h>
4392 _ACEOF
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null; then
4401 if test -s conftest.err; then
4402 ac_cpp_err=$ac_c_preproc_warn_flag
4403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404 else
4405 ac_cpp_err=
4407 else
4408 ac_cpp_err=yes
4410 if test -z "$ac_cpp_err"; then
4411 # Broken: success on invalid input.
4412 continue
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 # Passes both tests.
4418 ac_preproc_ok=:
4419 break
4421 rm -f conftest.err conftest.$ac_ext
4423 done
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then
4428 else
4429 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4430 See \`config.log' for more details." >&5
4431 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4432 See \`config.log' for more details." >&2;}
4433 { (exit 1); exit 1; }; }
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 echo "$as_me:$LINENO: checking for egrep" >&5
4444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4445 if test "${ac_cv_prog_egrep+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4449 then ac_cv_prog_egrep='grep -E'
4450 else ac_cv_prog_egrep='egrep'
4453 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4454 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4455 EGREP=$ac_cv_prog_egrep
4458 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4460 if test "${ac_cv_header_stdc+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <stdlib.h>
4470 #include <stdarg.h>
4471 #include <string.h>
4472 #include <float.h>
4475 main ()
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_cv_header_stdc=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_header_stdc=no
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4513 if test $ac_cv_header_stdc = yes; then
4514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #include <string.h>
4523 _ACEOF
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 $EGREP "memchr" >/dev/null 2>&1; then
4527 else
4528 ac_cv_header_stdc=no
4530 rm -f conftest*
4534 if test $ac_cv_header_stdc = yes; then
4535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <stdlib.h>
4544 _ACEOF
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 $EGREP "free" >/dev/null 2>&1; then
4548 else
4549 ac_cv_header_stdc=no
4551 rm -f conftest*
4555 if test $ac_cv_header_stdc = yes; then
4556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4557 if test "$cross_compiling" = yes; then
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <ctype.h>
4567 #if ((' ' & 0x0FF) == 0x020)
4568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 #else
4571 # define ISLOWER(c) \
4572 (('a' <= (c) && (c) <= 'i') \
4573 || ('j' <= (c) && (c) <= 'r') \
4574 || ('s' <= (c) && (c) <= 'z'))
4575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4576 #endif
4578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4580 main ()
4582 int i;
4583 for (i = 0; i < 256; i++)
4584 if (XOR (islower (i), ISLOWER (i))
4585 || toupper (i) != TOUPPER (i))
4586 exit(2);
4587 exit (0);
4589 _ACEOF
4590 rm -f conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4602 else
4603 echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ( exit $ac_status )
4608 ac_cv_header_stdc=no
4610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4615 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4616 if test $ac_cv_header_stdc = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define STDC_HEADERS 1
4620 _ACEOF
4624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4635 inttypes.h stdint.h unistd.h
4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 echo "$as_me:$LINENO: checking for $ac_header" >&5
4639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4651 #include <$ac_header>
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 eval "$as_ac_Header=yes"
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 eval "$as_ac_Header=no"
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687 cat >>confdefs.h <<_ACEOF
4688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689 _ACEOF
4693 done
4696 if test "${ac_cv_header_stdio_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for stdio.h" >&5
4698 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_stdio_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4704 else
4705 # Is the header compilable?
4706 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4707 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 #include <stdio.h>
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_compiler=no
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4752 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <stdio.h>
4760 _ACEOF
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4775 else
4776 ac_cpp_err=yes
4778 if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_header_preproc=no
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4790 # So? What about this header?
4791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4796 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4801 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4803 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4805 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4807 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4811 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4813 cat <<\_ASBOX
4814 ## ----------------------------------------- ##
4815 ## Report this to the package-unused lists. ##
4816 ## ----------------------------------------- ##
4817 _ASBOX
4819 sed "s/^/$as_me: WARNING: /" >&2
4821 esac
4822 echo "$as_me:$LINENO: checking for stdio.h" >&5
4823 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_stdio_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 ac_cv_header_stdio_h=$ac_header_preproc
4829 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4833 if test $ac_cv_header_stdio_h = yes; then
4835 else
4836 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4837 You must have a usable C system for the target already installed, at least
4838 including headers and, preferably, the library, before you can configure
4839 the Objective C runtime system. If necessary, install gcc now with
4840 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4841 echo "$as_me: error: Can't find stdio.h.
4842 You must have a usable C system for the target already installed, at least
4843 including headers and, preferably, the library, before you can configure
4844 the Objective C runtime system. If necessary, install gcc now with
4845 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4846 { (exit 1); exit 1; }; }
4851 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4852 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4853 if test "${ac_cv_header_stdc+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <stdlib.h>
4863 #include <stdarg.h>
4864 #include <string.h>
4865 #include <float.h>
4868 main ()
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_header_stdc=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_header_stdc=no
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4906 if test $ac_cv_header_stdc = yes; then
4907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <string.h>
4916 _ACEOF
4917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4918 $EGREP "memchr" >/dev/null 2>&1; then
4920 else
4921 ac_cv_header_stdc=no
4923 rm -f conftest*
4927 if test $ac_cv_header_stdc = yes; then
4928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <stdlib.h>
4937 _ACEOF
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "free" >/dev/null 2>&1; then
4941 else
4942 ac_cv_header_stdc=no
4944 rm -f conftest*
4948 if test $ac_cv_header_stdc = yes; then
4949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4950 if test "$cross_compiling" = yes; then
4952 else
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ctype.h>
4960 #if ((' ' & 0x0FF) == 0x020)
4961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4963 #else
4964 # define ISLOWER(c) \
4965 (('a' <= (c) && (c) <= 'i') \
4966 || ('j' <= (c) && (c) <= 'r') \
4967 || ('s' <= (c) && (c) <= 'z'))
4968 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4969 #endif
4971 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4973 main ()
4975 int i;
4976 for (i = 0; i < 256; i++)
4977 if (XOR (islower (i), ISLOWER (i))
4978 || toupper (i) != TOUPPER (i))
4979 exit(2);
4980 exit (0);
4982 _ACEOF
4983 rm -f conftest$ac_exeext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4985 (eval $ac_link) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4995 else
4996 echo "$as_me: program exited with status $ac_status" >&5
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ( exit $ac_status )
5001 ac_cv_header_stdc=no
5003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5008 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5009 if test $ac_cv_header_stdc = yes; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define STDC_HEADERS 1
5013 _ACEOF
5019 for ac_header in sched.h
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 else
5031 # Is the header compilable?
5032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 $ac_includes_default
5041 #include <$ac_header>
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag"
5053 || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_header_compiler=yes
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 ac_header_compiler=no
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5074 echo "${ECHO_T}$ac_header_compiler" >&6
5076 # Is the header present?
5077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <$ac_header>
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_c_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5098 else
5099 ac_cpp_err=
5101 else
5102 ac_cpp_err=yes
5104 if test -z "$ac_cpp_err"; then
5105 ac_header_preproc=yes
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_header_preproc=no
5112 rm -f conftest.err conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5114 echo "${ECHO_T}$ac_header_preproc" >&6
5116 # So? What about this header?
5117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5118 yes:no: )
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5123 ac_header_preproc=yes
5125 no:yes:* )
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5139 cat <<\_ASBOX
5140 ## ----------------------------------------- ##
5141 ## Report this to the package-unused lists. ##
5142 ## ----------------------------------------- ##
5143 _ASBOX
5145 sed "s/^/$as_me: WARNING: /" >&2
5147 esac
5148 echo "$as_me:$LINENO: checking for $ac_header" >&5
5149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 eval "$as_ac_Header=\$ac_header_preproc"
5155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5160 cat >>confdefs.h <<_ACEOF
5161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5162 _ACEOF
5166 done
5169 # -----------
5170 # Miscellanea
5171 # -----------
5173 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5174 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5175 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5176 echo "$as_me:$LINENO: result: $target_thread_file" >&5
5177 echo "${ECHO_T}$target_thread_file" >&6
5179 if test $target_thread_file != single; then
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_GTHR_DEFAULT 1
5183 _ACEOF
5188 echo "$as_me:$LINENO: checking for exception model to use" >&5
5189 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5197 if test "${enable_sjlj_exceptions+set}" = set; then
5198 enableval="$enable_sjlj_exceptions"
5200 else
5201 cat > conftest.$ac_ext << EOF
5202 #line 5202 "configure"
5203 @interface Frob
5204 @end
5205 @implementation Frob
5206 @end
5207 int proc();
5208 int foo()
5210 @try {
5211 return proc();
5213 @catch (Frob* ex) {
5214 return 0;
5218 old_CFLAGS="$CFLAGS"
5219 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; then
5225 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5226 enable_sjlj_exceptions=yes
5227 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5228 enable_sjlj_exceptions=no
5231 CFLAGS="$old_CFLAGS"
5232 rm -f conftest*
5234 if test x$enable_sjlj_exceptions = xyes; then
5236 cat >>confdefs.h <<\_ACEOF
5237 #define SJLJ_EXCEPTIONS 1
5238 _ACEOF
5240 ac_exception_model_name=sjlj
5241 elif test x$enable_sjlj_exceptions = xno; then
5242 ac_exception_model_name="call frame"
5243 else
5244 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5245 echo "$as_me: error: unable to detect exception model" >&2;}
5246 { (exit 1); exit 1; }; }
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5255 echo "${ECHO_T}$ac_exception_model_name" >&6
5257 # ------
5258 # Output
5259 # ------
5261 ac_config_files="$ac_config_files Makefile"
5264 ac_config_commands="$ac_config_commands default"
5267 cat >confcache <<\_ACEOF
5268 # This file is a shell script that caches the results of configure
5269 # tests run on this system so they can be shared between configure
5270 # scripts and configure runs, see configure's option --config-cache.
5271 # It is not useful on other systems. If it contains results you don't
5272 # want to keep, you may remove or edit it.
5274 # config.status only pays attention to the cache file if you give it
5275 # the --recheck option to rerun configure.
5277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5279 # following values.
5281 _ACEOF
5283 # The following way of writing the cache mishandles newlines in values,
5284 # but we know of no workaround that is simple, portable, and efficient.
5285 # So, don't put newlines in cache variables' values.
5286 # Ultrix sh set writes to stderr and can't be redirected directly,
5287 # and sets the high bit in the cache file unless we assign to the vars.
5289 (set) 2>&1 |
5290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5291 *ac_space=\ *)
5292 # `set' does not quote correctly, so add quotes (double-quote
5293 # substitution turns \\\\ into \\, and sed turns \\ into \).
5294 sed -n \
5295 "s/'/'\\\\''/g;
5296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5299 # `set' quotes correctly as required by POSIX, so do not add quotes.
5300 sed -n \
5301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5303 esac;
5305 sed '
5306 t clear
5307 : clear
5308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5309 t end
5310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5311 : end' >>confcache
5312 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5313 if test -w $cache_file; then
5314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5315 cat confcache >$cache_file
5316 else
5317 echo "not updating unwritable cache $cache_file"
5320 rm -f confcache
5322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5323 # Let make expand exec_prefix.
5324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5328 # trailing colons and then remove the whole line if VPATH becomes empty
5329 # (actually we leave an empty line to preserve line numbers).
5330 if test "x$srcdir" = x.; then
5331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5332 s/:*\$(srcdir):*/:/;
5333 s/:*\${srcdir}:*/:/;
5334 s/:*@srcdir@:*/:/;
5335 s/^\([^=]*=[ ]*\):*/\1/;
5336 s/:*$//;
5337 s/^[^=]*=[ ]*$//;
5341 DEFS=-DHAVE_CONFIG_H
5343 ac_libobjs=
5344 ac_ltlibobjs=
5345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5346 # 1. Remove the extension, and $U if already installed.
5347 ac_i=`echo "$ac_i" |
5348 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5349 # 2. Add them.
5350 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5351 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5352 done
5353 LIBOBJS=$ac_libobjs
5355 LTLIBOBJS=$ac_ltlibobjs
5358 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5359 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5360 Usually this means the macro was only invoked conditionally." >&5
5361 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5362 Usually this means the macro was only invoked conditionally." >&2;}
5363 { (exit 1); exit 1; }; }
5366 : ${CONFIG_STATUS=./config.status}
5367 ac_clean_files_save=$ac_clean_files
5368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5371 cat >$CONFIG_STATUS <<_ACEOF
5372 #! $SHELL
5373 # Generated by $as_me.
5374 # Run this file to recreate the current configuration.
5375 # Compiler output produced by configure, useful for debugging
5376 # configure, is in config.log if it exists.
5378 debug=false
5379 ac_cs_recheck=false
5380 ac_cs_silent=false
5381 SHELL=\${CONFIG_SHELL-$SHELL}
5382 _ACEOF
5384 cat >>$CONFIG_STATUS <<\_ACEOF
5385 ## --------------------- ##
5386 ## M4sh Initialization. ##
5387 ## --------------------- ##
5389 # Be Bourne compatible
5390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5391 emulate sh
5392 NULLCMD=:
5393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5394 # is contrary to our usage. Disable this feature.
5395 alias -g '${1+"$@"}'='"$@"'
5396 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5397 set -o posix
5399 DUALCASE=1; export DUALCASE # for MKS sh
5401 # Support unset when possible.
5402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5403 as_unset=unset
5404 else
5405 as_unset=false
5409 # Work around bugs in pre-3.0 UWIN ksh.
5410 $as_unset ENV MAIL MAILPATH
5411 PS1='$ '
5412 PS2='> '
5413 PS4='+ '
5415 # NLS nuisances.
5416 for as_var in \
5417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5419 LC_TELEPHONE LC_TIME
5421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5422 eval $as_var=C; export $as_var
5423 else
5424 $as_unset $as_var
5426 done
5428 # Required to use basename.
5429 if expr a : '\(a\)' >/dev/null 2>&1; then
5430 as_expr=expr
5431 else
5432 as_expr=false
5435 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5436 as_basename=basename
5437 else
5438 as_basename=false
5442 # Name of the executable.
5443 as_me=`$as_basename "$0" ||
5444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5445 X"$0" : 'X\(//\)$' \| \
5446 X"$0" : 'X\(/\)$' \| \
5447 . : '\(.\)' 2>/dev/null ||
5448 echo X/"$0" |
5449 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5450 /^X\/\(\/\/\)$/{ s//\1/; q; }
5451 /^X\/\(\/\).*/{ s//\1/; q; }
5452 s/.*/./; q'`
5455 # PATH needs CR, and LINENO needs CR and PATH.
5456 # Avoid depending upon Character Ranges.
5457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5460 as_cr_digits='0123456789'
5461 as_cr_alnum=$as_cr_Letters$as_cr_digits
5463 # The user is always right.
5464 if test "${PATH_SEPARATOR+set}" != set; then
5465 echo "#! /bin/sh" >conf$$.sh
5466 echo "exit 0" >>conf$$.sh
5467 chmod +x conf$$.sh
5468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5469 PATH_SEPARATOR=';'
5470 else
5471 PATH_SEPARATOR=:
5473 rm -f conf$$.sh
5477 as_lineno_1=$LINENO
5478 as_lineno_2=$LINENO
5479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5480 test "x$as_lineno_1" != "x$as_lineno_2" &&
5481 test "x$as_lineno_3" = "x$as_lineno_2" || {
5482 # Find who we are. Look in the path if we contain no path at all
5483 # relative or not.
5484 case $0 in
5485 *[\\/]* ) as_myself=$0 ;;
5486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5492 done
5495 esac
5496 # We did not find ourselves, most probably we were run as `sh COMMAND'
5497 # in which case we are not to be found in the path.
5498 if test "x$as_myself" = x; then
5499 as_myself=$0
5501 if test ! -f "$as_myself"; then
5502 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5503 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5504 { (exit 1); exit 1; }; }
5506 case $CONFIG_SHELL in
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for as_base in sh bash ksh sh5; do
5514 case $as_dir in
5516 if ("$as_dir/$as_base" -c '
5517 as_lineno_1=$LINENO
5518 as_lineno_2=$LINENO
5519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5520 test "x$as_lineno_1" != "x$as_lineno_2" &&
5521 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5522 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5523 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5524 CONFIG_SHELL=$as_dir/$as_base
5525 export CONFIG_SHELL
5526 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5527 fi;;
5528 esac
5529 done
5530 done
5532 esac
5534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5535 # uniformly replaced by the line number. The first 'sed' inserts a
5536 # line-number line before each line; the second 'sed' does the real
5537 # work. The second script uses 'N' to pair each line-number line
5538 # with the numbered line, and appends trailing '-' during
5539 # substitution so that $LINENO is not a special case at line end.
5540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5541 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5542 sed '=' <$as_myself |
5543 sed '
5545 s,$,-,
5546 : loop
5547 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5548 t loop
5549 s,-$,,
5550 s,^['$as_cr_digits']*\n,,
5551 ' >$as_me.lineno &&
5552 chmod +x $as_me.lineno ||
5553 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5554 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5555 { (exit 1); exit 1; }; }
5557 # Don't try to exec as it changes $[0], causing all sort of problems
5558 # (the dirname of $[0] is not the place where we might find the
5559 # original and so on. Autoconf is especially sensible to this).
5560 . ./$as_me.lineno
5561 # Exit status is that of the last command.
5562 exit
5566 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5567 *c*,-n*) ECHO_N= ECHO_C='
5568 ' ECHO_T=' ' ;;
5569 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5570 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5571 esac
5573 if expr a : '\(a\)' >/dev/null 2>&1; then
5574 as_expr=expr
5575 else
5576 as_expr=false
5579 rm -f conf$$ conf$$.exe conf$$.file
5580 echo >conf$$.file
5581 if ln -s conf$$.file conf$$ 2>/dev/null; then
5582 # We could just check for DJGPP; but this test a) works b) is more generic
5583 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5584 if test -f conf$$.exe; then
5585 # Don't use ln at all; we don't have any links
5586 as_ln_s='cp -p'
5587 else
5588 as_ln_s='ln -s'
5590 elif ln conf$$.file conf$$ 2>/dev/null; then
5591 as_ln_s=ln
5592 else
5593 as_ln_s='cp -p'
5595 rm -f conf$$ conf$$.exe conf$$.file
5597 if mkdir -p . 2>/dev/null; then
5598 as_mkdir_p=:
5599 else
5600 test -d ./-p && rmdir ./-p
5601 as_mkdir_p=false
5604 as_executable_p="test -f"
5606 # Sed expression to map a string onto a valid CPP name.
5607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5609 # Sed expression to map a string onto a valid variable name.
5610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5613 # IFS
5614 # We need space, tab and new line, in precisely that order.
5615 as_nl='
5617 IFS=" $as_nl"
5619 # CDPATH.
5620 $as_unset CDPATH
5622 exec 6>&1
5624 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5625 # report actual input values of CONFIG_FILES etc. instead of their
5626 # values after options handling. Logging --version etc. is OK.
5627 exec 5>>config.log
5629 echo
5630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5631 ## Running $as_me. ##
5632 _ASBOX
5633 } >&5
5634 cat >&5 <<_CSEOF
5636 This file was extended by package-unused $as_me version-unused, which was
5637 generated by GNU Autoconf 2.59. Invocation command line was
5639 CONFIG_FILES = $CONFIG_FILES
5640 CONFIG_HEADERS = $CONFIG_HEADERS
5641 CONFIG_LINKS = $CONFIG_LINKS
5642 CONFIG_COMMANDS = $CONFIG_COMMANDS
5643 $ $0 $@
5645 _CSEOF
5646 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5647 echo >&5
5648 _ACEOF
5650 # Files that config.status was made for.
5651 if test -n "$ac_config_files"; then
5652 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5655 if test -n "$ac_config_headers"; then
5656 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5659 if test -n "$ac_config_links"; then
5660 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5663 if test -n "$ac_config_commands"; then
5664 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5667 cat >>$CONFIG_STATUS <<\_ACEOF
5669 ac_cs_usage="\
5670 \`$as_me' instantiates files from templates according to the
5671 current configuration.
5673 Usage: $0 [OPTIONS] [FILE]...
5675 -h, --help print this help, then exit
5676 -V, --version print version number, then exit
5677 -q, --quiet do not print progress messages
5678 -d, --debug don't remove temporary files
5679 --recheck update $as_me by reconfiguring in the same conditions
5680 --file=FILE[:TEMPLATE]
5681 instantiate the configuration file FILE
5682 --header=FILE[:TEMPLATE]
5683 instantiate the configuration header FILE
5685 Configuration files:
5686 $config_files
5688 Configuration headers:
5689 $config_headers
5691 Configuration commands:
5692 $config_commands
5694 Report bugs to <bug-autoconf@gnu.org>."
5695 _ACEOF
5697 cat >>$CONFIG_STATUS <<_ACEOF
5698 ac_cs_version="\\
5699 package-unused config.status version-unused
5700 configured by $0, generated by GNU Autoconf 2.59,
5701 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5703 Copyright (C) 2003 Free Software Foundation, Inc.
5704 This config.status script is free software; the Free Software Foundation
5705 gives unlimited permission to copy, distribute and modify it."
5706 srcdir=$srcdir
5707 INSTALL="$INSTALL"
5708 _ACEOF
5710 cat >>$CONFIG_STATUS <<\_ACEOF
5711 # If no file are specified by the user, then we need to provide default
5712 # value. By we need to know if files were specified by the user.
5713 ac_need_defaults=:
5714 while test $# != 0
5716 case $1 in
5717 --*=*)
5718 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5719 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5720 ac_shift=:
5723 ac_option=$1
5724 ac_optarg=$2
5725 ac_shift=shift
5727 *) # This is not an option, so the user has probably given explicit
5728 # arguments.
5729 ac_option=$1
5730 ac_need_defaults=false;;
5731 esac
5733 case $ac_option in
5734 # Handling of the options.
5735 _ACEOF
5736 cat >>$CONFIG_STATUS <<\_ACEOF
5737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5738 ac_cs_recheck=: ;;
5739 --version | --vers* | -V )
5740 echo "$ac_cs_version"; exit 0 ;;
5741 --he | --h)
5742 # Conflict between --help and --header
5743 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5744 Try \`$0 --help' for more information." >&5
5745 echo "$as_me: error: ambiguous option: $1
5746 Try \`$0 --help' for more information." >&2;}
5747 { (exit 1); exit 1; }; };;
5748 --help | --hel | -h )
5749 echo "$ac_cs_usage"; exit 0 ;;
5750 --debug | --d* | -d )
5751 debug=: ;;
5752 --file | --fil | --fi | --f )
5753 $ac_shift
5754 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5755 ac_need_defaults=false;;
5756 --header | --heade | --head | --hea )
5757 $ac_shift
5758 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5759 ac_need_defaults=false;;
5760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5762 ac_cs_silent=: ;;
5764 # This is an error.
5765 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5766 Try \`$0 --help' for more information." >&5
5767 echo "$as_me: error: unrecognized option: $1
5768 Try \`$0 --help' for more information." >&2;}
5769 { (exit 1); exit 1; }; } ;;
5771 *) ac_config_targets="$ac_config_targets $1" ;;
5773 esac
5774 shift
5775 done
5777 ac_configure_extra_args=
5779 if $ac_cs_silent; then
5780 exec 6>/dev/null
5781 ac_configure_extra_args="$ac_configure_extra_args --silent"
5784 _ACEOF
5785 cat >>$CONFIG_STATUS <<_ACEOF
5786 if \$ac_cs_recheck; then
5787 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5788 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5791 _ACEOF
5793 cat >>$CONFIG_STATUS <<_ACEOF
5795 # INIT-COMMANDS section.
5799 srcdir="$srcdir"
5800 host="$host"
5801 target="$target"
5802 with_multisubdir="$with_multisubdir"
5803 with_multisrctop="$with_multisrctop"
5804 with_target_subdir="$with_target_subdir"
5805 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5806 multi_basedir="$multi_basedir"
5807 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5808 CC="$CC"
5809 srcdir=${srcdir}
5810 host=${host}
5811 target=${target}
5812 with_target_subdir=${with_target_subdir}
5813 with_multisubdir=${with_multisubdir}
5814 ac_configure_args="--enable-multilib ${ac_configure_args}"
5815 multi_basedir=${multi_basedir}
5816 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5817 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5820 _ACEOF
5824 cat >>$CONFIG_STATUS <<\_ACEOF
5825 for ac_config_target in $ac_config_targets
5827 case "$ac_config_target" in
5828 # Handling of arguments.
5829 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5830 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5831 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5832 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5833 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5834 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5835 { (exit 1); exit 1; }; };;
5836 esac
5837 done
5839 # If the user did not use the arguments to specify the items to instantiate,
5840 # then the envvar interface is used. Set only those that are not.
5841 # We use the long form for the default assignment because of an extremely
5842 # bizarre bug on SunOS 4.1.3.
5843 if $ac_need_defaults; then
5844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5849 # Have a temporary directory for convenience. Make it in the build tree
5850 # simply because there is no reason to put it here, and in addition,
5851 # creating and moving files from /tmp can sometimes cause problems.
5852 # Create a temporary directory, and hook for its removal unless debugging.
5853 $debug ||
5855 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5856 trap '{ (exit 1); exit 1; }' 1 2 13 15
5859 # Create a (secure) tmp directory for tmp files.
5862 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5863 test -n "$tmp" && test -d "$tmp"
5864 } ||
5866 tmp=./confstat$$-$RANDOM
5867 (umask 077 && mkdir $tmp)
5868 } ||
5870 echo "$me: cannot create a temporary directory in ." >&2
5871 { (exit 1); exit 1; }
5874 _ACEOF
5876 cat >>$CONFIG_STATUS <<_ACEOF
5879 # CONFIG_FILES section.
5882 # No need to generate the scripts if there are no CONFIG_FILES.
5883 # This happens for instance when ./config.status config.h
5884 if test -n "\$CONFIG_FILES"; then
5885 # Protect against being on the right side of a sed subst in config.status.
5886 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5887 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5888 s,@SHELL@,$SHELL,;t t
5889 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5890 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5891 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5892 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5893 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5894 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5895 s,@exec_prefix@,$exec_prefix,;t t
5896 s,@prefix@,$prefix,;t t
5897 s,@program_transform_name@,$program_transform_name,;t t
5898 s,@bindir@,$bindir,;t t
5899 s,@sbindir@,$sbindir,;t t
5900 s,@libexecdir@,$libexecdir,;t t
5901 s,@datadir@,$datadir,;t t
5902 s,@sysconfdir@,$sysconfdir,;t t
5903 s,@sharedstatedir@,$sharedstatedir,;t t
5904 s,@localstatedir@,$localstatedir,;t t
5905 s,@libdir@,$libdir,;t t
5906 s,@includedir@,$includedir,;t t
5907 s,@oldincludedir@,$oldincludedir,;t t
5908 s,@infodir@,$infodir,;t t
5909 s,@mandir@,$mandir,;t t
5910 s,@build_alias@,$build_alias,;t t
5911 s,@host_alias@,$host_alias,;t t
5912 s,@target_alias@,$target_alias,;t t
5913 s,@DEFS@,$DEFS,;t t
5914 s,@ECHO_C@,$ECHO_C,;t t
5915 s,@ECHO_N@,$ECHO_N,;t t
5916 s,@ECHO_T@,$ECHO_T,;t t
5917 s,@LIBS@,$LIBS,;t t
5918 s,@build@,$build,;t t
5919 s,@build_cpu@,$build_cpu,;t t
5920 s,@build_vendor@,$build_vendor,;t t
5921 s,@build_os@,$build_os,;t t
5922 s,@build_libsubdir@,$build_libsubdir,;t t
5923 s,@build_subdir@,$build_subdir,;t t
5924 s,@host_subdir@,$host_subdir,;t t
5925 s,@target_subdir@,$target_subdir,;t t
5926 s,@VERSION@,$VERSION,;t t
5927 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5928 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
5929 s,@multi_basedir@,$multi_basedir,;t t
5930 s,@host@,$host,;t t
5931 s,@host_cpu@,$host_cpu,;t t
5932 s,@host_vendor@,$host_vendor,;t t
5933 s,@host_os@,$host_os,;t t
5934 s,@target@,$target,;t t
5935 s,@target_cpu@,$target_cpu,;t t
5936 s,@target_vendor@,$target_vendor,;t t
5937 s,@target_os@,$target_os,;t t
5938 s,@target_noncanonical@,$target_noncanonical,;t t
5939 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5940 s,@toolexecdir@,$toolexecdir,;t t
5941 s,@toolexeclibdir@,$toolexeclibdir,;t t
5942 s,@includedirname@,$includedirname,;t t
5943 s,@libext@,$libext,;t t
5944 s,@CC@,$CC,;t t
5945 s,@ac_ct_CC@,$ac_ct_CC,;t t
5946 s,@EXEEXT@,$EXEEXT,;t t
5947 s,@OBJEXT@,$OBJEXT,;t t
5948 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
5949 s,@CFLAGS@,$CFLAGS,;t t
5950 s,@AS@,$AS,;t t
5951 s,@ac_ct_AS@,$ac_ct_AS,;t t
5952 s,@AR@,$AR,;t t
5953 s,@ac_ct_AR@,$ac_ct_AR,;t t
5954 s,@RANLIB@,$RANLIB,;t t
5955 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5956 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5957 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5958 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5959 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5960 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5961 s,@MAINT@,$MAINT,;t t
5962 s,@LN_S@,$LN_S,;t t
5963 s,@STRIP@,$STRIP,;t t
5964 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5965 s,@LIBTOOL@,$LIBTOOL,;t t
5966 s,@SET_MAKE@,$SET_MAKE,;t t
5967 s,@CPP@,$CPP,;t t
5968 s,@CPPFLAGS@,$CPPFLAGS,;t t
5969 s,@EGREP@,$EGREP,;t t
5970 s,@LIBOBJS@,$LIBOBJS,;t t
5971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5972 CEOF
5974 _ACEOF
5976 cat >>$CONFIG_STATUS <<\_ACEOF
5977 # Split the substitutions into bite-sized pieces for seds with
5978 # small command number limits, like on Digital OSF/1 and HP-UX.
5979 ac_max_sed_lines=48
5980 ac_sed_frag=1 # Number of current file.
5981 ac_beg=1 # First line for current file.
5982 ac_end=$ac_max_sed_lines # Line after last line for current file.
5983 ac_more_lines=:
5984 ac_sed_cmds=
5985 while $ac_more_lines; do
5986 if test $ac_beg -gt 1; then
5987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5988 else
5989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5991 if test ! -s $tmp/subs.frag; then
5992 ac_more_lines=false
5993 else
5994 # The purpose of the label and of the branching condition is to
5995 # speed up the sed processing (if there are no `@' at all, there
5996 # is no need to browse any of the substitutions).
5997 # These are the two extra sed commands mentioned above.
5998 (echo ':t
5999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6000 if test -z "$ac_sed_cmds"; then
6001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6002 else
6003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6005 ac_sed_frag=`expr $ac_sed_frag + 1`
6006 ac_beg=$ac_end
6007 ac_end=`expr $ac_end + $ac_max_sed_lines`
6009 done
6010 if test -z "$ac_sed_cmds"; then
6011 ac_sed_cmds=cat
6013 fi # test -n "$CONFIG_FILES"
6015 _ACEOF
6016 cat >>$CONFIG_STATUS <<\_ACEOF
6017 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6019 case $ac_file in
6020 - | *:- | *:-:* ) # input from stdin
6021 cat >$tmp/stdin
6022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6026 * ) ac_file_in=$ac_file.in ;;
6027 esac
6029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6032 X"$ac_file" : 'X\(//\)[^/]' \| \
6033 X"$ac_file" : 'X\(//\)$' \| \
6034 X"$ac_file" : 'X\(/\)' \| \
6035 . : '\(.\)' 2>/dev/null ||
6036 echo X"$ac_file" |
6037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6039 /^X\(\/\/\)$/{ s//\1/; q; }
6040 /^X\(\/\).*/{ s//\1/; q; }
6041 s/.*/./; q'`
6042 { if $as_mkdir_p; then
6043 mkdir -p "$ac_dir"
6044 else
6045 as_dir="$ac_dir"
6046 as_dirs=
6047 while test ! -d "$as_dir"; do
6048 as_dirs="$as_dir $as_dirs"
6049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6051 X"$as_dir" : 'X\(//\)[^/]' \| \
6052 X"$as_dir" : 'X\(//\)$' \| \
6053 X"$as_dir" : 'X\(/\)' \| \
6054 . : '\(.\)' 2>/dev/null ||
6055 echo X"$as_dir" |
6056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6058 /^X\(\/\/\)$/{ s//\1/; q; }
6059 /^X\(\/\).*/{ s//\1/; q; }
6060 s/.*/./; q'`
6061 done
6062 test ! -n "$as_dirs" || mkdir $as_dirs
6063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6065 { (exit 1); exit 1; }; }; }
6067 ac_builddir=.
6069 if test "$ac_dir" != .; then
6070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6071 # A "../" for each directory in $ac_dir_suffix.
6072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6073 else
6074 ac_dir_suffix= ac_top_builddir=
6077 case $srcdir in
6078 .) # No --srcdir option. We are building in place.
6079 ac_srcdir=.
6080 if test -z "$ac_top_builddir"; then
6081 ac_top_srcdir=.
6082 else
6083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6084 fi ;;
6085 [\\/]* | ?:[\\/]* ) # Absolute path.
6086 ac_srcdir=$srcdir$ac_dir_suffix;
6087 ac_top_srcdir=$srcdir ;;
6088 *) # Relative path.
6089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6091 esac
6093 # Do not use `cd foo && pwd` to compute absolute paths, because
6094 # the directories may not exist.
6095 case `pwd` in
6096 .) ac_abs_builddir="$ac_dir";;
6098 case "$ac_dir" in
6099 .) ac_abs_builddir=`pwd`;;
6100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6102 esac;;
6103 esac
6104 case $ac_abs_builddir in
6105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6107 case ${ac_top_builddir}. in
6108 .) ac_abs_top_builddir=$ac_abs_builddir;;
6109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6111 esac;;
6112 esac
6113 case $ac_abs_builddir in
6114 .) ac_abs_srcdir=$ac_srcdir;;
6116 case $ac_srcdir in
6117 .) ac_abs_srcdir=$ac_abs_builddir;;
6118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6120 esac;;
6121 esac
6122 case $ac_abs_builddir in
6123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6125 case $ac_top_srcdir in
6126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6129 esac;;
6130 esac
6133 case $INSTALL in
6134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6136 esac
6138 if test x"$ac_file" != x-; then
6139 { echo "$as_me:$LINENO: creating $ac_file" >&5
6140 echo "$as_me: creating $ac_file" >&6;}
6141 rm -f "$ac_file"
6143 # Let's still pretend it is `configure' which instantiates (i.e., don't
6144 # use $as_me), people would be surprised to read:
6145 # /* config.h. Generated by config.status. */
6146 if test x"$ac_file" = x-; then
6147 configure_input=
6148 else
6149 configure_input="$ac_file. "
6151 configure_input=$configure_input"Generated from `echo $ac_file_in |
6152 sed 's,.*/,,'` by configure."
6154 # First look for the input files in the build tree, otherwise in the
6155 # src tree.
6156 ac_file_inputs=`IFS=:
6157 for f in $ac_file_in; do
6158 case $f in
6159 -) echo $tmp/stdin ;;
6160 [\\/$]*)
6161 # Absolute (can't be DOS-style, as IFS=:)
6162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6163 echo "$as_me: error: cannot find input file: $f" >&2;}
6164 { (exit 1); exit 1; }; }
6165 echo "$f";;
6166 *) # Relative
6167 if test -f "$f"; then
6168 # Build tree
6169 echo "$f"
6170 elif test -f "$srcdir/$f"; then
6171 # Source tree
6172 echo "$srcdir/$f"
6173 else
6174 # /dev/null tree
6175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6176 echo "$as_me: error: cannot find input file: $f" >&2;}
6177 { (exit 1); exit 1; }; }
6178 fi;;
6179 esac
6180 done` || { (exit 1); exit 1; }
6181 _ACEOF
6182 cat >>$CONFIG_STATUS <<_ACEOF
6183 sed "$ac_vpsub
6184 $extrasub
6185 _ACEOF
6186 cat >>$CONFIG_STATUS <<\_ACEOF
6188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6189 s,@configure_input@,$configure_input,;t t
6190 s,@srcdir@,$ac_srcdir,;t t
6191 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6192 s,@top_srcdir@,$ac_top_srcdir,;t t
6193 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6194 s,@builddir@,$ac_builddir,;t t
6195 s,@abs_builddir@,$ac_abs_builddir,;t t
6196 s,@top_builddir@,$ac_top_builddir,;t t
6197 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6198 s,@INSTALL@,$ac_INSTALL,;t t
6199 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6200 rm -f $tmp/stdin
6201 if test x"$ac_file" != x-; then
6202 mv $tmp/out $ac_file
6203 else
6204 cat $tmp/out
6205 rm -f $tmp/out
6208 done
6209 _ACEOF
6210 cat >>$CONFIG_STATUS <<\_ACEOF
6213 # CONFIG_HEADER section.
6216 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6217 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6219 # ac_d sets the value in "#define NAME VALUE" lines.
6220 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6221 ac_dB='[ ].*$,\1#\2'
6222 ac_dC=' '
6223 ac_dD=',;t'
6224 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6225 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6226 ac_uB='$,\1#\2define\3'
6227 ac_uC=' '
6228 ac_uD=',;t'
6230 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6232 case $ac_file in
6233 - | *:- | *:-:* ) # input from stdin
6234 cat >$tmp/stdin
6235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6239 * ) ac_file_in=$ac_file.in ;;
6240 esac
6242 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6243 echo "$as_me: creating $ac_file" >&6;}
6245 # First look for the input files in the build tree, otherwise in the
6246 # src tree.
6247 ac_file_inputs=`IFS=:
6248 for f in $ac_file_in; do
6249 case $f in
6250 -) echo $tmp/stdin ;;
6251 [\\/$]*)
6252 # Absolute (can't be DOS-style, as IFS=:)
6253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6254 echo "$as_me: error: cannot find input file: $f" >&2;}
6255 { (exit 1); exit 1; }; }
6256 # Do quote $f, to prevent DOS paths from being IFS'd.
6257 echo "$f";;
6258 *) # Relative
6259 if test -f "$f"; then
6260 # Build tree
6261 echo "$f"
6262 elif test -f "$srcdir/$f"; then
6263 # Source tree
6264 echo "$srcdir/$f"
6265 else
6266 # /dev/null tree
6267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6268 echo "$as_me: error: cannot find input file: $f" >&2;}
6269 { (exit 1); exit 1; }; }
6270 fi;;
6271 esac
6272 done` || { (exit 1); exit 1; }
6273 # Remove the trailing spaces.
6274 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6276 _ACEOF
6278 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6279 # `conftest.undefs', that substitutes the proper values into
6280 # config.h.in to produce config.h. The first handles `#define'
6281 # templates, and the second `#undef' templates.
6282 # And first: Protect against being on the right side of a sed subst in
6283 # config.status. Protect against being in an unquoted here document
6284 # in config.status.
6285 rm -f conftest.defines conftest.undefs
6286 # Using a here document instead of a string reduces the quoting nightmare.
6287 # Putting comments in sed scripts is not portable.
6289 # `end' is used to avoid that the second main sed command (meant for
6290 # 0-ary CPP macros) applies to n-ary macro definitions.
6291 # See the Autoconf documentation for `clear'.
6292 cat >confdef2sed.sed <<\_ACEOF
6293 s/[\\&,]/\\&/g
6294 s,[\\$`],\\&,g
6295 t clear
6296 : clear
6297 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6298 t end
6299 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6300 : end
6301 _ACEOF
6302 # If some macros were called several times there might be several times
6303 # the same #defines, which is useless. Nevertheless, we may not want to
6304 # sort them, since we want the *last* AC-DEFINE to be honored.
6305 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6306 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6307 rm -f confdef2sed.sed
6309 # This sed command replaces #undef with comments. This is necessary, for
6310 # example, in the case of _POSIX_SOURCE, which is predefined and required
6311 # on some systems where configure will not decide to define it.
6312 cat >>conftest.undefs <<\_ACEOF
6313 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6314 _ACEOF
6316 # Break up conftest.defines because some shells have a limit on the size
6317 # of here documents, and old seds have small limits too (100 cmds).
6318 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6319 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6320 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6321 echo ' :' >>$CONFIG_STATUS
6322 rm -f conftest.tail
6323 while grep . conftest.defines >/dev/null
6325 # Write a limited-size here document to $tmp/defines.sed.
6326 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6327 # Speed up: don't consider the non `#define' lines.
6328 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6329 # Work around the forget-to-reset-the-flag bug.
6330 echo 't clr' >>$CONFIG_STATUS
6331 echo ': clr' >>$CONFIG_STATUS
6332 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6333 echo 'CEOF
6334 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6335 rm -f $tmp/in
6336 mv $tmp/out $tmp/in
6337 ' >>$CONFIG_STATUS
6338 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6339 rm -f conftest.defines
6340 mv conftest.tail conftest.defines
6341 done
6342 rm -f conftest.defines
6343 echo ' fi # grep' >>$CONFIG_STATUS
6344 echo >>$CONFIG_STATUS
6346 # Break up conftest.undefs because some shells have a limit on the size
6347 # of here documents, and old seds have small limits too (100 cmds).
6348 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6349 rm -f conftest.tail
6350 while grep . conftest.undefs >/dev/null
6352 # Write a limited-size here document to $tmp/undefs.sed.
6353 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6354 # Speed up: don't consider the non `#undef'
6355 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6356 # Work around the forget-to-reset-the-flag bug.
6357 echo 't clr' >>$CONFIG_STATUS
6358 echo ': clr' >>$CONFIG_STATUS
6359 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6360 echo 'CEOF
6361 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6362 rm -f $tmp/in
6363 mv $tmp/out $tmp/in
6364 ' >>$CONFIG_STATUS
6365 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6366 rm -f conftest.undefs
6367 mv conftest.tail conftest.undefs
6368 done
6369 rm -f conftest.undefs
6371 cat >>$CONFIG_STATUS <<\_ACEOF
6372 # Let's still pretend it is `configure' which instantiates (i.e., don't
6373 # use $as_me), people would be surprised to read:
6374 # /* config.h. Generated by config.status. */
6375 if test x"$ac_file" = x-; then
6376 echo "/* Generated by configure. */" >$tmp/config.h
6377 else
6378 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6380 cat $tmp/in >>$tmp/config.h
6381 rm -f $tmp/in
6382 if test x"$ac_file" != x-; then
6383 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6384 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6385 echo "$as_me: $ac_file is unchanged" >&6;}
6386 else
6387 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6389 X"$ac_file" : 'X\(//\)[^/]' \| \
6390 X"$ac_file" : 'X\(//\)$' \| \
6391 X"$ac_file" : 'X\(/\)' \| \
6392 . : '\(.\)' 2>/dev/null ||
6393 echo X"$ac_file" |
6394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6396 /^X\(\/\/\)$/{ s//\1/; q; }
6397 /^X\(\/\).*/{ s//\1/; q; }
6398 s/.*/./; q'`
6399 { if $as_mkdir_p; then
6400 mkdir -p "$ac_dir"
6401 else
6402 as_dir="$ac_dir"
6403 as_dirs=
6404 while test ! -d "$as_dir"; do
6405 as_dirs="$as_dir $as_dirs"
6406 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6408 X"$as_dir" : 'X\(//\)[^/]' \| \
6409 X"$as_dir" : 'X\(//\)$' \| \
6410 X"$as_dir" : 'X\(/\)' \| \
6411 . : '\(.\)' 2>/dev/null ||
6412 echo X"$as_dir" |
6413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6415 /^X\(\/\/\)$/{ s//\1/; q; }
6416 /^X\(\/\).*/{ s//\1/; q; }
6417 s/.*/./; q'`
6418 done
6419 test ! -n "$as_dirs" || mkdir $as_dirs
6420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6422 { (exit 1); exit 1; }; }; }
6424 rm -f $ac_file
6425 mv $tmp/config.h $ac_file
6427 else
6428 cat $tmp/config.h
6429 rm -f $tmp/config.h
6431 done
6432 _ACEOF
6433 cat >>$CONFIG_STATUS <<\_ACEOF
6436 # CONFIG_COMMANDS section.
6438 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6439 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6440 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6441 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6442 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6443 X"$ac_dest" : 'X\(//\)[^/]' \| \
6444 X"$ac_dest" : 'X\(//\)$' \| \
6445 X"$ac_dest" : 'X\(/\)' \| \
6446 . : '\(.\)' 2>/dev/null ||
6447 echo X"$ac_dest" |
6448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6450 /^X\(\/\/\)$/{ s//\1/; q; }
6451 /^X\(\/\).*/{ s//\1/; q; }
6452 s/.*/./; q'`
6453 { if $as_mkdir_p; then
6454 mkdir -p "$ac_dir"
6455 else
6456 as_dir="$ac_dir"
6457 as_dirs=
6458 while test ! -d "$as_dir"; do
6459 as_dirs="$as_dir $as_dirs"
6460 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6462 X"$as_dir" : 'X\(//\)[^/]' \| \
6463 X"$as_dir" : 'X\(//\)$' \| \
6464 X"$as_dir" : 'X\(/\)' \| \
6465 . : '\(.\)' 2>/dev/null ||
6466 echo X"$as_dir" |
6467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6469 /^X\(\/\/\)$/{ s//\1/; q; }
6470 /^X\(\/\).*/{ s//\1/; q; }
6471 s/.*/./; q'`
6472 done
6473 test ! -n "$as_dirs" || mkdir $as_dirs
6474 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6475 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6476 { (exit 1); exit 1; }; }; }
6478 ac_builddir=.
6480 if test "$ac_dir" != .; then
6481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6482 # A "../" for each directory in $ac_dir_suffix.
6483 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6484 else
6485 ac_dir_suffix= ac_top_builddir=
6488 case $srcdir in
6489 .) # No --srcdir option. We are building in place.
6490 ac_srcdir=.
6491 if test -z "$ac_top_builddir"; then
6492 ac_top_srcdir=.
6493 else
6494 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6495 fi ;;
6496 [\\/]* | ?:[\\/]* ) # Absolute path.
6497 ac_srcdir=$srcdir$ac_dir_suffix;
6498 ac_top_srcdir=$srcdir ;;
6499 *) # Relative path.
6500 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6501 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6502 esac
6504 # Do not use `cd foo && pwd` to compute absolute paths, because
6505 # the directories may not exist.
6506 case `pwd` in
6507 .) ac_abs_builddir="$ac_dir";;
6509 case "$ac_dir" in
6510 .) ac_abs_builddir=`pwd`;;
6511 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6512 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6513 esac;;
6514 esac
6515 case $ac_abs_builddir in
6516 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6518 case ${ac_top_builddir}. in
6519 .) ac_abs_top_builddir=$ac_abs_builddir;;
6520 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6521 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6522 esac;;
6523 esac
6524 case $ac_abs_builddir in
6525 .) ac_abs_srcdir=$ac_srcdir;;
6527 case $ac_srcdir in
6528 .) ac_abs_srcdir=$ac_abs_builddir;;
6529 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6530 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6531 esac;;
6532 esac
6533 case $ac_abs_builddir in
6534 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6536 case $ac_top_srcdir in
6537 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6538 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6539 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6540 esac;;
6541 esac
6544 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6545 echo "$as_me: executing $ac_dest commands" >&6;}
6546 case $ac_dest in
6547 default-1 )
6548 # Only add multilib support code if we just rebuilt the top-level
6549 # Makefile.
6550 case " $CONFIG_FILES " in
6551 *" Makefile "*)
6552 ac_file=Makefile . ${multi_basedir}/config-ml.in
6554 esac ;;
6555 default ) if test -n "$CONFIG_FILES"; then
6556 if test -n "${with_target_subdir}"; then
6557 # FIXME: We shouldn't need to set ac_file
6558 ac_file=Makefile
6559 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6560 . ${multi_basedir}/config-ml.in
6562 fi ;;
6563 esac
6564 done
6565 _ACEOF
6567 cat >>$CONFIG_STATUS <<\_ACEOF
6569 { (exit 0); exit 0; }
6570 _ACEOF
6571 chmod +x $CONFIG_STATUS
6572 ac_clean_files=$ac_clean_files_save
6575 # configure is writing to config.log, and then calls config.status.
6576 # config.status does its own redirection, appending to config.log.
6577 # Unfortunately, on DOS this fails, as config.log is still kept open
6578 # by configure, so config.status won't be able to write to it; its
6579 # output is simply discarded. So we exec the FD to /dev/null,
6580 # effectively closing config.log, so it can be properly (re)opened and
6581 # appended to by config.status. When coming back to configure, we
6582 # need to make the FD available again.
6583 if test "$no_create" != yes; then
6584 ac_cs_success=:
6585 ac_config_status_args=
6586 test "$silent" = yes &&
6587 ac_config_status_args="$ac_config_status_args --quiet"
6588 exec 5>/dev/null
6589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6590 exec 5>>config.log
6591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6592 # would make configure fail if this is the last instruction.
6593 $ac_cs_success || { (exit 1); exit 1; }