* config/rs6000/rs6000.c (rs6000_assemble_integer): Change
[official-gcc.git] / libobjc / configure
blobb5920110a4b87ed856cf368fd08d7e890ad56ea0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
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 VERSION OBJC_BOEHM_GC toplevel_srcdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir gcc_version toolexeclibdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP EGREP GTHREAD_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-multilib build hella library versions (default)
849 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
850 --enable-objc-gc enable the use of Boehm's garbage collector with
851 the GNU Objective-C runtime.
852 --enable-shared=PKGS build shared libraries default=no
853 --enable-static=PKGS build static libraries default=yes
854 --enable-fast-install=PKGS optimize for fast installation default=yes
855 --disable-libtool-lock avoid locking (might break parallel builds)
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-target-subdir=SUBDIR
861 configuring in a subdirectory
862 --with-cross-host=HOST configuring with a cross compiler
863 --with-gnu-ld assume the C compiler uses GNU ld default=no
864 --with-pic try to use only PIC/non-PIC objects default=use both
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CPP C preprocessor
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
878 _ACEOF
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 cd "$ac_popdir"
967 done
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978 exit 0
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
988 $ $0 $@
990 _ACEOF
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 _ASUNAME
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1024 } >&5
1026 cat >&5 <<_ACEOF
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1033 _ACEOF
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1048 for ac_arg
1050 case $ac_arg in
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1064 else
1065 case $ac_arg in
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 esac
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1081 esac
1082 done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1095 echo
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 esac;
1118 echo
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 else
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1217 . "$ac_site_file"
1219 done
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1248 set,)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,set)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,);;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1316 PACKAGE=libobjc
1317 # Version is pulled out to make it a bit easier to change using sed.
1318 VERSION=1:0:0
1321 # This works around the fact that libtool configuration may change LD
1322 # for this particular configuration, but some shells, instead of
1323 # keeping the changes in LD private, export them just because LD is
1324 # exported.
1325 ORIGINAL_LD_FOR_MULTILIBS=$LD
1327 # -------
1328 # Options
1329 # -------
1331 # Default to --enable-multilib
1332 # Check whether --enable-multilib or --disable-multilib was given.
1333 if test "${enable_multilib+set}" = set; then
1334 enableval="$enable_multilib"
1335 case "${enableval}" in
1336 yes) multilib=yes ;;
1337 no) multilib=no ;;
1338 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1339 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1340 { (exit 1); exit 1; }; } ;;
1341 esac
1342 else
1343 multilib=yes
1346 # We use these options to decide which functions to include.
1348 # Check whether --with-target-subdir or --without-target-subdir was given.
1349 if test "${with_target_subdir+set}" = set; then
1350 withval="$with_target_subdir"
1354 # Check whether --with-cross-host or --without-cross-host was given.
1355 if test "${with_cross_host+set}" = set; then
1356 withval="$with_cross_host"
1360 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1361 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1362 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1363 if test "${enable_version_specific_runtime_libs+set}" = set; then
1364 enableval="$enable_version_specific_runtime_libs"
1365 case "$enableval" in
1366 yes) version_specific_libs=yes ;;
1367 no) version_specific_libs=no ;;
1368 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1369 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1370 { (exit 1); exit 1; }; };;
1371 esac
1372 else
1373 version_specific_libs=no
1375 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1376 echo "${ECHO_T}$version_specific_libs" >&6
1378 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1379 if test "${enable_objc_gc+set}" = set; then
1380 enableval="$enable_objc_gc"
1381 case $enable_objc_gc in
1382 no) OBJC_BOEHM_GC='' ;;
1383 *) OBJC_BOEHM_GC=libobjc_gc.la ;;
1384 esac
1385 else
1386 OBJC_BOEHM_GC=''
1390 # -----------
1391 # Directories
1392 # -----------
1394 # When building with srcdir == objdir, links to the source files will
1395 # be created in directories within the target_subdir. We have to
1396 # adjust toplevel_srcdir accordingly, so that configure finds
1397 # install-sh and other auxiliary files that live in the top-level
1398 # source directory.
1399 if test "${srcdir}" = "."; then
1400 if test -z "${with_target_subdir}"; then
1401 toprel=".."
1402 else
1403 if test "${with_target_subdir}" != "."; then
1404 toprel="${with_multisrctop}../.."
1405 else
1406 toprel="${with_multisrctop}.."
1409 else
1410 toprel=".."
1412 ac_aux_dir=
1413 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1414 if test -f $ac_dir/install-sh; then
1415 ac_aux_dir=$ac_dir
1416 ac_install_sh="$ac_aux_dir/install-sh -c"
1417 break
1418 elif test -f $ac_dir/install.sh; then
1419 ac_aux_dir=$ac_dir
1420 ac_install_sh="$ac_aux_dir/install.sh -c"
1421 break
1422 elif test -f $ac_dir/shtool; then
1423 ac_aux_dir=$ac_dir
1424 ac_install_sh="$ac_aux_dir/shtool install -c"
1425 break
1427 done
1428 if test -z "$ac_aux_dir"; then
1429 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1430 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1431 { (exit 1); exit 1; }; }
1433 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1434 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1435 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1437 toplevel_srcdir=\${srcdir}/$toprel
1440 # Make sure we can run config.sub.
1441 $ac_config_sub sun4 >/dev/null 2>&1 ||
1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1443 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1444 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: checking build system type" >&5
1447 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1448 if test "${ac_cv_build+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451 ac_cv_build_alias=$build_alias
1452 test -z "$ac_cv_build_alias" &&
1453 ac_cv_build_alias=`$ac_config_guess`
1454 test -z "$ac_cv_build_alias" &&
1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1456 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1457 { (exit 1); exit 1; }; }
1458 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1465 echo "${ECHO_T}$ac_cv_build" >&6
1466 build=$ac_cv_build
1467 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$as_me:$LINENO: checking host system type" >&5
1473 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1474 if test "${ac_cv_host+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 ac_cv_host_alias=$host_alias
1478 test -z "$ac_cv_host_alias" &&
1479 ac_cv_host_alias=$ac_cv_build_alias
1480 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1487 echo "${ECHO_T}$ac_cv_host" >&6
1488 host=$ac_cv_host
1489 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 echo "$as_me:$LINENO: checking target system type" >&5
1495 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1496 if test "${ac_cv_target+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 ac_cv_target_alias=$target_alias
1500 test "x$ac_cv_target_alias" = "x" &&
1501 ac_cv_target_alias=$ac_cv_host_alias
1502 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1509 echo "${ECHO_T}$ac_cv_target" >&6
1510 target=$ac_cv_target
1511 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 # The aliases save the names the user supplied, while $host etc.
1517 # will get canonicalized.
1518 test -n "$target_alias" &&
1519 test "$program_prefix$program_suffix$program_transform_name" = \
1520 NONENONEs,x,x, &&
1521 program_prefix=${target_alias}-
1522 case ${build_alias} in
1523 "") build_noncanonical=${build} ;;
1524 *) build_noncanonical=${build_alias} ;;
1525 esac
1527 case ${host_alias} in
1528 "") host_noncanonical=${build_noncanonical} ;;
1529 *) host_noncanonical=${host_alias} ;;
1530 esac
1532 case ${target_alias} in
1533 "") target_noncanonical=${host_noncanonical} ;;
1534 *) target_noncanonical=${target_alias} ;;
1535 esac
1539 # Export source directory.
1540 # These need to be absolute paths, yet at the same time need to
1541 # canonicalize only relative paths, because then amd will not unmount
1542 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1543 case $srcdir in
1544 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1545 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1546 esac
1549 # Process the option "--enable-version-specific-runtime-libs"
1550 gcc_version_trigger=${srcdir}/../gcc/version.c
1551 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1552 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1555 # Calculate toolexeclibdir
1556 case ${version_specific_libs} in
1557 yes)
1558 # Need the gcc compiler version to know where to install libraries
1559 # and header files if --enable-version-specific-runtime-libs option
1560 # is selected.
1561 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1564 if test -n "$with_cross_host" &&
1565 test x"$with_cross_host" != x"no"; then
1566 # Install a library built with a cross compiler in tooldir, not libdir.
1567 toolexeclibdir='$(toolexecdir)/lib'
1568 else
1569 toolexeclibdir='$(libdir)'
1571 multi_os_directory=`$CC -print-multi-os-directory`
1572 case $multi_os_directory in
1573 .) ;; # Avoid trailing /.
1574 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1575 esac
1577 esac
1580 # --------
1581 # Programs
1582 # --------
1585 ac_ext=c
1586 ac_cpp='$CPP $CPPFLAGS'
1587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1612 done
1613 done
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1627 if test -z "$ac_cv_prog_CC"; then
1628 ac_ct_CC=$CC
1629 # Extract the first word of "gcc", so it can be a program name with args.
1630 set dummy gcc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1650 done
1651 done
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1659 else
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 CC=$ac_ct_CC
1665 else
1666 CC="$ac_cv_prog_CC"
1669 if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672 set dummy ${ac_tool_prefix}cc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1697 CC=$ac_cv_prog_CC
1698 if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1707 if test -z "$ac_cv_prog_CC"; then
1708 ac_ct_CC=$CC
1709 # Extract the first word of "cc", so it can be a program name with args.
1710 set dummy cc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1730 done
1731 done
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 CC=$ac_ct_CC
1745 else
1746 CC="$ac_cv_prog_CC"
1750 if test -z "$CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 else
1761 ac_prog_rejected=no
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770 ac_prog_rejected=yes
1771 continue
1773 ac_cv_prog_CC="cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1777 done
1778 done
1780 if test $ac_prog_rejected = yes; then
1781 # We found a bogon in the path, so make sure we never use it.
1782 set dummy $ac_cv_prog_CC
1783 shift
1784 if test $# != 0; then
1785 # We chose a different compiler from the bogus one.
1786 # However, it has the same basename, so the bogon will be chosen
1787 # first if we set CC to just the basename; use the full file name.
1788 shift
1789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$CC"; then
1805 if test -n "$ac_tool_prefix"; then
1806 for ac_prog in cl
1808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1829 done
1830 done
1834 CC=$ac_cv_prog_CC
1835 if test -n "$CC"; then
1836 echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6
1838 else
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1843 test -n "$CC" && break
1844 done
1846 if test -z "$CC"; then
1847 ac_ct_CC=$CC
1848 for ac_prog in cl
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851 set dummy $ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$ac_ct_CC" && break
1886 done
1888 CC=$ac_ct_CC
1894 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: no acceptable C compiler found in \$PATH
1897 See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
1900 # Provide some information about the compiler.
1901 echo "$as_me:$LINENO:" \
1902 "checking for C compiler version" >&5
1903 ac_compiler=`set X $ac_compile; echo $2`
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1905 (eval $ac_compiler --version </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1910 (eval $ac_compiler -v </dev/null >&5) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1915 (eval $ac_compiler -V </dev/null >&5) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1928 main ()
1932 return 0;
1934 _ACEOF
1935 # FIXME: Cleanup?
1936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1937 (eval $ac_link) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 gcc_no_link=no
1942 else
1943 gcc_no_link=yes
1946 if test x$gcc_no_link = xyes; then
1947 # Setting cross_compile will disable run tests; it will
1948 # also disable AC_CHECK_FILE but that's generally
1949 # correct if we can't link.
1950 cross_compiling=yes
1951 EXEEXT=
1952 else
1953 cat >conftest.$ac_ext <<_ACEOF
1954 /* confdefs.h. */
1955 _ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h. */
1961 main ()
1965 return 0;
1967 _ACEOF
1968 ac_clean_files_save=$ac_clean_files
1969 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970 # Try to create an executable without -o first, disregard a.out.
1971 # It will help us diagnose broken compilers, and finding out an intuition
1972 # of exeext.
1973 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977 (eval $ac_link_default) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; then
1981 # Find the output, starting from the most likely. This scheme is
1982 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983 # resort.
1985 # Be careful to initialize this variable, since it used to be cached.
1986 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987 ac_cv_exeext=
1988 # b.out is created by i960 compilers.
1989 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1991 test -f "$ac_file" || continue
1992 case $ac_file in
1993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1995 conftest.$ac_ext )
1996 # This is the source file.
1998 [ab].out )
1999 # We found the default executable, but exeext='' is most
2000 # certainly right.
2001 break;;
2002 *.* )
2003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 # FIXME: I believe we export ac_cv_exeext for Libtool,
2005 # but it would be cool to find out if it's true. Does anybody
2006 # maintain Libtool? --akim.
2007 export ac_cv_exeext
2008 break;;
2010 break;;
2011 esac
2012 done
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018 See \`config.log' for more details." >&5
2019 echo "$as_me: error: C compiler cannot create executables
2020 See \`config.log' for more details." >&2;}
2021 { (exit 77); exit 77; }; }
2024 ac_exeext=$ac_cv_exeext
2025 echo "$as_me:$LINENO: result: $ac_file" >&5
2026 echo "${ECHO_T}$ac_file" >&6
2028 # Check the compiler produces executables we can run. If not, either
2029 # the compiler is broken, or we cross compile.
2030 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033 # If not cross compiling, check that we can run a simple program.
2034 if test "$cross_compiling" != yes; then
2035 if { ac_try='./$ac_file'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2041 cross_compiling=no
2042 else
2043 if test "$cross_compiling" = maybe; then
2044 cross_compiling=yes
2045 else
2046 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot run C compiled programs.
2050 If you meant to cross compile, use \`--host'.
2051 See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2056 echo "$as_me:$LINENO: result: yes" >&5
2057 echo "${ECHO_T}yes" >&6
2059 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060 ac_clean_files=$ac_clean_files_save
2061 # Check the compiler produces executables we can run. If not, either
2062 # the compiler is broken, or we cross compile.
2063 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066 echo "${ECHO_T}$cross_compiling" >&6
2068 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071 (eval $ac_link) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; then
2075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2077 # work properly (i.e., refer to `conftest.exe'), while it won't with
2078 # `rm'.
2079 for ac_file in conftest.exe conftest conftest.*; do
2080 test -f "$ac_file" || continue
2081 case $ac_file in
2082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084 export ac_cv_exeext
2085 break;;
2086 * ) break;;
2087 esac
2088 done
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2097 rm -f conftest$ac_cv_exeext
2098 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099 echo "${ECHO_T}$ac_cv_exeext" >&6
2101 rm -f conftest.$ac_ext
2102 EXEEXT=$ac_cv_exeext
2103 ac_exeext=$EXEEXT
2105 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2106 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2107 if test "${ac_cv_objext+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 cat >conftest.$ac_ext <<_ACEOF
2111 /* confdefs.h. */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2118 main ()
2122 return 0;
2124 _ACEOF
2125 rm -f conftest.o conftest.obj
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2132 case $ac_file in
2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2135 break;;
2136 esac
2137 done
2138 else
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2168 main ()
2170 #ifndef __GNUC__
2171 choke me
2172 #endif
2175 return 0;
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 ac_compiler_gnu=no
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212 GCC=`test $ac_compiler_gnu = yes && echo yes`
2213 ac_test_CFLAGS=${CFLAGS+set}
2214 ac_save_CFLAGS=$CFLAGS
2215 CFLAGS="-g"
2216 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h. */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2229 main ()
2233 return 0;
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 ac_cv_prog_cc_g=yes
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2262 ac_cv_prog_cc_g=no
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2268 if test "$ac_test_CFLAGS" = set; then
2269 CFLAGS=$ac_save_CFLAGS
2270 elif test $ac_cv_prog_cc_g = yes; then
2271 if test "$GCC" = yes; then
2272 CFLAGS="-g -O2"
2273 else
2274 CFLAGS="-g"
2276 else
2277 if test "$GCC" = yes; then
2278 CFLAGS="-O2"
2279 else
2280 CFLAGS=
2283 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2284 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2285 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_cv_prog_cc_stdc=no
2289 ac_save_CC=$CC
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 #include <stdarg.h>
2297 #include <stdio.h>
2298 #include <sys/types.h>
2299 #include <sys/stat.h>
2300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2301 struct buf { int x; };
2302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (p, i)
2304 char **p;
2305 int i;
2307 return p[i];
2309 static char *f (char * (*g) (char **, int), char **p, ...)
2311 char *s;
2312 va_list v;
2313 va_start (v,p);
2314 s = g (p, va_arg (v,int));
2315 va_end (v);
2316 return s;
2319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2320 function prototypes and stuff, but not '\xHH' hex character constants.
2321 These don't provoke an error unfortunately, instead are silently treated
2322 as 'x'. The following induces an error, until -std1 is added to get
2323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2324 array size at least. It's necessary to write '\x00'==0 to get something
2325 that's true only with -std1. */
2326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328 int test (int i, double x);
2329 struct s1 {int (*f) (int a);};
2330 struct s2 {int (*f) (double a);};
2331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2332 int argc;
2333 char **argv;
2335 main ()
2337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339 return 0;
2341 _ACEOF
2342 # Don't try gcc -ansi; that turns off useful extensions and
2343 # breaks some systems' header files.
2344 # AIX -qlanglvl=ansi
2345 # Ultrix and OSF/1 -std1
2346 # HP-UX 10.20 and later -Ae
2347 # HP-UX older versions -Aa -D_HPUX_SOURCE
2348 # SVR4 -Xc -D__EXTENSIONS__
2349 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351 CC="$ac_save_CC $ac_arg"
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 ac_cv_prog_cc_stdc=$ac_arg
2374 break
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext
2381 done
2382 rm -f conftest.$ac_ext conftest.$ac_objext
2383 CC=$ac_save_CC
2387 case "x$ac_cv_prog_cc_stdc" in
2388 x|xno)
2389 echo "$as_me:$LINENO: result: none needed" >&5
2390 echo "${ECHO_T}none needed" >&6 ;;
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2393 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2394 CC="$CC $ac_cv_prog_cc_stdc" ;;
2395 esac
2397 # Some people use a C++ compiler to compile C. Since we use `exit',
2398 # in C++ we need to declare it. In case someone uses the same compiler
2399 # for both compiling C and C++ we need to have the C++ compiler decide
2400 # the declaration of exit, since it's the most demanding environment.
2401 cat >conftest.$ac_ext <<_ACEOF
2402 #ifndef __cplusplus
2403 choke me
2404 #endif
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>conftest.er1
2409 ac_status=$?
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; } &&
2421 { ac_try='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 for ac_declaration in \
2428 '' \
2429 'extern "C" void std::exit (int) throw (); using std::exit;' \
2430 'extern "C" void std::exit (int); using std::exit;' \
2431 'extern "C" void exit (int) throw ();' \
2432 'extern "C" void exit (int);' \
2433 'void exit (int);'
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h. */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2441 $ac_declaration
2442 #include <stdlib.h>
2444 main ()
2446 exit (42);
2448 return 0;
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 continue
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 $ac_declaration
2488 main ()
2490 exit (42);
2492 return 0;
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 break
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 done
2524 rm -f conftest*
2525 if test -n "$ac_declaration"; then
2526 echo '#ifdef __cplusplus' >>confdefs.h
2527 echo $ac_declaration >>confdefs.h
2528 echo '#endif' >>confdefs.h
2531 else
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}as; ac_word=$2
2547 echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549 if test "${ac_cv_prog_AS+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test -n "$AS"; then
2553 ac_cv_prog_AS="$AS" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_AS="${ac_tool_prefix}as"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2566 done
2567 done
2571 AS=$ac_cv_prog_AS
2572 if test -n "$AS"; then
2573 echo "$as_me:$LINENO: result: $AS" >&5
2574 echo "${ECHO_T}$AS" >&6
2575 else
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2581 if test -z "$ac_cv_prog_AS"; then
2582 ac_ct_AS=$AS
2583 # Extract the first word of "as", so it can be a program name with args.
2584 set dummy as; ac_word=$2
2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$ac_ct_AS"; then
2591 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_ac_ct_AS="as"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2604 done
2605 done
2609 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2610 if test -n "$ac_ct_AS"; then
2611 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2612 echo "${ECHO_T}$ac_ct_AS" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2618 AS=$ac_ct_AS
2619 else
2620 AS="$ac_cv_prog_AS"
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2625 set dummy ${ac_tool_prefix}ar; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_AR+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 if test -n "$AR"; then
2632 ac_cv_prog_AR="$AR" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_AR="${ac_tool_prefix}ar"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2650 AR=$ac_cv_prog_AR
2651 if test -n "$AR"; then
2652 echo "$as_me:$LINENO: result: $AR" >&5
2653 echo "${ECHO_T}$AR" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2660 if test -z "$ac_cv_prog_AR"; then
2661 ac_ct_AR=$AR
2662 # Extract the first word of "ar", so it can be a program name with args.
2663 set dummy ar; ac_word=$2
2664 echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2666 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 if test -n "$ac_ct_AR"; then
2670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_AR="ar"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2683 done
2684 done
2688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2689 if test -n "$ac_ct_AR"; then
2690 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2691 echo "${ECHO_T}$ac_ct_AR" >&6
2692 else
2693 echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2697 AR=$ac_ct_AR
2698 else
2699 AR="$ac_cv_prog_AR"
2702 if test -n "$ac_tool_prefix"; then
2703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2705 echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707 if test "${ac_cv_prog_RANLIB+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 if test -n "$RANLIB"; then
2711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2724 done
2725 done
2729 RANLIB=$ac_cv_prog_RANLIB
2730 if test -n "$RANLIB"; then
2731 echo "$as_me:$LINENO: result: $RANLIB" >&5
2732 echo "${ECHO_T}$RANLIB" >&6
2733 else
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2739 if test -z "$ac_cv_prog_RANLIB"; then
2740 ac_ct_RANLIB=$RANLIB
2741 # Extract the first word of "ranlib", so it can be a program name with args.
2742 set dummy ranlib; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -n "$ac_ct_RANLIB"; then
2749 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_ac_ct_RANLIB="ranlib"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2762 done
2763 done
2765 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2768 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2769 if test -n "$ac_ct_RANLIB"; then
2770 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2771 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 RANLIB=$ac_ct_RANLIB
2778 else
2779 RANLIB="$ac_cv_prog_RANLIB"
2782 # Find a good install program. We prefer a C program (faster),
2783 # so one script is as good as another. But avoid the broken or
2784 # incompatible versions:
2785 # SysV /etc/install, /usr/sbin/install
2786 # SunOS /usr/etc/install
2787 # IRIX /sbin/install
2788 # AIX /bin/install
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2793 # OS/2's system install, which has a completely different semantic
2794 # ./install, which can be erroneously created by make from ./install.sh.
2795 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2797 if test -z "$INSTALL"; then
2798 if test "${ac_cv_path_install+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 # Account for people who put trailing slashes in PATH elements.
2807 case $as_dir/ in
2808 ./ | .// | /cC/* | \
2809 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2810 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2811 /usr/ucb/* ) ;;
2813 # OSF1 and SCO ODT 3.0 have their own names for install.
2814 # Don't use installbsd from OSF since it installs stuff as root
2815 # by default.
2816 for ac_prog in ginstall scoinst install; do
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2819 if test $ac_prog = install &&
2820 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821 # AIX install. It has an incompatible calling convention.
2823 elif test $ac_prog = install &&
2824 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825 # program-specific install script used by HP pwplus--don't use.
2827 else
2828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829 break 3
2832 done
2833 done
2835 esac
2836 done
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2842 else
2843 # As a last resort, use the slow shell script. We don't cache a
2844 # path for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the path is relative.
2847 INSTALL=$ac_install_sh
2850 echo "$as_me:$LINENO: result: $INSTALL" >&5
2851 echo "${ECHO_T}$INSTALL" >&6
2853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854 # It thinks the first close brace ends the variable substitution.
2855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862 # Disable shared libs by default
2863 # Check whether --enable-shared or --disable-shared was given.
2864 if test "${enable_shared+set}" = set; then
2865 enableval="$enable_shared"
2866 p=${PACKAGE-default}
2867 case $enableval in
2868 yes) enable_shared=yes ;;
2869 no) enable_shared=no ;;
2871 enable_shared=no
2872 # Look at the argument we got. We use all the common list separators.
2873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2874 for pkg in $enableval; do
2875 if test "X$pkg" = "X$p"; then
2876 enable_shared=yes
2878 done
2879 IFS="$ac_save_ifs"
2881 esac
2882 else
2883 enable_shared=no
2885 # Enable Win32 DLL on MS Windows - FIXME
2888 # Check whether --enable-static or --disable-static was given.
2889 if test "${enable_static+set}" = set; then
2890 enableval="$enable_static"
2891 p=${PACKAGE-default}
2892 case $enableval in
2893 yes) enable_static=yes ;;
2894 no) enable_static=no ;;
2896 enable_static=no
2897 # Look at the argument we got. We use all the common list separators.
2898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2899 for pkg in $enableval; do
2900 if test "X$pkg" = "X$p"; then
2901 enable_static=yes
2903 done
2904 IFS="$ac_save_ifs"
2906 esac
2907 else
2908 enable_static=yes
2910 # Check whether --enable-fast-install or --disable-fast-install was given.
2911 if test "${enable_fast_install+set}" = set; then
2912 enableval="$enable_fast_install"
2913 p=${PACKAGE-default}
2914 case $enableval in
2915 yes) enable_fast_install=yes ;;
2916 no) enable_fast_install=no ;;
2918 enable_fast_install=no
2919 # Look at the argument we got. We use all the common list separators.
2920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2921 for pkg in $enableval; do
2922 if test "X$pkg" = "X$p"; then
2923 enable_fast_install=yes
2925 done
2926 IFS="$ac_save_ifs"
2928 esac
2929 else
2930 enable_fast_install=yes
2933 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2934 if test "${with_gnu_ld+set}" = set; then
2935 withval="$with_gnu_ld"
2936 test "$withval" = no || with_gnu_ld=yes
2937 else
2938 with_gnu_ld=no
2940 ac_prog=ld
2941 if test "$GCC" = yes; then
2942 # Check if gcc -print-prog-name=ld gives a path.
2943 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2944 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2945 case $host in
2946 *-*-mingw*)
2947 # gcc leaves a trailing carriage return which upsets mingw
2948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2951 esac
2952 case $ac_prog in
2953 # Accept absolute paths.
2954 [\\/]* | [A-Za-z]:[\\/]*)
2955 re_direlt='/[^/][^/]*/\.\./'
2956 # Canonicalize the path of ld
2957 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2958 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2959 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2960 done
2961 test -z "$LD" && LD="$ac_prog"
2964 # If it fails, then pretend we aren't using GCC.
2965 ac_prog=ld
2968 # If it is relative, then search for the first ld in PATH.
2969 with_gnu_ld=unknown
2971 esac
2972 elif test "$with_gnu_ld" = yes; then
2973 echo "$as_me:$LINENO: checking for GNU ld" >&5
2974 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2975 else
2976 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2977 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2979 if test "${lt_cv_path_LD+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -z "$LD"; then
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2984 for ac_dir in $PATH; do
2985 test -z "$ac_dir" && ac_dir=.
2986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2987 lt_cv_path_LD="$ac_dir/$ac_prog"
2988 # Check to see if the program is GNU ld. I'd rather use --version,
2989 # but apparently some GNU ld's only accept -v.
2990 # Break only if it was the GNU/non-GNU ld that we prefer.
2991 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2992 test "$with_gnu_ld" != no && break
2993 else
2994 test "$with_gnu_ld" != yes && break
2997 done
2998 IFS="$ac_save_ifs"
2999 else
3000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3004 LD="$lt_cv_path_LD"
3005 if test -n "$LD"; then
3006 echo "$as_me:$LINENO: result: $LD" >&5
3007 echo "${ECHO_T}$LD" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3014 { (exit 1); exit 1; }; }
3015 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3017 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3021 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3022 lt_cv_prog_gnu_ld=yes
3023 else
3024 lt_cv_prog_gnu_ld=no
3027 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3028 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3029 with_gnu_ld=$lt_cv_prog_gnu_ld
3032 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3034 if test "${lt_cv_ld_reload_flag+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 lt_cv_ld_reload_flag='-r'
3039 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3041 reload_flag=$lt_cv_ld_reload_flag
3042 test -n "$reload_flag" && reload_flag=" $reload_flag"
3044 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3045 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3046 if test "${lt_cv_path_NM+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 if test -n "$NM"; then
3050 # Let the user override the test.
3051 lt_cv_path_NM="$NM"
3052 else
3053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3054 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3055 test -z "$ac_dir" && ac_dir=.
3056 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3057 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3058 # Check to see if the nm accepts a BSD-compat flag.
3059 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3060 # nm: unknown option "B" ignored
3061 # Tru64's nm complains that /dev/null is an invalid object file
3062 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3063 lt_cv_path_NM="$tmp_nm -B"
3064 break
3065 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3066 lt_cv_path_NM="$tmp_nm -p"
3067 break
3068 else
3069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3070 continue # so that we can try to find one that supports BSD flags
3073 done
3074 IFS="$ac_save_ifs"
3075 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3079 NM="$lt_cv_path_NM"
3080 echo "$as_me:$LINENO: result: $NM" >&5
3081 echo "${ECHO_T}$NM" >&6
3083 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3084 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3085 LN_S=$as_ln_s
3086 if test "$LN_S" = "ln -s"; then
3087 echo "$as_me:$LINENO: result: yes" >&5
3088 echo "${ECHO_T}yes" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3091 echo "${ECHO_T}no, using $LN_S" >&6
3094 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3095 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3096 if test "${lt_cv_deplibs_check_method+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 lt_cv_file_magic_cmd='$MAGIC_CMD'
3100 lt_cv_file_magic_test_file=
3101 lt_cv_deplibs_check_method='unknown'
3102 # Need to set the preceding variable on all platforms that support
3103 # interlibrary dependencies.
3104 # 'none' -- dependencies not supported.
3105 # `unknown' -- same as none, but documents that we really don't know.
3106 # 'pass_all' -- all dependencies passed with no checks.
3107 # 'test_compile' -- check by making test program.
3108 # 'file_magic [regex]' -- check by looking for files in library path
3109 # which responds to the $file_magic_cmd with a given egrep regex.
3110 # If you have `file' or equivalent on your system and you're not sure
3111 # whether `pass_all' will *always* work, you probably want this one.
3113 case $host_os in
3114 aix*)
3115 lt_cv_deplibs_check_method=pass_all
3118 beos*)
3119 lt_cv_deplibs_check_method=pass_all
3122 bsdi4*)
3123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3124 lt_cv_file_magic_cmd='/usr/bin/file -L'
3125 lt_cv_file_magic_test_file=/shlib/libc.so
3128 cygwin* | mingw* |pw32*)
3129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3130 lt_cv_file_magic_cmd='$OBJDUMP -f'
3133 darwin* | rhapsody*)
3134 # this will be overwritten by pass_all, but leave it in just in case
3135 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3136 lt_cv_file_magic_cmd='/usr/bin/file -L'
3137 case "$host_os" in
3138 rhapsody* | darwin1.012)
3139 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3141 *) # Darwin 1.3 on
3142 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3144 esac
3145 lt_cv_deplibs_check_method=pass_all
3148 freebsd* )
3149 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3150 case $host_cpu in
3151 i*86 )
3152 # Not sure whether the presence of OpenBSD here was a mistake.
3153 # Let's accept both of them until this is cleared up.
3154 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3155 lt_cv_file_magic_cmd=/usr/bin/file
3156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3158 esac
3159 else
3160 lt_cv_deplibs_check_method=pass_all
3164 gnu*)
3165 lt_cv_deplibs_check_method=pass_all
3168 hpux10.20*|hpux11*)
3169 case $host_cpu in
3170 hppa*)
3171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3172 lt_cv_file_magic_cmd=/usr/bin/file
3173 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3175 ia64*)
3176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3177 lt_cv_file_magic_cmd=/usr/bin/file
3178 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3180 esac
3183 irix5* | irix6*)
3184 case $host_os in
3185 irix5*)
3186 # this will be overridden with pass_all, but let us keep it just in case
3187 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3190 case $LD in
3191 *-32|*"-32 ") libmagic=32-bit;;
3192 *-n32|*"-n32 ") libmagic=N32;;
3193 *-64|*"-64 ") libmagic=64-bit;;
3194 *) libmagic=never-match;;
3195 esac
3196 # this will be overridden with pass_all, but let us keep it just in case
3197 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3199 esac
3200 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3201 lt_cv_deplibs_check_method=pass_all
3204 # This must be Linux ELF.
3205 linux-gnu*)
3206 case $host_cpu in
3207 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3208 lt_cv_deplibs_check_method=pass_all ;;
3210 # glibc up to 2.1.1 does not perform some relocations on ARM
3211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3212 esac
3213 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3216 netbsd*)
3217 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3218 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3219 else
3220 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3224 newsos6)
3225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3226 lt_cv_file_magic_cmd=/usr/bin/file
3227 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3230 osf3* | osf4* | osf5*)
3231 # this will be overridden with pass_all, but let us keep it just in case
3232 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3233 lt_cv_file_magic_test_file=/shlib/libc.so
3234 lt_cv_deplibs_check_method=pass_all
3237 sco3.2v5*)
3238 lt_cv_deplibs_check_method=pass_all
3241 solaris*)
3242 lt_cv_deplibs_check_method=pass_all
3243 lt_cv_file_magic_test_file=/lib/libc.so
3246 sysv5uw[78]* | sysv4*uw2*)
3247 lt_cv_deplibs_check_method=pass_all
3250 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3251 case $host_vendor in
3252 ncr)
3253 lt_cv_deplibs_check_method=pass_all
3255 motorola)
3256 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]'
3257 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3259 esac
3261 esac
3264 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3265 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3266 file_magic_cmd=$lt_cv_file_magic_cmd
3267 deplibs_check_method=$lt_cv_deplibs_check_method
3273 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3275 # Only perform the check for file, if the check method requires it
3276 case $deplibs_check_method in
3277 file_magic*)
3278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3279 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3280 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 case $MAGIC_CMD in
3286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3288 ?:/*)
3289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3292 ac_save_MAGIC_CMD="$MAGIC_CMD"
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3294 ac_dummy="/usr/bin:$PATH"
3295 for ac_dir in $ac_dummy; do
3296 test -z "$ac_dir" && ac_dir=.
3297 if test -f $ac_dir/${ac_tool_prefix}file; then
3298 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3299 if test -n "$file_magic_test_file"; then
3300 case $deplibs_check_method in
3301 "file_magic "*)
3302 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3305 egrep "$file_magic_regex" > /dev/null; then
3307 else
3308 cat <<EOF 1>&2
3310 *** Warning: the command libtool uses to detect shared libraries,
3311 *** $file_magic_cmd, produces output that libtool cannot recognize.
3312 *** The result is that libtool may fail to recognize shared libraries
3313 *** as such. This will affect the creation of libtool libraries that
3314 *** depend on shared libraries, but programs linked with such libtool
3315 *** libraries will work regardless of this problem. Nevertheless, you
3316 *** may want to report the problem to your system manager and/or to
3317 *** bug-libtool@gnu.org
3320 fi ;;
3321 esac
3323 break
3325 done
3326 IFS="$ac_save_ifs"
3327 MAGIC_CMD="$ac_save_MAGIC_CMD"
3329 esac
3332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3333 if test -n "$MAGIC_CMD"; then
3334 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3335 echo "${ECHO_T}$MAGIC_CMD" >&6
3336 else
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3341 if test -z "$lt_cv_path_MAGIC_CMD"; then
3342 if test -n "$ac_tool_prefix"; then
3343 echo "$as_me:$LINENO: checking for file" >&5
3344 echo $ECHO_N "checking for file... $ECHO_C" >&6
3345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 case $MAGIC_CMD in
3350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3352 ?:/*)
3353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3356 ac_save_MAGIC_CMD="$MAGIC_CMD"
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 ac_dummy="/usr/bin:$PATH"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/file; then
3362 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3363 if test -n "$file_magic_test_file"; then
3364 case $deplibs_check_method in
3365 "file_magic "*)
3366 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3369 egrep "$file_magic_regex" > /dev/null; then
3371 else
3372 cat <<EOF 1>&2
3374 *** Warning: the command libtool uses to detect shared libraries,
3375 *** $file_magic_cmd, produces output that libtool cannot recognize.
3376 *** The result is that libtool may fail to recognize shared libraries
3377 *** as such. This will affect the creation of libtool libraries that
3378 *** depend on shared libraries, but programs linked with such libtool
3379 *** libraries will work regardless of this problem. Nevertheless, you
3380 *** may want to report the problem to your system manager and/or to
3381 *** bug-libtool@gnu.org
3384 fi ;;
3385 esac
3387 break
3389 done
3390 IFS="$ac_save_ifs"
3391 MAGIC_CMD="$ac_save_MAGIC_CMD"
3393 esac
3396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3397 if test -n "$MAGIC_CMD"; then
3398 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3399 echo "${ECHO_T}$MAGIC_CMD" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3405 else
3406 MAGIC_CMD=:
3412 esac
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_prog_RANLIB+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 if test -n "$RANLIB"; then
3423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3441 RANLIB=$ac_cv_prog_RANLIB
3442 if test -n "$RANLIB"; then
3443 echo "$as_me:$LINENO: result: $RANLIB" >&5
3444 echo "${ECHO_T}$RANLIB" >&6
3445 else
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3451 if test -z "$ac_cv_prog_RANLIB"; then
3452 ac_ct_RANLIB=$RANLIB
3453 # Extract the first word of "ranlib", so it can be a program name with args.
3454 set dummy ranlib; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 if test -n "$ac_ct_RANLIB"; then
3461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_ac_ct_RANLIB="ranlib"
3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3477 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3481 if test -n "$ac_ct_RANLIB"; then
3482 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3483 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3484 else
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 RANLIB=$ac_ct_RANLIB
3490 else
3491 RANLIB="$ac_cv_prog_RANLIB"
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}strip; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_STRIP+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$STRIP"; then
3503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3521 STRIP=$ac_cv_prog_STRIP
3522 if test -n "$STRIP"; then
3523 echo "$as_me:$LINENO: result: $STRIP" >&5
3524 echo "${ECHO_T}$STRIP" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3531 if test -z "$ac_cv_prog_STRIP"; then
3532 ac_ct_STRIP=$STRIP
3533 # Extract the first word of "strip", so it can be a program name with args.
3534 set dummy strip; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_STRIP"; then
3541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_STRIP="strip"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3557 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3561 if test -n "$ac_ct_STRIP"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3563 echo "${ECHO_T}$ac_ct_STRIP" >&6
3564 else
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 STRIP=$ac_ct_STRIP
3570 else
3571 STRIP="$ac_cv_prog_STRIP"
3575 # Check for any special flags to pass to ltconfig.
3576 libtool_flags="--cache-file=$cache_file"
3577 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3578 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3579 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3580 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3581 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3584 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585 if test "${enable_libtool_lock+set}" = set; then
3586 enableval="$enable_libtool_lock"
3589 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3590 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3593 # Check whether --with-pic or --without-pic was given.
3594 if test "${with_pic+set}" = set; then
3595 withval="$with_pic"
3596 pic_mode="$withval"
3597 else
3598 pic_mode=default
3600 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3601 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3603 # Some flags need to be propagated to the compiler or linker for good
3604 # libtool support.
3605 case $host in
3606 *-*-irix6*)
3607 # Find out which ABI we are using.
3608 echo '#line 3608 "configure"' > conftest.$ac_ext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; then
3614 if test "$lt_cv_prog_gnu_ld" = yes; then
3615 case `/usr/bin/file conftest.$ac_objext` in
3616 *32-bit*)
3617 LD="${LD-ld} -melf32bsmip"
3619 *N32*)
3620 LD="${LD-ld} -melf32bmipn32"
3622 *64-bit*)
3623 LD="${LD-ld} -melf64bmip"
3625 esac
3626 else
3627 case `/usr/bin/file conftest.$ac_objext` in
3628 *32-bit*)
3629 LD="${LD-ld} -32"
3631 *N32*)
3632 LD="${LD-ld} -n32"
3634 *64-bit*)
3635 LD="${LD-ld} -64"
3637 esac
3640 rm -rf conftest*
3643 ia64-*-hpux*)
3644 # Find out which ABI we are using.
3645 echo 'int i;' > conftest.$ac_ext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; then
3651 case "`/usr/bin/file conftest.o`" in
3652 *ELF-32*)
3653 HPUX_IA64_MODE="32"
3655 *ELF-64*)
3656 HPUX_IA64_MODE="64"
3658 esac
3660 rm -rf conftest*
3663 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3664 # Find out which ABI we are using.
3665 echo 'int i;' > conftest.$ac_ext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 case "`/usr/bin/file conftest.o`" in
3672 *32-bit*)
3673 case $host in
3674 x86_64-*linux*)
3675 LD="${LD-ld} -m elf_i386"
3677 ppc64-*linux*|powerpc64-*linux*)
3678 LD="${LD-ld} -m elf32ppclinux"
3680 s390x-*linux*)
3681 LD="${LD-ld} -m elf_s390"
3683 sparc64-*linux*)
3684 LD="${LD-ld} -m elf32_sparc"
3686 esac
3688 *64-bit*)
3689 case $host in
3690 x86_64-*linux*)
3691 LD="${LD-ld} -m elf_x86_64"
3693 ppc*-*linux*|powerpc*-*linux*)
3694 LD="${LD-ld} -m elf64ppc"
3696 s390*-*linux*)
3697 LD="${LD-ld} -m elf64_s390"
3699 sparc*-*linux*)
3700 LD="${LD-ld} -m elf64_sparc"
3702 esac
3704 esac
3706 rm -rf conftest*
3709 *-*-sco3.2v5*)
3710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3711 SAVE_CFLAGS="$CFLAGS"
3712 CFLAGS="$CFLAGS -belf"
3713 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3714 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3715 if test "${lt_cv_cc_needs_belf+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 if test x$gcc_no_link = xyes; then
3727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3729 { (exit 1); exit 1; }; }
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3739 main ()
3743 return 0;
3745 _ACEOF
3746 rm -f conftest.$ac_objext conftest$ac_exeext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748 (eval $ac_link) 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 lt_cv_cc_needs_belf=yes
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 lt_cv_cc_needs_belf=no
3774 rm -f conftest.err conftest.$ac_objext \
3775 conftest$ac_exeext conftest.$ac_ext
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3784 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3785 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3786 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3787 CFLAGS="$SAVE_CFLAGS"
3792 esac
3795 # Save cache, so that ltconfig can load it
3796 cat >confcache <<\_ACEOF
3797 # This file is a shell script that caches the results of configure
3798 # tests run on this system so they can be shared between configure
3799 # scripts and configure runs, see configure's option --config-cache.
3800 # It is not useful on other systems. If it contains results you don't
3801 # want to keep, you may remove or edit it.
3803 # config.status only pays attention to the cache file if you give it
3804 # the --recheck option to rerun configure.
3806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3808 # following values.
3810 _ACEOF
3812 # The following way of writing the cache mishandles newlines in values,
3813 # but we know of no workaround that is simple, portable, and efficient.
3814 # So, don't put newlines in cache variables' values.
3815 # Ultrix sh set writes to stderr and can't be redirected directly,
3816 # and sets the high bit in the cache file unless we assign to the vars.
3818 (set) 2>&1 |
3819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3820 *ac_space=\ *)
3821 # `set' does not quote correctly, so add quotes (double-quote
3822 # substitution turns \\\\ into \\, and sed turns \\ into \).
3823 sed -n \
3824 "s/'/'\\\\''/g;
3825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3828 # `set' quotes correctly as required by POSIX, so do not add quotes.
3829 sed -n \
3830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3832 esac;
3834 sed '
3835 t clear
3836 : clear
3837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3838 t end
3839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3840 : end' >>confcache
3841 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3842 if test -w $cache_file; then
3843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3844 cat confcache >$cache_file
3845 else
3846 echo "not updating unwritable cache $cache_file"
3849 rm -f confcache
3851 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3852 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3853 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3854 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3855 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3856 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3857 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3858 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3859 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3860 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3861 echo "$as_me: error: libtool configure failed" >&2;}
3862 { (exit 1); exit 1; }; }
3864 # Reload cache, that may have been modified by ltconfig
3865 if test -r "$cache_file"; then
3866 # Some versions of bash will fail to source /dev/null (special
3867 # files actually), so we avoid doing that.
3868 if test -f "$cache_file"; then
3869 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3870 echo "$as_me: loading cache $cache_file" >&6;}
3871 case $cache_file in
3872 [\\/]* | ?:[\\/]* ) . $cache_file;;
3873 *) . ./$cache_file;;
3874 esac
3876 else
3877 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3878 echo "$as_me: creating cache $cache_file" >&6;}
3879 >$cache_file
3883 # This can be used to rebuild libtool when needed
3884 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3886 # Always use our own libtool.
3887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3889 # Redirect the config.log output again, so that the ltconfig log is not
3890 # clobbered by the next message.
3891 exec 5>>./config.log
3899 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3900 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3901 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3902 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 cat >conftest.make <<\_ACEOF
3906 all:
3907 @echo 'ac_maketemp="$(MAKE)"'
3908 _ACEOF
3909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3910 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3911 if test -n "$ac_maketemp"; then
3912 eval ac_cv_prog_make_${ac_make}_set=yes
3913 else
3914 eval ac_cv_prog_make_${ac_make}_set=no
3916 rm -f conftest.make
3918 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3919 echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6
3921 SET_MAKE=
3922 else
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3925 SET_MAKE="MAKE=${MAKE-make}"
3929 # -------
3930 # Headers
3931 # -------
3933 # Sanity check for the cross-compilation case:
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3940 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3941 # On Suns, sometimes $CPP names a directory.
3942 if test -n "$CPP" && test -d "$CPP"; then
3943 CPP=
3945 if test -z "$CPP"; then
3946 if test "${ac_cv_prog_CPP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 # Double quotes because CPP needs to be expanded
3950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952 ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972 Syntax error
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } >/dev/null; then
3982 if test -s conftest.err; then
3983 ac_cpp_err=$ac_c_preproc_warn_flag
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985 else
3986 ac_cpp_err=
3988 else
3989 ac_cpp_err=yes
3991 if test -z "$ac_cpp_err"; then
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 # Broken: fails on valid input.
3998 continue
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether non-existent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null; then
4020 if test -s conftest.err; then
4021 ac_cpp_err=$ac_c_preproc_warn_flag
4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023 else
4024 ac_cpp_err=
4026 else
4027 ac_cpp_err=yes
4029 if test -z "$ac_cpp_err"; then
4030 # Broken: success on invalid input.
4031 continue
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4040 rm -f conftest.err conftest.$ac_ext
4042 done
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4046 break
4049 done
4050 ac_cv_prog_CPP=$CPP
4053 CPP=$ac_cv_prog_CPP
4054 else
4055 ac_cv_prog_CPP=$CPP
4057 echo "$as_me:$LINENO: result: $CPP" >&5
4058 echo "${ECHO_T}$CPP" >&6
4059 ac_preproc_ok=false
4060 for ac_c_preproc_warn_flag in '' yes
4062 # Use a header file that comes with gcc, so configuring glibc
4063 # with a fresh cross-compiler works.
4064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065 # <limits.h> exists even on freestanding compilers.
4066 # On the NeXT, cc -E runs the code through the compiler's parser,
4067 # not just through cpp. "Syntax error" is here to catch this case.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #ifdef __STDC__
4075 # include <limits.h>
4076 #else
4077 # include <assert.h>
4078 #endif
4079 Syntax error
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092 else
4093 ac_cpp_err=
4095 else
4096 ac_cpp_err=yes
4098 if test -z "$ac_cpp_err"; then
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 # Broken: fails on valid input.
4105 continue
4107 rm -f conftest.err conftest.$ac_ext
4109 # OK, works on sane cases. Now check whether non-existent headers
4110 # can be detected and how.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null; then
4127 if test -s conftest.err; then
4128 ac_cpp_err=$ac_c_preproc_warn_flag
4129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4130 else
4131 ac_cpp_err=
4133 else
4134 ac_cpp_err=yes
4136 if test -z "$ac_cpp_err"; then
4137 # Broken: success on invalid input.
4138 continue
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4147 rm -f conftest.err conftest.$ac_ext
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4154 else
4155 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4156 See \`config.log' for more details." >&5
4157 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4158 See \`config.log' for more details." >&2;}
4159 { (exit 1); exit 1; }; }
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 echo "$as_me:$LINENO: checking for egrep" >&5
4170 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4171 if test "${ac_cv_prog_egrep+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4175 then ac_cv_prog_egrep='grep -E'
4176 else ac_cv_prog_egrep='egrep'
4179 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4180 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4181 EGREP=$ac_cv_prog_egrep
4184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4186 if test "${ac_cv_header_stdc+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h. */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 #include <stdlib.h>
4196 #include <stdarg.h>
4197 #include <string.h>
4198 #include <float.h>
4201 main ()
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 ac_cv_header_stdc=yes
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 ac_cv_header_stdc=no
4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 if test $ac_cv_header_stdc = yes; then
4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <string.h>
4248 _ACEOF
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 $EGREP "memchr" >/dev/null 2>&1; then
4252 else
4253 ac_cv_header_stdc=no
4255 rm -f conftest*
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <stdlib.h>
4269 _ACEOF
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 $EGREP "free" >/dev/null 2>&1; then
4273 else
4274 ac_cv_header_stdc=no
4276 rm -f conftest*
4280 if test $ac_cv_header_stdc = yes; then
4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282 if test "$cross_compiling" = yes; then
4284 else
4285 cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h. */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 #include <ctype.h>
4292 #if ((' ' & 0x0FF) == 0x020)
4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 #else
4296 # define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301 #endif
4303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305 main ()
4307 int i;
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4311 exit(2);
4312 exit (0);
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4327 else
4328 echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ( exit $ac_status )
4333 ac_cv_header_stdc=no
4335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4341 if test $ac_cv_header_stdc = yes; then
4343 cat >>confdefs.h <<\_ACEOF
4344 #define STDC_HEADERS 1
4345 _ACEOF
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4376 #include <$ac_header>
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_Header=yes"
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 eval "$as_ac_Header=no"
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4417 done
4420 if test "${ac_cv_header_stdio_h+set}" = set; then
4421 echo "$as_me:$LINENO: checking for stdio.h" >&5
4422 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4423 if test "${ac_cv_header_stdio_h+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4427 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4428 else
4429 # Is the header compilable?
4430 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4431 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4439 #include <stdio.h>
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_header_compiler=yes
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_header_compiler=no
4469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6
4473 # Is the header present?
4474 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4475 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <stdio.h>
4483 _ACEOF
4484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } >/dev/null; then
4492 if test -s conftest.err; then
4493 ac_cpp_err=$ac_c_preproc_warn_flag
4494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4495 else
4496 ac_cpp_err=
4498 else
4499 ac_cpp_err=yes
4501 if test -z "$ac_cpp_err"; then
4502 ac_header_preproc=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_header_preproc=no
4509 rm -f conftest.err conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4511 echo "${ECHO_T}$ac_header_preproc" >&6
4513 # So? What about this header?
4514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4515 yes:no: )
4516 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4517 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4519 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4520 ac_header_preproc=yes
4522 no:yes:* )
4523 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4524 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4526 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4528 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4530 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4534 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4536 cat <<\_ASBOX
4537 ## ------------------------------------------ ##
4538 ## Report this to the AC_PACKAGE_NAME lists. ##
4539 ## ------------------------------------------ ##
4540 _ASBOX
4542 sed "s/^/$as_me: WARNING: /" >&2
4544 esac
4545 echo "$as_me:$LINENO: checking for stdio.h" >&5
4546 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4547 if test "${ac_cv_header_stdio_h+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 ac_cv_header_stdio_h=$ac_header_preproc
4552 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4553 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4556 if test $ac_cv_header_stdio_h = yes; then
4558 else
4559 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4560 You must have a usable C system for the target already installed, at least
4561 including headers and, preferably, the library, before you can configure
4562 the Objective C runtime system. If necessary, install gcc now with
4563 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4564 echo "$as_me: error: Can't find stdio.h.
4565 You must have a usable C system for the target already installed, at least
4566 including headers and, preferably, the library, before you can configure
4567 the Objective C runtime system. If necessary, install gcc now with
4568 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4569 { (exit 1); exit 1; }; }
4574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4576 if test "${ac_cv_header_stdc+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #include <stdlib.h>
4586 #include <stdarg.h>
4587 #include <string.h>
4588 #include <float.h>
4591 main ()
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_header_stdc=yes
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_header_stdc=no
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <string.h>
4638 _ACEOF
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 $EGREP "memchr" >/dev/null 2>&1; then
4642 else
4643 ac_cv_header_stdc=no
4645 rm -f conftest*
4649 if test $ac_cv_header_stdc = yes; then
4650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <stdlib.h>
4659 _ACEOF
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev/null 2>&1; then
4663 else
4664 ac_cv_header_stdc=no
4666 rm -f conftest*
4670 if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then
4674 else
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #include <ctype.h>
4682 #if ((' ' & 0x0FF) == 0x020)
4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 #else
4686 # define ISLOWER(c) \
4687 (('a' <= (c) && (c) <= 'i') \
4688 || ('j' <= (c) && (c) <= 'r') \
4689 || ('s' <= (c) && (c) <= 'z'))
4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4691 #endif
4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 main ()
4697 int i;
4698 for (i = 0; i < 256; i++)
4699 if (XOR (islower (i), ISLOWER (i))
4700 || toupper (i) != TOUPPER (i))
4701 exit(2);
4702 exit (0);
4704 _ACEOF
4705 rm -f conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4717 else
4718 echo "$as_me: program exited with status $ac_status" >&5
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ( exit $ac_status )
4723 ac_cv_header_stdc=no
4725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4731 if test $ac_cv_header_stdc = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define STDC_HEADERS 1
4735 _ACEOF
4741 for ac_header in sched.h
4743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo "$as_me:$LINENO: checking for $ac_header" >&5
4746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752 else
4753 # Is the header compilable?
4754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4763 #include <$ac_header>
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_header_compiler=yes
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 ac_header_compiler=no
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795 echo "${ECHO_T}$ac_header_compiler" >&6
4797 # Is the header present?
4798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #include <$ac_header>
4807 _ACEOF
4808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
4818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4819 else
4820 ac_cpp_err=
4822 else
4823 ac_cpp_err=yes
4825 if test -z "$ac_cpp_err"; then
4826 ac_header_preproc=yes
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 ac_header_preproc=no
4833 rm -f conftest.err conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4835 echo "${ECHO_T}$ac_header_preproc" >&6
4837 # So? What about this header?
4838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4839 yes:no: )
4840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4844 ac_header_preproc=yes
4846 no:yes:* )
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4860 cat <<\_ASBOX
4861 ## ------------------------------------------ ##
4862 ## Report this to the AC_PACKAGE_NAME lists. ##
4863 ## ------------------------------------------ ##
4864 _ASBOX
4866 sed "s/^/$as_me: WARNING: /" >&2
4868 esac
4869 echo "$as_me:$LINENO: checking for $ac_header" >&5
4870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 eval "$as_ac_Header=\$ac_header_preproc"
4876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4881 cat >>confdefs.h <<_ACEOF
4882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4883 _ACEOF
4887 done
4890 # -----------
4891 # Miscellanea
4892 # -----------
4894 # Determine CFLAGS for gthread.
4895 # FIXME: the current implementation is dependent on the 'r' variable
4896 # passed down from the top level
4897 echo "$as_me:$LINENO: checking for gthread cflags" >&5
4898 echo $ECHO_N "checking for gthread cflags... $ECHO_C" >&6
4899 if test "${objc_cv_gthread_flags+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 if test -f "$r"/gcc/Makefile
4903 then
4904 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
4905 else
4906 { { echo "$as_me:$LINENO: error: not found" >&5
4907 echo "$as_me: error: not found" >&2;}
4908 { (exit 1); exit 1; }; }
4911 echo "$as_me:$LINENO: result: $objc_cv_gthread_flags" >&5
4912 echo "${ECHO_T}$objc_cv_gthread_flags" >&6
4913 GTHREAD_FLAGS=$objc_cv_gthread_flags
4916 # ------
4917 # Output
4918 # ------
4920 ac_config_files="$ac_config_files Makefile"
4923 ac_config_commands="$ac_config_commands default"
4926 cat >confcache <<\_ACEOF
4927 # This file is a shell script that caches the results of configure
4928 # tests run on this system so they can be shared between configure
4929 # scripts and configure runs, see configure's option --config-cache.
4930 # It is not useful on other systems. If it contains results you don't
4931 # want to keep, you may remove or edit it.
4933 # config.status only pays attention to the cache file if you give it
4934 # the --recheck option to rerun configure.
4936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4938 # following values.
4940 _ACEOF
4942 # The following way of writing the cache mishandles newlines in values,
4943 # but we know of no workaround that is simple, portable, and efficient.
4944 # So, don't put newlines in cache variables' values.
4945 # Ultrix sh set writes to stderr and can't be redirected directly,
4946 # and sets the high bit in the cache file unless we assign to the vars.
4948 (set) 2>&1 |
4949 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4950 *ac_space=\ *)
4951 # `set' does not quote correctly, so add quotes (double-quote
4952 # substitution turns \\\\ into \\, and sed turns \\ into \).
4953 sed -n \
4954 "s/'/'\\\\''/g;
4955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4958 # `set' quotes correctly as required by POSIX, so do not add quotes.
4959 sed -n \
4960 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4962 esac;
4964 sed '
4965 t clear
4966 : clear
4967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4968 t end
4969 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4970 : end' >>confcache
4971 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4972 if test -w $cache_file; then
4973 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4974 cat confcache >$cache_file
4975 else
4976 echo "not updating unwritable cache $cache_file"
4979 rm -f confcache
4981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4982 # Let make expand exec_prefix.
4983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4987 # trailing colons and then remove the whole line if VPATH becomes empty
4988 # (actually we leave an empty line to preserve line numbers).
4989 if test "x$srcdir" = x.; then
4990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4991 s/:*\$(srcdir):*/:/;
4992 s/:*\${srcdir}:*/:/;
4993 s/:*@srcdir@:*/:/;
4994 s/^\([^=]*=[ ]*\):*/\1/;
4995 s/:*$//;
4996 s/^[^=]*=[ ]*$//;
5000 # Transform confdefs.h into DEFS.
5001 # Protect against shell expansion while executing Makefile rules.
5002 # Protect against Makefile macro expansion.
5004 # If the first sed substitution is executed (which looks for macros that
5005 # take arguments), then we branch to the quote section. Otherwise,
5006 # look for a macro that doesn't take arguments.
5007 cat >confdef2opt.sed <<\_ACEOF
5008 t clear
5009 : clear
5010 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5011 t quote
5012 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5013 t quote
5015 : quote
5016 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5017 s,\[,\\&,g
5018 s,\],\\&,g
5019 s,\$,$$,g
5021 _ACEOF
5022 # We use echo to avoid assuming a particular line-breaking character.
5023 # The extra dot is to prevent the shell from consuming trailing
5024 # line-breaks from the sub-command output. A line-break within
5025 # single-quotes doesn't work because, if this script is created in a
5026 # platform that uses two characters for line-breaks (e.g., DOS), tr
5027 # would break.
5028 ac_LF_and_DOT=`echo; echo .`
5029 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5030 rm -f confdef2opt.sed
5033 ac_libobjs=
5034 ac_ltlibobjs=
5035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5036 # 1. Remove the extension, and $U if already installed.
5037 ac_i=`echo "$ac_i" |
5038 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5039 # 2. Add them.
5040 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5041 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5042 done
5043 LIBOBJS=$ac_libobjs
5045 LTLIBOBJS=$ac_ltlibobjs
5049 : ${CONFIG_STATUS=./config.status}
5050 ac_clean_files_save=$ac_clean_files
5051 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5052 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5053 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5054 cat >$CONFIG_STATUS <<_ACEOF
5055 #! $SHELL
5056 # Generated by $as_me.
5057 # Run this file to recreate the current configuration.
5058 # Compiler output produced by configure, useful for debugging
5059 # configure, is in config.log if it exists.
5061 debug=false
5062 ac_cs_recheck=false
5063 ac_cs_silent=false
5064 SHELL=\${CONFIG_SHELL-$SHELL}
5065 _ACEOF
5067 cat >>$CONFIG_STATUS <<\_ACEOF
5068 ## --------------------- ##
5069 ## M4sh Initialization. ##
5070 ## --------------------- ##
5072 # Be Bourne compatible
5073 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5074 emulate sh
5075 NULLCMD=:
5076 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5077 # is contrary to our usage. Disable this feature.
5078 alias -g '${1+"$@"}'='"$@"'
5079 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5080 set -o posix
5082 DUALCASE=1; export DUALCASE # for MKS sh
5084 # Support unset when possible.
5085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5086 as_unset=unset
5087 else
5088 as_unset=false
5092 # Work around bugs in pre-3.0 UWIN ksh.
5093 $as_unset ENV MAIL MAILPATH
5094 PS1='$ '
5095 PS2='> '
5096 PS4='+ '
5098 # NLS nuisances.
5099 for as_var in \
5100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5102 LC_TELEPHONE LC_TIME
5104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5105 eval $as_var=C; export $as_var
5106 else
5107 $as_unset $as_var
5109 done
5111 # Required to use basename.
5112 if expr a : '\(a\)' >/dev/null 2>&1; then
5113 as_expr=expr
5114 else
5115 as_expr=false
5118 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5119 as_basename=basename
5120 else
5121 as_basename=false
5125 # Name of the executable.
5126 as_me=`$as_basename "$0" ||
5127 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5128 X"$0" : 'X\(//\)$' \| \
5129 X"$0" : 'X\(/\)$' \| \
5130 . : '\(.\)' 2>/dev/null ||
5131 echo X/"$0" |
5132 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5133 /^X\/\(\/\/\)$/{ s//\1/; q; }
5134 /^X\/\(\/\).*/{ s//\1/; q; }
5135 s/.*/./; q'`
5138 # PATH needs CR, and LINENO needs CR and PATH.
5139 # Avoid depending upon Character Ranges.
5140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5143 as_cr_digits='0123456789'
5144 as_cr_alnum=$as_cr_Letters$as_cr_digits
5146 # The user is always right.
5147 if test "${PATH_SEPARATOR+set}" != set; then
5148 echo "#! /bin/sh" >conf$$.sh
5149 echo "exit 0" >>conf$$.sh
5150 chmod +x conf$$.sh
5151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5152 PATH_SEPARATOR=';'
5153 else
5154 PATH_SEPARATOR=:
5156 rm -f conf$$.sh
5160 as_lineno_1=$LINENO
5161 as_lineno_2=$LINENO
5162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5163 test "x$as_lineno_1" != "x$as_lineno_2" &&
5164 test "x$as_lineno_3" = "x$as_lineno_2" || {
5165 # Find who we are. Look in the path if we contain no path at all
5166 # relative or not.
5167 case $0 in
5168 *[\\/]* ) as_myself=$0 ;;
5169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5175 done
5178 esac
5179 # We did not find ourselves, most probably we were run as `sh COMMAND'
5180 # in which case we are not to be found in the path.
5181 if test "x$as_myself" = x; then
5182 as_myself=$0
5184 if test ! -f "$as_myself"; then
5185 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5186 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5187 { (exit 1); exit 1; }; }
5189 case $CONFIG_SHELL in
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for as_base in sh bash ksh sh5; do
5197 case $as_dir in
5199 if ("$as_dir/$as_base" -c '
5200 as_lineno_1=$LINENO
5201 as_lineno_2=$LINENO
5202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5203 test "x$as_lineno_1" != "x$as_lineno_2" &&
5204 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5205 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5206 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5207 CONFIG_SHELL=$as_dir/$as_base
5208 export CONFIG_SHELL
5209 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5210 fi;;
5211 esac
5212 done
5213 done
5215 esac
5217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5218 # uniformly replaced by the line number. The first 'sed' inserts a
5219 # line-number line before each line; the second 'sed' does the real
5220 # work. The second script uses 'N' to pair each line-number line
5221 # with the numbered line, and appends trailing '-' during
5222 # substitution so that $LINENO is not a special case at line end.
5223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5224 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5225 sed '=' <$as_myself |
5226 sed '
5228 s,$,-,
5229 : loop
5230 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5231 t loop
5232 s,-$,,
5233 s,^['$as_cr_digits']*\n,,
5234 ' >$as_me.lineno &&
5235 chmod +x $as_me.lineno ||
5236 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5237 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5238 { (exit 1); exit 1; }; }
5240 # Don't try to exec as it changes $[0], causing all sort of problems
5241 # (the dirname of $[0] is not the place where we might find the
5242 # original and so on. Autoconf is especially sensible to this).
5243 . ./$as_me.lineno
5244 # Exit status is that of the last command.
5245 exit
5249 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5250 *c*,-n*) ECHO_N= ECHO_C='
5251 ' ECHO_T=' ' ;;
5252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5254 esac
5256 if expr a : '\(a\)' >/dev/null 2>&1; then
5257 as_expr=expr
5258 else
5259 as_expr=false
5262 rm -f conf$$ conf$$.exe conf$$.file
5263 echo >conf$$.file
5264 if ln -s conf$$.file conf$$ 2>/dev/null; then
5265 # We could just check for DJGPP; but this test a) works b) is more generic
5266 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5267 if test -f conf$$.exe; then
5268 # Don't use ln at all; we don't have any links
5269 as_ln_s='cp -p'
5270 else
5271 as_ln_s='ln -s'
5273 elif ln conf$$.file conf$$ 2>/dev/null; then
5274 as_ln_s=ln
5275 else
5276 as_ln_s='cp -p'
5278 rm -f conf$$ conf$$.exe conf$$.file
5280 if mkdir -p . 2>/dev/null; then
5281 as_mkdir_p=:
5282 else
5283 test -d ./-p && rmdir ./-p
5284 as_mkdir_p=false
5287 as_executable_p="test -f"
5289 # Sed expression to map a string onto a valid CPP name.
5290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5292 # Sed expression to map a string onto a valid variable name.
5293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5296 # IFS
5297 # We need space, tab and new line, in precisely that order.
5298 as_nl='
5300 IFS=" $as_nl"
5302 # CDPATH.
5303 $as_unset CDPATH
5305 exec 6>&1
5307 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5308 # report actual input values of CONFIG_FILES etc. instead of their
5309 # values after options handling. Logging --version etc. is OK.
5310 exec 5>>config.log
5312 echo
5313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5314 ## Running $as_me. ##
5315 _ASBOX
5316 } >&5
5317 cat >&5 <<_CSEOF
5319 This file was extended by $as_me, which was
5320 generated by GNU Autoconf 2.59. Invocation command line was
5322 CONFIG_FILES = $CONFIG_FILES
5323 CONFIG_HEADERS = $CONFIG_HEADERS
5324 CONFIG_LINKS = $CONFIG_LINKS
5325 CONFIG_COMMANDS = $CONFIG_COMMANDS
5326 $ $0 $@
5328 _CSEOF
5329 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5330 echo >&5
5331 _ACEOF
5333 # Files that config.status was made for.
5334 if test -n "$ac_config_files"; then
5335 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5338 if test -n "$ac_config_headers"; then
5339 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5342 if test -n "$ac_config_links"; then
5343 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5346 if test -n "$ac_config_commands"; then
5347 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5350 cat >>$CONFIG_STATUS <<\_ACEOF
5352 ac_cs_usage="\
5353 \`$as_me' instantiates files from templates according to the
5354 current configuration.
5356 Usage: $0 [OPTIONS] [FILE]...
5358 -h, --help print this help, then exit
5359 -V, --version print version number, then exit
5360 -q, --quiet do not print progress messages
5361 -d, --debug don't remove temporary files
5362 --recheck update $as_me by reconfiguring in the same conditions
5363 --file=FILE[:TEMPLATE]
5364 instantiate the configuration file FILE
5366 Configuration files:
5367 $config_files
5369 Configuration commands:
5370 $config_commands
5372 Report bugs to <bug-autoconf@gnu.org>."
5373 _ACEOF
5375 cat >>$CONFIG_STATUS <<_ACEOF
5376 ac_cs_version="\\
5377 config.status
5378 configured by $0, generated by GNU Autoconf 2.59,
5379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5381 Copyright (C) 2003 Free Software Foundation, Inc.
5382 This config.status script is free software; the Free Software Foundation
5383 gives unlimited permission to copy, distribute and modify it."
5384 srcdir=$srcdir
5385 INSTALL="$INSTALL"
5386 _ACEOF
5388 cat >>$CONFIG_STATUS <<\_ACEOF
5389 # If no file are specified by the user, then we need to provide default
5390 # value. By we need to know if files were specified by the user.
5391 ac_need_defaults=:
5392 while test $# != 0
5394 case $1 in
5395 --*=*)
5396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5398 ac_shift=:
5401 ac_option=$1
5402 ac_optarg=$2
5403 ac_shift=shift
5405 *) # This is not an option, so the user has probably given explicit
5406 # arguments.
5407 ac_option=$1
5408 ac_need_defaults=false;;
5409 esac
5411 case $ac_option in
5412 # Handling of the options.
5413 _ACEOF
5414 cat >>$CONFIG_STATUS <<\_ACEOF
5415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5416 ac_cs_recheck=: ;;
5417 --version | --vers* | -V )
5418 echo "$ac_cs_version"; exit 0 ;;
5419 --he | --h)
5420 # Conflict between --help and --header
5421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5422 Try \`$0 --help' for more information." >&5
5423 echo "$as_me: error: ambiguous option: $1
5424 Try \`$0 --help' for more information." >&2;}
5425 { (exit 1); exit 1; }; };;
5426 --help | --hel | -h )
5427 echo "$ac_cs_usage"; exit 0 ;;
5428 --debug | --d* | -d )
5429 debug=: ;;
5430 --file | --fil | --fi | --f )
5431 $ac_shift
5432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5433 ac_need_defaults=false;;
5434 --header | --heade | --head | --hea )
5435 $ac_shift
5436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5437 ac_need_defaults=false;;
5438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5440 ac_cs_silent=: ;;
5442 # This is an error.
5443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5444 Try \`$0 --help' for more information." >&5
5445 echo "$as_me: error: unrecognized option: $1
5446 Try \`$0 --help' for more information." >&2;}
5447 { (exit 1); exit 1; }; } ;;
5449 *) ac_config_targets="$ac_config_targets $1" ;;
5451 esac
5452 shift
5453 done
5455 ac_configure_extra_args=
5457 if $ac_cs_silent; then
5458 exec 6>/dev/null
5459 ac_configure_extra_args="$ac_configure_extra_args --silent"
5462 _ACEOF
5463 cat >>$CONFIG_STATUS <<_ACEOF
5464 if \$ac_cs_recheck; then
5465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5469 _ACEOF
5471 cat >>$CONFIG_STATUS <<_ACEOF
5473 # INIT-COMMANDS section.
5476 srcdir=${srcdir}
5477 host=${host}
5478 target=${target}
5479 with_target_subdir=${with_target_subdir}
5480 with_multisubdir=${with_multisubdir}
5481 ac_configure_args="--enable-multilib ${ac_configure_args}"
5482 toplevel_srcdir=${toplevel_srcdir}
5483 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5484 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5487 _ACEOF
5491 cat >>$CONFIG_STATUS <<\_ACEOF
5492 for ac_config_target in $ac_config_targets
5494 case "$ac_config_target" in
5495 # Handling of arguments.
5496 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5497 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5500 { (exit 1); exit 1; }; };;
5501 esac
5502 done
5504 # If the user did not use the arguments to specify the items to instantiate,
5505 # then the envvar interface is used. Set only those that are not.
5506 # We use the long form for the default assignment because of an extremely
5507 # bizarre bug on SunOS 4.1.3.
5508 if $ac_need_defaults; then
5509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5513 # Have a temporary directory for convenience. Make it in the build tree
5514 # simply because there is no reason to put it here, and in addition,
5515 # creating and moving files from /tmp can sometimes cause problems.
5516 # Create a temporary directory, and hook for its removal unless debugging.
5517 $debug ||
5519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5520 trap '{ (exit 1); exit 1; }' 1 2 13 15
5523 # Create a (secure) tmp directory for tmp files.
5526 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5527 test -n "$tmp" && test -d "$tmp"
5528 } ||
5530 tmp=./confstat$$-$RANDOM
5531 (umask 077 && mkdir $tmp)
5532 } ||
5534 echo "$me: cannot create a temporary directory in ." >&2
5535 { (exit 1); exit 1; }
5538 _ACEOF
5540 cat >>$CONFIG_STATUS <<_ACEOF
5543 # CONFIG_FILES section.
5546 # No need to generate the scripts if there are no CONFIG_FILES.
5547 # This happens for instance when ./config.status config.h
5548 if test -n "\$CONFIG_FILES"; then
5549 # Protect against being on the right side of a sed subst in config.status.
5550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5552 s,@SHELL@,$SHELL,;t t
5553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5559 s,@exec_prefix@,$exec_prefix,;t t
5560 s,@prefix@,$prefix,;t t
5561 s,@program_transform_name@,$program_transform_name,;t t
5562 s,@bindir@,$bindir,;t t
5563 s,@sbindir@,$sbindir,;t t
5564 s,@libexecdir@,$libexecdir,;t t
5565 s,@datadir@,$datadir,;t t
5566 s,@sysconfdir@,$sysconfdir,;t t
5567 s,@sharedstatedir@,$sharedstatedir,;t t
5568 s,@localstatedir@,$localstatedir,;t t
5569 s,@libdir@,$libdir,;t t
5570 s,@includedir@,$includedir,;t t
5571 s,@oldincludedir@,$oldincludedir,;t t
5572 s,@infodir@,$infodir,;t t
5573 s,@mandir@,$mandir,;t t
5574 s,@build_alias@,$build_alias,;t t
5575 s,@host_alias@,$host_alias,;t t
5576 s,@target_alias@,$target_alias,;t t
5577 s,@DEFS@,$DEFS,;t t
5578 s,@ECHO_C@,$ECHO_C,;t t
5579 s,@ECHO_N@,$ECHO_N,;t t
5580 s,@ECHO_T@,$ECHO_T,;t t
5581 s,@LIBS@,$LIBS,;t t
5582 s,@VERSION@,$VERSION,;t t
5583 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5584 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5585 s,@build@,$build,;t t
5586 s,@build_cpu@,$build_cpu,;t t
5587 s,@build_vendor@,$build_vendor,;t t
5588 s,@build_os@,$build_os,;t t
5589 s,@host@,$host,;t t
5590 s,@host_cpu@,$host_cpu,;t t
5591 s,@host_vendor@,$host_vendor,;t t
5592 s,@host_os@,$host_os,;t t
5593 s,@target@,$target,;t t
5594 s,@target_cpu@,$target_cpu,;t t
5595 s,@target_vendor@,$target_vendor,;t t
5596 s,@target_os@,$target_os,;t t
5597 s,@target_noncanonical@,$target_noncanonical,;t t
5598 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5599 s,@gcc_version@,$gcc_version,;t t
5600 s,@toolexeclibdir@,$toolexeclibdir,;t t
5601 s,@CC@,$CC,;t t
5602 s,@CFLAGS@,$CFLAGS,;t t
5603 s,@LDFLAGS@,$LDFLAGS,;t t
5604 s,@CPPFLAGS@,$CPPFLAGS,;t t
5605 s,@ac_ct_CC@,$ac_ct_CC,;t t
5606 s,@EXEEXT@,$EXEEXT,;t t
5607 s,@OBJEXT@,$OBJEXT,;t t
5608 s,@AS@,$AS,;t t
5609 s,@ac_ct_AS@,$ac_ct_AS,;t t
5610 s,@AR@,$AR,;t t
5611 s,@ac_ct_AR@,$ac_ct_AR,;t t
5612 s,@RANLIB@,$RANLIB,;t t
5613 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5614 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5615 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5616 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5617 s,@LN_S@,$LN_S,;t t
5618 s,@STRIP@,$STRIP,;t t
5619 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5620 s,@LIBTOOL@,$LIBTOOL,;t t
5621 s,@SET_MAKE@,$SET_MAKE,;t t
5622 s,@CPP@,$CPP,;t t
5623 s,@EGREP@,$EGREP,;t t
5624 s,@GTHREAD_FLAGS@,$GTHREAD_FLAGS,;t t
5625 s,@LIBOBJS@,$LIBOBJS,;t t
5626 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5627 CEOF
5629 _ACEOF
5631 cat >>$CONFIG_STATUS <<\_ACEOF
5632 # Split the substitutions into bite-sized pieces for seds with
5633 # small command number limits, like on Digital OSF/1 and HP-UX.
5634 ac_max_sed_lines=48
5635 ac_sed_frag=1 # Number of current file.
5636 ac_beg=1 # First line for current file.
5637 ac_end=$ac_max_sed_lines # Line after last line for current file.
5638 ac_more_lines=:
5639 ac_sed_cmds=
5640 while $ac_more_lines; do
5641 if test $ac_beg -gt 1; then
5642 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5643 else
5644 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5646 if test ! -s $tmp/subs.frag; then
5647 ac_more_lines=false
5648 else
5649 # The purpose of the label and of the branching condition is to
5650 # speed up the sed processing (if there are no `@' at all, there
5651 # is no need to browse any of the substitutions).
5652 # These are the two extra sed commands mentioned above.
5653 (echo ':t
5654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5655 if test -z "$ac_sed_cmds"; then
5656 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5657 else
5658 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5660 ac_sed_frag=`expr $ac_sed_frag + 1`
5661 ac_beg=$ac_end
5662 ac_end=`expr $ac_end + $ac_max_sed_lines`
5664 done
5665 if test -z "$ac_sed_cmds"; then
5666 ac_sed_cmds=cat
5668 fi # test -n "$CONFIG_FILES"
5670 _ACEOF
5671 cat >>$CONFIG_STATUS <<\_ACEOF
5672 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5674 case $ac_file in
5675 - | *:- | *:-:* ) # input from stdin
5676 cat >$tmp/stdin
5677 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5679 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5681 * ) ac_file_in=$ac_file.in ;;
5682 esac
5684 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5685 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5687 X"$ac_file" : 'X\(//\)[^/]' \| \
5688 X"$ac_file" : 'X\(//\)$' \| \
5689 X"$ac_file" : 'X\(/\)' \| \
5690 . : '\(.\)' 2>/dev/null ||
5691 echo X"$ac_file" |
5692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5694 /^X\(\/\/\)$/{ s//\1/; q; }
5695 /^X\(\/\).*/{ s//\1/; q; }
5696 s/.*/./; q'`
5697 { if $as_mkdir_p; then
5698 mkdir -p "$ac_dir"
5699 else
5700 as_dir="$ac_dir"
5701 as_dirs=
5702 while test ! -d "$as_dir"; do
5703 as_dirs="$as_dir $as_dirs"
5704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5706 X"$as_dir" : 'X\(//\)[^/]' \| \
5707 X"$as_dir" : 'X\(//\)$' \| \
5708 X"$as_dir" : 'X\(/\)' \| \
5709 . : '\(.\)' 2>/dev/null ||
5710 echo X"$as_dir" |
5711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5713 /^X\(\/\/\)$/{ s//\1/; q; }
5714 /^X\(\/\).*/{ s//\1/; q; }
5715 s/.*/./; q'`
5716 done
5717 test ! -n "$as_dirs" || mkdir $as_dirs
5718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5719 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5720 { (exit 1); exit 1; }; }; }
5722 ac_builddir=.
5724 if test "$ac_dir" != .; then
5725 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5726 # A "../" for each directory in $ac_dir_suffix.
5727 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5728 else
5729 ac_dir_suffix= ac_top_builddir=
5732 case $srcdir in
5733 .) # No --srcdir option. We are building in place.
5734 ac_srcdir=.
5735 if test -z "$ac_top_builddir"; then
5736 ac_top_srcdir=.
5737 else
5738 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5739 fi ;;
5740 [\\/]* | ?:[\\/]* ) # Absolute path.
5741 ac_srcdir=$srcdir$ac_dir_suffix;
5742 ac_top_srcdir=$srcdir ;;
5743 *) # Relative path.
5744 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5745 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5746 esac
5748 # Do not use `cd foo && pwd` to compute absolute paths, because
5749 # the directories may not exist.
5750 case `pwd` in
5751 .) ac_abs_builddir="$ac_dir";;
5753 case "$ac_dir" in
5754 .) ac_abs_builddir=`pwd`;;
5755 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5756 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5757 esac;;
5758 esac
5759 case $ac_abs_builddir in
5760 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5762 case ${ac_top_builddir}. in
5763 .) ac_abs_top_builddir=$ac_abs_builddir;;
5764 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5765 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5766 esac;;
5767 esac
5768 case $ac_abs_builddir in
5769 .) ac_abs_srcdir=$ac_srcdir;;
5771 case $ac_srcdir in
5772 .) ac_abs_srcdir=$ac_abs_builddir;;
5773 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5774 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5775 esac;;
5776 esac
5777 case $ac_abs_builddir in
5778 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5780 case $ac_top_srcdir in
5781 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5782 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5783 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5784 esac;;
5785 esac
5788 case $INSTALL in
5789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5790 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5791 esac
5793 # Let's still pretend it is `configure' which instantiates (i.e., don't
5794 # use $as_me), people would be surprised to read:
5795 # /* config.h. Generated by config.status. */
5796 if test x"$ac_file" = x-; then
5797 configure_input=
5798 else
5799 configure_input="$ac_file. "
5801 configure_input=$configure_input"Generated from `echo $ac_file_in |
5802 sed 's,.*/,,'` by configure."
5804 # First look for the input files in the build tree, otherwise in the
5805 # src tree.
5806 ac_file_inputs=`IFS=:
5807 for f in $ac_file_in; do
5808 case $f in
5809 -) echo $tmp/stdin ;;
5810 [\\/$]*)
5811 # Absolute (can't be DOS-style, as IFS=:)
5812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5813 echo "$as_me: error: cannot find input file: $f" >&2;}
5814 { (exit 1); exit 1; }; }
5815 echo "$f";;
5816 *) # Relative
5817 if test -f "$f"; then
5818 # Build tree
5819 echo "$f"
5820 elif test -f "$srcdir/$f"; then
5821 # Source tree
5822 echo "$srcdir/$f"
5823 else
5824 # /dev/null tree
5825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5826 echo "$as_me: error: cannot find input file: $f" >&2;}
5827 { (exit 1); exit 1; }; }
5828 fi;;
5829 esac
5830 done` || { (exit 1); exit 1; }
5832 if test x"$ac_file" != x-; then
5833 { echo "$as_me:$LINENO: creating $ac_file" >&5
5834 echo "$as_me: creating $ac_file" >&6;}
5835 rm -f "$ac_file"
5837 _ACEOF
5838 cat >>$CONFIG_STATUS <<_ACEOF
5839 sed "$ac_vpsub
5840 $extrasub
5841 _ACEOF
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5845 s,@configure_input@,$configure_input,;t t
5846 s,@srcdir@,$ac_srcdir,;t t
5847 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5848 s,@top_srcdir@,$ac_top_srcdir,;t t
5849 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5850 s,@builddir@,$ac_builddir,;t t
5851 s,@abs_builddir@,$ac_abs_builddir,;t t
5852 s,@top_builddir@,$ac_top_builddir,;t t
5853 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5854 s,@INSTALL@,$ac_INSTALL,;t t
5855 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5856 rm -f $tmp/stdin
5857 if test x"$ac_file" != x-; then
5858 mv $tmp/out $ac_file
5859 else
5860 cat $tmp/out
5861 rm -f $tmp/out
5864 done
5865 _ACEOF
5866 cat >>$CONFIG_STATUS <<\_ACEOF
5869 # CONFIG_COMMANDS section.
5871 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5872 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5873 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5874 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5875 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5876 X"$ac_dest" : 'X\(//\)[^/]' \| \
5877 X"$ac_dest" : 'X\(//\)$' \| \
5878 X"$ac_dest" : 'X\(/\)' \| \
5879 . : '\(.\)' 2>/dev/null ||
5880 echo X"$ac_dest" |
5881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5883 /^X\(\/\/\)$/{ s//\1/; q; }
5884 /^X\(\/\).*/{ s//\1/; q; }
5885 s/.*/./; q'`
5886 { if $as_mkdir_p; then
5887 mkdir -p "$ac_dir"
5888 else
5889 as_dir="$ac_dir"
5890 as_dirs=
5891 while test ! -d "$as_dir"; do
5892 as_dirs="$as_dir $as_dirs"
5893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895 X"$as_dir" : 'X\(//\)[^/]' \| \
5896 X"$as_dir" : 'X\(//\)$' \| \
5897 X"$as_dir" : 'X\(/\)' \| \
5898 . : '\(.\)' 2>/dev/null ||
5899 echo X"$as_dir" |
5900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5902 /^X\(\/\/\)$/{ s//\1/; q; }
5903 /^X\(\/\).*/{ s//\1/; q; }
5904 s/.*/./; q'`
5905 done
5906 test ! -n "$as_dirs" || mkdir $as_dirs
5907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5908 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5909 { (exit 1); exit 1; }; }; }
5911 ac_builddir=.
5913 if test "$ac_dir" != .; then
5914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5915 # A "../" for each directory in $ac_dir_suffix.
5916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5917 else
5918 ac_dir_suffix= ac_top_builddir=
5921 case $srcdir in
5922 .) # No --srcdir option. We are building in place.
5923 ac_srcdir=.
5924 if test -z "$ac_top_builddir"; then
5925 ac_top_srcdir=.
5926 else
5927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5928 fi ;;
5929 [\\/]* | ?:[\\/]* ) # Absolute path.
5930 ac_srcdir=$srcdir$ac_dir_suffix;
5931 ac_top_srcdir=$srcdir ;;
5932 *) # Relative path.
5933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5935 esac
5937 # Do not use `cd foo && pwd` to compute absolute paths, because
5938 # the directories may not exist.
5939 case `pwd` in
5940 .) ac_abs_builddir="$ac_dir";;
5942 case "$ac_dir" in
5943 .) ac_abs_builddir=`pwd`;;
5944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5946 esac;;
5947 esac
5948 case $ac_abs_builddir in
5949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5951 case ${ac_top_builddir}. in
5952 .) ac_abs_top_builddir=$ac_abs_builddir;;
5953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5955 esac;;
5956 esac
5957 case $ac_abs_builddir in
5958 .) ac_abs_srcdir=$ac_srcdir;;
5960 case $ac_srcdir in
5961 .) ac_abs_srcdir=$ac_abs_builddir;;
5962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5964 esac;;
5965 esac
5966 case $ac_abs_builddir in
5967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5969 case $ac_top_srcdir in
5970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5973 esac;;
5974 esac
5977 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5978 echo "$as_me: executing $ac_dest commands" >&6;}
5979 case $ac_dest in
5980 default ) if test -n "$CONFIG_FILES"; then
5981 if test -n "${with_target_subdir}"; then
5982 # FIXME: We shouldn't need to set ac_file
5983 ac_file=Makefile
5984 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
5985 . ${toplevel_srcdir}/config-ml.in
5987 fi ;;
5988 esac
5989 done
5990 _ACEOF
5992 cat >>$CONFIG_STATUS <<\_ACEOF
5994 { (exit 0); exit 0; }
5995 _ACEOF
5996 chmod +x $CONFIG_STATUS
5997 ac_clean_files=$ac_clean_files_save
6000 # configure is writing to config.log, and then calls config.status.
6001 # config.status does its own redirection, appending to config.log.
6002 # Unfortunately, on DOS this fails, as config.log is still kept open
6003 # by configure, so config.status won't be able to write to it; its
6004 # output is simply discarded. So we exec the FD to /dev/null,
6005 # effectively closing config.log, so it can be properly (re)opened and
6006 # appended to by config.status. When coming back to configure, we
6007 # need to make the FD available again.
6008 if test "$no_create" != yes; then
6009 ac_cs_success=:
6010 ac_config_status_args=
6011 test "$silent" = yes &&
6012 ac_config_status_args="$ac_config_status_args --quiet"
6013 exec 5>/dev/null
6014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6015 exec 5>>config.log
6016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6017 # would make configure fail if this is the last instruction.
6018 $ac_cs_success || { (exit 1); exit 1; }