2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
[official-gcc.git] / libobjc / configure
blob85b30dbb4bfc3993553ac9961c1047fd2f6356cb
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 toplevel_srcdir 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-multilib build hella library versions (default)
839 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
840 --enable-objc-gc enable the use of Boehm's garbage collector with
841 the GNU Objective-C runtime.
842 --enable-maintainer-mode enable make rules and dependencies not useful
843 (and sometimes confusing) to the casual installer
844 --enable-shared=PKGS build shared libraries default=yes
845 --enable-static=PKGS build static libraries default=yes
846 --enable-fast-install=PKGS optimize for fast installation default=yes
847 --disable-libtool-lock avoid locking (might break parallel builds)
848 --enable-sjlj-exceptions
849 force use of builtin_setjmp for exceptions
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 # Default to --enable-multilib
1439 # Check whether --enable-multilib or --disable-multilib was given.
1440 if test "${enable_multilib+set}" = set; then
1441 enableval="$enable_multilib"
1442 case "${enableval}" in
1443 yes) multilib=yes ;;
1444 no) multilib=no ;;
1445 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1446 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1447 { (exit 1); exit 1; }; } ;;
1448 esac
1449 else
1450 multilib=yes
1453 # We use these options to decide which functions to include.
1455 # Check whether --with-target-subdir or --without-target-subdir was given.
1456 if test "${with_target_subdir+set}" = set; then
1457 withval="$with_target_subdir"
1461 # Check whether --with-cross-host or --without-cross-host was given.
1462 if test "${with_cross_host+set}" = set; then
1463 withval="$with_cross_host"
1467 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1468 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1469 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1470 if test "${enable_version_specific_runtime_libs+set}" = set; then
1471 enableval="$enable_version_specific_runtime_libs"
1472 case "$enableval" in
1473 yes) version_specific_libs=yes ;;
1474 no) version_specific_libs=no ;;
1475 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1476 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1477 { (exit 1); exit 1; }; };;
1478 esac
1479 else
1480 version_specific_libs=no
1482 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1483 echo "${ECHO_T}$version_specific_libs" >&6
1485 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1486 if test "${enable_objc_gc+set}" = set; then
1487 enableval="$enable_objc_gc"
1488 case $enable_objc_gc in
1490 OBJC_BOEHM_GC=''
1491 OBJC_BOEHM_GC_INCLUDES=''
1494 OBJC_BOEHM_GC=libobjc_gc.la
1495 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1497 esac
1498 else
1499 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1504 # -----------
1505 # Directories
1506 # -----------
1508 # When building with srcdir == objdir, links to the source files will
1509 # be created in directories within the target_subdir. We have to
1510 # adjust toplevel_srcdir accordingly, so that configure finds
1511 # install-sh and other auxiliary files that live in the top-level
1512 # source directory.
1513 if test "${srcdir}" = "."; then
1514 if test -z "${with_target_subdir}"; then
1515 toprel=".."
1516 else
1517 if test "${with_target_subdir}" != "."; then
1518 toprel="${with_multisrctop}../.."
1519 else
1520 toprel="${with_multisrctop}.."
1523 else
1524 toprel=".."
1526 ac_aux_dir=
1527 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1528 if test -f $ac_dir/install-sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1531 break
1532 elif test -f $ac_dir/install.sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1535 break
1536 elif test -f $ac_dir/shtool; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1539 break
1541 done
1542 if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1544 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1545 { (exit 1); exit 1; }; }
1547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551 toplevel_srcdir=\${srcdir}/$toprel
1554 echo "$as_me:$LINENO: checking host system type" >&5
1555 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1556 if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 ac_cv_host_alias=$host_alias
1560 test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569 echo "${ECHO_T}$ac_cv_host" >&6
1570 host=$ac_cv_host
1571 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 echo "$as_me:$LINENO: checking target system type" >&5
1577 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1578 if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 ac_cv_target_alias=$target_alias
1582 test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591 echo "${ECHO_T}$ac_cv_target" >&6
1592 target=$ac_cv_target
1593 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 # The aliases save the names the user supplied, while $host etc.
1599 # will get canonicalized.
1600 test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
1607 # Export source directory.
1608 # These need to be absolute paths, yet at the same time need to
1609 # canonicalize only relative paths, because then amd will not unmount
1610 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1611 case $srcdir in
1612 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1613 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1614 esac
1617 # Calculate toolexeclibdir
1618 # Also toolexecdir, though it's only used in toolexeclibdir
1619 case ${version_specific_libs} in
1620 yes)
1621 # Need the gcc compiler version to know where to install libraries
1622 # and header files if --enable-version-specific-runtime-libs option
1623 # is selected.
1624 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1625 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1628 if test -n "$with_cross_host" &&
1629 test x"$with_cross_host" != x"no"; then
1630 # Install a library built with a cross compiler in tooldir, not libdir.
1631 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1632 toolexeclibdir='$(toolexecdir)/lib'
1633 else
1634 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1635 toolexeclibdir='$(libdir)'
1637 multi_os_directory=`$CC -print-multi-os-directory`
1638 case $multi_os_directory in
1639 .) ;; # Avoid trailing /.
1640 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1641 esac
1643 esac
1647 # Figure out if we want to name the include directory and the
1648 # library name changes differently.
1649 includedirname=include
1650 libext=
1651 case "${host}" in
1652 *-darwin*)
1653 # Darwin is the only target so far that needs a different include directory.
1654 includedirname=include-gnu-runtime
1655 libext=-gnu
1657 esac
1661 ac_config_headers="$ac_config_headers config.h"
1664 # --------
1665 # Programs
1666 # --------
1670 # We must force CC to /not/ be a precious variable; otherwise
1671 # the wrong, non-multilib-adjusted value will be used in multilibs.
1672 # As a side effect, we have to subst CFLAGS ourselves.
1675 ac_ext=c
1676 ac_cpp='$CPP $CPPFLAGS'
1677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1680 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1682 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1717 if test -z "$ac_cv_prog_CC"; then
1718 ac_ct_CC=$CC
1719 # Extract the first word of "gcc", so it can be a program name with args.
1720 set dummy gcc; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="gcc"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746 if test -n "$ac_ct_CC"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1748 echo "${ECHO_T}$ac_ct_CC" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 CC=$ac_ct_CC
1755 else
1756 CC="$ac_cv_prog_CC"
1759 if test -z "$CC"; then
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}cc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_CC="${ac_tool_prefix}cc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1782 done
1783 done
1787 CC=$ac_cv_prog_CC
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_CC"; then
1798 ac_ct_CC=$CC
1799 # Extract the first word of "cc", so it can be a program name with args.
1800 set dummy cc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="cc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1820 done
1821 done
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1834 CC=$ac_ct_CC
1835 else
1836 CC="$ac_cv_prog_CC"
1840 if test -z "$CC"; then
1841 # Extract the first word of "cc", so it can be a program name with args.
1842 set dummy cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1850 else
1851 ac_prog_rejected=no
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1860 ac_prog_rejected=yes
1861 continue
1863 ac_cv_prog_CC="cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1867 done
1868 done
1870 if test $ac_prog_rejected = yes; then
1871 # We found a bogon in the path, so make sure we never use it.
1872 set dummy $ac_cv_prog_CC
1873 shift
1874 if test $# != 0; then
1875 # We chose a different compiler from the bogus one.
1876 # However, it has the same basename, so the bogon will be chosen
1877 # first if we set CC to just the basename; use the full file name.
1878 shift
1879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1884 CC=$ac_cv_prog_CC
1885 if test -n "$CC"; then
1886 echo "$as_me:$LINENO: result: $CC" >&5
1887 echo "${ECHO_T}$CC" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 for ac_prog in cl
1898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1919 done
1920 done
1924 CC=$ac_cv_prog_CC
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1928 else
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1933 test -n "$CC" && break
1934 done
1936 if test -z "$CC"; then
1937 ac_ct_CC=$CC
1938 for ac_prog in cl
1940 # Extract the first word of "$ac_prog", so it can be a program name with args.
1941 set dummy $ac_prog; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="$ac_prog"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 test -n "$ac_ct_CC" && break
1976 done
1978 CC=$ac_ct_CC
1984 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1985 See \`config.log' for more details." >&5
1986 echo "$as_me: error: no acceptable C compiler found in \$PATH
1987 See \`config.log' for more details." >&2;}
1988 { (exit 1); exit 1; }; }
1990 # Provide some information about the compiler.
1991 echo "$as_me:$LINENO:" \
1992 "checking for C compiler version" >&5
1993 ac_compiler=`set X $ac_compile; echo $2`
1994 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1995 (eval $ac_compiler --version </dev/null >&5) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2000 (eval $ac_compiler -v </dev/null >&5) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }
2004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2005 (eval $ac_compiler -V </dev/null >&5) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2010 cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2018 main ()
2022 return 0;
2024 _ACEOF
2025 # FIXME: Cleanup?
2026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2027 (eval $ac_link) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 gcc_no_link=no
2032 else
2033 gcc_no_link=yes
2036 if test x$gcc_no_link = xyes; then
2037 # Setting cross_compile will disable run tests; it will
2038 # also disable AC_CHECK_FILE but that's generally
2039 # correct if we can't link.
2040 cross_compiling=yes
2041 EXEEXT=
2042 else
2043 cat >conftest.$ac_ext <<_ACEOF
2044 /* confdefs.h. */
2045 _ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h. */
2051 main ()
2055 return 0;
2057 _ACEOF
2058 ac_clean_files_save=$ac_clean_files
2059 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2060 # Try to create an executable without -o first, disregard a.out.
2061 # It will help us diagnose broken compilers, and finding out an intuition
2062 # of exeext.
2063 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2064 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2065 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2067 (eval $ac_link_default) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # Find the output, starting from the most likely. This scheme is
2072 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2073 # resort.
2075 # Be careful to initialize this variable, since it used to be cached.
2076 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2077 ac_cv_exeext=
2078 # b.out is created by i960 compilers.
2079 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2081 test -f "$ac_file" || continue
2082 case $ac_file in
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2085 conftest.$ac_ext )
2086 # This is the source file.
2088 [ab].out )
2089 # We found the default executable, but exeext='' is most
2090 # certainly right.
2091 break;;
2092 *.* )
2093 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094 # FIXME: I believe we export ac_cv_exeext for Libtool,
2095 # but it would be cool to find out if it's true. Does anybody
2096 # maintain Libtool? --akim.
2097 export ac_cv_exeext
2098 break;;
2100 break;;
2101 esac
2102 done
2103 else
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2107 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: C compiler cannot create executables
2110 See \`config.log' for more details." >&2;}
2111 { (exit 77); exit 77; }; }
2114 ac_exeext=$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_file" >&5
2116 echo "${ECHO_T}$ac_file" >&6
2118 # Check the compiler produces executables we can run. If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2121 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2122 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2123 # If not cross compiling, check that we can run a simple program.
2124 if test "$cross_compiling" != yes; then
2125 if { ac_try='./$ac_file'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 cross_compiling=no
2132 else
2133 if test "$cross_compiling" = maybe; then
2134 cross_compiling=yes
2135 else
2136 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2137 If you meant to cross compile, use \`--host'.
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot run C compiled programs.
2140 If you meant to cross compile, use \`--host'.
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2146 echo "$as_me:$LINENO: result: yes" >&5
2147 echo "${ECHO_T}yes" >&6
2149 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2150 ac_clean_files=$ac_clean_files_save
2151 # Check the compiler produces executables we can run. If not, either
2152 # the compiler is broken, or we cross compile.
2153 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2154 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2155 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2156 echo "${ECHO_T}$cross_compiling" >&6
2158 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2159 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2161 (eval $ac_link) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2166 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2167 # work properly (i.e., refer to `conftest.exe'), while it won't with
2168 # `rm'.
2169 for ac_file in conftest.exe conftest conftest.*; do
2170 test -f "$ac_file" || continue
2171 case $ac_file in
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 export ac_cv_exeext
2175 break;;
2176 * ) break;;
2177 esac
2178 done
2179 else
2180 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&2;}
2184 { (exit 1); exit 1; }; }
2187 rm -f conftest$ac_cv_exeext
2188 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2189 echo "${ECHO_T}$ac_cv_exeext" >&6
2191 rm -f conftest.$ac_ext
2192 EXEEXT=$ac_cv_exeext
2193 ac_exeext=$EXEEXT
2195 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2196 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2197 if test "${ac_cv_objext+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 cat >conftest.$ac_ext <<_ACEOF
2201 /* confdefs.h. */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2208 main ()
2212 return 0;
2214 _ACEOF
2215 rm -f conftest.o conftest.obj
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2222 case $ac_file in
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2225 break;;
2226 esac
2227 done
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2242 echo "${ECHO_T}$ac_cv_objext" >&6
2243 OBJEXT=$ac_cv_objext
2244 ac_objext=$OBJEXT
2245 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2246 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2247 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2258 main ()
2260 #ifndef __GNUC__
2261 choke me
2262 #endif
2265 return 0;
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_compiler_gnu=yes
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 ac_compiler_gnu=no
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2301 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2302 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2303 GCC=`test $ac_compiler_gnu = yes && echo yes`
2304 ac_test_CFLAGS=${CFLAGS+set}
2305 ac_save_CFLAGS=$CFLAGS
2306 CFLAGS="-g"
2307 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2309 if test "${ac_cv_prog_cc_g+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2324 return 0;
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_g=yes
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2354 ac_cv_prog_cc_g=no
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2360 if test "$ac_test_CFLAGS" = set; then
2361 CFLAGS=$ac_save_CFLAGS
2362 elif test $ac_cv_prog_cc_g = yes; then
2363 if test "$GCC" = yes; then
2364 CFLAGS="-g -O2"
2365 else
2366 CFLAGS="-g"
2368 else
2369 if test "$GCC" = yes; then
2370 CFLAGS="-O2"
2371 else
2372 CFLAGS=
2375 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2376 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 ac_cv_prog_cc_stdc=no
2381 ac_save_CC=$CC
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2388 #include <stdarg.h>
2389 #include <stdio.h>
2390 #include <sys/types.h>
2391 #include <sys/stat.h>
2392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2393 struct buf { int x; };
2394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2395 static char *e (p, i)
2396 char **p;
2397 int i;
2399 return p[i];
2401 static char *f (char * (*g) (char **, int), char **p, ...)
2403 char *s;
2404 va_list v;
2405 va_start (v,p);
2406 s = g (p, va_arg (v,int));
2407 va_end (v);
2408 return s;
2411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2412 function prototypes and stuff, but not '\xHH' hex character constants.
2413 These don't provoke an error unfortunately, instead are silently treated
2414 as 'x'. The following induces an error, until -std1 is added to get
2415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2416 array size at least. It's necessary to write '\x00'==0 to get something
2417 that's true only with -std1. */
2418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2420 int test (int i, double x);
2421 struct s1 {int (*f) (int a);};
2422 struct s2 {int (*f) (double a);};
2423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2424 int argc;
2425 char **argv;
2427 main ()
2429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2431 return 0;
2433 _ACEOF
2434 # Don't try gcc -ansi; that turns off useful extensions and
2435 # breaks some systems' header files.
2436 # AIX -qlanglvl=ansi
2437 # Ultrix and OSF/1 -std1
2438 # HP-UX 10.20 and later -Ae
2439 # HP-UX older versions -Aa -D_HPUX_SOURCE
2440 # SVR4 -Xc -D__EXTENSIONS__
2441 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2443 CC="$ac_save_CC $ac_arg"
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_prog_cc_stdc=$ac_arg
2467 break
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext
2474 done
2475 rm -f conftest.$ac_ext conftest.$ac_objext
2476 CC=$ac_save_CC
2480 case "x$ac_cv_prog_cc_stdc" in
2481 x|xno)
2482 echo "$as_me:$LINENO: result: none needed" >&5
2483 echo "${ECHO_T}none needed" >&6 ;;
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2487 CC="$CC $ac_cv_prog_cc_stdc" ;;
2488 esac
2490 # Some people use a C++ compiler to compile C. Since we use `exit',
2491 # in C++ we need to declare it. In case someone uses the same compiler
2492 # for both compiling C and C++ we need to have the C++ compiler decide
2493 # the declaration of exit, since it's the most demanding environment.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 #ifndef __cplusplus
2496 choke me
2497 #endif
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 for ac_declaration in \
2522 '' \
2523 'extern "C" void std::exit (int) throw (); using std::exit;' \
2524 'extern "C" void std::exit (int); using std::exit;' \
2525 'extern "C" void exit (int) throw ();' \
2526 'extern "C" void exit (int);' \
2527 'void exit (int);'
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 $ac_declaration
2536 #include <stdlib.h>
2538 main ()
2540 exit (42);
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 continue
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2581 $ac_declaration
2583 main ()
2585 exit (42);
2587 return 0;
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 break
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 done
2620 rm -f conftest*
2621 if test -n "$ac_declaration"; then
2622 echo '#ifdef __cplusplus' >>confdefs.h
2623 echo $ac_declaration >>confdefs.h
2624 echo '#endif' >>confdefs.h
2627 else
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_ext=c
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 # extra LD Flags which are required for targets
2642 case "${host}" in
2643 *-darwin*)
2644 # Darwin needs -single_module when linking libobjc
2645 extra_ldflags_libobjc=-Wl,-single_module
2647 esac
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}as; ac_word=$2
2655 echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_prog_AS+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 if test -n "$AS"; then
2661 ac_cv_prog_AS="$AS" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_AS="${ac_tool_prefix}as"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2679 AS=$ac_cv_prog_AS
2680 if test -n "$AS"; then
2681 echo "$as_me:$LINENO: result: $AS" >&5
2682 echo "${ECHO_T}$AS" >&6
2683 else
2684 echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2689 if test -z "$ac_cv_prog_AS"; then
2690 ac_ct_AS=$AS
2691 # Extract the first word of "as", so it can be a program name with args.
2692 set dummy as; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$ac_ct_AS"; then
2699 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_ac_ct_AS="as"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2717 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2718 if test -n "$ac_ct_AS"; then
2719 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2720 echo "${ECHO_T}$ac_ct_AS" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2726 AS=$ac_ct_AS
2727 else
2728 AS="$ac_cv_prog_AS"
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}ar; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_AR+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$AR"; then
2740 ac_cv_prog_AR="$AR" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_AR="${ac_tool_prefix}ar"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2758 AR=$ac_cv_prog_AR
2759 if test -n "$AR"; then
2760 echo "$as_me:$LINENO: result: $AR" >&5
2761 echo "${ECHO_T}$AR" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2768 if test -z "$ac_cv_prog_AR"; then
2769 ac_ct_AR=$AR
2770 # Extract the first word of "ar", so it can be a program name with args.
2771 set dummy ar; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$ac_ct_AR"; then
2778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_AR="ar"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2797 if test -n "$ac_ct_AR"; then
2798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2799 echo "${ECHO_T}$ac_ct_AR" >&6
2800 else
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2805 AR=$ac_ct_AR
2806 else
2807 AR="$ac_cv_prog_AR"
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_RANLIB+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$RANLIB"; then
2819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2837 RANLIB=$ac_cv_prog_RANLIB
2838 if test -n "$RANLIB"; then
2839 echo "$as_me:$LINENO: result: $RANLIB" >&5
2840 echo "${ECHO_T}$RANLIB" >&6
2841 else
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2847 if test -z "$ac_cv_prog_RANLIB"; then
2848 ac_ct_RANLIB=$RANLIB
2849 # Extract the first word of "ranlib", so it can be a program name with args.
2850 set dummy ranlib; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$ac_ct_RANLIB"; then
2857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_RANLIB="ranlib"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2873 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2877 if test -n "$ac_ct_RANLIB"; then
2878 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2880 else
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2885 RANLIB=$ac_ct_RANLIB
2886 else
2887 RANLIB="$ac_cv_prog_RANLIB"
2890 # Find a good install program. We prefer a C program (faster),
2891 # so one script is as good as another. But avoid the broken or
2892 # incompatible versions:
2893 # SysV /etc/install, /usr/sbin/install
2894 # SunOS /usr/etc/install
2895 # IRIX /sbin/install
2896 # AIX /bin/install
2897 # AmigaOS /C/install, which installs bootblocks on floppy discs
2898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901 # OS/2's system install, which has a completely different semantic
2902 # ./install, which can be erroneously created by make from ./install.sh.
2903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2905 if test -z "$INSTALL"; then
2906 if test "${ac_cv_path_install+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 # Account for people who put trailing slashes in PATH elements.
2915 case $as_dir/ in
2916 ./ | .// | /cC/* | \
2917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2919 /usr/ucb/* ) ;;
2921 # OSF1 and SCO ODT 3.0 have their own names for install.
2922 # Don't use installbsd from OSF since it installs stuff as root
2923 # by default.
2924 for ac_prog in ginstall scoinst install; do
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2927 if test $ac_prog = install &&
2928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929 # AIX install. It has an incompatible calling convention.
2931 elif test $ac_prog = install &&
2932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933 # program-specific install script used by HP pwplus--don't use.
2935 else
2936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2937 break 3
2940 done
2941 done
2943 esac
2944 done
2948 if test "${ac_cv_path_install+set}" = set; then
2949 INSTALL=$ac_cv_path_install
2950 else
2951 # As a last resort, use the slow shell script. We don't cache a
2952 # path for INSTALL within a source directory, because that will
2953 # break other packages using the cache if that directory is
2954 # removed, or if the path is relative.
2955 INSTALL=$ac_install_sh
2958 echo "$as_me:$LINENO: result: $INSTALL" >&5
2959 echo "${ECHO_T}$INSTALL" >&6
2961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2962 # It thinks the first close brace ends the variable substitution.
2963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2972 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2973 if test "${enable_maintainer_mode+set}" = set; then
2974 enableval="$enable_maintainer_mode"
2975 USE_MAINTAINER_MODE=$enableval
2976 else
2977 USE_MAINTAINER_MODE=no
2979 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2983 if test $USE_MAINTAINER_MODE = yes; then
2984 MAINTAINER_MODE_TRUE=
2985 MAINTAINER_MODE_FALSE='#'
2986 else
2987 MAINTAINER_MODE_TRUE='#'
2988 MAINTAINER_MODE_FALSE=
2991 MAINT=$MAINTAINER_MODE_TRUE
2995 # Enable Win32 DLL on MS Windows - FIXME
2998 # Check whether --enable-shared or --disable-shared was given.
2999 if test "${enable_shared+set}" = set; then
3000 enableval="$enable_shared"
3001 p=${PACKAGE-default}
3002 case $enableval in
3003 yes) enable_shared=yes ;;
3004 no) enable_shared=no ;;
3006 enable_shared=no
3007 # Look at the argument we got. We use all the common list separators.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3009 for pkg in $enableval; do
3010 if test "X$pkg" = "X$p"; then
3011 enable_shared=yes
3013 done
3014 IFS="$ac_save_ifs"
3016 esac
3017 else
3018 enable_shared=yes
3020 # Check whether --enable-static or --disable-static was given.
3021 if test "${enable_static+set}" = set; then
3022 enableval="$enable_static"
3023 p=${PACKAGE-default}
3024 case $enableval in
3025 yes) enable_static=yes ;;
3026 no) enable_static=no ;;
3028 enable_static=no
3029 # Look at the argument we got. We use all the common list separators.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3031 for pkg in $enableval; do
3032 if test "X$pkg" = "X$p"; then
3033 enable_static=yes
3035 done
3036 IFS="$ac_save_ifs"
3038 esac
3039 else
3040 enable_static=yes
3042 # Check whether --enable-fast-install or --disable-fast-install was given.
3043 if test "${enable_fast_install+set}" = set; then
3044 enableval="$enable_fast_install"
3045 p=${PACKAGE-default}
3046 case $enableval in
3047 yes) enable_fast_install=yes ;;
3048 no) enable_fast_install=no ;;
3050 enable_fast_install=no
3051 # Look at the argument we got. We use all the common list separators.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3053 for pkg in $enableval; do
3054 if test "X$pkg" = "X$p"; then
3055 enable_fast_install=yes
3057 done
3058 IFS="$ac_save_ifs"
3060 esac
3061 else
3062 enable_fast_install=yes
3065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3066 if test "${with_gnu_ld+set}" = set; then
3067 withval="$with_gnu_ld"
3068 test "$withval" = no || with_gnu_ld=yes
3069 else
3070 with_gnu_ld=no
3072 ac_prog=ld
3073 if test "$GCC" = yes; then
3074 # Check if gcc -print-prog-name=ld gives a path.
3075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3077 case $host in
3078 *-*-mingw*)
3079 # gcc leaves a trailing carriage return which upsets mingw
3080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3083 esac
3084 case $ac_prog in
3085 # Accept absolute paths.
3086 [\\/]* | [A-Za-z]:[\\/]*)
3087 re_direlt='/[^/][^/]*/\.\./'
3088 # Canonicalize the path of ld
3089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3092 done
3093 test -z "$LD" && LD="$ac_prog"
3096 # If it fails, then pretend we aren't using GCC.
3097 ac_prog=ld
3100 # If it is relative, then search for the first ld in PATH.
3101 with_gnu_ld=unknown
3103 esac
3104 elif test "$with_gnu_ld" = yes; then
3105 echo "$as_me:$LINENO: checking for GNU ld" >&5
3106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3107 else
3108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3111 if test "${lt_cv_path_LD+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 if test -z "$LD"; then
3115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3116 for ac_dir in $PATH; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3119 lt_cv_path_LD="$ac_dir/$ac_prog"
3120 # Check to see if the program is GNU ld. I'd rather use --version,
3121 # but apparently some GNU ld's only accept -v.
3122 # Break only if it was the GNU/non-GNU ld that we prefer.
3123 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3124 test "$with_gnu_ld" != no && break
3125 else
3126 test "$with_gnu_ld" != yes && break
3129 done
3130 IFS="$ac_save_ifs"
3131 else
3132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3136 LD="$lt_cv_path_LD"
3137 if test -n "$LD"; then
3138 echo "$as_me:$LINENO: result: $LD" >&5
3139 echo "${ECHO_T}$LD" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3146 { (exit 1); exit 1; }; }
3147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3154 lt_cv_prog_gnu_ld=yes
3155 else
3156 lt_cv_prog_gnu_ld=no
3159 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3161 with_gnu_ld=$lt_cv_prog_gnu_ld
3164 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3166 if test "${lt_cv_ld_reload_flag+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 lt_cv_ld_reload_flag='-r'
3171 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3173 reload_flag=$lt_cv_ld_reload_flag
3174 test -n "$reload_flag" && reload_flag=" $reload_flag"
3176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3178 if test "${lt_cv_path_NM+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$NM"; then
3182 # Let the user override the test.
3183 lt_cv_path_NM="$NM"
3184 else
3185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3187 test -z "$ac_dir" && ac_dir=.
3188 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3189 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3190 # Check to see if the nm accepts a BSD-compat flag.
3191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3192 # nm: unknown option "B" ignored
3193 # Tru64's nm complains that /dev/null is an invalid object file
3194 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3195 lt_cv_path_NM="$tmp_nm -B"
3196 break
3197 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3198 lt_cv_path_NM="$tmp_nm -p"
3199 break
3200 else
3201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3202 continue # so that we can try to find one that supports BSD flags
3205 done
3206 IFS="$ac_save_ifs"
3207 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3211 NM="$lt_cv_path_NM"
3212 echo "$as_me:$LINENO: result: $NM" >&5
3213 echo "${ECHO_T}$NM" >&6
3215 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3217 LN_S=$as_ln_s
3218 if test "$LN_S" = "ln -s"; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 else
3222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3223 echo "${ECHO_T}no, using $LN_S" >&6
3226 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3227 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3228 if test "${lt_cv_deplibs_check_method+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 lt_cv_file_magic_cmd='$MAGIC_CMD'
3232 lt_cv_file_magic_test_file=
3233 lt_cv_deplibs_check_method='unknown'
3234 # Need to set the preceding variable on all platforms that support
3235 # interlibrary dependencies.
3236 # 'none' -- dependencies not supported.
3237 # `unknown' -- same as none, but documents that we really don't know.
3238 # 'pass_all' -- all dependencies passed with no checks.
3239 # 'test_compile' -- check by making test program.
3240 # 'file_magic [regex]' -- check by looking for files in library path
3241 # which responds to the $file_magic_cmd with a given egrep regex.
3242 # If you have `file' or equivalent on your system and you're not sure
3243 # whether `pass_all' will *always* work, you probably want this one.
3245 case $host_os in
3246 aix*)
3247 lt_cv_deplibs_check_method=pass_all
3250 beos*)
3251 lt_cv_deplibs_check_method=pass_all
3254 bsdi4*)
3255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3256 lt_cv_file_magic_cmd='/usr/bin/file -L'
3257 lt_cv_file_magic_test_file=/shlib/libc.so
3260 cygwin* | mingw* |pw32*)
3261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3262 lt_cv_file_magic_cmd='$OBJDUMP -f'
3265 darwin* | rhapsody*)
3266 # this will be overwritten by pass_all, but leave it in just in case
3267 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3268 lt_cv_file_magic_cmd='/usr/bin/file -L'
3269 case "$host_os" in
3270 rhapsody* | darwin1.012)
3271 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3273 *) # Darwin 1.3 on
3274 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3276 esac
3277 lt_cv_deplibs_check_method=pass_all
3280 freebsd* | kfreebsd*-gnu)
3281 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3282 case $host_cpu in
3283 i*86 )
3284 # Not sure whether the presence of OpenBSD here was a mistake.
3285 # Let's accept both of them until this is cleared up.
3286 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3287 lt_cv_file_magic_cmd=/usr/bin/file
3288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3290 esac
3291 else
3292 lt_cv_deplibs_check_method=pass_all
3296 gnu*)
3297 lt_cv_deplibs_check_method=pass_all
3300 hpux10.20*|hpux11*)
3301 case $host_cpu in
3302 hppa*)
3303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3304 lt_cv_file_magic_cmd=/usr/bin/file
3305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3307 ia64*)
3308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3309 lt_cv_file_magic_cmd=/usr/bin/file
3310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3312 esac
3315 irix5* | irix6*)
3316 case $host_os in
3317 irix5*)
3318 # this will be overridden with pass_all, but let us keep it just in case
3319 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3322 case $LD in
3323 *-32|*"-32 ") libmagic=32-bit;;
3324 *-n32|*"-n32 ") libmagic=N32;;
3325 *-64|*"-64 ") libmagic=64-bit;;
3326 *) libmagic=never-match;;
3327 esac
3328 # this will be overridden with pass_all, but let us keep it just in case
3329 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3331 esac
3332 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3333 lt_cv_deplibs_check_method=pass_all
3336 # This must be Linux ELF.
3337 linux-gnu*)
3338 lt_cv_deplibs_check_method=pass_all
3341 netbsd* | knetbsd*-gnu)
3342 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3343 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3344 else
3345 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3349 newsos6)
3350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3351 lt_cv_file_magic_cmd=/usr/bin/file
3352 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3355 osf3* | osf4* | osf5*)
3356 # this will be overridden with pass_all, but let us keep it just in case
3357 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3358 lt_cv_file_magic_test_file=/shlib/libc.so
3359 lt_cv_deplibs_check_method=pass_all
3362 sco3.2v5*)
3363 lt_cv_deplibs_check_method=pass_all
3366 solaris*)
3367 lt_cv_deplibs_check_method=pass_all
3368 lt_cv_file_magic_test_file=/lib/libc.so
3371 sysv5uw[78]* | sysv4*uw2*)
3372 lt_cv_deplibs_check_method=pass_all
3375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3376 case $host_vendor in
3377 ncr)
3378 lt_cv_deplibs_check_method=pass_all
3380 motorola)
3381 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]'
3382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3384 esac
3386 esac
3389 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3390 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3391 file_magic_cmd=$lt_cv_file_magic_cmd
3392 deplibs_check_method=$lt_cv_deplibs_check_method
3398 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3400 # find the maximum length of command line arguments
3401 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3402 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3403 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3407 teststring="ABCD"
3409 case $build_os in
3410 msdosdjgpp*)
3411 # On DJGPP, this test can blow up pretty badly due to problems in libc
3412 # (any single argument exceeding 2000 bytes causes a buffer overrun
3413 # during glob expansion). Even if it were fixed, the result of this
3414 # check would be larger than it should be.
3415 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3418 cygwin* | mingw*)
3419 # On Win9x/ME, this test blows up -- it succeeds, but takes
3420 # about 5 minutes as the teststring grows exponentially.
3421 # Worse, since 9x/ME are not pre-emptively multitasking,
3422 # you end up with a "frozen" computer, even though with patience
3423 # the test eventually succeeds (with a max line length of 256k).
3424 # Instead, let's just punt: use the minimum linelength reported by
3425 # all of the supported platforms: 8192 (on NT/2K/XP).
3426 lt_cv_sys_max_cmd_len=8192;
3429 amigaos*)
3430 # On AmigaOS with pdksh, this test takes hours, literally.
3431 # So we just punt and use a minimum line length of 8192.
3432 lt_cv_sys_max_cmd_len=8192;
3435 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3436 # This has been around since 386BSD, at least. Likely further.
3437 if test -x /sbin/sysctl; then
3438 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3439 elif test -x /usr/sbin/sysctl; then
3440 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3441 else
3442 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3444 # And add a safety zone
3445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3448 esac
3452 if test -n "$lt_cv_sys_max_cmd_len" ; then
3453 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3454 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3455 else
3456 echo "$as_me:$LINENO: result: none" >&5
3457 echo "${ECHO_T}none" >&6
3461 # Only perform the check for file, if the check method requires it
3462 case $deplibs_check_method in
3463 file_magic*)
3464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3465 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3466 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3467 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 case $MAGIC_CMD in
3472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3474 ?:/*)
3475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3478 ac_save_MAGIC_CMD="$MAGIC_CMD"
3479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 ac_dummy="/usr/bin:$PATH"
3481 for ac_dir in $ac_dummy; do
3482 test -z "$ac_dir" && ac_dir=.
3483 if test -f $ac_dir/${ac_tool_prefix}file; then
3484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3485 if test -n "$file_magic_test_file"; then
3486 case $deplibs_check_method in
3487 "file_magic "*)
3488 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3491 egrep "$file_magic_regex" > /dev/null; then
3493 else
3494 cat <<EOF 1>&2
3496 *** Warning: the command libtool uses to detect shared libraries,
3497 *** $file_magic_cmd, produces output that libtool cannot recognize.
3498 *** The result is that libtool may fail to recognize shared libraries
3499 *** as such. This will affect the creation of libtool libraries that
3500 *** depend on shared libraries, but programs linked with such libtool
3501 *** libraries will work regardless of this problem. Nevertheless, you
3502 *** may want to report the problem to your system manager and/or to
3503 *** bug-libtool@gnu.org
3506 fi ;;
3507 esac
3509 break
3511 done
3512 IFS="$ac_save_ifs"
3513 MAGIC_CMD="$ac_save_MAGIC_CMD"
3515 esac
3518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3519 if test -n "$MAGIC_CMD"; then
3520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3521 echo "${ECHO_T}$MAGIC_CMD" >&6
3522 else
3523 echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3527 if test -z "$lt_cv_path_MAGIC_CMD"; then
3528 if test -n "$ac_tool_prefix"; then
3529 echo "$as_me:$LINENO: checking for file" >&5
3530 echo $ECHO_N "checking for file... $ECHO_C" >&6
3531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534 case $MAGIC_CMD in
3536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3538 ?:/*)
3539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3542 ac_save_MAGIC_CMD="$MAGIC_CMD"
3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 ac_dummy="/usr/bin:$PATH"
3545 for ac_dir in $ac_dummy; do
3546 test -z "$ac_dir" && ac_dir=.
3547 if test -f $ac_dir/file; then
3548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3549 if test -n "$file_magic_test_file"; then
3550 case $deplibs_check_method in
3551 "file_magic "*)
3552 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3555 egrep "$file_magic_regex" > /dev/null; then
3557 else
3558 cat <<EOF 1>&2
3560 *** Warning: the command libtool uses to detect shared libraries,
3561 *** $file_magic_cmd, produces output that libtool cannot recognize.
3562 *** The result is that libtool may fail to recognize shared libraries
3563 *** as such. This will affect the creation of libtool libraries that
3564 *** depend on shared libraries, but programs linked with such libtool
3565 *** libraries will work regardless of this problem. Nevertheless, you
3566 *** may want to report the problem to your system manager and/or to
3567 *** bug-libtool@gnu.org
3570 fi ;;
3571 esac
3573 break
3575 done
3576 IFS="$ac_save_ifs"
3577 MAGIC_CMD="$ac_save_MAGIC_CMD"
3579 esac
3582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3583 if test -n "$MAGIC_CMD"; then
3584 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3585 echo "${ECHO_T}$MAGIC_CMD" >&6
3586 else
3587 echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3591 else
3592 MAGIC_CMD=:
3598 esac
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_RANLIB+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$RANLIB"; then
3609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3627 RANLIB=$ac_cv_prog_RANLIB
3628 if test -n "$RANLIB"; then
3629 echo "$as_me:$LINENO: result: $RANLIB" >&5
3630 echo "${ECHO_T}$RANLIB" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3637 if test -z "$ac_cv_prog_RANLIB"; then
3638 ac_ct_RANLIB=$RANLIB
3639 # Extract the first word of "ranlib", so it can be a program name with args.
3640 set dummy ranlib; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 if test -n "$ac_ct_RANLIB"; then
3647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_ac_ct_RANLIB="ranlib"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3663 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3667 if test -n "$ac_ct_RANLIB"; then
3668 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3669 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 RANLIB=$ac_ct_RANLIB
3676 else
3677 RANLIB="$ac_cv_prog_RANLIB"
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3682 set dummy ${ac_tool_prefix}strip; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_STRIP+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 if test -n "$STRIP"; then
3689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3707 STRIP=$ac_cv_prog_STRIP
3708 if test -n "$STRIP"; then
3709 echo "$as_me:$LINENO: result: $STRIP" >&5
3710 echo "${ECHO_T}$STRIP" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3717 if test -z "$ac_cv_prog_STRIP"; then
3718 ac_ct_STRIP=$STRIP
3719 # Extract the first word of "strip", so it can be a program name with args.
3720 set dummy strip; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$ac_ct_STRIP"; then
3727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_ac_ct_STRIP="strip"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3743 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3747 if test -n "$ac_ct_STRIP"; then
3748 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3749 echo "${ECHO_T}$ac_ct_STRIP" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 STRIP=$ac_ct_STRIP
3756 else
3757 STRIP="$ac_cv_prog_STRIP"
3761 # Check for any special flags to pass to ltconfig.
3762 libtool_flags="--cache-file=$cache_file"
3763 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3764 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3765 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3766 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3767 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3770 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3771 if test "${enable_libtool_lock+set}" = set; then
3772 enableval="$enable_libtool_lock"
3775 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3776 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3779 # Check whether --with-pic or --without-pic was given.
3780 if test "${with_pic+set}" = set; then
3781 withval="$with_pic"
3782 pic_mode="$withval"
3783 else
3784 pic_mode=default
3786 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3787 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3789 # Some flags need to be propagated to the compiler or linker for good
3790 # libtool support.
3791 case $host in
3792 *-*-irix6*)
3793 # Find out which ABI we are using.
3794 echo '#line 3794 "configure"' > conftest.$ac_ext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; then
3800 if test "$lt_cv_prog_gnu_ld" = yes; then
3801 case `/usr/bin/file conftest.$ac_objext` in
3802 *32-bit*)
3803 LD="${LD-ld} -melf32bsmip"
3805 *N32*)
3806 LD="${LD-ld} -melf32bmipn32"
3808 *64-bit*)
3809 LD="${LD-ld} -melf64bmip"
3811 esac
3812 else
3813 case `/usr/bin/file conftest.$ac_objext` in
3814 *32-bit*)
3815 LD="${LD-ld} -32"
3817 *N32*)
3818 LD="${LD-ld} -n32"
3820 *64-bit*)
3821 LD="${LD-ld} -64"
3823 esac
3826 rm -rf conftest*
3829 ia64-*-hpux*)
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 *ELF-32*)
3839 HPUX_IA64_MODE="32"
3841 *ELF-64*)
3842 HPUX_IA64_MODE="64"
3844 esac
3846 rm -rf conftest*
3849 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3850 # Find out which ABI we are using.
3851 echo 'int i;' > conftest.$ac_ext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; then
3857 case "`/usr/bin/file conftest.o`" in
3858 *32-bit*)
3859 case $host in
3860 x86_64-*linux*)
3861 LD="${LD-ld} -m elf_i386"
3863 ppc64-*linux*|powerpc64-*linux*)
3864 LD="${LD-ld} -m elf32ppclinux"
3866 s390x-*linux*)
3867 LD="${LD-ld} -m elf_s390"
3869 sparc64-*linux*)
3870 LD="${LD-ld} -m elf32_sparc"
3872 esac
3874 *64-bit*)
3875 case $host in
3876 x86_64-*linux*)
3877 LD="${LD-ld} -m elf_x86_64"
3879 ppc*-*linux*|powerpc*-*linux*)
3880 LD="${LD-ld} -m elf64ppc"
3882 s390*-*linux*)
3883 LD="${LD-ld} -m elf64_s390"
3885 sparc*-*linux*)
3886 LD="${LD-ld} -m elf64_sparc"
3888 esac
3890 esac
3892 rm -rf conftest*
3895 *-*-sco3.2v5*)
3896 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3897 SAVE_CFLAGS="$CFLAGS"
3898 CFLAGS="$CFLAGS -belf"
3899 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3900 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3901 if test "${lt_cv_cc_needs_belf+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 if test x$gcc_no_link = xyes; then
3913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3915 { (exit 1); exit 1; }; }
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3925 main ()
3929 return 0;
3931 _ACEOF
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 lt_cv_cc_needs_belf=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 lt_cv_cc_needs_belf=no
3961 rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3971 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3972 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3973 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3974 CFLAGS="$SAVE_CFLAGS"
3979 esac
3982 # Save cache, so that ltconfig can load it
3983 cat >confcache <<\_ACEOF
3984 # This file is a shell script that caches the results of configure
3985 # tests run on this system so they can be shared between configure
3986 # scripts and configure runs, see configure's option --config-cache.
3987 # It is not useful on other systems. If it contains results you don't
3988 # want to keep, you may remove or edit it.
3990 # config.status only pays attention to the cache file if you give it
3991 # the --recheck option to rerun configure.
3993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3995 # following values.
3997 _ACEOF
3999 # The following way of writing the cache mishandles newlines in values,
4000 # but we know of no workaround that is simple, portable, and efficient.
4001 # So, don't put newlines in cache variables' values.
4002 # Ultrix sh set writes to stderr and can't be redirected directly,
4003 # and sets the high bit in the cache file unless we assign to the vars.
4005 (set) 2>&1 |
4006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4007 *ac_space=\ *)
4008 # `set' does not quote correctly, so add quotes (double-quote
4009 # substitution turns \\\\ into \\, and sed turns \\ into \).
4010 sed -n \
4011 "s/'/'\\\\''/g;
4012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4015 # `set' quotes correctly as required by POSIX, so do not add quotes.
4016 sed -n \
4017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4019 esac;
4021 sed '
4022 t clear
4023 : clear
4024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4025 t end
4026 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4027 : end' >>confcache
4028 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4029 if test -w $cache_file; then
4030 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4031 cat confcache >$cache_file
4032 else
4033 echo "not updating unwritable cache $cache_file"
4036 rm -f confcache
4038 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4039 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4040 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4041 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4042 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4043 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4044 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4045 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4046 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4047 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4048 echo "$as_me: error: libtool configure failed" >&2;}
4049 { (exit 1); exit 1; }; }
4051 # Reload cache, that may have been modified by ltconfig
4052 if test -r "$cache_file"; then
4053 # Some versions of bash will fail to source /dev/null (special
4054 # files actually), so we avoid doing that.
4055 if test -f "$cache_file"; then
4056 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4057 echo "$as_me: loading cache $cache_file" >&6;}
4058 case $cache_file in
4059 [\\/]* | ?:[\\/]* ) . $cache_file;;
4060 *) . ./$cache_file;;
4061 esac
4063 else
4064 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4065 echo "$as_me: creating cache $cache_file" >&6;}
4066 >$cache_file
4070 # This can be used to rebuild libtool when needed
4071 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4073 # Always use our own libtool.
4074 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4076 # Redirect the config.log output again, so that the ltconfig log is not
4077 # clobbered by the next message.
4078 exec 5>>./config.log
4086 if test "x$CC" != xcc; then
4087 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4088 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4089 else
4090 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4091 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4093 set dummy $CC; ac_cc=`echo $2 |
4094 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4095 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 # Make sure it works both with $CC and with simple cc.
4114 # We do the test twice because some compilers refuse to overwrite an
4115 # existing .o file with -o, though they will create one.
4116 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4117 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); };
4127 then
4128 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4129 if test "x$CC" != xcc; then
4130 # Test first that cc exists at all.
4131 if { ac_try='cc -c conftest.$ac_ext >&5'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4138 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); };
4148 then
4149 # cc works too.
4151 else
4152 # cc exists but doesn't like -o.
4153 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4157 else
4158 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4160 rm -f conftest*
4163 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165 echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4170 cat >>confdefs.h <<\_ACEOF
4171 #define NO_MINUS_C_MINUS_O 1
4172 _ACEOF
4176 # expand $ac_aux_dir to an absolute path
4177 am_aux_dir=`cd $ac_aux_dir && pwd`
4179 # FIXME: we rely on the cache variable name because
4180 # there is no other way.
4181 set dummy $CC
4182 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4183 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4184 # Losing compiler, so override with the script.
4185 # FIXME: It is wrong to rewrite CC.
4186 # But if we don't then we get into trouble of one sort or another.
4187 # A longer-term fix would be to have automake use am__CC in this case,
4188 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4189 CC="$am_aux_dir/compile $CC"
4193 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 cat >conftest.make <<\_ACEOF
4200 all:
4201 @echo 'ac_maketemp="$(MAKE)"'
4202 _ACEOF
4203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4204 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4205 if test -n "$ac_maketemp"; then
4206 eval ac_cv_prog_make_${ac_make}_set=yes
4207 else
4208 eval ac_cv_prog_make_${ac_make}_set=no
4210 rm -f conftest.make
4212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4213 echo "$as_me:$LINENO: result: yes" >&5
4214 echo "${ECHO_T}yes" >&6
4215 SET_MAKE=
4216 else
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4219 SET_MAKE="MAKE=${MAKE-make}"
4223 # -------
4224 # Headers
4225 # -------
4227 # Sanity check for the cross-compilation case:
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4235 # On Suns, sometimes $CPP names a directory.
4236 if test -n "$CPP" && test -d "$CPP"; then
4237 CPP=
4239 if test -z "$CPP"; then
4240 if test "${ac_cv_prog_CPP+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 # Double quotes because CPP needs to be expanded
4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4246 ac_preproc_ok=false
4247 for ac_c_preproc_warn_flag in '' yes
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
4253 # On the NeXT, cc -E runs the code through the compiler's parser,
4254 # not just through cpp. "Syntax error" is here to catch this case.
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266 Syntax error
4267 _ACEOF
4268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } >/dev/null; then
4276 if test -s conftest.err; then
4277 ac_cpp_err=$ac_c_preproc_warn_flag
4278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4279 else
4280 ac_cpp_err=
4282 else
4283 ac_cpp_err=yes
4285 if test -z "$ac_cpp_err"; then
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 # Broken: fails on valid input.
4292 continue
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether non-existent headers
4297 # can be detected and how.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4305 _ACEOF
4306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4317 else
4318 ac_cpp_err=
4320 else
4321 ac_cpp_err=yes
4323 if test -z "$ac_cpp_err"; then
4324 # Broken: success on invalid input.
4325 continue
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 # Passes both tests.
4331 ac_preproc_ok=:
4332 break
4334 rm -f conftest.err conftest.$ac_ext
4336 done
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then
4340 break
4343 done
4344 ac_cv_prog_CPP=$CPP
4347 CPP=$ac_cv_prog_CPP
4348 else
4349 ac_cv_prog_CPP=$CPP
4351 echo "$as_me:$LINENO: result: $CPP" >&5
4352 echo "${ECHO_T}$CPP" >&6
4353 ac_preproc_ok=false
4354 for ac_c_preproc_warn_flag in '' yes
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #ifdef __STDC__
4369 # include <limits.h>
4370 #else
4371 # include <assert.h>
4372 #endif
4373 Syntax error
4374 _ACEOF
4375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null; then
4383 if test -s conftest.err; then
4384 ac_cpp_err=$ac_c_preproc_warn_flag
4385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4386 else
4387 ac_cpp_err=
4389 else
4390 ac_cpp_err=yes
4392 if test -z "$ac_cpp_err"; then
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 # Broken: fails on valid input.
4399 continue
4401 rm -f conftest.err conftest.$ac_ext
4403 # OK, works on sane cases. Now check whether non-existent headers
4404 # can be detected and how.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } >/dev/null; then
4421 if test -s conftest.err; then
4422 ac_cpp_err=$ac_c_preproc_warn_flag
4423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4424 else
4425 ac_cpp_err=
4427 else
4428 ac_cpp_err=yes
4430 if test -z "$ac_cpp_err"; then
4431 # Broken: success on invalid input.
4432 continue
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4441 rm -f conftest.err conftest.$ac_ext
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then
4448 else
4449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4450 See \`config.log' for more details." >&5
4451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4452 See \`config.log' for more details." >&2;}
4453 { (exit 1); exit 1; }; }
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 echo "$as_me:$LINENO: checking for egrep" >&5
4464 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4465 if test "${ac_cv_prog_egrep+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4469 then ac_cv_prog_egrep='grep -E'
4470 else ac_cv_prog_egrep='egrep'
4473 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4474 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4475 EGREP=$ac_cv_prog_egrep
4478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4480 if test "${ac_cv_header_stdc+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #include <stdlib.h>
4490 #include <stdarg.h>
4491 #include <string.h>
4492 #include <float.h>
4495 main ()
4499 return 0;
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_header_stdc=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 ac_cv_header_stdc=no
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533 if test $ac_cv_header_stdc = yes; then
4534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <string.h>
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "memchr" >/dev/null 2>&1; then
4547 else
4548 ac_cv_header_stdc=no
4550 rm -f conftest*
4554 if test $ac_cv_header_stdc = yes; then
4555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <stdlib.h>
4564 _ACEOF
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "free" >/dev/null 2>&1; then
4568 else
4569 ac_cv_header_stdc=no
4571 rm -f conftest*
4575 if test $ac_cv_header_stdc = yes; then
4576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4577 if test "$cross_compiling" = yes; then
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <ctype.h>
4587 #if ((' ' & 0x0FF) == 0x020)
4588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4590 #else
4591 # define ISLOWER(c) \
4592 (('a' <= (c) && (c) <= 'i') \
4593 || ('j' <= (c) && (c) <= 'r') \
4594 || ('s' <= (c) && (c) <= 'z'))
4595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596 #endif
4598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4600 main ()
4602 int i;
4603 for (i = 0; i < 256; i++)
4604 if (XOR (islower (i), ISLOWER (i))
4605 || toupper (i) != TOUPPER (i))
4606 exit(2);
4607 exit (0);
4609 _ACEOF
4610 rm -f conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4622 else
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ( exit $ac_status )
4628 ac_cv_header_stdc=no
4630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4636 if test $ac_cv_header_stdc = yes; then
4638 cat >>confdefs.h <<\_ACEOF
4639 #define STDC_HEADERS 1
4640 _ACEOF
4644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655 inttypes.h stdint.h unistd.h
4657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 $ac_includes_default
4671 #include <$ac_header>
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag"
4683 || test ! -s conftest.err'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 eval "$as_ac_Header=yes"
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 eval "$as_ac_Header=no"
4702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 _ACEOF
4713 done
4716 if test "${ac_cv_header_stdio_h+set}" = set; then
4717 echo "$as_me:$LINENO: checking for stdio.h" >&5
4718 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4719 if test "${ac_cv_header_stdio_h+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4723 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4724 else
4725 # Is the header compilable?
4726 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4727 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4735 #include <stdio.h>
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_header_compiler=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_header_compiler=no
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4768 echo "${ECHO_T}$ac_header_compiler" >&6
4770 # Is the header present?
4771 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4772 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <stdio.h>
4780 _ACEOF
4781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null; then
4789 if test -s conftest.err; then
4790 ac_cpp_err=$ac_c_preproc_warn_flag
4791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4792 else
4793 ac_cpp_err=
4795 else
4796 ac_cpp_err=yes
4798 if test -z "$ac_cpp_err"; then
4799 ac_header_preproc=yes
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 ac_header_preproc=no
4806 rm -f conftest.err conftest.$ac_ext
4807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4808 echo "${ECHO_T}$ac_header_preproc" >&6
4810 # So? What about this header?
4811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4812 yes:no: )
4813 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4814 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4815 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4816 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4817 ac_header_preproc=yes
4819 no:yes:* )
4820 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4821 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4822 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4823 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4824 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4825 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4827 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4828 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4829 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4830 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4831 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4833 cat <<\_ASBOX
4834 ## ----------------------------------------- ##
4835 ## Report this to the package-unused lists. ##
4836 ## ----------------------------------------- ##
4837 _ASBOX
4839 sed "s/^/$as_me: WARNING: /" >&2
4841 esac
4842 echo "$as_me:$LINENO: checking for stdio.h" >&5
4843 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4844 if test "${ac_cv_header_stdio_h+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 ac_cv_header_stdio_h=$ac_header_preproc
4849 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4850 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4853 if test $ac_cv_header_stdio_h = yes; then
4855 else
4856 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4857 You must have a usable C system for the target already installed, at least
4858 including headers and, preferably, the library, before you can configure
4859 the Objective C runtime system. If necessary, install gcc now with
4860 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4861 echo "$as_me: error: Can't find stdio.h.
4862 You must have a usable C system for the target already installed, at least
4863 including headers and, preferably, the library, before you can configure
4864 the Objective C runtime system. If necessary, install gcc now with
4865 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4866 { (exit 1); exit 1; }; }
4871 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4873 if test "${ac_cv_header_stdc+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <stdlib.h>
4883 #include <stdarg.h>
4884 #include <string.h>
4885 #include <float.h>
4888 main ()
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_header_stdc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_cv_header_stdc=no
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $ac_cv_header_stdc = yes; then
4927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 #include <string.h>
4936 _ACEOF
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then
4940 else
4941 ac_cv_header_stdc=no
4943 rm -f conftest*
4947 if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <stdlib.h>
4957 _ACEOF
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 $EGREP "free" >/dev/null 2>&1; then
4961 else
4962 ac_cv_header_stdc=no
4964 rm -f conftest*
4968 if test $ac_cv_header_stdc = yes; then
4969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4970 if test "$cross_compiling" = yes; then
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #include <ctype.h>
4980 #if ((' ' & 0x0FF) == 0x020)
4981 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4982 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983 #else
4984 # define ISLOWER(c) \
4985 (('a' <= (c) && (c) <= 'i') \
4986 || ('j' <= (c) && (c) <= 'r') \
4987 || ('s' <= (c) && (c) <= 'z'))
4988 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4989 #endif
4991 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4993 main ()
4995 int i;
4996 for (i = 0; i < 256; i++)
4997 if (XOR (islower (i), ISLOWER (i))
4998 || toupper (i) != TOUPPER (i))
4999 exit(2);
5000 exit (0);
5002 _ACEOF
5003 rm -f conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5015 else
5016 echo "$as_me: program exited with status $ac_status" >&5
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ( exit $ac_status )
5021 ac_cv_header_stdc=no
5023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5027 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5028 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5029 if test $ac_cv_header_stdc = yes; then
5031 cat >>confdefs.h <<\_ACEOF
5032 #define STDC_HEADERS 1
5033 _ACEOF
5039 for ac_header in sched.h
5041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043 echo "$as_me:$LINENO: checking for $ac_header" >&5
5044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050 else
5051 # Is the header compilable?
5052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_header_compiler=yes
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 ac_header_compiler=no
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5094 echo "${ECHO_T}$ac_header_compiler" >&6
5096 # Is the header present?
5097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #include <$ac_header>
5106 _ACEOF
5107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_c_preproc_warn_flag
5117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5118 else
5119 ac_cpp_err=
5121 else
5122 ac_cpp_err=yes
5124 if test -z "$ac_cpp_err"; then
5125 ac_header_preproc=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_header_preproc=no
5132 rm -f conftest.err conftest.$ac_ext
5133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134 echo "${ECHO_T}$ac_header_preproc" >&6
5136 # So? What about this header?
5137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5138 yes:no: )
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5143 ac_header_preproc=yes
5145 no:yes:* )
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5159 cat <<\_ASBOX
5160 ## ----------------------------------------- ##
5161 ## Report this to the package-unused lists. ##
5162 ## ----------------------------------------- ##
5163 _ASBOX
5165 sed "s/^/$as_me: WARNING: /" >&2
5167 esac
5168 echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 eval "$as_ac_Header=\$ac_header_preproc"
5175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180 cat >>confdefs.h <<_ACEOF
5181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182 _ACEOF
5186 done
5189 # -----------
5190 # Miscellanea
5191 # -----------
5193 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5194 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5195 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5196 echo "$as_me:$LINENO: result: $target_thread_file" >&5
5197 echo "${ECHO_T}$target_thread_file" >&6
5199 if test $target_thread_file != single; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_GTHR_DEFAULT 1
5203 _ACEOF
5208 echo "$as_me:$LINENO: checking for exception model to use" >&5
5209 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5217 if test "${enable_sjlj_exceptions+set}" = set; then
5218 enableval="$enable_sjlj_exceptions"
5220 else
5221 cat > conftest.$ac_ext << EOF
5222 #line 5222 "configure"
5223 @interface Frob
5224 @end
5225 @implementation Frob
5226 @end
5227 int proc();
5228 int foo()
5230 @try {
5231 return proc();
5233 @catch (Frob* ex) {
5234 return 0;
5238 old_CFLAGS="$CFLAGS"
5239 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then
5245 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5246 enable_sjlj_exceptions=yes
5247 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5248 enable_sjlj_exceptions=no
5251 CFLAGS="$old_CFLAGS"
5252 rm -f conftest*
5254 if test x$enable_sjlj_exceptions = xyes; then
5256 cat >>confdefs.h <<\_ACEOF
5257 #define SJLJ_EXCEPTIONS 1
5258 _ACEOF
5260 ac_exception_model_name=sjlj
5261 elif test x$enable_sjlj_exceptions = xno; then
5262 ac_exception_model_name="call frame"
5263 else
5264 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5265 echo "$as_me: error: unable to detect exception model" >&2;}
5266 { (exit 1); exit 1; }; }
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5275 echo "${ECHO_T}$ac_exception_model_name" >&6
5277 # ------
5278 # Output
5279 # ------
5281 ac_config_files="$ac_config_files Makefile"
5284 ac_config_commands="$ac_config_commands default"
5287 cat >confcache <<\_ACEOF
5288 # This file is a shell script that caches the results of configure
5289 # tests run on this system so they can be shared between configure
5290 # scripts and configure runs, see configure's option --config-cache.
5291 # It is not useful on other systems. If it contains results you don't
5292 # want to keep, you may remove or edit it.
5294 # config.status only pays attention to the cache file if you give it
5295 # the --recheck option to rerun configure.
5297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5299 # following values.
5301 _ACEOF
5303 # The following way of writing the cache mishandles newlines in values,
5304 # but we know of no workaround that is simple, portable, and efficient.
5305 # So, don't put newlines in cache variables' values.
5306 # Ultrix sh set writes to stderr and can't be redirected directly,
5307 # and sets the high bit in the cache file unless we assign to the vars.
5309 (set) 2>&1 |
5310 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5311 *ac_space=\ *)
5312 # `set' does not quote correctly, so add quotes (double-quote
5313 # substitution turns \\\\ into \\, and sed turns \\ into \).
5314 sed -n \
5315 "s/'/'\\\\''/g;
5316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5319 # `set' quotes correctly as required by POSIX, so do not add quotes.
5320 sed -n \
5321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5323 esac;
5325 sed '
5326 t clear
5327 : clear
5328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5329 t end
5330 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5331 : end' >>confcache
5332 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5333 if test -w $cache_file; then
5334 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5335 cat confcache >$cache_file
5336 else
5337 echo "not updating unwritable cache $cache_file"
5340 rm -f confcache
5342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5343 # Let make expand exec_prefix.
5344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5348 # trailing colons and then remove the whole line if VPATH becomes empty
5349 # (actually we leave an empty line to preserve line numbers).
5350 if test "x$srcdir" = x.; then
5351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5352 s/:*\$(srcdir):*/:/;
5353 s/:*\${srcdir}:*/:/;
5354 s/:*@srcdir@:*/:/;
5355 s/^\([^=]*=[ ]*\):*/\1/;
5356 s/:*$//;
5357 s/^[^=]*=[ ]*$//;
5361 DEFS=-DHAVE_CONFIG_H
5363 ac_libobjs=
5364 ac_ltlibobjs=
5365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5366 # 1. Remove the extension, and $U if already installed.
5367 ac_i=`echo "$ac_i" |
5368 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5369 # 2. Add them.
5370 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5371 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5372 done
5373 LIBOBJS=$ac_libobjs
5375 LTLIBOBJS=$ac_ltlibobjs
5378 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5379 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5380 Usually this means the macro was only invoked conditionally." >&5
5381 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5382 Usually this means the macro was only invoked conditionally." >&2;}
5383 { (exit 1); exit 1; }; }
5386 : ${CONFIG_STATUS=./config.status}
5387 ac_clean_files_save=$ac_clean_files
5388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5391 cat >$CONFIG_STATUS <<_ACEOF
5392 #! $SHELL
5393 # Generated by $as_me.
5394 # Run this file to recreate the current configuration.
5395 # Compiler output produced by configure, useful for debugging
5396 # configure, is in config.log if it exists.
5398 debug=false
5399 ac_cs_recheck=false
5400 ac_cs_silent=false
5401 SHELL=\${CONFIG_SHELL-$SHELL}
5402 _ACEOF
5404 cat >>$CONFIG_STATUS <<\_ACEOF
5405 ## --------------------- ##
5406 ## M4sh Initialization. ##
5407 ## --------------------- ##
5409 # Be Bourne compatible
5410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5411 emulate sh
5412 NULLCMD=:
5413 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5414 # is contrary to our usage. Disable this feature.
5415 alias -g '${1+"$@"}'='"$@"'
5416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5417 set -o posix
5419 DUALCASE=1; export DUALCASE # for MKS sh
5421 # Support unset when possible.
5422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5423 as_unset=unset
5424 else
5425 as_unset=false
5429 # Work around bugs in pre-3.0 UWIN ksh.
5430 $as_unset ENV MAIL MAILPATH
5431 PS1='$ '
5432 PS2='> '
5433 PS4='+ '
5435 # NLS nuisances.
5436 for as_var in \
5437 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5438 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5439 LC_TELEPHONE LC_TIME
5441 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5442 eval $as_var=C; export $as_var
5443 else
5444 $as_unset $as_var
5446 done
5448 # Required to use basename.
5449 if expr a : '\(a\)' >/dev/null 2>&1; then
5450 as_expr=expr
5451 else
5452 as_expr=false
5455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5456 as_basename=basename
5457 else
5458 as_basename=false
5462 # Name of the executable.
5463 as_me=`$as_basename "$0" ||
5464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5465 X"$0" : 'X\(//\)$' \| \
5466 X"$0" : 'X\(/\)$' \| \
5467 . : '\(.\)' 2>/dev/null ||
5468 echo X/"$0" |
5469 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5470 /^X\/\(\/\/\)$/{ s//\1/; q; }
5471 /^X\/\(\/\).*/{ s//\1/; q; }
5472 s/.*/./; q'`
5475 # PATH needs CR, and LINENO needs CR and PATH.
5476 # Avoid depending upon Character Ranges.
5477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5480 as_cr_digits='0123456789'
5481 as_cr_alnum=$as_cr_Letters$as_cr_digits
5483 # The user is always right.
5484 if test "${PATH_SEPARATOR+set}" != set; then
5485 echo "#! /bin/sh" >conf$$.sh
5486 echo "exit 0" >>conf$$.sh
5487 chmod +x conf$$.sh
5488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5489 PATH_SEPARATOR=';'
5490 else
5491 PATH_SEPARATOR=:
5493 rm -f conf$$.sh
5497 as_lineno_1=$LINENO
5498 as_lineno_2=$LINENO
5499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5500 test "x$as_lineno_1" != "x$as_lineno_2" &&
5501 test "x$as_lineno_3" = "x$as_lineno_2" || {
5502 # Find who we are. Look in the path if we contain no path at all
5503 # relative or not.
5504 case $0 in
5505 *[\\/]* ) as_myself=$0 ;;
5506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5512 done
5515 esac
5516 # We did not find ourselves, most probably we were run as `sh COMMAND'
5517 # in which case we are not to be found in the path.
5518 if test "x$as_myself" = x; then
5519 as_myself=$0
5521 if test ! -f "$as_myself"; then
5522 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5524 { (exit 1); exit 1; }; }
5526 case $CONFIG_SHELL in
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for as_base in sh bash ksh sh5; do
5534 case $as_dir in
5536 if ("$as_dir/$as_base" -c '
5537 as_lineno_1=$LINENO
5538 as_lineno_2=$LINENO
5539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5540 test "x$as_lineno_1" != "x$as_lineno_2" &&
5541 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5542 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5543 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5544 CONFIG_SHELL=$as_dir/$as_base
5545 export CONFIG_SHELL
5546 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5547 fi;;
5548 esac
5549 done
5550 done
5552 esac
5554 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5555 # uniformly replaced by the line number. The first 'sed' inserts a
5556 # line-number line before each line; the second 'sed' does the real
5557 # work. The second script uses 'N' to pair each line-number line
5558 # with the numbered line, and appends trailing '-' during
5559 # substitution so that $LINENO is not a special case at line end.
5560 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5561 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5562 sed '=' <$as_myself |
5563 sed '
5565 s,$,-,
5566 : loop
5567 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5568 t loop
5569 s,-$,,
5570 s,^['$as_cr_digits']*\n,,
5571 ' >$as_me.lineno &&
5572 chmod +x $as_me.lineno ||
5573 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5575 { (exit 1); exit 1; }; }
5577 # Don't try to exec as it changes $[0], causing all sort of problems
5578 # (the dirname of $[0] is not the place where we might find the
5579 # original and so on. Autoconf is especially sensible to this).
5580 . ./$as_me.lineno
5581 # Exit status is that of the last command.
5582 exit
5586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5587 *c*,-n*) ECHO_N= ECHO_C='
5588 ' ECHO_T=' ' ;;
5589 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5590 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5591 esac
5593 if expr a : '\(a\)' >/dev/null 2>&1; then
5594 as_expr=expr
5595 else
5596 as_expr=false
5599 rm -f conf$$ conf$$.exe conf$$.file
5600 echo >conf$$.file
5601 if ln -s conf$$.file conf$$ 2>/dev/null; then
5602 # We could just check for DJGPP; but this test a) works b) is more generic
5603 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5604 if test -f conf$$.exe; then
5605 # Don't use ln at all; we don't have any links
5606 as_ln_s='cp -p'
5607 else
5608 as_ln_s='ln -s'
5610 elif ln conf$$.file conf$$ 2>/dev/null; then
5611 as_ln_s=ln
5612 else
5613 as_ln_s='cp -p'
5615 rm -f conf$$ conf$$.exe conf$$.file
5617 if mkdir -p . 2>/dev/null; then
5618 as_mkdir_p=:
5619 else
5620 test -d ./-p && rmdir ./-p
5621 as_mkdir_p=false
5624 as_executable_p="test -f"
5626 # Sed expression to map a string onto a valid CPP name.
5627 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5629 # Sed expression to map a string onto a valid variable name.
5630 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5633 # IFS
5634 # We need space, tab and new line, in precisely that order.
5635 as_nl='
5637 IFS=" $as_nl"
5639 # CDPATH.
5640 $as_unset CDPATH
5642 exec 6>&1
5644 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5645 # report actual input values of CONFIG_FILES etc. instead of their
5646 # values after options handling. Logging --version etc. is OK.
5647 exec 5>>config.log
5649 echo
5650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5651 ## Running $as_me. ##
5652 _ASBOX
5653 } >&5
5654 cat >&5 <<_CSEOF
5656 This file was extended by package-unused $as_me version-unused, which was
5657 generated by GNU Autoconf 2.59. Invocation command line was
5659 CONFIG_FILES = $CONFIG_FILES
5660 CONFIG_HEADERS = $CONFIG_HEADERS
5661 CONFIG_LINKS = $CONFIG_LINKS
5662 CONFIG_COMMANDS = $CONFIG_COMMANDS
5663 $ $0 $@
5665 _CSEOF
5666 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5667 echo >&5
5668 _ACEOF
5670 # Files that config.status was made for.
5671 if test -n "$ac_config_files"; then
5672 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5675 if test -n "$ac_config_headers"; then
5676 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5679 if test -n "$ac_config_links"; then
5680 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5683 if test -n "$ac_config_commands"; then
5684 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5687 cat >>$CONFIG_STATUS <<\_ACEOF
5689 ac_cs_usage="\
5690 \`$as_me' instantiates files from templates according to the
5691 current configuration.
5693 Usage: $0 [OPTIONS] [FILE]...
5695 -h, --help print this help, then exit
5696 -V, --version print version number, then exit
5697 -q, --quiet do not print progress messages
5698 -d, --debug don't remove temporary files
5699 --recheck update $as_me by reconfiguring in the same conditions
5700 --file=FILE[:TEMPLATE]
5701 instantiate the configuration file FILE
5702 --header=FILE[:TEMPLATE]
5703 instantiate the configuration header FILE
5705 Configuration files:
5706 $config_files
5708 Configuration headers:
5709 $config_headers
5711 Configuration commands:
5712 $config_commands
5714 Report bugs to <bug-autoconf@gnu.org>."
5715 _ACEOF
5717 cat >>$CONFIG_STATUS <<_ACEOF
5718 ac_cs_version="\\
5719 package-unused config.status version-unused
5720 configured by $0, generated by GNU Autoconf 2.59,
5721 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5723 Copyright (C) 2003 Free Software Foundation, Inc.
5724 This config.status script is free software; the Free Software Foundation
5725 gives unlimited permission to copy, distribute and modify it."
5726 srcdir=$srcdir
5727 INSTALL="$INSTALL"
5728 _ACEOF
5730 cat >>$CONFIG_STATUS <<\_ACEOF
5731 # If no file are specified by the user, then we need to provide default
5732 # value. By we need to know if files were specified by the user.
5733 ac_need_defaults=:
5734 while test $# != 0
5736 case $1 in
5737 --*=*)
5738 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5739 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5740 ac_shift=:
5743 ac_option=$1
5744 ac_optarg=$2
5745 ac_shift=shift
5747 *) # This is not an option, so the user has probably given explicit
5748 # arguments.
5749 ac_option=$1
5750 ac_need_defaults=false;;
5751 esac
5753 case $ac_option in
5754 # Handling of the options.
5755 _ACEOF
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5758 ac_cs_recheck=: ;;
5759 --version | --vers* | -V )
5760 echo "$ac_cs_version"; exit 0 ;;
5761 --he | --h)
5762 # Conflict between --help and --header
5763 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5764 Try \`$0 --help' for more information." >&5
5765 echo "$as_me: error: ambiguous option: $1
5766 Try \`$0 --help' for more information." >&2;}
5767 { (exit 1); exit 1; }; };;
5768 --help | --hel | -h )
5769 echo "$ac_cs_usage"; exit 0 ;;
5770 --debug | --d* | -d )
5771 debug=: ;;
5772 --file | --fil | --fi | --f )
5773 $ac_shift
5774 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5775 ac_need_defaults=false;;
5776 --header | --heade | --head | --hea )
5777 $ac_shift
5778 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5779 ac_need_defaults=false;;
5780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5782 ac_cs_silent=: ;;
5784 # This is an error.
5785 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5786 Try \`$0 --help' for more information." >&5
5787 echo "$as_me: error: unrecognized option: $1
5788 Try \`$0 --help' for more information." >&2;}
5789 { (exit 1); exit 1; }; } ;;
5791 *) ac_config_targets="$ac_config_targets $1" ;;
5793 esac
5794 shift
5795 done
5797 ac_configure_extra_args=
5799 if $ac_cs_silent; then
5800 exec 6>/dev/null
5801 ac_configure_extra_args="$ac_configure_extra_args --silent"
5804 _ACEOF
5805 cat >>$CONFIG_STATUS <<_ACEOF
5806 if \$ac_cs_recheck; then
5807 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5808 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5811 _ACEOF
5813 cat >>$CONFIG_STATUS <<_ACEOF
5815 # INIT-COMMANDS section.
5818 srcdir=${srcdir}
5819 host=${host}
5820 target=${target}
5821 with_target_subdir=${with_target_subdir}
5822 with_multisubdir=${with_multisubdir}
5823 ac_configure_args="--enable-multilib ${ac_configure_args}"
5824 toplevel_srcdir=${toplevel_srcdir}
5825 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5826 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5829 _ACEOF
5833 cat >>$CONFIG_STATUS <<\_ACEOF
5834 for ac_config_target in $ac_config_targets
5836 case "$ac_config_target" in
5837 # Handling of arguments.
5838 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5839 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5840 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5843 { (exit 1); exit 1; }; };;
5844 esac
5845 done
5847 # If the user did not use the arguments to specify the items to instantiate,
5848 # then the envvar interface is used. Set only those that are not.
5849 # We use the long form for the default assignment because of an extremely
5850 # bizarre bug on SunOS 4.1.3.
5851 if $ac_need_defaults; then
5852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5857 # Have a temporary directory for convenience. Make it in the build tree
5858 # simply because there is no reason to put it here, and in addition,
5859 # creating and moving files from /tmp can sometimes cause problems.
5860 # Create a temporary directory, and hook for its removal unless debugging.
5861 $debug ||
5863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5864 trap '{ (exit 1); exit 1; }' 1 2 13 15
5867 # Create a (secure) tmp directory for tmp files.
5870 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5871 test -n "$tmp" && test -d "$tmp"
5872 } ||
5874 tmp=./confstat$$-$RANDOM
5875 (umask 077 && mkdir $tmp)
5876 } ||
5878 echo "$me: cannot create a temporary directory in ." >&2
5879 { (exit 1); exit 1; }
5882 _ACEOF
5884 cat >>$CONFIG_STATUS <<_ACEOF
5887 # CONFIG_FILES section.
5890 # No need to generate the scripts if there are no CONFIG_FILES.
5891 # This happens for instance when ./config.status config.h
5892 if test -n "\$CONFIG_FILES"; then
5893 # Protect against being on the right side of a sed subst in config.status.
5894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5896 s,@SHELL@,$SHELL,;t t
5897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5903 s,@exec_prefix@,$exec_prefix,;t t
5904 s,@prefix@,$prefix,;t t
5905 s,@program_transform_name@,$program_transform_name,;t t
5906 s,@bindir@,$bindir,;t t
5907 s,@sbindir@,$sbindir,;t t
5908 s,@libexecdir@,$libexecdir,;t t
5909 s,@datadir@,$datadir,;t t
5910 s,@sysconfdir@,$sysconfdir,;t t
5911 s,@sharedstatedir@,$sharedstatedir,;t t
5912 s,@localstatedir@,$localstatedir,;t t
5913 s,@libdir@,$libdir,;t t
5914 s,@includedir@,$includedir,;t t
5915 s,@oldincludedir@,$oldincludedir,;t t
5916 s,@infodir@,$infodir,;t t
5917 s,@mandir@,$mandir,;t t
5918 s,@build_alias@,$build_alias,;t t
5919 s,@host_alias@,$host_alias,;t t
5920 s,@target_alias@,$target_alias,;t t
5921 s,@DEFS@,$DEFS,;t t
5922 s,@ECHO_C@,$ECHO_C,;t t
5923 s,@ECHO_N@,$ECHO_N,;t t
5924 s,@ECHO_T@,$ECHO_T,;t t
5925 s,@LIBS@,$LIBS,;t t
5926 s,@build@,$build,;t t
5927 s,@build_cpu@,$build_cpu,;t t
5928 s,@build_vendor@,$build_vendor,;t t
5929 s,@build_os@,$build_os,;t t
5930 s,@build_libsubdir@,$build_libsubdir,;t t
5931 s,@build_subdir@,$build_subdir,;t t
5932 s,@host_subdir@,$host_subdir,;t t
5933 s,@target_subdir@,$target_subdir,;t t
5934 s,@VERSION@,$VERSION,;t t
5935 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5936 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
5937 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5938 s,@host@,$host,;t t
5939 s,@host_cpu@,$host_cpu,;t t
5940 s,@host_vendor@,$host_vendor,;t t
5941 s,@host_os@,$host_os,;t t
5942 s,@target@,$target,;t t
5943 s,@target_cpu@,$target_cpu,;t t
5944 s,@target_vendor@,$target_vendor,;t t
5945 s,@target_os@,$target_os,;t t
5946 s,@target_noncanonical@,$target_noncanonical,;t t
5947 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5948 s,@toolexecdir@,$toolexecdir,;t t
5949 s,@toolexeclibdir@,$toolexeclibdir,;t t
5950 s,@includedirname@,$includedirname,;t t
5951 s,@libext@,$libext,;t t
5952 s,@CC@,$CC,;t t
5953 s,@ac_ct_CC@,$ac_ct_CC,;t t
5954 s,@EXEEXT@,$EXEEXT,;t t
5955 s,@OBJEXT@,$OBJEXT,;t t
5956 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
5957 s,@CFLAGS@,$CFLAGS,;t t
5958 s,@AS@,$AS,;t t
5959 s,@ac_ct_AS@,$ac_ct_AS,;t t
5960 s,@AR@,$AR,;t t
5961 s,@ac_ct_AR@,$ac_ct_AR,;t t
5962 s,@RANLIB@,$RANLIB,;t t
5963 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5964 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5965 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5966 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5967 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5968 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5969 s,@MAINT@,$MAINT,;t t
5970 s,@LN_S@,$LN_S,;t t
5971 s,@STRIP@,$STRIP,;t t
5972 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5973 s,@LIBTOOL@,$LIBTOOL,;t t
5974 s,@SET_MAKE@,$SET_MAKE,;t t
5975 s,@CPP@,$CPP,;t t
5976 s,@CPPFLAGS@,$CPPFLAGS,;t t
5977 s,@EGREP@,$EGREP,;t t
5978 s,@LIBOBJS@,$LIBOBJS,;t t
5979 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5980 CEOF
5982 _ACEOF
5984 cat >>$CONFIG_STATUS <<\_ACEOF
5985 # Split the substitutions into bite-sized pieces for seds with
5986 # small command number limits, like on Digital OSF/1 and HP-UX.
5987 ac_max_sed_lines=48
5988 ac_sed_frag=1 # Number of current file.
5989 ac_beg=1 # First line for current file.
5990 ac_end=$ac_max_sed_lines # Line after last line for current file.
5991 ac_more_lines=:
5992 ac_sed_cmds=
5993 while $ac_more_lines; do
5994 if test $ac_beg -gt 1; then
5995 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5996 else
5997 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5999 if test ! -s $tmp/subs.frag; then
6000 ac_more_lines=false
6001 else
6002 # The purpose of the label and of the branching condition is to
6003 # speed up the sed processing (if there are no `@' at all, there
6004 # is no need to browse any of the substitutions).
6005 # These are the two extra sed commands mentioned above.
6006 (echo ':t
6007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6008 if test -z "$ac_sed_cmds"; then
6009 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6010 else
6011 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6013 ac_sed_frag=`expr $ac_sed_frag + 1`
6014 ac_beg=$ac_end
6015 ac_end=`expr $ac_end + $ac_max_sed_lines`
6017 done
6018 if test -z "$ac_sed_cmds"; then
6019 ac_sed_cmds=cat
6021 fi # test -n "$CONFIG_FILES"
6023 _ACEOF
6024 cat >>$CONFIG_STATUS <<\_ACEOF
6025 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6027 case $ac_file in
6028 - | *:- | *:-:* ) # input from stdin
6029 cat >$tmp/stdin
6030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6034 * ) ac_file_in=$ac_file.in ;;
6035 esac
6037 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6038 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6040 X"$ac_file" : 'X\(//\)[^/]' \| \
6041 X"$ac_file" : 'X\(//\)$' \| \
6042 X"$ac_file" : 'X\(/\)' \| \
6043 . : '\(.\)' 2>/dev/null ||
6044 echo X"$ac_file" |
6045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6047 /^X\(\/\/\)$/{ s//\1/; q; }
6048 /^X\(\/\).*/{ s//\1/; q; }
6049 s/.*/./; q'`
6050 { if $as_mkdir_p; then
6051 mkdir -p "$ac_dir"
6052 else
6053 as_dir="$ac_dir"
6054 as_dirs=
6055 while test ! -d "$as_dir"; do
6056 as_dirs="$as_dir $as_dirs"
6057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6059 X"$as_dir" : 'X\(//\)[^/]' \| \
6060 X"$as_dir" : 'X\(//\)$' \| \
6061 X"$as_dir" : 'X\(/\)' \| \
6062 . : '\(.\)' 2>/dev/null ||
6063 echo X"$as_dir" |
6064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6066 /^X\(\/\/\)$/{ s//\1/; q; }
6067 /^X\(\/\).*/{ s//\1/; q; }
6068 s/.*/./; q'`
6069 done
6070 test ! -n "$as_dirs" || mkdir $as_dirs
6071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6073 { (exit 1); exit 1; }; }; }
6075 ac_builddir=.
6077 if test "$ac_dir" != .; then
6078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6079 # A "../" for each directory in $ac_dir_suffix.
6080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6081 else
6082 ac_dir_suffix= ac_top_builddir=
6085 case $srcdir in
6086 .) # No --srcdir option. We are building in place.
6087 ac_srcdir=.
6088 if test -z "$ac_top_builddir"; then
6089 ac_top_srcdir=.
6090 else
6091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6092 fi ;;
6093 [\\/]* | ?:[\\/]* ) # Absolute path.
6094 ac_srcdir=$srcdir$ac_dir_suffix;
6095 ac_top_srcdir=$srcdir ;;
6096 *) # Relative path.
6097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6099 esac
6101 # Do not use `cd foo && pwd` to compute absolute paths, because
6102 # the directories may not exist.
6103 case `pwd` in
6104 .) ac_abs_builddir="$ac_dir";;
6106 case "$ac_dir" in
6107 .) ac_abs_builddir=`pwd`;;
6108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6110 esac;;
6111 esac
6112 case $ac_abs_builddir in
6113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6115 case ${ac_top_builddir}. in
6116 .) ac_abs_top_builddir=$ac_abs_builddir;;
6117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6119 esac;;
6120 esac
6121 case $ac_abs_builddir in
6122 .) ac_abs_srcdir=$ac_srcdir;;
6124 case $ac_srcdir in
6125 .) ac_abs_srcdir=$ac_abs_builddir;;
6126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6128 esac;;
6129 esac
6130 case $ac_abs_builddir in
6131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6133 case $ac_top_srcdir in
6134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6137 esac;;
6138 esac
6141 case $INSTALL in
6142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6143 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6144 esac
6146 if test x"$ac_file" != x-; then
6147 { echo "$as_me:$LINENO: creating $ac_file" >&5
6148 echo "$as_me: creating $ac_file" >&6;}
6149 rm -f "$ac_file"
6151 # Let's still pretend it is `configure' which instantiates (i.e., don't
6152 # use $as_me), people would be surprised to read:
6153 # /* config.h. Generated by config.status. */
6154 if test x"$ac_file" = x-; then
6155 configure_input=
6156 else
6157 configure_input="$ac_file. "
6159 configure_input=$configure_input"Generated from `echo $ac_file_in |
6160 sed 's,.*/,,'` by configure."
6162 # First look for the input files in the build tree, otherwise in the
6163 # src tree.
6164 ac_file_inputs=`IFS=:
6165 for f in $ac_file_in; do
6166 case $f in
6167 -) echo $tmp/stdin ;;
6168 [\\/$]*)
6169 # Absolute (can't be DOS-style, as IFS=:)
6170 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6171 echo "$as_me: error: cannot find input file: $f" >&2;}
6172 { (exit 1); exit 1; }; }
6173 echo "$f";;
6174 *) # Relative
6175 if test -f "$f"; then
6176 # Build tree
6177 echo "$f"
6178 elif test -f "$srcdir/$f"; then
6179 # Source tree
6180 echo "$srcdir/$f"
6181 else
6182 # /dev/null tree
6183 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6184 echo "$as_me: error: cannot find input file: $f" >&2;}
6185 { (exit 1); exit 1; }; }
6186 fi;;
6187 esac
6188 done` || { (exit 1); exit 1; }
6189 _ACEOF
6190 cat >>$CONFIG_STATUS <<_ACEOF
6191 sed "$ac_vpsub
6192 $extrasub
6193 _ACEOF
6194 cat >>$CONFIG_STATUS <<\_ACEOF
6196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6197 s,@configure_input@,$configure_input,;t t
6198 s,@srcdir@,$ac_srcdir,;t t
6199 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6200 s,@top_srcdir@,$ac_top_srcdir,;t t
6201 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6202 s,@builddir@,$ac_builddir,;t t
6203 s,@abs_builddir@,$ac_abs_builddir,;t t
6204 s,@top_builddir@,$ac_top_builddir,;t t
6205 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6206 s,@INSTALL@,$ac_INSTALL,;t t
6207 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6208 rm -f $tmp/stdin
6209 if test x"$ac_file" != x-; then
6210 mv $tmp/out $ac_file
6211 else
6212 cat $tmp/out
6213 rm -f $tmp/out
6216 done
6217 _ACEOF
6218 cat >>$CONFIG_STATUS <<\_ACEOF
6221 # CONFIG_HEADER section.
6224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6227 # ac_d sets the value in "#define NAME VALUE" lines.
6228 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6229 ac_dB='[ ].*$,\1#\2'
6230 ac_dC=' '
6231 ac_dD=',;t'
6232 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6233 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6234 ac_uB='$,\1#\2define\3'
6235 ac_uC=' '
6236 ac_uD=',;t'
6238 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6240 case $ac_file in
6241 - | *:- | *:-:* ) # input from stdin
6242 cat >$tmp/stdin
6243 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6245 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6247 * ) ac_file_in=$ac_file.in ;;
6248 esac
6250 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6251 echo "$as_me: creating $ac_file" >&6;}
6253 # First look for the input files in the build tree, otherwise in the
6254 # src tree.
6255 ac_file_inputs=`IFS=:
6256 for f in $ac_file_in; do
6257 case $f in
6258 -) echo $tmp/stdin ;;
6259 [\\/$]*)
6260 # Absolute (can't be DOS-style, as IFS=:)
6261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6262 echo "$as_me: error: cannot find input file: $f" >&2;}
6263 { (exit 1); exit 1; }; }
6264 # Do quote $f, to prevent DOS paths from being IFS'd.
6265 echo "$f";;
6266 *) # Relative
6267 if test -f "$f"; then
6268 # Build tree
6269 echo "$f"
6270 elif test -f "$srcdir/$f"; then
6271 # Source tree
6272 echo "$srcdir/$f"
6273 else
6274 # /dev/null tree
6275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6276 echo "$as_me: error: cannot find input file: $f" >&2;}
6277 { (exit 1); exit 1; }; }
6278 fi;;
6279 esac
6280 done` || { (exit 1); exit 1; }
6281 # Remove the trailing spaces.
6282 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6284 _ACEOF
6286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6287 # `conftest.undefs', that substitutes the proper values into
6288 # config.h.in to produce config.h. The first handles `#define'
6289 # templates, and the second `#undef' templates.
6290 # And first: Protect against being on the right side of a sed subst in
6291 # config.status. Protect against being in an unquoted here document
6292 # in config.status.
6293 rm -f conftest.defines conftest.undefs
6294 # Using a here document instead of a string reduces the quoting nightmare.
6295 # Putting comments in sed scripts is not portable.
6297 # `end' is used to avoid that the second main sed command (meant for
6298 # 0-ary CPP macros) applies to n-ary macro definitions.
6299 # See the Autoconf documentation for `clear'.
6300 cat >confdef2sed.sed <<\_ACEOF
6301 s/[\\&,]/\\&/g
6302 s,[\\$`],\\&,g
6303 t clear
6304 : clear
6305 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6306 t end
6307 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6308 : end
6309 _ACEOF
6310 # If some macros were called several times there might be several times
6311 # the same #defines, which is useless. Nevertheless, we may not want to
6312 # sort them, since we want the *last* AC-DEFINE to be honored.
6313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6315 rm -f confdef2sed.sed
6317 # This sed command replaces #undef with comments. This is necessary, for
6318 # example, in the case of _POSIX_SOURCE, which is predefined and required
6319 # on some systems where configure will not decide to define it.
6320 cat >>conftest.undefs <<\_ACEOF
6321 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6322 _ACEOF
6324 # Break up conftest.defines because some shells have a limit on the size
6325 # of here documents, and old seds have small limits too (100 cmds).
6326 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6327 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6328 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6329 echo ' :' >>$CONFIG_STATUS
6330 rm -f conftest.tail
6331 while grep . conftest.defines >/dev/null
6333 # Write a limited-size here document to $tmp/defines.sed.
6334 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6335 # Speed up: don't consider the non `#define' lines.
6336 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6337 # Work around the forget-to-reset-the-flag bug.
6338 echo 't clr' >>$CONFIG_STATUS
6339 echo ': clr' >>$CONFIG_STATUS
6340 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6341 echo 'CEOF
6342 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6343 rm -f $tmp/in
6344 mv $tmp/out $tmp/in
6345 ' >>$CONFIG_STATUS
6346 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6347 rm -f conftest.defines
6348 mv conftest.tail conftest.defines
6349 done
6350 rm -f conftest.defines
6351 echo ' fi # grep' >>$CONFIG_STATUS
6352 echo >>$CONFIG_STATUS
6354 # Break up conftest.undefs because some shells have a limit on the size
6355 # of here documents, and old seds have small limits too (100 cmds).
6356 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6357 rm -f conftest.tail
6358 while grep . conftest.undefs >/dev/null
6360 # Write a limited-size here document to $tmp/undefs.sed.
6361 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6362 # Speed up: don't consider the non `#undef'
6363 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6364 # Work around the forget-to-reset-the-flag bug.
6365 echo 't clr' >>$CONFIG_STATUS
6366 echo ': clr' >>$CONFIG_STATUS
6367 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6368 echo 'CEOF
6369 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6370 rm -f $tmp/in
6371 mv $tmp/out $tmp/in
6372 ' >>$CONFIG_STATUS
6373 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6374 rm -f conftest.undefs
6375 mv conftest.tail conftest.undefs
6376 done
6377 rm -f conftest.undefs
6379 cat >>$CONFIG_STATUS <<\_ACEOF
6380 # Let's still pretend it is `configure' which instantiates (i.e., don't
6381 # use $as_me), people would be surprised to read:
6382 # /* config.h. Generated by config.status. */
6383 if test x"$ac_file" = x-; then
6384 echo "/* Generated by configure. */" >$tmp/config.h
6385 else
6386 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6388 cat $tmp/in >>$tmp/config.h
6389 rm -f $tmp/in
6390 if test x"$ac_file" != x-; then
6391 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6393 echo "$as_me: $ac_file is unchanged" >&6;}
6394 else
6395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6397 X"$ac_file" : 'X\(//\)[^/]' \| \
6398 X"$ac_file" : 'X\(//\)$' \| \
6399 X"$ac_file" : 'X\(/\)' \| \
6400 . : '\(.\)' 2>/dev/null ||
6401 echo X"$ac_file" |
6402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6404 /^X\(\/\/\)$/{ s//\1/; q; }
6405 /^X\(\/\).*/{ s//\1/; q; }
6406 s/.*/./; q'`
6407 { if $as_mkdir_p; then
6408 mkdir -p "$ac_dir"
6409 else
6410 as_dir="$ac_dir"
6411 as_dirs=
6412 while test ! -d "$as_dir"; do
6413 as_dirs="$as_dir $as_dirs"
6414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6416 X"$as_dir" : 'X\(//\)[^/]' \| \
6417 X"$as_dir" : 'X\(//\)$' \| \
6418 X"$as_dir" : 'X\(/\)' \| \
6419 . : '\(.\)' 2>/dev/null ||
6420 echo X"$as_dir" |
6421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6423 /^X\(\/\/\)$/{ s//\1/; q; }
6424 /^X\(\/\).*/{ s//\1/; q; }
6425 s/.*/./; q'`
6426 done
6427 test ! -n "$as_dirs" || mkdir $as_dirs
6428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6430 { (exit 1); exit 1; }; }; }
6432 rm -f $ac_file
6433 mv $tmp/config.h $ac_file
6435 else
6436 cat $tmp/config.h
6437 rm -f $tmp/config.h
6439 done
6440 _ACEOF
6441 cat >>$CONFIG_STATUS <<\_ACEOF
6444 # CONFIG_COMMANDS section.
6446 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6447 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6448 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6449 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6450 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6451 X"$ac_dest" : 'X\(//\)[^/]' \| \
6452 X"$ac_dest" : 'X\(//\)$' \| \
6453 X"$ac_dest" : 'X\(/\)' \| \
6454 . : '\(.\)' 2>/dev/null ||
6455 echo X"$ac_dest" |
6456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6458 /^X\(\/\/\)$/{ s//\1/; q; }
6459 /^X\(\/\).*/{ s//\1/; q; }
6460 s/.*/./; q'`
6461 { if $as_mkdir_p; then
6462 mkdir -p "$ac_dir"
6463 else
6464 as_dir="$ac_dir"
6465 as_dirs=
6466 while test ! -d "$as_dir"; do
6467 as_dirs="$as_dir $as_dirs"
6468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6470 X"$as_dir" : 'X\(//\)[^/]' \| \
6471 X"$as_dir" : 'X\(//\)$' \| \
6472 X"$as_dir" : 'X\(/\)' \| \
6473 . : '\(.\)' 2>/dev/null ||
6474 echo X"$as_dir" |
6475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6477 /^X\(\/\/\)$/{ s//\1/; q; }
6478 /^X\(\/\).*/{ s//\1/; q; }
6479 s/.*/./; q'`
6480 done
6481 test ! -n "$as_dirs" || mkdir $as_dirs
6482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6484 { (exit 1); exit 1; }; }; }
6486 ac_builddir=.
6488 if test "$ac_dir" != .; then
6489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6490 # A "../" for each directory in $ac_dir_suffix.
6491 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6492 else
6493 ac_dir_suffix= ac_top_builddir=
6496 case $srcdir in
6497 .) # No --srcdir option. We are building in place.
6498 ac_srcdir=.
6499 if test -z "$ac_top_builddir"; then
6500 ac_top_srcdir=.
6501 else
6502 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6503 fi ;;
6504 [\\/]* | ?:[\\/]* ) # Absolute path.
6505 ac_srcdir=$srcdir$ac_dir_suffix;
6506 ac_top_srcdir=$srcdir ;;
6507 *) # Relative path.
6508 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6509 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6510 esac
6512 # Do not use `cd foo && pwd` to compute absolute paths, because
6513 # the directories may not exist.
6514 case `pwd` in
6515 .) ac_abs_builddir="$ac_dir";;
6517 case "$ac_dir" in
6518 .) ac_abs_builddir=`pwd`;;
6519 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6520 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6521 esac;;
6522 esac
6523 case $ac_abs_builddir in
6524 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6526 case ${ac_top_builddir}. in
6527 .) ac_abs_top_builddir=$ac_abs_builddir;;
6528 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6529 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6530 esac;;
6531 esac
6532 case $ac_abs_builddir in
6533 .) ac_abs_srcdir=$ac_srcdir;;
6535 case $ac_srcdir in
6536 .) ac_abs_srcdir=$ac_abs_builddir;;
6537 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6538 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6539 esac;;
6540 esac
6541 case $ac_abs_builddir in
6542 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6544 case $ac_top_srcdir in
6545 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6546 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6547 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6548 esac;;
6549 esac
6552 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6553 echo "$as_me: executing $ac_dest commands" >&6;}
6554 case $ac_dest in
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 . ${toplevel_srcdir}/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; }