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