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