* config/mips/mips.md (any_shift): New code macro.
[official-gcc.git] / libobjc / configure
blobcb635a7bef8f3ef89fec79f9854f8a8029043d94
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libobjc'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="objc/objc.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION OBJC_BOEHM_GC toplevel_srcdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir gcc_version toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP CPPFLAGS EGREP GTHREAD_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
763 # Report the --help message.
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
769 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
776 Defaults for the options are specified in brackets.
778 Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
789 _ACEOF
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
803 For better control, use the options below.
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818 _ACEOF
820 cat <<\_ACEOF
822 System types:
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
826 _ACEOF
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of package-unused version-unused:";;
832 esac
833 cat <<\_ACEOF
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-multilib build hella library versions (default)
839 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
840 --enable-objc-gc enable the use of Boehm's garbage collector with
841 the GNU Objective-C runtime.
842 --enable-shared=PKGS build shared libraries default=yes
843 --enable-static=PKGS build static libraries default=yes
844 --enable-fast-install=PKGS optimize for fast installation default=yes
845 --disable-libtool-lock avoid locking (might break parallel builds)
847 Optional Packages:
848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
850 --with-target-subdir=SUBDIR
851 configuring in a subdirectory
852 --with-cross-host=HOST configuring with a cross compiler
853 --with-gnu-ld assume the C compiler uses GNU ld default=no
854 --with-pic try to use only PIC/non-PIC objects default=use both
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
868 _ACEOF
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883 ac_dir_suffix= ac_top_builddir=
886 case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
904 case `pwd` in
905 .) ac_abs_builddir="$ac_dir";;
907 case "$ac_dir" in
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 esac;;
912 esac
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
925 case $ac_srcdir in
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 esac;;
939 esac
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 cd $ac_popdir
957 done
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962 cat <<\_ACEOF
963 package-unused configure version-unused
964 generated by GNU Autoconf 2.59
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by package-unused $as_me version-unused, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
980 $ $0 $@
982 _ACEOF
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 _ASUNAME
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1016 } >&5
1018 cat >&5 <<_ACEOF
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1025 _ACEOF
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1040 for ac_arg
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1087 echo
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 esac;
1110 echo
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1211 done
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 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 # Also toolexecdir, though it's only used in toolexeclibdir
1557 case ${version_specific_libs} in
1558 yes)
1559 # Need the gcc compiler version to know where to install libraries
1560 # and header files if --enable-version-specific-runtime-libs option
1561 # is selected.
1562 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1563 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1566 if test -n "$with_cross_host" &&
1567 test x"$with_cross_host" != x"no"; then
1568 # Install a library built with a cross compiler in tooldir, not libdir.
1569 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1570 toolexeclibdir='$(toolexecdir)/lib'
1571 else
1572 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1573 toolexeclibdir='$(libdir)'
1575 multi_os_directory=`$CC -print-multi-os-directory`
1576 case $multi_os_directory in
1577 .) ;; # Avoid trailing /.
1578 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1579 esac
1581 esac
1585 # Figure out if we want to name the include directory and the
1586 # library name changes differently.
1587 includedirname=include
1588 libext=
1589 case "${host}" in
1590 *-darwin*)
1591 # Darwin is the only target so far that needs a different include directory.
1592 includedirname=include-gnu-runtime
1593 libext=-gnu
1595 esac
1599 # --------
1600 # Programs
1601 # --------
1605 # We must force CC to /not/ be a precious variable; otherwise
1606 # the wrong, non-multilib-adjusted value will be used in multilibs.
1607 # As a side effect, we have to subst CFLAGS ourselves.
1610 ac_ext=c
1611 ac_cpp='$CPP $CPPFLAGS'
1612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_CC"; then
1653 ac_ct_CC=$CC
1654 # Extract the first word of "gcc", so it can be a program name with args.
1655 set dummy gcc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_CC="gcc"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1675 done
1676 done
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 CC=$ac_ct_CC
1690 else
1691 CC="$ac_cv_prog_CC"
1694 if test -z "$CC"; then
1695 if test -n "$ac_tool_prefix"; then
1696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1697 set dummy ${ac_tool_prefix}cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="${ac_tool_prefix}cc"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1717 done
1718 done
1722 CC=$ac_cv_prog_CC
1723 if test -n "$CC"; then
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725 echo "${ECHO_T}$CC" >&6
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1732 if test -z "$ac_cv_prog_CC"; then
1733 ac_ct_CC=$CC
1734 # Extract the first word of "cc", so it can be a program name with args.
1735 set dummy cc; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1747 IFS=$as_save_IFS
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC="cc"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 break 2
1755 done
1756 done
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 CC=$ac_ct_CC
1770 else
1771 CC="$ac_cv_prog_CC"
1775 if test -z "$CC"; then
1776 # Extract the first word of "cc", so it can be a program name with args.
1777 set dummy cc; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 else
1786 ac_prog_rejected=no
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1795 ac_prog_rejected=yes
1796 continue
1798 ac_cv_prog_CC="cc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
1802 done
1803 done
1805 if test $ac_prog_rejected = yes; then
1806 # We found a bogon in the path, so make sure we never use it.
1807 set dummy $ac_cv_prog_CC
1808 shift
1809 if test $# != 0; then
1810 # We chose a different compiler from the bogus one.
1811 # However, it has the same basename, so the bogon will be chosen
1812 # first if we set CC to just the basename; use the full file name.
1813 shift
1814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$CC"; then
1830 if test -n "$ac_tool_prefix"; then
1831 for ac_prog in cl
1833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1854 done
1855 done
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1868 test -n "$CC" && break
1869 done
1871 if test -z "$CC"; then
1872 ac_ct_CC=$CC
1873 for ac_prog in cl
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_ac_ct_CC="$ac_prog"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1896 done
1897 done
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1905 else
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1910 test -n "$ac_ct_CC" && break
1911 done
1913 CC=$ac_ct_CC
1919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: no acceptable C compiler found in \$PATH
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1925 # Provide some information about the compiler.
1926 echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928 ac_compiler=`set X $ac_compile; echo $2`
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1953 main ()
1957 return 0;
1959 _ACEOF
1960 # FIXME: Cleanup?
1961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1962 (eval $ac_link) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 gcc_no_link=no
1967 else
1968 gcc_no_link=yes
1971 if test x$gcc_no_link = xyes; then
1972 # Setting cross_compile will disable run tests; it will
1973 # also disable AC_CHECK_FILE but that's generally
1974 # correct if we can't link.
1975 cross_compiling=yes
1976 EXEEXT=
1977 else
1978 cat >conftest.$ac_ext <<_ACEOF
1979 /* confdefs.h. */
1980 _ACEOF
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h. */
1986 main ()
1990 return 0;
1992 _ACEOF
1993 ac_clean_files_save=$ac_clean_files
1994 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1995 # Try to create an executable without -o first, disregard a.out.
1996 # It will help us diagnose broken compilers, and finding out an intuition
1997 # of exeext.
1998 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1999 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2000 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2001 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2002 (eval $ac_link_default) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; then
2006 # Find the output, starting from the most likely. This scheme is
2007 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2008 # resort.
2010 # Be careful to initialize this variable, since it used to be cached.
2011 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2012 ac_cv_exeext=
2013 # b.out is created by i960 compilers.
2014 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2016 test -f "$ac_file" || continue
2017 case $ac_file in
2018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2020 conftest.$ac_ext )
2021 # This is the source file.
2023 [ab].out )
2024 # We found the default executable, but exeext='' is most
2025 # certainly right.
2026 break;;
2027 *.* )
2028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2029 # FIXME: I believe we export ac_cv_exeext for Libtool,
2030 # but it would be cool to find out if it's true. Does anybody
2031 # maintain Libtool? --akim.
2032 export ac_cv_exeext
2033 break;;
2035 break;;
2036 esac
2037 done
2038 else
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: C compiler cannot create executables
2045 See \`config.log' for more details." >&2;}
2046 { (exit 77); exit 77; }; }
2049 ac_exeext=$ac_cv_exeext
2050 echo "$as_me:$LINENO: result: $ac_file" >&5
2051 echo "${ECHO_T}$ac_file" >&6
2053 # Check the compiler produces executables we can run. If not, either
2054 # the compiler is broken, or we cross compile.
2055 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2056 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2057 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2058 # If not cross compiling, check that we can run a simple program.
2059 if test "$cross_compiling" != yes; then
2060 if { ac_try='./$ac_file'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 cross_compiling=no
2067 else
2068 if test "$cross_compiling" = maybe; then
2069 cross_compiling=yes
2070 else
2071 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2072 If you meant to cross compile, use \`--host'.
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: cannot run C compiled programs.
2075 If you meant to cross compile, use \`--host'.
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2081 echo "$as_me:$LINENO: result: yes" >&5
2082 echo "${ECHO_T}yes" >&6
2084 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2085 ac_clean_files=$ac_clean_files_save
2086 # Check the compiler produces executables we can run. If not, either
2087 # the compiler is broken, or we cross compile.
2088 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2089 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2090 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2091 echo "${ECHO_T}$cross_compiling" >&6
2093 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2094 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2096 (eval $ac_link) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2101 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2102 # work properly (i.e., refer to `conftest.exe'), while it won't with
2103 # `rm'.
2104 for ac_file in conftest.exe conftest conftest.*; do
2105 test -f "$ac_file" || continue
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 export ac_cv_exeext
2110 break;;
2111 * ) break;;
2112 esac
2113 done
2114 else
2115 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2122 rm -f conftest$ac_cv_exeext
2123 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2124 echo "${ECHO_T}$ac_cv_exeext" >&6
2126 rm -f conftest.$ac_ext
2127 EXEEXT=$ac_cv_exeext
2128 ac_exeext=$EXEEXT
2130 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132 if test "${ac_cv_objext+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2143 main ()
2147 return 0;
2149 _ACEOF
2150 rm -f conftest.o conftest.obj
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160 break;;
2161 esac
2162 done
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2176 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177 echo "${ECHO_T}$ac_cv_objext" >&6
2178 OBJEXT=$ac_cv_objext
2179 ac_objext=$OBJEXT
2180 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h. */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2193 main ()
2195 #ifndef __GNUC__
2196 choke me
2197 #endif
2200 return 0;
2202 _ACEOF
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 ac_compiler_gnu=yes
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2230 ac_compiler_gnu=no
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2241 CFLAGS="-g"
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2255 main ()
2259 return 0;
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2265 ac_status=$?
2266 grep -v '^ *+' conftest.er1 >conftest.err
2267 rm -f conftest.er1
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 ac_cv_prog_cc_g=yes
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2289 ac_cv_prog_cc_g=no
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295 if test "$ac_test_CFLAGS" = set; then
2296 CFLAGS=$ac_save_CFLAGS
2297 elif test $ac_cv_prog_cc_g = yes; then
2298 if test "$GCC" = yes; then
2299 CFLAGS="-g -O2"
2300 else
2301 CFLAGS="-g"
2303 else
2304 if test "$GCC" = yes; then
2305 CFLAGS="-O2"
2306 else
2307 CFLAGS=
2310 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 ac_cv_prog_cc_stdc=no
2316 ac_save_CC=$CC
2317 cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h. */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2323 #include <stdarg.h>
2324 #include <stdio.h>
2325 #include <sys/types.h>
2326 #include <sys/stat.h>
2327 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2328 struct buf { int x; };
2329 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330 static char *e (p, i)
2331 char **p;
2332 int i;
2334 return p[i];
2336 static char *f (char * (*g) (char **, int), char **p, ...)
2338 char *s;
2339 va_list v;
2340 va_start (v,p);
2341 s = g (p, va_arg (v,int));
2342 va_end (v);
2343 return s;
2346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2347 function prototypes and stuff, but not '\xHH' hex character constants.
2348 These don't provoke an error unfortunately, instead are silently treated
2349 as 'x'. The following induces an error, until -std1 is added to get
2350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2351 array size at least. It's necessary to write '\x00'==0 to get something
2352 that's true only with -std1. */
2353 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2355 int test (int i, double x);
2356 struct s1 {int (*f) (int a);};
2357 struct s2 {int (*f) (double a);};
2358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359 int argc;
2360 char **argv;
2362 main ()
2364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2366 return 0;
2368 _ACEOF
2369 # Don't try gcc -ansi; that turns off useful extensions and
2370 # breaks some systems' header files.
2371 # AIX -qlanglvl=ansi
2372 # Ultrix and OSF/1 -std1
2373 # HP-UX 10.20 and later -Ae
2374 # HP-UX older versions -Aa -D_HPUX_SOURCE
2375 # SVR4 -Xc -D__EXTENSIONS__
2376 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2378 CC="$ac_save_CC $ac_arg"
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_prog_cc_stdc=$ac_arg
2402 break
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext
2409 done
2410 rm -f conftest.$ac_ext conftest.$ac_objext
2411 CC=$ac_save_CC
2415 case "x$ac_cv_prog_cc_stdc" in
2416 x|xno)
2417 echo "$as_me:$LINENO: result: none needed" >&5
2418 echo "${ECHO_T}none needed" >&6 ;;
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2422 CC="$CC $ac_cv_prog_cc_stdc" ;;
2423 esac
2425 # Some people use a C++ compiler to compile C. Since we use `exit',
2426 # in C++ we need to declare it. In case someone uses the same compiler
2427 # for both compiling C and C++ we need to have the C++ compiler decide
2428 # the declaration of exit, since it's the most demanding environment.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #ifndef __cplusplus
2431 choke me
2432 #endif
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 for ac_declaration in \
2457 '' \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2462 'void exit (int);'
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470 $ac_declaration
2471 #include <stdlib.h>
2473 main ()
2475 exit (42);
2477 return 0;
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2483 ac_status=$?
2484 grep -v '^ *+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_c_werror_flag"
2490 || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 continue
2509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2516 $ac_declaration
2518 main ()
2520 exit (42);
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 break
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}as; ac_word=$2
2581 echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583 if test "${ac_cv_prog_AS+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$AS"; then
2587 ac_cv_prog_AS="$AS" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_AS="${ac_tool_prefix}as"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2605 AS=$ac_cv_prog_AS
2606 if test -n "$AS"; then
2607 echo "$as_me:$LINENO: result: $AS" >&5
2608 echo "${ECHO_T}$AS" >&6
2609 else
2610 echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2615 if test -z "$ac_cv_prog_AS"; then
2616 ac_ct_AS=$AS
2617 # Extract the first word of "as", so it can be a program name with args.
2618 set dummy as; ac_word=$2
2619 echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 if test -n "$ac_ct_AS"; then
2625 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_ac_ct_AS="as"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2638 done
2639 done
2643 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2644 if test -n "$ac_ct_AS"; then
2645 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2646 echo "${ECHO_T}$ac_ct_AS" >&6
2647 else
2648 echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2652 AS=$ac_ct_AS
2653 else
2654 AS="$ac_cv_prog_AS"
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}ar; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_AR+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test -n "$AR"; then
2666 ac_cv_prog_AR="$AR" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_AR="${ac_tool_prefix}ar"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2679 done
2680 done
2684 AR=$ac_cv_prog_AR
2685 if test -n "$AR"; then
2686 echo "$as_me:$LINENO: result: $AR" >&5
2687 echo "${ECHO_T}$AR" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2694 if test -z "$ac_cv_prog_AR"; then
2695 ac_ct_AR=$AR
2696 # Extract the first word of "ar", so it can be a program name with args.
2697 set dummy ar; ac_word=$2
2698 echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 if test -n "$ac_ct_AR"; then
2704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_AR="ar"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2722 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2723 if test -n "$ac_ct_AR"; then
2724 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2725 echo "${ECHO_T}$ac_ct_AR" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2731 AR=$ac_ct_AR
2732 else
2733 AR="$ac_cv_prog_AR"
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_RANLIB+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 if test -n "$RANLIB"; then
2745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2763 RANLIB=$ac_cv_prog_RANLIB
2764 if test -n "$RANLIB"; then
2765 echo "$as_me:$LINENO: result: $RANLIB" >&5
2766 echo "${ECHO_T}$RANLIB" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2773 if test -z "$ac_cv_prog_RANLIB"; then
2774 ac_ct_RANLIB=$RANLIB
2775 # Extract the first word of "ranlib", so it can be a program name with args.
2776 set dummy ranlib; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$ac_ct_RANLIB"; then
2783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_ac_ct_RANLIB="ranlib"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2799 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2803 if test -n "$ac_ct_RANLIB"; then
2804 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2805 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2806 else
2807 echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2811 RANLIB=$ac_ct_RANLIB
2812 else
2813 RANLIB="$ac_cv_prog_RANLIB"
2816 # Find a good install program. We prefer a C program (faster),
2817 # so one script is as good as another. But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2822 # AIX /bin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2831 if test -z "$INSTALL"; then
2832 if test "${ac_cv_path_install+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 # Account for people who put trailing slashes in PATH elements.
2841 case $as_dir/ in
2842 ./ | .// | /cC/* | \
2843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2844 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2845 /usr/ucb/* ) ;;
2847 # OSF1 and SCO ODT 3.0 have their own names for install.
2848 # Don't use installbsd from OSF since it installs stuff as root
2849 # by default.
2850 for ac_prog in ginstall scoinst install; do
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2853 if test $ac_prog = install &&
2854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2855 # AIX install. It has an incompatible calling convention.
2857 elif test $ac_prog = install &&
2858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2859 # program-specific install script used by HP pwplus--don't use.
2861 else
2862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2863 break 3
2866 done
2867 done
2869 esac
2870 done
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. We don't cache a
2878 # path for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the path is relative.
2881 INSTALL=$ac_install_sh
2884 echo "$as_me:$LINENO: result: $INSTALL" >&5
2885 echo "${ECHO_T}$INSTALL" >&6
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896 # Enable Win32 DLL on MS Windows - FIXME
2899 # Check whether --enable-shared or --disable-shared was given.
2900 if test "${enable_shared+set}" = set; then
2901 enableval="$enable_shared"
2902 p=${PACKAGE-default}
2903 case $enableval in
2904 yes) enable_shared=yes ;;
2905 no) enable_shared=no ;;
2907 enable_shared=no
2908 # Look at the argument we got. We use all the common list separators.
2909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2910 for pkg in $enableval; do
2911 if test "X$pkg" = "X$p"; then
2912 enable_shared=yes
2914 done
2915 IFS="$ac_save_ifs"
2917 esac
2918 else
2919 enable_shared=yes
2921 # Check whether --enable-static or --disable-static was given.
2922 if test "${enable_static+set}" = set; then
2923 enableval="$enable_static"
2924 p=${PACKAGE-default}
2925 case $enableval in
2926 yes) enable_static=yes ;;
2927 no) enable_static=no ;;
2929 enable_static=no
2930 # Look at the argument we got. We use all the common list separators.
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2932 for pkg in $enableval; do
2933 if test "X$pkg" = "X$p"; then
2934 enable_static=yes
2936 done
2937 IFS="$ac_save_ifs"
2939 esac
2940 else
2941 enable_static=yes
2943 # Check whether --enable-fast-install or --disable-fast-install was given.
2944 if test "${enable_fast_install+set}" = set; then
2945 enableval="$enable_fast_install"
2946 p=${PACKAGE-default}
2947 case $enableval in
2948 yes) enable_fast_install=yes ;;
2949 no) enable_fast_install=no ;;
2951 enable_fast_install=no
2952 # Look at the argument we got. We use all the common list separators.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2954 for pkg in $enableval; do
2955 if test "X$pkg" = "X$p"; then
2956 enable_fast_install=yes
2958 done
2959 IFS="$ac_save_ifs"
2961 esac
2962 else
2963 enable_fast_install=yes
2966 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2967 if test "${with_gnu_ld+set}" = set; then
2968 withval="$with_gnu_ld"
2969 test "$withval" = no || with_gnu_ld=yes
2970 else
2971 with_gnu_ld=no
2973 ac_prog=ld
2974 if test "$GCC" = yes; then
2975 # Check if gcc -print-prog-name=ld gives a path.
2976 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2977 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2978 case $host in
2979 *-*-mingw*)
2980 # gcc leaves a trailing carriage return which upsets mingw
2981 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2983 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2984 esac
2985 case $ac_prog in
2986 # Accept absolute paths.
2987 [\\/]* | [A-Za-z]:[\\/]*)
2988 re_direlt='/[^/][^/]*/\.\./'
2989 # Canonicalize the path of ld
2990 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2991 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2992 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2993 done
2994 test -z "$LD" && LD="$ac_prog"
2997 # If it fails, then pretend we aren't using GCC.
2998 ac_prog=ld
3001 # If it is relative, then search for the first ld in PATH.
3002 with_gnu_ld=unknown
3004 esac
3005 elif test "$with_gnu_ld" = yes; then
3006 echo "$as_me:$LINENO: checking for GNU ld" >&5
3007 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3008 else
3009 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3010 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3012 if test "${lt_cv_path_LD+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 if test -z "$LD"; then
3016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3017 for ac_dir in $PATH; do
3018 test -z "$ac_dir" && ac_dir=.
3019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3020 lt_cv_path_LD="$ac_dir/$ac_prog"
3021 # Check to see if the program is GNU ld. I'd rather use --version,
3022 # but apparently some GNU ld's only accept -v.
3023 # Break only if it was the GNU/non-GNU ld that we prefer.
3024 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3025 test "$with_gnu_ld" != no && break
3026 else
3027 test "$with_gnu_ld" != yes && break
3030 done
3031 IFS="$ac_save_ifs"
3032 else
3033 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3037 LD="$lt_cv_path_LD"
3038 if test -n "$LD"; then
3039 echo "$as_me:$LINENO: result: $LD" >&5
3040 echo "${ECHO_T}$LD" >&6
3041 else
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3045 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3046 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3047 { (exit 1); exit 1; }; }
3048 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3049 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3050 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3054 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3055 lt_cv_prog_gnu_ld=yes
3056 else
3057 lt_cv_prog_gnu_ld=no
3060 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3061 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3062 with_gnu_ld=$lt_cv_prog_gnu_ld
3065 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3066 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3067 if test "${lt_cv_ld_reload_flag+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 lt_cv_ld_reload_flag='-r'
3072 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3073 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3074 reload_flag=$lt_cv_ld_reload_flag
3075 test -n "$reload_flag" && reload_flag=" $reload_flag"
3077 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3078 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3079 if test "${lt_cv_path_NM+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 if test -n "$NM"; then
3083 # Let the user override the test.
3084 lt_cv_path_NM="$NM"
3085 else
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3087 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3088 test -z "$ac_dir" && ac_dir=.
3089 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3090 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3091 # Check to see if the nm accepts a BSD-compat flag.
3092 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3093 # nm: unknown option "B" ignored
3094 # Tru64's nm complains that /dev/null is an invalid object file
3095 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3096 lt_cv_path_NM="$tmp_nm -B"
3097 break
3098 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3099 lt_cv_path_NM="$tmp_nm -p"
3100 break
3101 else
3102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3103 continue # so that we can try to find one that supports BSD flags
3106 done
3107 IFS="$ac_save_ifs"
3108 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3112 NM="$lt_cv_path_NM"
3113 echo "$as_me:$LINENO: result: $NM" >&5
3114 echo "${ECHO_T}$NM" >&6
3116 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3117 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3118 LN_S=$as_ln_s
3119 if test "$LN_S" = "ln -s"; then
3120 echo "$as_me:$LINENO: result: yes" >&5
3121 echo "${ECHO_T}yes" >&6
3122 else
3123 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3124 echo "${ECHO_T}no, using $LN_S" >&6
3127 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3128 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3129 if test "${lt_cv_deplibs_check_method+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 lt_cv_file_magic_cmd='$MAGIC_CMD'
3133 lt_cv_file_magic_test_file=
3134 lt_cv_deplibs_check_method='unknown'
3135 # Need to set the preceding variable on all platforms that support
3136 # interlibrary dependencies.
3137 # 'none' -- dependencies not supported.
3138 # `unknown' -- same as none, but documents that we really don't know.
3139 # 'pass_all' -- all dependencies passed with no checks.
3140 # 'test_compile' -- check by making test program.
3141 # 'file_magic [regex]' -- check by looking for files in library path
3142 # which responds to the $file_magic_cmd with a given egrep regex.
3143 # If you have `file' or equivalent on your system and you're not sure
3144 # whether `pass_all' will *always* work, you probably want this one.
3146 case $host_os in
3147 aix*)
3148 lt_cv_deplibs_check_method=pass_all
3151 beos*)
3152 lt_cv_deplibs_check_method=pass_all
3155 bsdi4*)
3156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3157 lt_cv_file_magic_cmd='/usr/bin/file -L'
3158 lt_cv_file_magic_test_file=/shlib/libc.so
3161 cygwin* | mingw* |pw32*)
3162 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3163 lt_cv_file_magic_cmd='$OBJDUMP -f'
3166 darwin* | rhapsody*)
3167 # this will be overwritten by pass_all, but leave it in just in case
3168 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3169 lt_cv_file_magic_cmd='/usr/bin/file -L'
3170 case "$host_os" in
3171 rhapsody* | darwin1.012)
3172 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3174 *) # Darwin 1.3 on
3175 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3177 esac
3178 lt_cv_deplibs_check_method=pass_all
3181 freebsd* | kfreebsd*-gnu)
3182 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3183 case $host_cpu in
3184 i*86 )
3185 # Not sure whether the presence of OpenBSD here was a mistake.
3186 # Let's accept both of them until this is cleared up.
3187 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3188 lt_cv_file_magic_cmd=/usr/bin/file
3189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3191 esac
3192 else
3193 lt_cv_deplibs_check_method=pass_all
3197 gnu*)
3198 lt_cv_deplibs_check_method=pass_all
3201 hpux10.20*|hpux11*)
3202 case $host_cpu in
3203 hppa*)
3204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3205 lt_cv_file_magic_cmd=/usr/bin/file
3206 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3208 ia64*)
3209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3210 lt_cv_file_magic_cmd=/usr/bin/file
3211 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3213 esac
3216 irix5* | irix6*)
3217 case $host_os in
3218 irix5*)
3219 # this will be overridden with pass_all, but let us keep it just in case
3220 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3223 case $LD in
3224 *-32|*"-32 ") libmagic=32-bit;;
3225 *-n32|*"-n32 ") libmagic=N32;;
3226 *-64|*"-64 ") libmagic=64-bit;;
3227 *) libmagic=never-match;;
3228 esac
3229 # this will be overridden with pass_all, but let us keep it just in case
3230 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3232 esac
3233 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3234 lt_cv_deplibs_check_method=pass_all
3237 # This must be Linux ELF.
3238 linux-gnu*)
3239 case $host_cpu in
3240 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3241 lt_cv_deplibs_check_method=pass_all ;;
3243 # glibc up to 2.1.1 does not perform some relocations on ARM
3244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3245 esac
3246 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3249 netbsd* | knetbsd*-gnu)
3250 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3251 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3252 else
3253 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3257 newsos6)
3258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3259 lt_cv_file_magic_cmd=/usr/bin/file
3260 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3263 osf3* | osf4* | osf5*)
3264 # this will be overridden with pass_all, but let us keep it just in case
3265 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3266 lt_cv_file_magic_test_file=/shlib/libc.so
3267 lt_cv_deplibs_check_method=pass_all
3270 sco3.2v5*)
3271 lt_cv_deplibs_check_method=pass_all
3274 solaris*)
3275 lt_cv_deplibs_check_method=pass_all
3276 lt_cv_file_magic_test_file=/lib/libc.so
3279 sysv5uw[78]* | sysv4*uw2*)
3280 lt_cv_deplibs_check_method=pass_all
3283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3284 case $host_vendor in
3285 ncr)
3286 lt_cv_deplibs_check_method=pass_all
3288 motorola)
3289 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]'
3290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3292 esac
3294 esac
3297 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3298 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3299 file_magic_cmd=$lt_cv_file_magic_cmd
3300 deplibs_check_method=$lt_cv_deplibs_check_method
3306 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3308 # Only perform the check for file, if the check method requires it
3309 case $deplibs_check_method in
3310 file_magic*)
3311 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3312 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3313 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 case $MAGIC_CMD in
3319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3321 ?:/*)
3322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3325 ac_save_MAGIC_CMD="$MAGIC_CMD"
3326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 ac_dummy="/usr/bin:$PATH"
3328 for ac_dir in $ac_dummy; do
3329 test -z "$ac_dir" && ac_dir=.
3330 if test -f $ac_dir/${ac_tool_prefix}file; then
3331 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3332 if test -n "$file_magic_test_file"; then
3333 case $deplibs_check_method in
3334 "file_magic "*)
3335 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3338 egrep "$file_magic_regex" > /dev/null; then
3340 else
3341 cat <<EOF 1>&2
3343 *** Warning: the command libtool uses to detect shared libraries,
3344 *** $file_magic_cmd, produces output that libtool cannot recognize.
3345 *** The result is that libtool may fail to recognize shared libraries
3346 *** as such. This will affect the creation of libtool libraries that
3347 *** depend on shared libraries, but programs linked with such libtool
3348 *** libraries will work regardless of this problem. Nevertheless, you
3349 *** may want to report the problem to your system manager and/or to
3350 *** bug-libtool@gnu.org
3353 fi ;;
3354 esac
3356 break
3358 done
3359 IFS="$ac_save_ifs"
3360 MAGIC_CMD="$ac_save_MAGIC_CMD"
3362 esac
3365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3366 if test -n "$MAGIC_CMD"; then
3367 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3368 echo "${ECHO_T}$MAGIC_CMD" >&6
3369 else
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 if test -z "$lt_cv_path_MAGIC_CMD"; then
3375 if test -n "$ac_tool_prefix"; then
3376 echo "$as_me:$LINENO: checking for file" >&5
3377 echo $ECHO_N "checking for file... $ECHO_C" >&6
3378 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 case $MAGIC_CMD in
3383 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3385 ?:/*)
3386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3389 ac_save_MAGIC_CMD="$MAGIC_CMD"
3390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3391 ac_dummy="/usr/bin:$PATH"
3392 for ac_dir in $ac_dummy; do
3393 test -z "$ac_dir" && ac_dir=.
3394 if test -f $ac_dir/file; then
3395 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3396 if test -n "$file_magic_test_file"; then
3397 case $deplibs_check_method in
3398 "file_magic "*)
3399 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3402 egrep "$file_magic_regex" > /dev/null; then
3404 else
3405 cat <<EOF 1>&2
3407 *** Warning: the command libtool uses to detect shared libraries,
3408 *** $file_magic_cmd, produces output that libtool cannot recognize.
3409 *** The result is that libtool may fail to recognize shared libraries
3410 *** as such. This will affect the creation of libtool libraries that
3411 *** depend on shared libraries, but programs linked with such libtool
3412 *** libraries will work regardless of this problem. Nevertheless, you
3413 *** may want to report the problem to your system manager and/or to
3414 *** bug-libtool@gnu.org
3417 fi ;;
3418 esac
3420 break
3422 done
3423 IFS="$ac_save_ifs"
3424 MAGIC_CMD="$ac_save_MAGIC_CMD"
3426 esac
3429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3430 if test -n "$MAGIC_CMD"; then
3431 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3432 echo "${ECHO_T}$MAGIC_CMD" >&6
3433 else
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3438 else
3439 MAGIC_CMD=:
3445 esac
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_RANLIB+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 if test -n "$RANLIB"; then
3456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3469 done
3470 done
3474 RANLIB=$ac_cv_prog_RANLIB
3475 if test -n "$RANLIB"; then
3476 echo "$as_me:$LINENO: result: $RANLIB" >&5
3477 echo "${ECHO_T}$RANLIB" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_prog_RANLIB"; then
3485 ac_ct_RANLIB=$RANLIB
3486 # Extract the first word of "ranlib", so it can be a program name with args.
3487 set dummy ranlib; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$ac_ct_RANLIB"; then
3494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_ac_ct_RANLIB="ranlib"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3510 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3514 if test -n "$ac_ct_RANLIB"; then
3515 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3516 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3522 RANLIB=$ac_ct_RANLIB
3523 else
3524 RANLIB="$ac_cv_prog_RANLIB"
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}strip; ac_word=$2
3530 echo "$as_me:$LINENO: checking for $ac_word" >&5
3531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532 if test "${ac_cv_prog_STRIP+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 if test -n "$STRIP"; then
3536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3549 done
3550 done
3554 STRIP=$ac_cv_prog_STRIP
3555 if test -n "$STRIP"; then
3556 echo "$as_me:$LINENO: result: $STRIP" >&5
3557 echo "${ECHO_T}$STRIP" >&6
3558 else
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3564 if test -z "$ac_cv_prog_STRIP"; then
3565 ac_ct_STRIP=$STRIP
3566 # Extract the first word of "strip", so it can be a program name with args.
3567 set dummy strip; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 if test -n "$ac_ct_STRIP"; then
3574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_ac_ct_STRIP="strip"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3590 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3594 if test -n "$ac_ct_STRIP"; then
3595 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3596 echo "${ECHO_T}$ac_ct_STRIP" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3602 STRIP=$ac_ct_STRIP
3603 else
3604 STRIP="$ac_cv_prog_STRIP"
3608 # Check for any special flags to pass to ltconfig.
3609 libtool_flags="--cache-file=$cache_file"
3610 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3611 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3612 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3613 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3614 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3617 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3618 if test "${enable_libtool_lock+set}" = set; then
3619 enableval="$enable_libtool_lock"
3622 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3623 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3626 # Check whether --with-pic or --without-pic was given.
3627 if test "${with_pic+set}" = set; then
3628 withval="$with_pic"
3629 pic_mode="$withval"
3630 else
3631 pic_mode=default
3633 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3634 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3636 # Some flags need to be propagated to the compiler or linker for good
3637 # libtool support.
3638 case $host in
3639 *-*-irix6*)
3640 # Find out which ABI we are using.
3641 echo '#line 3641 "configure"' > conftest.$ac_ext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 if test "$lt_cv_prog_gnu_ld" = yes; then
3648 case `/usr/bin/file conftest.$ac_objext` in
3649 *32-bit*)
3650 LD="${LD-ld} -melf32bsmip"
3652 *N32*)
3653 LD="${LD-ld} -melf32bmipn32"
3655 *64-bit*)
3656 LD="${LD-ld} -melf64bmip"
3658 esac
3659 else
3660 case `/usr/bin/file conftest.$ac_objext` in
3661 *32-bit*)
3662 LD="${LD-ld} -32"
3664 *N32*)
3665 LD="${LD-ld} -n32"
3667 *64-bit*)
3668 LD="${LD-ld} -64"
3670 esac
3673 rm -rf conftest*
3676 ia64-*-hpux*)
3677 # Find out which ABI we are using.
3678 echo 'int i;' > conftest.$ac_ext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 case "`/usr/bin/file conftest.o`" in
3685 *ELF-32*)
3686 HPUX_IA64_MODE="32"
3688 *ELF-64*)
3689 HPUX_IA64_MODE="64"
3691 esac
3693 rm -rf conftest*
3696 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3697 # Find out which ABI we are using.
3698 echo 'int i;' > conftest.$ac_ext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 case "`/usr/bin/file conftest.o`" in
3705 *32-bit*)
3706 case $host in
3707 x86_64-*linux*)
3708 LD="${LD-ld} -m elf_i386"
3710 ppc64-*linux*|powerpc64-*linux*)
3711 LD="${LD-ld} -m elf32ppclinux"
3713 s390x-*linux*)
3714 LD="${LD-ld} -m elf_s390"
3716 sparc64-*linux*)
3717 LD="${LD-ld} -m elf32_sparc"
3719 esac
3721 *64-bit*)
3722 case $host in
3723 x86_64-*linux*)
3724 LD="${LD-ld} -m elf_x86_64"
3726 ppc*-*linux*|powerpc*-*linux*)
3727 LD="${LD-ld} -m elf64ppc"
3729 s390*-*linux*)
3730 LD="${LD-ld} -m elf64_s390"
3732 sparc*-*linux*)
3733 LD="${LD-ld} -m elf64_sparc"
3735 esac
3737 esac
3739 rm -rf conftest*
3742 *-*-sco3.2v5*)
3743 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3744 SAVE_CFLAGS="$CFLAGS"
3745 CFLAGS="$CFLAGS -belf"
3746 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3747 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3748 if test "${lt_cv_cc_needs_belf+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 if test x$gcc_no_link = xyes; then
3760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3762 { (exit 1); exit 1; }; }
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3772 main ()
3776 return 0;
3778 _ACEOF
3779 rm -f conftest.$ac_objext conftest$ac_exeext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781 (eval $ac_link) 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 lt_cv_cc_needs_belf=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 lt_cv_cc_needs_belf=no
3808 rm -f conftest.err conftest.$ac_objext \
3809 conftest$ac_exeext conftest.$ac_ext
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3818 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3819 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3821 CFLAGS="$SAVE_CFLAGS"
3826 esac
3829 # Save cache, so that ltconfig can load it
3830 cat >confcache <<\_ACEOF
3831 # This file is a shell script that caches the results of configure
3832 # tests run on this system so they can be shared between configure
3833 # scripts and configure runs, see configure's option --config-cache.
3834 # It is not useful on other systems. If it contains results you don't
3835 # want to keep, you may remove or edit it.
3837 # config.status only pays attention to the cache file if you give it
3838 # the --recheck option to rerun configure.
3840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3842 # following values.
3844 _ACEOF
3846 # The following way of writing the cache mishandles newlines in values,
3847 # but we know of no workaround that is simple, portable, and efficient.
3848 # So, don't put newlines in cache variables' values.
3849 # Ultrix sh set writes to stderr and can't be redirected directly,
3850 # and sets the high bit in the cache file unless we assign to the vars.
3852 (set) 2>&1 |
3853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3854 *ac_space=\ *)
3855 # `set' does not quote correctly, so add quotes (double-quote
3856 # substitution turns \\\\ into \\, and sed turns \\ into \).
3857 sed -n \
3858 "s/'/'\\\\''/g;
3859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3862 # `set' quotes correctly as required by POSIX, so do not add quotes.
3863 sed -n \
3864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3866 esac;
3868 sed '
3869 t clear
3870 : clear
3871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3872 t end
3873 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3874 : end' >>confcache
3875 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3876 if test -w $cache_file; then
3877 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3878 cat confcache >$cache_file
3879 else
3880 echo "not updating unwritable cache $cache_file"
3883 rm -f confcache
3885 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3886 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3887 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3888 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3889 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3890 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3891 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3892 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3893 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3894 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3895 echo "$as_me: error: libtool configure failed" >&2;}
3896 { (exit 1); exit 1; }; }
3898 # Reload cache, that may have been modified by ltconfig
3899 if test -r "$cache_file"; then
3900 # Some versions of bash will fail to source /dev/null (special
3901 # files actually), so we avoid doing that.
3902 if test -f "$cache_file"; then
3903 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3904 echo "$as_me: loading cache $cache_file" >&6;}
3905 case $cache_file in
3906 [\\/]* | ?:[\\/]* ) . $cache_file;;
3907 *) . ./$cache_file;;
3908 esac
3910 else
3911 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3912 echo "$as_me: creating cache $cache_file" >&6;}
3913 >$cache_file
3917 # This can be used to rebuild libtool when needed
3918 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3920 # Always use our own libtool.
3921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3923 # Redirect the config.log output again, so that the ltconfig log is not
3924 # clobbered by the next message.
3925 exec 5>>./config.log
3933 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3935 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3936 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 cat >conftest.make <<\_ACEOF
3940 all:
3941 @echo 'ac_maketemp="$(MAKE)"'
3942 _ACEOF
3943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3944 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3945 if test -n "$ac_maketemp"; then
3946 eval ac_cv_prog_make_${ac_make}_set=yes
3947 else
3948 eval ac_cv_prog_make_${ac_make}_set=no
3950 rm -f conftest.make
3952 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 SET_MAKE=
3956 else
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 SET_MAKE="MAKE=${MAKE-make}"
3963 # -------
3964 # Headers
3965 # -------
3967 # Sanity check for the cross-compilation case:
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3974 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3975 # On Suns, sometimes $CPP names a directory.
3976 if test -n "$CPP" && test -d "$CPP"; then
3977 CPP=
3979 if test -z "$CPP"; then
3980 if test "${ac_cv_prog_CPP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 # Double quotes because CPP needs to be expanded
3984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3986 ac_preproc_ok=false
3987 for ac_c_preproc_warn_flag in '' yes
3989 # Use a header file that comes with gcc, so configuring glibc
3990 # with a fresh cross-compiler works.
3991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3992 # <limits.h> exists even on freestanding compilers.
3993 # On the NeXT, cc -E runs the code through the compiler's parser,
3994 # not just through cpp. "Syntax error" is here to catch this case.
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001 #ifdef __STDC__
4002 # include <limits.h>
4003 #else
4004 # include <assert.h>
4005 #endif
4006 Syntax error
4007 _ACEOF
4008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4022 else
4023 ac_cpp_err=yes
4025 if test -z "$ac_cpp_err"; then
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Broken: fails on valid input.
4032 continue
4034 rm -f conftest.err conftest.$ac_ext
4036 # OK, works on sane cases. Now check whether non-existent headers
4037 # can be detected and how.
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 #include <ac_nonexistent.h>
4045 _ACEOF
4046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4060 else
4061 ac_cpp_err=yes
4063 if test -z "$ac_cpp_err"; then
4064 # Broken: success on invalid input.
4065 continue
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Passes both tests.
4071 ac_preproc_ok=:
4072 break
4074 rm -f conftest.err conftest.$ac_ext
4076 done
4077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078 rm -f conftest.err conftest.$ac_ext
4079 if $ac_preproc_ok; then
4080 break
4083 done
4084 ac_cv_prog_CPP=$CPP
4087 CPP=$ac_cv_prog_CPP
4088 else
4089 ac_cv_prog_CPP=$CPP
4091 echo "$as_me:$LINENO: result: $CPP" >&5
4092 echo "${ECHO_T}$CPP" >&6
4093 ac_preproc_ok=false
4094 for ac_c_preproc_warn_flag in '' yes
4096 # Use a header file that comes with gcc, so configuring glibc
4097 # with a fresh cross-compiler works.
4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 # <limits.h> exists even on freestanding compilers.
4100 # On the NeXT, cc -E runs the code through the compiler's parser,
4101 # not just through cpp. "Syntax error" is here to catch this case.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #ifdef __STDC__
4109 # include <limits.h>
4110 #else
4111 # include <assert.h>
4112 #endif
4113 Syntax error
4114 _ACEOF
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126 else
4127 ac_cpp_err=
4129 else
4130 ac_cpp_err=yes
4132 if test -z "$ac_cpp_err"; then
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 # Broken: fails on valid input.
4139 continue
4141 rm -f conftest.err conftest.$ac_ext
4143 # OK, works on sane cases. Now check whether non-existent headers
4144 # can be detected and how.
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164 else
4165 ac_cpp_err=
4167 else
4168 ac_cpp_err=yes
4170 if test -z "$ac_cpp_err"; then
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4181 rm -f conftest.err conftest.$ac_ext
4183 done
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then
4188 else
4189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4190 See \`config.log' for more details." >&5
4191 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details." >&2;}
4193 { (exit 1); exit 1; }; }
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 echo "$as_me:$LINENO: checking for egrep" >&5
4204 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4205 if test "${ac_cv_prog_egrep+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4209 then ac_cv_prog_egrep='grep -E'
4210 else ac_cv_prog_egrep='egrep'
4213 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4214 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4215 EGREP=$ac_cv_prog_egrep
4218 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4219 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4220 if test "${ac_cv_header_stdc+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230 #include <stdarg.h>
4231 #include <string.h>
4232 #include <float.h>
4235 main ()
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_header_stdc=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_header_stdc=no
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4273 if test $ac_cv_header_stdc = yes; then
4274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <string.h>
4283 _ACEOF
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 $EGREP "memchr" >/dev/null 2>&1; then
4287 else
4288 ac_cv_header_stdc=no
4290 rm -f conftest*
4294 if test $ac_cv_header_stdc = yes; then
4295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #include <stdlib.h>
4304 _ACEOF
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "free" >/dev/null 2>&1; then
4308 else
4309 ac_cv_header_stdc=no
4311 rm -f conftest*
4315 if test $ac_cv_header_stdc = yes; then
4316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4317 if test "$cross_compiling" = yes; then
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 #include <ctype.h>
4327 #if ((' ' & 0x0FF) == 0x020)
4328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4330 #else
4331 # define ISLOWER(c) \
4332 (('a' <= (c) && (c) <= 'i') \
4333 || ('j' <= (c) && (c) <= 'r') \
4334 || ('s' <= (c) && (c) <= 'z'))
4335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336 #endif
4338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4340 main ()
4342 int i;
4343 for (i = 0; i < 256; i++)
4344 if (XOR (islower (i), ISLOWER (i))
4345 || toupper (i) != TOUPPER (i))
4346 exit(2);
4347 exit (0);
4349 _ACEOF
4350 rm -f conftest$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4362 else
4363 echo "$as_me: program exited with status $ac_status" >&5
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ( exit $ac_status )
4368 ac_cv_header_stdc=no
4370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4375 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4376 if test $ac_cv_header_stdc = yes; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define STDC_HEADERS 1
4380 _ACEOF
4384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4395 inttypes.h stdint.h unistd.h
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 $ac_includes_default
4411 #include <$ac_header>
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 eval "$as_ac_Header=yes"
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 eval "$as_ac_Header=no"
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4447 cat >>confdefs.h <<_ACEOF
4448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4449 _ACEOF
4453 done
4456 if test "${ac_cv_header_stdio_h+set}" = set; then
4457 echo "$as_me:$LINENO: checking for stdio.h" >&5
4458 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdio_h+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4463 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4464 else
4465 # Is the header compilable?
4466 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4467 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 $ac_includes_default
4475 #include <stdio.h>
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_header_compiler=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_header_compiler=no
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508 echo "${ECHO_T}$ac_header_compiler" >&6
4510 # Is the header present?
4511 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4512 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <stdio.h>
4520 _ACEOF
4521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } >/dev/null; then
4529 if test -s conftest.err; then
4530 ac_cpp_err=$ac_c_preproc_warn_flag
4531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4532 else
4533 ac_cpp_err=
4535 else
4536 ac_cpp_err=yes
4538 if test -z "$ac_cpp_err"; then
4539 ac_header_preproc=yes
4540 else
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_header_preproc=no
4546 rm -f conftest.err conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4548 echo "${ECHO_T}$ac_header_preproc" >&6
4550 # So? What about this header?
4551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4552 yes:no: )
4553 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4554 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4555 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4556 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4557 ac_header_preproc=yes
4559 no:yes:* )
4560 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4561 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4563 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4564 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4565 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4567 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4569 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4571 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4573 cat <<\_ASBOX
4574 ## ----------------------------------------- ##
4575 ## Report this to the package-unused lists. ##
4576 ## ----------------------------------------- ##
4577 _ASBOX
4579 sed "s/^/$as_me: WARNING: /" >&2
4581 esac
4582 echo "$as_me:$LINENO: checking for stdio.h" >&5
4583 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdio_h+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 ac_cv_header_stdio_h=$ac_header_preproc
4589 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4590 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4593 if test $ac_cv_header_stdio_h = yes; then
4595 else
4596 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4597 You must have a usable C system for the target already installed, at least
4598 including headers and, preferably, the library, before you can configure
4599 the Objective C runtime system. If necessary, install gcc now with
4600 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4601 echo "$as_me: error: Can't find stdio.h.
4602 You must have a usable C system for the target already installed, at least
4603 including headers and, preferably, the library, before you can configure
4604 the Objective C runtime system. If necessary, install gcc now with
4605 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4606 { (exit 1); exit 1; }; }
4611 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4613 if test "${ac_cv_header_stdc+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #include <stdlib.h>
4623 #include <stdarg.h>
4624 #include <string.h>
4625 #include <float.h>
4628 main ()
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_header_stdc=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_header_stdc=no
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <string.h>
4676 _ACEOF
4677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4678 $EGREP "memchr" >/dev/null 2>&1; then
4680 else
4681 ac_cv_header_stdc=no
4683 rm -f conftest*
4687 if test $ac_cv_header_stdc = yes; then
4688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <stdlib.h>
4697 _ACEOF
4698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4699 $EGREP "free" >/dev/null 2>&1; then
4701 else
4702 ac_cv_header_stdc=no
4704 rm -f conftest*
4708 if test $ac_cv_header_stdc = yes; then
4709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4710 if test "$cross_compiling" = yes; then
4712 else
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <ctype.h>
4720 #if ((' ' & 0x0FF) == 0x020)
4721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4723 #else
4724 # define ISLOWER(c) \
4725 (('a' <= (c) && (c) <= 'i') \
4726 || ('j' <= (c) && (c) <= 'r') \
4727 || ('s' <= (c) && (c) <= 'z'))
4728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4729 #endif
4731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4733 main ()
4735 int i;
4736 for (i = 0; i < 256; i++)
4737 if (XOR (islower (i), ISLOWER (i))
4738 || toupper (i) != TOUPPER (i))
4739 exit(2);
4740 exit (0);
4742 _ACEOF
4743 rm -f conftest$ac_exeext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4755 else
4756 echo "$as_me: program exited with status $ac_status" >&5
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ( exit $ac_status )
4761 ac_cv_header_stdc=no
4763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4768 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4769 if test $ac_cv_header_stdc = yes; then
4771 cat >>confdefs.h <<\_ACEOF
4772 #define STDC_HEADERS 1
4773 _ACEOF
4779 for ac_header in sched.h
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790 else
4791 # Is the header compilable?
4792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4801 #include <$ac_header>
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_header_compiler=yes
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ac_header_compiler=no
4832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834 echo "${ECHO_T}$ac_header_compiler" >&6
4836 # Is the header present?
4837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <$ac_header>
4846 _ACEOF
4847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null; then
4855 if test -s conftest.err; then
4856 ac_cpp_err=$ac_c_preproc_warn_flag
4857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4858 else
4859 ac_cpp_err=
4861 else
4862 ac_cpp_err=yes
4864 if test -z "$ac_cpp_err"; then
4865 ac_header_preproc=yes
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 ac_header_preproc=no
4872 rm -f conftest.err conftest.$ac_ext
4873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4874 echo "${ECHO_T}$ac_header_preproc" >&6
4876 # So? What about this header?
4877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4878 yes:no: )
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4883 ac_header_preproc=yes
4885 no:yes:* )
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4899 cat <<\_ASBOX
4900 ## ----------------------------------------- ##
4901 ## Report this to the package-unused lists. ##
4902 ## ----------------------------------------- ##
4903 _ASBOX
4905 sed "s/^/$as_me: WARNING: /" >&2
4907 esac
4908 echo "$as_me:$LINENO: checking for $ac_header" >&5
4909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 eval "$as_ac_Header=\$ac_header_preproc"
4915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4920 cat >>confdefs.h <<_ACEOF
4921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922 _ACEOF
4926 done
4929 # -----------
4930 # Miscellanea
4931 # -----------
4933 # Determine CFLAGS for gthread.
4934 # FIXME: the current implementation is dependent on the 'r' variable
4935 # passed down from the top level
4936 echo "$as_me:$LINENO: checking for gthread cflags" >&5
4937 echo $ECHO_N "checking for gthread cflags... $ECHO_C" >&6
4938 if test "${objc_cv_gthread_flags+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 if test -f "$r"/gcc/Makefile
4942 then
4943 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
4944 else
4945 { { echo "$as_me:$LINENO: error: not found" >&5
4946 echo "$as_me: error: not found" >&2;}
4947 { (exit 1); exit 1; }; }
4950 echo "$as_me:$LINENO: result: $objc_cv_gthread_flags" >&5
4951 echo "${ECHO_T}$objc_cv_gthread_flags" >&6
4952 GTHREAD_FLAGS=$objc_cv_gthread_flags
4955 # ------
4956 # Output
4957 # ------
4959 ac_config_files="$ac_config_files Makefile"
4962 ac_config_commands="$ac_config_commands default"
4965 cat >confcache <<\_ACEOF
4966 # This file is a shell script that caches the results of configure
4967 # tests run on this system so they can be shared between configure
4968 # scripts and configure runs, see configure's option --config-cache.
4969 # It is not useful on other systems. If it contains results you don't
4970 # want to keep, you may remove or edit it.
4972 # config.status only pays attention to the cache file if you give it
4973 # the --recheck option to rerun configure.
4975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4977 # following values.
4979 _ACEOF
4981 # The following way of writing the cache mishandles newlines in values,
4982 # but we know of no workaround that is simple, portable, and efficient.
4983 # So, don't put newlines in cache variables' values.
4984 # Ultrix sh set writes to stderr and can't be redirected directly,
4985 # and sets the high bit in the cache file unless we assign to the vars.
4987 (set) 2>&1 |
4988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4989 *ac_space=\ *)
4990 # `set' does not quote correctly, so add quotes (double-quote
4991 # substitution turns \\\\ into \\, and sed turns \\ into \).
4992 sed -n \
4993 "s/'/'\\\\''/g;
4994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4997 # `set' quotes correctly as required by POSIX, so do not add quotes.
4998 sed -n \
4999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5001 esac;
5003 sed '
5004 t clear
5005 : clear
5006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5007 t end
5008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5009 : end' >>confcache
5010 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5011 if test -w $cache_file; then
5012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5013 cat confcache >$cache_file
5014 else
5015 echo "not updating unwritable cache $cache_file"
5018 rm -f confcache
5020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5021 # Let make expand exec_prefix.
5022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5026 # trailing colons and then remove the whole line if VPATH becomes empty
5027 # (actually we leave an empty line to preserve line numbers).
5028 if test "x$srcdir" = x.; then
5029 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5030 s/:*\$(srcdir):*/:/;
5031 s/:*\${srcdir}:*/:/;
5032 s/:*@srcdir@:*/:/;
5033 s/^\([^=]*=[ ]*\):*/\1/;
5034 s/:*$//;
5035 s/^[^=]*=[ ]*$//;
5039 # Transform confdefs.h into DEFS.
5040 # Protect against shell expansion while executing Makefile rules.
5041 # Protect against Makefile macro expansion.
5043 # If the first sed substitution is executed (which looks for macros that
5044 # take arguments), then we branch to the quote section. Otherwise,
5045 # look for a macro that doesn't take arguments.
5046 cat >confdef2opt.sed <<\_ACEOF
5047 t clear
5048 : clear
5049 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5050 t quote
5051 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5052 t quote
5054 : quote
5055 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5056 s,\[,\\&,g
5057 s,\],\\&,g
5058 s,\$,$$,g
5060 _ACEOF
5061 # We use echo to avoid assuming a particular line-breaking character.
5062 # The extra dot is to prevent the shell from consuming trailing
5063 # line-breaks from the sub-command output. A line-break within
5064 # single-quotes doesn't work because, if this script is created in a
5065 # platform that uses two characters for line-breaks (e.g., DOS), tr
5066 # would break.
5067 ac_LF_and_DOT=`echo; echo .`
5068 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5069 rm -f confdef2opt.sed
5072 ac_libobjs=
5073 ac_ltlibobjs=
5074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5075 # 1. Remove the extension, and $U if already installed.
5076 ac_i=`echo "$ac_i" |
5077 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5078 # 2. Add them.
5079 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5080 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5081 done
5082 LIBOBJS=$ac_libobjs
5084 LTLIBOBJS=$ac_ltlibobjs
5088 : ${CONFIG_STATUS=./config.status}
5089 ac_clean_files_save=$ac_clean_files
5090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5091 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5092 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5093 cat >$CONFIG_STATUS <<_ACEOF
5094 #! $SHELL
5095 # Generated by $as_me.
5096 # Run this file to recreate the current configuration.
5097 # Compiler output produced by configure, useful for debugging
5098 # configure, is in config.log if it exists.
5100 debug=false
5101 ac_cs_recheck=false
5102 ac_cs_silent=false
5103 SHELL=\${CONFIG_SHELL-$SHELL}
5104 _ACEOF
5106 cat >>$CONFIG_STATUS <<\_ACEOF
5107 ## --------------------- ##
5108 ## M4sh Initialization. ##
5109 ## --------------------- ##
5111 # Be Bourne compatible
5112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5113 emulate sh
5114 NULLCMD=:
5115 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5116 # is contrary to our usage. Disable this feature.
5117 alias -g '${1+"$@"}'='"$@"'
5118 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5119 set -o posix
5121 DUALCASE=1; export DUALCASE # for MKS sh
5123 # Support unset when possible.
5124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5125 as_unset=unset
5126 else
5127 as_unset=false
5131 # Work around bugs in pre-3.0 UWIN ksh.
5132 $as_unset ENV MAIL MAILPATH
5133 PS1='$ '
5134 PS2='> '
5135 PS4='+ '
5137 # NLS nuisances.
5138 for as_var in \
5139 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5140 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5141 LC_TELEPHONE LC_TIME
5143 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5144 eval $as_var=C; export $as_var
5145 else
5146 $as_unset $as_var
5148 done
5150 # Required to use basename.
5151 if expr a : '\(a\)' >/dev/null 2>&1; then
5152 as_expr=expr
5153 else
5154 as_expr=false
5157 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5158 as_basename=basename
5159 else
5160 as_basename=false
5164 # Name of the executable.
5165 as_me=`$as_basename "$0" ||
5166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5167 X"$0" : 'X\(//\)$' \| \
5168 X"$0" : 'X\(/\)$' \| \
5169 . : '\(.\)' 2>/dev/null ||
5170 echo X/"$0" |
5171 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5172 /^X\/\(\/\/\)$/{ s//\1/; q; }
5173 /^X\/\(\/\).*/{ s//\1/; q; }
5174 s/.*/./; q'`
5177 # PATH needs CR, and LINENO needs CR and PATH.
5178 # Avoid depending upon Character Ranges.
5179 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5180 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5181 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5182 as_cr_digits='0123456789'
5183 as_cr_alnum=$as_cr_Letters$as_cr_digits
5185 # The user is always right.
5186 if test "${PATH_SEPARATOR+set}" != set; then
5187 echo "#! /bin/sh" >conf$$.sh
5188 echo "exit 0" >>conf$$.sh
5189 chmod +x conf$$.sh
5190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5191 PATH_SEPARATOR=';'
5192 else
5193 PATH_SEPARATOR=:
5195 rm -f conf$$.sh
5199 as_lineno_1=$LINENO
5200 as_lineno_2=$LINENO
5201 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5202 test "x$as_lineno_1" != "x$as_lineno_2" &&
5203 test "x$as_lineno_3" = "x$as_lineno_2" || {
5204 # Find who we are. Look in the path if we contain no path at all
5205 # relative or not.
5206 case $0 in
5207 *[\\/]* ) as_myself=$0 ;;
5208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5214 done
5217 esac
5218 # We did not find ourselves, most probably we were run as `sh COMMAND'
5219 # in which case we are not to be found in the path.
5220 if test "x$as_myself" = x; then
5221 as_myself=$0
5223 if test ! -f "$as_myself"; then
5224 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5225 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5226 { (exit 1); exit 1; }; }
5228 case $CONFIG_SHELL in
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for as_base in sh bash ksh sh5; do
5236 case $as_dir in
5238 if ("$as_dir/$as_base" -c '
5239 as_lineno_1=$LINENO
5240 as_lineno_2=$LINENO
5241 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5242 test "x$as_lineno_1" != "x$as_lineno_2" &&
5243 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5244 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5245 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5246 CONFIG_SHELL=$as_dir/$as_base
5247 export CONFIG_SHELL
5248 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5249 fi;;
5250 esac
5251 done
5252 done
5254 esac
5256 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5257 # uniformly replaced by the line number. The first 'sed' inserts a
5258 # line-number line before each line; the second 'sed' does the real
5259 # work. The second script uses 'N' to pair each line-number line
5260 # with the numbered line, and appends trailing '-' during
5261 # substitution so that $LINENO is not a special case at line end.
5262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5263 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5264 sed '=' <$as_myself |
5265 sed '
5267 s,$,-,
5268 : loop
5269 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5270 t loop
5271 s,-$,,
5272 s,^['$as_cr_digits']*\n,,
5273 ' >$as_me.lineno &&
5274 chmod +x $as_me.lineno ||
5275 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5276 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5277 { (exit 1); exit 1; }; }
5279 # Don't try to exec as it changes $[0], causing all sort of problems
5280 # (the dirname of $[0] is not the place where we might find the
5281 # original and so on. Autoconf is especially sensible to this).
5282 . ./$as_me.lineno
5283 # Exit status is that of the last command.
5284 exit
5288 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5289 *c*,-n*) ECHO_N= ECHO_C='
5290 ' ECHO_T=' ' ;;
5291 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5292 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5293 esac
5295 if expr a : '\(a\)' >/dev/null 2>&1; then
5296 as_expr=expr
5297 else
5298 as_expr=false
5301 rm -f conf$$ conf$$.exe conf$$.file
5302 echo >conf$$.file
5303 if ln -s conf$$.file conf$$ 2>/dev/null; then
5304 # We could just check for DJGPP; but this test a) works b) is more generic
5305 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5306 if test -f conf$$.exe; then
5307 # Don't use ln at all; we don't have any links
5308 as_ln_s='cp -p'
5309 else
5310 as_ln_s='ln -s'
5312 elif ln conf$$.file conf$$ 2>/dev/null; then
5313 as_ln_s=ln
5314 else
5315 as_ln_s='cp -p'
5317 rm -f conf$$ conf$$.exe conf$$.file
5319 if mkdir -p . 2>/dev/null; then
5320 as_mkdir_p=:
5321 else
5322 test -d ./-p && rmdir ./-p
5323 as_mkdir_p=false
5326 as_executable_p="test -f"
5328 # Sed expression to map a string onto a valid CPP name.
5329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5331 # Sed expression to map a string onto a valid variable name.
5332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5335 # IFS
5336 # We need space, tab and new line, in precisely that order.
5337 as_nl='
5339 IFS=" $as_nl"
5341 # CDPATH.
5342 $as_unset CDPATH
5344 exec 6>&1
5346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5347 # report actual input values of CONFIG_FILES etc. instead of their
5348 # values after options handling. Logging --version etc. is OK.
5349 exec 5>>config.log
5351 echo
5352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5353 ## Running $as_me. ##
5354 _ASBOX
5355 } >&5
5356 cat >&5 <<_CSEOF
5358 This file was extended by package-unused $as_me version-unused, which was
5359 generated by GNU Autoconf 2.59. Invocation command line was
5361 CONFIG_FILES = $CONFIG_FILES
5362 CONFIG_HEADERS = $CONFIG_HEADERS
5363 CONFIG_LINKS = $CONFIG_LINKS
5364 CONFIG_COMMANDS = $CONFIG_COMMANDS
5365 $ $0 $@
5367 _CSEOF
5368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5369 echo >&5
5370 _ACEOF
5372 # Files that config.status was made for.
5373 if test -n "$ac_config_files"; then
5374 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5377 if test -n "$ac_config_headers"; then
5378 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5381 if test -n "$ac_config_links"; then
5382 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5385 if test -n "$ac_config_commands"; then
5386 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5389 cat >>$CONFIG_STATUS <<\_ACEOF
5391 ac_cs_usage="\
5392 \`$as_me' instantiates files from templates according to the
5393 current configuration.
5395 Usage: $0 [OPTIONS] [FILE]...
5397 -h, --help print this help, then exit
5398 -V, --version print version number, then exit
5399 -q, --quiet do not print progress messages
5400 -d, --debug don't remove temporary files
5401 --recheck update $as_me by reconfiguring in the same conditions
5402 --file=FILE[:TEMPLATE]
5403 instantiate the configuration file FILE
5405 Configuration files:
5406 $config_files
5408 Configuration commands:
5409 $config_commands
5411 Report bugs to <bug-autoconf@gnu.org>."
5412 _ACEOF
5414 cat >>$CONFIG_STATUS <<_ACEOF
5415 ac_cs_version="\\
5416 package-unused config.status version-unused
5417 configured by $0, generated by GNU Autoconf 2.59,
5418 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5420 Copyright (C) 2003 Free Software Foundation, Inc.
5421 This config.status script is free software; the Free Software Foundation
5422 gives unlimited permission to copy, distribute and modify it."
5423 srcdir=$srcdir
5424 INSTALL="$INSTALL"
5425 _ACEOF
5427 cat >>$CONFIG_STATUS <<\_ACEOF
5428 # If no file are specified by the user, then we need to provide default
5429 # value. By we need to know if files were specified by the user.
5430 ac_need_defaults=:
5431 while test $# != 0
5433 case $1 in
5434 --*=*)
5435 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5436 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5437 ac_shift=:
5440 ac_option=$1
5441 ac_optarg=$2
5442 ac_shift=shift
5444 *) # This is not an option, so the user has probably given explicit
5445 # arguments.
5446 ac_option=$1
5447 ac_need_defaults=false;;
5448 esac
5450 case $ac_option in
5451 # Handling of the options.
5452 _ACEOF
5453 cat >>$CONFIG_STATUS <<\_ACEOF
5454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5455 ac_cs_recheck=: ;;
5456 --version | --vers* | -V )
5457 echo "$ac_cs_version"; exit 0 ;;
5458 --he | --h)
5459 # Conflict between --help and --header
5460 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5461 Try \`$0 --help' for more information." >&5
5462 echo "$as_me: error: ambiguous option: $1
5463 Try \`$0 --help' for more information." >&2;}
5464 { (exit 1); exit 1; }; };;
5465 --help | --hel | -h )
5466 echo "$ac_cs_usage"; exit 0 ;;
5467 --debug | --d* | -d )
5468 debug=: ;;
5469 --file | --fil | --fi | --f )
5470 $ac_shift
5471 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5472 ac_need_defaults=false;;
5473 --header | --heade | --head | --hea )
5474 $ac_shift
5475 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5476 ac_need_defaults=false;;
5477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5479 ac_cs_silent=: ;;
5481 # This is an error.
5482 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5483 Try \`$0 --help' for more information." >&5
5484 echo "$as_me: error: unrecognized option: $1
5485 Try \`$0 --help' for more information." >&2;}
5486 { (exit 1); exit 1; }; } ;;
5488 *) ac_config_targets="$ac_config_targets $1" ;;
5490 esac
5491 shift
5492 done
5494 ac_configure_extra_args=
5496 if $ac_cs_silent; then
5497 exec 6>/dev/null
5498 ac_configure_extra_args="$ac_configure_extra_args --silent"
5501 _ACEOF
5502 cat >>$CONFIG_STATUS <<_ACEOF
5503 if \$ac_cs_recheck; then
5504 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5505 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5508 _ACEOF
5510 cat >>$CONFIG_STATUS <<_ACEOF
5512 # INIT-COMMANDS section.
5515 srcdir=${srcdir}
5516 host=${host}
5517 target=${target}
5518 with_target_subdir=${with_target_subdir}
5519 with_multisubdir=${with_multisubdir}
5520 ac_configure_args="--enable-multilib ${ac_configure_args}"
5521 toplevel_srcdir=${toplevel_srcdir}
5522 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5523 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5526 _ACEOF
5530 cat >>$CONFIG_STATUS <<\_ACEOF
5531 for ac_config_target in $ac_config_targets
5533 case "$ac_config_target" in
5534 # Handling of arguments.
5535 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5536 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5537 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5538 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5539 { (exit 1); exit 1; }; };;
5540 esac
5541 done
5543 # If the user did not use the arguments to specify the items to instantiate,
5544 # then the envvar interface is used. Set only those that are not.
5545 # We use the long form for the default assignment because of an extremely
5546 # bizarre bug on SunOS 4.1.3.
5547 if $ac_need_defaults; then
5548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5552 # Have a temporary directory for convenience. Make it in the build tree
5553 # simply because there is no reason to put it here, and in addition,
5554 # creating and moving files from /tmp can sometimes cause problems.
5555 # Create a temporary directory, and hook for its removal unless debugging.
5556 $debug ||
5558 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5559 trap '{ (exit 1); exit 1; }' 1 2 13 15
5562 # Create a (secure) tmp directory for tmp files.
5565 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5566 test -n "$tmp" && test -d "$tmp"
5567 } ||
5569 tmp=./confstat$$-$RANDOM
5570 (umask 077 && mkdir $tmp)
5571 } ||
5573 echo "$me: cannot create a temporary directory in ." >&2
5574 { (exit 1); exit 1; }
5577 _ACEOF
5579 cat >>$CONFIG_STATUS <<_ACEOF
5582 # CONFIG_FILES section.
5585 # No need to generate the scripts if there are no CONFIG_FILES.
5586 # This happens for instance when ./config.status config.h
5587 if test -n "\$CONFIG_FILES"; then
5588 # Protect against being on the right side of a sed subst in config.status.
5589 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5590 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5591 s,@SHELL@,$SHELL,;t t
5592 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5593 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5594 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5595 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5596 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5597 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5598 s,@exec_prefix@,$exec_prefix,;t t
5599 s,@prefix@,$prefix,;t t
5600 s,@program_transform_name@,$program_transform_name,;t t
5601 s,@bindir@,$bindir,;t t
5602 s,@sbindir@,$sbindir,;t t
5603 s,@libexecdir@,$libexecdir,;t t
5604 s,@datadir@,$datadir,;t t
5605 s,@sysconfdir@,$sysconfdir,;t t
5606 s,@sharedstatedir@,$sharedstatedir,;t t
5607 s,@localstatedir@,$localstatedir,;t t
5608 s,@libdir@,$libdir,;t t
5609 s,@includedir@,$includedir,;t t
5610 s,@oldincludedir@,$oldincludedir,;t t
5611 s,@infodir@,$infodir,;t t
5612 s,@mandir@,$mandir,;t t
5613 s,@build_alias@,$build_alias,;t t
5614 s,@host_alias@,$host_alias,;t t
5615 s,@target_alias@,$target_alias,;t t
5616 s,@DEFS@,$DEFS,;t t
5617 s,@ECHO_C@,$ECHO_C,;t t
5618 s,@ECHO_N@,$ECHO_N,;t t
5619 s,@ECHO_T@,$ECHO_T,;t t
5620 s,@LIBS@,$LIBS,;t t
5621 s,@VERSION@,$VERSION,;t t
5622 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5623 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5624 s,@build@,$build,;t t
5625 s,@build_cpu@,$build_cpu,;t t
5626 s,@build_vendor@,$build_vendor,;t t
5627 s,@build_os@,$build_os,;t t
5628 s,@host@,$host,;t t
5629 s,@host_cpu@,$host_cpu,;t t
5630 s,@host_vendor@,$host_vendor,;t t
5631 s,@host_os@,$host_os,;t t
5632 s,@target@,$target,;t t
5633 s,@target_cpu@,$target_cpu,;t t
5634 s,@target_vendor@,$target_vendor,;t t
5635 s,@target_os@,$target_os,;t t
5636 s,@target_noncanonical@,$target_noncanonical,;t t
5637 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5638 s,@gcc_version@,$gcc_version,;t t
5639 s,@toolexecdir@,$toolexecdir,;t t
5640 s,@toolexeclibdir@,$toolexeclibdir,;t t
5641 s,@includedirname@,$includedirname,;t t
5642 s,@libext@,$libext,;t t
5643 s,@CC@,$CC,;t t
5644 s,@ac_ct_CC@,$ac_ct_CC,;t t
5645 s,@EXEEXT@,$EXEEXT,;t t
5646 s,@OBJEXT@,$OBJEXT,;t t
5647 s,@CFLAGS@,$CFLAGS,;t t
5648 s,@AS@,$AS,;t t
5649 s,@ac_ct_AS@,$ac_ct_AS,;t t
5650 s,@AR@,$AR,;t t
5651 s,@ac_ct_AR@,$ac_ct_AR,;t t
5652 s,@RANLIB@,$RANLIB,;t t
5653 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5654 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5655 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5656 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5657 s,@LN_S@,$LN_S,;t t
5658 s,@STRIP@,$STRIP,;t t
5659 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5660 s,@LIBTOOL@,$LIBTOOL,;t t
5661 s,@SET_MAKE@,$SET_MAKE,;t t
5662 s,@CPP@,$CPP,;t t
5663 s,@CPPFLAGS@,$CPPFLAGS,;t t
5664 s,@EGREP@,$EGREP,;t t
5665 s,@GTHREAD_FLAGS@,$GTHREAD_FLAGS,;t t
5666 s,@LIBOBJS@,$LIBOBJS,;t t
5667 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5668 CEOF
5670 _ACEOF
5672 cat >>$CONFIG_STATUS <<\_ACEOF
5673 # Split the substitutions into bite-sized pieces for seds with
5674 # small command number limits, like on Digital OSF/1 and HP-UX.
5675 ac_max_sed_lines=48
5676 ac_sed_frag=1 # Number of current file.
5677 ac_beg=1 # First line for current file.
5678 ac_end=$ac_max_sed_lines # Line after last line for current file.
5679 ac_more_lines=:
5680 ac_sed_cmds=
5681 while $ac_more_lines; do
5682 if test $ac_beg -gt 1; then
5683 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5684 else
5685 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5687 if test ! -s $tmp/subs.frag; then
5688 ac_more_lines=false
5689 else
5690 # The purpose of the label and of the branching condition is to
5691 # speed up the sed processing (if there are no `@' at all, there
5692 # is no need to browse any of the substitutions).
5693 # These are the two extra sed commands mentioned above.
5694 (echo ':t
5695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5696 if test -z "$ac_sed_cmds"; then
5697 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5698 else
5699 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5701 ac_sed_frag=`expr $ac_sed_frag + 1`
5702 ac_beg=$ac_end
5703 ac_end=`expr $ac_end + $ac_max_sed_lines`
5705 done
5706 if test -z "$ac_sed_cmds"; then
5707 ac_sed_cmds=cat
5709 fi # test -n "$CONFIG_FILES"
5711 _ACEOF
5712 cat >>$CONFIG_STATUS <<\_ACEOF
5713 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5715 case $ac_file in
5716 - | *:- | *:-:* ) # input from stdin
5717 cat >$tmp/stdin
5718 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5720 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5722 * ) ac_file_in=$ac_file.in ;;
5723 esac
5725 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5726 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5728 X"$ac_file" : 'X\(//\)[^/]' \| \
5729 X"$ac_file" : 'X\(//\)$' \| \
5730 X"$ac_file" : 'X\(/\)' \| \
5731 . : '\(.\)' 2>/dev/null ||
5732 echo X"$ac_file" |
5733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5735 /^X\(\/\/\)$/{ s//\1/; q; }
5736 /^X\(\/\).*/{ s//\1/; q; }
5737 s/.*/./; q'`
5738 { if $as_mkdir_p; then
5739 mkdir -p "$ac_dir"
5740 else
5741 as_dir="$ac_dir"
5742 as_dirs=
5743 while test ! -d "$as_dir"; do
5744 as_dirs="$as_dir $as_dirs"
5745 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5747 X"$as_dir" : 'X\(//\)[^/]' \| \
5748 X"$as_dir" : 'X\(//\)$' \| \
5749 X"$as_dir" : 'X\(/\)' \| \
5750 . : '\(.\)' 2>/dev/null ||
5751 echo X"$as_dir" |
5752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5754 /^X\(\/\/\)$/{ s//\1/; q; }
5755 /^X\(\/\).*/{ s//\1/; q; }
5756 s/.*/./; q'`
5757 done
5758 test ! -n "$as_dirs" || mkdir $as_dirs
5759 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5760 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5761 { (exit 1); exit 1; }; }; }
5763 ac_builddir=.
5765 if test "$ac_dir" != .; then
5766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5767 # A "../" for each directory in $ac_dir_suffix.
5768 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5769 else
5770 ac_dir_suffix= ac_top_builddir=
5773 case $srcdir in
5774 .) # No --srcdir option. We are building in place.
5775 ac_srcdir=.
5776 if test -z "$ac_top_builddir"; then
5777 ac_top_srcdir=.
5778 else
5779 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5780 fi ;;
5781 [\\/]* | ?:[\\/]* ) # Absolute path.
5782 ac_srcdir=$srcdir$ac_dir_suffix;
5783 ac_top_srcdir=$srcdir ;;
5784 *) # Relative path.
5785 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5786 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5787 esac
5789 # Do not use `cd foo && pwd` to compute absolute paths, because
5790 # the directories may not exist.
5791 case `pwd` in
5792 .) ac_abs_builddir="$ac_dir";;
5794 case "$ac_dir" in
5795 .) ac_abs_builddir=`pwd`;;
5796 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5797 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5798 esac;;
5799 esac
5800 case $ac_abs_builddir in
5801 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5803 case ${ac_top_builddir}. in
5804 .) ac_abs_top_builddir=$ac_abs_builddir;;
5805 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5806 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5807 esac;;
5808 esac
5809 case $ac_abs_builddir in
5810 .) ac_abs_srcdir=$ac_srcdir;;
5812 case $ac_srcdir in
5813 .) ac_abs_srcdir=$ac_abs_builddir;;
5814 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5815 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5816 esac;;
5817 esac
5818 case $ac_abs_builddir in
5819 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5821 case $ac_top_srcdir in
5822 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5823 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5824 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5825 esac;;
5826 esac
5829 case $INSTALL in
5830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5831 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5832 esac
5834 if test x"$ac_file" != x-; then
5835 { echo "$as_me:$LINENO: creating $ac_file" >&5
5836 echo "$as_me: creating $ac_file" >&6;}
5837 rm -f "$ac_file"
5839 # Let's still pretend it is `configure' which instantiates (i.e., don't
5840 # use $as_me), people would be surprised to read:
5841 # /* config.h. Generated by config.status. */
5842 if test x"$ac_file" = x-; then
5843 configure_input=
5844 else
5845 configure_input="$ac_file. "
5847 configure_input=$configure_input"Generated from `echo $ac_file_in |
5848 sed 's,.*/,,'` by configure."
5850 # First look for the input files in the build tree, otherwise in the
5851 # src tree.
5852 ac_file_inputs=`IFS=:
5853 for f in $ac_file_in; do
5854 case $f in
5855 -) echo $tmp/stdin ;;
5856 [\\/$]*)
5857 # Absolute (can't be DOS-style, as IFS=:)
5858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5859 echo "$as_me: error: cannot find input file: $f" >&2;}
5860 { (exit 1); exit 1; }; }
5861 echo "$f";;
5862 *) # Relative
5863 if test -f "$f"; then
5864 # Build tree
5865 echo "$f"
5866 elif test -f "$srcdir/$f"; then
5867 # Source tree
5868 echo "$srcdir/$f"
5869 else
5870 # /dev/null tree
5871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5872 echo "$as_me: error: cannot find input file: $f" >&2;}
5873 { (exit 1); exit 1; }; }
5874 fi;;
5875 esac
5876 done` || { (exit 1); exit 1; }
5877 _ACEOF
5878 cat >>$CONFIG_STATUS <<_ACEOF
5879 sed "$ac_vpsub
5880 $extrasub
5881 _ACEOF
5882 cat >>$CONFIG_STATUS <<\_ACEOF
5884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5885 s,@configure_input@,$configure_input,;t t
5886 s,@srcdir@,$ac_srcdir,;t t
5887 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5888 s,@top_srcdir@,$ac_top_srcdir,;t t
5889 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5890 s,@builddir@,$ac_builddir,;t t
5891 s,@abs_builddir@,$ac_abs_builddir,;t t
5892 s,@top_builddir@,$ac_top_builddir,;t t
5893 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5894 s,@INSTALL@,$ac_INSTALL,;t t
5895 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5896 rm -f $tmp/stdin
5897 if test x"$ac_file" != x-; then
5898 mv $tmp/out $ac_file
5899 else
5900 cat $tmp/out
5901 rm -f $tmp/out
5904 done
5905 _ACEOF
5906 cat >>$CONFIG_STATUS <<\_ACEOF
5909 # CONFIG_COMMANDS section.
5911 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5912 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5913 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5914 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5915 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5916 X"$ac_dest" : 'X\(//\)[^/]' \| \
5917 X"$ac_dest" : 'X\(//\)$' \| \
5918 X"$ac_dest" : 'X\(/\)' \| \
5919 . : '\(.\)' 2>/dev/null ||
5920 echo X"$ac_dest" |
5921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5923 /^X\(\/\/\)$/{ s//\1/; q; }
5924 /^X\(\/\).*/{ s//\1/; q; }
5925 s/.*/./; q'`
5926 { if $as_mkdir_p; then
5927 mkdir -p "$ac_dir"
5928 else
5929 as_dir="$ac_dir"
5930 as_dirs=
5931 while test ! -d "$as_dir"; do
5932 as_dirs="$as_dir $as_dirs"
5933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5935 X"$as_dir" : 'X\(//\)[^/]' \| \
5936 X"$as_dir" : 'X\(//\)$' \| \
5937 X"$as_dir" : 'X\(/\)' \| \
5938 . : '\(.\)' 2>/dev/null ||
5939 echo X"$as_dir" |
5940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5942 /^X\(\/\/\)$/{ s//\1/; q; }
5943 /^X\(\/\).*/{ s//\1/; q; }
5944 s/.*/./; q'`
5945 done
5946 test ! -n "$as_dirs" || mkdir $as_dirs
5947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5948 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5949 { (exit 1); exit 1; }; }; }
5951 ac_builddir=.
5953 if test "$ac_dir" != .; then
5954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5955 # A "../" for each directory in $ac_dir_suffix.
5956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5957 else
5958 ac_dir_suffix= ac_top_builddir=
5961 case $srcdir in
5962 .) # No --srcdir option. We are building in place.
5963 ac_srcdir=.
5964 if test -z "$ac_top_builddir"; then
5965 ac_top_srcdir=.
5966 else
5967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5968 fi ;;
5969 [\\/]* | ?:[\\/]* ) # Absolute path.
5970 ac_srcdir=$srcdir$ac_dir_suffix;
5971 ac_top_srcdir=$srcdir ;;
5972 *) # Relative path.
5973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5975 esac
5977 # Do not use `cd foo && pwd` to compute absolute paths, because
5978 # the directories may not exist.
5979 case `pwd` in
5980 .) ac_abs_builddir="$ac_dir";;
5982 case "$ac_dir" in
5983 .) ac_abs_builddir=`pwd`;;
5984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5986 esac;;
5987 esac
5988 case $ac_abs_builddir in
5989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5991 case ${ac_top_builddir}. in
5992 .) ac_abs_top_builddir=$ac_abs_builddir;;
5993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5995 esac;;
5996 esac
5997 case $ac_abs_builddir in
5998 .) ac_abs_srcdir=$ac_srcdir;;
6000 case $ac_srcdir in
6001 .) ac_abs_srcdir=$ac_abs_builddir;;
6002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6004 esac;;
6005 esac
6006 case $ac_abs_builddir in
6007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6009 case $ac_top_srcdir in
6010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6013 esac;;
6014 esac
6017 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6018 echo "$as_me: executing $ac_dest commands" >&6;}
6019 case $ac_dest in
6020 default ) if test -n "$CONFIG_FILES"; then
6021 if test -n "${with_target_subdir}"; then
6022 # FIXME: We shouldn't need to set ac_file
6023 ac_file=Makefile
6024 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6025 . ${toplevel_srcdir}/config-ml.in
6027 fi ;;
6028 esac
6029 done
6030 _ACEOF
6032 cat >>$CONFIG_STATUS <<\_ACEOF
6034 { (exit 0); exit 0; }
6035 _ACEOF
6036 chmod +x $CONFIG_STATUS
6037 ac_clean_files=$ac_clean_files_save
6040 # configure is writing to config.log, and then calls config.status.
6041 # config.status does its own redirection, appending to config.log.
6042 # Unfortunately, on DOS this fails, as config.log is still kept open
6043 # by configure, so config.status won't be able to write to it; its
6044 # output is simply discarded. So we exec the FD to /dev/null,
6045 # effectively closing config.log, so it can be properly (re)opened and
6046 # appended to by config.status. When coming back to configure, we
6047 # need to make the FD available again.
6048 if test "$no_create" != yes; then
6049 ac_cs_success=:
6050 ac_config_status_args=
6051 test "$silent" = yes &&
6052 ac_config_status_args="$ac_config_status_args --quiet"
6053 exec 5>/dev/null
6054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6055 exec 5>>config.log
6056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6057 # would make configure fail if this is the last instruction.
6058 $ac_cs_success || { (exit 1); exit 1; }