* ca.po, rw.po: Remove.
[official-gcc.git] / libffi / configure
bloba98d495ae20088df148c14bf7f077c6485da3b8b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for 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
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
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if 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=:
98 rm -f conf$$.sh
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
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 done
156 esac
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 '
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; }; }
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
189 case `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= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
276 # Factoring default headers for most tests.
277 ac_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"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 X86_DARWIN_TRUE X86_DARWIN_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 POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
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.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
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
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
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=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
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" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
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"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
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 ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
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=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
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=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
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 ;;
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=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
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=*)
512 program_prefix=$ac_optarg ;;
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=*)
519 program_suffix=$ac_optarg ;;
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=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
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=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
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=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
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; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
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" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
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=*)
618 x_includes=$ac_optarg ;;
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=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
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 ;;
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}
650 esac
651 done
653 if test -n "$ac_prev"; then
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; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
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
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
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; }; };;
679 esac
680 done
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.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if 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
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
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 ||
716 echo 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'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
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; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CCAS_set=${CCAS+set}
755 ac_env_CCAS_value=$CCAS
756 ac_cv_env_CCAS_set=${CCAS+set}
757 ac_cv_env_CCAS_value=$CCAS
758 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 # Report the --help message.
774 if 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.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
787 Configuration:
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 \`..']
798 _ACEOF
800 cat <<_ACEOF
801 Installation 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]
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine 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
829 cat <<\_ACEOF
831 Program 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
836 System 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
843 if 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
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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
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)
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
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
866 Optional 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
872 Some 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>
879 CCAS assembler compiler command (defaults to CC)
880 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
887 _ACEOF
890 if 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=.
897 if 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'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $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 ;;
919 esac
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
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;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
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;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
958 esac
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
975 cd $ac_popdir
976 done
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
982 libffi configure 2.1
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1020 hostinfo = `(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`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
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.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
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'" ;;
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
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
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; }
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.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
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"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
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
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
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
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
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if 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"
1223 for 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
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if 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
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for 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
1261 echo "$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
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
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
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$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
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$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
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 ac_config_headers="$ac_config_headers fficonfig.h"
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if 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
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344 { (exit 1); exit 1; }; } ;;
1345 esac
1346 else
1347 multilib=yes
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.
1354 if test "$srcdir" = "."; then
1355 if test "$with_target_subdir" != "."; then
1356 multi_basedir="$srcdir/$with_multisrctop../.."
1357 else
1358 multi_basedir="$srcdir/$with_multisrctop.."
1360 else
1361 multi_basedir="$srcdir/.."
1365 # Even if the default multilib is not a cross compilation,
1366 # it may be that some of the other multilibs are.
1367 if test $cross_compiling = no && test $multilib = yes \
1368 && test "x${with_multisubdir}" != x ; then
1369 cross_compiling=maybe
1372 ac_config_commands="$ac_config_commands default-1"
1375 ac_aux_dir=
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 break
1381 elif test -f $ac_dir/install.sh; then
1382 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/install.sh -c"
1384 break
1385 elif test -f $ac_dir/shtool; then
1386 ac_aux_dir=$ac_dir
1387 ac_install_sh="$ac_aux_dir/shtool install -c"
1388 break
1390 done
1391 if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394 { (exit 1); exit 1; }; }
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1426 build=$ac_cv_build
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$as_me:$LINENO: checking target system type" >&5
1455 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456 if test "${ac_cv_target+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 ac_cv_target_alias=$target_alias
1460 test "x$ac_cv_target_alias" = "x" &&
1461 ac_cv_target_alias=$ac_cv_host_alias
1462 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1469 echo "${ECHO_T}$ac_cv_target" >&6
1470 target=$ac_cv_target
1471 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 # The aliases save the names the user supplied, while $host etc.
1477 # will get canonicalized.
1478 test -n "$target_alias" &&
1479 test "$program_prefix$program_suffix$program_transform_name" = \
1480 NONENONEs,x,x, &&
1481 program_prefix=${target_alias}-
1482 target_alias=${target_alias-$host_alias}
1484 . ${srcdir}/configure.host
1486 am__api_version="1.9"
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # OS/2's system install, which has a completely different semantic
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 # Account for people who put trailing slashes in PATH elements.
1512 case $as_dir/ in
1513 ./ | .// | /cC/* | \
1514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1516 /usr/ucb/* ) ;;
1518 # OSF1 and SCO ODT 3.0 have their own names for install.
1519 # Don't use installbsd from OSF since it installs stuff as root
1520 # by default.
1521 for ac_prog in ginstall scoinst install; do
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1524 if test $ac_prog = install &&
1525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526 # AIX install. It has an incompatible calling convention.
1528 elif test $ac_prog = install &&
1529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530 # program-specific install script used by HP pwplus--don't use.
1532 else
1533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1534 break 3
1537 done
1538 done
1540 esac
1541 done
1545 if test "${ac_cv_path_install+set}" = set; then
1546 INSTALL=$ac_cv_path_install
1547 else
1548 # As a last resort, use the slow shell script. We don't cache a
1549 # path for INSTALL within a source directory, because that will
1550 # break other packages using the cache if that directory is
1551 # removed, or if the path is relative.
1552 INSTALL=$ac_install_sh
1555 echo "$as_me:$LINENO: result: $INSTALL" >&5
1556 echo "${ECHO_T}$INSTALL" >&6
1558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1559 # It thinks the first close brace ends the variable substitution.
1560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1566 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1567 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1568 # Just in case
1569 sleep 1
1570 echo timestamp > conftest.file
1571 # Do `set' in a subshell so we don't clobber the current shell's
1572 # arguments. Must try -L first in case configure is actually a
1573 # symlink; some systems play weird games with the mod time of symlinks
1574 # (eg FreeBSD returns the mod time of the symlink's containing
1575 # directory).
1576 if (
1577 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1578 if test "$*" = "X"; then
1579 # -L didn't work.
1580 set X `ls -t $srcdir/configure conftest.file`
1582 rm -f conftest.file
1583 if test "$*" != "X $srcdir/configure conftest.file" \
1584 && test "$*" != "X conftest.file $srcdir/configure"; then
1586 # If neither matched, then we have a broken ls. This can happen
1587 # if, for instance, CONFIG_SHELL is bash and it inherits a
1588 # broken ls alias from the environment. This has actually
1589 # happened. Such a system could not be considered "sane".
1590 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1591 alias in your environment" >&5
1592 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1593 alias in your environment" >&2;}
1594 { (exit 1); exit 1; }; }
1597 test "$2" = conftest.file
1599 then
1600 # Ok.
1602 else
1603 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1604 Check your system clock" >&5
1605 echo "$as_me: error: newly created file is older than distributed files!
1606 Check your system clock" >&2;}
1607 { (exit 1); exit 1; }; }
1609 echo "$as_me:$LINENO: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1611 test "$program_prefix" != NONE &&
1612 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1613 # Use a double $ so make ignores it.
1614 test "$program_suffix" != NONE &&
1615 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1616 # Double any \ or $. echo might interpret backslashes.
1617 # By default was `s,x,x', remove it if useless.
1618 cat <<\_ACEOF >conftest.sed
1619 s/[\\$]/&&/g;s/;s,x,x,$//
1620 _ACEOF
1621 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1622 rm conftest.sed
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630 am_missing_run="$MISSING --run "
1631 else
1632 am_missing_run=
1633 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1637 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1638 # We used to keeping the `.' as first argument, in order to
1639 # allow $(mkdir_p) to be used without argument. As in
1640 # $(mkdir_p) $(somedir)
1641 # where $(somedir) is conditionally defined. However this is wrong
1642 # for two reasons:
1643 # 1. if the package is installed by a user who cannot write `.'
1644 # make install will fail,
1645 # 2. the above comment should most certainly read
1646 # $(mkdir_p) $(DESTDIR)$(somedir)
1647 # so it does not work when $(somedir) is undefined and
1648 # $(DESTDIR) is not.
1649 # To support the latter case, we have to write
1650 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1651 # so the `.' trick is pointless.
1652 mkdir_p='mkdir -p --'
1653 else
1654 # On NextStep and OpenStep, the `mkdir' command does not
1655 # recognize any option. It will interpret all options as
1656 # directories to create, and then abort because `.' already
1657 # exists.
1658 for d in ./-p ./--version;
1660 test -d $d && rmdir $d
1661 done
1662 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1663 if test -f "$ac_aux_dir/mkinstalldirs"; then
1664 mkdir_p='$(mkinstalldirs)'
1665 else
1666 mkdir_p='$(install_sh) -d'
1670 for ac_prog in gawk mawk nawk awk
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_AWK+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$AWK"; then
1680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_AWK="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 AWK=$ac_cv_prog_AWK
1699 if test -n "$AWK"; then
1700 echo "$as_me:$LINENO: result: $AWK" >&5
1701 echo "${ECHO_T}$AWK" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 test -n "$AWK" && break
1708 done
1710 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1713 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 cat >conftest.make <<\_ACEOF
1717 all:
1718 @echo 'ac_maketemp="$(MAKE)"'
1719 _ACEOF
1720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1722 if test -n "$ac_maketemp"; then
1723 eval ac_cv_prog_make_${ac_make}_set=yes
1724 else
1725 eval ac_cv_prog_make_${ac_make}_set=no
1727 rm -f conftest.make
1729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1730 echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732 SET_MAKE=
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 SET_MAKE="MAKE=${MAKE-make}"
1739 rm -rf .tst 2>/dev/null
1740 mkdir .tst 2>/dev/null
1741 if test -d .tst; then
1742 am__leading_dot=.
1743 else
1744 am__leading_dot=_
1746 rmdir .tst 2>/dev/null
1748 # test to see if srcdir already configured
1749 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1750 test -f $srcdir/config.status; then
1751 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1752 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1753 { (exit 1); exit 1; }; }
1756 # test whether we have cygpath
1757 if test -z "$CYGPATH_W"; then
1758 if (cygpath --version) >/dev/null 2>/dev/null; then
1759 CYGPATH_W='cygpath -w'
1760 else
1761 CYGPATH_W=echo
1766 # Define the identity of the package.
1767 PACKAGE='libffi'
1768 VERSION='2.1'
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE "$PACKAGE"
1773 _ACEOF
1776 cat >>confdefs.h <<_ACEOF
1777 #define VERSION "$VERSION"
1778 _ACEOF
1780 # Some tools Automake needs.
1782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1798 # Installed binaries are usually stripped using `strip' when the user
1799 # run `make install-strip'. However `strip' might not be the right
1800 # tool to use in cross-compilation environments, therefore Automake
1801 # will honor the `STRIP' environment variable to overrule this program.
1802 if test "$cross_compiling" != no; then
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}strip; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_STRIP+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$STRIP"; then
1812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1825 done
1826 done
1830 STRIP=$ac_cv_prog_STRIP
1831 if test -n "$STRIP"; then
1832 echo "$as_me:$LINENO: result: $STRIP" >&5
1833 echo "${ECHO_T}$STRIP" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1840 if test -z "$ac_cv_prog_STRIP"; then
1841 ac_ct_STRIP=$STRIP
1842 # Extract the first word of "strip", so it can be a program name with args.
1843 set dummy strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$ac_ct_STRIP"; then
1850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_STRIP="strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1866 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1870 if test -n "$ac_ct_STRIP"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1872 echo "${ECHO_T}$ac_ct_STRIP" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1878 STRIP=$ac_ct_STRIP
1879 else
1880 STRIP="$ac_cv_prog_STRIP"
1884 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1886 # We need awk for the "check" target. The system "awk" is bad on
1887 # some platforms.
1888 # Always define AMTAR for backward compatibility.
1890 AMTAR=${AMTAR-"${am_missing_run}tar"}
1892 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1899 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1900 # We must force CC to /not/ be precious variables; otherwise
1901 # the wrong, non-multilib-adjusted value will be used in multilibs.
1902 # As a side effect, we have to subst CFLAGS ourselves.
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1933 done
1934 done
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1948 if test -z "$ac_cv_prog_CC"; then
1949 ac_ct_CC=$CC
1950 # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_ac_ct_CC="gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1971 done
1972 done
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979 echo "${ECHO_T}$ac_ct_CC" >&6
1980 else
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1985 CC=$ac_ct_CC
1986 else
1987 CC="$ac_cv_prog_CC"
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test -n "$CC"; then
2000 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_CC="${ac_tool_prefix}cc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2013 done
2014 done
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2028 if test -z "$ac_cv_prog_CC"; then
2029 ac_ct_CC=$CC
2030 # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_ac_ct_CC="cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2065 CC=$ac_ct_CC
2066 else
2067 CC="$ac_cv_prog_CC"
2071 if test -z "$CC"; then
2072 # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082 ac_prog_rejected=no
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2091 ac_prog_rejected=yes
2092 continue
2094 ac_cv_prog_CC="cc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2101 if test $ac_prog_rejected = yes; then
2102 # We found a bogon in the path, so make sure we never use it.
2103 set dummy $ac_cv_prog_CC
2104 shift
2105 if test $# != 0; then
2106 # We chose a different compiler from the bogus one.
2107 # However, it has the same basename, so the bogon will be chosen
2108 # first if we set CC to just the basename; use the full file name.
2109 shift
2110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 for ac_prog in cl
2129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 test -n "$CC" && break
2165 done
2167 if test -z "$CC"; then
2168 ac_ct_CC=$CC
2169 for ac_prog in cl
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$ac_ct_CC"; then
2179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188 ac_cv_prog_ac_ct_CC="$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6
2201 else
2202 echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2206 test -n "$ac_ct_CC" && break
2207 done
2209 CC=$ac_ct_CC
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO:" \
2223 "checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226 (eval $ac_compiler --version </dev/null >&5) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231 (eval $ac_compiler -v </dev/null >&5) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236 (eval $ac_compiler -V </dev/null >&5) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h. */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h. */
2249 main ()
2253 return 0;
2255 _ACEOF
2256 ac_clean_files_save=$ac_clean_files
2257 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2258 # Try to create an executable without -o first, disregard a.out.
2259 # It will help us diagnose broken compilers, and finding out an intuition
2260 # of exeext.
2261 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2262 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2263 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2265 (eval $ac_link_default) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # Find the output, starting from the most likely. This scheme is
2270 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2271 # resort.
2273 # Be careful to initialize this variable, since it used to be cached.
2274 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2275 ac_cv_exeext=
2276 # b.out is created by i960 compilers.
2277 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2279 test -f "$ac_file" || continue
2280 case $ac_file in
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2283 conftest.$ac_ext )
2284 # This is the source file.
2286 [ab].out )
2287 # We found the default executable, but exeext='' is most
2288 # certainly right.
2289 break;;
2290 *.* )
2291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 # FIXME: I believe we export ac_cv_exeext for Libtool,
2293 # but it would be cool to find out if it's true. Does anybody
2294 # maintain Libtool? --akim.
2295 export ac_cv_exeext
2296 break;;
2298 break;;
2299 esac
2300 done
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2313 echo "$as_me:$LINENO: result: $ac_file" >&5
2314 echo "${ECHO_T}$ac_file" >&6
2316 # Check the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323 if { ac_try='./$ac_file'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 cross_compiling=no
2330 else
2331 if test "$cross_compiling" = maybe; then
2332 cross_compiling=yes
2333 else
2334 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run. If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359 (eval $ac_link) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 # `rm'.
2367 for ac_file in conftest.exe conftest conftest.*; do
2368 test -f "$ac_file" || continue
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372 export ac_cv_exeext
2373 break;;
2374 * ) break;;
2375 esac
2376 done
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2409 return 0;
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2422 break;;
2423 esac
2424 done
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2438 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2439 echo "${ECHO_T}$ac_cv_objext" >&6
2440 OBJEXT=$ac_cv_objext
2441 ac_objext=$OBJEXT
2442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 main ()
2457 #ifndef __GNUC__
2458 choke me
2459 #endif
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_compiler_gnu=yes
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 ac_compiler_gnu=no
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2498 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2500 GCC=`test $ac_compiler_gnu = yes && echo yes`
2501 ac_test_CFLAGS=${CFLAGS+set}
2502 ac_save_CFLAGS=$CFLAGS
2503 CFLAGS="-g"
2504 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2506 if test "${ac_cv_prog_cc_g+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2517 main ()
2521 return 0;
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 (eval $ac_try) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 ac_cv_prog_cc_g=yes
2547 else
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_cv_prog_cc_g=no
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2557 if test "$ac_test_CFLAGS" = set; then
2558 CFLAGS=$ac_save_CFLAGS
2559 elif test $ac_cv_prog_cc_g = yes; then
2560 if test "$GCC" = yes; then
2561 CFLAGS="-g -O2"
2562 else
2563 CFLAGS="-g"
2565 else
2566 if test "$GCC" = yes; then
2567 CFLAGS="-O2"
2568 else
2569 CFLAGS=
2572 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2573 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2574 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 ac_cv_prog_cc_stdc=no
2578 ac_save_CC=$CC
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585 #include <stdarg.h>
2586 #include <stdio.h>
2587 #include <sys/types.h>
2588 #include <sys/stat.h>
2589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2590 struct buf { int x; };
2591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2592 static char *e (p, i)
2593 char **p;
2594 int i;
2596 return p[i];
2598 static char *f (char * (*g) (char **, int), char **p, ...)
2600 char *s;
2601 va_list v;
2602 va_start (v,p);
2603 s = g (p, va_arg (v,int));
2604 va_end (v);
2605 return s;
2608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2609 function prototypes and stuff, but not '\xHH' hex character constants.
2610 These don't provoke an error unfortunately, instead are silently treated
2611 as 'x'. The following induces an error, until -std1 is added to get
2612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2613 array size at least. It's necessary to write '\x00'==0 to get something
2614 that's true only with -std1. */
2615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2617 int test (int i, double x);
2618 struct s1 {int (*f) (int a);};
2619 struct s2 {int (*f) (double a);};
2620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2621 int argc;
2622 char **argv;
2624 main ()
2626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2628 return 0;
2630 _ACEOF
2631 # Don't try gcc -ansi; that turns off useful extensions and
2632 # breaks some systems' header files.
2633 # AIX -qlanglvl=ansi
2634 # Ultrix and OSF/1 -std1
2635 # HP-UX 10.20 and later -Ae
2636 # HP-UX older versions -Aa -D_HPUX_SOURCE
2637 # SVR4 -Xc -D__EXTENSIONS__
2638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2640 CC="$ac_save_CC $ac_arg"
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_prog_cc_stdc=$ac_arg
2664 break
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.err conftest.$ac_objext
2671 done
2672 rm -f conftest.$ac_ext conftest.$ac_objext
2673 CC=$ac_save_CC
2677 case "x$ac_cv_prog_cc_stdc" in
2678 x|xno)
2679 echo "$as_me:$LINENO: result: none needed" >&5
2680 echo "${ECHO_T}none needed" >&6 ;;
2682 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2684 CC="$CC $ac_cv_prog_cc_stdc" ;;
2685 esac
2687 # Some people use a C++ compiler to compile C. Since we use `exit',
2688 # in C++ we need to declare it. In case someone uses the same compiler
2689 # for both compiling C and C++ we need to have the C++ compiler decide
2690 # the declaration of exit, since it's the most demanding environment.
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #ifndef __cplusplus
2693 choke me
2694 #endif
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 for ac_declaration in \
2719 '' \
2720 'extern "C" void std::exit (int) throw (); using std::exit;' \
2721 'extern "C" void std::exit (int); using std::exit;' \
2722 'extern "C" void exit (int) throw ();' \
2723 'extern "C" void exit (int);' \
2724 'void exit (int);'
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2732 $ac_declaration
2733 #include <stdlib.h>
2735 main ()
2737 exit (42);
2739 return 0;
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 continue
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778 $ac_declaration
2780 main ()
2782 exit (42);
2784 return 0;
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 break
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 done
2817 rm -f conftest*
2818 if test -n "$ac_declaration"; then
2819 echo '#ifdef __cplusplus' >>confdefs.h
2820 echo $ac_declaration >>confdefs.h
2821 echo '#endif' >>confdefs.h
2824 else
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 DEPDIR="${am__leading_dot}deps"
2837 ac_config_commands="$ac_config_commands depfiles"
2840 am_make=${MAKE-make}
2841 cat > confinc << 'END'
2842 am__doit:
2843 @echo done
2844 .PHONY: am__doit
2846 # If we don't find an include directive, just comment out the code.
2847 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2848 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2849 am__include="#"
2850 am__quote=
2851 _am_result=none
2852 # First try GNU make style include.
2853 echo "include confinc" > confmf
2854 # We grep out `Entering directory' and `Leaving directory'
2855 # messages which can occur if `w' ends up in MAKEFLAGS.
2856 # In particular we don't look at `^make:' because GNU make might
2857 # be invoked under some other name (usually "gmake"), in which
2858 # case it prints its new name instead of `make'.
2859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2860 am__include=include
2861 am__quote=
2862 _am_result=GNU
2864 # Now try BSD make style include.
2865 if test "$am__include" = "#"; then
2866 echo '.include "confinc"' > confmf
2867 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2868 am__include=.include
2869 am__quote="\""
2870 _am_result=BSD
2875 echo "$as_me:$LINENO: result: $_am_result" >&5
2876 echo "${ECHO_T}$_am_result" >&6
2877 rm -f confinc confmf
2879 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2880 if test "${enable_dependency_tracking+set}" = set; then
2881 enableval="$enable_dependency_tracking"
2884 if test "x$enable_dependency_tracking" != xno; then
2885 am_depcomp="$ac_aux_dir/depcomp"
2886 AMDEPBACKSLASH='\'
2890 if test "x$enable_dependency_tracking" != xno; then
2891 AMDEP_TRUE=
2892 AMDEP_FALSE='#'
2893 else
2894 AMDEP_TRUE='#'
2895 AMDEP_FALSE=
2901 depcc="$CC" am_compiler_list=
2903 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2904 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2905 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2909 # We make a subdir and do the tests there. Otherwise we can end up
2910 # making bogus files that we don't know about and never remove. For
2911 # instance it was reported that on HP-UX the gcc test will end up
2912 # making a dummy file named `D' -- because `-MD' means `put the output
2913 # in D'.
2914 mkdir conftest.dir
2915 # Copy depcomp to subdir because otherwise we won't find it if we're
2916 # using a relative directory.
2917 cp "$am_depcomp" conftest.dir
2918 cd conftest.dir
2919 # We will build objects and dependencies in a subdirectory because
2920 # it helps to detect inapplicable dependency modes. For instance
2921 # both Tru64's cc and ICC support -MD to output dependencies as a
2922 # side effect of compilation, but ICC will put the dependencies in
2923 # the current directory while Tru64 will put them in the object
2924 # directory.
2925 mkdir sub
2927 am_cv_CC_dependencies_compiler_type=none
2928 if test "$am_compiler_list" = ""; then
2929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2931 for depmode in $am_compiler_list; do
2932 # Setup a source with many dependencies, because some compilers
2933 # like to wrap large dependency lists on column 80 (with \), and
2934 # we should not choose a depcomp mode which is confused by this.
2936 # We need to recreate these files for each test, as the compiler may
2937 # overwrite some of them when testing with obscure command lines.
2938 # This happens at least with the AIX C compiler.
2939 : > sub/conftest.c
2940 for i in 1 2 3 4 5 6; do
2941 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2942 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2943 # Solaris 8's {/usr,}/bin/sh.
2944 touch sub/conftst$i.h
2945 done
2946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2948 case $depmode in
2949 nosideeffect)
2950 # after this tag, mechanisms are not by side-effect, so they'll
2951 # only be used when explicitly requested
2952 if test "x$enable_dependency_tracking" = xyes; then
2953 continue
2954 else
2955 break
2958 none) break ;;
2959 esac
2960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961 # mode. It turns out that the SunPro C++ compiler does not properly
2962 # handle `-M -o', and we need to detect this.
2963 if depmode=$depmode \
2964 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2966 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2967 >/dev/null 2>conftest.err &&
2968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2969 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2971 # icc doesn't choke on unknown options, it will just issue warnings
2972 # or remarks (even with -Werror). So we grep stderr for any message
2973 # that says an option was ignored or not supported.
2974 # When given -MP, icc 7.0 and 7.1 complain thusly:
2975 # icc: Command line warning: ignoring option '-M'; no argument required
2976 # The diagnosis changed in icc 8.0:
2977 # icc: Command line remark: option '-MP' not supported
2978 if (grep 'ignoring option' conftest.err ||
2979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2980 am_cv_CC_dependencies_compiler_type=$depmode
2981 break
2984 done
2986 cd ..
2987 rm -rf conftest.dir
2988 else
2989 am_cv_CC_dependencies_compiler_type=none
2993 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2994 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2995 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3000 test "x$enable_dependency_tracking" != xno \
3001 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3002 am__fastdepCC_TRUE=
3003 am__fastdepCC_FALSE='#'
3004 else
3005 am__fastdepCC_TRUE='#'
3006 am__fastdepCC_FALSE=
3014 # By default we simply use the C compiler to build assembly code.
3016 test "${CCAS+set}" = set || CCAS=$CC
3017 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3021 if test "x$CC" != xcc; then
3022 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3023 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3024 else
3025 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3026 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3028 set dummy $CC; ac_cc=`echo $2 |
3029 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3030 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3041 main ()
3045 return 0;
3047 _ACEOF
3048 # Make sure it works both with $CC and with simple cc.
3049 # We do the test twice because some compilers refuse to overwrite an
3050 # existing .o file with -o, though they will create one.
3051 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3052 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); };
3062 then
3063 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3064 if test "x$CC" != xcc; then
3065 # Test first that cc exists at all.
3066 if { ac_try='cc -c conftest.$ac_ext >&5'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3073 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); };
3083 then
3084 # cc works too.
3086 else
3087 # cc exists but doesn't like -o.
3088 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3092 else
3093 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3095 rm -f conftest*
3098 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3099 echo "$as_me:$LINENO: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3105 cat >>confdefs.h <<\_ACEOF
3106 #define NO_MINUS_C_MINUS_O 1
3107 _ACEOF
3111 # FIXME: we rely on the cache variable name because
3112 # there is no other way.
3113 set dummy $CC
3114 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3115 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3116 # Losing compiler, so override with the script.
3117 # FIXME: It is wrong to rewrite CC.
3118 # But if we don't then we get into trouble of one sort or another.
3119 # A longer-term fix would be to have automake use am__CC in this case,
3120 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3121 CC="$am_aux_dir/compile $CC"
3124 # Check whether --enable-shared or --disable-shared was given.
3125 if test "${enable_shared+set}" = set; then
3126 enableval="$enable_shared"
3127 p=${PACKAGE-default}
3128 case $enableval in
3129 yes) enable_shared=yes ;;
3130 no) enable_shared=no ;;
3132 enable_shared=no
3133 # Look at the argument we got. We use all the common list separators.
3134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3135 for pkg in $enableval; do
3136 if test "X$pkg" = "X$p"; then
3137 enable_shared=yes
3139 done
3140 IFS="$ac_save_ifs"
3142 esac
3143 else
3144 enable_shared=yes
3146 # Check whether --enable-static or --disable-static was given.
3147 if test "${enable_static+set}" = set; then
3148 enableval="$enable_static"
3149 p=${PACKAGE-default}
3150 case $enableval in
3151 yes) enable_static=yes ;;
3152 no) enable_static=no ;;
3154 enable_static=no
3155 # Look at the argument we got. We use all the common list separators.
3156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3157 for pkg in $enableval; do
3158 if test "X$pkg" = "X$p"; then
3159 enable_static=yes
3161 done
3162 IFS="$ac_save_ifs"
3164 esac
3165 else
3166 enable_static=yes
3168 # Check whether --enable-fast-install or --disable-fast-install was given.
3169 if test "${enable_fast_install+set}" = set; then
3170 enableval="$enable_fast_install"
3171 p=${PACKAGE-default}
3172 case $enableval in
3173 yes) enable_fast_install=yes ;;
3174 no) enable_fast_install=no ;;
3176 enable_fast_install=no
3177 # Look at the argument we got. We use all the common list separators.
3178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3179 for pkg in $enableval; do
3180 if test "X$pkg" = "X$p"; then
3181 enable_fast_install=yes
3183 done
3184 IFS="$ac_save_ifs"
3186 esac
3187 else
3188 enable_fast_install=yes
3191 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3192 if test "${with_gnu_ld+set}" = set; then
3193 withval="$with_gnu_ld"
3194 test "$withval" = no || with_gnu_ld=yes
3195 else
3196 with_gnu_ld=no
3198 ac_prog=ld
3199 if test "$GCC" = yes; then
3200 # Check if gcc -print-prog-name=ld gives a path.
3201 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3203 case $host in
3204 *-*-mingw*)
3205 # gcc leaves a trailing carriage return which upsets mingw
3206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3209 esac
3210 case $ac_prog in
3211 # Accept absolute paths.
3212 [\\/]* | [A-Za-z]:[\\/]*)
3213 re_direlt='/[^/][^/]*/\.\./'
3214 # Canonicalize the path of ld
3215 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3216 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3217 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3218 done
3219 test -z "$LD" && LD="$ac_prog"
3222 # If it fails, then pretend we aren't using GCC.
3223 ac_prog=ld
3226 # If it is relative, then search for the first ld in PATH.
3227 with_gnu_ld=unknown
3229 esac
3230 elif test "$with_gnu_ld" = yes; then
3231 echo "$as_me:$LINENO: checking for GNU ld" >&5
3232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3233 else
3234 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3237 if test "${lt_cv_path_LD+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 if test -z "$LD"; then
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3242 for ac_dir in $PATH; do
3243 test -z "$ac_dir" && ac_dir=.
3244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3245 lt_cv_path_LD="$ac_dir/$ac_prog"
3246 # Check to see if the program is GNU ld. I'd rather use --version,
3247 # but apparently some GNU ld's only accept -v.
3248 # Break only if it was the GNU/non-GNU ld that we prefer.
3249 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3250 test "$with_gnu_ld" != no && break
3251 else
3252 test "$with_gnu_ld" != yes && break
3255 done
3256 IFS="$ac_save_ifs"
3257 else
3258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3262 LD="$lt_cv_path_LD"
3263 if test -n "$LD"; then
3264 echo "$as_me:$LINENO: result: $LD" >&5
3265 echo "${ECHO_T}$LD" >&6
3266 else
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3272 { (exit 1); exit 1; }; }
3273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3280 lt_cv_prog_gnu_ld=yes
3281 else
3282 lt_cv_prog_gnu_ld=no
3285 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3287 with_gnu_ld=$lt_cv_prog_gnu_ld
3290 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3292 if test "${lt_cv_ld_reload_flag+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 lt_cv_ld_reload_flag='-r'
3297 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3299 reload_flag=$lt_cv_ld_reload_flag
3300 test -n "$reload_flag" && reload_flag=" $reload_flag"
3302 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3304 if test "${lt_cv_path_NM+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if test -n "$NM"; then
3308 # Let the user override the test.
3309 lt_cv_path_NM="$NM"
3310 else
3311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3312 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3313 test -z "$ac_dir" && ac_dir=.
3314 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3315 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3316 # Check to see if the nm accepts a BSD-compat flag.
3317 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3318 # nm: unknown option "B" ignored
3319 # Tru64's nm complains that /dev/null is an invalid object file
3320 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3321 lt_cv_path_NM="$tmp_nm -B"
3322 break
3323 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3324 lt_cv_path_NM="$tmp_nm -p"
3325 break
3326 else
3327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3328 continue # so that we can try to find one that supports BSD flags
3331 done
3332 IFS="$ac_save_ifs"
3333 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3337 NM="$lt_cv_path_NM"
3338 echo "$as_me:$LINENO: result: $NM" >&5
3339 echo "${ECHO_T}$NM" >&6
3341 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3343 LN_S=$as_ln_s
3344 if test "$LN_S" = "ln -s"; then
3345 echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6
3347 else
3348 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3349 echo "${ECHO_T}no, using $LN_S" >&6
3352 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3353 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3354 if test "${lt_cv_deplibs_check_method+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 lt_cv_file_magic_cmd='$MAGIC_CMD'
3358 lt_cv_file_magic_test_file=
3359 lt_cv_deplibs_check_method='unknown'
3360 # Need to set the preceding variable on all platforms that support
3361 # interlibrary dependencies.
3362 # 'none' -- dependencies not supported.
3363 # `unknown' -- same as none, but documents that we really don't know.
3364 # 'pass_all' -- all dependencies passed with no checks.
3365 # 'test_compile' -- check by making test program.
3366 # 'file_magic [regex]' -- check by looking for files in library path
3367 # which responds to the $file_magic_cmd with a given egrep regex.
3368 # If you have `file' or equivalent on your system and you're not sure
3369 # whether `pass_all' will *always* work, you probably want this one.
3371 case $host_os in
3372 aix*)
3373 lt_cv_deplibs_check_method=pass_all
3376 beos*)
3377 lt_cv_deplibs_check_method=pass_all
3380 bsdi4*)
3381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3382 lt_cv_file_magic_cmd='/usr/bin/file -L'
3383 lt_cv_file_magic_test_file=/shlib/libc.so
3386 cygwin* | mingw* |pw32*)
3387 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3388 lt_cv_file_magic_cmd='$OBJDUMP -f'
3391 darwin* | rhapsody*)
3392 # this will be overwritten by pass_all, but leave it in just in case
3393 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3394 lt_cv_file_magic_cmd='/usr/bin/file -L'
3395 case "$host_os" in
3396 rhapsody* | darwin1.012)
3397 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3399 *) # Darwin 1.3 on
3400 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3402 esac
3403 lt_cv_deplibs_check_method=pass_all
3406 freebsd* | kfreebsd*-gnu)
3407 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3408 case $host_cpu in
3409 i*86 )
3410 # Not sure whether the presence of OpenBSD here was a mistake.
3411 # Let's accept both of them until this is cleared up.
3412 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3413 lt_cv_file_magic_cmd=/usr/bin/file
3414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3416 esac
3417 else
3418 lt_cv_deplibs_check_method=pass_all
3422 gnu*)
3423 lt_cv_deplibs_check_method=pass_all
3426 hpux10.20*|hpux11*)
3427 case $host_cpu in
3428 hppa*)
3429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3430 lt_cv_file_magic_cmd=/usr/bin/file
3431 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3433 ia64*)
3434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3435 lt_cv_file_magic_cmd=/usr/bin/file
3436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3438 esac
3441 irix5* | irix6*)
3442 case $host_os in
3443 irix5*)
3444 # this will be overridden with pass_all, but let us keep it just in case
3445 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3448 case $LD in
3449 *-32|*"-32 ") libmagic=32-bit;;
3450 *-n32|*"-n32 ") libmagic=N32;;
3451 *-64|*"-64 ") libmagic=64-bit;;
3452 *) libmagic=never-match;;
3453 esac
3454 # this will be overridden with pass_all, but let us keep it just in case
3455 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3457 esac
3458 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3459 lt_cv_deplibs_check_method=pass_all
3462 # This must be Linux ELF.
3463 linux-gnu*)
3464 lt_cv_deplibs_check_method=pass_all
3467 netbsd* | knetbsd*-gnu)
3468 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3469 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3470 else
3471 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3475 newsos6)
3476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3477 lt_cv_file_magic_cmd=/usr/bin/file
3478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3481 osf3* | osf4* | osf5*)
3482 # this will be overridden with pass_all, but let us keep it just in case
3483 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3484 lt_cv_file_magic_test_file=/shlib/libc.so
3485 lt_cv_deplibs_check_method=pass_all
3488 sco3.2v5*)
3489 lt_cv_deplibs_check_method=pass_all
3492 solaris*)
3493 lt_cv_deplibs_check_method=pass_all
3494 lt_cv_file_magic_test_file=/lib/libc.so
3497 sysv5uw[78]* | sysv4*uw2*)
3498 lt_cv_deplibs_check_method=pass_all
3501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3502 case $host_vendor in
3503 ncr)
3504 lt_cv_deplibs_check_method=pass_all
3506 motorola)
3507 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]'
3508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3510 esac
3512 esac
3515 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3516 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3517 file_magic_cmd=$lt_cv_file_magic_cmd
3518 deplibs_check_method=$lt_cv_deplibs_check_method
3524 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3526 # find the maximum length of command line arguments
3527 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3528 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3529 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3533 teststring="ABCD"
3535 case $build_os in
3536 msdosdjgpp*)
3537 # On DJGPP, this test can blow up pretty badly due to problems in libc
3538 # (any single argument exceeding 2000 bytes causes a buffer overrun
3539 # during glob expansion). Even if it were fixed, the result of this
3540 # check would be larger than it should be.
3541 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3544 cygwin* | mingw*)
3545 # On Win9x/ME, this test blows up -- it succeeds, but takes
3546 # about 5 minutes as the teststring grows exponentially.
3547 # Worse, since 9x/ME are not pre-emptively multitasking,
3548 # you end up with a "frozen" computer, even though with patience
3549 # the test eventually succeeds (with a max line length of 256k).
3550 # Instead, let's just punt: use the minimum linelength reported by
3551 # all of the supported platforms: 8192 (on NT/2K/XP).
3552 lt_cv_sys_max_cmd_len=8192;
3555 amigaos*)
3556 # On AmigaOS with pdksh, this test takes hours, literally.
3557 # So we just punt and use a minimum line length of 8192.
3558 lt_cv_sys_max_cmd_len=8192;
3561 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3562 # This has been around since 386BSD, at least. Likely further.
3563 if test -x /sbin/sysctl; then
3564 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3565 elif test -x /usr/sbin/sysctl; then
3566 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3567 else
3568 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3570 # And add a safety zone
3571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3574 esac
3578 if test -n "$lt_cv_sys_max_cmd_len" ; then
3579 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3580 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3581 else
3582 echo "$as_me:$LINENO: result: none" >&5
3583 echo "${ECHO_T}none" >&6
3587 # Only perform the check for file, if the check method requires it
3588 case $deplibs_check_method in
3589 file_magic*)
3590 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3591 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3592 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 case $MAGIC_CMD in
3598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3600 ?:/*)
3601 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3604 ac_save_MAGIC_CMD="$MAGIC_CMD"
3605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3606 ac_dummy="/usr/bin:$PATH"
3607 for ac_dir in $ac_dummy; do
3608 test -z "$ac_dir" && ac_dir=.
3609 if test -f $ac_dir/${ac_tool_prefix}file; then
3610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3611 if test -n "$file_magic_test_file"; then
3612 case $deplibs_check_method in
3613 "file_magic "*)
3614 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3617 egrep "$file_magic_regex" > /dev/null; then
3619 else
3620 cat <<EOF 1>&2
3622 *** Warning: the command libtool uses to detect shared libraries,
3623 *** $file_magic_cmd, produces output that libtool cannot recognize.
3624 *** The result is that libtool may fail to recognize shared libraries
3625 *** as such. This will affect the creation of libtool libraries that
3626 *** depend on shared libraries, but programs linked with such libtool
3627 *** libraries will work regardless of this problem. Nevertheless, you
3628 *** may want to report the problem to your system manager and/or to
3629 *** bug-libtool@gnu.org
3632 fi ;;
3633 esac
3635 break
3637 done
3638 IFS="$ac_save_ifs"
3639 MAGIC_CMD="$ac_save_MAGIC_CMD"
3641 esac
3644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3645 if test -n "$MAGIC_CMD"; then
3646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3647 echo "${ECHO_T}$MAGIC_CMD" >&6
3648 else
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3653 if test -z "$lt_cv_path_MAGIC_CMD"; then
3654 if test -n "$ac_tool_prefix"; then
3655 echo "$as_me:$LINENO: checking for file" >&5
3656 echo $ECHO_N "checking for file... $ECHO_C" >&6
3657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 case $MAGIC_CMD in
3662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3664 ?:/*)
3665 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3668 ac_save_MAGIC_CMD="$MAGIC_CMD"
3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3670 ac_dummy="/usr/bin:$PATH"
3671 for ac_dir in $ac_dummy; do
3672 test -z "$ac_dir" && ac_dir=.
3673 if test -f $ac_dir/file; then
3674 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3675 if test -n "$file_magic_test_file"; then
3676 case $deplibs_check_method in
3677 "file_magic "*)
3678 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3681 egrep "$file_magic_regex" > /dev/null; then
3683 else
3684 cat <<EOF 1>&2
3686 *** Warning: the command libtool uses to detect shared libraries,
3687 *** $file_magic_cmd, produces output that libtool cannot recognize.
3688 *** The result is that libtool may fail to recognize shared libraries
3689 *** as such. This will affect the creation of libtool libraries that
3690 *** depend on shared libraries, but programs linked with such libtool
3691 *** libraries will work regardless of this problem. Nevertheless, you
3692 *** may want to report the problem to your system manager and/or to
3693 *** bug-libtool@gnu.org
3696 fi ;;
3697 esac
3699 break
3701 done
3702 IFS="$ac_save_ifs"
3703 MAGIC_CMD="$ac_save_MAGIC_CMD"
3705 esac
3708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3709 if test -n "$MAGIC_CMD"; then
3710 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3711 echo "${ECHO_T}$MAGIC_CMD" >&6
3712 else
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3717 else
3718 MAGIC_CMD=:
3724 esac
3726 if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_RANLIB+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if test -n "$RANLIB"; then
3735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3753 RANLIB=$ac_cv_prog_RANLIB
3754 if test -n "$RANLIB"; then
3755 echo "$as_me:$LINENO: result: $RANLIB" >&5
3756 echo "${ECHO_T}$RANLIB" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3763 if test -z "$ac_cv_prog_RANLIB"; then
3764 ac_ct_RANLIB=$RANLIB
3765 # Extract the first word of "ranlib", so it can be a program name with args.
3766 set dummy ranlib; ac_word=$2
3767 echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 if test -n "$ac_ct_RANLIB"; then
3773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_ac_ct_RANLIB="ranlib"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3786 done
3787 done
3789 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3793 if test -n "$ac_ct_RANLIB"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3795 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 RANLIB=$ac_ct_RANLIB
3802 else
3803 RANLIB="$ac_cv_prog_RANLIB"
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}strip; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_STRIP+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$STRIP"; then
3815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3833 STRIP=$ac_cv_prog_STRIP
3834 if test -n "$STRIP"; then
3835 echo "$as_me:$LINENO: result: $STRIP" >&5
3836 echo "${ECHO_T}$STRIP" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_STRIP"; then
3844 ac_ct_STRIP=$STRIP
3845 # Extract the first word of "strip", so it can be a program name with args.
3846 set dummy strip; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$ac_ct_STRIP"; then
3853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_STRIP="strip"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3869 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3873 if test -n "$ac_ct_STRIP"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3875 echo "${ECHO_T}$ac_ct_STRIP" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 STRIP=$ac_ct_STRIP
3882 else
3883 STRIP="$ac_cv_prog_STRIP"
3887 # Check for any special flags to pass to ltconfig.
3888 libtool_flags="--cache-file=$cache_file"
3889 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3890 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3891 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3892 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3893 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3896 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3897 if test "${enable_libtool_lock+set}" = set; then
3898 enableval="$enable_libtool_lock"
3901 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3902 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3905 # Check whether --with-pic or --without-pic was given.
3906 if test "${with_pic+set}" = set; then
3907 withval="$with_pic"
3908 pic_mode="$withval"
3909 else
3910 pic_mode=default
3912 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3913 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3915 # Some flags need to be propagated to the compiler or linker for good
3916 # libtool support.
3917 case $host in
3918 *-*-irix6*)
3919 # Find out which ABI we are using.
3920 echo '#line 3920 "configure"' > conftest.$ac_ext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; then
3926 if test "$lt_cv_prog_gnu_ld" = yes; then
3927 case `/usr/bin/file conftest.$ac_objext` in
3928 *32-bit*)
3929 LD="${LD-ld} -melf32bsmip"
3931 *N32*)
3932 LD="${LD-ld} -melf32bmipn32"
3934 *64-bit*)
3935 LD="${LD-ld} -melf64bmip"
3937 esac
3938 else
3939 case `/usr/bin/file conftest.$ac_objext` in
3940 *32-bit*)
3941 LD="${LD-ld} -32"
3943 *N32*)
3944 LD="${LD-ld} -n32"
3946 *64-bit*)
3947 LD="${LD-ld} -64"
3949 esac
3952 rm -rf conftest*
3955 ia64-*-hpux*)
3956 # Find out which ABI we are using.
3957 echo 'int i;' > conftest.$ac_ext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; then
3963 case "`/usr/bin/file conftest.o`" in
3964 *ELF-32*)
3965 HPUX_IA64_MODE="32"
3967 *ELF-64*)
3968 HPUX_IA64_MODE="64"
3970 esac
3972 rm -rf conftest*
3975 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3976 # Find out which ABI we are using.
3977 echo 'int i;' > conftest.$ac_ext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; then
3983 case "`/usr/bin/file conftest.o`" in
3984 *32-bit*)
3985 case $host in
3986 x86_64-*linux*)
3987 LD="${LD-ld} -m elf_i386"
3989 ppc64-*linux*|powerpc64-*linux*)
3990 LD="${LD-ld} -m elf32ppclinux"
3992 s390x-*linux*)
3993 LD="${LD-ld} -m elf_s390"
3995 sparc64-*linux*)
3996 LD="${LD-ld} -m elf32_sparc"
3998 esac
4000 *64-bit*)
4001 case $host in
4002 x86_64-*linux*)
4003 LD="${LD-ld} -m elf_x86_64"
4005 ppc*-*linux*|powerpc*-*linux*)
4006 LD="${LD-ld} -m elf64ppc"
4008 s390*-*linux*)
4009 LD="${LD-ld} -m elf64_s390"
4011 sparc*-*linux*)
4012 LD="${LD-ld} -m elf64_sparc"
4014 esac
4016 esac
4018 rm -rf conftest*
4021 *-*-sco3.2v5*)
4022 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4023 SAVE_CFLAGS="$CFLAGS"
4024 CFLAGS="$CFLAGS -belf"
4025 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4026 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4027 if test "${lt_cv_cc_needs_belf+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 rm -f conftest.$ac_objext conftest$ac_exeext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055 (eval $ac_link) 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_c_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest$ac_exeext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 lt_cv_cc_needs_belf=yes
4076 else
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 lt_cv_cc_needs_belf=no
4082 rm -f conftest.err conftest.$ac_objext \
4083 conftest$ac_exeext conftest.$ac_ext
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4092 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4093 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4094 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4095 CFLAGS="$SAVE_CFLAGS"
4100 esac
4103 # Save cache, so that ltconfig can load it
4104 cat >confcache <<\_ACEOF
4105 # This file is a shell script that caches the results of configure
4106 # tests run on this system so they can be shared between configure
4107 # scripts and configure runs, see configure's option --config-cache.
4108 # It is not useful on other systems. If it contains results you don't
4109 # want to keep, you may remove or edit it.
4111 # config.status only pays attention to the cache file if you give it
4112 # the --recheck option to rerun configure.
4114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4116 # following values.
4118 _ACEOF
4120 # The following way of writing the cache mishandles newlines in values,
4121 # but we know of no workaround that is simple, portable, and efficient.
4122 # So, don't put newlines in cache variables' values.
4123 # Ultrix sh set writes to stderr and can't be redirected directly,
4124 # and sets the high bit in the cache file unless we assign to the vars.
4126 (set) 2>&1 |
4127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4128 *ac_space=\ *)
4129 # `set' does not quote correctly, so add quotes (double-quote
4130 # substitution turns \\\\ into \\, and sed turns \\ into \).
4131 sed -n \
4132 "s/'/'\\\\''/g;
4133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4136 # `set' quotes correctly as required by POSIX, so do not add quotes.
4137 sed -n \
4138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4140 esac;
4142 sed '
4143 t clear
4144 : clear
4145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4146 t end
4147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4148 : end' >>confcache
4149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4150 if test -w $cache_file; then
4151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4152 cat confcache >$cache_file
4153 else
4154 echo "not updating unwritable cache $cache_file"
4157 rm -f confcache
4159 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4160 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4161 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4162 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4163 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4164 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4165 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4166 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4167 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4168 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4169 echo "$as_me: error: libtool configure failed" >&2;}
4170 { (exit 1); exit 1; }; }
4172 # Reload cache, that may have been modified by ltconfig
4173 if test -r "$cache_file"; then
4174 # Some versions of bash will fail to source /dev/null (special
4175 # files actually), so we avoid doing that.
4176 if test -f "$cache_file"; then
4177 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4178 echo "$as_me: loading cache $cache_file" >&6;}
4179 case $cache_file in
4180 [\\/]* | ?:[\\/]* ) . $cache_file;;
4181 *) . ./$cache_file;;
4182 esac
4184 else
4185 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4186 echo "$as_me: creating cache $cache_file" >&6;}
4187 >$cache_file
4191 # This can be used to rebuild libtool when needed
4192 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4194 # Always use our own libtool.
4195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4197 # Redirect the config.log output again, so that the ltconfig log is not
4198 # clobbered by the next message.
4199 exec 5>>./config.log
4207 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4208 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4209 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4210 if test "${enable_maintainer_mode+set}" = set; then
4211 enableval="$enable_maintainer_mode"
4212 USE_MAINTAINER_MODE=$enableval
4213 else
4214 USE_MAINTAINER_MODE=no
4216 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4217 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4220 if test $USE_MAINTAINER_MODE = yes; then
4221 MAINTAINER_MODE_TRUE=
4222 MAINTAINER_MODE_FALSE='#'
4223 else
4224 MAINTAINER_MODE_TRUE='#'
4225 MAINTAINER_MODE_FALSE=
4228 MAINT=$MAINTAINER_MODE_TRUE
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4241 CPP=
4243 if test -z "$CPP"; then
4244 if test "${ac_cv_prog_CPP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 # Double quotes because CPP needs to be expanded
4248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4250 ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
4257 # On the NeXT, cc -E runs the code through the compiler's parser,
4258 # not just through cpp. "Syntax error" is here to catch this case.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270 Syntax error
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_c_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283 else
4284 ac_cpp_err=
4286 else
4287 ac_cpp_err=yes
4289 if test -z "$ac_cpp_err"; then
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Broken: fails on valid input.
4296 continue
4298 rm -f conftest.err conftest.$ac_ext
4300 # OK, works on sane cases. Now check whether non-existent headers
4301 # can be detected and how.
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 #include <ac_nonexistent.h>
4309 _ACEOF
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev/null; then
4318 if test -s conftest.err; then
4319 ac_cpp_err=$ac_c_preproc_warn_flag
4320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321 else
4322 ac_cpp_err=
4324 else
4325 ac_cpp_err=yes
4327 if test -z "$ac_cpp_err"; then
4328 # Broken: success on invalid input.
4329 continue
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 # Passes both tests.
4335 ac_preproc_ok=:
4336 break
4338 rm -f conftest.err conftest.$ac_ext
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4344 break
4347 done
4348 ac_cv_prog_CPP=$CPP
4351 CPP=$ac_cv_prog_CPP
4352 else
4353 ac_cv_prog_CPP=$CPP
4355 echo "$as_me:$LINENO: result: $CPP" >&5
4356 echo "${ECHO_T}$CPP" >&6
4357 ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377 Syntax error
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_c_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390 else
4391 ac_cpp_err=
4393 else
4394 ac_cpp_err=yes
4396 if test -z "$ac_cpp_err"; then
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 # Broken: fails on valid input.
4403 continue
4405 rm -f conftest.err conftest.$ac_ext
4407 # OK, works on sane cases. Now check whether non-existent headers
4408 # can be detected and how.
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <ac_nonexistent.h>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428 else
4429 ac_cpp_err=
4431 else
4432 ac_cpp_err=yes
4434 if test -z "$ac_cpp_err"; then
4435 # Broken: success on invalid input.
4436 continue
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4445 rm -f conftest.err conftest.$ac_ext
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then
4452 else
4453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4456 See \`config.log' for more details." >&2;}
4457 { (exit 1); exit 1; }; }
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 echo "$as_me:$LINENO: checking for egrep" >&5
4468 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4469 if test "${ac_cv_prog_egrep+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4473 then ac_cv_prog_egrep='grep -E'
4474 else ac_cv_prog_egrep='egrep'
4477 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4478 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4479 EGREP=$ac_cv_prog_egrep
4482 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4484 if test "${ac_cv_header_stdc+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <stdlib.h>
4494 #include <stdarg.h>
4495 #include <string.h>
4496 #include <float.h>
4499 main ()
4503 return 0;
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_header_stdc=yes
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 ac_cv_header_stdc=no
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 if test $ac_cv_header_stdc = yes; then
4538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <string.h>
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 $EGREP "memchr" >/dev/null 2>&1; then
4551 else
4552 ac_cv_header_stdc=no
4554 rm -f conftest*
4558 if test $ac_cv_header_stdc = yes; then
4559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <stdlib.h>
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 $EGREP "free" >/dev/null 2>&1; then
4572 else
4573 ac_cv_header_stdc=no
4575 rm -f conftest*
4579 if test $ac_cv_header_stdc = yes; then
4580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4581 if test "$cross_compiling" = yes; then
4583 else
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <ctype.h>
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594 #else
4595 # define ISLOWER(c) \
4596 (('a' <= (c) && (c) <= 'i') \
4597 || ('j' <= (c) && (c) <= 'r') \
4598 || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600 #endif
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4604 main ()
4606 int i;
4607 for (i = 0; i < 256; i++)
4608 if (XOR (islower (i), ISLOWER (i))
4609 || toupper (i) != TOUPPER (i))
4610 exit(2);
4611 exit (0);
4613 _ACEOF
4614 rm -f conftest$ac_exeext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616 (eval $ac_link) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4626 else
4627 echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ( exit $ac_status )
4632 ac_cv_header_stdc=no
4634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4640 if test $ac_cv_header_stdc = yes; then
4642 cat >>confdefs.h <<\_ACEOF
4643 #define STDC_HEADERS 1
4644 _ACEOF
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659 inttypes.h stdint.h unistd.h
4661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 $ac_includes_default
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (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); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
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 eval "$as_ac_Header=yes"
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 eval "$as_ac_Header=no"
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4717 done
4721 for ac_header in sys/mman.h
4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725 echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732 else
4733 # Is the header compilable?
4734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -z "$ac_c_werror_flag"
4755 || test ! -s conftest.err'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_header_compiler=yes
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_header_compiler=no
4774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h. */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } >/dev/null; then
4797 if test -s conftest.err; then
4798 ac_cpp_err=$ac_c_preproc_warn_flag
4799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800 else
4801 ac_cpp_err=
4803 else
4804 ac_cpp_err=yes
4806 if test -z "$ac_cpp_err"; then
4807 ac_header_preproc=yes
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_header_preproc=no
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4818 # So? What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820 yes:no: )
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825 ac_header_preproc=yes
4827 no:yes:* )
4828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4841 cat <<\_ASBOX
4842 ## ------------------------------------------- ##
4843 ## Report this to http://gcc.gnu.org/bugs.html ##
4844 ## ------------------------------------------- ##
4845 _ASBOX
4847 sed "s/^/$as_me: WARNING: /" >&2
4849 esac
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 eval "$as_ac_Header=\$ac_header_preproc"
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 _ACEOF
4868 done
4871 for ac_func in mmap
4873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4874 echo "$as_me:$LINENO: checking for $ac_func" >&5
4875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4876 if eval "test \"\${$as_ac_var+set}\" = set"; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4887 #define $ac_func innocuous_$ac_func
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func (); below.
4891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 <limits.h> exists even on freestanding compilers. */
4894 #ifdef __STDC__
4895 # include <limits.h>
4896 #else
4897 # include <assert.h>
4898 #endif
4900 #undef $ac_func
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 #ifdef __cplusplus
4904 extern "C"
4906 #endif
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4909 char $ac_func ();
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 choke me
4915 #else
4916 char (*f) () = $ac_func;
4917 #endif
4918 #ifdef __cplusplus
4920 #endif
4923 main ()
4925 return f != $ac_func;
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 eval "$as_ac_var=yes"
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 eval "$as_ac_var=no"
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4964 if test `eval echo '${'$as_ac_var'}'` = yes; then
4965 cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4967 _ACEOF
4970 done
4973 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4974 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4975 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4976 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4981 else
4982 # Is the header compilable?
4983 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4984 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 $ac_includes_default
4992 #include <sys/mman.h>
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_header_compiler=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_header_compiler=no
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5025 echo "${ECHO_T}$ac_header_compiler" >&6
5027 # Is the header present?
5028 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5029 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include <sys/mman.h>
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null; then
5046 if test -s conftest.err; then
5047 ac_cpp_err=$ac_c_preproc_warn_flag
5048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5049 else
5050 ac_cpp_err=
5052 else
5053 ac_cpp_err=yes
5055 if test -z "$ac_cpp_err"; then
5056 ac_header_preproc=yes
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_header_preproc=no
5063 rm -f conftest.err conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5065 echo "${ECHO_T}$ac_header_preproc" >&6
5067 # So? What about this header?
5068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5069 yes:no: )
5070 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5071 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5073 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5074 ac_header_preproc=yes
5076 no:yes:* )
5077 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5078 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5080 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5082 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5084 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5086 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5088 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5090 cat <<\_ASBOX
5091 ## ------------------------------------------- ##
5092 ## Report this to http://gcc.gnu.org/bugs.html ##
5093 ## ------------------------------------------- ##
5094 _ASBOX
5096 sed "s/^/$as_me: WARNING: /" >&2
5098 esac
5099 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5100 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5101 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 ac_cv_header_sys_mman_h=$ac_header_preproc
5106 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5107 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5110 if test $ac_cv_header_sys_mman_h = yes; then
5111 libffi_header_sys_mman_h=yes
5112 else
5113 libffi_header_sys_mman_h=no
5117 echo "$as_me:$LINENO: checking for mmap" >&5
5118 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5119 if test "${ac_cv_func_mmap+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5130 #define mmap innocuous_mmap
5132 /* System header to define __stub macros and hopefully few prototypes,
5133 which can conflict with char mmap (); below.
5134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 <limits.h> exists even on freestanding compilers. */
5137 #ifdef __STDC__
5138 # include <limits.h>
5139 #else
5140 # include <assert.h>
5141 #endif
5143 #undef mmap
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 #ifdef __cplusplus
5147 extern "C"
5149 #endif
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152 char mmap ();
5153 /* The GNU C library defines this for functions which it implements
5154 to always fail with ENOSYS. Some functions are actually named
5155 something starting with __ and the normal name is an alias. */
5156 #if defined (__stub_mmap) || defined (__stub___mmap)
5157 choke me
5158 #else
5159 char (*f) () = mmap;
5160 #endif
5161 #ifdef __cplusplus
5163 #endif
5166 main ()
5168 return f != mmap;
5170 return 0;
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag"
5183 || test ! -s conftest.err'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; } &&
5189 { ac_try='test -s conftest$ac_exeext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_func_mmap=yes
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 ac_cv_func_mmap=no
5202 rm -f conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5206 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5207 if test $ac_cv_func_mmap = yes; then
5208 libffi_func_mmap=yes
5209 else
5210 libffi_func_mmap=no
5213 if test "$libffi_header_sys_mman_h" != yes \
5214 || test "$libffi_func_mmap" != yes; then
5215 ac_cv_func_mmap_file=no
5216 ac_cv_func_mmap_dev_zero=no
5217 ac_cv_func_mmap_anon=no
5218 else
5219 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5220 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5221 if test "${ac_cv_func_mmap_file+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 # Add a system to this blacklist if
5225 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5226 # memory area containing the same data that you'd get if you applied
5227 # read() to the same fd. The only system known to have a problem here
5228 # is VMS, where text files have record structure.
5229 case "$host_os" in
5230 vms* | ultrix*)
5231 ac_cv_func_mmap_file=no ;;
5233 ac_cv_func_mmap_file=yes;;
5234 esac
5236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5237 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5238 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5239 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5240 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 # Add a system to this blacklist if it has mmap() but /dev/zero
5244 # does not exist, or if mmapping /dev/zero does not give anonymous
5245 # zeroed pages with both the following properties:
5246 # 1. If you map N consecutive pages in with one call, and then
5247 # unmap any subset of those pages, the pages that were not
5248 # explicitly unmapped remain accessible.
5249 # 2. If you map two adjacent blocks of memory and then unmap them
5250 # both at once, they must both go away.
5251 # Systems known to be in this category are Windows (all variants),
5252 # VMS, and Darwin.
5253 case "$host_os" in
5254 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5255 ac_cv_func_mmap_dev_zero=no ;;
5257 ac_cv_func_mmap_dev_zero=yes;;
5258 esac
5260 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5261 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5263 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5264 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5265 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5266 if test "${ac_cv_decl_map_anon+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <sys/types.h>
5276 #include <sys/mman.h>
5277 #include <unistd.h>
5279 #ifndef MAP_ANONYMOUS
5280 #define MAP_ANONYMOUS MAP_ANON
5281 #endif
5284 main ()
5286 int n = MAP_ANONYMOUS;
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_decl_map_anon=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_decl_map_anon=no
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5323 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5325 if test $ac_cv_decl_map_anon = no; then
5326 ac_cv_func_mmap_anon=no
5327 else
5328 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5329 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5330 if test "${ac_cv_func_mmap_anon+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5334 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5335 # doesn't give anonymous zeroed pages with the same properties listed
5336 # above for use of /dev/zero.
5337 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5338 case "$host_os" in
5339 vms* | cygwin* | pe | mingw* | sco* | udk* )
5340 ac_cv_func_mmap_anon=no ;;
5342 ac_cv_func_mmap_anon=yes;;
5343 esac
5345 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5346 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5350 if test $ac_cv_func_mmap_file = yes; then
5352 cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_MMAP_FILE 1
5354 _ACEOF
5357 if test $ac_cv_func_mmap_dev_zero = yes; then
5359 cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_MMAP_DEV_ZERO 1
5361 _ACEOF
5364 if test $ac_cv_func_mmap_anon = yes; then
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_MMAP_ANON 1
5368 _ACEOF
5375 if test -d $srcdir/testsuite; then
5376 TESTSUBDIR_TRUE=
5377 TESTSUBDIR_FALSE='#'
5378 else
5379 TESTSUBDIR_TRUE='#'
5380 TESTSUBDIR_FALSE=
5384 TARGETDIR="unknown"
5385 case "$host" in
5386 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5387 i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
5388 i*86-*-solaris2.1[0-9]*) TARGET=X86_64; TARGETDIR=x86;;
5389 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5390 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5391 i*86-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
5392 i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5393 i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5394 i*86-*-rtems*) TARGET=X86; TARGETDIR=x86;;
5395 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5396 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5397 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5398 frv-*-*) TARGET=FRV; TARGETDIR=frv;;
5399 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5400 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5401 sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5402 sparc*-*-rtems*) TARGET=SPARC; TARGETDIR=sparc;;
5403 sparc64-*-linux* | sparc64-*-freebsd* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5404 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
5405 TARGET=ALPHA; TARGETDIR=alpha
5406 # Support 128-bit long double, changable via command-line switch.
5407 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
5409 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5410 m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
5411 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5412 mips64*-*);;
5413 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5414 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5415 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5416 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5417 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5418 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5419 powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;;
5420 powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;;
5421 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5422 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5423 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5424 arm*-*-rtems*) TARGET=ARM; TARGETDIR=arm;;
5425 cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
5426 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5427 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5428 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5429 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5430 sh-*-rtems*) TARGET=SH; TARGETDIR=sh;;
5431 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5432 hppa*-*-linux* | parisc*-*-linux*) TARGET=PA_LINUX; TARGETDIR=pa;;
5433 hppa*64-*-hpux*) TARGET=PA64_HPUX; TARGETDIR=pa;;
5434 hppa*-*-hpux*) TARGET=PA_HPUX; TARGETDIR=pa;;
5435 esac
5439 if test $TARGETDIR = unknown; then
5440 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5441 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5442 { (exit 1); exit 1; }; }
5447 if test x$TARGET = xMIPS_IRIX; then
5448 MIPS_IRIX_TRUE=
5449 MIPS_IRIX_FALSE='#'
5450 else
5451 MIPS_IRIX_TRUE='#'
5452 MIPS_IRIX_FALSE=
5457 if test x$TARGET = xMIPS_LINUX; then
5458 MIPS_LINUX_TRUE=
5459 MIPS_LINUX_FALSE='#'
5460 else
5461 MIPS_LINUX_TRUE='#'
5462 MIPS_LINUX_FALSE=
5467 if test x$TARGET = xSPARC; then
5468 SPARC_TRUE=
5469 SPARC_FALSE='#'
5470 else
5471 SPARC_TRUE='#'
5472 SPARC_FALSE=
5477 if test x$TARGET = xX86; then
5478 X86_TRUE=
5479 X86_FALSE='#'
5480 else
5481 X86_TRUE='#'
5482 X86_FALSE=
5487 if test x$TARGET = xX86_WIN32; then
5488 X86_WIN32_TRUE=
5489 X86_WIN32_FALSE='#'
5490 else
5491 X86_WIN32_TRUE='#'
5492 X86_WIN32_FALSE=
5497 if test x$TARGET = xX86_DARWIN; then
5498 X86_DARWIN_TRUE=
5499 X86_DARWIN_FALSE='#'
5500 else
5501 X86_DARWIN_TRUE='#'
5502 X86_DARWIN_FALSE=
5507 if test x$TARGET = xALPHA; then
5508 ALPHA_TRUE=
5509 ALPHA_FALSE='#'
5510 else
5511 ALPHA_TRUE='#'
5512 ALPHA_FALSE=
5517 if test x$TARGET = xIA64; then
5518 IA64_TRUE=
5519 IA64_FALSE='#'
5520 else
5521 IA64_TRUE='#'
5522 IA64_FALSE=
5527 if test x$TARGET = xM32R; then
5528 M32R_TRUE=
5529 M32R_FALSE='#'
5530 else
5531 M32R_TRUE='#'
5532 M32R_FALSE=
5537 if test x$TARGET = xM68K; then
5538 M68K_TRUE=
5539 M68K_FALSE='#'
5540 else
5541 M68K_TRUE='#'
5542 M68K_FALSE=
5547 if test x$TARGET = xPOWERPC; then
5548 POWERPC_TRUE=
5549 POWERPC_FALSE='#'
5550 else
5551 POWERPC_TRUE='#'
5552 POWERPC_FALSE=
5557 if test x$TARGET = xPOWERPC_AIX; then
5558 POWERPC_AIX_TRUE=
5559 POWERPC_AIX_FALSE='#'
5560 else
5561 POWERPC_AIX_TRUE='#'
5562 POWERPC_AIX_FALSE=
5567 if test x$TARGET = xPOWERPC_DARWIN; then
5568 POWERPC_DARWIN_TRUE=
5569 POWERPC_DARWIN_FALSE='#'
5570 else
5571 POWERPC_DARWIN_TRUE='#'
5572 POWERPC_DARWIN_FALSE=
5577 if test x$TARGET = xPOWERPC_FREEBSD; then
5578 POWERPC_FREEBSD_TRUE=
5579 POWERPC_FREEBSD_FALSE='#'
5580 else
5581 POWERPC_FREEBSD_TRUE='#'
5582 POWERPC_FREEBSD_FALSE=
5587 if test x$TARGET = xARM; then
5588 ARM_TRUE=
5589 ARM_FALSE='#'
5590 else
5591 ARM_TRUE='#'
5592 ARM_FALSE=
5597 if test x$TARGET = xLIBFFI_CRIS; then
5598 LIBFFI_CRIS_TRUE=
5599 LIBFFI_CRIS_FALSE='#'
5600 else
5601 LIBFFI_CRIS_TRUE='#'
5602 LIBFFI_CRIS_FALSE=
5607 if test x$TARGET = xFRV; then
5608 FRV_TRUE=
5609 FRV_FALSE='#'
5610 else
5611 FRV_TRUE='#'
5612 FRV_FALSE=
5617 if test x$TARGET = xS390; then
5618 S390_TRUE=
5619 S390_FALSE='#'
5620 else
5621 S390_TRUE='#'
5622 S390_FALSE=
5627 if test x$TARGET = xX86_64; then
5628 X86_64_TRUE=
5629 X86_64_FALSE='#'
5630 else
5631 X86_64_TRUE='#'
5632 X86_64_FALSE=
5637 if test x$TARGET = xSH; then
5638 SH_TRUE=
5639 SH_FALSE='#'
5640 else
5641 SH_TRUE='#'
5642 SH_FALSE=
5647 if test x$TARGET = xSH64; then
5648 SH64_TRUE=
5649 SH64_FALSE='#'
5650 else
5651 SH64_TRUE='#'
5652 SH64_FALSE=
5657 if test x$TARGET = xPA_LINUX; then
5658 PA_LINUX_TRUE=
5659 PA_LINUX_FALSE='#'
5660 else
5661 PA_LINUX_TRUE='#'
5662 PA_LINUX_FALSE=
5667 if test x$TARGET = xPA_HPUX; then
5668 PA_HPUX_TRUE=
5669 PA_HPUX_FALSE='#'
5670 else
5671 PA_HPUX_TRUE='#'
5672 PA_HPUX_FALSE=
5677 if test x$TARGET = xPA64_HPUX; then
5678 PA64_HPUX_TRUE=
5679 PA64_HPUX_FALSE='#'
5680 else
5681 PA64_HPUX_TRUE='#'
5682 PA64_HPUX_FALSE=
5686 case x$TARGET in
5687 xMIPS*) TARGET=MIPS ;;
5688 *) ;;
5689 esac
5691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5693 if test "${ac_cv_header_stdc+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <stdlib.h>
5703 #include <stdarg.h>
5704 #include <string.h>
5705 #include <float.h>
5708 main ()
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_header_stdc=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_cv_header_stdc=no
5744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5746 if test $ac_cv_header_stdc = yes; then
5747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <string.h>
5756 _ACEOF
5757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758 $EGREP "memchr" >/dev/null 2>&1; then
5760 else
5761 ac_cv_header_stdc=no
5763 rm -f conftest*
5767 if test $ac_cv_header_stdc = yes; then
5768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h. */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 #include <stdlib.h>
5777 _ACEOF
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "free" >/dev/null 2>&1; then
5781 else
5782 ac_cv_header_stdc=no
5784 rm -f conftest*
5788 if test $ac_cv_header_stdc = yes; then
5789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5790 if test "$cross_compiling" = yes; then
5792 else
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <ctype.h>
5800 #if ((' ' & 0x0FF) == 0x020)
5801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5803 #else
5804 # define ISLOWER(c) \
5805 (('a' <= (c) && (c) <= 'i') \
5806 || ('j' <= (c) && (c) <= 'r') \
5807 || ('s' <= (c) && (c) <= 'z'))
5808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5809 #endif
5811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5813 main ()
5815 int i;
5816 for (i = 0; i < 256; i++)
5817 if (XOR (islower (i), ISLOWER (i))
5818 || toupper (i) != TOUPPER (i))
5819 exit(2);
5820 exit (0);
5822 _ACEOF
5823 rm -f conftest$ac_exeext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5825 (eval $ac_link) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5835 else
5836 echo "$as_me: program exited with status $ac_status" >&5
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 ( exit $ac_status )
5841 ac_cv_header_stdc=no
5843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5847 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5848 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5849 if test $ac_cv_header_stdc = yes; then
5851 cat >>confdefs.h <<\_ACEOF
5852 #define STDC_HEADERS 1
5853 _ACEOF
5858 for ac_func in memcpy
5860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5861 echo "$as_me:$LINENO: checking for $ac_func" >&5
5862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5863 if eval "test \"\${$as_ac_var+set}\" = set"; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5874 #define $ac_func innocuous_$ac_func
5876 /* System header to define __stub macros and hopefully few prototypes,
5877 which can conflict with char $ac_func (); below.
5878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5879 <limits.h> exists even on freestanding compilers. */
5881 #ifdef __STDC__
5882 # include <limits.h>
5883 #else
5884 # include <assert.h>
5885 #endif
5887 #undef $ac_func
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 #ifdef __cplusplus
5891 extern "C"
5893 #endif
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5896 char $ac_func ();
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 choke me
5902 #else
5903 char (*f) () = $ac_func;
5904 #endif
5905 #ifdef __cplusplus
5907 #endif
5910 main ()
5912 return f != $ac_func;
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 eval "$as_ac_var=yes"
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 eval "$as_ac_var=no"
5946 rm -f conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5951 if test `eval echo '${'$as_ac_var'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5954 _ACEOF
5957 done
5959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5960 # for constant arguments. Useless!
5961 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5963 if test "${ac_cv_working_alloca_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <alloca.h>
5974 main ()
5976 char *p = (char *) alloca (2 * sizeof (int));
5978 return 0;
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_working_alloca_h=yes
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_working_alloca_h=no
6010 rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6014 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6015 if test $ac_cv_working_alloca_h = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_ALLOCA_H 1
6019 _ACEOF
6023 echo "$as_me:$LINENO: checking for alloca" >&5
6024 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6025 if test "${ac_cv_func_alloca_works+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #ifdef __GNUC__
6035 # define alloca __builtin_alloca
6036 #else
6037 # ifdef _MSC_VER
6038 # include <malloc.h>
6039 # define alloca _alloca
6040 # else
6041 # if HAVE_ALLOCA_H
6042 # include <alloca.h>
6043 # else
6044 # ifdef _AIX
6045 #pragma alloca
6046 # else
6047 # ifndef alloca /* predefined by HP cc +Olibcalls */
6048 char *alloca ();
6049 # endif
6050 # endif
6051 # endif
6052 # endif
6053 #endif
6056 main ()
6058 char *p = (char *) alloca (1);
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_func_alloca_works=yes
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_func_alloca_works=no
6092 rm -f conftest.err conftest.$ac_objext \
6093 conftest$ac_exeext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6096 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6098 if test $ac_cv_func_alloca_works = yes; then
6100 cat >>confdefs.h <<\_ACEOF
6101 #define HAVE_ALLOCA 1
6102 _ACEOF
6104 else
6105 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6106 # that cause trouble. Some versions do not even contain alloca or
6107 # contain a buggy version. If you still want to use their alloca,
6108 # use ar to extract alloca.o from them instead of compiling alloca.c.
6110 ALLOCA=alloca.$ac_objext
6112 cat >>confdefs.h <<\_ACEOF
6113 #define C_ALLOCA 1
6114 _ACEOF
6117 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6118 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6119 if test "${ac_cv_os_cray+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #if defined(CRAY) && ! defined(CRAY2)
6129 webecray
6130 #else
6131 wenotbecray
6132 #endif
6134 _ACEOF
6135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 $EGREP "webecray" >/dev/null 2>&1; then
6137 ac_cv_os_cray=yes
6138 else
6139 ac_cv_os_cray=no
6141 rm -f conftest*
6144 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6145 echo "${ECHO_T}$ac_cv_os_cray" >&6
6146 if test $ac_cv_os_cray = yes; then
6147 for ac_func in _getb67 GETB67 getb67; do
6148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6149 echo "$as_me:$LINENO: checking for $ac_func" >&5
6150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6151 if eval "test \"\${$as_ac_var+set}\" = set"; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6162 #define $ac_func innocuous_$ac_func
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func (); below.
6166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6167 <limits.h> exists even on freestanding compilers. */
6169 #ifdef __STDC__
6170 # include <limits.h>
6171 #else
6172 # include <assert.h>
6173 #endif
6175 #undef $ac_func
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 #ifdef __cplusplus
6179 extern "C"
6181 #endif
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6184 char $ac_func ();
6185 /* The GNU C library defines this for functions which it implements
6186 to always fail with ENOSYS. Some functions are actually named
6187 something starting with __ and the normal name is an alias. */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 choke me
6190 #else
6191 char (*f) () = $ac_func;
6192 #endif
6193 #ifdef __cplusplus
6195 #endif
6198 main ()
6200 return f != $ac_func;
6202 return 0;
6204 _ACEOF
6205 rm -f conftest.$ac_objext conftest$ac_exeext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207 (eval $ac_link) 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 eval "$as_ac_var=yes"
6228 else
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 eval "$as_ac_var=no"
6234 rm -f conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6239 if test `eval echo '${'$as_ac_var'}'` = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define CRAY_STACKSEG_END $ac_func
6243 _ACEOF
6245 break
6248 done
6251 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6252 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6253 if test "${ac_cv_c_stack_direction+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 if test "$cross_compiling" = yes; then
6257 ac_cv_c_stack_direction=0
6258 else
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6266 find_stack_direction ()
6268 static char *addr = 0;
6269 auto char dummy;
6270 if (addr == 0)
6272 addr = &dummy;
6273 return find_stack_direction ();
6275 else
6276 return (&dummy > addr) ? 1 : -1;
6280 main ()
6282 exit (find_stack_direction () < 0);
6284 _ACEOF
6285 rm -f conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
6296 ac_cv_c_stack_direction=1
6297 else
6298 echo "$as_me: program exited with status $ac_status" >&5
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ( exit $ac_status )
6303 ac_cv_c_stack_direction=-1
6305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6311 cat >>confdefs.h <<_ACEOF
6312 #define STACK_DIRECTION $ac_cv_c_stack_direction
6313 _ACEOF
6319 echo "$as_me:$LINENO: checking for double" >&5
6320 echo $ECHO_N "checking for double... $ECHO_C" >&6
6321 if test "${ac_cv_type_double+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6332 main ()
6334 if ((double *) 0)
6335 return 0;
6336 if (sizeof (double))
6337 return 0;
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_type_double=yes
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_type_double=no
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6374 echo "${ECHO_T}$ac_cv_type_double" >&6
6376 echo "$as_me:$LINENO: checking size of double" >&5
6377 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6378 if test "${ac_cv_sizeof_double+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test "$ac_cv_type_double" = yes; then
6382 # The cast to unsigned long works around a bug in the HP C Compiler
6383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6385 # This bug is HP SR number 8606223364.
6386 if test "$cross_compiling" = yes; then
6387 # Depending upon the size, compute the lo and hi bounds.
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6396 main ()
6398 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6399 test_array [0] = 0
6402 return 0;
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_lo=0 ac_mid=0
6428 while :; do
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6437 main ()
6439 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6440 test_array [0] = 0
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_hi=$ac_mid; break
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_lo=`expr $ac_mid + 1`
6474 if test $ac_lo -le $ac_mid; then
6475 ac_lo= ac_hi=
6476 break
6478 ac_mid=`expr 2 '*' $ac_mid + 1`
6480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 done
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6494 main ()
6496 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6497 test_array [0] = 0
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_hi=-1 ac_mid=-1
6526 while :; do
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6535 main ()
6537 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6538 test_array [0] = 0
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546 (eval $ac_compile) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_lo=$ac_mid; break
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_hi=`expr '(' $ac_mid ')' - 1`
6572 if test $ac_mid -le $ac_hi; then
6573 ac_lo= ac_hi=
6574 break
6576 ac_mid=`expr 2 '*' $ac_mid`
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 done
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_lo= ac_hi=
6586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589 # Binary search between lo and hi bounds.
6590 while test "x$ac_lo" != "x$ac_hi"; do
6591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 $ac_includes_default
6600 main ()
6602 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6603 test_array [0] = 0
6606 return 0;
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -z "$ac_c_werror_flag"
6619 || test ! -s conftest.err'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; } &&
6625 { ac_try='test -s conftest.$ac_objext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_hi=$ac_mid
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_lo=`expr '(' $ac_mid ')' + 1`
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 done
6640 case $ac_lo in
6641 ?*) ac_cv_sizeof_double=$ac_lo;;
6642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6643 See \`config.log' for more details." >&5
6644 echo "$as_me: error: cannot compute sizeof (double), 77
6645 See \`config.log' for more details." >&2;}
6646 { (exit 1); exit 1; }; } ;;
6647 esac
6648 else
6649 if test "$cross_compiling" = yes; then
6650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6651 See \`config.log' for more details." >&5
6652 echo "$as_me: error: cannot run test program while cross compiling
6653 See \`config.log' for more details." >&2;}
6654 { (exit 1); exit 1; }; }
6655 else
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6663 long longval () { return (long) (sizeof (double)); }
6664 unsigned long ulongval () { return (long) (sizeof (double)); }
6665 #include <stdio.h>
6666 #include <stdlib.h>
6668 main ()
6671 FILE *f = fopen ("conftest.val", "w");
6672 if (! f)
6673 exit (1);
6674 if (((long) (sizeof (double))) < 0)
6676 long i = longval ();
6677 if (i != ((long) (sizeof (double))))
6678 exit (1);
6679 fprintf (f, "%ld\n", i);
6681 else
6683 unsigned long i = ulongval ();
6684 if (i != ((long) (sizeof (double))))
6685 exit (1);
6686 fprintf (f, "%lu\n", i);
6688 exit (ferror (f) || fclose (f) != 0);
6691 return 0;
6693 _ACEOF
6694 rm -f conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_sizeof_double=`cat conftest.val`
6706 else
6707 echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ( exit $ac_status )
6712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6713 See \`config.log' for more details." >&5
6714 echo "$as_me: error: cannot compute sizeof (double), 77
6715 See \`config.log' for more details." >&2;}
6716 { (exit 1); exit 1; }; }
6718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6721 rm -f conftest.val
6722 else
6723 ac_cv_sizeof_double=0
6726 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6727 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6728 cat >>confdefs.h <<_ACEOF
6729 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6730 _ACEOF
6733 echo "$as_me:$LINENO: checking for long double" >&5
6734 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6735 if test "${ac_cv_type_long_double+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6746 main ()
6748 if ((long double *) 0)
6749 return 0;
6750 if (sizeof (long double))
6751 return 0;
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_type_long_double=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_type_long_double=no
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6788 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6790 echo "$as_me:$LINENO: checking size of long double" >&5
6791 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6792 if test "${ac_cv_sizeof_long_double+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 if test "$ac_cv_type_long_double" = yes; then
6796 # The cast to unsigned long works around a bug in the HP C Compiler
6797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6799 # This bug is HP SR number 8606223364.
6800 if test "$cross_compiling" = yes; then
6801 # Depending upon the size, compute the lo and hi bounds.
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6810 main ()
6812 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6813 test_array [0] = 0
6816 return 0;
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_c_werror_flag"
6829 || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_lo=0 ac_mid=0
6842 while :; do
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 $ac_includes_default
6851 main ()
6853 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6854 test_array [0] = 0
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_hi=$ac_mid; break
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 ac_lo=`expr $ac_mid + 1`
6888 if test $ac_lo -le $ac_mid; then
6889 ac_lo= ac_hi=
6890 break
6892 ac_mid=`expr 2 '*' $ac_mid + 1`
6894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895 done
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 $ac_includes_default
6908 main ()
6910 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6911 test_array [0] = 0
6914 return 0;
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6920 ac_status=$?
6921 grep -v '^ *+' conftest.er1 >conftest.err
6922 rm -f conftest.er1
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag"
6927 || test ! -s conftest.err'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; } &&
6933 { ac_try='test -s conftest.$ac_objext'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6939 ac_hi=-1 ac_mid=-1
6940 while :; do
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6949 main ()
6951 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6952 test_array [0] = 0
6955 return 0;
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_lo=$ac_mid; break
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_hi=`expr '(' $ac_mid ')' - 1`
6986 if test $ac_mid -le $ac_hi; then
6987 ac_lo= ac_hi=
6988 break
6990 ac_mid=`expr 2 '*' $ac_mid`
6992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993 done
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_lo= ac_hi=
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 # Binary search between lo and hi bounds.
7004 while test "x$ac_lo" != "x$ac_hi"; do
7005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7014 main ()
7016 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7017 test_array [0] = 0
7020 return 0;
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_hi=$ac_mid
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_lo=`expr '(' $ac_mid ')' + 1`
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 done
7054 case $ac_lo in
7055 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7056 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7057 See \`config.log' for more details." >&5
7058 echo "$as_me: error: cannot compute sizeof (long double), 77
7059 See \`config.log' for more details." >&2;}
7060 { (exit 1); exit 1; }; } ;;
7061 esac
7062 else
7063 if test "$cross_compiling" = yes; then
7064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7065 See \`config.log' for more details." >&5
7066 echo "$as_me: error: cannot run test program while cross compiling
7067 See \`config.log' for more details." >&2;}
7068 { (exit 1); exit 1; }; }
7069 else
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 $ac_includes_default
7077 long longval () { return (long) (sizeof (long double)); }
7078 unsigned long ulongval () { return (long) (sizeof (long double)); }
7079 #include <stdio.h>
7080 #include <stdlib.h>
7082 main ()
7085 FILE *f = fopen ("conftest.val", "w");
7086 if (! f)
7087 exit (1);
7088 if (((long) (sizeof (long double))) < 0)
7090 long i = longval ();
7091 if (i != ((long) (sizeof (long double))))
7092 exit (1);
7093 fprintf (f, "%ld\n", i);
7095 else
7097 unsigned long i = ulongval ();
7098 if (i != ((long) (sizeof (long double))))
7099 exit (1);
7100 fprintf (f, "%lu\n", i);
7102 exit (ferror (f) || fclose (f) != 0);
7105 return 0;
7107 _ACEOF
7108 rm -f conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_cv_sizeof_long_double=`cat conftest.val`
7120 else
7121 echo "$as_me: program exited with status $ac_status" >&5
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ( exit $ac_status )
7126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7127 See \`config.log' for more details." >&5
7128 echo "$as_me: error: cannot compute sizeof (long double), 77
7129 See \`config.log' for more details." >&2;}
7130 { (exit 1); exit 1; }; }
7132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7135 rm -f conftest.val
7136 else
7137 ac_cv_sizeof_long_double=0
7140 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7141 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7142 cat >>confdefs.h <<_ACEOF
7143 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7144 _ACEOF
7148 # Also AC_SUBST this variable for ffi.h.
7149 if test -z "$HAVE_LONG_DOUBLE"; then
7150 HAVE_LONG_DOUBLE=0
7151 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
7152 if test $ac_cv_sizeof_long_double != 0; then
7153 HAVE_LONG_DOUBLE=1
7155 cat >>confdefs.h <<\_ACEOF
7156 #define HAVE_LONG_DOUBLE 1
7157 _ACEOF
7164 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7165 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7166 if test "${ac_cv_c_bigendian+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 # See if sys/param.h defines the BYTE_ORDER macro.
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <sys/types.h>
7177 #include <sys/param.h>
7180 main ()
7182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7183 bogus endian macros
7184 #endif
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag"
7200 || test ! -s conftest.err'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest.$ac_objext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 # It does; now see whether it defined to BIG_ENDIAN or not.
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 #include <sys/types.h>
7220 #include <sys/param.h>
7223 main ()
7225 #if BYTE_ORDER != BIG_ENDIAN
7226 not big endian
7227 #endif
7230 return 0;
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -z "$ac_c_werror_flag"
7243 || test ! -s conftest.err'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 (eval $ac_try) 2>&5
7246 ac_status=$?
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; } &&
7249 { ac_try='test -s conftest.$ac_objext'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 ac_cv_c_bigendian=yes
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 ac_cv_c_bigendian=no
7262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 # It does not; compile a test program.
7268 if test "$cross_compiling" = yes; then
7269 # try to guess the endianness by grepping values into an object file
7270 ac_cv_c_bigendian=unknown
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7278 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7279 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7280 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7281 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7282 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7284 main ()
7286 _ascii (); _ebcdic ();
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 (eval $ac_try) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7314 ac_cv_c_bigendian=yes
7316 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7317 if test "$ac_cv_c_bigendian" = unknown; then
7318 ac_cv_c_bigendian=no
7319 else
7320 # finding both strings is unlikely to happen, but who knows?
7321 ac_cv_c_bigendian=unknown
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7338 main ()
7340 /* Are we little or big endian? From Harbison&Steele. */
7341 union
7343 long l;
7344 char c[sizeof (long)];
7345 } u;
7346 u.l = 1;
7347 exit (u.c[sizeof (long) - 1] == 1);
7349 _ACEOF
7350 rm -f conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_c_bigendian=no
7362 else
7363 echo "$as_me: program exited with status $ac_status" >&5
7364 echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7367 ( exit $ac_status )
7368 ac_cv_c_bigendian=yes
7370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7376 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7377 case $ac_cv_c_bigendian in
7378 yes)
7380 cat >>confdefs.h <<\_ACEOF
7381 #define WORDS_BIGENDIAN 1
7382 _ACEOF
7387 { { echo "$as_me:$LINENO: error: unknown endianness
7388 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7389 echo "$as_me: error: unknown endianness
7390 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7391 { (exit 1); exit 1; }; } ;;
7392 esac
7395 if test x$TARGET = xSPARC; then
7396 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
7397 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
7398 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7402 save_CFLAGS="$CFLAGS"
7403 save_LDFLAGS="$LDFLAGS"
7404 CFLAGS="$CFLAGS -fpic"
7405 LDFLAGS="$LDFLAGS -shared"
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
7414 main ()
7418 return 0;
7420 _ACEOF
7421 rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7423 (eval $ac_link) 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -z "$ac_c_werror_flag"
7431 || test ! -s conftest.err'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; } &&
7437 { ac_try='test -s conftest$ac_exeext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 libffi_cv_as_sparc_ua_pcrel=yes
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 libffi_cv_as_sparc_ua_pcrel=no
7450 rm -f conftest.err conftest.$ac_objext \
7451 conftest$ac_exeext conftest.$ac_ext
7452 CFLAGS="$save_CFLAGS"
7453 LDFLAGS="$save_LDFLAGS"
7455 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
7456 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
7457 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
7459 cat >>confdefs.h <<\_ACEOF
7460 #define HAVE_AS_SPARC_UA_PCREL 1
7461 _ACEOF
7465 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
7466 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
7467 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7471 libffi_cv_as_register_pseudo_op=unknown
7472 # Check if we have .register
7473 cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h. */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 asm (".register %g2, #scratch");
7481 main ()
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 libffi_cv_as_register_pseudo_op=yes
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 libffi_cv_as_register_pseudo_op=no
7517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
7521 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
7522 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7526 _ACEOF
7531 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
7532 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
7533 if test "${libffi_cv_ro_eh_frame+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7537 libffi_cv_ro_eh_frame=no
7538 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
7539 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
7540 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
7541 libffi_cv_ro_eh_frame=yes
7542 elif grep '.section.*eh_frame.*#alloc' conftest.c \
7543 | grep -v '#write' > /dev/null; then
7544 libffi_cv_ro_eh_frame=yes
7547 rm -f conftest.*
7550 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
7551 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
7552 if test "x$libffi_cv_ro_eh_frame" = xyes; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_RO_EH_FRAME 1
7556 _ACEOF
7559 cat >>confdefs.h <<\_ACEOF
7560 #define EH_FRAME_FLAGS "a"
7561 _ACEOF
7563 else
7565 cat >>confdefs.h <<\_ACEOF
7566 #define EH_FRAME_FLAGS "aw"
7567 _ACEOF
7571 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
7572 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
7573 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7577 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
7578 libffi_cv_hidden_visibility_attribute=no
7579 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 if grep '\.hidden.*foo' conftest.s >/dev/null; then
7586 libffi_cv_hidden_visibility_attribute=yes
7589 rm -f conftest.*
7592 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
7593 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
7594 if test $libffi_cv_hidden_visibility_attribute = yes; then
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
7598 _ACEOF
7610 # Check whether --enable-debug or --disable-debug was given.
7611 if test "${enable_debug+set}" = set; then
7612 enableval="$enable_debug"
7613 if test "$enable_debug" = "yes"; then
7615 cat >>confdefs.h <<\_ACEOF
7616 #define FFI_DEBUG 1
7617 _ACEOF
7622 # Check whether --enable-structs or --disable-structs was given.
7623 if test "${enable_structs+set}" = set; then
7624 enableval="$enable_structs"
7625 if test "$enable_structs" = "no"; then
7627 cat >>confdefs.h <<\_ACEOF
7628 #define FFI_NO_STRUCTS 1
7629 _ACEOF
7634 # Check whether --enable-raw-api or --disable-raw-api was given.
7635 if test "${enable_raw_api+set}" = set; then
7636 enableval="$enable_raw_api"
7637 if test "$enable_raw_api" = "no"; then
7639 cat >>confdefs.h <<\_ACEOF
7640 #define FFI_NO_RAW_API 1
7641 _ACEOF
7646 # Check whether --enable-purify-safety or --disable-purify-safety was given.
7647 if test "${enable_purify_safety+set}" = set; then
7648 enableval="$enable_purify_safety"
7649 if test "$enable_purify_safety" = "yes"; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define USING_PURIFY 1
7653 _ACEOF
7658 if test -n "$with_cross_host" &&
7659 test x"$with_cross_host" != x"no"; then
7660 toolexecdir='$(exec_prefix)/$(target_alias)'
7661 toolexeclibdir='$(toolexecdir)/lib'
7662 else
7663 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7664 toolexeclibdir='$(libdir)'
7666 multi_os_directory=`$CC -print-multi-os-directory`
7667 case $multi_os_directory in
7668 .) ;; # Avoid trailing /.
7669 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7670 esac
7674 if test "${multilib}" = "yes"; then
7675 multilib_arg="--enable-multilib"
7676 else
7677 multilib_arg=
7680 ac_config_commands="$ac_config_commands include"
7682 ac_config_commands="$ac_config_commands src"
7685 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
7688 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
7691 cat >confcache <<\_ACEOF
7692 # This file is a shell script that caches the results of configure
7693 # tests run on this system so they can be shared between configure
7694 # scripts and configure runs, see configure's option --config-cache.
7695 # It is not useful on other systems. If it contains results you don't
7696 # want to keep, you may remove or edit it.
7698 # config.status only pays attention to the cache file if you give it
7699 # the --recheck option to rerun configure.
7701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7703 # following values.
7705 _ACEOF
7707 # The following way of writing the cache mishandles newlines in values,
7708 # but we know of no workaround that is simple, portable, and efficient.
7709 # So, don't put newlines in cache variables' values.
7710 # Ultrix sh set writes to stderr and can't be redirected directly,
7711 # and sets the high bit in the cache file unless we assign to the vars.
7713 (set) 2>&1 |
7714 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7715 *ac_space=\ *)
7716 # `set' does not quote correctly, so add quotes (double-quote
7717 # substitution turns \\\\ into \\, and sed turns \\ into \).
7718 sed -n \
7719 "s/'/'\\\\''/g;
7720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7723 # `set' quotes correctly as required by POSIX, so do not add quotes.
7724 sed -n \
7725 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7727 esac;
7729 sed '
7730 t clear
7731 : clear
7732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7733 t end
7734 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7735 : end' >>confcache
7736 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7737 if test -w $cache_file; then
7738 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7739 cat confcache >$cache_file
7740 else
7741 echo "not updating unwritable cache $cache_file"
7744 rm -f confcache
7746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7747 # Let make expand exec_prefix.
7748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7752 # trailing colons and then remove the whole line if VPATH becomes empty
7753 # (actually we leave an empty line to preserve line numbers).
7754 if test "x$srcdir" = x.; then
7755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7756 s/:*\$(srcdir):*/:/;
7757 s/:*\${srcdir}:*/:/;
7758 s/:*@srcdir@:*/:/;
7759 s/^\([^=]*=[ ]*\):*/\1/;
7760 s/:*$//;
7761 s/^[^=]*=[ ]*$//;
7765 DEFS=-DHAVE_CONFIG_H
7767 ac_libobjs=
7768 ac_ltlibobjs=
7769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7770 # 1. Remove the extension, and $U if already installed.
7771 ac_i=`echo "$ac_i" |
7772 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7773 # 2. Add them.
7774 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7775 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7776 done
7777 LIBOBJS=$ac_libobjs
7779 LTLIBOBJS=$ac_ltlibobjs
7782 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7783 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7784 Usually this means the macro was only invoked conditionally." >&5
7785 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7786 Usually this means the macro was only invoked conditionally." >&2;}
7787 { (exit 1); exit 1; }; }
7789 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7790 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7791 Usually this means the macro was only invoked conditionally." >&5
7792 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7793 Usually this means the macro was only invoked conditionally." >&2;}
7794 { (exit 1); exit 1; }; }
7796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7797 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7798 Usually this means the macro was only invoked conditionally." >&5
7799 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7800 Usually this means the macro was only invoked conditionally." >&2;}
7801 { (exit 1); exit 1; }; }
7803 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
7804 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
7805 Usually this means the macro was only invoked conditionally." >&5
7806 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
7807 Usually this means the macro was only invoked conditionally." >&2;}
7808 { (exit 1); exit 1; }; }
7810 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
7811 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
7812 Usually this means the macro was only invoked conditionally." >&5
7813 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
7814 Usually this means the macro was only invoked conditionally." >&2;}
7815 { (exit 1); exit 1; }; }
7817 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
7818 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
7819 Usually this means the macro was only invoked conditionally." >&5
7820 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
7821 Usually this means the macro was only invoked conditionally." >&2;}
7822 { (exit 1); exit 1; }; }
7824 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
7825 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
7826 Usually this means the macro was only invoked conditionally." >&5
7827 echo "$as_me: error: conditional \"SPARC\" was never defined.
7828 Usually this means the macro was only invoked conditionally." >&2;}
7829 { (exit 1); exit 1; }; }
7831 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
7832 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
7833 Usually this means the macro was only invoked conditionally." >&5
7834 echo "$as_me: error: conditional \"X86\" was never defined.
7835 Usually this means the macro was only invoked conditionally." >&2;}
7836 { (exit 1); exit 1; }; }
7838 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
7839 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
7840 Usually this means the macro was only invoked conditionally." >&5
7841 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
7842 Usually this means the macro was only invoked conditionally." >&2;}
7843 { (exit 1); exit 1; }; }
7845 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
7846 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
7847 Usually this means the macro was only invoked conditionally." >&5
7848 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
7849 Usually this means the macro was only invoked conditionally." >&2;}
7850 { (exit 1); exit 1; }; }
7852 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
7853 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
7854 Usually this means the macro was only invoked conditionally." >&5
7855 echo "$as_me: error: conditional \"ALPHA\" was never defined.
7856 Usually this means the macro was only invoked conditionally." >&2;}
7857 { (exit 1); exit 1; }; }
7859 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
7860 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
7861 Usually this means the macro was only invoked conditionally." >&5
7862 echo "$as_me: error: conditional \"IA64\" was never defined.
7863 Usually this means the macro was only invoked conditionally." >&2;}
7864 { (exit 1); exit 1; }; }
7866 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7867 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7868 Usually this means the macro was only invoked conditionally." >&5
7869 echo "$as_me: error: conditional \"M32R\" was never defined.
7870 Usually this means the macro was only invoked conditionally." >&2;}
7871 { (exit 1); exit 1; }; }
7873 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7874 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7875 Usually this means the macro was only invoked conditionally." >&5
7876 echo "$as_me: error: conditional \"M68K\" was never defined.
7877 Usually this means the macro was only invoked conditionally." >&2;}
7878 { (exit 1); exit 1; }; }
7880 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7881 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7882 Usually this means the macro was only invoked conditionally." >&5
7883 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7884 Usually this means the macro was only invoked conditionally." >&2;}
7885 { (exit 1); exit 1; }; }
7887 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7888 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7889 Usually this means the macro was only invoked conditionally." >&5
7890 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7891 Usually this means the macro was only invoked conditionally." >&2;}
7892 { (exit 1); exit 1; }; }
7894 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7895 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7896 Usually this means the macro was only invoked conditionally." >&5
7897 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7898 Usually this means the macro was only invoked conditionally." >&2;}
7899 { (exit 1); exit 1; }; }
7901 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
7902 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
7903 Usually this means the macro was only invoked conditionally." >&5
7904 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
7905 Usually this means the macro was only invoked conditionally." >&2;}
7906 { (exit 1); exit 1; }; }
7908 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7909 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7910 Usually this means the macro was only invoked conditionally." >&5
7911 echo "$as_me: error: conditional \"ARM\" was never defined.
7912 Usually this means the macro was only invoked conditionally." >&2;}
7913 { (exit 1); exit 1; }; }
7915 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
7916 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
7917 Usually this means the macro was only invoked conditionally." >&5
7918 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
7919 Usually this means the macro was only invoked conditionally." >&2;}
7920 { (exit 1); exit 1; }; }
7922 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7923 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7924 Usually this means the macro was only invoked conditionally." >&5
7925 echo "$as_me: error: conditional \"FRV\" was never defined.
7926 Usually this means the macro was only invoked conditionally." >&2;}
7927 { (exit 1); exit 1; }; }
7929 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7930 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7931 Usually this means the macro was only invoked conditionally." >&5
7932 echo "$as_me: error: conditional \"S390\" was never defined.
7933 Usually this means the macro was only invoked conditionally." >&2;}
7934 { (exit 1); exit 1; }; }
7936 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7937 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7938 Usually this means the macro was only invoked conditionally." >&5
7939 echo "$as_me: error: conditional \"X86_64\" was never defined.
7940 Usually this means the macro was only invoked conditionally." >&2;}
7941 { (exit 1); exit 1; }; }
7943 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7944 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7945 Usually this means the macro was only invoked conditionally." >&5
7946 echo "$as_me: error: conditional \"SH\" was never defined.
7947 Usually this means the macro was only invoked conditionally." >&2;}
7948 { (exit 1); exit 1; }; }
7950 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7951 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7952 Usually this means the macro was only invoked conditionally." >&5
7953 echo "$as_me: error: conditional \"SH64\" was never defined.
7954 Usually this means the macro was only invoked conditionally." >&2;}
7955 { (exit 1); exit 1; }; }
7957 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
7958 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
7959 Usually this means the macro was only invoked conditionally." >&5
7960 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
7961 Usually this means the macro was only invoked conditionally." >&2;}
7962 { (exit 1); exit 1; }; }
7964 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
7965 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
7966 Usually this means the macro was only invoked conditionally." >&5
7967 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
7968 Usually this means the macro was only invoked conditionally." >&2;}
7969 { (exit 1); exit 1; }; }
7971 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
7972 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
7973 Usually this means the macro was only invoked conditionally." >&5
7974 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
7975 Usually this means the macro was only invoked conditionally." >&2;}
7976 { (exit 1); exit 1; }; }
7979 : ${CONFIG_STATUS=./config.status}
7980 ac_clean_files_save=$ac_clean_files
7981 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7982 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7983 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7984 cat >$CONFIG_STATUS <<_ACEOF
7985 #! $SHELL
7986 # Generated by $as_me.
7987 # Run this file to recreate the current configuration.
7988 # Compiler output produced by configure, useful for debugging
7989 # configure, is in config.log if it exists.
7991 debug=false
7992 ac_cs_recheck=false
7993 ac_cs_silent=false
7994 SHELL=\${CONFIG_SHELL-$SHELL}
7995 _ACEOF
7997 cat >>$CONFIG_STATUS <<\_ACEOF
7998 ## --------------------- ##
7999 ## M4sh Initialization. ##
8000 ## --------------------- ##
8002 # Be Bourne compatible
8003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8004 emulate sh
8005 NULLCMD=:
8006 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8007 # is contrary to our usage. Disable this feature.
8008 alias -g '${1+"$@"}'='"$@"'
8009 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8010 set -o posix
8012 DUALCASE=1; export DUALCASE # for MKS sh
8014 # Support unset when possible.
8015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8016 as_unset=unset
8017 else
8018 as_unset=false
8022 # Work around bugs in pre-3.0 UWIN ksh.
8023 $as_unset ENV MAIL MAILPATH
8024 PS1='$ '
8025 PS2='> '
8026 PS4='+ '
8028 # NLS nuisances.
8029 for as_var in \
8030 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8031 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8032 LC_TELEPHONE LC_TIME
8034 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8035 eval $as_var=C; export $as_var
8036 else
8037 $as_unset $as_var
8039 done
8041 # Required to use basename.
8042 if expr a : '\(a\)' >/dev/null 2>&1; then
8043 as_expr=expr
8044 else
8045 as_expr=false
8048 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8049 as_basename=basename
8050 else
8051 as_basename=false
8055 # Name of the executable.
8056 as_me=`$as_basename "$0" ||
8057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8058 X"$0" : 'X\(//\)$' \| \
8059 X"$0" : 'X\(/\)$' \| \
8060 . : '\(.\)' 2>/dev/null ||
8061 echo X/"$0" |
8062 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8063 /^X\/\(\/\/\)$/{ s//\1/; q; }
8064 /^X\/\(\/\).*/{ s//\1/; q; }
8065 s/.*/./; q'`
8068 # PATH needs CR, and LINENO needs CR and PATH.
8069 # Avoid depending upon Character Ranges.
8070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8073 as_cr_digits='0123456789'
8074 as_cr_alnum=$as_cr_Letters$as_cr_digits
8076 # The user is always right.
8077 if test "${PATH_SEPARATOR+set}" != set; then
8078 echo "#! /bin/sh" >conf$$.sh
8079 echo "exit 0" >>conf$$.sh
8080 chmod +x conf$$.sh
8081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8082 PATH_SEPARATOR=';'
8083 else
8084 PATH_SEPARATOR=:
8086 rm -f conf$$.sh
8090 as_lineno_1=$LINENO
8091 as_lineno_2=$LINENO
8092 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8093 test "x$as_lineno_1" != "x$as_lineno_2" &&
8094 test "x$as_lineno_3" = "x$as_lineno_2" || {
8095 # Find who we are. Look in the path if we contain no path at all
8096 # relative or not.
8097 case $0 in
8098 *[\\/]* ) as_myself=$0 ;;
8099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8105 done
8108 esac
8109 # We did not find ourselves, most probably we were run as `sh COMMAND'
8110 # in which case we are not to be found in the path.
8111 if test "x$as_myself" = x; then
8112 as_myself=$0
8114 if test ! -f "$as_myself"; then
8115 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8116 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8117 { (exit 1); exit 1; }; }
8119 case $CONFIG_SHELL in
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for as_base in sh bash ksh sh5; do
8127 case $as_dir in
8129 if ("$as_dir/$as_base" -c '
8130 as_lineno_1=$LINENO
8131 as_lineno_2=$LINENO
8132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8133 test "x$as_lineno_1" != "x$as_lineno_2" &&
8134 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8135 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8136 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8137 CONFIG_SHELL=$as_dir/$as_base
8138 export CONFIG_SHELL
8139 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8140 fi;;
8141 esac
8142 done
8143 done
8145 esac
8147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8148 # uniformly replaced by the line number. The first 'sed' inserts a
8149 # line-number line before each line; the second 'sed' does the real
8150 # work. The second script uses 'N' to pair each line-number line
8151 # with the numbered line, and appends trailing '-' during
8152 # substitution so that $LINENO is not a special case at line end.
8153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8154 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8155 sed '=' <$as_myself |
8156 sed '
8158 s,$,-,
8159 : loop
8160 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8161 t loop
8162 s,-$,,
8163 s,^['$as_cr_digits']*\n,,
8164 ' >$as_me.lineno &&
8165 chmod +x $as_me.lineno ||
8166 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8167 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8168 { (exit 1); exit 1; }; }
8170 # Don't try to exec as it changes $[0], causing all sort of problems
8171 # (the dirname of $[0] is not the place where we might find the
8172 # original and so on. Autoconf is especially sensible to this).
8173 . ./$as_me.lineno
8174 # Exit status is that of the last command.
8175 exit
8179 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8180 *c*,-n*) ECHO_N= ECHO_C='
8181 ' ECHO_T=' ' ;;
8182 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8183 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8184 esac
8186 if expr a : '\(a\)' >/dev/null 2>&1; then
8187 as_expr=expr
8188 else
8189 as_expr=false
8192 rm -f conf$$ conf$$.exe conf$$.file
8193 echo >conf$$.file
8194 if ln -s conf$$.file conf$$ 2>/dev/null; then
8195 # We could just check for DJGPP; but this test a) works b) is more generic
8196 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8197 if test -f conf$$.exe; then
8198 # Don't use ln at all; we don't have any links
8199 as_ln_s='cp -p'
8200 else
8201 as_ln_s='ln -s'
8203 elif ln conf$$.file conf$$ 2>/dev/null; then
8204 as_ln_s=ln
8205 else
8206 as_ln_s='cp -p'
8208 rm -f conf$$ conf$$.exe conf$$.file
8210 if mkdir -p . 2>/dev/null; then
8211 as_mkdir_p=:
8212 else
8213 test -d ./-p && rmdir ./-p
8214 as_mkdir_p=false
8217 as_executable_p="test -f"
8219 # Sed expression to map a string onto a valid CPP name.
8220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8222 # Sed expression to map a string onto a valid variable name.
8223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8226 # IFS
8227 # We need space, tab and new line, in precisely that order.
8228 as_nl='
8230 IFS=" $as_nl"
8232 # CDPATH.
8233 $as_unset CDPATH
8235 exec 6>&1
8237 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8238 # report actual input values of CONFIG_FILES etc. instead of their
8239 # values after options handling. Logging --version etc. is OK.
8240 exec 5>>config.log
8242 echo
8243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8244 ## Running $as_me. ##
8245 _ASBOX
8246 } >&5
8247 cat >&5 <<_CSEOF
8249 This file was extended by libffi $as_me 2.1, which was
8250 generated by GNU Autoconf 2.59. Invocation command line was
8252 CONFIG_FILES = $CONFIG_FILES
8253 CONFIG_HEADERS = $CONFIG_HEADERS
8254 CONFIG_LINKS = $CONFIG_LINKS
8255 CONFIG_COMMANDS = $CONFIG_COMMANDS
8256 $ $0 $@
8258 _CSEOF
8259 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8260 echo >&5
8261 _ACEOF
8263 # Files that config.status was made for.
8264 if test -n "$ac_config_files"; then
8265 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8268 if test -n "$ac_config_headers"; then
8269 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8272 if test -n "$ac_config_links"; then
8273 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8276 if test -n "$ac_config_commands"; then
8277 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8280 cat >>$CONFIG_STATUS <<\_ACEOF
8282 ac_cs_usage="\
8283 \`$as_me' instantiates files from templates according to the
8284 current configuration.
8286 Usage: $0 [OPTIONS] [FILE]...
8288 -h, --help print this help, then exit
8289 -V, --version print version number, then exit
8290 -q, --quiet do not print progress messages
8291 -d, --debug don't remove temporary files
8292 --recheck update $as_me by reconfiguring in the same conditions
8293 --file=FILE[:TEMPLATE]
8294 instantiate the configuration file FILE
8295 --header=FILE[:TEMPLATE]
8296 instantiate the configuration header FILE
8298 Configuration files:
8299 $config_files
8301 Configuration headers:
8302 $config_headers
8304 Configuration links:
8305 $config_links
8307 Configuration commands:
8308 $config_commands
8310 Report bugs to <bug-autoconf@gnu.org>."
8311 _ACEOF
8313 cat >>$CONFIG_STATUS <<_ACEOF
8314 ac_cs_version="\\
8315 libffi config.status 2.1
8316 configured by $0, generated by GNU Autoconf 2.59,
8317 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8319 Copyright (C) 2003 Free Software Foundation, Inc.
8320 This config.status script is free software; the Free Software Foundation
8321 gives unlimited permission to copy, distribute and modify it."
8322 srcdir=$srcdir
8323 INSTALL="$INSTALL"
8324 _ACEOF
8326 cat >>$CONFIG_STATUS <<\_ACEOF
8327 # If no file are specified by the user, then we need to provide default
8328 # value. By we need to know if files were specified by the user.
8329 ac_need_defaults=:
8330 while test $# != 0
8332 case $1 in
8333 --*=*)
8334 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8335 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8336 ac_shift=:
8339 ac_option=$1
8340 ac_optarg=$2
8341 ac_shift=shift
8343 *) # This is not an option, so the user has probably given explicit
8344 # arguments.
8345 ac_option=$1
8346 ac_need_defaults=false;;
8347 esac
8349 case $ac_option in
8350 # Handling of the options.
8351 _ACEOF
8352 cat >>$CONFIG_STATUS <<\_ACEOF
8353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8354 ac_cs_recheck=: ;;
8355 --version | --vers* | -V )
8356 echo "$ac_cs_version"; exit 0 ;;
8357 --he | --h)
8358 # Conflict between --help and --header
8359 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8360 Try \`$0 --help' for more information." >&5
8361 echo "$as_me: error: ambiguous option: $1
8362 Try \`$0 --help' for more information." >&2;}
8363 { (exit 1); exit 1; }; };;
8364 --help | --hel | -h )
8365 echo "$ac_cs_usage"; exit 0 ;;
8366 --debug | --d* | -d )
8367 debug=: ;;
8368 --file | --fil | --fi | --f )
8369 $ac_shift
8370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8371 ac_need_defaults=false;;
8372 --header | --heade | --head | --hea )
8373 $ac_shift
8374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8375 ac_need_defaults=false;;
8376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8378 ac_cs_silent=: ;;
8380 # This is an error.
8381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8382 Try \`$0 --help' for more information." >&5
8383 echo "$as_me: error: unrecognized option: $1
8384 Try \`$0 --help' for more information." >&2;}
8385 { (exit 1); exit 1; }; } ;;
8387 *) ac_config_targets="$ac_config_targets $1" ;;
8389 esac
8390 shift
8391 done
8393 ac_configure_extra_args=
8395 if $ac_cs_silent; then
8396 exec 6>/dev/null
8397 ac_configure_extra_args="$ac_configure_extra_args --silent"
8400 _ACEOF
8401 cat >>$CONFIG_STATUS <<_ACEOF
8402 if \$ac_cs_recheck; then
8403 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8404 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8407 _ACEOF
8409 cat >>$CONFIG_STATUS <<_ACEOF
8411 # INIT-COMMANDS section.
8415 srcdir="$srcdir"
8416 host="$host"
8417 target="$target"
8418 with_multisubdir="$with_multisubdir"
8419 with_multisrctop="$with_multisrctop"
8420 with_target_subdir="$with_target_subdir"
8421 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8422 multi_basedir="$multi_basedir"
8423 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8424 CC="$CC"
8425 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8426 TARGETDIR="$TARGETDIR"
8428 _ACEOF
8432 cat >>$CONFIG_STATUS <<\_ACEOF
8433 for ac_config_target in $ac_config_targets
8435 case "$ac_config_target" in
8436 # Handling of arguments.
8437 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8438 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
8439 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8440 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8441 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
8442 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8443 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8444 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
8445 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
8446 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
8447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8449 { (exit 1); exit 1; }; };;
8450 esac
8451 done
8453 # If the user did not use the arguments to specify the items to instantiate,
8454 # then the envvar interface is used. Set only those that are not.
8455 # We use the long form for the default assignment because of an extremely
8456 # bizarre bug on SunOS 4.1.3.
8457 if $ac_need_defaults; then
8458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8460 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8464 # Have a temporary directory for convenience. Make it in the build tree
8465 # simply because there is no reason to put it here, and in addition,
8466 # creating and moving files from /tmp can sometimes cause problems.
8467 # Create a temporary directory, and hook for its removal unless debugging.
8468 $debug ||
8470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8471 trap '{ (exit 1); exit 1; }' 1 2 13 15
8474 # Create a (secure) tmp directory for tmp files.
8477 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8478 test -n "$tmp" && test -d "$tmp"
8479 } ||
8481 tmp=./confstat$$-$RANDOM
8482 (umask 077 && mkdir $tmp)
8483 } ||
8485 echo "$me: cannot create a temporary directory in ." >&2
8486 { (exit 1); exit 1; }
8489 _ACEOF
8491 cat >>$CONFIG_STATUS <<_ACEOF
8494 # CONFIG_FILES section.
8497 # No need to generate the scripts if there are no CONFIG_FILES.
8498 # This happens for instance when ./config.status config.h
8499 if test -n "\$CONFIG_FILES"; then
8500 # Protect against being on the right side of a sed subst in config.status.
8501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8503 s,@SHELL@,$SHELL,;t t
8504 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8505 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8506 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8507 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8508 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8509 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8510 s,@exec_prefix@,$exec_prefix,;t t
8511 s,@prefix@,$prefix,;t t
8512 s,@program_transform_name@,$program_transform_name,;t t
8513 s,@bindir@,$bindir,;t t
8514 s,@sbindir@,$sbindir,;t t
8515 s,@libexecdir@,$libexecdir,;t t
8516 s,@datadir@,$datadir,;t t
8517 s,@sysconfdir@,$sysconfdir,;t t
8518 s,@sharedstatedir@,$sharedstatedir,;t t
8519 s,@localstatedir@,$localstatedir,;t t
8520 s,@libdir@,$libdir,;t t
8521 s,@includedir@,$includedir,;t t
8522 s,@oldincludedir@,$oldincludedir,;t t
8523 s,@infodir@,$infodir,;t t
8524 s,@mandir@,$mandir,;t t
8525 s,@build_alias@,$build_alias,;t t
8526 s,@host_alias@,$host_alias,;t t
8527 s,@target_alias@,$target_alias,;t t
8528 s,@DEFS@,$DEFS,;t t
8529 s,@ECHO_C@,$ECHO_C,;t t
8530 s,@ECHO_N@,$ECHO_N,;t t
8531 s,@ECHO_T@,$ECHO_T,;t t
8532 s,@LIBS@,$LIBS,;t t
8533 s,@multi_basedir@,$multi_basedir,;t t
8534 s,@build@,$build,;t t
8535 s,@build_cpu@,$build_cpu,;t t
8536 s,@build_vendor@,$build_vendor,;t t
8537 s,@build_os@,$build_os,;t t
8538 s,@host@,$host,;t t
8539 s,@host_cpu@,$host_cpu,;t t
8540 s,@host_vendor@,$host_vendor,;t t
8541 s,@host_os@,$host_os,;t t
8542 s,@target@,$target,;t t
8543 s,@target_cpu@,$target_cpu,;t t
8544 s,@target_vendor@,$target_vendor,;t t
8545 s,@target_os@,$target_os,;t t
8546 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8547 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8548 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8549 s,@CYGPATH_W@,$CYGPATH_W,;t t
8550 s,@PACKAGE@,$PACKAGE,;t t
8551 s,@VERSION@,$VERSION,;t t
8552 s,@ACLOCAL@,$ACLOCAL,;t t
8553 s,@AUTOCONF@,$AUTOCONF,;t t
8554 s,@AUTOMAKE@,$AUTOMAKE,;t t
8555 s,@AUTOHEADER@,$AUTOHEADER,;t t
8556 s,@MAKEINFO@,$MAKEINFO,;t t
8557 s,@install_sh@,$install_sh,;t t
8558 s,@STRIP@,$STRIP,;t t
8559 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8560 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8561 s,@mkdir_p@,$mkdir_p,;t t
8562 s,@AWK@,$AWK,;t t
8563 s,@SET_MAKE@,$SET_MAKE,;t t
8564 s,@am__leading_dot@,$am__leading_dot,;t t
8565 s,@AMTAR@,$AMTAR,;t t
8566 s,@am__tar@,$am__tar,;t t
8567 s,@am__untar@,$am__untar,;t t
8568 s,@CC@,$CC,;t t
8569 s,@ac_ct_CC@,$ac_ct_CC,;t t
8570 s,@EXEEXT@,$EXEEXT,;t t
8571 s,@OBJEXT@,$OBJEXT,;t t
8572 s,@DEPDIR@,$DEPDIR,;t t
8573 s,@am__include@,$am__include,;t t
8574 s,@am__quote@,$am__quote,;t t
8575 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8576 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8577 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8578 s,@CCDEPMODE@,$CCDEPMODE,;t t
8579 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8580 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8581 s,@CFLAGS@,$CFLAGS,;t t
8582 s,@CCAS@,$CCAS,;t t
8583 s,@CCASFLAGS@,$CCASFLAGS,;t t
8584 s,@LN_S@,$LN_S,;t t
8585 s,@RANLIB@,$RANLIB,;t t
8586 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8587 s,@LIBTOOL@,$LIBTOOL,;t t
8588 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8589 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8590 s,@MAINT@,$MAINT,;t t
8591 s,@CPP@,$CPP,;t t
8592 s,@CPPFLAGS@,$CPPFLAGS,;t t
8593 s,@EGREP@,$EGREP,;t t
8594 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
8595 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
8596 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8597 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
8598 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
8599 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
8600 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
8601 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
8602 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
8603 s,@X86_TRUE@,$X86_TRUE,;t t
8604 s,@X86_FALSE@,$X86_FALSE,;t t
8605 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
8606 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
8607 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
8608 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
8609 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
8610 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
8611 s,@IA64_TRUE@,$IA64_TRUE,;t t
8612 s,@IA64_FALSE@,$IA64_FALSE,;t t
8613 s,@M32R_TRUE@,$M32R_TRUE,;t t
8614 s,@M32R_FALSE@,$M32R_FALSE,;t t
8615 s,@M68K_TRUE@,$M68K_TRUE,;t t
8616 s,@M68K_FALSE@,$M68K_FALSE,;t t
8617 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
8618 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
8619 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
8620 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
8621 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
8622 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
8623 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
8624 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
8625 s,@ARM_TRUE@,$ARM_TRUE,;t t
8626 s,@ARM_FALSE@,$ARM_FALSE,;t t
8627 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
8628 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
8629 s,@FRV_TRUE@,$FRV_TRUE,;t t
8630 s,@FRV_FALSE@,$FRV_FALSE,;t t
8631 s,@S390_TRUE@,$S390_TRUE,;t t
8632 s,@S390_FALSE@,$S390_FALSE,;t t
8633 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
8634 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
8635 s,@SH_TRUE@,$SH_TRUE,;t t
8636 s,@SH_FALSE@,$SH_FALSE,;t t
8637 s,@SH64_TRUE@,$SH64_TRUE,;t t
8638 s,@SH64_FALSE@,$SH64_FALSE,;t t
8639 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
8640 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
8641 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
8642 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
8643 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
8644 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
8645 s,@ALLOCA@,$ALLOCA,;t t
8646 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
8647 s,@TARGET@,$TARGET,;t t
8648 s,@TARGETDIR@,$TARGETDIR,;t t
8649 s,@toolexecdir@,$toolexecdir,;t t
8650 s,@toolexeclibdir@,$toolexeclibdir,;t t
8651 s,@LIBOBJS@,$LIBOBJS,;t t
8652 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8653 CEOF
8655 _ACEOF
8657 cat >>$CONFIG_STATUS <<\_ACEOF
8658 # Split the substitutions into bite-sized pieces for seds with
8659 # small command number limits, like on Digital OSF/1 and HP-UX.
8660 ac_max_sed_lines=48
8661 ac_sed_frag=1 # Number of current file.
8662 ac_beg=1 # First line for current file.
8663 ac_end=$ac_max_sed_lines # Line after last line for current file.
8664 ac_more_lines=:
8665 ac_sed_cmds=
8666 while $ac_more_lines; do
8667 if test $ac_beg -gt 1; then
8668 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8669 else
8670 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8672 if test ! -s $tmp/subs.frag; then
8673 ac_more_lines=false
8674 else
8675 # The purpose of the label and of the branching condition is to
8676 # speed up the sed processing (if there are no `@' at all, there
8677 # is no need to browse any of the substitutions).
8678 # These are the two extra sed commands mentioned above.
8679 (echo ':t
8680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8681 if test -z "$ac_sed_cmds"; then
8682 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8683 else
8684 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8686 ac_sed_frag=`expr $ac_sed_frag + 1`
8687 ac_beg=$ac_end
8688 ac_end=`expr $ac_end + $ac_max_sed_lines`
8690 done
8691 if test -z "$ac_sed_cmds"; then
8692 ac_sed_cmds=cat
8694 fi # test -n "$CONFIG_FILES"
8696 _ACEOF
8697 cat >>$CONFIG_STATUS <<\_ACEOF
8698 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8700 case $ac_file in
8701 - | *:- | *:-:* ) # input from stdin
8702 cat >$tmp/stdin
8703 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8704 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8705 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8707 * ) ac_file_in=$ac_file.in ;;
8708 esac
8710 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8711 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8713 X"$ac_file" : 'X\(//\)[^/]' \| \
8714 X"$ac_file" : 'X\(//\)$' \| \
8715 X"$ac_file" : 'X\(/\)' \| \
8716 . : '\(.\)' 2>/dev/null ||
8717 echo X"$ac_file" |
8718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8720 /^X\(\/\/\)$/{ s//\1/; q; }
8721 /^X\(\/\).*/{ s//\1/; q; }
8722 s/.*/./; q'`
8723 { if $as_mkdir_p; then
8724 mkdir -p "$ac_dir"
8725 else
8726 as_dir="$ac_dir"
8727 as_dirs=
8728 while test ! -d "$as_dir"; do
8729 as_dirs="$as_dir $as_dirs"
8730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8732 X"$as_dir" : 'X\(//\)[^/]' \| \
8733 X"$as_dir" : 'X\(//\)$' \| \
8734 X"$as_dir" : 'X\(/\)' \| \
8735 . : '\(.\)' 2>/dev/null ||
8736 echo X"$as_dir" |
8737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8739 /^X\(\/\/\)$/{ s//\1/; q; }
8740 /^X\(\/\).*/{ s//\1/; q; }
8741 s/.*/./; q'`
8742 done
8743 test ! -n "$as_dirs" || mkdir $as_dirs
8744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8746 { (exit 1); exit 1; }; }; }
8748 ac_builddir=.
8750 if test "$ac_dir" != .; then
8751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8752 # A "../" for each directory in $ac_dir_suffix.
8753 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8754 else
8755 ac_dir_suffix= ac_top_builddir=
8758 case $srcdir in
8759 .) # No --srcdir option. We are building in place.
8760 ac_srcdir=.
8761 if test -z "$ac_top_builddir"; then
8762 ac_top_srcdir=.
8763 else
8764 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8765 fi ;;
8766 [\\/]* | ?:[\\/]* ) # Absolute path.
8767 ac_srcdir=$srcdir$ac_dir_suffix;
8768 ac_top_srcdir=$srcdir ;;
8769 *) # Relative path.
8770 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8771 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8772 esac
8774 # Do not use `cd foo && pwd` to compute absolute paths, because
8775 # the directories may not exist.
8776 case `pwd` in
8777 .) ac_abs_builddir="$ac_dir";;
8779 case "$ac_dir" in
8780 .) ac_abs_builddir=`pwd`;;
8781 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8782 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8783 esac;;
8784 esac
8785 case $ac_abs_builddir in
8786 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8788 case ${ac_top_builddir}. in
8789 .) ac_abs_top_builddir=$ac_abs_builddir;;
8790 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8791 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8792 esac;;
8793 esac
8794 case $ac_abs_builddir in
8795 .) ac_abs_srcdir=$ac_srcdir;;
8797 case $ac_srcdir in
8798 .) ac_abs_srcdir=$ac_abs_builddir;;
8799 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8800 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8801 esac;;
8802 esac
8803 case $ac_abs_builddir in
8804 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8806 case $ac_top_srcdir in
8807 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8808 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8809 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8810 esac;;
8811 esac
8814 case $INSTALL in
8815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8816 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8817 esac
8819 if test x"$ac_file" != x-; then
8820 { echo "$as_me:$LINENO: creating $ac_file" >&5
8821 echo "$as_me: creating $ac_file" >&6;}
8822 rm -f "$ac_file"
8824 # Let's still pretend it is `configure' which instantiates (i.e., don't
8825 # use $as_me), people would be surprised to read:
8826 # /* config.h. Generated by config.status. */
8827 if test x"$ac_file" = x-; then
8828 configure_input=
8829 else
8830 configure_input="$ac_file. "
8832 configure_input=$configure_input"Generated from `echo $ac_file_in |
8833 sed 's,.*/,,'` by configure."
8835 # First look for the input files in the build tree, otherwise in the
8836 # src tree.
8837 ac_file_inputs=`IFS=:
8838 for f in $ac_file_in; do
8839 case $f in
8840 -) echo $tmp/stdin ;;
8841 [\\/$]*)
8842 # Absolute (can't be DOS-style, as IFS=:)
8843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8844 echo "$as_me: error: cannot find input file: $f" >&2;}
8845 { (exit 1); exit 1; }; }
8846 echo "$f";;
8847 *) # Relative
8848 if test -f "$f"; then
8849 # Build tree
8850 echo "$f"
8851 elif test -f "$srcdir/$f"; then
8852 # Source tree
8853 echo "$srcdir/$f"
8854 else
8855 # /dev/null tree
8856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8857 echo "$as_me: error: cannot find input file: $f" >&2;}
8858 { (exit 1); exit 1; }; }
8859 fi;;
8860 esac
8861 done` || { (exit 1); exit 1; }
8862 _ACEOF
8863 cat >>$CONFIG_STATUS <<_ACEOF
8864 sed "$ac_vpsub
8865 $extrasub
8866 _ACEOF
8867 cat >>$CONFIG_STATUS <<\_ACEOF
8869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8870 s,@configure_input@,$configure_input,;t t
8871 s,@srcdir@,$ac_srcdir,;t t
8872 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8873 s,@top_srcdir@,$ac_top_srcdir,;t t
8874 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8875 s,@builddir@,$ac_builddir,;t t
8876 s,@abs_builddir@,$ac_abs_builddir,;t t
8877 s,@top_builddir@,$ac_top_builddir,;t t
8878 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8879 s,@INSTALL@,$ac_INSTALL,;t t
8880 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8881 rm -f $tmp/stdin
8882 if test x"$ac_file" != x-; then
8883 mv $tmp/out $ac_file
8884 else
8885 cat $tmp/out
8886 rm -f $tmp/out
8889 done
8890 _ACEOF
8891 cat >>$CONFIG_STATUS <<\_ACEOF
8894 # CONFIG_HEADER section.
8897 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8898 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8900 # ac_d sets the value in "#define NAME VALUE" lines.
8901 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8902 ac_dB='[ ].*$,\1#\2'
8903 ac_dC=' '
8904 ac_dD=',;t'
8905 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8906 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8907 ac_uB='$,\1#\2define\3'
8908 ac_uC=' '
8909 ac_uD=',;t'
8911 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8913 case $ac_file in
8914 - | *:- | *:-:* ) # input from stdin
8915 cat >$tmp/stdin
8916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8920 * ) ac_file_in=$ac_file.in ;;
8921 esac
8923 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8924 echo "$as_me: creating $ac_file" >&6;}
8926 # First look for the input files in the build tree, otherwise in the
8927 # src tree.
8928 ac_file_inputs=`IFS=:
8929 for f in $ac_file_in; do
8930 case $f in
8931 -) echo $tmp/stdin ;;
8932 [\\/$]*)
8933 # Absolute (can't be DOS-style, as IFS=:)
8934 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8935 echo "$as_me: error: cannot find input file: $f" >&2;}
8936 { (exit 1); exit 1; }; }
8937 # Do quote $f, to prevent DOS paths from being IFS'd.
8938 echo "$f";;
8939 *) # Relative
8940 if test -f "$f"; then
8941 # Build tree
8942 echo "$f"
8943 elif test -f "$srcdir/$f"; then
8944 # Source tree
8945 echo "$srcdir/$f"
8946 else
8947 # /dev/null tree
8948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8949 echo "$as_me: error: cannot find input file: $f" >&2;}
8950 { (exit 1); exit 1; }; }
8951 fi;;
8952 esac
8953 done` || { (exit 1); exit 1; }
8954 # Remove the trailing spaces.
8955 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8957 _ACEOF
8959 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8960 # `conftest.undefs', that substitutes the proper values into
8961 # config.h.in to produce config.h. The first handles `#define'
8962 # templates, and the second `#undef' templates.
8963 # And first: Protect against being on the right side of a sed subst in
8964 # config.status. Protect against being in an unquoted here document
8965 # in config.status.
8966 rm -f conftest.defines conftest.undefs
8967 # Using a here document instead of a string reduces the quoting nightmare.
8968 # Putting comments in sed scripts is not portable.
8970 # `end' is used to avoid that the second main sed command (meant for
8971 # 0-ary CPP macros) applies to n-ary macro definitions.
8972 # See the Autoconf documentation for `clear'.
8973 cat >confdef2sed.sed <<\_ACEOF
8974 s/[\\&,]/\\&/g
8975 s,[\\$`],\\&,g
8976 t clear
8977 : clear
8978 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8979 t end
8980 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8981 : end
8982 _ACEOF
8983 # If some macros were called several times there might be several times
8984 # the same #defines, which is useless. Nevertheless, we may not want to
8985 # sort them, since we want the *last* AC-DEFINE to be honored.
8986 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8987 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8988 rm -f confdef2sed.sed
8990 # This sed command replaces #undef with comments. This is necessary, for
8991 # example, in the case of _POSIX_SOURCE, which is predefined and required
8992 # on some systems where configure will not decide to define it.
8993 cat >>conftest.undefs <<\_ACEOF
8994 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8995 _ACEOF
8997 # Break up conftest.defines because some shells have a limit on the size
8998 # of here documents, and old seds have small limits too (100 cmds).
8999 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9000 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9001 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9002 echo ' :' >>$CONFIG_STATUS
9003 rm -f conftest.tail
9004 while grep . conftest.defines >/dev/null
9006 # Write a limited-size here document to $tmp/defines.sed.
9007 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9008 # Speed up: don't consider the non `#define' lines.
9009 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9010 # Work around the forget-to-reset-the-flag bug.
9011 echo 't clr' >>$CONFIG_STATUS
9012 echo ': clr' >>$CONFIG_STATUS
9013 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9014 echo 'CEOF
9015 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9016 rm -f $tmp/in
9017 mv $tmp/out $tmp/in
9018 ' >>$CONFIG_STATUS
9019 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9020 rm -f conftest.defines
9021 mv conftest.tail conftest.defines
9022 done
9023 rm -f conftest.defines
9024 echo ' fi # grep' >>$CONFIG_STATUS
9025 echo >>$CONFIG_STATUS
9027 # Break up conftest.undefs because some shells have a limit on the size
9028 # of here documents, and old seds have small limits too (100 cmds).
9029 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9030 rm -f conftest.tail
9031 while grep . conftest.undefs >/dev/null
9033 # Write a limited-size here document to $tmp/undefs.sed.
9034 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9035 # Speed up: don't consider the non `#undef'
9036 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9037 # Work around the forget-to-reset-the-flag bug.
9038 echo 't clr' >>$CONFIG_STATUS
9039 echo ': clr' >>$CONFIG_STATUS
9040 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9041 echo 'CEOF
9042 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9043 rm -f $tmp/in
9044 mv $tmp/out $tmp/in
9045 ' >>$CONFIG_STATUS
9046 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9047 rm -f conftest.undefs
9048 mv conftest.tail conftest.undefs
9049 done
9050 rm -f conftest.undefs
9052 cat >>$CONFIG_STATUS <<\_ACEOF
9053 # Let's still pretend it is `configure' which instantiates (i.e., don't
9054 # use $as_me), people would be surprised to read:
9055 # /* config.h. Generated by config.status. */
9056 if test x"$ac_file" = x-; then
9057 echo "/* Generated by configure. */" >$tmp/config.h
9058 else
9059 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9061 cat $tmp/in >>$tmp/config.h
9062 rm -f $tmp/in
9063 if test x"$ac_file" != x-; then
9064 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9065 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9066 echo "$as_me: $ac_file is unchanged" >&6;}
9067 else
9068 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9070 X"$ac_file" : 'X\(//\)[^/]' \| \
9071 X"$ac_file" : 'X\(//\)$' \| \
9072 X"$ac_file" : 'X\(/\)' \| \
9073 . : '\(.\)' 2>/dev/null ||
9074 echo X"$ac_file" |
9075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9077 /^X\(\/\/\)$/{ s//\1/; q; }
9078 /^X\(\/\).*/{ s//\1/; q; }
9079 s/.*/./; q'`
9080 { if $as_mkdir_p; then
9081 mkdir -p "$ac_dir"
9082 else
9083 as_dir="$ac_dir"
9084 as_dirs=
9085 while test ! -d "$as_dir"; do
9086 as_dirs="$as_dir $as_dirs"
9087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9089 X"$as_dir" : 'X\(//\)[^/]' \| \
9090 X"$as_dir" : 'X\(//\)$' \| \
9091 X"$as_dir" : 'X\(/\)' \| \
9092 . : '\(.\)' 2>/dev/null ||
9093 echo X"$as_dir" |
9094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9096 /^X\(\/\/\)$/{ s//\1/; q; }
9097 /^X\(\/\).*/{ s//\1/; q; }
9098 s/.*/./; q'`
9099 done
9100 test ! -n "$as_dirs" || mkdir $as_dirs
9101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9103 { (exit 1); exit 1; }; }; }
9105 rm -f $ac_file
9106 mv $tmp/config.h $ac_file
9108 else
9109 cat $tmp/config.h
9110 rm -f $tmp/config.h
9112 # Compute $ac_file's index in $config_headers.
9113 _am_stamp_count=1
9114 for _am_header in $config_headers :; do
9115 case $_am_header in
9116 $ac_file | $ac_file:* )
9117 break ;;
9119 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9120 esac
9121 done
9122 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9123 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9124 X$ac_file : 'X\(//\)[^/]' \| \
9125 X$ac_file : 'X\(//\)$' \| \
9126 X$ac_file : 'X\(/\)' \| \
9127 . : '\(.\)' 2>/dev/null ||
9128 echo X$ac_file |
9129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9131 /^X\(\/\/\)$/{ s//\1/; q; }
9132 /^X\(\/\).*/{ s//\1/; q; }
9133 s/.*/./; q'`/stamp-h$_am_stamp_count
9134 done
9135 _ACEOF
9136 cat >>$CONFIG_STATUS <<\_ACEOF
9139 # CONFIG_LINKS section.
9142 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9143 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9144 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9146 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9147 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9149 if test ! -r $srcdir/$ac_source; then
9150 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9151 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9152 { (exit 1); exit 1; }; }
9154 rm -f $ac_dest
9156 # Make relative symlinks.
9157 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9159 X"$ac_dest" : 'X\(//\)[^/]' \| \
9160 X"$ac_dest" : 'X\(//\)$' \| \
9161 X"$ac_dest" : 'X\(/\)' \| \
9162 . : '\(.\)' 2>/dev/null ||
9163 echo X"$ac_dest" |
9164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9166 /^X\(\/\/\)$/{ s//\1/; q; }
9167 /^X\(\/\).*/{ s//\1/; q; }
9168 s/.*/./; q'`
9169 { if $as_mkdir_p; then
9170 mkdir -p "$ac_dest_dir"
9171 else
9172 as_dir="$ac_dest_dir"
9173 as_dirs=
9174 while test ! -d "$as_dir"; do
9175 as_dirs="$as_dir $as_dirs"
9176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9178 X"$as_dir" : 'X\(//\)[^/]' \| \
9179 X"$as_dir" : 'X\(//\)$' \| \
9180 X"$as_dir" : 'X\(/\)' \| \
9181 . : '\(.\)' 2>/dev/null ||
9182 echo X"$as_dir" |
9183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9185 /^X\(\/\/\)$/{ s//\1/; q; }
9186 /^X\(\/\).*/{ s//\1/; q; }
9187 s/.*/./; q'`
9188 done
9189 test ! -n "$as_dirs" || mkdir $as_dirs
9190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9191 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9192 { (exit 1); exit 1; }; }; }
9194 ac_builddir=.
9196 if test "$ac_dest_dir" != .; then
9197 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9198 # A "../" for each directory in $ac_dir_suffix.
9199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9200 else
9201 ac_dir_suffix= ac_top_builddir=
9204 case $srcdir in
9205 .) # No --srcdir option. We are building in place.
9206 ac_srcdir=.
9207 if test -z "$ac_top_builddir"; then
9208 ac_top_srcdir=.
9209 else
9210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9211 fi ;;
9212 [\\/]* | ?:[\\/]* ) # Absolute path.
9213 ac_srcdir=$srcdir$ac_dir_suffix;
9214 ac_top_srcdir=$srcdir ;;
9215 *) # Relative path.
9216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9218 esac
9220 # Do not use `cd foo && pwd` to compute absolute paths, because
9221 # the directories may not exist.
9222 case `pwd` in
9223 .) ac_abs_builddir="$ac_dest_dir";;
9225 case "$ac_dest_dir" in
9226 .) ac_abs_builddir=`pwd`;;
9227 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9228 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9229 esac;;
9230 esac
9231 case $ac_abs_builddir in
9232 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9234 case ${ac_top_builddir}. in
9235 .) ac_abs_top_builddir=$ac_abs_builddir;;
9236 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9237 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9238 esac;;
9239 esac
9240 case $ac_abs_builddir in
9241 .) ac_abs_srcdir=$ac_srcdir;;
9243 case $ac_srcdir in
9244 .) ac_abs_srcdir=$ac_abs_builddir;;
9245 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9246 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9247 esac;;
9248 esac
9249 case $ac_abs_builddir in
9250 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9252 case $ac_top_srcdir in
9253 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9254 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9255 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9256 esac;;
9257 esac
9260 case $srcdir in
9261 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9262 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9263 esac
9265 # Try a symlink, then a hard link, then a copy.
9266 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9267 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9268 cp -p $srcdir/$ac_source $ac_dest ||
9269 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9270 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9271 { (exit 1); exit 1; }; }
9272 done
9273 _ACEOF
9274 cat >>$CONFIG_STATUS <<\_ACEOF
9277 # CONFIG_COMMANDS section.
9279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9280 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9281 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9282 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9284 X"$ac_dest" : 'X\(//\)[^/]' \| \
9285 X"$ac_dest" : 'X\(//\)$' \| \
9286 X"$ac_dest" : 'X\(/\)' \| \
9287 . : '\(.\)' 2>/dev/null ||
9288 echo X"$ac_dest" |
9289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9291 /^X\(\/\/\)$/{ s//\1/; q; }
9292 /^X\(\/\).*/{ s//\1/; q; }
9293 s/.*/./; q'`
9294 { if $as_mkdir_p; then
9295 mkdir -p "$ac_dir"
9296 else
9297 as_dir="$ac_dir"
9298 as_dirs=
9299 while test ! -d "$as_dir"; do
9300 as_dirs="$as_dir $as_dirs"
9301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9303 X"$as_dir" : 'X\(//\)[^/]' \| \
9304 X"$as_dir" : 'X\(//\)$' \| \
9305 X"$as_dir" : 'X\(/\)' \| \
9306 . : '\(.\)' 2>/dev/null ||
9307 echo X"$as_dir" |
9308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9310 /^X\(\/\/\)$/{ s//\1/; q; }
9311 /^X\(\/\).*/{ s//\1/; q; }
9312 s/.*/./; q'`
9313 done
9314 test ! -n "$as_dirs" || mkdir $as_dirs
9315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9317 { (exit 1); exit 1; }; }; }
9319 ac_builddir=.
9321 if test "$ac_dir" != .; then
9322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9323 # A "../" for each directory in $ac_dir_suffix.
9324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9325 else
9326 ac_dir_suffix= ac_top_builddir=
9329 case $srcdir in
9330 .) # No --srcdir option. We are building in place.
9331 ac_srcdir=.
9332 if test -z "$ac_top_builddir"; then
9333 ac_top_srcdir=.
9334 else
9335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9336 fi ;;
9337 [\\/]* | ?:[\\/]* ) # Absolute path.
9338 ac_srcdir=$srcdir$ac_dir_suffix;
9339 ac_top_srcdir=$srcdir ;;
9340 *) # Relative path.
9341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9343 esac
9345 # Do not use `cd foo && pwd` to compute absolute paths, because
9346 # the directories may not exist.
9347 case `pwd` in
9348 .) ac_abs_builddir="$ac_dir";;
9350 case "$ac_dir" in
9351 .) ac_abs_builddir=`pwd`;;
9352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9354 esac;;
9355 esac
9356 case $ac_abs_builddir in
9357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9359 case ${ac_top_builddir}. in
9360 .) ac_abs_top_builddir=$ac_abs_builddir;;
9361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9363 esac;;
9364 esac
9365 case $ac_abs_builddir in
9366 .) ac_abs_srcdir=$ac_srcdir;;
9368 case $ac_srcdir in
9369 .) ac_abs_srcdir=$ac_abs_builddir;;
9370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9372 esac;;
9373 esac
9374 case $ac_abs_builddir in
9375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9377 case $ac_top_srcdir in
9378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9381 esac;;
9382 esac
9385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9386 echo "$as_me: executing $ac_dest commands" >&6;}
9387 case $ac_dest in
9388 default-1 )
9389 # Only add multilib support code if we just rebuilt the top-level
9390 # Makefile.
9391 case " $CONFIG_FILES " in
9392 *" Makefile "*)
9393 ac_file=Makefile . ${multi_basedir}/config-ml.in
9395 esac ;;
9396 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9397 # Strip MF so we end up with the name of the file.
9398 mf=`echo "$mf" | sed -e 's/:.*$//'`
9399 # Check whether this is an Automake generated Makefile or not.
9400 # We used to match only the files named `Makefile.in', but
9401 # some people rename them; so instead we look at the file content.
9402 # Grep'ing the first line is not enough: some people post-process
9403 # each Makefile.in and add a new line on top of each file to say so.
9404 # So let's grep whole file.
9405 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9406 dirpart=`(dirname "$mf") 2>/dev/null ||
9407 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9408 X"$mf" : 'X\(//\)[^/]' \| \
9409 X"$mf" : 'X\(//\)$' \| \
9410 X"$mf" : 'X\(/\)' \| \
9411 . : '\(.\)' 2>/dev/null ||
9412 echo X"$mf" |
9413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9415 /^X\(\/\/\)$/{ s//\1/; q; }
9416 /^X\(\/\).*/{ s//\1/; q; }
9417 s/.*/./; q'`
9418 else
9419 continue
9421 # Extract the definition of DEPDIR, am__include, and am__quote
9422 # from the Makefile without running `make'.
9423 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9424 test -z "$DEPDIR" && continue
9425 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9426 test -z "am__include" && continue
9427 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9428 # When using ansi2knr, U may be empty or an underscore; expand it
9429 U=`sed -n 's/^U = //p' < "$mf"`
9430 # Find all dependency output files, they are included files with
9431 # $(DEPDIR) in their names. We invoke sed twice because it is the
9432 # simplest approach to changing $(DEPDIR) to its actual value in the
9433 # expansion.
9434 for file in `sed -n "
9435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9437 # Make sure the directory exists.
9438 test -f "$dirpart/$file" && continue
9439 fdir=`(dirname "$file") 2>/dev/null ||
9440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9441 X"$file" : 'X\(//\)[^/]' \| \
9442 X"$file" : 'X\(//\)$' \| \
9443 X"$file" : 'X\(/\)' \| \
9444 . : '\(.\)' 2>/dev/null ||
9445 echo X"$file" |
9446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9448 /^X\(\/\/\)$/{ s//\1/; q; }
9449 /^X\(\/\).*/{ s//\1/; q; }
9450 s/.*/./; q'`
9451 { if $as_mkdir_p; then
9452 mkdir -p $dirpart/$fdir
9453 else
9454 as_dir=$dirpart/$fdir
9455 as_dirs=
9456 while test ! -d "$as_dir"; do
9457 as_dirs="$as_dir $as_dirs"
9458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9460 X"$as_dir" : 'X\(//\)[^/]' \| \
9461 X"$as_dir" : 'X\(//\)$' \| \
9462 X"$as_dir" : 'X\(/\)' \| \
9463 . : '\(.\)' 2>/dev/null ||
9464 echo X"$as_dir" |
9465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9467 /^X\(\/\/\)$/{ s//\1/; q; }
9468 /^X\(\/\).*/{ s//\1/; q; }
9469 s/.*/./; q'`
9470 done
9471 test ! -n "$as_dirs" || mkdir $as_dirs
9472 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9473 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9474 { (exit 1); exit 1; }; }; }
9476 # echo "creating $dirpart/$file"
9477 echo '# dummy' > "$dirpart/$file"
9478 done
9479 done
9481 include ) test -d include || mkdir include ;;
9482 src )
9483 test -d src || mkdir src
9484 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
9486 esac
9487 done
9488 _ACEOF
9490 cat >>$CONFIG_STATUS <<\_ACEOF
9492 { (exit 0); exit 0; }
9493 _ACEOF
9494 chmod +x $CONFIG_STATUS
9495 ac_clean_files=$ac_clean_files_save
9498 # configure is writing to config.log, and then calls config.status.
9499 # config.status does its own redirection, appending to config.log.
9500 # Unfortunately, on DOS this fails, as config.log is still kept open
9501 # by configure, so config.status won't be able to write to it; its
9502 # output is simply discarded. So we exec the FD to /dev/null,
9503 # effectively closing config.log, so it can be properly (re)opened and
9504 # appended to by config.status. When coming back to configure, we
9505 # need to make the FD available again.
9506 if test "$no_create" != yes; then
9507 ac_cs_success=:
9508 ac_config_status_args=
9509 test "$silent" = yes &&
9510 ac_config_status_args="$ac_config_status_args --quiet"
9511 exec 5>/dev/null
9512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9513 exec 5>>config.log
9514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9515 # would make configure fail if this is the last instruction.
9516 $ac_cs_success || { (exit 1); exit 1; }