]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
re PR c++/17661 (ICE in create_tmp_var)
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
3ed8e5b6
AT
3# Generated by GNU Autoconf 2.59 for libffi 2.1.
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
63e5e3e0 6#
3ed8e5b6 7# Copyright (C) 2003 Free Software Foundation, Inc.
63e5e3e0
AG
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
3ed8e5b6
AT
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 250
3ed8e5b6
AT
251exec 6>&1
252
253#
254# Initializations.
255#
63e5e3e0 256ac_default_prefix=/usr/local
3ed8e5b6
AT
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='libffi'
271PACKAGE_TARNAME='libffi'
272PACKAGE_VERSION='2.1'
273PACKAGE_STRING='libffi 2.1'
274PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
275
c9b93377
JB
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
88d8c771 313ac_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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
3ed8e5b6 314ac_subst_files=''
63e5e3e0
AG
315
316# Initialize some variables set by options.
3ed8e5b6
AT
317ac_init_help=
318ac_init_version=false
63e5e3e0
AG
319# The variables have the same names as the options, with
320# dashes changed to underlines.
3ed8e5b6 321cache_file=/dev/null
63e5e3e0 322exec_prefix=NONE
63e5e3e0 323no_create=
63e5e3e0
AG
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
63e5e3e0
AG
332verbose=
333x_includes=NONE
334x_libraries=NONE
3ed8e5b6
AT
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
63e5e3e0
AG
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
63e5e3e0
AG
354ac_prev=
355for ac_option
356do
63e5e3e0
AG
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
3ed8e5b6 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
63e5e3e0
AG
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
3ed8e5b6 368 case $ac_option in
63e5e3e0
AG
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 373 bindir=$ac_optarg ;;
63e5e3e0
AG
374
375 -build | --build | --buil | --bui | --bu)
3ed8e5b6 376 ac_prev=build_alias ;;
63e5e3e0 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 378 build_alias=$ac_optarg ;;
63e5e3e0
AG
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
63e5e3e0
AG
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
3ed8e5b6 394 datadir=$ac_optarg ;;
63e5e3e0
AG
395
396 -disable-* | --disable-*)
3ed8e5b6 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 398 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
63e5e3e0
AG
404
405 -enable-* | --enable-*)
3ed8e5b6 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 407 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
414 *) ac_optarg=yes ;;
415 esac
3ed8e5b6 416 eval "enable_$ac_feature='$ac_optarg'" ;;
63e5e3e0
AG
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 425 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
3ed8e5b6
AT
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
63e5e3e0
AG
437
438 -host | --host | --hos | --ho)
3ed8e5b6 439 ac_prev=host_alias ;;
63e5e3e0 440 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 441 host_alias=$ac_optarg ;;
63e5e3e0
AG
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 448 includedir=$ac_optarg ;;
63e5e3e0
AG
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 453 infodir=$ac_optarg ;;
63e5e3e0
AG
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 458 libdir=$ac_optarg ;;
63e5e3e0
AG
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 465 libexecdir=$ac_optarg ;;
63e5e3e0
AG
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3ed8e5b6 474 localstatedir=$ac_optarg ;;
63e5e3e0
AG
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 479 mandir=$ac_optarg ;;
63e5e3e0
AG
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 486 | --no-cr | --no-c | -n)
63e5e3e0
AG
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 500 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 505 prefix=$ac_optarg ;;
63e5e3e0
AG
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 512 program_prefix=$ac_optarg ;;
63e5e3e0
AG
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 519 program_suffix=$ac_optarg ;;
63e5e3e0
AG
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 536 program_transform_name=$ac_optarg ;;
63e5e3e0
AG
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
3ed8e5b6 546 sbindir=$ac_optarg ;;
63e5e3e0
AG
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
3ed8e5b6 557 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
3ed8e5b6 562 site=$ac_optarg ;;
63e5e3e0
AG
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 567 srcdir=$ac_optarg ;;
63e5e3e0
AG
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 574 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 577 ac_prev=target_alias ;;
63e5e3e0 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 579 target_alias=$ac_optarg ;;
63e5e3e0
AG
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
3ed8e5b6
AT
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
63e5e3e0
AG
586
587 -with-* | --with-*)
3ed8e5b6 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 589 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
63e5e3e0 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
3ed8e5b6
AT
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
596 *) ac_optarg=yes ;;
597 esac
3ed8e5b6 598 eval "with_$ac_package='$ac_optarg'" ;;
63e5e3e0
AG
599
600 -without-* | --without-*)
3ed8e5b6 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 602 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
63e5e3e0
AG
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 618 x_includes=$ac_optarg ;;
63e5e3e0
AG
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 625 x_libraries=$ac_optarg ;;
63e5e3e0 626
3ed8e5b6
AT
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
63e5e3e0
AG
630 ;;
631
3ed8e5b6
AT
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
63e5e3e0 642 *)
3ed8e5b6
AT
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
3ed8e5b6
AT
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
63e5e3e0 657fi
63e5e3e0 658
3ed8e5b6
AT
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
63e5e3e0 669
3ed8e5b6
AT
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
63e5e3e0 673do
3ed8e5b6
AT
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
63e5e3e0
AG
679 esac
680done
681
3ed8e5b6
AT
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
63e5e3e0 699
3ed8e5b6
AT
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
63e5e3e0 704
63e5e3e0
AG
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
3ed8e5b6
AT
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
63e5e3e0
AG
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
3ed8e5b6
AT
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
63e5e3e0 733 else
3ed8e5b6
AT
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
63e5e3e0
AG
736 fi
737fi
3ed8e5b6
AT
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
076e5443
PB
754ac_env_CCAS_set=${CCAS+set}
755ac_env_CCAS_value=$CCAS
756ac_cv_env_CCAS_set=${CCAS+set}
757ac_cv_env_CCAS_value=$CCAS
758ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759ac_env_CCASFLAGS_value=$CCASFLAGS
760ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761ac_cv_env_CCASFLAGS_value=$CCASFLAGS
3ed8e5b6
AT
762ac_env_CPP_set=${CPP+set}
763ac_env_CPP_value=$CPP
764ac_cv_env_CPP_set=${CPP+set}
765ac_cv_env_CPP_value=$CPP
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
63e5e3e0 770
3ed8e5b6
AT
771#
772# Report the --help message.
773#
774if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778\`configure' configures libffi 2.1 to adapt to many kinds of systems.
63e5e3e0 779
3ed8e5b6
AT
780Usage: $0 [OPTION]... [VAR=VALUE]...
781
782To assign environment variables (e.g., CC, CFLAGS...), specify them as
783VAR=VALUE. See below for descriptions of some of the useful variables.
784
785Defaults for the options are specified in brackets.
786
787Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797
798_ACEOF
799
800 cat <<_ACEOF
801Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
806
807By default, \`make install' will install all the files in
808\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810for instance \`--prefix=\$HOME'.
811
812For better control, use the options below.
813
814Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827_ACEOF
828
829 cat <<\_ACEOF
830
831Program names:
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
835
836System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libffi 2.1:";;
846 esac
847 cat <<\_ACEOF
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
852 --enable-multilib build many library versions (default)
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
3ed8e5b6
AT
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
861 --enable-debug debugging mode
862 --disable-structs omit code for struct support
863 --disable-raw-api make the raw api unavailable
864 --enable-purify-safety purify-safe mode
865
866Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871
872Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
076e5443
PB
879 CCAS assembler compiler command (defaults to CC)
880 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886Report bugs to <http://gcc.gnu.org/bugs.html>.
887_ACEOF
63e5e3e0
AG
888fi
889
3ed8e5b6
AT
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63e5e3e0 901else
3ed8e5b6 902 ac_dir_suffix= ac_top_builddir=
63e5e3e0
AG
903fi
904
3ed8e5b6
AT
905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919esac
675cdab3 920
3ed8e5b6
AT
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
675cdab3 959
3ed8e5b6
AT
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
88d8c771 975 cd $ac_popdir
3ed8e5b6 976 done
675cdab3
BM
977fi
978
3ed8e5b6
AT
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
982libffi configure 2.1
983generated by GNU Autoconf 2.59
675cdab3 984
3ed8e5b6
AT
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
675cdab3 990fi
3ed8e5b6
AT
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
675cdab3 995
3ed8e5b6
AT
996It was created by libffi $as_me 2.1, which was
997generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 998
3ed8e5b6 999 $ $0 $@
63e5e3e0 1000
3ed8e5b6
AT
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
63e5e3e0 1034
3ed8e5b6 1035} >&5
63e5e3e0 1036
3ed8e5b6 1037cat >&5 <<_ACEOF
63e5e3e0 1038
6706f116 1039
3ed8e5b6
AT
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
3c18f2d1 1043
3ed8e5b6 1044_ACEOF
3c18f2d1 1045
3c18f2d1 1046
3ed8e5b6
AT
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
1049# Strip out --silent because we don't want to record it for future runs.
1050# Also quote any args containing shell meta-characters.
1051# Make two passes to allow for proper duplicate-argument suppression.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
63e5e3e0 1094done
3ed8e5b6
AT
1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
1101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
63e5e3e0 1158
3ed8e5b6
AT
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
63e5e3e0 1181
3ed8e5b6
AT
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
6bee5372 1186
3ed8e5b6 1187# Predefined preprocessor variables.
bbf3057b 1188
3ed8e5b6
AT
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
bbf3057b
AT
1192
1193
3ed8e5b6
AT
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
63e5e3e0 1197
63e5e3e0 1198
3ed8e5b6
AT
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
63e5e3e0 1202
bbf3057b 1203
3ed8e5b6
AT
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
bbf3057b 1207
bbf3057b 1208
3ed8e5b6
AT
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 ac_config_headers="$ac_config_headers fficonfig.h"
1333
1334
1335# Default to --enable-multilib
1336# Check whether --enable-multilib or --disable-multilib was given.
1337if test "${enable_multilib+set}" = set; then
1338 enableval="$enable_multilib"
1339 case "$enableval" in
1340 yes) multilib=yes ;;
1341 no) multilib=no ;;
1342 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344 { (exit 1); exit 1; }; } ;;
1345 esac
1346else
1347 multilib=yes
1348fi;
1349
1350# We may get other options which we leave undocumented:
1351# --with-target-subdir, --with-multisrctop, --with-multisubdir
1352# See config-ml.in if you want the gory details.
1353
1354if test "$srcdir" = "."; then
1355 if test "$with_target_subdir" != "."; then
1356 multi_basedir="$srcdir/$with_multisrctop../.."
1357 else
1358 multi_basedir="$srcdir/$with_multisrctop.."
1359 fi
1360else
1361 multi_basedir="$srcdir/.."
1362fi
1363
1364
1365 ac_config_commands="$ac_config_commands default-1"
1366
3ed8e5b6 1367
076e5443
PB
1368ac_aux_dir=
1369for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3ed8e5b6
AT
1370 if test -f $ac_dir/install-sh; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 break
1374 elif test -f $ac_dir/install.sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 break
1378 elif test -f $ac_dir/shtool; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 break
1382 fi
1383done
1384if test -z "$ac_aux_dir"; then
076e5443
PB
1385 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3ed8e5b6
AT
1387 { (exit 1); exit 1; }; }
1388fi
1389ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392
3ed8e5b6
AT
1393# Make sure we can run config.sub.
1394$ac_config_sub sun4 >/dev/null 2>&1 ||
1395 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399echo "$as_me:$LINENO: checking build system type" >&5
1400echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401if test "${ac_cv_build+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404 ac_cv_build_alias=$build_alias
1405test -z "$ac_cv_build_alias" &&
1406 ac_cv_build_alias=`$ac_config_guess`
1407test -z "$ac_cv_build_alias" &&
1408 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410 { (exit 1); exit 1; }; }
1411ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1415
1416fi
1417echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418echo "${ECHO_T}$ac_cv_build" >&6
1419build=$ac_cv_build
1420build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425echo "$as_me:$LINENO: checking host system type" >&5
1426echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427if test "${ac_cv_host+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430 ac_cv_host_alias=$host_alias
1431test -z "$ac_cv_host_alias" &&
1432 ac_cv_host_alias=$ac_cv_build_alias
1433ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1437
1438fi
1439echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440echo "${ECHO_T}$ac_cv_host" >&6
1441host=$ac_cv_host
1442host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447echo "$as_me:$LINENO: checking target system type" >&5
1448echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449if test "${ac_cv_target+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451else
1452 ac_cv_target_alias=$target_alias
1453test "x$ac_cv_target_alias" = "x" &&
1454 ac_cv_target_alias=$ac_cv_host_alias
1455ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1459
1460fi
1461echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462echo "${ECHO_T}$ac_cv_target" >&6
1463target=$ac_cv_target
1464target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469# The aliases save the names the user supplied, while $host etc.
1470# will get canonicalized.
1471test -n "$target_alias" &&
bbf3057b
AT
1472 test "$program_prefix$program_suffix$program_transform_name" = \
1473 NONENONEs,x,x, &&
1474 program_prefix=${target_alias}-
3ed8e5b6
AT
1475target_alias=${target_alias-$host_alias}
1476
88d8c771
AG
1477. ${srcdir}/configure.host
1478
076e5443 1479am__api_version="1.8"
3ed8e5b6
AT
1480# Find a good install program. We prefer a C program (faster),
1481# so one script is as good as another. But avoid the broken or
1482# incompatible versions:
1483# SysV /etc/install, /usr/sbin/install
1484# SunOS /usr/etc/install
1485# IRIX /sbin/install
1486# AIX /bin/install
1487# AmigaOS /C/install, which installs bootblocks on floppy discs
1488# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491# OS/2's system install, which has a completely different semantic
1492# ./install, which can be erroneously created by make from ./install.sh.
1493echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1494echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1495if test -z "$INSTALL"; then
1496if test "${ac_cv_path_install+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 # Account for people who put trailing slashes in PATH elements.
1505case $as_dir/ in
1506 ./ | .// | /cC/* | \
1507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1509 /usr/ucb/* ) ;;
1510 *)
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1513 # by default.
1514 for ac_prog in ginstall scoinst install; do
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1517 if test $ac_prog = install &&
1518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519 # AIX install. It has an incompatible calling convention.
1520 :
1521 elif test $ac_prog = install &&
1522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # program-specific install script used by HP pwplus--don't use.
1524 :
1525 else
1526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1527 break 3
1528 fi
1529 fi
1530 done
1531 done
1532 ;;
1533esac
1534done
1535
1536
1537fi
1538 if test "${ac_cv_path_install+set}" = set; then
1539 INSTALL=$ac_cv_path_install
1540 else
1541 # As a last resort, use the slow shell script. We don't cache a
1542 # path for INSTALL within a source directory, because that will
1543 # break other packages using the cache if that directory is
1544 # removed, or if the path is relative.
1545 INSTALL=$ac_install_sh
1546 fi
1547fi
1548echo "$as_me:$LINENO: result: $INSTALL" >&5
1549echo "${ECHO_T}$INSTALL" >&6
1550
1551# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552# It thinks the first close brace ends the variable substitution.
1553test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1554
1555test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1556
1557test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1558
1559echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1561# Just in case
1562sleep 1
1563echo timestamp > conftest.file
1564# Do `set' in a subshell so we don't clobber the current shell's
1565# arguments. Must try -L first in case configure is actually a
1566# symlink; some systems play weird games with the mod time of symlinks
1567# (eg FreeBSD returns the mod time of the symlink's containing
1568# directory).
1569if (
1570 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1571 if test "$*" = "X"; then
1572 # -L didn't work.
1573 set X `ls -t $srcdir/configure conftest.file`
1574 fi
1575 rm -f conftest.file
1576 if test "$*" != "X $srcdir/configure conftest.file" \
1577 && test "$*" != "X conftest.file $srcdir/configure"; then
1578
1579 # If neither matched, then we have a broken ls. This can happen
1580 # if, for instance, CONFIG_SHELL is bash and it inherits a
1581 # broken ls alias from the environment. This has actually
1582 # happened. Such a system could not be considered "sane".
1583 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1584alias in your environment" >&5
1585echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1586alias in your environment" >&2;}
1587 { (exit 1); exit 1; }; }
1588 fi
1589
1590 test "$2" = conftest.file
1591 )
1592then
1593 # Ok.
1594 :
1595else
1596 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1597Check your system clock" >&5
1598echo "$as_me: error: newly created file is older than distributed files!
1599Check your system clock" >&2;}
1600 { (exit 1); exit 1; }; }
1601fi
1602echo "$as_me:$LINENO: result: yes" >&5
1603echo "${ECHO_T}yes" >&6
1604test "$program_prefix" != NONE &&
1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615rm conftest.sed
1616
3ed8e5b6
AT
1617# expand $ac_aux_dir to an absolute path
1618am_aux_dir=`cd $ac_aux_dir && pwd`
1619
1620test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1621# Use eval to expand $SHELL
1622if eval "$MISSING --run true"; then
1623 am_missing_run="$MISSING --run "
1624else
1625 am_missing_run=
1626 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1627echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1628fi
1629
076e5443
PB
1630if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1631 # Keeping the `.' argument allows $(mkdir_p) to be used without
1632 # argument. Indeed, we sometimes output rules like
1633 # $(mkdir_p) $(somedir)
1634 # where $(somedir) is conditionally defined.
1635 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1636 # expensive solution, as it forces Make to start a sub-shell.)
1637 mkdir_p='mkdir -p -- .'
1638else
1639 # On NextStep and OpenStep, the `mkdir' command does not
1640 # recognize any option. It will interpret all options as
1641 # directories to create, and then abort because `.' already
1642 # exists.
1643 for d in ./-p ./--version;
1644 do
1645 test -d $d && rmdir $d
1646 done
1647 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1648 if test -f "$ac_aux_dir/mkinstalldirs"; then
1649 mkdir_p='$(mkinstalldirs)'
1650 else
1651 mkdir_p='$(install_sh) -d'
1652 fi
1653fi
1654
3ed8e5b6
AT
1655for ac_prog in gawk mawk nawk awk
1656do
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658set dummy $ac_prog; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_AWK+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$AWK"; then
1665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_AWK="$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
1679done
1680
1681fi
1682fi
1683AWK=$ac_cv_prog_AWK
1684if test -n "$AWK"; then
1685 echo "$as_me:$LINENO: result: $AWK" >&5
1686echo "${ECHO_T}$AWK" >&6
1687else
1688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692 test -n "$AWK" && break
1693done
1694
1695echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1696echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1697set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1698if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 cat >conftest.make <<\_ACEOF
1702all:
1703 @echo 'ac_maketemp="$(MAKE)"'
1704_ACEOF
1705# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1706eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1707if test -n "$ac_maketemp"; then
1708 eval ac_cv_prog_make_${ac_make}_set=yes
1709else
1710 eval ac_cv_prog_make_${ac_make}_set=no
1711fi
1712rm -f conftest.make
1713fi
1714if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1715 echo "$as_me:$LINENO: result: yes" >&5
1716echo "${ECHO_T}yes" >&6
1717 SET_MAKE=
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721 SET_MAKE="MAKE=${MAKE-make}"
1722fi
1723
1724rm -rf .tst 2>/dev/null
1725mkdir .tst 2>/dev/null
1726if test -d .tst; then
1727 am__leading_dot=.
1728else
1729 am__leading_dot=_
1730fi
1731rmdir .tst 2>/dev/null
1732
076e5443 1733# test to see if srcdir already configured
3ed8e5b6
AT
1734if test "`cd $srcdir && pwd`" != "`pwd`" &&
1735 test -f $srcdir/config.status; then
1736 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1737echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1738 { (exit 1); exit 1; }; }
1739fi
1740
1741# test whether we have cygpath
1742if test -z "$CYGPATH_W"; then
1743 if (cygpath --version) >/dev/null 2>/dev/null; then
1744 CYGPATH_W='cygpath -w'
1745 else
1746 CYGPATH_W=echo
1747 fi
1748fi
1749
1750
1751# Define the identity of the package.
1752 PACKAGE='libffi'
1753 VERSION='2.1'
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE "$PACKAGE"
1758_ACEOF
1759
1760
1761cat >>confdefs.h <<_ACEOF
1762#define VERSION "$VERSION"
1763_ACEOF
1764
1765# Some tools Automake needs.
1766
1767ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1768
1769
1770AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1771
1772
1773AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1774
1775
1776AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1777
1778
1779MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1780
1781
1782AMTAR=${AMTAR-"${am_missing_run}tar"}
1783
1784install_sh=${install_sh-"$am_aux_dir/install-sh"}
1785
1786# Installed binaries are usually stripped using `strip' when the user
1787# run `make install-strip'. However `strip' might not be the right
1788# tool to use in cross-compilation environments, therefore Automake
1789# will honor the `STRIP' environment variable to overrule this program.
1790if test "$cross_compiling" != no; then
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1793set dummy ${ac_tool_prefix}strip; ac_word=$2
1794echo "$as_me:$LINENO: checking for $ac_word" >&5
1795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796if test "${ac_cv_prog_STRIP+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799 if test -n "$STRIP"; then
1800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1801else
1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803for as_dir in $PATH
1804do
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1812 fi
1813done
1814done
1815
1816fi
1817fi
1818STRIP=$ac_cv_prog_STRIP
1819if test -n "$STRIP"; then
1820 echo "$as_me:$LINENO: result: $STRIP" >&5
1821echo "${ECHO_T}$STRIP" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827fi
1828if test -z "$ac_cv_prog_STRIP"; then
1829 ac_ct_STRIP=$STRIP
1830 # Extract the first word of "strip", so it can be a program name with args.
1831set dummy strip; ac_word=$2
1832echo "$as_me:$LINENO: checking for $ac_word" >&5
1833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836else
1837 if test -n "$ac_ct_STRIP"; then
1838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1839else
1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841for as_dir in $PATH
1842do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_STRIP="strip"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 break 2
1850 fi
1851done
1852done
1853
1854 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1855fi
1856fi
1857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1858if test -n "$ac_ct_STRIP"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1860echo "${ECHO_T}$ac_ct_STRIP" >&6
1861else
1862 echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866 STRIP=$ac_ct_STRIP
1867else
1868 STRIP="$ac_cv_prog_STRIP"
1869fi
1870
1871fi
1872INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1873
1874# We need awk for the "check" target. The system "awk" is bad on
1875# some platforms.
1876
1877
1878
1879
1880# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1881# We must force CC to /not/ be precious variables; otherwise
1882# the wrong, non-multilib-adjusted value will be used in multilibs.
1883# As a side effect, we have to subst CFLAGS ourselves.
1884
1885
1886
1887ac_ext=c
1888ac_cpp='$CPP $CPPFLAGS'
1889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1894set dummy ${ac_tool_prefix}gcc; ac_word=$2
1895echo "$as_me:$LINENO: checking for $ac_word" >&5
1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914done
1915done
1916
1917fi
1918fi
1919CC=$ac_cv_prog_CC
1920if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922echo "${ECHO_T}$CC" >&6
1923else
1924 echo "$as_me:$LINENO: result: no" >&5
1925echo "${ECHO_T}no" >&6
1926fi
1927
1928fi
1929if test -z "$ac_cv_prog_CC"; then
1930 ac_ct_CC=$CC
1931 # Extract the first word of "gcc", so it can be a program name with args.
1932set dummy gcc; ac_word=$2
1933echo "$as_me:$LINENO: checking for $ac_word" >&5
1934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940else
1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942for as_dir in $PATH
1943do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC="gcc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952done
1953done
1954
1955fi
1956fi
1957ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960echo "${ECHO_T}$ac_ct_CC" >&6
1961else
1962 echo "$as_me:$LINENO: result: no" >&5
1963echo "${ECHO_T}no" >&6
1964fi
1965
1966 CC=$ac_ct_CC
1967else
1968 CC="$ac_cv_prog_CC"
1969fi
1970
1971if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974set dummy ${ac_tool_prefix}cc; ac_word=$2
1975echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1982else
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 ac_cv_prog_CC="${ac_tool_prefix}cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 break 2
1993 fi
1994done
1995done
1996
1997fi
1998fi
1999CC=$ac_cv_prog_CC
2000if test -n "$CC"; then
2001 echo "$as_me:$LINENO: result: $CC" >&5
2002echo "${ECHO_T}$CC" >&6
2003else
2004 echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6
2006fi
2007
2008fi
2009if test -z "$ac_cv_prog_CC"; then
2010 ac_ct_CC=$CC
2011 # Extract the first word of "cc", so it can be a program name with args.
2012set dummy cc; ac_word=$2
2013echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_ac_ct_CC="cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032done
2033done
2034
2035fi
2036fi
2037ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040echo "${ECHO_T}$ac_ct_CC" >&6
2041else
2042 echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6
2044fi
2045
2046 CC=$ac_ct_CC
2047else
2048 CC="$ac_cv_prog_CC"
2049fi
2050
2051fi
2052if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054set dummy cc; ac_word=$2
2055echo "$as_me:$LINENO: checking for $ac_word" >&5
2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062else
2063 ac_prog_rejected=no
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072 ac_prog_rejected=yes
2073 continue
2074 fi
2075 ac_cv_prog_CC="cc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2078 fi
2079done
2080done
2081
2082if test $ac_prog_rejected = yes; then
2083 # We found a bogon in the path, so make sure we never use it.
2084 set dummy $ac_cv_prog_CC
2085 shift
2086 if test $# != 0; then
2087 # We chose a different compiler from the bogus one.
2088 # However, it has the same basename, so the bogon will be chosen
2089 # first if we set CC to just the basename; use the full file name.
2090 shift
2091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2092 fi
2093fi
2094fi
2095fi
2096CC=$ac_cv_prog_CC
2097if test -n "$CC"; then
2098 echo "$as_me:$LINENO: result: $CC" >&5
2099echo "${ECHO_T}$CC" >&6
2100else
2101 echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6
2103fi
2104
2105fi
2106if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl
2109 do
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131done
2132done
2133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6
2140else
2141 echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
2144
2145 test -n "$CC" && break
2146 done
2147fi
2148if test -z "$CC"; then
2149 ac_ct_CC=$CC
2150 for ac_prog in cl
2151do
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153set dummy $ac_prog; ac_word=$2
2154echo "$as_me:$LINENO: checking for $ac_word" >&5
2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161else
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_ac_ct_CC="$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2172 fi
2173done
2174done
2175
2176fi
2177fi
2178ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179if test -n "$ac_ct_CC"; then
2180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181echo "${ECHO_T}$ac_ct_CC" >&6
2182else
2183 echo "$as_me:$LINENO: result: no" >&5
2184echo "${ECHO_T}no" >&6
2185fi
2186
2187 test -n "$ac_ct_CC" && break
2188done
2189
2190 CC=$ac_ct_CC
2191fi
2192
2193fi
2194
2195
2196test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: no acceptable C compiler found in \$PATH
2199See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2201
2202# Provide some information about the compiler.
2203echo "$as_me:$LINENO:" \
2204 "checking for C compiler version" >&5
2205ac_compiler=`set X $ac_compile; echo $2`
2206{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207 (eval $ac_compiler --version </dev/null >&5) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212 (eval $ac_compiler -v </dev/null >&5) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217 (eval $ac_compiler -V </dev/null >&5) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2221
2222cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237ac_clean_files_save=$ac_clean_files
2238ac_clean_files="$ac_clean_files a.out a.exe b.out"
2239# Try to create an executable without -o first, disregard a.out.
2240# It will help us diagnose broken compilers, and finding out an intuition
2241# of exeext.
2242echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2244ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2245if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2246 (eval $ac_link_default) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; then
2250 # Find the output, starting from the most likely. This scheme is
2251# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2252# resort.
2253
2254# Be careful to initialize this variable, since it used to be cached.
2255# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2256ac_cv_exeext=
2257# b.out is created by i960 compilers.
2258for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2259do
2260 test -f "$ac_file" || continue
2261 case $ac_file in
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2263 ;;
2264 conftest.$ac_ext )
2265 # This is the source file.
2266 ;;
2267 [ab].out )
2268 # We found the default executable, but exeext='' is most
2269 # certainly right.
2270 break;;
2271 *.* )
2272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 # FIXME: I believe we export ac_cv_exeext for Libtool,
2274 # but it would be cool to find out if it's true. Does anybody
2275 # maintain Libtool? --akim.
2276 export ac_cv_exeext
2277 break;;
2278 * )
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: C compiler cannot create executables
2289See \`config.log' for more details." >&2;}
2290 { (exit 77); exit 77; }; }
2291fi
2292
2293ac_exeext=$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_file" >&5
2295echo "${ECHO_T}$ac_file" >&6
2296
2297# Check the compiler produces executables we can run. If not, either
2298# the compiler is broken, or we cross compile.
2299echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2301# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302# If not cross compiling, check that we can run a simple program.
2303if test "$cross_compiling" != yes; then
2304 if { ac_try='./$ac_file'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 cross_compiling=no
2311 else
2312 if test "$cross_compiling" = maybe; then
2313 cross_compiling=yes
2314 else
2315 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316If you meant to cross compile, use \`--host'.
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: cannot run C compiled programs.
2319If you meant to cross compile, use \`--host'.
2320See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2322 fi
2323 fi
2324fi
2325echo "$as_me:$LINENO: result: yes" >&5
2326echo "${ECHO_T}yes" >&6
2327
2328rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329ac_clean_files=$ac_clean_files_save
2330# Check the compiler produces executables we can run. If not, either
2331# the compiler is broken, or we cross compile.
2332echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2334echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335echo "${ECHO_T}$cross_compiling" >&6
2336
2337echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2340 (eval $ac_link) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; then
2344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2345# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2346# work properly (i.e., refer to `conftest.exe'), while it won't with
2347# `rm'.
2348for ac_file in conftest.exe conftest conftest.*; do
2349 test -f "$ac_file" || continue
2350 case $ac_file in
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 export ac_cv_exeext
2354 break;;
2355 * ) break;;
2356 esac
2357done
2358else
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2362See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2368echo "${ECHO_T}$ac_cv_exeext" >&6
2369
2370rm -f conftest.$ac_ext
2371EXEEXT=$ac_cv_exeext
2372ac_exeext=$EXEEXT
2373echo "$as_me:$LINENO: checking for suffix of object files" >&5
2374echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2375if test "${ac_cv_objext+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
2384
2385int
2386main ()
2387{
2388
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.o conftest.obj
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2400 case $ac_file in
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2403 break;;
2404 esac
2405done
2406else
2407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2411See \`config.log' for more details." >&5
2412echo "$as_me: error: cannot compute suffix of object files: cannot compile
2413See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2415fi
2416
2417rm -f conftest.$ac_cv_objext conftest.$ac_ext
2418fi
2419echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2420echo "${ECHO_T}$ac_cv_objext" >&6
2421OBJEXT=$ac_cv_objext
2422ac_objext=$OBJEXT
2423echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2424echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2425if test "${ac_cv_c_compiler_gnu+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428 cat >conftest.$ac_ext <<_ACEOF
2429/* confdefs.h. */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h. */
2434
2435int
2436main ()
2437{
2438#ifndef __GNUC__
2439 choke me
2440#endif
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext
2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
88d8c771
AG
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
3ed8e5b6
AT
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_compiler_gnu=yes
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473ac_compiler_gnu=no
2474fi
2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476ac_cv_c_compiler_gnu=$ac_compiler_gnu
2477
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2480echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2481GCC=`test $ac_compiler_gnu = yes && echo yes`
2482ac_test_CFLAGS=${CFLAGS+set}
2483ac_save_CFLAGS=$CFLAGS
2484CFLAGS="-g"
2485echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2486echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2487if test "${ac_cv_prog_cc_g+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h. */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h. */
2496
2497int
2498main ()
2499{
2500
2501 ;
2502 return 0;
2503}
2504_ACEOF
2505rm -f conftest.$ac_objext
2506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
88d8c771
AG
2514 { ac_try='test -z "$ac_c_werror_flag"
2515 || test ! -s conftest.err'
3ed8e5b6
AT
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 ac_cv_prog_cc_g=yes
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532ac_cv_prog_cc_g=no
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535fi
2536echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538if test "$ac_test_CFLAGS" = set; then
2539 CFLAGS=$ac_save_CFLAGS
2540elif test $ac_cv_prog_cc_g = yes; then
2541 if test "$GCC" = yes; then
2542 CFLAGS="-g -O2"
2543 else
2544 CFLAGS="-g"
2545 fi
2546else
2547 if test "$GCC" = yes; then
2548 CFLAGS="-O2"
2549 else
2550 CFLAGS=
2551 fi
2552fi
2553echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2554echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2555if test "${ac_cv_prog_cc_stdc+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558 ac_cv_prog_cc_stdc=no
2559ac_save_CC=$CC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566#include <stdarg.h>
2567#include <stdio.h>
2568#include <sys/types.h>
2569#include <sys/stat.h>
2570/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2571struct buf { int x; };
2572FILE * (*rcsopen) (struct buf *, struct stat *, int);
2573static char *e (p, i)
2574 char **p;
2575 int i;
2576{
2577 return p[i];
2578}
2579static char *f (char * (*g) (char **, int), char **p, ...)
2580{
2581 char *s;
2582 va_list v;
2583 va_start (v,p);
2584 s = g (p, va_arg (v,int));
2585 va_end (v);
2586 return s;
2587}
2588
2589/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2590 function prototypes and stuff, but not '\xHH' hex character constants.
2591 These don't provoke an error unfortunately, instead are silently treated
2592 as 'x'. The following induces an error, until -std1 is added to get
2593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2594 array size at least. It's necessary to write '\x00'==0 to get something
2595 that's true only with -std1. */
2596int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2597
2598int test (int i, double x);
2599struct s1 {int (*f) (int a);};
2600struct s2 {int (*f) (double a);};
2601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2602int argc;
2603char **argv;
2604int
2605main ()
2606{
2607return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612# Don't try gcc -ansi; that turns off useful extensions and
2613# breaks some systems' header files.
2614# AIX -qlanglvl=ansi
2615# Ultrix and OSF/1 -std1
2616# HP-UX 10.20 and later -Ae
2617# HP-UX older versions -Aa -D_HPUX_SOURCE
2618# SVR4 -Xc -D__EXTENSIONS__
2619for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2620do
2621 CC="$ac_save_CC $ac_arg"
2622 rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
88d8c771
AG
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
3ed8e5b6
AT
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_prog_cc_stdc=$ac_arg
2645break
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650fi
2651rm -f conftest.err conftest.$ac_objext
2652done
2653rm -f conftest.$ac_ext conftest.$ac_objext
2654CC=$ac_save_CC
2655
2656fi
2657
2658case "x$ac_cv_prog_cc_stdc" in
2659 x|xno)
2660 echo "$as_me:$LINENO: result: none needed" >&5
2661echo "${ECHO_T}none needed" >&6 ;;
2662 *)
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2664echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2665 CC="$CC $ac_cv_prog_cc_stdc" ;;
2666esac
2667
2668# Some people use a C++ compiler to compile C. Since we use `exit',
2669# in C++ we need to declare it. In case someone uses the same compiler
2670# for both compiling C and C++ we need to have the C++ compiler decide
2671# the declaration of exit, since it's the most demanding environment.
2672cat >conftest.$ac_ext <<_ACEOF
2673#ifndef __cplusplus
2674 choke me
2675#endif
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
88d8c771
AG
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
3ed8e5b6
AT
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 for ac_declaration in \
2700 '' \
2701 'extern "C" void std::exit (int) throw (); using std::exit;' \
2702 'extern "C" void std::exit (int); using std::exit;' \
2703 'extern "C" void exit (int) throw ();' \
2704 'extern "C" void exit (int);' \
2705 'void exit (int);'
2706do
2707 cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h. */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h. */
2713$ac_declaration
2714#include <stdlib.h>
2715int
2716main ()
2717{
2718exit (42);
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
88d8c771
AG
2732 { ac_try='test -z "$ac_c_werror_flag"
2733 || test ! -s conftest.err'
3ed8e5b6
AT
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 :
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750continue
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759$ac_declaration
2760int
2761main ()
2762{
2763exit (42);
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
88d8c771
AG
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
3ed8e5b6
AT
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 break
2791else
2792 echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795fi
2796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797done
2798rm -f conftest*
2799if test -n "$ac_declaration"; then
2800 echo '#ifdef __cplusplus' >>confdefs.h
2801 echo $ac_declaration >>confdefs.h
2802 echo '#endif' >>confdefs.h
2803fi
2804
2805else
2806 echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_ext=c
2812ac_cpp='$CPP $CPPFLAGS'
2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816DEPDIR="${am__leading_dot}deps"
2817
2818 ac_config_commands="$ac_config_commands depfiles"
2819
2820
2821am_make=${MAKE-make}
2822cat > confinc << 'END'
2823am__doit:
2824 @echo done
2825.PHONY: am__doit
2826END
2827# If we don't find an include directive, just comment out the code.
2828echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2829echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2830am__include="#"
2831am__quote=
2832_am_result=none
2833# First try GNU make style include.
2834echo "include confinc" > confmf
2835# We grep out `Entering directory' and `Leaving directory'
2836# messages which can occur if `w' ends up in MAKEFLAGS.
2837# In particular we don't look at `^make:' because GNU make might
2838# be invoked under some other name (usually "gmake"), in which
2839# case it prints its new name instead of `make'.
2840if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2841 am__include=include
2842 am__quote=
2843 _am_result=GNU
2844fi
2845# Now try BSD make style include.
2846if test "$am__include" = "#"; then
2847 echo '.include "confinc"' > confmf
2848 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2849 am__include=.include
2850 am__quote="\""
2851 _am_result=BSD
2852 fi
2853fi
2854
2855
2856echo "$as_me:$LINENO: result: $_am_result" >&5
2857echo "${ECHO_T}$_am_result" >&6
2858rm -f confinc confmf
2859
2860# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2861if test "${enable_dependency_tracking+set}" = set; then
2862 enableval="$enable_dependency_tracking"
2863
2864fi;
2865if test "x$enable_dependency_tracking" != xno; then
2866 am_depcomp="$ac_aux_dir/depcomp"
2867 AMDEPBACKSLASH='\'
2868fi
2869
2870
2871if test "x$enable_dependency_tracking" != xno; then
2872 AMDEP_TRUE=
2873 AMDEP_FALSE='#'
2874else
2875 AMDEP_TRUE='#'
2876 AMDEP_FALSE=
2877fi
2878
2879
2880
2881
2882depcc="$CC" am_compiler_list=
2883
2884echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2885echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2886if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2890 # We make a subdir and do the tests there. Otherwise we can end up
2891 # making bogus files that we don't know about and never remove. For
2892 # instance it was reported that on HP-UX the gcc test will end up
2893 # making a dummy file named `D' -- because `-MD' means `put the output
2894 # in D'.
2895 mkdir conftest.dir
2896 # Copy depcomp to subdir because otherwise we won't find it if we're
2897 # using a relative directory.
2898 cp "$am_depcomp" conftest.dir
2899 cd conftest.dir
2900 # We will build objects and dependencies in a subdirectory because
2901 # it helps to detect inapplicable dependency modes. For instance
2902 # both Tru64's cc and ICC support -MD to output dependencies as a
2903 # side effect of compilation, but ICC will put the dependencies in
2904 # the current directory while Tru64 will put them in the object
2905 # directory.
2906 mkdir sub
2907
2908 am_cv_CC_dependencies_compiler_type=none
2909 if test "$am_compiler_list" = ""; then
2910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2911 fi
2912 for depmode in $am_compiler_list; do
2913 # Setup a source with many dependencies, because some compilers
2914 # like to wrap large dependency lists on column 80 (with \), and
2915 # we should not choose a depcomp mode which is confused by this.
2916 #
2917 # We need to recreate these files for each test, as the compiler may
2918 # overwrite some of them when testing with obscure command lines.
2919 # This happens at least with the AIX C compiler.
2920 : > sub/conftest.c
2921 for i in 1 2 3 4 5 6; do
2922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
2923 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2924 # Solaris 8's {/usr,}/bin/sh.
2925 touch sub/conftst$i.h
3ed8e5b6
AT
2926 done
2927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2928
2929 case $depmode in
2930 nosideeffect)
2931 # after this tag, mechanisms are not by side-effect, so they'll
2932 # only be used when explicitly requested
2933 if test "x$enable_dependency_tracking" = xyes; then
2934 continue
2935 else
2936 break
2937 fi
2938 ;;
2939 none) break ;;
2940 esac
2941 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2942 # mode. It turns out that the SunPro C++ compiler does not properly
2943 # handle `-M -o', and we need to detect this.
2944 if depmode=$depmode \
2945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2948 >/dev/null 2>conftest.err &&
2949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2950 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2952 # icc doesn't choke on unknown options, it will just issue warnings
88d8c771
AG
2953 # (even with -Werror). So we grep stderr for any message
2954 # that says an option was ignored.
2955 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3ed8e5b6
AT
2956 am_cv_CC_dependencies_compiler_type=$depmode
2957 break
2958 fi
2959 fi
2960 done
bbf3057b 2961
3ed8e5b6
AT
2962 cd ..
2963 rm -rf conftest.dir
2964else
2965 am_cv_CC_dependencies_compiler_type=none
2966fi
2967
2968fi
2969echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2970echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2971CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2972
2973
2974
2975if
2976 test "x$enable_dependency_tracking" != xno \
2977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2978 am__fastdepCC_TRUE=
2979 am__fastdepCC_FALSE='#'
2980else
2981 am__fastdepCC_TRUE='#'
2982 am__fastdepCC_FALSE=
2983fi
2984
2985
2986
2987
2988
2989
2990# By default we simply use the C compiler to build assembly code.
2991
076e5443
PB
2992test "${CCAS+set}" = set || CCAS=$CC
2993test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2994
3ed8e5b6
AT
2995
2996
2997if test "x$CC" != xcc; then
2998 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2999echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3000else
3001 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3002echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3003fi
3004set dummy $CC; ac_cc=`echo $2 |
3005 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3006if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024# Make sure it works both with $CC and with simple cc.
3025# We do the test twice because some compilers refuse to overwrite an
3026# existing .o file with -o, though they will create one.
3027ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3028if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); };
3038then
3039 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3040 if test "x$CC" != xcc; then
3041 # Test first that cc exists at all.
3042 if { ac_try='cc -c conftest.$ac_ext >&5'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3049 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); };
3059 then
3060 # cc works too.
3061 :
3062 else
3063 # cc exists but doesn't like -o.
3064 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3065 fi
3066 fi
3067 fi
3068else
3069 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3070fi
3071rm -f conftest*
3072
3073fi
3074if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076echo "${ECHO_T}yes" >&6
3077else
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080
3081cat >>confdefs.h <<\_ACEOF
3082#define NO_MINUS_C_MINUS_O 1
3083_ACEOF
3084
3085fi
3086
3087# FIXME: we rely on the cache variable name because
3088# there is no other way.
3089set dummy $CC
3090ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3091if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3092 # Losing compiler, so override with the script.
3093 # FIXME: It is wrong to rewrite CC.
3094 # But if we don't then we get into trouble of one sort or another.
3095 # A longer-term fix would be to have automake use am__CC in this case,
3096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3097 CC="$am_aux_dir/compile $CC"
3098fi
63e5e3e0 3099
675cdab3
BM
3100# Check whether --enable-shared or --disable-shared was given.
3101if test "${enable_shared+set}" = set; then
3102 enableval="$enable_shared"
3103 p=${PACKAGE-default}
3104case $enableval in
3105yes) enable_shared=yes ;;
3106no) enable_shared=no ;;
3107*)
3108 enable_shared=no
3109 # Look at the argument we got. We use all the common list separators.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3111 for pkg in $enableval; do
3112 if test "X$pkg" = "X$p"; then
3113 enable_shared=yes
3114 fi
63e5e3e0 3115 done
675cdab3
BM
3116 IFS="$ac_save_ifs"
3117 ;;
3118esac
3119else
3120 enable_shared=yes
3ed8e5b6 3121fi;
675cdab3
BM
3122# Check whether --enable-static or --disable-static was given.
3123if test "${enable_static+set}" = set; then
3124 enableval="$enable_static"
3125 p=${PACKAGE-default}
3126case $enableval in
3127yes) enable_static=yes ;;
3128no) enable_static=no ;;
3129*)
3130 enable_static=no
3131 # Look at the argument we got. We use all the common list separators.
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3133 for pkg in $enableval; do
3134 if test "X$pkg" = "X$p"; then
3135 enable_static=yes
3136 fi
3137 done
3138 IFS="$ac_save_ifs"
3139 ;;
3140esac
63e5e3e0 3141else
675cdab3 3142 enable_static=yes
3ed8e5b6 3143fi;
675cdab3
BM
3144# Check whether --enable-fast-install or --disable-fast-install was given.
3145if test "${enable_fast_install+set}" = set; then
3146 enableval="$enable_fast_install"
3147 p=${PACKAGE-default}
3148case $enableval in
3149yes) enable_fast_install=yes ;;
3150no) enable_fast_install=no ;;
3151*)
3152 enable_fast_install=no
3153 # Look at the argument we got. We use all the common list separators.
3154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3155 for pkg in $enableval; do
3156 if test "X$pkg" = "X$p"; then
3157 enable_fast_install=yes
3158 fi
3159 done
3160 IFS="$ac_save_ifs"
3161 ;;
3162esac
63e5e3e0 3163else
675cdab3 3164 enable_fast_install=yes
3ed8e5b6 3165fi;
63e5e3e0 3166
675cdab3
BM
3167# Check whether --with-gnu-ld or --without-gnu-ld was given.
3168if test "${with_gnu_ld+set}" = set; then
3169 withval="$with_gnu_ld"
3170 test "$withval" = no || with_gnu_ld=yes
63e5e3e0 3171else
675cdab3 3172 with_gnu_ld=no
3ed8e5b6 3173fi;
63e5e3e0 3174ac_prog=ld
675cdab3 3175if test "$GCC" = yes; then
63e5e3e0 3176 # Check if gcc -print-prog-name=ld gives a path.
3ed8e5b6
AT
3177 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3178echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2f7bf5b7
AO
3179 case $host in
3180 *-*-mingw*)
3181 # gcc leaves a trailing carriage return which upsets mingw
3182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3183 *)
3184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3185 esac
675cdab3 3186 case $ac_prog in
63e5e3e0 3187 # Accept absolute paths.
6ba9e3b0 3188 [\\/]* | [A-Za-z]:[\\/]*)
63e5e3e0
AG
3189 re_direlt='/[^/][^/]*/\.\./'
3190 # Canonicalize the path of ld
3191 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3193 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3194 done
3195 test -z "$LD" && LD="$ac_prog"
3196 ;;
3197 "")
3198 # If it fails, then pretend we aren't using GCC.
3199 ac_prog=ld
3200 ;;
3201 *)
3202 # If it is relative, then search for the first ld in PATH.
3203 with_gnu_ld=unknown
3204 ;;
3205 esac
3206elif test "$with_gnu_ld" = yes; then
3ed8e5b6
AT
3207 echo "$as_me:$LINENO: checking for GNU ld" >&5
3208echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
63e5e3e0 3209else
3ed8e5b6
AT
3210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3211echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
63e5e3e0 3212fi
3ed8e5b6
AT
3213if test "${lt_cv_path_LD+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3215else
3216 if test -z "$LD"; then
6ba9e3b0 3217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
63e5e3e0
AG
3218 for ac_dir in $PATH; do
3219 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 3220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 3221 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0
AG
3222 # Check to see if the program is GNU ld. I'd rather use --version,
3223 # but apparently some GNU ld's only accept -v.
3224 # Break only if it was the GNU/non-GNU ld that we prefer.
675cdab3 3225 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
63e5e3e0
AG
3226 test "$with_gnu_ld" != no && break
3227 else
3228 test "$with_gnu_ld" != yes && break
3229 fi
3230 fi
3231 done
3232 IFS="$ac_save_ifs"
3233else
675cdab3 3234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
3235fi
3236fi
3237
675cdab3 3238LD="$lt_cv_path_LD"
63e5e3e0 3239if test -n "$LD"; then
3ed8e5b6
AT
3240 echo "$as_me:$LINENO: result: $LD" >&5
3241echo "${ECHO_T}$LD" >&6
63e5e3e0 3242else
3ed8e5b6
AT
3243 echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
63e5e3e0 3245fi
3ed8e5b6
AT
3246test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3247echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3248 { (exit 1); exit 1; }; }
3249echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3250echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3251if test "${lt_cv_prog_gnu_ld+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3253else
3254 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3255if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
675cdab3 3256 lt_cv_prog_gnu_ld=yes
63e5e3e0 3257else
675cdab3 3258 lt_cv_prog_gnu_ld=no
63e5e3e0
AG
3259fi
3260fi
3ed8e5b6
AT
3261echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3262echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
675cdab3 3263with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 3264
63e5e3e0 3265
3ed8e5b6
AT
3266echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3267echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3268if test "${lt_cv_ld_reload_flag+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
3270else
3271 lt_cv_ld_reload_flag='-r'
3272fi
3ed8e5b6
AT
3273echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3274echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2f7bf5b7
AO
3275reload_flag=$lt_cv_ld_reload_flag
3276test -n "$reload_flag" && reload_flag=" $reload_flag"
63e5e3e0 3277
3ed8e5b6
AT
3278echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3279echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3280if test "${lt_cv_path_NM+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3282else
3283 if test -n "$NM"; then
3284 # Let the user override the test.
675cdab3 3285 lt_cv_path_NM="$NM"
63e5e3e0 3286else
6ba9e3b0 3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
63e5e3e0
AG
3288 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3289 test -z "$ac_dir" && ac_dir=.
2f7bf5b7
AO
3290 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3291 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
63e5e3e0
AG
3292 # Check to see if the nm accepts a BSD-compat flag.
3293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3294 # nm: unknown option "B" ignored
2f7bf5b7
AO
3295 # Tru64's nm complains that /dev/null is an invalid object file
3296 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
675cdab3 3297 lt_cv_path_NM="$tmp_nm -B"
63e5e3e0 3298 break
2f7bf5b7 3299 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
675cdab3 3300 lt_cv_path_NM="$tmp_nm -p"
63e5e3e0
AG
3301 break
3302 else
675cdab3 3303 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
63e5e3e0
AG
3304 continue # so that we can try to find one that supports BSD flags
3305 fi
3306 fi
3307 done
3308 IFS="$ac_save_ifs"
675cdab3 3309 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
63e5e3e0
AG
3310fi
3311fi
3312
675cdab3 3313NM="$lt_cv_path_NM"
3ed8e5b6
AT
3314echo "$as_me:$LINENO: result: $NM" >&5
3315echo "${ECHO_T}$NM" >&6
63e5e3e0 3316
3ed8e5b6
AT
3317echo "$as_me:$LINENO: checking whether ln -s works" >&5
3318echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3319LN_S=$as_ln_s
3320if test "$LN_S" = "ln -s"; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
63e5e3e0 3323else
3ed8e5b6
AT
3324 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3325echo "${ECHO_T}no, using $LN_S" >&6
63e5e3e0
AG
3326fi
3327
3ed8e5b6
AT
3328echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3329echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3330if test "${lt_cv_deplibs_check_method+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3332else
5f527203 3333 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
3334lt_cv_file_magic_test_file=
3335lt_cv_deplibs_check_method='unknown'
3336# Need to set the preceding variable on all platforms that support
3337# interlibrary dependencies.
3338# 'none' -- dependencies not supported.
3339# `unknown' -- same as none, but documents that we really don't know.
3340# 'pass_all' -- all dependencies passed with no checks.
3341# 'test_compile' -- check by making test program.
3342# 'file_magic [regex]' -- check by looking for files in library path
3343# which responds to the $file_magic_cmd with a given egrep regex.
3344# If you have `file' or equivalent on your system and you're not sure
3345# whether `pass_all' will *always* work, you probably want this one.
3346
675cdab3
BM
3347case $host_os in
3348aix*)
2f7bf5b7
AO
3349 lt_cv_deplibs_check_method=pass_all
3350 ;;
3351
3352beos*)
3353 lt_cv_deplibs_check_method=pass_all
3354 ;;
3355
3356bsdi4*)
675cdab3
BM
3357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3358 lt_cv_file_magic_cmd='/usr/bin/file -L'
2f7bf5b7
AO
3359 lt_cv_file_magic_test_file=/shlib/libc.so
3360 ;;
3361
5f527203 3362cygwin* | mingw* |pw32*)
2f7bf5b7 3363 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5f527203 3364 lt_cv_file_magic_cmd='$OBJDUMP -f'
2f7bf5b7
AO
3365 ;;
3366
675cdab3 3367darwin* | rhapsody*)
5196736e 3368 # this will be overwritten by pass_all, but leave it in just in case
675cdab3 3369 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2a7f63c4
BM
3370 lt_cv_file_magic_cmd='/usr/bin/file -L'
3371 case "$host_os" in
3372 rhapsody* | darwin1.012)
3373 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3374 ;;
3375 *) # Darwin 1.3 on
3376 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3377 ;;
3378 esac
5196736e 3379 lt_cv_deplibs_check_method=pass_all
675cdab3
BM
3380 ;;
3381
cb623172 3382freebsd* | kfreebsd*-gnu)
2f7bf5b7 3383 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
675cdab3 3384 case $host_cpu in
2f7bf5b7
AO
3385 i*86 )
3386 # Not sure whether the presence of OpenBSD here was a mistake.
3387 # Let's accept both of them until this is cleared up.
675cdab3
BM
3388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3389 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
3390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3391 ;;
3392 esac
3393 else
3394 lt_cv_deplibs_check_method=pass_all
3395 fi
3396 ;;
3397
3398gnu*)
3399 lt_cv_deplibs_check_method=pass_all
3400 ;;
3401
675cdab3 3402hpux10.20*|hpux11*)
f5cc59a7
AO
3403 case $host_cpu in
3404 hppa*)
3405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3408 ;;
3409 ia64*)
3410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3413 ;;
3414 esac
2f7bf5b7
AO
3415 ;;
3416
3417irix5* | irix6*)
675cdab3 3418 case $host_os in
2f7bf5b7
AO
3419 irix5*)
3420 # this will be overridden with pass_all, but let us keep it just in case
3421 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3422 ;;
3423 *)
675cdab3 3424 case $LD in
2f7bf5b7
AO
3425 *-32|*"-32 ") libmagic=32-bit;;
3426 *-n32|*"-n32 ") libmagic=N32;;
3427 *-64|*"-64 ") libmagic=64-bit;;
3428 *) libmagic=never-match;;
3429 esac
3430 # this will be overridden with pass_all, but let us keep it just in case
675cdab3
BM
3431 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3432 ;;
2f7bf5b7
AO
3433 esac
3434 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3435 lt_cv_deplibs_check_method=pass_all
3436 ;;
3437
3438# This must be Linux ELF.
3439linux-gnu*)
675cdab3 3440 case $host_cpu in
c779c42f 3441 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2f7bf5b7
AO
3442 lt_cv_deplibs_check_method=pass_all ;;
3443 *)
3444 # glibc up to 2.1.1 does not perform some relocations on ARM
675cdab3
BM
3445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3446 esac
2f7bf5b7
AO
3447 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3448 ;;
3449
cb623172 3450netbsd* | knetbsd*-gnu)
675cdab3 3451 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2a7f63c4 3452 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2f7bf5b7 3453 else
2a7f63c4 3454 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2f7bf5b7 3455 fi
675cdab3
BM
3456 ;;
3457
3458newsos6)
3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3460 lt_cv_file_magic_cmd=/usr/bin/file
3461 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2f7bf5b7
AO
3462 ;;
3463
3464osf3* | osf4* | osf5*)
3465 # this will be overridden with pass_all, but let us keep it just in case
3466 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3467 lt_cv_file_magic_test_file=/shlib/libc.so
3468 lt_cv_deplibs_check_method=pass_all
3469 ;;
3470
3471sco3.2v5*)
3472 lt_cv_deplibs_check_method=pass_all
3473 ;;
3474
3475solaris*)
3476 lt_cv_deplibs_check_method=pass_all
3477 lt_cv_file_magic_test_file=/lib/libc.so
3478 ;;
3479
33456445
AO
3480sysv5uw[78]* | sysv4*uw2*)
3481 lt_cv_deplibs_check_method=pass_all
3482 ;;
3483
2f7bf5b7 3484sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
675cdab3 3485 case $host_vendor in
2f7bf5b7
AO
3486 ncr)
3487 lt_cv_deplibs_check_method=pass_all
3488 ;;
3489 motorola)
675cdab3
BM
3490 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]'
3491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2f7bf5b7
AO
3492 ;;
3493 esac
3494 ;;
3495esac
3496
3497fi
3ed8e5b6
AT
3498echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3499echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2f7bf5b7
AO
3500file_magic_cmd=$lt_cv_file_magic_cmd
3501deplibs_check_method=$lt_cv_deplibs_check_method
3502
675cdab3
BM
3503
3504
675cdab3 3505
2f7bf5b7
AO
3506
3507# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3508
3509# Only perform the check for file, if the check method requires it
675cdab3 3510case $deplibs_check_method in
2f7bf5b7 3511file_magic*)
5f527203 3512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3ed8e5b6
AT
3513 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3514echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3515if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3517else
675cdab3 3518 case $MAGIC_CMD in
2f7bf5b7 3519 /*)
5f527203 3520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
3521 ;;
3522 ?:/*)
5f527203 3523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
3524 ;;
3525 *)
5f527203 3526 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3528 ac_dummy="/usr/bin:$PATH"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/${ac_tool_prefix}file; then
5f527203 3532 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2f7bf5b7 3533 if test -n "$file_magic_test_file"; then
675cdab3 3534 case $deplibs_check_method in
2f7bf5b7
AO
3535 "file_magic "*)
3536 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 3537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
3538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3539 egrep "$file_magic_regex" > /dev/null; then
3540 :
3541 else
3542 cat <<EOF 1>&2
3543
3544*** Warning: the command libtool uses to detect shared libraries,
3545*** $file_magic_cmd, produces output that libtool cannot recognize.
3546*** The result is that libtool may fail to recognize shared libraries
3547*** as such. This will affect the creation of libtool libraries that
3548*** depend on shared libraries, but programs linked with such libtool
3549*** libraries will work regardless of this problem. Nevertheless, you
3550*** may want to report the problem to your system manager and/or to
3551*** bug-libtool@gnu.org
3552
3553EOF
3554 fi ;;
3555 esac
3556 fi
3557 break
3558 fi
3559 done
3560 IFS="$ac_save_ifs"
5f527203 3561 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7
AO
3562 ;;
3563esac
3564fi
3565
5f527203
AO
3566MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567if test -n "$MAGIC_CMD"; then
3ed8e5b6
AT
3568 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3569echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 3570else
3ed8e5b6
AT
3571 echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6
2f7bf5b7
AO
3573fi
3574
5f527203 3575if test -z "$lt_cv_path_MAGIC_CMD"; then
2f7bf5b7 3576 if test -n "$ac_tool_prefix"; then
3ed8e5b6
AT
3577 echo "$as_me:$LINENO: checking for file" >&5
3578echo $ECHO_N "checking for file... $ECHO_C" >&6
3579if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3581else
675cdab3 3582 case $MAGIC_CMD in
2f7bf5b7 3583 /*)
5f527203 3584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
3585 ;;
3586 ?:/*)
5f527203 3587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
3588 ;;
3589 *)
5f527203 3590 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
3591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3592 ac_dummy="/usr/bin:$PATH"
3593 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if test -f $ac_dir/file; then
5f527203 3596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2f7bf5b7 3597 if test -n "$file_magic_test_file"; then
675cdab3 3598 case $deplibs_check_method in
2f7bf5b7
AO
3599 "file_magic "*)
3600 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 3601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
3602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3603 egrep "$file_magic_regex" > /dev/null; then
3604 :
3605 else
3606 cat <<EOF 1>&2
3607
3608*** Warning: the command libtool uses to detect shared libraries,
3609*** $file_magic_cmd, produces output that libtool cannot recognize.
3610*** The result is that libtool may fail to recognize shared libraries
3611*** as such. This will affect the creation of libtool libraries that
3612*** depend on shared libraries, but programs linked with such libtool
3613*** libraries will work regardless of this problem. Nevertheless, you
3614*** may want to report the problem to your system manager and/or to
3615*** bug-libtool@gnu.org
3616
3617EOF
3618 fi ;;
3619 esac
3620 fi
3621 break
3622 fi
3623 done
3624 IFS="$ac_save_ifs"
5f527203 3625 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7
AO
3626 ;;
3627esac
3628fi
3629
5f527203
AO
3630MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631if test -n "$MAGIC_CMD"; then
3ed8e5b6
AT
3632 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3633echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 3634else
3ed8e5b6
AT
3635 echo "$as_me:$LINENO: result: no" >&5
3636echo "${ECHO_T}no" >&6
2f7bf5b7
AO
3637fi
3638
3639 else
5f527203 3640 MAGIC_CMD=:
2f7bf5b7
AO
3641 fi
3642fi
63e5e3e0 3643
2f7bf5b7
AO
3644 fi
3645 ;;
dc5de370
HB
3646esac
3647
3ed8e5b6
AT
3648if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2f7bf5b7 3650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3ed8e5b6
AT
3651echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653if test "${ac_cv_prog_RANLIB+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
3655else
3656 if test -n "$RANLIB"; then
3657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3658else
3ed8e5b6
AT
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671done
3672
2f7bf5b7
AO
3673fi
3674fi
3ed8e5b6 3675RANLIB=$ac_cv_prog_RANLIB
2f7bf5b7 3676if test -n "$RANLIB"; then
3ed8e5b6
AT
3677 echo "$as_me:$LINENO: result: $RANLIB" >&5
3678echo "${ECHO_T}$RANLIB" >&6
2f7bf5b7 3679else
3ed8e5b6
AT
3680 echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
2f7bf5b7
AO
3682fi
3683
3ed8e5b6 3684fi
2f7bf5b7 3685if test -z "$ac_cv_prog_RANLIB"; then
3ed8e5b6 3686 ac_ct_RANLIB=$RANLIB
2f7bf5b7
AO
3687 # Extract the first word of "ranlib", so it can be a program name with args.
3688set dummy ranlib; ac_word=$2
3ed8e5b6
AT
3689echo "$as_me:$LINENO: checking for $ac_word" >&5
3690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3693else
3ed8e5b6
AT
3694 if test -n "$ac_ct_RANLIB"; then
3695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f7bf5b7 3696else
3ed8e5b6
AT
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_RANLIB="ranlib"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708done
3709done
3710
3711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2f7bf5b7
AO
3712fi
3713fi
3ed8e5b6
AT
3714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3715if test -n "$ac_ct_RANLIB"; then
3716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3717echo "${ECHO_T}$ac_ct_RANLIB" >&6
2f7bf5b7 3718else
3ed8e5b6
AT
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
2f7bf5b7
AO
3721fi
3722
3ed8e5b6 3723 RANLIB=$ac_ct_RANLIB
2f7bf5b7 3724else
3ed8e5b6 3725 RANLIB="$ac_cv_prog_RANLIB"
2f7bf5b7
AO
3726fi
3727
3ed8e5b6
AT
3728if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 3730set dummy ${ac_tool_prefix}strip; ac_word=$2
3ed8e5b6
AT
3731echo "$as_me:$LINENO: checking for $ac_word" >&5
3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733if test "${ac_cv_prog_STRIP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
3735else
3736 if test -n "$STRIP"; then
3737 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3738else
3ed8e5b6
AT
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750done
3751done
3752
2f7bf5b7
AO
3753fi
3754fi
3ed8e5b6 3755STRIP=$ac_cv_prog_STRIP
2f7bf5b7 3756if test -n "$STRIP"; then
3ed8e5b6
AT
3757 echo "$as_me:$LINENO: result: $STRIP" >&5
3758echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 3759else
3ed8e5b6
AT
3760 echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
2f7bf5b7
AO
3762fi
3763
3ed8e5b6 3764fi
2f7bf5b7 3765if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 3766 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
3767 # Extract the first word of "strip", so it can be a program name with args.
3768set dummy strip; ac_word=$2
3ed8e5b6
AT
3769echo "$as_me:$LINENO: checking for $ac_word" >&5
3770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3773else
3ed8e5b6
AT
3774 if test -n "$ac_ct_STRIP"; then
3775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 3776else
3ed8e5b6
AT
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_STRIP="strip"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788done
3789done
3790
3791 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
3792fi
3793fi
3ed8e5b6
AT
3794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3795if test -n "$ac_ct_STRIP"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3797echo "${ECHO_T}$ac_ct_STRIP" >&6
675cdab3 3798else
3ed8e5b6
AT
3799 echo "$as_me:$LINENO: result: no" >&5
3800echo "${ECHO_T}no" >&6
675cdab3
BM
3801fi
3802
3ed8e5b6 3803 STRIP=$ac_ct_STRIP
675cdab3 3804else
3ed8e5b6 3805 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
3806fi
3807
3808
3809# Check for any special flags to pass to ltconfig.
3810libtool_flags="--cache-file=$cache_file"
3811test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3812test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3813test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3814test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3815test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3816
3817
3818# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3819if test "${enable_libtool_lock+set}" = set; then
3820 enableval="$enable_libtool_lock"
675cdab3 3821
3ed8e5b6 3822fi;
675cdab3
BM
3823test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3824test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3825
3ed8e5b6 3826
675cdab3
BM
3827# Check whether --with-pic or --without-pic was given.
3828if test "${with_pic+set}" = set; then
3829 withval="$with_pic"
3830 pic_mode="$withval"
3831else
3832 pic_mode=default
3ed8e5b6 3833fi;
675cdab3
BM
3834test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3835test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3836
3837# Some flags need to be propagated to the compiler or linker for good
3838# libtool support.
3839case $host in
3840*-*-irix6*)
3841 # Find out which ABI we are using.
88d8c771 3842 echo '#line 3842 "configure"' > conftest.$ac_ext
3ed8e5b6
AT
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; then
3343fdd2
AO
3848 if test "$lt_cv_prog_gnu_ld" = yes; then
3849 case `/usr/bin/file conftest.$ac_objext` in
3850 *32-bit*)
3851 LD="${LD-ld} -melf32bsmip"
3852 ;;
3853 *N32*)
3854 LD="${LD-ld} -melf32bmipn32"
3855 ;;
3856 *64-bit*)
3857 LD="${LD-ld} -melf64bmip"
3858 ;;
3859 esac
3860 else
675cdab3
BM
3861 case `/usr/bin/file conftest.$ac_objext` in
3862 *32-bit*)
3863 LD="${LD-ld} -32"
3864 ;;
3ed8e5b6
AT
3865 *N32*)
3866 LD="${LD-ld} -n32"
3867 ;;
3868 *64-bit*)
3869 LD="${LD-ld} -64"
3870 ;;
3871 esac
3872 fi
3873 fi
3874 rm -rf conftest*
3875 ;;
675cdab3 3876
3ed8e5b6
AT
3877ia64-*-hpux*)
3878 # Find out which ABI we are using.
3879 echo 'int i;' > conftest.$ac_ext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; then
3885 case "`/usr/bin/file conftest.o`" in
3886 *ELF-32*)
3887 HPUX_IA64_MODE="32"
3888 ;;
3889 *ELF-64*)
3890 HPUX_IA64_MODE="64"
3891 ;;
3892 esac
3893 fi
3894 rm -rf conftest*
3895 ;;
675cdab3 3896
3ed8e5b6
AT
3897x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3898 # Find out which ABI we are using.
3899 echo 'int i;' > conftest.$ac_ext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; then
3905 case "`/usr/bin/file conftest.o`" in
3906 *32-bit*)
3907 case $host in
3908 x86_64-*linux*)
3909 LD="${LD-ld} -m elf_i386"
3910 ;;
3911 ppc64-*linux*|powerpc64-*linux*)
3912 LD="${LD-ld} -m elf32ppclinux"
3913 ;;
3914 s390x-*linux*)
3915 LD="${LD-ld} -m elf_s390"
3916 ;;
3917 sparc64-*linux*)
3918 LD="${LD-ld} -m elf32_sparc"
3919 ;;
3920 esac
3921 ;;
3922 *64-bit*)
3923 case $host in
3924 x86_64-*linux*)
3925 LD="${LD-ld} -m elf_x86_64"
3926 ;;
3927 ppc*-*linux*|powerpc*-*linux*)
3928 LD="${LD-ld} -m elf64ppc"
3929 ;;
3930 s390*-*linux*)
3931 LD="${LD-ld} -m elf64_s390"
3932 ;;
3933 sparc*-*linux*)
3934 LD="${LD-ld} -m elf64_sparc"
3935 ;;
3936 esac
3937 ;;
3938 esac
3939 fi
3940 rm -rf conftest*
3941 ;;
675cdab3 3942
3ed8e5b6
AT
3943*-*-sco3.2v5*)
3944 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3945 SAVE_CFLAGS="$CFLAGS"
3946 CFLAGS="$CFLAGS -belf"
3947 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3948echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3949if test "${lt_cv_cc_needs_belf+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
675cdab3
BM
3952
3953
3ed8e5b6
AT
3954 ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960 cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
675cdab3 3970
3ed8e5b6
AT
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975rm -f conftest.$ac_objext conftest$ac_exeext
3976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
88d8c771
AG
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3ed8e5b6
AT
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest$ac_exeext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 lt_cv_cc_needs_belf=yes
675cdab3 3998else
3ed8e5b6
AT
3999 echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
675cdab3 4001
3ed8e5b6 4002lt_cv_cc_needs_belf=no
675cdab3 4003fi
3ed8e5b6
AT
4004rm -f conftest.err conftest.$ac_objext \
4005 conftest$ac_exeext conftest.$ac_ext
4006 ac_ext=c
4007ac_cpp='$CPP $CPPFLAGS'
4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010ac_compiler_gnu=$ac_cv_c_compiler_gnu
675cdab3 4011
675cdab3 4012fi
3ed8e5b6
AT
4013echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4014echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4017 CFLAGS="$SAVE_CFLAGS"
4018 fi
4019 ;;
675cdab3 4020
675cdab3 4021
3ed8e5b6 4022esac
675cdab3
BM
4023
4024
3ed8e5b6
AT
4025# Save cache, so that ltconfig can load it
4026cat >confcache <<\_ACEOF
4027# This file is a shell script that caches the results of configure
4028# tests run on this system so they can be shared between configure
4029# scripts and configure runs, see configure's option --config-cache.
4030# It is not useful on other systems. If it contains results you don't
4031# want to keep, you may remove or edit it.
4032#
4033# config.status only pays attention to the cache file if you give it
4034# the --recheck option to rerun configure.
4035#
4036# `ac_cv_env_foo' variables (set or unset) will be overridden when
4037# loading this file, other *unset* `ac_cv_foo' will be assigned the
4038# following values.
675cdab3 4039
3ed8e5b6 4040_ACEOF
675cdab3 4041
3ed8e5b6
AT
4042# The following way of writing the cache mishandles newlines in values,
4043# but we know of no workaround that is simple, portable, and efficient.
4044# So, don't put newlines in cache variables' values.
4045# Ultrix sh set writes to stderr and can't be redirected directly,
4046# and sets the high bit in the cache file unless we assign to the vars.
4047{
4048 (set) 2>&1 |
4049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4050 *ac_space=\ *)
4051 # `set' does not quote correctly, so add quotes (double-quote
4052 # substitution turns \\\\ into \\, and sed turns \\ into \).
4053 sed -n \
4054 "s/'/'\\\\''/g;
4055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4056 ;;
4057 *)
4058 # `set' quotes correctly as required by POSIX, so do not add quotes.
4059 sed -n \
4060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4061 ;;
4062 esac;
4063} |
4064 sed '
4065 t clear
4066 : clear
4067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4068 t end
4069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4070 : end' >>confcache
4071if diff $cache_file confcache >/dev/null 2>&1; then :; else
4072 if test -w $cache_file; then
4073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4074 cat confcache >$cache_file
675cdab3 4075 else
3ed8e5b6 4076 echo "not updating unwritable cache $cache_file"
675cdab3 4077 fi
675cdab3 4078fi
3ed8e5b6 4079rm -f confcache
675cdab3 4080
3ed8e5b6
AT
4081# Actually configure libtool. ac_aux_dir is where install-sh is found.
4082AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4083MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4084LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4085AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4086objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4087deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4088${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4089$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4090|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4091echo "$as_me: error: libtool configure failed" >&2;}
4092 { (exit 1); exit 1; }; }
675cdab3 4093
3ed8e5b6
AT
4094# Reload cache, that may have been modified by ltconfig
4095if test -r "$cache_file"; then
4096 # Some versions of bash will fail to source /dev/null (special
4097 # files actually), so we avoid doing that.
4098 if test -f "$cache_file"; then
4099 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4100echo "$as_me: loading cache $cache_file" >&6;}
4101 case $cache_file in
4102 [\\/]* | ?:[\\/]* ) . $cache_file;;
4103 *) . ./$cache_file;;
63e5e3e0
AG
4104 esac
4105 fi
3ed8e5b6
AT
4106else
4107 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4108echo "$as_me: creating cache $cache_file" >&6;}
4109 >$cache_file
675cdab3 4110fi
63e5e3e0 4111
675cdab3 4112
3ed8e5b6
AT
4113# This can be used to rebuild libtool when needed
4114LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
63e5e3e0 4115
3ed8e5b6
AT
4116# Always use our own libtool.
4117LIBTOOL='$(SHELL) $(top_builddir)/libtool'
63e5e3e0 4118
3ed8e5b6
AT
4119# Redirect the config.log output again, so that the ltconfig log is not
4120# clobbered by the next message.
4121exec 5>>./config.log
2f7bf5b7 4122
63e5e3e0 4123
63e5e3e0 4124
63e5e3e0 4125
63e5e3e0
AG
4126
4127
63e5e3e0 4128
3ed8e5b6
AT
4129echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4130echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4131 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4132if test "${enable_maintainer_mode+set}" = set; then
4133 enableval="$enable_maintainer_mode"
4134 USE_MAINTAINER_MODE=$enableval
675cdab3 4135else
3ed8e5b6
AT
4136 USE_MAINTAINER_MODE=no
4137fi;
4138 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4139echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4140
4141
4142if test $USE_MAINTAINER_MODE = yes; then
4143 MAINTAINER_MODE_TRUE=
4144 MAINTAINER_MODE_FALSE='#'
4145else
4146 MAINTAINER_MODE_TRUE='#'
4147 MAINTAINER_MODE_FALSE=
675cdab3 4148fi
63e5e3e0 4149
3ed8e5b6 4150 MAINT=$MAINTAINER_MODE_TRUE
bbf3057b 4151
2f7bf5b7 4152
2f7bf5b7 4153
c9b93377
JB
4154ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4160echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4161# On Suns, sometimes $CPP names a directory.
4162if test -n "$CPP" && test -d "$CPP"; then
4163 CPP=
3eee102e 4164fi
c9b93377
JB
4165if test -z "$CPP"; then
4166 if test "${ac_cv_prog_CPP+set}" = set; then
3ed8e5b6
AT
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
c9b93377
JB
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4171 do
4172 ac_preproc_ok=false
4173for ac_c_preproc_warn_flag in '' yes
4174do
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
3ed8e5b6
AT
4181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
c9b93377
JB
4187#ifdef __STDC__
4188# include <limits.h>
4189#else
4190# include <assert.h>
3eee102e 4191#endif
c9b93377 4192 Syntax error
3ed8e5b6 4193_ACEOF
c9b93377
JB
4194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3ed8e5b6
AT
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c9b93377
JB
4201 (exit $ac_status); } >/dev/null; then
4202 if test -s conftest.err; then
4203 ac_cpp_err=$ac_c_preproc_warn_flag
4204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205 else
4206 ac_cpp_err=
4207 fi
4208else
4209 ac_cpp_err=yes
4210fi
4211if test -z "$ac_cpp_err"; then
4212 :
3eee102e 4213else
3ed8e5b6
AT
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
c9b93377
JB
4217 # Broken: fails on valid input.
4218continue
3eee102e 4219fi
c9b93377 4220rm -f conftest.err conftest.$ac_ext
3eee102e 4221
c9b93377
JB
4222 # OK, works on sane cases. Now check whether non-existent headers
4223 # can be detected and how.
4224 cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
4230#include <ac_nonexistent.h>
4231_ACEOF
4232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 else
4244 ac_cpp_err=
4245 fi
3eee102e 4246else
c9b93377 4247 ac_cpp_err=yes
3eee102e 4248fi
c9b93377
JB
4249if test -z "$ac_cpp_err"; then
4250 # Broken: success on invalid input.
4251continue
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
3eee102e 4255
c9b93377
JB
4256 # Passes both tests.
4257ac_preproc_ok=:
4258break
3eee102e 4259fi
c9b93377 4260rm -f conftest.err conftest.$ac_ext
3eee102e 4261
c9b93377
JB
4262done
4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264rm -f conftest.err conftest.$ac_ext
4265if $ac_preproc_ok; then
4266 break
3eee102e 4267fi
3ed8e5b6 4268
c9b93377
JB
4269 done
4270 ac_cv_prog_CPP=$CPP
3eee102e
AT
4271
4272fi
c9b93377 4273 CPP=$ac_cv_prog_CPP
bbf3057b 4274else
c9b93377 4275 ac_cv_prog_CPP=$CPP
bbf3057b 4276fi
c9b93377
JB
4277echo "$as_me:$LINENO: result: $CPP" >&5
4278echo "${ECHO_T}$CPP" >&6
4279ac_preproc_ok=false
3ed8e5b6
AT
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
63e5e3e0 4286 # On the NeXT, cc -E runs the code through the compiler's parser,
3ed8e5b6
AT
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
4294#ifdef __STDC__
4295# include <limits.h>
4296#else
4297# include <assert.h>
4298#endif
4299 Syntax error
4300_ACEOF
4301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4312 else
4313 ac_cpp_err=
4314 fi
63e5e3e0 4315else
3ed8e5b6
AT
4316 ac_cpp_err=yes
4317fi
4318if test -z "$ac_cpp_err"; then
63e5e3e0
AG
4319 :
4320else
3ed8e5b6
AT
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 # Broken: fails on valid input.
4325continue
4326fi
4327rm -f conftest.err conftest.$ac_ext
4328
4329 # OK, works on sane cases. Now check whether non-existent headers
4330 # can be detected and how.
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337#include <ac_nonexistent.h>
4338_ACEOF
4339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null; then
4347 if test -s conftest.err; then
4348 ac_cpp_err=$ac_c_preproc_warn_flag
4349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4350 else
4351 ac_cpp_err=
4352 fi
63e5e3e0 4353else
c9b93377
JB
4354 ac_cpp_err=yes
4355fi
4356if test -z "$ac_cpp_err"; then
4357 # Broken: success on invalid input.
4358continue
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Passes both tests.
4364ac_preproc_ok=:
4365break
4366fi
4367rm -f conftest.err conftest.$ac_ext
4368
4369done
4370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371rm -f conftest.err conftest.$ac_ext
4372if $ac_preproc_ok; then
4373 :
4374else
4375 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4376See \`config.log' for more details." >&5
4377echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4378See \`config.log' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4380fi
4381
4382ac_ext=c
4383ac_cpp='$CPP $CPPFLAGS'
4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388
4389echo "$as_me:$LINENO: checking for egrep" >&5
4390echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4391if test "${ac_cv_prog_egrep+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4395 then ac_cv_prog_egrep='grep -E'
4396 else ac_cv_prog_egrep='egrep'
4397 fi
4398fi
4399echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4400echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4401 EGREP=$ac_cv_prog_egrep
4402
4403
4404echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4406if test "${ac_cv_header_stdc+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416#include <stdarg.h>
4417#include <string.h>
4418#include <float.h>
4419
4420int
4421main ()
4422{
4423
4424 ;
4425 return 0;
4426}
4427_ACEOF
4428rm -f conftest.$ac_objext
4429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
88d8c771
AG
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
c9b93377
JB
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_header_stdc=yes
4451else
4452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455ac_cv_header_stdc=no
4456fi
4457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458
4459if test $ac_cv_header_stdc = yes; then
4460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <string.h>
4468
4469_ACEOF
4470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 $EGREP "memchr" >/dev/null 2>&1; then
4472 :
4473else
4474 ac_cv_header_stdc=no
4475fi
4476rm -f conftest*
4477
4478fi
4479
4480if test $ac_cv_header_stdc = yes; then
4481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
4488#include <stdlib.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "free" >/dev/null 2>&1; then
4493 :
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503 if test "$cross_compiling" = yes; then
4504 :
4505else
4506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512#include <ctype.h>
4513#if ((' ' & 0x0FF) == 0x020)
4514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516#else
4517# define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522#endif
4523
4524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525int
4526main ()
4527{
4528 int i;
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4532 exit(2);
4533 exit (0);
4534}
4535_ACEOF
4536rm -f conftest$ac_exeext
4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 :
4548else
4549 echo "$as_me: program exited with status $ac_status" >&5
4550echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553( exit $ac_status )
4554ac_cv_header_stdc=no
4555fi
4556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4557fi
4558fi
4559fi
4560echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4561echo "${ECHO_T}$ac_cv_header_stdc" >&6
4562if test $ac_cv_header_stdc = yes; then
4563
4564cat >>confdefs.h <<\_ACEOF
4565#define STDC_HEADERS 1
4566_ACEOF
4567
4568fi
4569
4570# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4581 inttypes.h stdint.h unistd.h
4582do
4583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584echo "$as_me:$LINENO: checking for $ac_header" >&5
4585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4586if eval "test \"\${$as_ac_Header+set}\" = set"; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589 cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h. */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h. */
4595$ac_includes_default
4596
4597#include <$ac_header>
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
88d8c771
AG
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
c9b93377
JB
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_Header=yes"
4622else
4623 echo "$as_me: failed program was:" >&5
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
4626eval "$as_ac_Header=no"
4627fi
4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629fi
4630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4632if test `eval echo '${'$as_ac_Header'}'` = yes; then
4633 cat >>confdefs.h <<_ACEOF
4634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635_ACEOF
4636
4637fi
4638
4639done
4640
4641
4642
4643for ac_header in sys/mman.h
4644do
4645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646if eval "test \"\${$as_ac_Header+set}\" = set"; then
4647 echo "$as_me:$LINENO: checking for $ac_header" >&5
4648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4649if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651fi
4652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654else
4655 # Is the header compilable?
4656echo "$as_me:$LINENO: checking $ac_header usability" >&5
4657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4658cat >conftest.$ac_ext <<_ACEOF
4659/* confdefs.h. */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h. */
4664$ac_includes_default
4665#include <$ac_header>
4666_ACEOF
4667rm -f conftest.$ac_objext
4668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
88d8c771
AG
4676 { ac_try='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
c9b93377
JB
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_header_compiler=yes
4690else
4691 echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_header_compiler=no
4695fi
4696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4698echo "${ECHO_T}$ac_header_compiler" >&6
4699
4700# Is the header present?
4701echo "$as_me:$LINENO: checking $ac_header presence" >&5
4702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4703cat >conftest.$ac_ext <<_ACEOF
4704/* confdefs.h. */
4705_ACEOF
4706cat confdefs.h >>conftest.$ac_ext
4707cat >>conftest.$ac_ext <<_ACEOF
4708/* end confdefs.h. */
4709#include <$ac_header>
4710_ACEOF
4711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null; then
4719 if test -s conftest.err; then
4720 ac_cpp_err=$ac_c_preproc_warn_flag
4721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4722 else
4723 ac_cpp_err=
4724 fi
4725else
4726 ac_cpp_err=yes
4727fi
4728if test -z "$ac_cpp_err"; then
4729 ac_header_preproc=yes
4730else
4731 echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 ac_header_preproc=no
4735fi
4736rm -f conftest.err conftest.$ac_ext
4737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4738echo "${ECHO_T}$ac_header_preproc" >&6
4739
4740# So? What about this header?
4741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 yes:no: )
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4747 ac_header_preproc=yes
4748 ;;
4749 no:yes:* )
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4762 (
4763 cat <<\_ASBOX
4764## ------------------------------------------- ##
4765## Report this to http://gcc.gnu.org/bugs.html ##
4766## ------------------------------------------- ##
4767_ASBOX
4768 ) |
4769 sed "s/^/$as_me: WARNING: /" >&2
4770 ;;
4771esac
4772echo "$as_me:$LINENO: checking for $ac_header" >&5
4773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4774if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 eval "$as_ac_Header=\$ac_header_preproc"
4778fi
4779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781
4782fi
4783if test `eval echo '${'$as_ac_Header'}'` = yes; then
4784 cat >>confdefs.h <<_ACEOF
4785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786_ACEOF
4787
4788fi
4789
4790done
4791
4792
4793for ac_func in mmap
4794do
4795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796echo "$as_me:$LINENO: checking for $ac_func" >&5
4797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4798if eval "test \"\${$as_ac_var+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
4807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4809#define $ac_func innocuous_$ac_func
4810
4811/* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func (); below.
4813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 <limits.h> exists even on freestanding compilers. */
4815
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821
4822#undef $ac_func
4823
4824/* Override any gcc2 internal prototype to avoid an error. */
4825#ifdef __cplusplus
4826extern "C"
4827{
4828#endif
4829/* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831char $ac_func ();
4832/* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836choke me
4837#else
4838char (*f) () = $ac_func;
4839#endif
4840#ifdef __cplusplus
4841}
4842#endif
4843
4844int
4845main ()
4846{
4847return f != $ac_func;
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext conftest$ac_exeext
4853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
88d8c771
AG
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
c9b93377
JB
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 eval "$as_ac_var=yes"
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879eval "$as_ac_var=no"
4880fi
4881rm -f conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4883fi
4884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4886if test `eval echo '${'$as_ac_var'}'` = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4889_ACEOF
4890
4891fi
4892done
4893
4d447364
MR
4894
4895if test "${ac_cv_header_sys_mman_h+set}" = set; then
4896 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4897echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4898if test "${ac_cv_header_sys_mman_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900fi
4901echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4902echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4903else
4904 # Is the header compilable?
4905echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4906echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4907cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913$ac_includes_default
4914#include <sys/mman.h>
4915_ACEOF
4916rm -f conftest.$ac_objext
4917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
88d8c771
AG
4925 { ac_try='test -z "$ac_c_werror_flag"
4926 || test ! -s conftest.err'
4d447364
MR
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest.$ac_objext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_header_compiler=yes
4939else
4940 echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943ac_header_compiler=no
4944fi
4945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4947echo "${ECHO_T}$ac_header_compiler" >&6
4948
4949# Is the header present?
4950echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4951echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4952cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
4958#include <sys/mman.h>
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978 ac_header_preproc=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 ac_header_preproc=no
4984fi
4985rm -f conftest.err conftest.$ac_ext
4986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4987echo "${ECHO_T}$ac_header_preproc" >&6
4988
4989# So? What about this header?
4990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4991 yes:no: )
4992 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4993echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4995echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4996 ac_header_preproc=yes
4997 ;;
4998 no:yes:* )
4999 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5000echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5002echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5004echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5006echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5007 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5008echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5009 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5010echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5011 (
5012 cat <<\_ASBOX
5013## ------------------------------------------- ##
5014## Report this to http://gcc.gnu.org/bugs.html ##
5015## ------------------------------------------- ##
5016_ASBOX
5017 ) |
5018 sed "s/^/$as_me: WARNING: /" >&2
5019 ;;
5020esac
5021echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5022echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5023if test "${ac_cv_header_sys_mman_h+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 ac_cv_header_sys_mman_h=$ac_header_preproc
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5029echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5030
5031fi
5032if test $ac_cv_header_sys_mman_h = yes; then
5033 libffi_header_sys_mman_h=yes
5034else
5035 libffi_header_sys_mman_h=no
5036fi
5037
5038
5039echo "$as_me:$LINENO: checking for mmap" >&5
5040echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5041if test "${ac_cv_func_mmap+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044 cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5052#define mmap innocuous_mmap
5053
5054/* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char mmap (); below.
5056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 <limits.h> exists even on freestanding compilers. */
5058
5059#ifdef __STDC__
5060# include <limits.h>
5061#else
5062# include <assert.h>
5063#endif
5064
5065#undef mmap
5066
5067/* Override any gcc2 internal prototype to avoid an error. */
5068#ifdef __cplusplus
5069extern "C"
5070{
5071#endif
5072/* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074char mmap ();
5075/* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078#if defined (__stub_mmap) || defined (__stub___mmap)
5079choke me
5080#else
5081char (*f) () = mmap;
5082#endif
5083#ifdef __cplusplus
5084}
5085#endif
5086
5087int
5088main ()
5089{
5090return f != mmap;
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095rm -f conftest.$ac_objext conftest$ac_exeext
5096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
88d8c771
AG
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
4d447364
MR
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_func_mmap=yes
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122ac_cv_func_mmap=no
5123fi
5124rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5128echo "${ECHO_T}$ac_cv_func_mmap" >&6
5129if test $ac_cv_func_mmap = yes; then
5130 libffi_func_mmap=yes
5131else
5132 libffi_func_mmap=no
5133fi
5134
5135if test "$libffi_header_sys_mman_h" != yes \
5136 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
5137 ac_cv_func_mmap_file=no
5138 ac_cv_func_mmap_dev_zero=no
5139 ac_cv_func_mmap_anon=no
5140else
5141 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5142echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5143if test "${ac_cv_func_mmap_file+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 # Add a system to this blacklist if
5147 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5148 # memory area containing the same data that you'd get if you applied
5149 # read() to the same fd. The only system known to have a problem here
5150 # is VMS, where text files have record structure.
5151 case "$host_os" in
5152 vms* | ultrix*)
5153 ac_cv_func_mmap_file=no ;;
5154 *)
5155 ac_cv_func_mmap_file=yes;;
5156 esac
5157fi
5158echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5159echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5160 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5161echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5162if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 # Add a system to this blacklist if it has mmap() but /dev/zero
5166 # does not exist, or if mmapping /dev/zero does not give anonymous
5167 # zeroed pages with both the following properties:
5168 # 1. If you map N consecutive pages in with one call, and then
5169 # unmap any subset of those pages, the pages that were not
5170 # explicitly unmapped remain accessible.
5171 # 2. If you map two adjacent blocks of memory and then unmap them
5172 # both at once, they must both go away.
5173 # Systems known to be in this category are Windows (all variants),
5174 # VMS, and Darwin.
5175 case "$host_os" in
5176 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5177 ac_cv_func_mmap_dev_zero=no ;;
5178 *)
5179 ac_cv_func_mmap_dev_zero=yes;;
5180 esac
5181fi
5182echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5183echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5184
5185 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5186 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5187echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5188if test "${ac_cv_decl_map_anon+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h. */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h. */
5197#include <sys/types.h>
5198#include <sys/mman.h>
5199#include <unistd.h>
5200
5201#ifndef MAP_ANONYMOUS
5202#define MAP_ANONYMOUS MAP_ANON
5203#endif
5204
5205int
5206main ()
5207{
5208int n = MAP_ANONYMOUS;
5209 ;
5210 return 0;
5211}
5212_ACEOF
5213rm -f conftest.$ac_objext
5214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
88d8c771
AG
5222 { ac_try='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
c9b93377
JB
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest.$ac_objext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_decl_map_anon=yes
5236else
5237 echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240ac_cv_decl_map_anon=no
5241fi
5242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243fi
5244echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5245echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5246
5247 if test $ac_cv_decl_map_anon = no; then
5248 ac_cv_func_mmap_anon=no
5249 else
5250 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5251echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5252if test "${ac_cv_func_mmap_anon+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5256 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5257 # doesn't give anonymous zeroed pages with the same properties listed
5258 # above for use of /dev/zero.
5259 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5260 case "$host_os" in
5261 vms* | cygwin* | pe | mingw* | sco* | udk* )
5262 ac_cv_func_mmap_anon=no ;;
5263 *)
5264 ac_cv_func_mmap_anon=yes;;
5265 esac
5266fi
5267echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5268echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5269 fi
5270fi
5271
5272if test $ac_cv_func_mmap_file = yes; then
5273
5274cat >>confdefs.h <<\_ACEOF
5275#define HAVE_MMAP_FILE 1
5276_ACEOF
5277
5278fi
5279if test $ac_cv_func_mmap_dev_zero = yes; then
5280
5281cat >>confdefs.h <<\_ACEOF
5282#define HAVE_MMAP_DEV_ZERO 1
5283_ACEOF
5284
5285fi
5286if test $ac_cv_func_mmap_anon = yes; then
5287
5288cat >>confdefs.h <<\_ACEOF
5289#define HAVE_MMAP_ANON 1
5290_ACEOF
5291
5292fi
5293
5294
5295
5296
5297if test -d $srcdir/testsuite; then
5298 TESTSUBDIR_TRUE=
5299 TESTSUBDIR_FALSE='#'
5300else
5301 TESTSUBDIR_TRUE='#'
5302 TESTSUBDIR_FALSE=
5303fi
5304
5305
5306TARGETDIR="unknown"
5307case "$host" in
5308i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5309i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5310i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
98a5bb3b
RM
5311i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5312i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
c9b93377
JB
5313i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5314i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5315i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
88d8c771 5316frv-*-*) TARGET=FRV; TARGETDIR=frv;;
c9b93377
JB
5317sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5318sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
98a5bb3b
RM
5319sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5320sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5321alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
c9b93377
JB
5322ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5323m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5324mips64*-*);;
5325mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5326mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5327powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5328powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5329powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5330powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5331rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5332arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
98a5bb3b 5333arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
c9b93377
JB
5334s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5335s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
98a5bb3b 5336x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
c9b93377
JB
5337sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5338sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5339hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
5340esac
5341
5342
5343
5344if test $TARGETDIR = unknown; then
5345 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5346echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5347 { (exit 1); exit 1; }; }
5348fi
5349
5350
5351
5352if test x$TARGET = xMIPS_IRIX; then
5353 MIPS_IRIX_TRUE=
5354 MIPS_IRIX_FALSE='#'
5355else
5356 MIPS_IRIX_TRUE='#'
5357 MIPS_IRIX_FALSE=
5358fi
5359
5360
5361
5362if test x$TARGET = xMIPS_LINUX; then
5363 MIPS_LINUX_TRUE=
5364 MIPS_LINUX_FALSE='#'
5365else
5366 MIPS_LINUX_TRUE='#'
5367 MIPS_LINUX_FALSE=
5368fi
5369
5370
5371
5372if test x$TARGET = xSPARC; then
5373 SPARC_TRUE=
5374 SPARC_FALSE='#'
5375else
5376 SPARC_TRUE='#'
5377 SPARC_FALSE=
5378fi
5379
5380
5381
5382if test x$TARGET = xX86; then
5383 X86_TRUE=
5384 X86_FALSE='#'
5385else
5386 X86_TRUE='#'
5387 X86_FALSE=
63e5e3e0 5388fi
c9b93377
JB
5389
5390
5391
5392if test x$TARGET = xX86_WIN32; then
5393 X86_WIN32_TRUE=
5394 X86_WIN32_FALSE='#'
3ed8e5b6 5395else
c9b93377
JB
5396 X86_WIN32_TRUE='#'
5397 X86_WIN32_FALSE=
5398fi
3ed8e5b6 5399
c9b93377
JB
5400
5401
5402if test x$TARGET = xALPHA; then
5403 ALPHA_TRUE=
5404 ALPHA_FALSE='#'
5405else
5406 ALPHA_TRUE='#'
5407 ALPHA_FALSE=
63e5e3e0 5408fi
3ed8e5b6 5409
c9b93377
JB
5410
5411
5412if test x$TARGET = xIA64; then
5413 IA64_TRUE=
5414 IA64_FALSE='#'
5415else
5416 IA64_TRUE='#'
5417 IA64_FALSE=
63e5e3e0 5418fi
3ed8e5b6 5419
3ed8e5b6 5420
c9b93377
JB
5421
5422if test x$TARGET = xM68K; then
5423 M68K_TRUE=
5424 M68K_FALSE='#'
5425else
5426 M68K_TRUE='#'
5427 M68K_FALSE=
3ed8e5b6 5428fi
c9b93377
JB
5429
5430
5431
5432if test x$TARGET = xPOWERPC; then
5433 POWERPC_TRUE=
5434 POWERPC_FALSE='#'
3ed8e5b6 5435else
c9b93377
JB
5436 POWERPC_TRUE='#'
5437 POWERPC_FALSE=
3ed8e5b6 5438fi
c9b93377
JB
5439
5440
5441
5442if test x$TARGET = xPOWERPC_AIX; then
5443 POWERPC_AIX_TRUE=
5444 POWERPC_AIX_FALSE='#'
3ed8e5b6 5445else
c9b93377
JB
5446 POWERPC_AIX_TRUE='#'
5447 POWERPC_AIX_FALSE=
3ed8e5b6 5448fi
c9b93377
JB
5449
5450
5451
5452if test x$TARGET = xPOWERPC_DARWIN; then
5453 POWERPC_DARWIN_TRUE=
5454 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 5455else
c9b93377
JB
5456 POWERPC_DARWIN_TRUE='#'
5457 POWERPC_DARWIN_FALSE=
5458fi
3ed8e5b6 5459
c9b93377
JB
5460
5461
5462if test x$TARGET = xARM; then
5463 ARM_TRUE=
5464 ARM_FALSE='#'
5465else
5466 ARM_TRUE='#'
5467 ARM_FALSE=
3ed8e5b6 5468fi
3ed8e5b6 5469
c9b93377
JB
5470
5471
88d8c771
AG
5472if test x$TARGET = xFRV; then
5473 FRV_TRUE=
5474 FRV_FALSE='#'
5475else
5476 FRV_TRUE='#'
5477 FRV_FALSE=
5478fi
5479
5480
5481
c9b93377
JB
5482if test x$TARGET = xS390; then
5483 S390_TRUE=
5484 S390_FALSE='#'
3ed8e5b6 5485else
c9b93377
JB
5486 S390_TRUE='#'
5487 S390_FALSE=
3ed8e5b6 5488fi
c9b93377
JB
5489
5490
5491
5492if test x$TARGET = xX86_64; then
5493 X86_64_TRUE=
5494 X86_64_FALSE='#'
3ed8e5b6 5495else
c9b93377
JB
5496 X86_64_TRUE='#'
5497 X86_64_FALSE=
5498fi
3ed8e5b6 5499
c9b93377
JB
5500
5501
5502if test x$TARGET = xSH; then
5503 SH_TRUE=
5504 SH_FALSE='#'
5505else
5506 SH_TRUE='#'
5507 SH_FALSE=
63e5e3e0 5508fi
3ed8e5b6 5509
c9b93377
JB
5510
5511
5512if test x$TARGET = xSH64; then
5513 SH64_TRUE=
5514 SH64_FALSE='#'
63e5e3e0 5515else
c9b93377
JB
5516 SH64_TRUE='#'
5517 SH64_FALSE=
63e5e3e0 5518fi
63e5e3e0 5519
3ed8e5b6
AT
5520
5521
c9b93377
JB
5522if test x$TARGET = xPA; then
5523 PA_TRUE=
5524 PA_FALSE='#'
63e5e3e0 5525else
c9b93377
JB
5526 PA_TRUE='#'
5527 PA_FALSE=
3ed8e5b6 5528fi
3ed8e5b6
AT
5529
5530
c9b93377
JB
5531case x$TARGET in
5532 xMIPS*) TARGET=MIPS ;;
5533 *) ;;
5534esac
5535
3ed8e5b6
AT
5536echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5538if test "${ac_cv_header_stdc+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
63e5e3e0
AG
5547#include <stdlib.h>
5548#include <stdarg.h>
5549#include <string.h>
5550#include <float.h>
3ed8e5b6
AT
5551
5552int
5553main ()
5554{
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
5561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
88d8c771
AG
5569 { ac_try='test -z "$ac_c_werror_flag"
5570 || test ! -s conftest.err'
3ed8e5b6
AT
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try='test -s conftest.$ac_objext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
63e5e3e0
AG
5582 ac_cv_header_stdc=yes
5583else
3ed8e5b6
AT
5584 echo "$as_me: failed program was:" >&5
5585sed 's/^/| /' conftest.$ac_ext >&5
5586
5587ac_cv_header_stdc=no
63e5e3e0 5588fi
3ed8e5b6 5589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
5590
5591if test $ac_cv_header_stdc = yes; then
5592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3ed8e5b6
AT
5593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h. */
63e5e3e0 5599#include <string.h>
3ed8e5b6
AT
5600
5601_ACEOF
63e5e3e0 5602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 5603 $EGREP "memchr" >/dev/null 2>&1; then
63e5e3e0
AG
5604 :
5605else
63e5e3e0
AG
5606 ac_cv_header_stdc=no
5607fi
5608rm -f conftest*
5609
5610fi
5611
5612if test $ac_cv_header_stdc = yes; then
5613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3ed8e5b6
AT
5614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
63e5e3e0 5620#include <stdlib.h>
3ed8e5b6
AT
5621
5622_ACEOF
63e5e3e0 5623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 5624 $EGREP "free" >/dev/null 2>&1; then
63e5e3e0
AG
5625 :
5626else
63e5e3e0
AG
5627 ac_cv_header_stdc=no
5628fi
5629rm -f conftest*
5630
5631fi
5632
5633if test $ac_cv_header_stdc = yes; then
5634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3ed8e5b6 5635 if test "$cross_compiling" = yes; then
63e5e3e0
AG
5636 :
5637else
3ed8e5b6
AT
5638 cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */
63e5e3e0 5644#include <ctype.h>
3ed8e5b6
AT
5645#if ((' ' & 0x0FF) == 0x020)
5646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5648#else
5649# define ISLOWER(c) \
5650 (('a' <= (c) && (c) <= 'i') \
5651 || ('j' <= (c) && (c) <= 'r') \
5652 || ('s' <= (c) && (c) <= 'z'))
5653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5654#endif
63e5e3e0 5655
3ed8e5b6
AT
5656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5657int
5658main ()
5659{
5660 int i;
5661 for (i = 0; i < 256; i++)
5662 if (XOR (islower (i), ISLOWER (i))
5663 || toupper (i) != TOUPPER (i))
5664 exit(2);
5665 exit (0);
5666}
5667_ACEOF
5668rm -f conftest$ac_exeext
5669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
63e5e3e0
AG
5679 :
5680else
3ed8e5b6
AT
5681 echo "$as_me: program exited with status $ac_status" >&5
5682echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685( exit $ac_status )
5686ac_cv_header_stdc=no
63e5e3e0 5687fi
3ed8e5b6 5688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 5689fi
63e5e3e0
AG
5690fi
5691fi
3ed8e5b6
AT
5692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5693echo "${ECHO_T}$ac_cv_header_stdc" >&6
63e5e3e0 5694if test $ac_cv_header_stdc = yes; then
3ed8e5b6
AT
5695
5696cat >>confdefs.h <<\_ACEOF
63e5e3e0 5697#define STDC_HEADERS 1
3ed8e5b6 5698_ACEOF
63e5e3e0
AG
5699
5700fi
5701
3ed8e5b6 5702
63e5e3e0
AG
5703for ac_func in memcpy
5704do
3ed8e5b6
AT
5705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5706echo "$as_me:$LINENO: checking for $ac_func" >&5
5707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5708if eval "test \"\${$as_ac_var+set}\" = set"; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5719#define $ac_func innocuous_$ac_func
5720
63e5e3e0 5721/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
5722 which can conflict with char $ac_func (); below.
5723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 <limits.h> exists even on freestanding compilers. */
63e5e3e0 5725
3ed8e5b6
AT
5726#ifdef __STDC__
5727# include <limits.h>
5728#else
5729# include <assert.h>
5730#endif
63e5e3e0 5731
3ed8e5b6
AT
5732#undef $ac_func
5733
5734/* Override any gcc2 internal prototype to avoid an error. */
5735#ifdef __cplusplus
5736extern "C"
5737{
5738#endif
5739/* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5741char $ac_func ();
63e5e3e0
AG
5742/* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746choke me
5747#else
3ed8e5b6
AT
5748char (*f) () = $ac_func;
5749#endif
5750#ifdef __cplusplus
5751}
63e5e3e0
AG
5752#endif
5753
3ed8e5b6
AT
5754int
5755main ()
5756{
5757return f != $ac_func;
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762rm -f conftest.$ac_objext conftest$ac_exeext
5763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764 (eval $ac_link) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
88d8c771
AG
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
3ed8e5b6
AT
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest$ac_exeext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 eval "$as_ac_var=yes"
5785else
5786 echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789eval "$as_ac_var=no"
5790fi
5791rm -f conftest.err conftest.$ac_objext \
5792 conftest$ac_exeext conftest.$ac_ext
5793fi
5794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5796if test `eval echo '${'$as_ac_var'}'` = yes; then
5797 cat >>confdefs.h <<_ACEOF
5798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5799_ACEOF
63e5e3e0 5800
63e5e3e0
AG
5801fi
5802done
5803
5804# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5805# for constant arguments. Useless!
3ed8e5b6
AT
5806echo "$as_me:$LINENO: checking for working alloca.h" >&5
5807echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5808if test "${ac_cv_working_alloca_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h. */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
5816/* end confdefs.h. */
63e5e3e0 5817#include <alloca.h>
3ed8e5b6
AT
5818int
5819main ()
5820{
5821char *p = (char *) alloca (2 * sizeof (int));
5822 ;
5823 return 0;
5824}
5825_ACEOF
5826rm -f conftest.$ac_objext conftest$ac_exeext
5827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
88d8c771
AG
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
3ed8e5b6
AT
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_working_alloca_h=yes
5849else
5850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853ac_cv_working_alloca_h=no
5854fi
5855rm -f conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857fi
5858echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5859echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5860if test $ac_cv_working_alloca_h = yes; then
5861
5862cat >>confdefs.h <<\_ACEOF
63e5e3e0 5863#define HAVE_ALLOCA_H 1
3ed8e5b6 5864_ACEOF
63e5e3e0
AG
5865
5866fi
5867
3ed8e5b6
AT
5868echo "$as_me:$LINENO: checking for alloca" >&5
5869echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5870if test "${ac_cv_func_alloca_works+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 5872else
3ed8e5b6
AT
5873 cat >conftest.$ac_ext <<_ACEOF
5874/* confdefs.h. */
5875_ACEOF
5876cat confdefs.h >>conftest.$ac_ext
5877cat >>conftest.$ac_ext <<_ACEOF
5878/* end confdefs.h. */
63e5e3e0
AG
5879#ifdef __GNUC__
5880# define alloca __builtin_alloca
5881#else
5882# ifdef _MSC_VER
5883# include <malloc.h>
5884# define alloca _alloca
5885# else
5886# if HAVE_ALLOCA_H
5887# include <alloca.h>
5888# else
5889# ifdef _AIX
5890 #pragma alloca
5891# else
5892# ifndef alloca /* predefined by HP cc +Olibcalls */
5893char *alloca ();
5894# endif
5895# endif
5896# endif
5897# endif
5898#endif
5899
3ed8e5b6
AT
5900int
5901main ()
5902{
5903char *p = (char *) alloca (1);
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext conftest$ac_exeext
5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
88d8c771
AG
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
3ed8e5b6
AT
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
63e5e3e0
AG
5930 ac_cv_func_alloca_works=yes
5931else
3ed8e5b6
AT
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935ac_cv_func_alloca_works=no
63e5e3e0 5936fi
3ed8e5b6
AT
5937rm -f conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 5939fi
3ed8e5b6
AT
5940echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5941echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
63e5e3e0 5942
63e5e3e0 5943if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 5944
3ed8e5b6
AT
5945cat >>confdefs.h <<\_ACEOF
5946#define HAVE_ALLOCA 1
5947_ACEOF
63e5e3e0 5948
3ed8e5b6 5949else
63e5e3e0 5950 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
5951# that cause trouble. Some versions do not even contain alloca or
5952# contain a buggy version. If you still want to use their alloca,
5953# use ar to extract alloca.o from them instead of compiling alloca.c.
5954
5955ALLOCA=alloca.$ac_objext
5956
5957cat >>confdefs.h <<\_ACEOF
63e5e3e0 5958#define C_ALLOCA 1
3ed8e5b6 5959_ACEOF
63e5e3e0
AG
5960
5961
3ed8e5b6
AT
5962echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5963echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5964if test "${ac_cv_os_cray+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 5966else
3ed8e5b6
AT
5967 cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
63e5e3e0
AG
5973#if defined(CRAY) && ! defined(CRAY2)
5974webecray
5975#else
5976wenotbecray
5977#endif
5978
3ed8e5b6 5979_ACEOF
63e5e3e0 5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 5981 $EGREP "webecray" >/dev/null 2>&1; then
63e5e3e0
AG
5982 ac_cv_os_cray=yes
5983else
63e5e3e0
AG
5984 ac_cv_os_cray=no
5985fi
5986rm -f conftest*
5987
5988fi
3ed8e5b6
AT
5989echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5990echo "${ECHO_T}$ac_cv_os_cray" >&6
63e5e3e0 5991if test $ac_cv_os_cray = yes; then
3ed8e5b6
AT
5992 for ac_func in _getb67 GETB67 getb67; do
5993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5994echo "$as_me:$LINENO: checking for $ac_func" >&5
5995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5996if eval "test \"\${$as_ac_var+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
6005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6007#define $ac_func innocuous_$ac_func
6008
63e5e3e0 6009/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
6010 which can conflict with char $ac_func (); below.
6011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6012 <limits.h> exists even on freestanding compilers. */
6013
6014#ifdef __STDC__
6015# include <limits.h>
6016#else
6017# include <assert.h>
6018#endif
63e5e3e0 6019
3ed8e5b6 6020#undef $ac_func
63e5e3e0 6021
3ed8e5b6
AT
6022/* Override any gcc2 internal prototype to avoid an error. */
6023#ifdef __cplusplus
6024extern "C"
6025{
6026#endif
6027/* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6029char $ac_func ();
63e5e3e0
AG
6030/* The GNU C library defines this for functions which it implements
6031 to always fail with ENOSYS. Some functions are actually named
6032 something starting with __ and the normal name is an alias. */
6033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6034choke me
6035#else
3ed8e5b6
AT
6036char (*f) () = $ac_func;
6037#endif
6038#ifdef __cplusplus
6039}
63e5e3e0
AG
6040#endif
6041
3ed8e5b6
AT
6042int
6043main ()
6044{
6045return f != $ac_func;
6046 ;
6047 return 0;
6048}
6049_ACEOF
6050rm -f conftest.$ac_objext conftest$ac_exeext
6051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6052 (eval $ac_link) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
88d8c771
AG
6059 { ac_try='test -z "$ac_c_werror_flag"
6060 || test ! -s conftest.err'
3ed8e5b6
AT
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; } &&
6066 { ac_try='test -s conftest$ac_exeext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 eval "$as_ac_var=yes"
6073else
6074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077eval "$as_ac_var=no"
6078fi
6079rm -f conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081fi
6082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6084if test `eval echo '${'$as_ac_var'}'` = yes; then
6085
6086cat >>confdefs.h <<_ACEOF
63e5e3e0 6087#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 6088_ACEOF
63e5e3e0 6089
3ed8e5b6 6090 break
63e5e3e0
AG
6091fi
6092
3ed8e5b6 6093 done
63e5e3e0
AG
6094fi
6095
3ed8e5b6
AT
6096echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6097echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6098if test "${ac_cv_c_stack_direction+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
6100else
6101 if test "$cross_compiling" = yes; then
6102 ac_cv_c_stack_direction=0
6103else
3ed8e5b6
AT
6104 cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110int
63e5e3e0
AG
6111find_stack_direction ()
6112{
6113 static char *addr = 0;
6114 auto char dummy;
6115 if (addr == 0)
6116 {
6117 addr = &dummy;
6118 return find_stack_direction ();
6119 }
6120 else
6121 return (&dummy > addr) ? 1 : -1;
6122}
3ed8e5b6
AT
6123
6124int
63e5e3e0
AG
6125main ()
6126{
3ed8e5b6 6127 exit (find_stack_direction () < 0);
63e5e3e0 6128}
3ed8e5b6
AT
6129_ACEOF
6130rm -f conftest$ac_exeext
6131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
63e5e3e0
AG
6141 ac_cv_c_stack_direction=1
6142else
3ed8e5b6
AT
6143 echo "$as_me: program exited with status $ac_status" >&5
6144echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147( exit $ac_status )
6148ac_cv_c_stack_direction=-1
63e5e3e0 6149fi
3ed8e5b6 6150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 6151fi
63e5e3e0 6152fi
3ed8e5b6
AT
6153echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6154echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
63e5e3e0 6155
3ed8e5b6 6156cat >>confdefs.h <<_ACEOF
63e5e3e0 6157#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
6158_ACEOF
6159
63e5e3e0
AG
6160
6161fi
6162
6163
3ed8e5b6
AT
6164echo "$as_me:$LINENO: checking size of double" >&5
6165echo $ECHO_N "checking size of double... $ECHO_C" >&6
6166if test "${ac_cv_sizeof_double+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 6168else
e2f2e70a 6169 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3ed8e5b6
AT
6170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
e2f2e70a
AG
6176#include "confdefs.h"
6177#include <sys/types.h>
6178
6179
3ed8e5b6
AT
6180int
6181main ()
6182{
e2f2e70a 6183switch (0) case 0: case (sizeof (double) == $ac_size):;
3ed8e5b6
AT
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
88d8c771
AG
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
3ed8e5b6
AT
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
e2f2e70a 6210 ac_cv_sizeof_double=$ac_size
63e5e3e0 6211else
3ed8e5b6
AT
6212 echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
63e5e3e0 6215fi
3ed8e5b6 6216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e2f2e70a
AG
6217 if test x$ac_cv_sizeof_double != x ; then break; fi
6218done
6219
63e5e3e0
AG
6220fi
6221
e2f2e70a 6222if test x$ac_cv_sizeof_double = x ; then
3ed8e5b6
AT
6223 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
6224echo "$as_me: error: cannot determine a size for double" >&2;}
6225 { (exit 1); exit 1; }; }
63e5e3e0 6226fi
3ed8e5b6
AT
6227echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6228echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6229
6230cat >>confdefs.h <<_ACEOF
63e5e3e0 6231#define SIZEOF_DOUBLE $ac_cv_sizeof_double
3ed8e5b6 6232_ACEOF
63e5e3e0
AG
6233
6234
3ed8e5b6
AT
6235echo "$as_me:$LINENO: checking size of long double" >&5
6236echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6237if test "${ac_cv_sizeof_long_double+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 6239else
e2f2e70a 6240 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3ed8e5b6
AT
6241 cat >conftest.$ac_ext <<_ACEOF
6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
e2f2e70a
AG
6247#include "confdefs.h"
6248#include <sys/types.h>
6249
6250
3ed8e5b6
AT
6251int
6252main ()
6253{
e2f2e70a 6254switch (0) case 0: case (sizeof (long double) == $ac_size):;
3ed8e5b6
AT
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
88d8c771
AG
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
3ed8e5b6
AT
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
e2f2e70a 6281 ac_cv_sizeof_long_double=$ac_size
63e5e3e0 6282else
3ed8e5b6
AT
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
63e5e3e0 6286fi
3ed8e5b6 6287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e2f2e70a
AG
6288 if test x$ac_cv_sizeof_long_double != x ; then break; fi
6289done
6290
63e5e3e0
AG
6291fi
6292
e2f2e70a 6293if test x$ac_cv_sizeof_long_double = x ; then
3ed8e5b6
AT
6294 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6295echo "$as_me: error: cannot determine a size for long double" >&2;}
6296 { (exit 1); exit 1; }; }
63e5e3e0 6297fi
3ed8e5b6
AT
6298echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6299echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6300
6301cat >>confdefs.h <<_ACEOF
63e5e3e0 6302#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3ed8e5b6 6303_ACEOF
63e5e3e0
AG
6304
6305
6306
1450eb7a
AT
6307# Also AC_SUBST this variable for ffi.h.
6308HAVE_LONG_DOUBLE=0
6309if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6310 if test $ac_cv_sizeof_long_double != 0; then
6311 HAVE_LONG_DOUBLE=1
3ed8e5b6
AT
6312
6313cat >>confdefs.h <<\_ACEOF
1450eb7a 6314#define HAVE_LONG_DOUBLE 1
3ed8e5b6 6315_ACEOF
63e5e3e0 6316
1450eb7a 6317 fi
63e5e3e0 6318fi
63e5e3e0
AG
6319
6320
3ed8e5b6
AT
6321echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6322echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6323if test "${ac_cv_c_bigendian+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
6325else
6326 ac_cv_c_bigendian=unknown
6327# See if sys/param.h defines the BYTE_ORDER macro.
3ed8e5b6
AT
6328cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
63e5e3e0
AG
6334#include <sys/types.h>
6335#include <sys/param.h>
3ed8e5b6
AT
6336int
6337main ()
6338{
63e5e3e0
AG
6339
6340#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6341 bogus endian macros
6342#endif
3ed8e5b6
AT
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext
6348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
88d8c771
AG
6356 { ac_try='test -z "$ac_c_werror_flag"
6357 || test ! -s conftest.err'
3ed8e5b6
AT
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try='test -s conftest.$ac_objext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
63e5e3e0 6369 # It does; now see whether it defined to BIG_ENDIAN or not.
3ed8e5b6
AT
6370cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
63e5e3e0
AG
6376#include <sys/types.h>
6377#include <sys/param.h>
3ed8e5b6
AT
6378int
6379main ()
6380{
63e5e3e0
AG
6381
6382#if BYTE_ORDER != BIG_ENDIAN
6383 not big endian
6384#endif
3ed8e5b6
AT
6385 ;
6386 return 0;
6387}
6388_ACEOF
6389rm -f conftest.$ac_objext
6390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
88d8c771
AG
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
3ed8e5b6
AT
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
63e5e3e0
AG
6411 ac_cv_c_bigendian=yes
6412else
3ed8e5b6
AT
6413 echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416ac_cv_c_bigendian=no
63e5e3e0 6417fi
3ed8e5b6 6418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 6419else
3ed8e5b6
AT
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
63e5e3e0 6423fi
3ed8e5b6 6424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
6425if test $ac_cv_c_bigendian = unknown; then
6426if test "$cross_compiling" = yes; then
3ed8e5b6
AT
6427 echo $ac_n "cross-compiling... " 2>&6
6428else
6429 cat >conftest.$ac_ext <<_ACEOF
6430/* confdefs.h. */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h. */
63e5e3e0
AG
6435main () {
6436 /* Are we little or big endian? From Harbison&Steele. */
6437 union
6438 {
6439 long l;
6440 char c[sizeof (long)];
6441 } u;
6442 u.l = 1;
6443 exit (u.c[sizeof (long) - 1] == 1);
6444}
3ed8e5b6
AT
6445_ACEOF
6446rm -f conftest$ac_exeext
6447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
63e5e3e0
AG
6457 ac_cv_c_bigendian=no
6458else
3ed8e5b6
AT
6459 echo "$as_me: program exited with status $ac_status" >&5
6460echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463( exit $ac_status )
6464ac_cv_c_bigendian=yes
63e5e3e0 6465fi
3ed8e5b6 6466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 6467fi
63e5e3e0
AG
6468fi
6469fi
3ed8e5b6
AT
6470echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6471echo "${ECHO_T}$ac_cv_c_bigendian" >&6
e2f2e70a 6472if test $ac_cv_c_bigendian = unknown; then
3ed8e5b6
AT
6473echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6474echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
e2f2e70a
AG
6475
6476cat >conftest.c <<EOF
6477short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6478short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6479void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6480short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6481short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6482void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6483int main() { _ascii (); _ebcdic (); return 0; }
6484EOF
6485 if test -f conftest.c ; then
3beb1315 6486 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
e2f2e70a
AG
6487 if test `grep -l BIGenDianSyS conftest.o` ; then
6488 echo $ac_n ' big endian probe OK, ' 1>&6
6489 ac_cv_c_bigendian=yes
6490 fi
6491 if test `grep -l LiTTleEnDian conftest.o` ; then
6492 echo $ac_n ' little endian probe OK, ' 1>&6
6493 if test $ac_cv_c_bigendian = yes ; then
6494 ac_cv_c_bigendian=unknown;
6495 else
6496 ac_cv_c_bigendian=no
6497 fi
6498 fi
6499 echo $ac_n 'guessing bigendian ... ' >&6
6500 fi
6501 fi
3ed8e5b6
AT
6502echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6503echo "${ECHO_T}$ac_cv_c_bigendian" >&6
e2f2e70a 6504fi
63e5e3e0 6505if test $ac_cv_c_bigendian = yes; then
3ed8e5b6
AT
6506
6507cat >>confdefs.h <<\_ACEOF
63e5e3e0 6508#define WORDS_BIGENDIAN 1
3ed8e5b6 6509_ACEOF
4977bab6 6510
3ed8e5b6
AT
6511
6512cat >>confdefs.h <<\_ACEOF
4977bab6 6513#define HOST_WORDS_BIG_ENDIAN 1
3ed8e5b6 6514_ACEOF
63e5e3e0 6515
e2f2e70a
AG
6516 BYTEORDER=4321
6517else
6518 BYTEORDER=1234
6519fi
3ed8e5b6
AT
6520
6521cat >>confdefs.h <<_ACEOF
e2f2e70a 6522#define BYTEORDER $BYTEORDER
3ed8e5b6 6523_ACEOF
e2f2e70a
AG
6524
6525if test $ac_cv_c_bigendian = unknown; then
3ed8e5b6
AT
6526 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6527echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6528 { (exit 1); exit 1; }; }
63e5e3e0
AG
6529fi
6530
6531
189ab118 6532if test x$TARGET = xSPARC; then
3ed8e5b6
AT
6533 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6534echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6535if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
5d84cf0b 6537else
3ed8e5b6 6538
5d84cf0b
JJ
6539 save_CFLAGS="$CFLAGS"
6540 save_LDFLAGS="$LDFLAGS"
6541 CFLAGS="$CFLAGS -fpic"
6542 LDFLAGS="$LDFLAGS -shared"
3ed8e5b6
AT
6543 cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h. */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h. */
5d84cf0b 6549asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
6550int
6551main ()
6552{
5d84cf0b 6553
3ed8e5b6
AT
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558rm -f conftest.$ac_objext conftest$ac_exeext
6559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
88d8c771
AG
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
3ed8e5b6
AT
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
5d84cf0b
JJ
6580 libffi_cv_as_sparc_ua_pcrel=yes
6581else
3ed8e5b6
AT
6582 echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 6586fi
3ed8e5b6
AT
6587rm -f conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
6589 CFLAGS="$save_CFLAGS"
6590 LDFLAGS="$save_LDFLAGS"
6591fi
3ed8e5b6
AT
6592echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6593echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
5d84cf0b 6594 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6
AT
6595
6596cat >>confdefs.h <<\_ACEOF
5d84cf0b 6597#define HAVE_AS_SPARC_UA_PCREL 1
3ed8e5b6 6598_ACEOF
bd19c9f4
JS
6599
6600 fi
6601
3ed8e5b6
AT
6602 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6603echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6604if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
bd19c9f4 6606else
3ed8e5b6 6607
bd19c9f4
JS
6608 libffi_cv_as_register_pseudo_op=unknown
6609 # Check if we have .register
3ed8e5b6
AT
6610 cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h. */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h. */
bd19c9f4 6616asm (".register %g2, #scratch");
3ed8e5b6
AT
6617int
6618main ()
6619{
bd19c9f4 6620
3ed8e5b6
AT
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625rm -f conftest.$ac_objext
6626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
88d8c771
AG
6634 { ac_try='test -z "$ac_c_werror_flag"
6635 || test ! -s conftest.err'
3ed8e5b6
AT
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
bd19c9f4
JS
6647 libffi_cv_as_register_pseudo_op=yes
6648else
3ed8e5b6
AT
6649 echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652libffi_cv_as_register_pseudo_op=no
bd19c9f4 6653fi
3ed8e5b6 6654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 6655
3ed8e5b6
AT
6656fi
6657echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6658echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
bd19c9f4 6659 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6
AT
6660
6661cat >>confdefs.h <<\_ACEOF
bd19c9f4 6662#define HAVE_AS_REGISTER_PSEUDO_OP 1
3ed8e5b6 6663_ACEOF
5d84cf0b
JJ
6664
6665 fi
6666fi
6667
3ed8e5b6
AT
6668echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6669echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6670if test "${libffi_cv_ro_eh_frame+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
a733b15e 6672else
3ed8e5b6 6673
a733b15e
JJ
6674 libffi_cv_ro_eh_frame=no
6675 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6676 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
6677 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
6678 libffi_cv_ro_eh_frame=yes
6679 elif grep '.section.*eh_frame.*#alloc' conftest.c \
6680 | grep -v '#write' > /dev/null; then
6681 libffi_cv_ro_eh_frame=yes
6682 fi
6683 fi
6684 rm -f conftest.*
a733b15e 6685
3ed8e5b6
AT
6686fi
6687echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6688echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
a733b15e 6689if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6
AT
6690
6691cat >>confdefs.h <<\_ACEOF
a733b15e 6692#define HAVE_RO_EH_FRAME 1
3ed8e5b6 6693_ACEOF
1450eb7a 6694
3ed8e5b6
AT
6695
6696cat >>confdefs.h <<\_ACEOF
1450eb7a 6697#define EH_FRAME_FLAGS "a"
3ed8e5b6 6698_ACEOF
1450eb7a
AT
6699
6700else
3ed8e5b6
AT
6701
6702cat >>confdefs.h <<\_ACEOF
1450eb7a 6703#define EH_FRAME_FLAGS "aw"
3ed8e5b6 6704_ACEOF
a733b15e
JJ
6705
6706fi
6707
63e5e3e0
AG
6708
6709
6710
6711
6712
6713# Check whether --enable-debug or --disable-debug was given.
6714if test "${enable_debug+set}" = set; then
6715 enableval="$enable_debug"
7d45b968 6716 if test "$enable_debug" = "yes"; then
3ed8e5b6
AT
6717
6718cat >>confdefs.h <<\_ACEOF
63e5e3e0 6719#define FFI_DEBUG 1
3ed8e5b6
AT
6720_ACEOF
6721
6722 fi
6723fi;
6724
6725# Check whether --enable-structs or --disable-structs was given.
6726if test "${enable_structs+set}" = set; then
6727 enableval="$enable_structs"
6728 if test "$enable_structs" = "no"; then
6729
6730cat >>confdefs.h <<\_ACEOF
6731#define FFI_NO_STRUCTS 1
6732_ACEOF
6733
6734 fi
6735fi;
6736
6737# Check whether --enable-raw-api or --disable-raw-api was given.
6738if test "${enable_raw_api+set}" = set; then
6739 enableval="$enable_raw_api"
6740 if test "$enable_raw_api" = "no"; then
6741
6742cat >>confdefs.h <<\_ACEOF
6743#define FFI_NO_RAW_API 1
6744_ACEOF
6745
6746 fi
6747fi;
6748
6749# Check whether --enable-purify-safety or --disable-purify-safety was given.
6750if test "${enable_purify_safety+set}" = set; then
6751 enableval="$enable_purify_safety"
6752 if test "$enable_purify_safety" = "yes"; then
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define USING_PURIFY 1
6756_ACEOF
6757
6758 fi
6759fi;
6760
6761if test -n "$with_cross_host" &&
6762 test x"$with_cross_host" != x"no"; then
6763 toolexecdir='$(exec_prefix)/$(target_alias)'
6764 toolexeclibdir='$(toolexecdir)/lib'
6765else
6766 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6767 toolexeclibdir='$(libdir)'
6768fi
6769multi_os_directory=`$CC -print-multi-os-directory`
6770case $multi_os_directory in
6771 .) ;; # Avoid trailing /.
6772 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6773esac
6774
6775
6776
6777#Figure out where generated headers like ffitarget.h get installed.
6778gcc_version_trigger=${srcdir}/../gcc/version.c
6779gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
6780gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6781tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6782
6783
6784
6785
6786if test "${multilib}" = "yes"; then
6787 multilib_arg="--enable-multilib"
6788else
6789 multilib_arg=
6790fi
6791
6792 ac_config_commands="$ac_config_commands include"
6793
6794 ac_config_commands="$ac_config_commands src"
6795
6796
6797 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6798
6799
6800 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6801
6802
6803cat >confcache <<\_ACEOF
6804# This file is a shell script that caches the results of configure
6805# tests run on this system so they can be shared between configure
6806# scripts and configure runs, see configure's option --config-cache.
6807# It is not useful on other systems. If it contains results you don't
6808# want to keep, you may remove or edit it.
6809#
6810# config.status only pays attention to the cache file if you give it
6811# the --recheck option to rerun configure.
6812#
6813# `ac_cv_env_foo' variables (set or unset) will be overridden when
6814# loading this file, other *unset* `ac_cv_foo' will be assigned the
6815# following values.
6816
6817_ACEOF
6818
6819# The following way of writing the cache mishandles newlines in values,
6820# but we know of no workaround that is simple, portable, and efficient.
6821# So, don't put newlines in cache variables' values.
6822# Ultrix sh set writes to stderr and can't be redirected directly,
6823# and sets the high bit in the cache file unless we assign to the vars.
6824{
6825 (set) 2>&1 |
6826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6827 *ac_space=\ *)
6828 # `set' does not quote correctly, so add quotes (double-quote
6829 # substitution turns \\\\ into \\, and sed turns \\ into \).
6830 sed -n \
6831 "s/'/'\\\\''/g;
6832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6833 ;;
6834 *)
6835 # `set' quotes correctly as required by POSIX, so do not add quotes.
6836 sed -n \
6837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6838 ;;
6839 esac;
6840} |
6841 sed '
6842 t clear
6843 : clear
6844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6845 t end
6846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6847 : end' >>confcache
6848if diff $cache_file confcache >/dev/null 2>&1; then :; else
6849 if test -w $cache_file; then
6850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6851 cat confcache >$cache_file
6852 else
6853 echo "not updating unwritable cache $cache_file"
6854 fi
6855fi
6856rm -f confcache
6857
6858test "x$prefix" = xNONE && prefix=$ac_default_prefix
6859# Let make expand exec_prefix.
6860test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6861
6862# VPATH may cause trouble with some makes, so we remove $(srcdir),
6863# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6864# trailing colons and then remove the whole line if VPATH becomes empty
6865# (actually we leave an empty line to preserve line numbers).
6866if test "x$srcdir" = x.; then
6867 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6868s/:*\$(srcdir):*/:/;
6869s/:*\${srcdir}:*/:/;
6870s/:*@srcdir@:*/:/;
6871s/^\([^=]*=[ ]*\):*/\1/;
6872s/:*$//;
6873s/^[^=]*=[ ]*$//;
6874}'
6875fi
6876
6877DEFS=-DHAVE_CONFIG_H
6878
6879ac_libobjs=
6880ac_ltlibobjs=
6881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6882 # 1. Remove the extension, and $U if already installed.
6883 ac_i=`echo "$ac_i" |
6884 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6885 # 2. Add them.
6886 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6887 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6888done
6889LIBOBJS=$ac_libobjs
6890
6891LTLIBOBJS=$ac_ltlibobjs
6892
6893
6894if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6895 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6896Usually this means the macro was only invoked conditionally." >&5
6897echo "$as_me: error: conditional \"AMDEP\" was never defined.
6898Usually this means the macro was only invoked conditionally." >&2;}
6899 { (exit 1); exit 1; }; }
6900fi
6901if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6902 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6903Usually this means the macro was only invoked conditionally." >&5
6904echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6905Usually this means the macro was only invoked conditionally." >&2;}
6906 { (exit 1); exit 1; }; }
6907fi
6908if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6909 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6910Usually this means the macro was only invoked conditionally." >&5
6911echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6912Usually this means the macro was only invoked conditionally." >&2;}
6913 { (exit 1); exit 1; }; }
6914fi
6915if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6916 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6917Usually this means the macro was only invoked conditionally." >&5
6918echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6919Usually this means the macro was only invoked conditionally." >&2;}
6920 { (exit 1); exit 1; }; }
6921fi
6922if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6923 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6924Usually this means the macro was only invoked conditionally." >&5
6925echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6926Usually this means the macro was only invoked conditionally." >&2;}
6927 { (exit 1); exit 1; }; }
6928fi
6929if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6930 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6931Usually this means the macro was only invoked conditionally." >&5
6932echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6933Usually this means the macro was only invoked conditionally." >&2;}
6934 { (exit 1); exit 1; }; }
6935fi
6936if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6937 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6938Usually this means the macro was only invoked conditionally." >&5
6939echo "$as_me: error: conditional \"SPARC\" was never defined.
6940Usually this means the macro was only invoked conditionally." >&2;}
6941 { (exit 1); exit 1; }; }
6942fi
6943if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6944 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6945Usually this means the macro was only invoked conditionally." >&5
6946echo "$as_me: error: conditional \"X86\" was never defined.
6947Usually this means the macro was only invoked conditionally." >&2;}
6948 { (exit 1); exit 1; }; }
6949fi
6950if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6951 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6952Usually this means the macro was only invoked conditionally." >&5
6953echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6954Usually this means the macro was only invoked conditionally." >&2;}
6955 { (exit 1); exit 1; }; }
6956fi
6957if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6958 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6959Usually this means the macro was only invoked conditionally." >&5
6960echo "$as_me: error: conditional \"ALPHA\" was never defined.
6961Usually this means the macro was only invoked conditionally." >&2;}
6962 { (exit 1); exit 1; }; }
6963fi
6964if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6965 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6966Usually this means the macro was only invoked conditionally." >&5
6967echo "$as_me: error: conditional \"IA64\" was never defined.
6968Usually this means the macro was only invoked conditionally." >&2;}
6969 { (exit 1); exit 1; }; }
6970fi
6971if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
6972 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
6973Usually this means the macro was only invoked conditionally." >&5
6974echo "$as_me: error: conditional \"M68K\" was never defined.
6975Usually this means the macro was only invoked conditionally." >&2;}
6976 { (exit 1); exit 1; }; }
6977fi
6978if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
6979 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
6980Usually this means the macro was only invoked conditionally." >&5
6981echo "$as_me: error: conditional \"POWERPC\" was never defined.
6982Usually this means the macro was only invoked conditionally." >&2;}
6983 { (exit 1); exit 1; }; }
6984fi
6985if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
6986 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
6987Usually this means the macro was only invoked conditionally." >&5
6988echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
6989Usually this means the macro was only invoked conditionally." >&2;}
6990 { (exit 1); exit 1; }; }
6991fi
6992if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6993 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6994Usually this means the macro was only invoked conditionally." >&5
6995echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6996Usually this means the macro was only invoked conditionally." >&2;}
6997 { (exit 1); exit 1; }; }
6998fi
6999if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7000 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7001Usually this means the macro was only invoked conditionally." >&5
7002echo "$as_me: error: conditional \"ARM\" was never defined.
7003Usually this means the macro was only invoked conditionally." >&2;}
7004 { (exit 1); exit 1; }; }
7005fi
88d8c771
AG
7006if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7007 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7008Usually this means the macro was only invoked conditionally." >&5
7009echo "$as_me: error: conditional \"FRV\" was never defined.
7010Usually this means the macro was only invoked conditionally." >&2;}
7011 { (exit 1); exit 1; }; }
7012fi
3ed8e5b6
AT
7013if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7014 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7015Usually this means the macro was only invoked conditionally." >&5
7016echo "$as_me: error: conditional \"S390\" was never defined.
7017Usually this means the macro was only invoked conditionally." >&2;}
7018 { (exit 1); exit 1; }; }
7019fi
7020if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7021 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7022Usually this means the macro was only invoked conditionally." >&5
7023echo "$as_me: error: conditional \"X86_64\" was never defined.
7024Usually this means the macro was only invoked conditionally." >&2;}
7025 { (exit 1); exit 1; }; }
7026fi
7027if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7028 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7029Usually this means the macro was only invoked conditionally." >&5
7030echo "$as_me: error: conditional \"SH\" was never defined.
7031Usually this means the macro was only invoked conditionally." >&2;}
7032 { (exit 1); exit 1; }; }
7033fi
7034if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7035 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7036Usually this means the macro was only invoked conditionally." >&5
7037echo "$as_me: error: conditional \"SH64\" was never defined.
7038Usually this means the macro was only invoked conditionally." >&2;}
7039 { (exit 1); exit 1; }; }
7040fi
d65a810f
MK
7041if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
7042 { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
7043Usually this means the macro was only invoked conditionally." >&5
7044echo "$as_me: error: conditional \"PA\" was never defined.
7045Usually this means the macro was only invoked conditionally." >&2;}
7046 { (exit 1); exit 1; }; }
7047fi
3ed8e5b6
AT
7048
7049: ${CONFIG_STATUS=./config.status}
7050ac_clean_files_save=$ac_clean_files
7051ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7052{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7053echo "$as_me: creating $CONFIG_STATUS" >&6;}
7054cat >$CONFIG_STATUS <<_ACEOF
7055#! $SHELL
7056# Generated by $as_me.
7057# Run this file to recreate the current configuration.
7058# Compiler output produced by configure, useful for debugging
7059# configure, is in config.log if it exists.
7060
7061debug=false
7062ac_cs_recheck=false
7063ac_cs_silent=false
7064SHELL=\${CONFIG_SHELL-$SHELL}
7065_ACEOF
7066
7067cat >>$CONFIG_STATUS <<\_ACEOF
7068## --------------------- ##
7069## M4sh Initialization. ##
7070## --------------------- ##
7071
7072# Be Bourne compatible
7073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7074 emulate sh
7075 NULLCMD=:
7076 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7077 # is contrary to our usage. Disable this feature.
7078 alias -g '${1+"$@"}'='"$@"'
7079elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7080 set -o posix
7081fi
7082DUALCASE=1; export DUALCASE # for MKS sh
7083
7084# Support unset when possible.
7085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7086 as_unset=unset
7087else
7088 as_unset=false
7089fi
7090
7091
7092# Work around bugs in pre-3.0 UWIN ksh.
7093$as_unset ENV MAIL MAILPATH
7094PS1='$ '
7095PS2='> '
7096PS4='+ '
7097
7098# NLS nuisances.
7099for as_var in \
7100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7102 LC_TELEPHONE LC_TIME
7103do
7104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7105 eval $as_var=C; export $as_var
7106 else
7107 $as_unset $as_var
7108 fi
7109done
7110
7111# Required to use basename.
7112if expr a : '\(a\)' >/dev/null 2>&1; then
7113 as_expr=expr
7114else
7115 as_expr=false
7116fi
7117
7118if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7119 as_basename=basename
7120else
7121 as_basename=false
7122fi
7123
7124
7125# Name of the executable.
7126as_me=`$as_basename "$0" ||
7127$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7128 X"$0" : 'X\(//\)$' \| \
7129 X"$0" : 'X\(/\)$' \| \
7130 . : '\(.\)' 2>/dev/null ||
7131echo X/"$0" |
7132 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7133 /^X\/\(\/\/\)$/{ s//\1/; q; }
7134 /^X\/\(\/\).*/{ s//\1/; q; }
7135 s/.*/./; q'`
7136
7137
7138# PATH needs CR, and LINENO needs CR and PATH.
7139# Avoid depending upon Character Ranges.
7140as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7142as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7143as_cr_digits='0123456789'
7144as_cr_alnum=$as_cr_Letters$as_cr_digits
7145
7146# The user is always right.
7147if test "${PATH_SEPARATOR+set}" != set; then
7148 echo "#! /bin/sh" >conf$$.sh
7149 echo "exit 0" >>conf$$.sh
7150 chmod +x conf$$.sh
7151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7152 PATH_SEPARATOR=';'
7153 else
7154 PATH_SEPARATOR=:
7155 fi
7156 rm -f conf$$.sh
7157fi
7158
7159
7160 as_lineno_1=$LINENO
7161 as_lineno_2=$LINENO
7162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7163 test "x$as_lineno_1" != "x$as_lineno_2" &&
7164 test "x$as_lineno_3" = "x$as_lineno_2" || {
7165 # Find who we are. Look in the path if we contain no path at all
7166 # relative or not.
7167 case $0 in
7168 *[\\/]* ) as_myself=$0 ;;
7169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7175done
7176
7177 ;;
7178 esac
7179 # We did not find ourselves, most probably we were run as `sh COMMAND'
7180 # in which case we are not to be found in the path.
7181 if test "x$as_myself" = x; then
7182 as_myself=$0
7183 fi
7184 if test ! -f "$as_myself"; then
7185 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7186echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7187 { (exit 1); exit 1; }; }
7188 fi
7189 case $CONFIG_SHELL in
7190 '')
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for as_base in sh bash ksh sh5; do
7197 case $as_dir in
7198 /*)
7199 if ("$as_dir/$as_base" -c '
7200 as_lineno_1=$LINENO
7201 as_lineno_2=$LINENO
7202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7203 test "x$as_lineno_1" != "x$as_lineno_2" &&
7204 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7205 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7206 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7207 CONFIG_SHELL=$as_dir/$as_base
7208 export CONFIG_SHELL
7209 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7210 fi;;
7211 esac
7212 done
7213done
7214;;
7215 esac
7216
7217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7218 # uniformly replaced by the line number. The first 'sed' inserts a
7219 # line-number line before each line; the second 'sed' does the real
7220 # work. The second script uses 'N' to pair each line-number line
7221 # with the numbered line, and appends trailing '-' during
7222 # substitution so that $LINENO is not a special case at line end.
7223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7224 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7225 sed '=' <$as_myself |
7226 sed '
7227 N
7228 s,$,-,
7229 : loop
7230 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7231 t loop
7232 s,-$,,
7233 s,^['$as_cr_digits']*\n,,
7234 ' >$as_me.lineno &&
7235 chmod +x $as_me.lineno ||
7236 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7237echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7238 { (exit 1); exit 1; }; }
7239
7240 # Don't try to exec as it changes $[0], causing all sort of problems
7241 # (the dirname of $[0] is not the place where we might find the
7242 # original and so on. Autoconf is especially sensible to this).
7243 . ./$as_me.lineno
7244 # Exit status is that of the last command.
7245 exit
7246}
7247
63e5e3e0 7248
3ed8e5b6
AT
7249case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7250 *c*,-n*) ECHO_N= ECHO_C='
7251' ECHO_T=' ' ;;
7252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7254esac
7255
7256if expr a : '\(a\)' >/dev/null 2>&1; then
7257 as_expr=expr
7258else
7259 as_expr=false
7260fi
7261
7262rm -f conf$$ conf$$.exe conf$$.file
7263echo >conf$$.file
7264if ln -s conf$$.file conf$$ 2>/dev/null; then
7265 # We could just check for DJGPP; but this test a) works b) is more generic
7266 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7267 if test -f conf$$.exe; then
7268 # Don't use ln at all; we don't have any links
7269 as_ln_s='cp -p'
7270 else
7271 as_ln_s='ln -s'
7d45b968 7272 fi
3ed8e5b6
AT
7273elif ln conf$$.file conf$$ 2>/dev/null; then
7274 as_ln_s=ln
7275else
7276 as_ln_s='cp -p'
7277fi
7278rm -f conf$$ conf$$.exe conf$$.file
7279
7280if mkdir -p . 2>/dev/null; then
7281 as_mkdir_p=:
7282else
7283 test -d ./-p && rmdir ./-p
7284 as_mkdir_p=false
63e5e3e0
AG
7285fi
7286
3ed8e5b6
AT
7287as_executable_p="test -f"
7288
7289# Sed expression to map a string onto a valid CPP name.
7290as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7291
7292# Sed expression to map a string onto a valid variable name.
7293as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7294
7295
7296# IFS
7297# We need space, tab and new line, in precisely that order.
7298as_nl='
7299'
7300IFS=" $as_nl"
7301
7302# CDPATH.
7303$as_unset CDPATH
7304
7305exec 6>&1
63e5e3e0 7306
3ed8e5b6
AT
7307# Open the log real soon, to keep \$[0] and so on meaningful, and to
7308# report actual input values of CONFIG_FILES etc. instead of their
7309# values after options handling. Logging --version etc. is OK.
7310exec 5>>config.log
7311{
7312 echo
7313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7314## Running $as_me. ##
7315_ASBOX
7316} >&5
7317cat >&5 <<_CSEOF
63e5e3e0 7318
3ed8e5b6
AT
7319This file was extended by libffi $as_me 2.1, which was
7320generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 7321
3ed8e5b6
AT
7322 CONFIG_FILES = $CONFIG_FILES
7323 CONFIG_HEADERS = $CONFIG_HEADERS
7324 CONFIG_LINKS = $CONFIG_LINKS
7325 CONFIG_COMMANDS = $CONFIG_COMMANDS
7326 $ $0 $@
63e5e3e0 7327
3ed8e5b6
AT
7328_CSEOF
7329echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7330echo >&5
7331_ACEOF
63e5e3e0 7332
3ed8e5b6
AT
7333# Files that config.status was made for.
7334if test -n "$ac_config_files"; then
7335 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63e5e3e0
AG
7336fi
7337
3ed8e5b6
AT
7338if test -n "$ac_config_headers"; then
7339 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7340fi
63e5e3e0 7341
3ed8e5b6
AT
7342if test -n "$ac_config_links"; then
7343 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7344fi
63e5e3e0 7345
3ed8e5b6
AT
7346if test -n "$ac_config_commands"; then
7347 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63e5e3e0
AG
7348fi
7349
3ed8e5b6 7350cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 7351
3ed8e5b6
AT
7352ac_cs_usage="\
7353\`$as_me' instantiates files from templates according to the
7354current configuration.
db2cd5e6 7355
3ed8e5b6 7356Usage: $0 [OPTIONS] [FILE]...
db2cd5e6 7357
3ed8e5b6
AT
7358 -h, --help print this help, then exit
7359 -V, --version print version number, then exit
7360 -q, --quiet do not print progress messages
7361 -d, --debug don't remove temporary files
7362 --recheck update $as_me by reconfiguring in the same conditions
7363 --file=FILE[:TEMPLATE]
7364 instantiate the configuration file FILE
7365 --header=FILE[:TEMPLATE]
7366 instantiate the configuration header FILE
0721f64e 7367
3ed8e5b6
AT
7368Configuration files:
7369$config_files
ea81d2a3 7370
3ed8e5b6
AT
7371Configuration headers:
7372$config_headers
ea81d2a3 7373
3ed8e5b6
AT
7374Configuration links:
7375$config_links
ea81d2a3 7376
3ed8e5b6
AT
7377Configuration commands:
7378$config_commands
ea81d2a3 7379
3ed8e5b6
AT
7380Report bugs to <bug-autoconf@gnu.org>."
7381_ACEOF
3c18f2d1 7382
3ed8e5b6
AT
7383cat >>$CONFIG_STATUS <<_ACEOF
7384ac_cs_version="\\
7385libffi config.status 2.1
7386configured by $0, generated by GNU Autoconf 2.59,
7387 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7388
7389Copyright (C) 2003 Free Software Foundation, Inc.
7390This config.status script is free software; the Free Software Foundation
7391gives unlimited permission to copy, distribute and modify it."
7392srcdir=$srcdir
7393INSTALL="$INSTALL"
7394_ACEOF
7395
7396cat >>$CONFIG_STATUS <<\_ACEOF
7397# If no file are specified by the user, then we need to provide default
7398# value. By we need to know if files were specified by the user.
7399ac_need_defaults=:
7400while test $# != 0
7401do
7402 case $1 in
7403 --*=*)
7404 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7405 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7406 ac_shift=:
63e5e3e0 7407 ;;
3ed8e5b6
AT
7408 -*)
7409 ac_option=$1
7410 ac_optarg=$2
7411 ac_shift=shift
63e5e3e0 7412 ;;
3ed8e5b6
AT
7413 *) # This is not an option, so the user has probably given explicit
7414 # arguments.
7415 ac_option=$1
7416 ac_need_defaults=false;;
7417 esac
7418
7419 case $ac_option in
7420 # Handling of the options.
7421_ACEOF
7422cat >>$CONFIG_STATUS <<\_ACEOF
7423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7424 ac_cs_recheck=: ;;
7425 --version | --vers* | -V )
7426 echo "$ac_cs_version"; exit 0 ;;
7427 --he | --h)
7428 # Conflict between --help and --header
7429 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7430Try \`$0 --help' for more information." >&5
7431echo "$as_me: error: ambiguous option: $1
7432Try \`$0 --help' for more information." >&2;}
7433 { (exit 1); exit 1; }; };;
7434 --help | --hel | -h )
7435 echo "$ac_cs_usage"; exit 0 ;;
7436 --debug | --d* | -d )
7437 debug=: ;;
7438 --file | --fil | --fi | --f )
7439 $ac_shift
7440 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7441 ac_need_defaults=false;;
7442 --header | --heade | --head | --hea )
7443 $ac_shift
7444 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7445 ac_need_defaults=false;;
7446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7448 ac_cs_silent=: ;;
63e5e3e0 7449
3ed8e5b6
AT
7450 # This is an error.
7451 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7452Try \`$0 --help' for more information." >&5
7453echo "$as_me: error: unrecognized option: $1
7454Try \`$0 --help' for more information." >&2;}
7455 { (exit 1); exit 1; }; } ;;
63e5e3e0 7456
3ed8e5b6 7457 *) ac_config_targets="$ac_config_targets $1" ;;
63e5e3e0 7458
3ed8e5b6
AT
7459 esac
7460 shift
7461done
63e5e3e0 7462
3ed8e5b6 7463ac_configure_extra_args=
63e5e3e0 7464
3ed8e5b6
AT
7465if $ac_cs_silent; then
7466 exec 6>/dev/null
7467 ac_configure_extra_args="$ac_configure_extra_args --silent"
7468fi
63e5e3e0 7469
3ed8e5b6
AT
7470_ACEOF
7471cat >>$CONFIG_STATUS <<_ACEOF
7472if \$ac_cs_recheck; then
7473 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7474 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7475fi
63e5e3e0 7476
3ed8e5b6
AT
7477_ACEOF
7478
7479cat >>$CONFIG_STATUS <<_ACEOF
63e5e3e0 7480#
3ed8e5b6 7481# INIT-COMMANDS section.
63e5e3e0 7482#
63e5e3e0 7483
3ed8e5b6
AT
7484
7485srcdir="$srcdir"
7486host="$host"
7487target="$target"
7488with_multisubdir="$with_multisubdir"
7489with_multisrctop="$with_multisrctop"
7490with_target_subdir="$with_target_subdir"
7491ac_configure_args="${multilib_arg} ${ac_configure_args}"
7492multi_basedir="$multi_basedir"
7493CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7494CC="$CC"
7495AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7496TARGETDIR="$TARGETDIR"
7497
7498_ACEOF
7499
7500
7501
7502cat >>$CONFIG_STATUS <<\_ACEOF
7503for ac_config_target in $ac_config_targets
63e5e3e0 7504do
3ed8e5b6
AT
7505 case "$ac_config_target" in
7506 # Handling of arguments.
7507 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7508 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
7509 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7510 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7511 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7512 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7513 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7514 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
7515 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
7516 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
7517 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7518echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7519 { (exit 1); exit 1; }; };;
63e5e3e0
AG
7520 esac
7521done
7522
3ed8e5b6
AT
7523# If the user did not use the arguments to specify the items to instantiate,
7524# then the envvar interface is used. Set only those that are not.
7525# We use the long form for the default assignment because of an extremely
7526# bizarre bug on SunOS 4.1.3.
7527if $ac_need_defaults; then
7528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7530 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7532fi
7533
7534# Have a temporary directory for convenience. Make it in the build tree
7535# simply because there is no reason to put it here, and in addition,
7536# creating and moving files from /tmp can sometimes cause problems.
7537# Create a temporary directory, and hook for its removal unless debugging.
7538$debug ||
7539{
7540 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7541 trap '{ (exit 1); exit 1; }' 1 2 13 15
7542}
63e5e3e0 7543
3ed8e5b6 7544# Create a (secure) tmp directory for tmp files.
63e5e3e0 7545
3ed8e5b6
AT
7546{
7547 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7548 test -n "$tmp" && test -d "$tmp"
7549} ||
7550{
7551 tmp=./confstat$$-$RANDOM
7552 (umask 077 && mkdir $tmp)
7553} ||
7554{
7555 echo "$me: cannot create a temporary directory in ." >&2
7556 { (exit 1); exit 1; }
7557}
7558
7559_ACEOF
7560
7561cat >>$CONFIG_STATUS <<_ACEOF
7562
7563#
7564# CONFIG_FILES section.
7565#
63e5e3e0 7566
3ed8e5b6
AT
7567# No need to generate the scripts if there are no CONFIG_FILES.
7568# This happens for instance when ./config.status config.h
7569if test -n "\$CONFIG_FILES"; then
7570 # Protect against being on the right side of a sed subst in config.status.
7571 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7572 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7573s,@SHELL@,$SHELL,;t t
7574s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7575s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7576s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7577s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7578s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7579s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7580s,@exec_prefix@,$exec_prefix,;t t
7581s,@prefix@,$prefix,;t t
7582s,@program_transform_name@,$program_transform_name,;t t
7583s,@bindir@,$bindir,;t t
7584s,@sbindir@,$sbindir,;t t
7585s,@libexecdir@,$libexecdir,;t t
7586s,@datadir@,$datadir,;t t
7587s,@sysconfdir@,$sysconfdir,;t t
7588s,@sharedstatedir@,$sharedstatedir,;t t
7589s,@localstatedir@,$localstatedir,;t t
7590s,@libdir@,$libdir,;t t
7591s,@includedir@,$includedir,;t t
7592s,@oldincludedir@,$oldincludedir,;t t
7593s,@infodir@,$infodir,;t t
7594s,@mandir@,$mandir,;t t
7595s,@build_alias@,$build_alias,;t t
7596s,@host_alias@,$host_alias,;t t
7597s,@target_alias@,$target_alias,;t t
7598s,@DEFS@,$DEFS,;t t
7599s,@ECHO_C@,$ECHO_C,;t t
7600s,@ECHO_N@,$ECHO_N,;t t
7601s,@ECHO_T@,$ECHO_T,;t t
7602s,@LIBS@,$LIBS,;t t
7603s,@multi_basedir@,$multi_basedir,;t t
7604s,@build@,$build,;t t
7605s,@build_cpu@,$build_cpu,;t t
7606s,@build_vendor@,$build_vendor,;t t
7607s,@build_os@,$build_os,;t t
7608s,@host@,$host,;t t
7609s,@host_cpu@,$host_cpu,;t t
7610s,@host_vendor@,$host_vendor,;t t
7611s,@host_os@,$host_os,;t t
7612s,@target@,$target,;t t
7613s,@target_cpu@,$target_cpu,;t t
7614s,@target_vendor@,$target_vendor,;t t
7615s,@target_os@,$target_os,;t t
7616s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7617s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7618s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7619s,@CYGPATH_W@,$CYGPATH_W,;t t
7620s,@PACKAGE@,$PACKAGE,;t t
7621s,@VERSION@,$VERSION,;t t
7622s,@ACLOCAL@,$ACLOCAL,;t t
7623s,@AUTOCONF@,$AUTOCONF,;t t
7624s,@AUTOMAKE@,$AUTOMAKE,;t t
7625s,@AUTOHEADER@,$AUTOHEADER,;t t
7626s,@MAKEINFO@,$MAKEINFO,;t t
7627s,@AMTAR@,$AMTAR,;t t
7628s,@install_sh@,$install_sh,;t t
7629s,@STRIP@,$STRIP,;t t
7630s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7631s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 7632s,@mkdir_p@,$mkdir_p,;t t
3ed8e5b6
AT
7633s,@AWK@,$AWK,;t t
7634s,@SET_MAKE@,$SET_MAKE,;t t
7635s,@am__leading_dot@,$am__leading_dot,;t t
7636s,@CC@,$CC,;t t
7637s,@ac_ct_CC@,$ac_ct_CC,;t t
7638s,@EXEEXT@,$EXEEXT,;t t
7639s,@OBJEXT@,$OBJEXT,;t t
7640s,@DEPDIR@,$DEPDIR,;t t
7641s,@am__include@,$am__include,;t t
7642s,@am__quote@,$am__quote,;t t
7643s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7644s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7645s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7646s,@CCDEPMODE@,$CCDEPMODE,;t t
7647s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7648s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7649s,@CFLAGS@,$CFLAGS,;t t
7650s,@CCAS@,$CCAS,;t t
7651s,@CCASFLAGS@,$CCASFLAGS,;t t
7652s,@LN_S@,$LN_S,;t t
7653s,@RANLIB@,$RANLIB,;t t
7654s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7655s,@LIBTOOL@,$LIBTOOL,;t t
7656s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7657s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7658s,@MAINT@,$MAINT,;t t
c9b93377
JB
7659s,@CPP@,$CPP,;t t
7660s,@CPPFLAGS@,$CPPFLAGS,;t t
7661s,@EGREP@,$EGREP,;t t
3ed8e5b6
AT
7662s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7663s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7664s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7665s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7666s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7667s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7668s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7669s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7670s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7671s,@X86_TRUE@,$X86_TRUE,;t t
7672s,@X86_FALSE@,$X86_FALSE,;t t
7673s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7674s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7675s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7676s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7677s,@IA64_TRUE@,$IA64_TRUE,;t t
7678s,@IA64_FALSE@,$IA64_FALSE,;t t
7679s,@M68K_TRUE@,$M68K_TRUE,;t t
7680s,@M68K_FALSE@,$M68K_FALSE,;t t
7681s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7682s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7683s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7684s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7685s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7686s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7687s,@ARM_TRUE@,$ARM_TRUE,;t t
7688s,@ARM_FALSE@,$ARM_FALSE,;t t
88d8c771
AG
7689s,@FRV_TRUE@,$FRV_TRUE,;t t
7690s,@FRV_FALSE@,$FRV_FALSE,;t t
3ed8e5b6
AT
7691s,@S390_TRUE@,$S390_TRUE,;t t
7692s,@S390_FALSE@,$S390_FALSE,;t t
7693s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7694s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7695s,@SH_TRUE@,$SH_TRUE,;t t
7696s,@SH_FALSE@,$SH_FALSE,;t t
7697s,@SH64_TRUE@,$SH64_TRUE,;t t
7698s,@SH64_FALSE@,$SH64_FALSE,;t t
d65a810f
MK
7699s,@PA_TRUE@,$PA_TRUE,;t t
7700s,@PA_FALSE@,$PA_FALSE,;t t
3ed8e5b6
AT
7701s,@ALLOCA@,$ALLOCA,;t t
7702s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7703s,@TARGET@,$TARGET,;t t
7704s,@TARGETDIR@,$TARGETDIR,;t t
7705s,@toolexecdir@,$toolexecdir,;t t
7706s,@toolexeclibdir@,$toolexeclibdir,;t t
7707s,@tool_include_dir@,$tool_include_dir,;t t
7708s,@gcc_version@,$gcc_version,;t t
7709s,@LIBOBJS@,$LIBOBJS,;t t
7710s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63e5e3e0 7711CEOF
63e5e3e0 7712
3ed8e5b6
AT
7713_ACEOF
7714
7715 cat >>$CONFIG_STATUS <<\_ACEOF
7716 # Split the substitutions into bite-sized pieces for seds with
7717 # small command number limits, like on Digital OSF/1 and HP-UX.
7718 ac_max_sed_lines=48
7719 ac_sed_frag=1 # Number of current file.
7720 ac_beg=1 # First line for current file.
7721 ac_end=$ac_max_sed_lines # Line after last line for current file.
7722 ac_more_lines=:
7723 ac_sed_cmds=
7724 while $ac_more_lines; do
7725 if test $ac_beg -gt 1; then
7726 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7727 else
7728 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7729 fi
7730 if test ! -s $tmp/subs.frag; then
7731 ac_more_lines=false
63e5e3e0 7732 else
3ed8e5b6
AT
7733 # The purpose of the label and of the branching condition is to
7734 # speed up the sed processing (if there are no `@' at all, there
7735 # is no need to browse any of the substitutions).
7736 # These are the two extra sed commands mentioned above.
7737 (echo ':t
7738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7739 if test -z "$ac_sed_cmds"; then
7740 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7741 else
7742 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7743 fi
7744 ac_sed_frag=`expr $ac_sed_frag + 1`
7745 ac_beg=$ac_end
7746 ac_end=`expr $ac_end + $ac_max_sed_lines`
63e5e3e0 7747 fi
3ed8e5b6
AT
7748 done
7749 if test -z "$ac_sed_cmds"; then
7750 ac_sed_cmds=cat
63e5e3e0 7751 fi
3ed8e5b6 7752fi # test -n "$CONFIG_FILES"
63e5e3e0 7753
3ed8e5b6
AT
7754_ACEOF
7755cat >>$CONFIG_STATUS <<\_ACEOF
7756for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63e5e3e0 7757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
7758 case $ac_file in
7759 - | *:- | *:-:* ) # input from stdin
7760 cat >$tmp/stdin
7761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7765 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
7766 esac
7767
3ed8e5b6
AT
7768 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7769 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$ac_file" : 'X\(//\)[^/]' \| \
7772 X"$ac_file" : 'X\(//\)$' \| \
7773 X"$ac_file" : 'X\(/\)' \| \
7774 . : '\(.\)' 2>/dev/null ||
7775echo X"$ac_file" |
7776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7778 /^X\(\/\/\)$/{ s//\1/; q; }
7779 /^X\(\/\).*/{ s//\1/; q; }
7780 s/.*/./; q'`
7781 { if $as_mkdir_p; then
7782 mkdir -p "$ac_dir"
63e5e3e0 7783 else
3ed8e5b6
AT
7784 as_dir="$ac_dir"
7785 as_dirs=
7786 while test ! -d "$as_dir"; do
7787 as_dirs="$as_dir $as_dirs"
7788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7790 X"$as_dir" : 'X\(//\)[^/]' \| \
7791 X"$as_dir" : 'X\(//\)$' \| \
7792 X"$as_dir" : 'X\(/\)' \| \
7793 . : '\(.\)' 2>/dev/null ||
7794echo X"$as_dir" |
7795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7797 /^X\(\/\/\)$/{ s//\1/; q; }
7798 /^X\(\/\).*/{ s//\1/; q; }
7799 s/.*/./; q'`
7800 done
7801 test ! -n "$as_dirs" || mkdir $as_dirs
7802 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7803echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7804 { (exit 1); exit 1; }; }; }
7805
7806 ac_builddir=.
7807
7808if test "$ac_dir" != .; then
7809 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7810 # A "../" for each directory in $ac_dir_suffix.
7811 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7812else
7813 ac_dir_suffix= ac_top_builddir=
7814fi
63e5e3e0 7815
3ed8e5b6
AT
7816case $srcdir in
7817 .) # No --srcdir option. We are building in place.
7818 ac_srcdir=.
7819 if test -z "$ac_top_builddir"; then
7820 ac_top_srcdir=.
7821 else
7822 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7823 fi ;;
7824 [\\/]* | ?:[\\/]* ) # Absolute path.
7825 ac_srcdir=$srcdir$ac_dir_suffix;
7826 ac_top_srcdir=$srcdir ;;
63e5e3e0 7827 *) # Relative path.
3ed8e5b6
AT
7828 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7829 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7830esac
7831
7832# Do not use `cd foo && pwd` to compute absolute paths, because
7833# the directories may not exist.
7834case `pwd` in
7835.) ac_abs_builddir="$ac_dir";;
7836*)
7837 case "$ac_dir" in
7838 .) ac_abs_builddir=`pwd`;;
7839 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7840 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7841 esac;;
7842esac
7843case $ac_abs_builddir in
7844.) ac_abs_top_builddir=${ac_top_builddir}.;;
7845*)
7846 case ${ac_top_builddir}. in
7847 .) ac_abs_top_builddir=$ac_abs_builddir;;
7848 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7849 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7850 esac;;
7851esac
7852case $ac_abs_builddir in
7853.) ac_abs_srcdir=$ac_srcdir;;
7854*)
7855 case $ac_srcdir in
7856 .) ac_abs_srcdir=$ac_abs_builddir;;
7857 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7858 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7859 esac;;
7860esac
7861case $ac_abs_builddir in
7862.) ac_abs_top_srcdir=$ac_top_srcdir;;
7863*)
7864 case $ac_top_srcdir in
7865 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7866 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7867 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7868 esac;;
7869esac
63e5e3e0 7870
63e5e3e0 7871
3ed8e5b6
AT
7872 case $INSTALL in
7873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7874 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63e5e3e0
AG
7875 esac
7876
88d8c771
AG
7877 if test x"$ac_file" != x-; then
7878 { echo "$as_me:$LINENO: creating $ac_file" >&5
7879echo "$as_me: creating $ac_file" >&6;}
7880 rm -f "$ac_file"
7881 fi
3ed8e5b6
AT
7882 # Let's still pretend it is `configure' which instantiates (i.e., don't
7883 # use $as_me), people would be surprised to read:
7884 # /* config.h. Generated by config.status. */
7885 if test x"$ac_file" = x-; then
7886 configure_input=
7887 else
7888 configure_input="$ac_file. "
7889 fi
7890 configure_input=$configure_input"Generated from `echo $ac_file_in |
7891 sed 's,.*/,,'` by configure."
7892
7893 # First look for the input files in the build tree, otherwise in the
7894 # src tree.
7895 ac_file_inputs=`IFS=:
7896 for f in $ac_file_in; do
7897 case $f in
7898 -) echo $tmp/stdin ;;
7899 [\\/$]*)
7900 # Absolute (can't be DOS-style, as IFS=:)
7901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7902echo "$as_me: error: cannot find input file: $f" >&2;}
7903 { (exit 1); exit 1; }; }
7904 echo "$f";;
7905 *) # Relative
7906 if test -f "$f"; then
7907 # Build tree
7908 echo "$f"
7909 elif test -f "$srcdir/$f"; then
7910 # Source tree
7911 echo "$srcdir/$f"
7912 else
7913 # /dev/null tree
7914 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7915echo "$as_me: error: cannot find input file: $f" >&2;}
7916 { (exit 1); exit 1; }; }
7917 fi;;
7918 esac
7919 done` || { (exit 1); exit 1; }
7920_ACEOF
7921cat >>$CONFIG_STATUS <<_ACEOF
7922 sed "$ac_vpsub
7923$extrasub
7924_ACEOF
7925cat >>$CONFIG_STATUS <<\_ACEOF
7926:t
7927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7928s,@configure_input@,$configure_input,;t t
7929s,@srcdir@,$ac_srcdir,;t t
7930s,@abs_srcdir@,$ac_abs_srcdir,;t t
7931s,@top_srcdir@,$ac_top_srcdir,;t t
7932s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7933s,@builddir@,$ac_builddir,;t t
7934s,@abs_builddir@,$ac_abs_builddir,;t t
7935s,@top_builddir@,$ac_top_builddir,;t t
7936s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7937s,@INSTALL@,$ac_INSTALL,;t t
7938" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7939 rm -f $tmp/stdin
7940 if test x"$ac_file" != x-; then
7941 mv $tmp/out $ac_file
7942 else
7943 cat $tmp/out
7944 rm -f $tmp/out
7945 fi
7946
7947done
7948_ACEOF
7949cat >>$CONFIG_STATUS <<\_ACEOF
7950
7951#
7952# CONFIG_HEADER section.
7953#
63e5e3e0
AG
7954
7955# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7956# NAME is the cpp macro being defined and VALUE is the value it is being given.
7957#
7958# ac_d sets the value in "#define NAME VALUE" lines.
3ed8e5b6
AT
7959ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7960ac_dB='[ ].*$,\1#\2'
7961ac_dC=' '
7962ac_dD=',;t'
7963# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7964ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7965ac_uB='$,\1#\2define\3'
63e5e3e0 7966ac_uC=' '
3ed8e5b6
AT
7967ac_uD=',;t'
7968
7969for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63e5e3e0 7970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
7971 case $ac_file in
7972 - | *:- | *:-:* ) # input from stdin
7973 cat >$tmp/stdin
7974 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7976 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7978 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
7979 esac
7980
3ed8e5b6
AT
7981 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7982echo "$as_me: creating $ac_file" >&6;}
7983
7984 # First look for the input files in the build tree, otherwise in the
7985 # src tree.
7986 ac_file_inputs=`IFS=:
7987 for f in $ac_file_in; do
7988 case $f in
7989 -) echo $tmp/stdin ;;
7990 [\\/$]*)
7991 # Absolute (can't be DOS-style, as IFS=:)
7992 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7993echo "$as_me: error: cannot find input file: $f" >&2;}
7994 { (exit 1); exit 1; }; }
7995 # Do quote $f, to prevent DOS paths from being IFS'd.
7996 echo "$f";;
7997 *) # Relative
7998 if test -f "$f"; then
7999 # Build tree
8000 echo "$f"
8001 elif test -f "$srcdir/$f"; then
8002 # Source tree
8003 echo "$srcdir/$f"
8004 else
8005 # /dev/null tree
8006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8007echo "$as_me: error: cannot find input file: $f" >&2;}
8008 { (exit 1); exit 1; }; }
8009 fi;;
8010 esac
8011 done` || { (exit 1); exit 1; }
8012 # Remove the trailing spaces.
8013 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8014
8015_ACEOF
8016
8017# Transform confdefs.h into two sed scripts, `conftest.defines' and
8018# `conftest.undefs', that substitutes the proper values into
8019# config.h.in to produce config.h. The first handles `#define'
8020# templates, and the second `#undef' templates.
8021# And first: Protect against being on the right side of a sed subst in
8022# config.status. Protect against being in an unquoted here document
8023# in config.status.
8024rm -f conftest.defines conftest.undefs
8025# Using a here document instead of a string reduces the quoting nightmare.
8026# Putting comments in sed scripts is not portable.
8027#
8028# `end' is used to avoid that the second main sed command (meant for
8029# 0-ary CPP macros) applies to n-ary macro definitions.
8030# See the Autoconf documentation for `clear'.
8031cat >confdef2sed.sed <<\_ACEOF
8032s/[\\&,]/\\&/g
8033s,[\\$`],\\&,g
8034t clear
8035: clear
8036s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8037t end
8038s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8039: end
8040_ACEOF
8041# If some macros were called several times there might be several times
8042# the same #defines, which is useless. Nevertheless, we may not want to
8043# sort them, since we want the *last* AC-DEFINE to be honored.
8044uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8045sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8046rm -f confdef2sed.sed
63e5e3e0
AG
8047
8048# This sed command replaces #undef with comments. This is necessary, for
8049# example, in the case of _POSIX_SOURCE, which is predefined and required
8050# on some systems where configure will not decide to define it.
3ed8e5b6
AT
8051cat >>conftest.undefs <<\_ACEOF
8052s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8053_ACEOF
8054
8055# Break up conftest.defines because some shells have a limit on the size
8056# of here documents, and old seds have small limits too (100 cmds).
8057echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8058echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8059echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8060echo ' :' >>$CONFIG_STATUS
8061rm -f conftest.tail
8062while grep . conftest.defines >/dev/null
8063do
8064 # Write a limited-size here document to $tmp/defines.sed.
8065 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8066 # Speed up: don't consider the non `#define' lines.
8067 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8068 # Work around the forget-to-reset-the-flag bug.
8069 echo 't clr' >>$CONFIG_STATUS
8070 echo ': clr' >>$CONFIG_STATUS
8071 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8072 echo 'CEOF
8073 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8074 rm -f $tmp/in
8075 mv $tmp/out $tmp/in
8076' >>$CONFIG_STATUS
8077 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8078 rm -f conftest.defines
8079 mv conftest.tail conftest.defines
8080done
8081rm -f conftest.defines
8082echo ' fi # grep' >>$CONFIG_STATUS
8083echo >>$CONFIG_STATUS
63e5e3e0 8084
3ed8e5b6
AT
8085# Break up conftest.undefs because some shells have a limit on the size
8086# of here documents, and old seds have small limits too (100 cmds).
8087echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63e5e3e0 8088rm -f conftest.tail
3ed8e5b6 8089while grep . conftest.undefs >/dev/null
63e5e3e0 8090do
3ed8e5b6
AT
8091 # Write a limited-size here document to $tmp/undefs.sed.
8092 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8093 # Speed up: don't consider the non `#undef'
8094 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8095 # Work around the forget-to-reset-the-flag bug.
8096 echo 't clr' >>$CONFIG_STATUS
8097 echo ': clr' >>$CONFIG_STATUS
8098 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
63e5e3e0 8099 echo 'CEOF
3ed8e5b6
AT
8100 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8101 rm -f $tmp/in
8102 mv $tmp/out $tmp/in
8103' >>$CONFIG_STATUS
8104 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8105 rm -f conftest.undefs
8106 mv conftest.tail conftest.undefs
63e5e3e0 8107done
3ed8e5b6
AT
8108rm -f conftest.undefs
8109
8110cat >>$CONFIG_STATUS <<\_ACEOF
8111 # Let's still pretend it is `configure' which instantiates (i.e., don't
8112 # use $as_me), people would be surprised to read:
8113 # /* config.h. Generated by config.status. */
8114 if test x"$ac_file" = x-; then
8115 echo "/* Generated by configure. */" >$tmp/config.h
63e5e3e0 8116 else
3ed8e5b6 8117 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63e5e3e0 8118 fi
3ed8e5b6
AT
8119 cat $tmp/in >>$tmp/config.h
8120 rm -f $tmp/in
8121 if test x"$ac_file" != x-; then
8122 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8123 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8124echo "$as_me: $ac_file is unchanged" >&6;}
8125 else
8126 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8128 X"$ac_file" : 'X\(//\)[^/]' \| \
8129 X"$ac_file" : 'X\(//\)$' \| \
8130 X"$ac_file" : 'X\(/\)' \| \
8131 . : '\(.\)' 2>/dev/null ||
8132echo X"$ac_file" |
8133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8135 /^X\(\/\/\)$/{ s//\1/; q; }
8136 /^X\(\/\).*/{ s//\1/; q; }
8137 s/.*/./; q'`
8138 { if $as_mkdir_p; then
8139 mkdir -p "$ac_dir"
8140 else
8141 as_dir="$ac_dir"
8142 as_dirs=
8143 while test ! -d "$as_dir"; do
8144 as_dirs="$as_dir $as_dirs"
8145 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8147 X"$as_dir" : 'X\(//\)[^/]' \| \
8148 X"$as_dir" : 'X\(//\)$' \| \
8149 X"$as_dir" : 'X\(/\)' \| \
8150 . : '\(.\)' 2>/dev/null ||
8151echo X"$as_dir" |
8152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8154 /^X\(\/\/\)$/{ s//\1/; q; }
8155 /^X\(\/\).*/{ s//\1/; q; }
8156 s/.*/./; q'`
8157 done
8158 test ! -n "$as_dirs" || mkdir $as_dirs
8159 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8160echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8161 { (exit 1); exit 1; }; }; }
63e5e3e0 8162
3ed8e5b6
AT
8163 rm -f $ac_file
8164 mv $tmp/config.h $ac_file
8165 fi
8166 else
8167 cat $tmp/config.h
8168 rm -f $tmp/config.h
8169 fi
8170# Compute $ac_file's index in $config_headers.
8171_am_stamp_count=1
8172for _am_header in $config_headers :; do
8173 case $_am_header in
8174 $ac_file | $ac_file:* )
8175 break ;;
8176 * )
8177 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8178 esac
8179done
8180echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8181$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8182 X$ac_file : 'X\(//\)[^/]' \| \
8183 X$ac_file : 'X\(//\)$' \| \
8184 X$ac_file : 'X\(/\)' \| \
8185 . : '\(.\)' 2>/dev/null ||
8186echo X$ac_file |
8187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8189 /^X\(\/\/\)$/{ s//\1/; q; }
8190 /^X\(\/\).*/{ s//\1/; q; }
8191 s/.*/./; q'`/stamp-h$_am_stamp_count
8192done
8193_ACEOF
8194cat >>$CONFIG_STATUS <<\_ACEOF
1450eb7a 8195
3ed8e5b6
AT
8196#
8197# CONFIG_LINKS section.
8198#
1450eb7a 8199
3ed8e5b6
AT
8200for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8201 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8202 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1450eb7a 8203
3ed8e5b6
AT
8204 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8205echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1450eb7a
AT
8206
8207 if test ! -r $srcdir/$ac_source; then
3ed8e5b6
AT
8208 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8209echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8210 { (exit 1); exit 1; }; }
1450eb7a
AT
8211 fi
8212 rm -f $ac_dest
8213
8214 # Make relative symlinks.
3ed8e5b6
AT
8215 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8216$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8217 X"$ac_dest" : 'X\(//\)[^/]' \| \
8218 X"$ac_dest" : 'X\(//\)$' \| \
8219 X"$ac_dest" : 'X\(/\)' \| \
8220 . : '\(.\)' 2>/dev/null ||
8221echo X"$ac_dest" |
8222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8224 /^X\(\/\/\)$/{ s//\1/; q; }
8225 /^X\(\/\).*/{ s//\1/; q; }
8226 s/.*/./; q'`
8227 { if $as_mkdir_p; then
8228 mkdir -p "$ac_dest_dir"
1450eb7a 8229 else
3ed8e5b6
AT
8230 as_dir="$ac_dest_dir"
8231 as_dirs=
8232 while test ! -d "$as_dir"; do
8233 as_dirs="$as_dir $as_dirs"
8234 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8236 X"$as_dir" : 'X\(//\)[^/]' \| \
8237 X"$as_dir" : 'X\(//\)$' \| \
8238 X"$as_dir" : 'X\(/\)' \| \
8239 . : '\(.\)' 2>/dev/null ||
8240echo X"$as_dir" |
8241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8243 /^X\(\/\/\)$/{ s//\1/; q; }
8244 /^X\(\/\).*/{ s//\1/; q; }
8245 s/.*/./; q'`
8246 done
8247 test ! -n "$as_dirs" || mkdir $as_dirs
8248 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8249echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8250 { (exit 1); exit 1; }; }; }
8251
8252 ac_builddir=.
8253
8254if test "$ac_dest_dir" != .; then
8255 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8256 # A "../" for each directory in $ac_dir_suffix.
8257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8258else
8259 ac_dir_suffix= ac_top_builddir=
8260fi
8261
8262case $srcdir in
8263 .) # No --srcdir option. We are building in place.
8264 ac_srcdir=.
8265 if test -z "$ac_top_builddir"; then
8266 ac_top_srcdir=.
8267 else
8268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8269 fi ;;
8270 [\\/]* | ?:[\\/]* ) # Absolute path.
8271 ac_srcdir=$srcdir$ac_dir_suffix;
8272 ac_top_srcdir=$srcdir ;;
8273 *) # Relative path.
8274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8276esac
8277
8278# Do not use `cd foo && pwd` to compute absolute paths, because
8279# the directories may not exist.
8280case `pwd` in
8281.) ac_abs_builddir="$ac_dest_dir";;
8282*)
8283 case "$ac_dest_dir" in
8284 .) ac_abs_builddir=`pwd`;;
8285 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8286 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8287 esac;;
8288esac
8289case $ac_abs_builddir in
8290.) ac_abs_top_builddir=${ac_top_builddir}.;;
8291*)
8292 case ${ac_top_builddir}. in
8293 .) ac_abs_top_builddir=$ac_abs_builddir;;
8294 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8295 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8296 esac;;
8297esac
8298case $ac_abs_builddir in
8299.) ac_abs_srcdir=$ac_srcdir;;
8300*)
8301 case $ac_srcdir in
8302 .) ac_abs_srcdir=$ac_abs_builddir;;
8303 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8304 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8305 esac;;
8306esac
8307case $ac_abs_builddir in
8308.) ac_abs_top_srcdir=$ac_top_srcdir;;
8309*)
8310 case $ac_top_srcdir in
8311 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8312 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8313 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8314 esac;;
8315esac
8316
1450eb7a 8317
3ed8e5b6
AT
8318 case $srcdir in
8319 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8320 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1450eb7a
AT
8321 esac
8322
3ed8e5b6
AT
8323 # Try a symlink, then a hard link, then a copy.
8324 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8325 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8326 cp -p $srcdir/$ac_source $ac_dest ||
8327 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8328echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8329 { (exit 1); exit 1; }; }
1450eb7a 8330done
3ed8e5b6
AT
8331_ACEOF
8332cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 8333
3ed8e5b6
AT
8334#
8335# CONFIG_COMMANDS section.
8336#
8337for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8338 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8339 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8340 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8341$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8342 X"$ac_dest" : 'X\(//\)[^/]' \| \
8343 X"$ac_dest" : 'X\(//\)$' \| \
8344 X"$ac_dest" : 'X\(/\)' \| \
8345 . : '\(.\)' 2>/dev/null ||
8346echo X"$ac_dest" |
8347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8349 /^X\(\/\/\)$/{ s//\1/; q; }
8350 /^X\(\/\).*/{ s//\1/; q; }
8351 s/.*/./; q'`
8352 { if $as_mkdir_p; then
8353 mkdir -p "$ac_dir"
8354 else
8355 as_dir="$ac_dir"
8356 as_dirs=
8357 while test ! -d "$as_dir"; do
8358 as_dirs="$as_dir $as_dirs"
8359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8361 X"$as_dir" : 'X\(//\)[^/]' \| \
8362 X"$as_dir" : 'X\(//\)$' \| \
8363 X"$as_dir" : 'X\(/\)' \| \
8364 . : '\(.\)' 2>/dev/null ||
8365echo X"$as_dir" |
8366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8368 /^X\(\/\/\)$/{ s//\1/; q; }
8369 /^X\(\/\).*/{ s//\1/; q; }
8370 s/.*/./; q'`
8371 done
8372 test ! -n "$as_dirs" || mkdir $as_dirs
8373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8375 { (exit 1); exit 1; }; }; }
1450eb7a 8376
3ed8e5b6
AT
8377 ac_builddir=.
8378
8379if test "$ac_dir" != .; then
8380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8381 # A "../" for each directory in $ac_dir_suffix.
8382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8383else
8384 ac_dir_suffix= ac_top_builddir=
8385fi
1450eb7a 8386
3ed8e5b6
AT
8387case $srcdir in
8388 .) # No --srcdir option. We are building in place.
8389 ac_srcdir=.
8390 if test -z "$ac_top_builddir"; then
8391 ac_top_srcdir=.
8392 else
8393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8394 fi ;;
8395 [\\/]* | ?:[\\/]* ) # Absolute path.
8396 ac_srcdir=$srcdir$ac_dir_suffix;
8397 ac_top_srcdir=$srcdir ;;
8398 *) # Relative path.
8399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8401esac
1450eb7a 8402
3ed8e5b6
AT
8403# Do not use `cd foo && pwd` to compute absolute paths, because
8404# the directories may not exist.
8405case `pwd` in
8406.) ac_abs_builddir="$ac_dir";;
8407*)
8408 case "$ac_dir" in
8409 .) ac_abs_builddir=`pwd`;;
8410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8412 esac;;
8413esac
8414case $ac_abs_builddir in
8415.) ac_abs_top_builddir=${ac_top_builddir}.;;
8416*)
8417 case ${ac_top_builddir}. in
8418 .) ac_abs_top_builddir=$ac_abs_builddir;;
8419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8421 esac;;
8422esac
8423case $ac_abs_builddir in
8424.) ac_abs_srcdir=$ac_srcdir;;
8425*)
8426 case $ac_srcdir in
8427 .) ac_abs_srcdir=$ac_abs_builddir;;
8428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8430 esac;;
8431esac
8432case $ac_abs_builddir in
8433.) ac_abs_top_srcdir=$ac_top_srcdir;;
8434*)
8435 case $ac_top_srcdir in
8436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8439 esac;;
8440esac
63e5e3e0 8441
63e5e3e0 8442
3ed8e5b6
AT
8443 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8444echo "$as_me: executing $ac_dest commands" >&6;}
8445 case $ac_dest in
8446 default-1 )
8447# Only add multilib support code if we just rebuilt the top-level
8448# Makefile.
8449case " $CONFIG_FILES " in
8450 *" Makefile "*)
8451 ac_file=Makefile . ${multi_basedir}/config-ml.in
8452 ;;
8453esac ;;
8454 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8455 # Strip MF so we end up with the name of the file.
8456 mf=`echo "$mf" | sed -e 's/:.*$//'`
8457 # Check whether this is an Automake generated Makefile or not.
8458 # We used to match only the files named `Makefile.in', but
8459 # some people rename them; so instead we look at the file content.
8460 # Grep'ing the first line is not enough: some people post-process
8461 # each Makefile.in and add a new line on top of each file to say so.
8462 # So let's grep whole file.
8463 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8464 dirpart=`(dirname "$mf") 2>/dev/null ||
8465$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8466 X"$mf" : 'X\(//\)[^/]' \| \
8467 X"$mf" : 'X\(//\)$' \| \
8468 X"$mf" : 'X\(/\)' \| \
8469 . : '\(.\)' 2>/dev/null ||
8470echo X"$mf" |
8471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8473 /^X\(\/\/\)$/{ s//\1/; q; }
8474 /^X\(\/\).*/{ s//\1/; q; }
8475 s/.*/./; q'`
8476 else
8477 continue
8478 fi
8479 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8480 # Extract the definition of DEP_FILES from the Makefile without
8481 # running `make'.
076e5443 8482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3ed8e5b6
AT
8483 test -z "$DEPDIR" && continue
8484 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 8485 U=`sed -n 's/^U = //p' < "$mf"`
3ed8e5b6
AT
8486 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8487 # We invoke sed twice because it is the simplest approach to
8488 # changing $(DEPDIR) to its actual value in the expansion.
076e5443 8489 for file in `sed -n '
3ed8e5b6
AT
8490 /^DEP_FILES = .*\\\\$/ {
8491 s/^DEP_FILES = //
8492 :loop
8493 s/\\\\$//
8494 p
8495 n
8496 /\\\\$/ b loop
8497 p
8498 }
8499 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8501 # Make sure the directory exists.
8502 test -f "$dirpart/$file" && continue
8503 fdir=`(dirname "$file") 2>/dev/null ||
8504$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8505 X"$file" : 'X\(//\)[^/]' \| \
8506 X"$file" : 'X\(//\)$' \| \
8507 X"$file" : 'X\(/\)' \| \
8508 . : '\(.\)' 2>/dev/null ||
8509echo X"$file" |
8510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8512 /^X\(\/\/\)$/{ s//\1/; q; }
8513 /^X\(\/\).*/{ s//\1/; q; }
8514 s/.*/./; q'`
8515 { if $as_mkdir_p; then
8516 mkdir -p $dirpart/$fdir
8517 else
8518 as_dir=$dirpart/$fdir
8519 as_dirs=
8520 while test ! -d "$as_dir"; do
8521 as_dirs="$as_dir $as_dirs"
8522 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8524 X"$as_dir" : 'X\(//\)[^/]' \| \
8525 X"$as_dir" : 'X\(//\)$' \| \
8526 X"$as_dir" : 'X\(/\)' \| \
8527 . : '\(.\)' 2>/dev/null ||
8528echo X"$as_dir" |
8529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8531 /^X\(\/\/\)$/{ s//\1/; q; }
8532 /^X\(\/\).*/{ s//\1/; q; }
8533 s/.*/./; q'`
8534 done
8535 test ! -n "$as_dirs" || mkdir $as_dirs
8536 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8537echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8538 { (exit 1); exit 1; }; }; }
3c18f2d1 8539
3ed8e5b6
AT
8540 # echo "creating $dirpart/$file"
8541 echo '# dummy' > "$dirpart/$file"
8542 done
8543done
8544 ;;
8545 include ) test -d include || mkdir include ;;
8546 src )
8547test -d src || mkdir src
8548test -d src/$TARGETDIR || mkdir src/$TARGETDIR
8549 ;;
8550 esac
8551done
8552_ACEOF
8553
8554cat >>$CONFIG_STATUS <<\_ACEOF
8555
8556{ (exit 0); exit 0; }
8557_ACEOF
63e5e3e0 8558chmod +x $CONFIG_STATUS
3ed8e5b6
AT
8559ac_clean_files=$ac_clean_files_save
8560
8561
8562# configure is writing to config.log, and then calls config.status.
8563# config.status does its own redirection, appending to config.log.
8564# Unfortunately, on DOS this fails, as config.log is still kept open
8565# by configure, so config.status won't be able to write to it; its
8566# output is simply discarded. So we exec the FD to /dev/null,
8567# effectively closing config.log, so it can be properly (re)opened and
8568# appended to by config.status. When coming back to configure, we
8569# need to make the FD available again.
8570if test "$no_create" != yes; then
8571 ac_cs_success=:
8572 ac_config_status_args=
8573 test "$silent" = yes &&
8574 ac_config_status_args="$ac_config_status_args --quiet"
8575 exec 5>/dev/null
8576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8577 exec 5>>config.log
8578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8579 # would make configure fail if this is the last instruction.
8580 $ac_cs_success || { (exit 1); exit 1; }
8581fi
63e5e3e0 8582