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