2007-03-01 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / libffi / configure
blob0d289de3b368f2dfacb79b0e2c92b11f955986fa
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) TARGET=ALPHA; TARGETDIR=alpha;;
5405 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5406 m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
5407 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5408 mips64*-*);;
5409 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5410 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5411 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5412 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5413 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5414 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5415 powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;;
5416 powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;;
5417 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5418 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5419 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5420 arm*-*-rtems*) TARGET=ARM; TARGETDIR=arm;;
5421 cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
5422 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5423 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5424 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5425 x86_64-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
5426 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5427 sh-*-rtems*) TARGET=SH; TARGETDIR=sh;;
5428 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5429 hppa*-*-linux* | parisc*-*-linux*) TARGET=PA_LINUX; TARGETDIR=pa;;
5430 hppa*64-*-hpux*) TARGET=PA64_HPUX; TARGETDIR=pa;;
5431 hppa*-*-hpux*) TARGET=PA_HPUX; TARGETDIR=pa;;
5432 esac
5436 if test $TARGETDIR = unknown; then
5437 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5438 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5439 { (exit 1); exit 1; }; }
5444 if test x$TARGET = xMIPS_IRIX; then
5445 MIPS_IRIX_TRUE=
5446 MIPS_IRIX_FALSE='#'
5447 else
5448 MIPS_IRIX_TRUE='#'
5449 MIPS_IRIX_FALSE=
5454 if test x$TARGET = xMIPS_LINUX; then
5455 MIPS_LINUX_TRUE=
5456 MIPS_LINUX_FALSE='#'
5457 else
5458 MIPS_LINUX_TRUE='#'
5459 MIPS_LINUX_FALSE=
5464 if test x$TARGET = xSPARC; then
5465 SPARC_TRUE=
5466 SPARC_FALSE='#'
5467 else
5468 SPARC_TRUE='#'
5469 SPARC_FALSE=
5474 if test x$TARGET = xX86; then
5475 X86_TRUE=
5476 X86_FALSE='#'
5477 else
5478 X86_TRUE='#'
5479 X86_FALSE=
5484 if test x$TARGET = xX86_WIN32; then
5485 X86_WIN32_TRUE=
5486 X86_WIN32_FALSE='#'
5487 else
5488 X86_WIN32_TRUE='#'
5489 X86_WIN32_FALSE=
5494 if test x$TARGET = xX86_DARWIN; then
5495 X86_DARWIN_TRUE=
5496 X86_DARWIN_FALSE='#'
5497 else
5498 X86_DARWIN_TRUE='#'
5499 X86_DARWIN_FALSE=
5504 if test x$TARGET = xALPHA; then
5505 ALPHA_TRUE=
5506 ALPHA_FALSE='#'
5507 else
5508 ALPHA_TRUE='#'
5509 ALPHA_FALSE=
5514 if test x$TARGET = xIA64; then
5515 IA64_TRUE=
5516 IA64_FALSE='#'
5517 else
5518 IA64_TRUE='#'
5519 IA64_FALSE=
5524 if test x$TARGET = xM32R; then
5525 M32R_TRUE=
5526 M32R_FALSE='#'
5527 else
5528 M32R_TRUE='#'
5529 M32R_FALSE=
5534 if test x$TARGET = xM68K; then
5535 M68K_TRUE=
5536 M68K_FALSE='#'
5537 else
5538 M68K_TRUE='#'
5539 M68K_FALSE=
5544 if test x$TARGET = xPOWERPC; then
5545 POWERPC_TRUE=
5546 POWERPC_FALSE='#'
5547 else
5548 POWERPC_TRUE='#'
5549 POWERPC_FALSE=
5554 if test x$TARGET = xPOWERPC_AIX; then
5555 POWERPC_AIX_TRUE=
5556 POWERPC_AIX_FALSE='#'
5557 else
5558 POWERPC_AIX_TRUE='#'
5559 POWERPC_AIX_FALSE=
5564 if test x$TARGET = xPOWERPC_DARWIN; then
5565 POWERPC_DARWIN_TRUE=
5566 POWERPC_DARWIN_FALSE='#'
5567 else
5568 POWERPC_DARWIN_TRUE='#'
5569 POWERPC_DARWIN_FALSE=
5574 if test x$TARGET = xPOWERPC_FREEBSD; then
5575 POWERPC_FREEBSD_TRUE=
5576 POWERPC_FREEBSD_FALSE='#'
5577 else
5578 POWERPC_FREEBSD_TRUE='#'
5579 POWERPC_FREEBSD_FALSE=
5584 if test x$TARGET = xARM; then
5585 ARM_TRUE=
5586 ARM_FALSE='#'
5587 else
5588 ARM_TRUE='#'
5589 ARM_FALSE=
5594 if test x$TARGET = xLIBFFI_CRIS; then
5595 LIBFFI_CRIS_TRUE=
5596 LIBFFI_CRIS_FALSE='#'
5597 else
5598 LIBFFI_CRIS_TRUE='#'
5599 LIBFFI_CRIS_FALSE=
5604 if test x$TARGET = xFRV; then
5605 FRV_TRUE=
5606 FRV_FALSE='#'
5607 else
5608 FRV_TRUE='#'
5609 FRV_FALSE=
5614 if test x$TARGET = xS390; then
5615 S390_TRUE=
5616 S390_FALSE='#'
5617 else
5618 S390_TRUE='#'
5619 S390_FALSE=
5624 if test x$TARGET = xX86_64; then
5625 X86_64_TRUE=
5626 X86_64_FALSE='#'
5627 else
5628 X86_64_TRUE='#'
5629 X86_64_FALSE=
5634 if test x$TARGET = xSH; then
5635 SH_TRUE=
5636 SH_FALSE='#'
5637 else
5638 SH_TRUE='#'
5639 SH_FALSE=
5644 if test x$TARGET = xSH64; then
5645 SH64_TRUE=
5646 SH64_FALSE='#'
5647 else
5648 SH64_TRUE='#'
5649 SH64_FALSE=
5654 if test x$TARGET = xPA_LINUX; then
5655 PA_LINUX_TRUE=
5656 PA_LINUX_FALSE='#'
5657 else
5658 PA_LINUX_TRUE='#'
5659 PA_LINUX_FALSE=
5664 if test x$TARGET = xPA_HPUX; then
5665 PA_HPUX_TRUE=
5666 PA_HPUX_FALSE='#'
5667 else
5668 PA_HPUX_TRUE='#'
5669 PA_HPUX_FALSE=
5674 if test x$TARGET = xPA64_HPUX; then
5675 PA64_HPUX_TRUE=
5676 PA64_HPUX_FALSE='#'
5677 else
5678 PA64_HPUX_TRUE='#'
5679 PA64_HPUX_FALSE=
5683 case x$TARGET in
5684 xMIPS*) TARGET=MIPS ;;
5685 *) ;;
5686 esac
5688 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5690 if test "${ac_cv_header_stdc+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #include <stdlib.h>
5700 #include <stdarg.h>
5701 #include <string.h>
5702 #include <float.h>
5705 main ()
5709 return 0;
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_header_stdc=yes
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_header_stdc=no
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743 if test $ac_cv_header_stdc = yes; then
5744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <string.h>
5753 _ACEOF
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755 $EGREP "memchr" >/dev/null 2>&1; then
5757 else
5758 ac_cv_header_stdc=no
5760 rm -f conftest*
5764 if test $ac_cv_header_stdc = yes; then
5765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #include <stdlib.h>
5774 _ACEOF
5775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776 $EGREP "free" >/dev/null 2>&1; then
5778 else
5779 ac_cv_header_stdc=no
5781 rm -f conftest*
5785 if test $ac_cv_header_stdc = yes; then
5786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5787 if test "$cross_compiling" = yes; then
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 #include <ctype.h>
5797 #if ((' ' & 0x0FF) == 0x020)
5798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5800 #else
5801 # define ISLOWER(c) \
5802 (('a' <= (c) && (c) <= 'i') \
5803 || ('j' <= (c) && (c) <= 'r') \
5804 || ('s' <= (c) && (c) <= 'z'))
5805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5806 #endif
5808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5810 main ()
5812 int i;
5813 for (i = 0; i < 256; i++)
5814 if (XOR (islower (i), ISLOWER (i))
5815 || toupper (i) != TOUPPER (i))
5816 exit(2);
5817 exit (0);
5819 _ACEOF
5820 rm -f conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822 (eval $ac_link) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5832 else
5833 echo "$as_me: program exited with status $ac_status" >&5
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ( exit $ac_status )
5838 ac_cv_header_stdc=no
5840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5845 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5846 if test $ac_cv_header_stdc = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define STDC_HEADERS 1
5850 _ACEOF
5855 for ac_func in memcpy
5857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5858 echo "$as_me:$LINENO: checking for $ac_func" >&5
5859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5860 if eval "test \"\${$as_ac_var+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5871 #define $ac_func innocuous_$ac_func
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func (); below.
5875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 <limits.h> exists even on freestanding compilers. */
5878 #ifdef __STDC__
5879 # include <limits.h>
5880 #else
5881 # include <assert.h>
5882 #endif
5884 #undef $ac_func
5886 /* Override any gcc2 internal prototype to avoid an error. */
5887 #ifdef __cplusplus
5888 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char $ac_func ();
5894 /* The GNU C library defines this for functions which it implements
5895 to always fail with ENOSYS. Some functions are actually named
5896 something starting with __ and the normal name is an alias. */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 char (*f) () = $ac_func;
5901 #endif
5902 #ifdef __cplusplus
5904 #endif
5907 main ()
5909 return f != $ac_func;
5911 return 0;
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 eval "$as_ac_var=yes"
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 eval "$as_ac_var=no"
5943 rm -f conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5948 if test `eval echo '${'$as_ac_var'}'` = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5951 _ACEOF
5954 done
5956 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5957 # for constant arguments. Useless!
5958 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5959 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5960 if test "${ac_cv_working_alloca_h+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <alloca.h>
5971 main ()
5973 char *p = (char *) alloca (2 * sizeof (int));
5975 return 0;
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_working_alloca_h=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_cv_working_alloca_h=no
6007 rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6012 if test $ac_cv_working_alloca_h = yes; then
6014 cat >>confdefs.h <<\_ACEOF
6015 #define HAVE_ALLOCA_H 1
6016 _ACEOF
6020 echo "$as_me:$LINENO: checking for alloca" >&5
6021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6022 if test "${ac_cv_func_alloca_works+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #ifdef __GNUC__
6032 # define alloca __builtin_alloca
6033 #else
6034 # ifdef _MSC_VER
6035 # include <malloc.h>
6036 # define alloca _alloca
6037 # else
6038 # if HAVE_ALLOCA_H
6039 # include <alloca.h>
6040 # else
6041 # ifdef _AIX
6042 #pragma alloca
6043 # else
6044 # ifndef alloca /* predefined by HP cc +Olibcalls */
6045 char *alloca ();
6046 # endif
6047 # endif
6048 # endif
6049 # endif
6050 #endif
6053 main ()
6055 char *p = (char *) alloca (1);
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_c_werror_flag"
6070 || test ! -s conftest.err'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_func_alloca_works=yes
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_func_alloca_works=no
6089 rm -f conftest.err conftest.$ac_objext \
6090 conftest$ac_exeext conftest.$ac_ext
6092 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6093 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6095 if test $ac_cv_func_alloca_works = yes; then
6097 cat >>confdefs.h <<\_ACEOF
6098 #define HAVE_ALLOCA 1
6099 _ACEOF
6101 else
6102 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6103 # that cause trouble. Some versions do not even contain alloca or
6104 # contain a buggy version. If you still want to use their alloca,
6105 # use ar to extract alloca.o from them instead of compiling alloca.c.
6107 ALLOCA=alloca.$ac_objext
6109 cat >>confdefs.h <<\_ACEOF
6110 #define C_ALLOCA 1
6111 _ACEOF
6114 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6115 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6116 if test "${ac_cv_os_cray+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #if defined(CRAY) && ! defined(CRAY2)
6126 webecray
6127 #else
6128 wenotbecray
6129 #endif
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "webecray" >/dev/null 2>&1; then
6134 ac_cv_os_cray=yes
6135 else
6136 ac_cv_os_cray=no
6138 rm -f conftest*
6141 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6142 echo "${ECHO_T}$ac_cv_os_cray" >&6
6143 if test $ac_cv_os_cray = yes; then
6144 for ac_func in _getb67 GETB67 getb67; do
6145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6146 echo "$as_me:$LINENO: checking for $ac_func" >&5
6147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6148 if eval "test \"\${$as_ac_var+set}\" = set"; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6159 #define $ac_func innocuous_$ac_func
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func (); below.
6163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164 <limits.h> exists even on freestanding compilers. */
6166 #ifdef __STDC__
6167 # include <limits.h>
6168 #else
6169 # include <assert.h>
6170 #endif
6172 #undef $ac_func
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 #ifdef __cplusplus
6176 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6181 char $ac_func ();
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6186 choke me
6187 #else
6188 char (*f) () = $ac_func;
6189 #endif
6190 #ifdef __cplusplus
6192 #endif
6195 main ()
6197 return f != $ac_func;
6199 return 0;
6201 _ACEOF
6202 rm -f conftest.$ac_objext conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 eval "$as_ac_var=yes"
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 eval "$as_ac_var=no"
6231 rm -f conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6236 if test `eval echo '${'$as_ac_var'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define CRAY_STACKSEG_END $ac_func
6240 _ACEOF
6242 break
6245 done
6248 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6249 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6250 if test "${ac_cv_c_stack_direction+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 if test "$cross_compiling" = yes; then
6254 ac_cv_c_stack_direction=0
6255 else
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6263 find_stack_direction ()
6265 static char *addr = 0;
6266 auto char dummy;
6267 if (addr == 0)
6269 addr = &dummy;
6270 return find_stack_direction ();
6272 else
6273 return (&dummy > addr) ? 1 : -1;
6277 main ()
6279 exit (find_stack_direction () < 0);
6281 _ACEOF
6282 rm -f conftest$ac_exeext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_c_stack_direction=1
6294 else
6295 echo "$as_me: program exited with status $ac_status" >&5
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ( exit $ac_status )
6300 ac_cv_c_stack_direction=-1
6302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6306 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6308 cat >>confdefs.h <<_ACEOF
6309 #define STACK_DIRECTION $ac_cv_c_stack_direction
6310 _ACEOF
6316 echo "$as_me:$LINENO: checking for double" >&5
6317 echo $ECHO_N "checking for double... $ECHO_C" >&6
6318 if test "${ac_cv_type_double+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6329 main ()
6331 if ((double *) 0)
6332 return 0;
6333 if (sizeof (double))
6334 return 0;
6336 return 0;
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_type_double=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_type_double=no
6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6371 echo "${ECHO_T}$ac_cv_type_double" >&6
6373 echo "$as_me:$LINENO: checking size of double" >&5
6374 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6375 if test "${ac_cv_sizeof_double+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 if test "$ac_cv_type_double" = yes; then
6379 # The cast to unsigned long works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 if test "$cross_compiling" = yes; then
6384 # Depending upon the size, compute the lo and hi bounds.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6393 main ()
6395 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6396 test_array [0] = 0
6399 return 0;
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -z "$ac_c_werror_flag"
6412 || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_lo=0 ac_mid=0
6425 while :; do
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6434 main ()
6436 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6437 test_array [0] = 0
6440 return 0;
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag"
6453 || test ! -s conftest.err'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 (eval $ac_try) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_hi=$ac_mid; break
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 ac_lo=`expr $ac_mid + 1`
6471 if test $ac_lo -le $ac_mid; then
6472 ac_lo= ac_hi=
6473 break
6475 ac_mid=`expr 2 '*' $ac_mid + 1`
6477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 done
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 $ac_includes_default
6491 main ()
6493 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6494 test_array [0] = 0
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -z "$ac_c_werror_flag"
6510 || test ! -s conftest.err'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_hi=-1 ac_mid=-1
6523 while :; do
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6532 main ()
6534 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6535 test_array [0] = 0
6538 return 0;
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543 (eval $ac_compile) 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_c_werror_flag"
6551 || test ! -s conftest.err'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6563 ac_lo=$ac_mid; break
6564 else
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_hi=`expr '(' $ac_mid ')' - 1`
6569 if test $ac_mid -le $ac_hi; then
6570 ac_lo= ac_hi=
6571 break
6573 ac_mid=`expr 2 '*' $ac_mid`
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576 done
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_lo= ac_hi=
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 # Binary search between lo and hi bounds.
6587 while test "x$ac_lo" != "x$ac_hi"; do
6588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 $ac_includes_default
6597 main ()
6599 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6600 test_array [0] = 0
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_hi=$ac_mid
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_lo=`expr '(' $ac_mid ')' + 1`
6635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636 done
6637 case $ac_lo in
6638 ?*) ac_cv_sizeof_double=$ac_lo;;
6639 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6640 See \`config.log' for more details." >&5
6641 echo "$as_me: error: cannot compute sizeof (double), 77
6642 See \`config.log' for more details." >&2;}
6643 { (exit 1); exit 1; }; } ;;
6644 esac
6645 else
6646 if test "$cross_compiling" = yes; then
6647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6648 See \`config.log' for more details." >&5
6649 echo "$as_me: error: cannot run test program while cross compiling
6650 See \`config.log' for more details." >&2;}
6651 { (exit 1); exit 1; }; }
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 $ac_includes_default
6660 long longval () { return (long) (sizeof (double)); }
6661 unsigned long ulongval () { return (long) (sizeof (double)); }
6662 #include <stdio.h>
6663 #include <stdlib.h>
6665 main ()
6668 FILE *f = fopen ("conftest.val", "w");
6669 if (! f)
6670 exit (1);
6671 if (((long) (sizeof (double))) < 0)
6673 long i = longval ();
6674 if (i != ((long) (sizeof (double))))
6675 exit (1);
6676 fprintf (f, "%ld\n", i);
6678 else
6680 unsigned long i = ulongval ();
6681 if (i != ((long) (sizeof (double))))
6682 exit (1);
6683 fprintf (f, "%lu\n", i);
6685 exit (ferror (f) || fclose (f) != 0);
6688 return 0;
6690 _ACEOF
6691 rm -f conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 ac_cv_sizeof_double=`cat conftest.val`
6703 else
6704 echo "$as_me: program exited with status $ac_status" >&5
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ( exit $ac_status )
6709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6710 See \`config.log' for more details." >&5
6711 echo "$as_me: error: cannot compute sizeof (double), 77
6712 See \`config.log' for more details." >&2;}
6713 { (exit 1); exit 1; }; }
6715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6718 rm -f conftest.val
6719 else
6720 ac_cv_sizeof_double=0
6723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6724 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6725 cat >>confdefs.h <<_ACEOF
6726 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6727 _ACEOF
6730 echo "$as_me:$LINENO: checking for long double" >&5
6731 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6732 if test "${ac_cv_type_long_double+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6743 main ()
6745 if ((long double *) 0)
6746 return 0;
6747 if (sizeof (long double))
6748 return 0;
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755 (eval $ac_compile) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_type_long_double=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_cv_type_long_double=no
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6785 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6787 echo "$as_me:$LINENO: checking size of long double" >&5
6788 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6789 if test "${ac_cv_sizeof_long_double+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 if test "$ac_cv_type_long_double" = yes; then
6793 # The cast to unsigned long works around a bug in the HP C Compiler
6794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6796 # This bug is HP SR number 8606223364.
6797 if test "$cross_compiling" = yes; then
6798 # Depending upon the size, compute the lo and hi bounds.
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6807 main ()
6809 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6810 test_array [0] = 0
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_lo=0 ac_mid=0
6839 while :; do
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 $ac_includes_default
6848 main ()
6850 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6851 test_array [0] = 0
6854 return 0;
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>conftest.er1
6860 ac_status=$?
6861 grep -v '^ *+' conftest.er1 >conftest.err
6862 rm -f conftest.er1
6863 cat conftest.err >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -z "$ac_c_werror_flag"
6867 || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_hi=$ac_mid; break
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 ac_lo=`expr $ac_mid + 1`
6885 if test $ac_lo -le $ac_mid; then
6886 ac_lo= ac_hi=
6887 break
6889 ac_mid=`expr 2 '*' $ac_mid + 1`
6891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892 done
6893 else
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 $ac_includes_default
6905 main ()
6907 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6908 test_array [0] = 0
6911 return 0;
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -z "$ac_c_werror_flag"
6924 || test ! -s conftest.err'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; } &&
6930 { ac_try='test -s conftest.$ac_objext'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6936 ac_hi=-1 ac_mid=-1
6937 while :; do
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6946 main ()
6948 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6949 test_array [0] = 0
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957 (eval $ac_compile) 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag"
6965 || test ! -s conftest.err'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; } &&
6971 { ac_try='test -s conftest.$ac_objext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_lo=$ac_mid; break
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_hi=`expr '(' $ac_mid ')' - 1`
6983 if test $ac_mid -le $ac_hi; then
6984 ac_lo= ac_hi=
6985 break
6987 ac_mid=`expr 2 '*' $ac_mid`
6989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990 done
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_lo= ac_hi=
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 # Binary search between lo and hi bounds.
7001 while test "x$ac_lo" != "x$ac_hi"; do
7002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7011 main ()
7013 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7014 test_array [0] = 0
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_hi=$ac_mid
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_lo=`expr '(' $ac_mid ')' + 1`
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050 done
7051 case $ac_lo in
7052 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7054 See \`config.log' for more details." >&5
7055 echo "$as_me: error: cannot compute sizeof (long double), 77
7056 See \`config.log' for more details." >&2;}
7057 { (exit 1); exit 1; }; } ;;
7058 esac
7059 else
7060 if test "$cross_compiling" = yes; then
7061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7062 See \`config.log' for more details." >&5
7063 echo "$as_me: error: cannot run test program while cross compiling
7064 See \`config.log' for more details." >&2;}
7065 { (exit 1); exit 1; }; }
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 long longval () { return (long) (sizeof (long double)); }
7075 unsigned long ulongval () { return (long) (sizeof (long double)); }
7076 #include <stdio.h>
7077 #include <stdlib.h>
7079 main ()
7082 FILE *f = fopen ("conftest.val", "w");
7083 if (! f)
7084 exit (1);
7085 if (((long) (sizeof (long double))) < 0)
7087 long i = longval ();
7088 if (i != ((long) (sizeof (long double))))
7089 exit (1);
7090 fprintf (f, "%ld\n", i);
7092 else
7094 unsigned long i = ulongval ();
7095 if (i != ((long) (sizeof (long double))))
7096 exit (1);
7097 fprintf (f, "%lu\n", i);
7099 exit (ferror (f) || fclose (f) != 0);
7102 return 0;
7104 _ACEOF
7105 rm -f conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116 ac_cv_sizeof_long_double=`cat conftest.val`
7117 else
7118 echo "$as_me: program exited with status $ac_status" >&5
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ( exit $ac_status )
7123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7124 See \`config.log' for more details." >&5
7125 echo "$as_me: error: cannot compute sizeof (long double), 77
7126 See \`config.log' for more details." >&2;}
7127 { (exit 1); exit 1; }; }
7129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7132 rm -f conftest.val
7133 else
7134 ac_cv_sizeof_long_double=0
7137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7138 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7139 cat >>confdefs.h <<_ACEOF
7140 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7141 _ACEOF
7145 # Also AC_SUBST this variable for ffi.h.
7146 HAVE_LONG_DOUBLE=0
7147 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
7148 if test $ac_cv_sizeof_long_double != 0; then
7149 HAVE_LONG_DOUBLE=1
7151 cat >>confdefs.h <<\_ACEOF
7152 #define HAVE_LONG_DOUBLE 1
7153 _ACEOF
7159 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7160 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7161 if test "${ac_cv_c_bigendian+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 # See if sys/param.h defines the BYTE_ORDER macro.
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <sys/param.h>
7175 main ()
7177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7178 bogus endian macros
7179 #endif
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 # It does; now see whether it defined to BIG_ENDIAN or not.
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 #include <sys/types.h>
7215 #include <sys/param.h>
7218 main ()
7220 #if BYTE_ORDER != BIG_ENDIAN
7221 not big endian
7222 #endif
7225 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_c_bigendian=yes
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_c_bigendian=no
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 # It does not; compile a test program.
7263 if test "$cross_compiling" = yes; then
7264 # try to guess the endianness by grepping values into an object file
7265 ac_cv_c_bigendian=unknown
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7274 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7277 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7279 main ()
7281 _ascii (); _ebcdic ();
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7309 ac_cv_c_bigendian=yes
7311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7312 if test "$ac_cv_c_bigendian" = unknown; then
7313 ac_cv_c_bigendian=no
7314 else
7315 # finding both strings is unlikely to happen, but who knows?
7316 ac_cv_c_bigendian=unknown
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7333 main ()
7335 /* Are we little or big endian? From Harbison&Steele. */
7336 union
7338 long l;
7339 char c[sizeof (long)];
7340 } u;
7341 u.l = 1;
7342 exit (u.c[sizeof (long) - 1] == 1);
7344 _ACEOF
7345 rm -f conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_c_bigendian=no
7357 else
7358 echo "$as_me: program exited with status $ac_status" >&5
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ( exit $ac_status )
7363 ac_cv_c_bigendian=yes
7365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7372 case $ac_cv_c_bigendian in
7373 yes)
7375 cat >>confdefs.h <<\_ACEOF
7376 #define WORDS_BIGENDIAN 1
7377 _ACEOF
7382 { { echo "$as_me:$LINENO: error: unknown endianness
7383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7384 echo "$as_me: error: unknown endianness
7385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7386 { (exit 1); exit 1; }; } ;;
7387 esac
7390 if test x$TARGET = xSPARC; then
7391 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
7392 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
7393 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7397 save_CFLAGS="$CFLAGS"
7398 save_LDFLAGS="$LDFLAGS"
7399 CFLAGS="$CFLAGS -fpic"
7400 LDFLAGS="$LDFLAGS -shared"
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
7409 main ()
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 libffi_cv_as_sparc_ua_pcrel=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 libffi_cv_as_sparc_ua_pcrel=no
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 CFLAGS="$save_CFLAGS"
7448 LDFLAGS="$save_LDFLAGS"
7450 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
7451 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
7452 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_AS_SPARC_UA_PCREL 1
7456 _ACEOF
7460 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
7461 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
7462 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7466 libffi_cv_as_register_pseudo_op=unknown
7467 # Check if we have .register
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 asm (".register %g2, #scratch");
7476 main ()
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 libffi_cv_as_register_pseudo_op=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 libffi_cv_as_register_pseudo_op=no
7512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
7516 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
7517 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7521 _ACEOF
7526 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
7527 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
7528 if test "${libffi_cv_ro_eh_frame+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7532 libffi_cv_ro_eh_frame=no
7533 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
7534 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
7535 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
7536 libffi_cv_ro_eh_frame=yes
7537 elif grep '.section.*eh_frame.*#alloc' conftest.c \
7538 | grep -v '#write' > /dev/null; then
7539 libffi_cv_ro_eh_frame=yes
7542 rm -f conftest.*
7545 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
7546 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
7547 if test "x$libffi_cv_ro_eh_frame" = xyes; then
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_RO_EH_FRAME 1
7551 _ACEOF
7554 cat >>confdefs.h <<\_ACEOF
7555 #define EH_FRAME_FLAGS "a"
7556 _ACEOF
7558 else
7560 cat >>confdefs.h <<\_ACEOF
7561 #define EH_FRAME_FLAGS "aw"
7562 _ACEOF
7566 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
7567 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
7568 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7572 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
7573 libffi_cv_hidden_visibility_attribute=no
7574 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 if grep '\.hidden.*foo' conftest.s >/dev/null; then
7581 libffi_cv_hidden_visibility_attribute=yes
7584 rm -f conftest.*
7587 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
7588 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
7589 if test $libffi_cv_hidden_visibility_attribute = yes; then
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
7593 _ACEOF
7605 # Check whether --enable-debug or --disable-debug was given.
7606 if test "${enable_debug+set}" = set; then
7607 enableval="$enable_debug"
7608 if test "$enable_debug" = "yes"; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define FFI_DEBUG 1
7612 _ACEOF
7617 # Check whether --enable-structs or --disable-structs was given.
7618 if test "${enable_structs+set}" = set; then
7619 enableval="$enable_structs"
7620 if test "$enable_structs" = "no"; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define FFI_NO_STRUCTS 1
7624 _ACEOF
7629 # Check whether --enable-raw-api or --disable-raw-api was given.
7630 if test "${enable_raw_api+set}" = set; then
7631 enableval="$enable_raw_api"
7632 if test "$enable_raw_api" = "no"; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define FFI_NO_RAW_API 1
7636 _ACEOF
7641 # Check whether --enable-purify-safety or --disable-purify-safety was given.
7642 if test "${enable_purify_safety+set}" = set; then
7643 enableval="$enable_purify_safety"
7644 if test "$enable_purify_safety" = "yes"; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define USING_PURIFY 1
7648 _ACEOF
7653 if test -n "$with_cross_host" &&
7654 test x"$with_cross_host" != x"no"; then
7655 toolexecdir='$(exec_prefix)/$(target_alias)'
7656 toolexeclibdir='$(toolexecdir)/lib'
7657 else
7658 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7659 toolexeclibdir='$(libdir)'
7661 multi_os_directory=`$CC -print-multi-os-directory`
7662 case $multi_os_directory in
7663 .) ;; # Avoid trailing /.
7664 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7665 esac
7669 if test "${multilib}" = "yes"; then
7670 multilib_arg="--enable-multilib"
7671 else
7672 multilib_arg=
7675 ac_config_commands="$ac_config_commands include"
7677 ac_config_commands="$ac_config_commands src"
7680 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
7683 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
7686 cat >confcache <<\_ACEOF
7687 # This file is a shell script that caches the results of configure
7688 # tests run on this system so they can be shared between configure
7689 # scripts and configure runs, see configure's option --config-cache.
7690 # It is not useful on other systems. If it contains results you don't
7691 # want to keep, you may remove or edit it.
7693 # config.status only pays attention to the cache file if you give it
7694 # the --recheck option to rerun configure.
7696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7698 # following values.
7700 _ACEOF
7702 # The following way of writing the cache mishandles newlines in values,
7703 # but we know of no workaround that is simple, portable, and efficient.
7704 # So, don't put newlines in cache variables' values.
7705 # Ultrix sh set writes to stderr and can't be redirected directly,
7706 # and sets the high bit in the cache file unless we assign to the vars.
7708 (set) 2>&1 |
7709 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7710 *ac_space=\ *)
7711 # `set' does not quote correctly, so add quotes (double-quote
7712 # substitution turns \\\\ into \\, and sed turns \\ into \).
7713 sed -n \
7714 "s/'/'\\\\''/g;
7715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7718 # `set' quotes correctly as required by POSIX, so do not add quotes.
7719 sed -n \
7720 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7722 esac;
7724 sed '
7725 t clear
7726 : clear
7727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7728 t end
7729 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7730 : end' >>confcache
7731 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7732 if test -w $cache_file; then
7733 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7734 cat confcache >$cache_file
7735 else
7736 echo "not updating unwritable cache $cache_file"
7739 rm -f confcache
7741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7747 # trailing colons and then remove the whole line if VPATH becomes empty
7748 # (actually we leave an empty line to preserve line numbers).
7749 if test "x$srcdir" = x.; then
7750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7751 s/:*\$(srcdir):*/:/;
7752 s/:*\${srcdir}:*/:/;
7753 s/:*@srcdir@:*/:/;
7754 s/^\([^=]*=[ ]*\):*/\1/;
7755 s/:*$//;
7756 s/^[^=]*=[ ]*$//;
7760 DEFS=-DHAVE_CONFIG_H
7762 ac_libobjs=
7763 ac_ltlibobjs=
7764 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7765 # 1. Remove the extension, and $U if already installed.
7766 ac_i=`echo "$ac_i" |
7767 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7768 # 2. Add them.
7769 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7770 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7771 done
7772 LIBOBJS=$ac_libobjs
7774 LTLIBOBJS=$ac_ltlibobjs
7777 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7778 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7779 Usually this means the macro was only invoked conditionally." >&5
7780 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7781 Usually this means the macro was only invoked conditionally." >&2;}
7782 { (exit 1); exit 1; }; }
7784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7785 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7786 Usually this means the macro was only invoked conditionally." >&5
7787 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7788 Usually this means the macro was only invoked conditionally." >&2;}
7789 { (exit 1); exit 1; }; }
7791 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7792 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7793 Usually this means the macro was only invoked conditionally." >&5
7794 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7795 Usually this means the macro was only invoked conditionally." >&2;}
7796 { (exit 1); exit 1; }; }
7798 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
7799 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
7800 Usually this means the macro was only invoked conditionally." >&5
7801 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
7802 Usually this means the macro was only invoked conditionally." >&2;}
7803 { (exit 1); exit 1; }; }
7805 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
7806 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
7807 Usually this means the macro was only invoked conditionally." >&5
7808 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
7809 Usually this means the macro was only invoked conditionally." >&2;}
7810 { (exit 1); exit 1; }; }
7812 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
7813 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
7814 Usually this means the macro was only invoked conditionally." >&5
7815 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
7816 Usually this means the macro was only invoked conditionally." >&2;}
7817 { (exit 1); exit 1; }; }
7819 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
7820 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
7821 Usually this means the macro was only invoked conditionally." >&5
7822 echo "$as_me: error: conditional \"SPARC\" was never defined.
7823 Usually this means the macro was only invoked conditionally." >&2;}
7824 { (exit 1); exit 1; }; }
7826 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
7827 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
7828 Usually this means the macro was only invoked conditionally." >&5
7829 echo "$as_me: error: conditional \"X86\" was never defined.
7830 Usually this means the macro was only invoked conditionally." >&2;}
7831 { (exit 1); exit 1; }; }
7833 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
7834 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
7835 Usually this means the macro was only invoked conditionally." >&5
7836 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
7837 Usually this means the macro was only invoked conditionally." >&2;}
7838 { (exit 1); exit 1; }; }
7840 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
7841 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
7842 Usually this means the macro was only invoked conditionally." >&5
7843 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
7844 Usually this means the macro was only invoked conditionally." >&2;}
7845 { (exit 1); exit 1; }; }
7847 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
7848 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
7849 Usually this means the macro was only invoked conditionally." >&5
7850 echo "$as_me: error: conditional \"ALPHA\" was never defined.
7851 Usually this means the macro was only invoked conditionally." >&2;}
7852 { (exit 1); exit 1; }; }
7854 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
7855 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
7856 Usually this means the macro was only invoked conditionally." >&5
7857 echo "$as_me: error: conditional \"IA64\" was never defined.
7858 Usually this means the macro was only invoked conditionally." >&2;}
7859 { (exit 1); exit 1; }; }
7861 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7862 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7863 Usually this means the macro was only invoked conditionally." >&5
7864 echo "$as_me: error: conditional \"M32R\" was never defined.
7865 Usually this means the macro was only invoked conditionally." >&2;}
7866 { (exit 1); exit 1; }; }
7868 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7869 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7870 Usually this means the macro was only invoked conditionally." >&5
7871 echo "$as_me: error: conditional \"M68K\" was never defined.
7872 Usually this means the macro was only invoked conditionally." >&2;}
7873 { (exit 1); exit 1; }; }
7875 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7876 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7877 Usually this means the macro was only invoked conditionally." >&5
7878 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7879 Usually this means the macro was only invoked conditionally." >&2;}
7880 { (exit 1); exit 1; }; }
7882 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7883 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7884 Usually this means the macro was only invoked conditionally." >&5
7885 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7886 Usually this means the macro was only invoked conditionally." >&2;}
7887 { (exit 1); exit 1; }; }
7889 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7890 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7891 Usually this means the macro was only invoked conditionally." >&5
7892 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7893 Usually this means the macro was only invoked conditionally." >&2;}
7894 { (exit 1); exit 1; }; }
7896 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
7897 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
7898 Usually this means the macro was only invoked conditionally." >&5
7899 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
7900 Usually this means the macro was only invoked conditionally." >&2;}
7901 { (exit 1); exit 1; }; }
7903 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7904 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7905 Usually this means the macro was only invoked conditionally." >&5
7906 echo "$as_me: error: conditional \"ARM\" was never defined.
7907 Usually this means the macro was only invoked conditionally." >&2;}
7908 { (exit 1); exit 1; }; }
7910 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
7911 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
7912 Usually this means the macro was only invoked conditionally." >&5
7913 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
7914 Usually this means the macro was only invoked conditionally." >&2;}
7915 { (exit 1); exit 1; }; }
7917 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7918 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7919 Usually this means the macro was only invoked conditionally." >&5
7920 echo "$as_me: error: conditional \"FRV\" was never defined.
7921 Usually this means the macro was only invoked conditionally." >&2;}
7922 { (exit 1); exit 1; }; }
7924 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7925 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7926 Usually this means the macro was only invoked conditionally." >&5
7927 echo "$as_me: error: conditional \"S390\" was never defined.
7928 Usually this means the macro was only invoked conditionally." >&2;}
7929 { (exit 1); exit 1; }; }
7931 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7932 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7933 Usually this means the macro was only invoked conditionally." >&5
7934 echo "$as_me: error: conditional \"X86_64\" was never defined.
7935 Usually this means the macro was only invoked conditionally." >&2;}
7936 { (exit 1); exit 1; }; }
7938 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7939 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7940 Usually this means the macro was only invoked conditionally." >&5
7941 echo "$as_me: error: conditional \"SH\" was never defined.
7942 Usually this means the macro was only invoked conditionally." >&2;}
7943 { (exit 1); exit 1; }; }
7945 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7946 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7947 Usually this means the macro was only invoked conditionally." >&5
7948 echo "$as_me: error: conditional \"SH64\" was never defined.
7949 Usually this means the macro was only invoked conditionally." >&2;}
7950 { (exit 1); exit 1; }; }
7952 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
7953 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
7954 Usually this means the macro was only invoked conditionally." >&5
7955 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
7956 Usually this means the macro was only invoked conditionally." >&2;}
7957 { (exit 1); exit 1; }; }
7959 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
7960 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
7961 Usually this means the macro was only invoked conditionally." >&5
7962 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
7963 Usually this means the macro was only invoked conditionally." >&2;}
7964 { (exit 1); exit 1; }; }
7966 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
7967 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
7968 Usually this means the macro was only invoked conditionally." >&5
7969 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
7970 Usually this means the macro was only invoked conditionally." >&2;}
7971 { (exit 1); exit 1; }; }
7974 : ${CONFIG_STATUS=./config.status}
7975 ac_clean_files_save=$ac_clean_files
7976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7979 cat >$CONFIG_STATUS <<_ACEOF
7980 #! $SHELL
7981 # Generated by $as_me.
7982 # Run this file to recreate the current configuration.
7983 # Compiler output produced by configure, useful for debugging
7984 # configure, is in config.log if it exists.
7986 debug=false
7987 ac_cs_recheck=false
7988 ac_cs_silent=false
7989 SHELL=\${CONFIG_SHELL-$SHELL}
7990 _ACEOF
7992 cat >>$CONFIG_STATUS <<\_ACEOF
7993 ## --------------------- ##
7994 ## M4sh Initialization. ##
7995 ## --------------------- ##
7997 # Be Bourne compatible
7998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7999 emulate sh
8000 NULLCMD=:
8001 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8002 # is contrary to our usage. Disable this feature.
8003 alias -g '${1+"$@"}'='"$@"'
8004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8005 set -o posix
8007 DUALCASE=1; export DUALCASE # for MKS sh
8009 # Support unset when possible.
8010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8011 as_unset=unset
8012 else
8013 as_unset=false
8017 # Work around bugs in pre-3.0 UWIN ksh.
8018 $as_unset ENV MAIL MAILPATH
8019 PS1='$ '
8020 PS2='> '
8021 PS4='+ '
8023 # NLS nuisances.
8024 for as_var in \
8025 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8026 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8027 LC_TELEPHONE LC_TIME
8029 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8030 eval $as_var=C; export $as_var
8031 else
8032 $as_unset $as_var
8034 done
8036 # Required to use basename.
8037 if expr a : '\(a\)' >/dev/null 2>&1; then
8038 as_expr=expr
8039 else
8040 as_expr=false
8043 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8044 as_basename=basename
8045 else
8046 as_basename=false
8050 # Name of the executable.
8051 as_me=`$as_basename "$0" ||
8052 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8053 X"$0" : 'X\(//\)$' \| \
8054 X"$0" : 'X\(/\)$' \| \
8055 . : '\(.\)' 2>/dev/null ||
8056 echo X/"$0" |
8057 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8058 /^X\/\(\/\/\)$/{ s//\1/; q; }
8059 /^X\/\(\/\).*/{ s//\1/; q; }
8060 s/.*/./; q'`
8063 # PATH needs CR, and LINENO needs CR and PATH.
8064 # Avoid depending upon Character Ranges.
8065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8068 as_cr_digits='0123456789'
8069 as_cr_alnum=$as_cr_Letters$as_cr_digits
8071 # The user is always right.
8072 if test "${PATH_SEPARATOR+set}" != set; then
8073 echo "#! /bin/sh" >conf$$.sh
8074 echo "exit 0" >>conf$$.sh
8075 chmod +x conf$$.sh
8076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8077 PATH_SEPARATOR=';'
8078 else
8079 PATH_SEPARATOR=:
8081 rm -f conf$$.sh
8085 as_lineno_1=$LINENO
8086 as_lineno_2=$LINENO
8087 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8088 test "x$as_lineno_1" != "x$as_lineno_2" &&
8089 test "x$as_lineno_3" = "x$as_lineno_2" || {
8090 # Find who we are. Look in the path if we contain no path at all
8091 # relative or not.
8092 case $0 in
8093 *[\\/]* ) as_myself=$0 ;;
8094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8100 done
8103 esac
8104 # We did not find ourselves, most probably we were run as `sh COMMAND'
8105 # in which case we are not to be found in the path.
8106 if test "x$as_myself" = x; then
8107 as_myself=$0
8109 if test ! -f "$as_myself"; then
8110 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8111 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8112 { (exit 1); exit 1; }; }
8114 case $CONFIG_SHELL in
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for as_base in sh bash ksh sh5; do
8122 case $as_dir in
8124 if ("$as_dir/$as_base" -c '
8125 as_lineno_1=$LINENO
8126 as_lineno_2=$LINENO
8127 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8128 test "x$as_lineno_1" != "x$as_lineno_2" &&
8129 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8130 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8131 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8132 CONFIG_SHELL=$as_dir/$as_base
8133 export CONFIG_SHELL
8134 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8135 fi;;
8136 esac
8137 done
8138 done
8140 esac
8142 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8143 # uniformly replaced by the line number. The first 'sed' inserts a
8144 # line-number line before each line; the second 'sed' does the real
8145 # work. The second script uses 'N' to pair each line-number line
8146 # with the numbered line, and appends trailing '-' during
8147 # substitution so that $LINENO is not a special case at line end.
8148 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8149 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8150 sed '=' <$as_myself |
8151 sed '
8153 s,$,-,
8154 : loop
8155 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8156 t loop
8157 s,-$,,
8158 s,^['$as_cr_digits']*\n,,
8159 ' >$as_me.lineno &&
8160 chmod +x $as_me.lineno ||
8161 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8162 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8163 { (exit 1); exit 1; }; }
8165 # Don't try to exec as it changes $[0], causing all sort of problems
8166 # (the dirname of $[0] is not the place where we might find the
8167 # original and so on. Autoconf is especially sensible to this).
8168 . ./$as_me.lineno
8169 # Exit status is that of the last command.
8170 exit
8174 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8175 *c*,-n*) ECHO_N= ECHO_C='
8176 ' ECHO_T=' ' ;;
8177 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8178 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8179 esac
8181 if expr a : '\(a\)' >/dev/null 2>&1; then
8182 as_expr=expr
8183 else
8184 as_expr=false
8187 rm -f conf$$ conf$$.exe conf$$.file
8188 echo >conf$$.file
8189 if ln -s conf$$.file conf$$ 2>/dev/null; then
8190 # We could just check for DJGPP; but this test a) works b) is more generic
8191 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8192 if test -f conf$$.exe; then
8193 # Don't use ln at all; we don't have any links
8194 as_ln_s='cp -p'
8195 else
8196 as_ln_s='ln -s'
8198 elif ln conf$$.file conf$$ 2>/dev/null; then
8199 as_ln_s=ln
8200 else
8201 as_ln_s='cp -p'
8203 rm -f conf$$ conf$$.exe conf$$.file
8205 if mkdir -p . 2>/dev/null; then
8206 as_mkdir_p=:
8207 else
8208 test -d ./-p && rmdir ./-p
8209 as_mkdir_p=false
8212 as_executable_p="test -f"
8214 # Sed expression to map a string onto a valid CPP name.
8215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8217 # Sed expression to map a string onto a valid variable name.
8218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8221 # IFS
8222 # We need space, tab and new line, in precisely that order.
8223 as_nl='
8225 IFS=" $as_nl"
8227 # CDPATH.
8228 $as_unset CDPATH
8230 exec 6>&1
8232 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8233 # report actual input values of CONFIG_FILES etc. instead of their
8234 # values after options handling. Logging --version etc. is OK.
8235 exec 5>>config.log
8237 echo
8238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8239 ## Running $as_me. ##
8240 _ASBOX
8241 } >&5
8242 cat >&5 <<_CSEOF
8244 This file was extended by libffi $as_me 2.1, which was
8245 generated by GNU Autoconf 2.59. Invocation command line was
8247 CONFIG_FILES = $CONFIG_FILES
8248 CONFIG_HEADERS = $CONFIG_HEADERS
8249 CONFIG_LINKS = $CONFIG_LINKS
8250 CONFIG_COMMANDS = $CONFIG_COMMANDS
8251 $ $0 $@
8253 _CSEOF
8254 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8255 echo >&5
8256 _ACEOF
8258 # Files that config.status was made for.
8259 if test -n "$ac_config_files"; then
8260 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8263 if test -n "$ac_config_headers"; then
8264 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8267 if test -n "$ac_config_links"; then
8268 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8271 if test -n "$ac_config_commands"; then
8272 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8275 cat >>$CONFIG_STATUS <<\_ACEOF
8277 ac_cs_usage="\
8278 \`$as_me' instantiates files from templates according to the
8279 current configuration.
8281 Usage: $0 [OPTIONS] [FILE]...
8283 -h, --help print this help, then exit
8284 -V, --version print version number, then exit
8285 -q, --quiet do not print progress messages
8286 -d, --debug don't remove temporary files
8287 --recheck update $as_me by reconfiguring in the same conditions
8288 --file=FILE[:TEMPLATE]
8289 instantiate the configuration file FILE
8290 --header=FILE[:TEMPLATE]
8291 instantiate the configuration header FILE
8293 Configuration files:
8294 $config_files
8296 Configuration headers:
8297 $config_headers
8299 Configuration links:
8300 $config_links
8302 Configuration commands:
8303 $config_commands
8305 Report bugs to <bug-autoconf@gnu.org>."
8306 _ACEOF
8308 cat >>$CONFIG_STATUS <<_ACEOF
8309 ac_cs_version="\\
8310 libffi config.status 2.1
8311 configured by $0, generated by GNU Autoconf 2.59,
8312 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8314 Copyright (C) 2003 Free Software Foundation, Inc.
8315 This config.status script is free software; the Free Software Foundation
8316 gives unlimited permission to copy, distribute and modify it."
8317 srcdir=$srcdir
8318 INSTALL="$INSTALL"
8319 _ACEOF
8321 cat >>$CONFIG_STATUS <<\_ACEOF
8322 # If no file are specified by the user, then we need to provide default
8323 # value. By we need to know if files were specified by the user.
8324 ac_need_defaults=:
8325 while test $# != 0
8327 case $1 in
8328 --*=*)
8329 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8330 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8331 ac_shift=:
8334 ac_option=$1
8335 ac_optarg=$2
8336 ac_shift=shift
8338 *) # This is not an option, so the user has probably given explicit
8339 # arguments.
8340 ac_option=$1
8341 ac_need_defaults=false;;
8342 esac
8344 case $ac_option in
8345 # Handling of the options.
8346 _ACEOF
8347 cat >>$CONFIG_STATUS <<\_ACEOF
8348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8349 ac_cs_recheck=: ;;
8350 --version | --vers* | -V )
8351 echo "$ac_cs_version"; exit 0 ;;
8352 --he | --h)
8353 # Conflict between --help and --header
8354 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8355 Try \`$0 --help' for more information." >&5
8356 echo "$as_me: error: ambiguous option: $1
8357 Try \`$0 --help' for more information." >&2;}
8358 { (exit 1); exit 1; }; };;
8359 --help | --hel | -h )
8360 echo "$ac_cs_usage"; exit 0 ;;
8361 --debug | --d* | -d )
8362 debug=: ;;
8363 --file | --fil | --fi | --f )
8364 $ac_shift
8365 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8366 ac_need_defaults=false;;
8367 --header | --heade | --head | --hea )
8368 $ac_shift
8369 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8370 ac_need_defaults=false;;
8371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8373 ac_cs_silent=: ;;
8375 # This is an error.
8376 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8377 Try \`$0 --help' for more information." >&5
8378 echo "$as_me: error: unrecognized option: $1
8379 Try \`$0 --help' for more information." >&2;}
8380 { (exit 1); exit 1; }; } ;;
8382 *) ac_config_targets="$ac_config_targets $1" ;;
8384 esac
8385 shift
8386 done
8388 ac_configure_extra_args=
8390 if $ac_cs_silent; then
8391 exec 6>/dev/null
8392 ac_configure_extra_args="$ac_configure_extra_args --silent"
8395 _ACEOF
8396 cat >>$CONFIG_STATUS <<_ACEOF
8397 if \$ac_cs_recheck; then
8398 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8399 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8402 _ACEOF
8404 cat >>$CONFIG_STATUS <<_ACEOF
8406 # INIT-COMMANDS section.
8410 srcdir="$srcdir"
8411 host="$host"
8412 target="$target"
8413 with_multisubdir="$with_multisubdir"
8414 with_multisrctop="$with_multisrctop"
8415 with_target_subdir="$with_target_subdir"
8416 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8417 multi_basedir="$multi_basedir"
8418 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8419 CC="$CC"
8420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8421 TARGETDIR="$TARGETDIR"
8423 _ACEOF
8427 cat >>$CONFIG_STATUS <<\_ACEOF
8428 for ac_config_target in $ac_config_targets
8430 case "$ac_config_target" in
8431 # Handling of arguments.
8432 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8433 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
8434 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8435 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8436 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
8437 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8438 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8439 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
8440 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
8441 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
8442 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8444 { (exit 1); exit 1; }; };;
8445 esac
8446 done
8448 # If the user did not use the arguments to specify the items to instantiate,
8449 # then the envvar interface is used. Set only those that are not.
8450 # We use the long form for the default assignment because of an extremely
8451 # bizarre bug on SunOS 4.1.3.
8452 if $ac_need_defaults; then
8453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8455 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8459 # Have a temporary directory for convenience. Make it in the build tree
8460 # simply because there is no reason to put it here, and in addition,
8461 # creating and moving files from /tmp can sometimes cause problems.
8462 # Create a temporary directory, and hook for its removal unless debugging.
8463 $debug ||
8465 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8466 trap '{ (exit 1); exit 1; }' 1 2 13 15
8469 # Create a (secure) tmp directory for tmp files.
8472 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8473 test -n "$tmp" && test -d "$tmp"
8474 } ||
8476 tmp=./confstat$$-$RANDOM
8477 (umask 077 && mkdir $tmp)
8478 } ||
8480 echo "$me: cannot create a temporary directory in ." >&2
8481 { (exit 1); exit 1; }
8484 _ACEOF
8486 cat >>$CONFIG_STATUS <<_ACEOF
8489 # CONFIG_FILES section.
8492 # No need to generate the scripts if there are no CONFIG_FILES.
8493 # This happens for instance when ./config.status config.h
8494 if test -n "\$CONFIG_FILES"; then
8495 # Protect against being on the right side of a sed subst in config.status.
8496 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8497 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8498 s,@SHELL@,$SHELL,;t t
8499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8505 s,@exec_prefix@,$exec_prefix,;t t
8506 s,@prefix@,$prefix,;t t
8507 s,@program_transform_name@,$program_transform_name,;t t
8508 s,@bindir@,$bindir,;t t
8509 s,@sbindir@,$sbindir,;t t
8510 s,@libexecdir@,$libexecdir,;t t
8511 s,@datadir@,$datadir,;t t
8512 s,@sysconfdir@,$sysconfdir,;t t
8513 s,@sharedstatedir@,$sharedstatedir,;t t
8514 s,@localstatedir@,$localstatedir,;t t
8515 s,@libdir@,$libdir,;t t
8516 s,@includedir@,$includedir,;t t
8517 s,@oldincludedir@,$oldincludedir,;t t
8518 s,@infodir@,$infodir,;t t
8519 s,@mandir@,$mandir,;t t
8520 s,@build_alias@,$build_alias,;t t
8521 s,@host_alias@,$host_alias,;t t
8522 s,@target_alias@,$target_alias,;t t
8523 s,@DEFS@,$DEFS,;t t
8524 s,@ECHO_C@,$ECHO_C,;t t
8525 s,@ECHO_N@,$ECHO_N,;t t
8526 s,@ECHO_T@,$ECHO_T,;t t
8527 s,@LIBS@,$LIBS,;t t
8528 s,@multi_basedir@,$multi_basedir,;t t
8529 s,@build@,$build,;t t
8530 s,@build_cpu@,$build_cpu,;t t
8531 s,@build_vendor@,$build_vendor,;t t
8532 s,@build_os@,$build_os,;t t
8533 s,@host@,$host,;t t
8534 s,@host_cpu@,$host_cpu,;t t
8535 s,@host_vendor@,$host_vendor,;t t
8536 s,@host_os@,$host_os,;t t
8537 s,@target@,$target,;t t
8538 s,@target_cpu@,$target_cpu,;t t
8539 s,@target_vendor@,$target_vendor,;t t
8540 s,@target_os@,$target_os,;t t
8541 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8542 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8543 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8544 s,@CYGPATH_W@,$CYGPATH_W,;t t
8545 s,@PACKAGE@,$PACKAGE,;t t
8546 s,@VERSION@,$VERSION,;t t
8547 s,@ACLOCAL@,$ACLOCAL,;t t
8548 s,@AUTOCONF@,$AUTOCONF,;t t
8549 s,@AUTOMAKE@,$AUTOMAKE,;t t
8550 s,@AUTOHEADER@,$AUTOHEADER,;t t
8551 s,@MAKEINFO@,$MAKEINFO,;t t
8552 s,@install_sh@,$install_sh,;t t
8553 s,@STRIP@,$STRIP,;t t
8554 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8555 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8556 s,@mkdir_p@,$mkdir_p,;t t
8557 s,@AWK@,$AWK,;t t
8558 s,@SET_MAKE@,$SET_MAKE,;t t
8559 s,@am__leading_dot@,$am__leading_dot,;t t
8560 s,@AMTAR@,$AMTAR,;t t
8561 s,@am__tar@,$am__tar,;t t
8562 s,@am__untar@,$am__untar,;t t
8563 s,@CC@,$CC,;t t
8564 s,@ac_ct_CC@,$ac_ct_CC,;t t
8565 s,@EXEEXT@,$EXEEXT,;t t
8566 s,@OBJEXT@,$OBJEXT,;t t
8567 s,@DEPDIR@,$DEPDIR,;t t
8568 s,@am__include@,$am__include,;t t
8569 s,@am__quote@,$am__quote,;t t
8570 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8571 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8572 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8573 s,@CCDEPMODE@,$CCDEPMODE,;t t
8574 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8575 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8576 s,@CFLAGS@,$CFLAGS,;t t
8577 s,@CCAS@,$CCAS,;t t
8578 s,@CCASFLAGS@,$CCASFLAGS,;t t
8579 s,@LN_S@,$LN_S,;t t
8580 s,@RANLIB@,$RANLIB,;t t
8581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8582 s,@LIBTOOL@,$LIBTOOL,;t t
8583 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8584 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8585 s,@MAINT@,$MAINT,;t t
8586 s,@CPP@,$CPP,;t t
8587 s,@CPPFLAGS@,$CPPFLAGS,;t t
8588 s,@EGREP@,$EGREP,;t t
8589 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
8590 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
8591 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8592 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
8593 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
8594 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
8595 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
8596 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
8597 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
8598 s,@X86_TRUE@,$X86_TRUE,;t t
8599 s,@X86_FALSE@,$X86_FALSE,;t t
8600 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
8601 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
8602 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
8603 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
8604 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
8605 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
8606 s,@IA64_TRUE@,$IA64_TRUE,;t t
8607 s,@IA64_FALSE@,$IA64_FALSE,;t t
8608 s,@M32R_TRUE@,$M32R_TRUE,;t t
8609 s,@M32R_FALSE@,$M32R_FALSE,;t t
8610 s,@M68K_TRUE@,$M68K_TRUE,;t t
8611 s,@M68K_FALSE@,$M68K_FALSE,;t t
8612 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
8613 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
8614 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
8615 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
8616 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
8617 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
8618 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
8619 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
8620 s,@ARM_TRUE@,$ARM_TRUE,;t t
8621 s,@ARM_FALSE@,$ARM_FALSE,;t t
8622 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
8623 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
8624 s,@FRV_TRUE@,$FRV_TRUE,;t t
8625 s,@FRV_FALSE@,$FRV_FALSE,;t t
8626 s,@S390_TRUE@,$S390_TRUE,;t t
8627 s,@S390_FALSE@,$S390_FALSE,;t t
8628 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
8629 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
8630 s,@SH_TRUE@,$SH_TRUE,;t t
8631 s,@SH_FALSE@,$SH_FALSE,;t t
8632 s,@SH64_TRUE@,$SH64_TRUE,;t t
8633 s,@SH64_FALSE@,$SH64_FALSE,;t t
8634 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
8635 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
8636 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
8637 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
8638 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
8639 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
8640 s,@ALLOCA@,$ALLOCA,;t t
8641 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
8642 s,@TARGET@,$TARGET,;t t
8643 s,@TARGETDIR@,$TARGETDIR,;t t
8644 s,@toolexecdir@,$toolexecdir,;t t
8645 s,@toolexeclibdir@,$toolexeclibdir,;t t
8646 s,@LIBOBJS@,$LIBOBJS,;t t
8647 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8648 CEOF
8650 _ACEOF
8652 cat >>$CONFIG_STATUS <<\_ACEOF
8653 # Split the substitutions into bite-sized pieces for seds with
8654 # small command number limits, like on Digital OSF/1 and HP-UX.
8655 ac_max_sed_lines=48
8656 ac_sed_frag=1 # Number of current file.
8657 ac_beg=1 # First line for current file.
8658 ac_end=$ac_max_sed_lines # Line after last line for current file.
8659 ac_more_lines=:
8660 ac_sed_cmds=
8661 while $ac_more_lines; do
8662 if test $ac_beg -gt 1; then
8663 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8664 else
8665 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8667 if test ! -s $tmp/subs.frag; then
8668 ac_more_lines=false
8669 else
8670 # The purpose of the label and of the branching condition is to
8671 # speed up the sed processing (if there are no `@' at all, there
8672 # is no need to browse any of the substitutions).
8673 # These are the two extra sed commands mentioned above.
8674 (echo ':t
8675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8676 if test -z "$ac_sed_cmds"; then
8677 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8678 else
8679 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8681 ac_sed_frag=`expr $ac_sed_frag + 1`
8682 ac_beg=$ac_end
8683 ac_end=`expr $ac_end + $ac_max_sed_lines`
8685 done
8686 if test -z "$ac_sed_cmds"; then
8687 ac_sed_cmds=cat
8689 fi # test -n "$CONFIG_FILES"
8691 _ACEOF
8692 cat >>$CONFIG_STATUS <<\_ACEOF
8693 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8695 case $ac_file in
8696 - | *:- | *:-:* ) # input from stdin
8697 cat >$tmp/stdin
8698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8702 * ) ac_file_in=$ac_file.in ;;
8703 esac
8705 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8706 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8708 X"$ac_file" : 'X\(//\)[^/]' \| \
8709 X"$ac_file" : 'X\(//\)$' \| \
8710 X"$ac_file" : 'X\(/\)' \| \
8711 . : '\(.\)' 2>/dev/null ||
8712 echo X"$ac_file" |
8713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8715 /^X\(\/\/\)$/{ s//\1/; q; }
8716 /^X\(\/\).*/{ s//\1/; q; }
8717 s/.*/./; q'`
8718 { if $as_mkdir_p; then
8719 mkdir -p "$ac_dir"
8720 else
8721 as_dir="$ac_dir"
8722 as_dirs=
8723 while test ! -d "$as_dir"; do
8724 as_dirs="$as_dir $as_dirs"
8725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8727 X"$as_dir" : 'X\(//\)[^/]' \| \
8728 X"$as_dir" : 'X\(//\)$' \| \
8729 X"$as_dir" : 'X\(/\)' \| \
8730 . : '\(.\)' 2>/dev/null ||
8731 echo X"$as_dir" |
8732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8734 /^X\(\/\/\)$/{ s//\1/; q; }
8735 /^X\(\/\).*/{ s//\1/; q; }
8736 s/.*/./; q'`
8737 done
8738 test ! -n "$as_dirs" || mkdir $as_dirs
8739 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8740 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8741 { (exit 1); exit 1; }; }; }
8743 ac_builddir=.
8745 if test "$ac_dir" != .; then
8746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8747 # A "../" for each directory in $ac_dir_suffix.
8748 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8749 else
8750 ac_dir_suffix= ac_top_builddir=
8753 case $srcdir in
8754 .) # No --srcdir option. We are building in place.
8755 ac_srcdir=.
8756 if test -z "$ac_top_builddir"; then
8757 ac_top_srcdir=.
8758 else
8759 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8760 fi ;;
8761 [\\/]* | ?:[\\/]* ) # Absolute path.
8762 ac_srcdir=$srcdir$ac_dir_suffix;
8763 ac_top_srcdir=$srcdir ;;
8764 *) # Relative path.
8765 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8766 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8767 esac
8769 # Do not use `cd foo && pwd` to compute absolute paths, because
8770 # the directories may not exist.
8771 case `pwd` in
8772 .) ac_abs_builddir="$ac_dir";;
8774 case "$ac_dir" in
8775 .) ac_abs_builddir=`pwd`;;
8776 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8777 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8778 esac;;
8779 esac
8780 case $ac_abs_builddir in
8781 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8783 case ${ac_top_builddir}. in
8784 .) ac_abs_top_builddir=$ac_abs_builddir;;
8785 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8786 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8787 esac;;
8788 esac
8789 case $ac_abs_builddir in
8790 .) ac_abs_srcdir=$ac_srcdir;;
8792 case $ac_srcdir in
8793 .) ac_abs_srcdir=$ac_abs_builddir;;
8794 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8795 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8796 esac;;
8797 esac
8798 case $ac_abs_builddir in
8799 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8801 case $ac_top_srcdir in
8802 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8803 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8804 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8805 esac;;
8806 esac
8809 case $INSTALL in
8810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8811 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8812 esac
8814 if test x"$ac_file" != x-; then
8815 { echo "$as_me:$LINENO: creating $ac_file" >&5
8816 echo "$as_me: creating $ac_file" >&6;}
8817 rm -f "$ac_file"
8819 # Let's still pretend it is `configure' which instantiates (i.e., don't
8820 # use $as_me), people would be surprised to read:
8821 # /* config.h. Generated by config.status. */
8822 if test x"$ac_file" = x-; then
8823 configure_input=
8824 else
8825 configure_input="$ac_file. "
8827 configure_input=$configure_input"Generated from `echo $ac_file_in |
8828 sed 's,.*/,,'` by configure."
8830 # First look for the input files in the build tree, otherwise in the
8831 # src tree.
8832 ac_file_inputs=`IFS=:
8833 for f in $ac_file_in; do
8834 case $f in
8835 -) echo $tmp/stdin ;;
8836 [\\/$]*)
8837 # Absolute (can't be DOS-style, as IFS=:)
8838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8839 echo "$as_me: error: cannot find input file: $f" >&2;}
8840 { (exit 1); exit 1; }; }
8841 echo "$f";;
8842 *) # Relative
8843 if test -f "$f"; then
8844 # Build tree
8845 echo "$f"
8846 elif test -f "$srcdir/$f"; then
8847 # Source tree
8848 echo "$srcdir/$f"
8849 else
8850 # /dev/null tree
8851 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8852 echo "$as_me: error: cannot find input file: $f" >&2;}
8853 { (exit 1); exit 1; }; }
8854 fi;;
8855 esac
8856 done` || { (exit 1); exit 1; }
8857 _ACEOF
8858 cat >>$CONFIG_STATUS <<_ACEOF
8859 sed "$ac_vpsub
8860 $extrasub
8861 _ACEOF
8862 cat >>$CONFIG_STATUS <<\_ACEOF
8864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8865 s,@configure_input@,$configure_input,;t t
8866 s,@srcdir@,$ac_srcdir,;t t
8867 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8868 s,@top_srcdir@,$ac_top_srcdir,;t t
8869 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8870 s,@builddir@,$ac_builddir,;t t
8871 s,@abs_builddir@,$ac_abs_builddir,;t t
8872 s,@top_builddir@,$ac_top_builddir,;t t
8873 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8874 s,@INSTALL@,$ac_INSTALL,;t t
8875 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8876 rm -f $tmp/stdin
8877 if test x"$ac_file" != x-; then
8878 mv $tmp/out $ac_file
8879 else
8880 cat $tmp/out
8881 rm -f $tmp/out
8884 done
8885 _ACEOF
8886 cat >>$CONFIG_STATUS <<\_ACEOF
8889 # CONFIG_HEADER section.
8892 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8893 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8895 # ac_d sets the value in "#define NAME VALUE" lines.
8896 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8897 ac_dB='[ ].*$,\1#\2'
8898 ac_dC=' '
8899 ac_dD=',;t'
8900 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8901 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8902 ac_uB='$,\1#\2define\3'
8903 ac_uC=' '
8904 ac_uD=',;t'
8906 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8908 case $ac_file in
8909 - | *:- | *:-:* ) # input from stdin
8910 cat >$tmp/stdin
8911 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8913 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8915 * ) ac_file_in=$ac_file.in ;;
8916 esac
8918 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8919 echo "$as_me: creating $ac_file" >&6;}
8921 # First look for the input files in the build tree, otherwise in the
8922 # src tree.
8923 ac_file_inputs=`IFS=:
8924 for f in $ac_file_in; do
8925 case $f in
8926 -) echo $tmp/stdin ;;
8927 [\\/$]*)
8928 # Absolute (can't be DOS-style, as IFS=:)
8929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8930 echo "$as_me: error: cannot find input file: $f" >&2;}
8931 { (exit 1); exit 1; }; }
8932 # Do quote $f, to prevent DOS paths from being IFS'd.
8933 echo "$f";;
8934 *) # Relative
8935 if test -f "$f"; then
8936 # Build tree
8937 echo "$f"
8938 elif test -f "$srcdir/$f"; then
8939 # Source tree
8940 echo "$srcdir/$f"
8941 else
8942 # /dev/null tree
8943 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8944 echo "$as_me: error: cannot find input file: $f" >&2;}
8945 { (exit 1); exit 1; }; }
8946 fi;;
8947 esac
8948 done` || { (exit 1); exit 1; }
8949 # Remove the trailing spaces.
8950 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8952 _ACEOF
8954 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8955 # `conftest.undefs', that substitutes the proper values into
8956 # config.h.in to produce config.h. The first handles `#define'
8957 # templates, and the second `#undef' templates.
8958 # And first: Protect against being on the right side of a sed subst in
8959 # config.status. Protect against being in an unquoted here document
8960 # in config.status.
8961 rm -f conftest.defines conftest.undefs
8962 # Using a here document instead of a string reduces the quoting nightmare.
8963 # Putting comments in sed scripts is not portable.
8965 # `end' is used to avoid that the second main sed command (meant for
8966 # 0-ary CPP macros) applies to n-ary macro definitions.
8967 # See the Autoconf documentation for `clear'.
8968 cat >confdef2sed.sed <<\_ACEOF
8969 s/[\\&,]/\\&/g
8970 s,[\\$`],\\&,g
8971 t clear
8972 : clear
8973 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8974 t end
8975 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8976 : end
8977 _ACEOF
8978 # If some macros were called several times there might be several times
8979 # the same #defines, which is useless. Nevertheless, we may not want to
8980 # sort them, since we want the *last* AC-DEFINE to be honored.
8981 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8982 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8983 rm -f confdef2sed.sed
8985 # This sed command replaces #undef with comments. This is necessary, for
8986 # example, in the case of _POSIX_SOURCE, which is predefined and required
8987 # on some systems where configure will not decide to define it.
8988 cat >>conftest.undefs <<\_ACEOF
8989 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8990 _ACEOF
8992 # Break up conftest.defines because some shells have a limit on the size
8993 # of here documents, and old seds have small limits too (100 cmds).
8994 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8995 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8996 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8997 echo ' :' >>$CONFIG_STATUS
8998 rm -f conftest.tail
8999 while grep . conftest.defines >/dev/null
9001 # Write a limited-size here document to $tmp/defines.sed.
9002 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9003 # Speed up: don't consider the non `#define' lines.
9004 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9005 # Work around the forget-to-reset-the-flag bug.
9006 echo 't clr' >>$CONFIG_STATUS
9007 echo ': clr' >>$CONFIG_STATUS
9008 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9009 echo 'CEOF
9010 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9011 rm -f $tmp/in
9012 mv $tmp/out $tmp/in
9013 ' >>$CONFIG_STATUS
9014 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9015 rm -f conftest.defines
9016 mv conftest.tail conftest.defines
9017 done
9018 rm -f conftest.defines
9019 echo ' fi # grep' >>$CONFIG_STATUS
9020 echo >>$CONFIG_STATUS
9022 # Break up conftest.undefs because some shells have a limit on the size
9023 # of here documents, and old seds have small limits too (100 cmds).
9024 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9025 rm -f conftest.tail
9026 while grep . conftest.undefs >/dev/null
9028 # Write a limited-size here document to $tmp/undefs.sed.
9029 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9030 # Speed up: don't consider the non `#undef'
9031 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9032 # Work around the forget-to-reset-the-flag bug.
9033 echo 't clr' >>$CONFIG_STATUS
9034 echo ': clr' >>$CONFIG_STATUS
9035 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9036 echo 'CEOF
9037 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9038 rm -f $tmp/in
9039 mv $tmp/out $tmp/in
9040 ' >>$CONFIG_STATUS
9041 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9042 rm -f conftest.undefs
9043 mv conftest.tail conftest.undefs
9044 done
9045 rm -f conftest.undefs
9047 cat >>$CONFIG_STATUS <<\_ACEOF
9048 # Let's still pretend it is `configure' which instantiates (i.e., don't
9049 # use $as_me), people would be surprised to read:
9050 # /* config.h. Generated by config.status. */
9051 if test x"$ac_file" = x-; then
9052 echo "/* Generated by configure. */" >$tmp/config.h
9053 else
9054 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9056 cat $tmp/in >>$tmp/config.h
9057 rm -f $tmp/in
9058 if test x"$ac_file" != x-; then
9059 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9060 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9061 echo "$as_me: $ac_file is unchanged" >&6;}
9062 else
9063 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9065 X"$ac_file" : 'X\(//\)[^/]' \| \
9066 X"$ac_file" : 'X\(//\)$' \| \
9067 X"$ac_file" : 'X\(/\)' \| \
9068 . : '\(.\)' 2>/dev/null ||
9069 echo X"$ac_file" |
9070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9072 /^X\(\/\/\)$/{ s//\1/; q; }
9073 /^X\(\/\).*/{ s//\1/; q; }
9074 s/.*/./; q'`
9075 { if $as_mkdir_p; then
9076 mkdir -p "$ac_dir"
9077 else
9078 as_dir="$ac_dir"
9079 as_dirs=
9080 while test ! -d "$as_dir"; do
9081 as_dirs="$as_dir $as_dirs"
9082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9084 X"$as_dir" : 'X\(//\)[^/]' \| \
9085 X"$as_dir" : 'X\(//\)$' \| \
9086 X"$as_dir" : 'X\(/\)' \| \
9087 . : '\(.\)' 2>/dev/null ||
9088 echo X"$as_dir" |
9089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9091 /^X\(\/\/\)$/{ s//\1/; q; }
9092 /^X\(\/\).*/{ s//\1/; q; }
9093 s/.*/./; q'`
9094 done
9095 test ! -n "$as_dirs" || mkdir $as_dirs
9096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9098 { (exit 1); exit 1; }; }; }
9100 rm -f $ac_file
9101 mv $tmp/config.h $ac_file
9103 else
9104 cat $tmp/config.h
9105 rm -f $tmp/config.h
9107 # Compute $ac_file's index in $config_headers.
9108 _am_stamp_count=1
9109 for _am_header in $config_headers :; do
9110 case $_am_header in
9111 $ac_file | $ac_file:* )
9112 break ;;
9114 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9115 esac
9116 done
9117 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9118 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9119 X$ac_file : 'X\(//\)[^/]' \| \
9120 X$ac_file : 'X\(//\)$' \| \
9121 X$ac_file : 'X\(/\)' \| \
9122 . : '\(.\)' 2>/dev/null ||
9123 echo X$ac_file |
9124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9126 /^X\(\/\/\)$/{ s//\1/; q; }
9127 /^X\(\/\).*/{ s//\1/; q; }
9128 s/.*/./; q'`/stamp-h$_am_stamp_count
9129 done
9130 _ACEOF
9131 cat >>$CONFIG_STATUS <<\_ACEOF
9134 # CONFIG_LINKS section.
9137 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9138 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9139 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9141 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9142 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9144 if test ! -r $srcdir/$ac_source; then
9145 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9146 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9147 { (exit 1); exit 1; }; }
9149 rm -f $ac_dest
9151 # Make relative symlinks.
9152 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9154 X"$ac_dest" : 'X\(//\)[^/]' \| \
9155 X"$ac_dest" : 'X\(//\)$' \| \
9156 X"$ac_dest" : 'X\(/\)' \| \
9157 . : '\(.\)' 2>/dev/null ||
9158 echo X"$ac_dest" |
9159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9161 /^X\(\/\/\)$/{ s//\1/; q; }
9162 /^X\(\/\).*/{ s//\1/; q; }
9163 s/.*/./; q'`
9164 { if $as_mkdir_p; then
9165 mkdir -p "$ac_dest_dir"
9166 else
9167 as_dir="$ac_dest_dir"
9168 as_dirs=
9169 while test ! -d "$as_dir"; do
9170 as_dirs="$as_dir $as_dirs"
9171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9173 X"$as_dir" : 'X\(//\)[^/]' \| \
9174 X"$as_dir" : 'X\(//\)$' \| \
9175 X"$as_dir" : 'X\(/\)' \| \
9176 . : '\(.\)' 2>/dev/null ||
9177 echo X"$as_dir" |
9178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9180 /^X\(\/\/\)$/{ s//\1/; q; }
9181 /^X\(\/\).*/{ s//\1/; q; }
9182 s/.*/./; q'`
9183 done
9184 test ! -n "$as_dirs" || mkdir $as_dirs
9185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9186 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9187 { (exit 1); exit 1; }; }; }
9189 ac_builddir=.
9191 if test "$ac_dest_dir" != .; then
9192 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9193 # A "../" for each directory in $ac_dir_suffix.
9194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9195 else
9196 ac_dir_suffix= ac_top_builddir=
9199 case $srcdir in
9200 .) # No --srcdir option. We are building in place.
9201 ac_srcdir=.
9202 if test -z "$ac_top_builddir"; then
9203 ac_top_srcdir=.
9204 else
9205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9206 fi ;;
9207 [\\/]* | ?:[\\/]* ) # Absolute path.
9208 ac_srcdir=$srcdir$ac_dir_suffix;
9209 ac_top_srcdir=$srcdir ;;
9210 *) # Relative path.
9211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9213 esac
9215 # Do not use `cd foo && pwd` to compute absolute paths, because
9216 # the directories may not exist.
9217 case `pwd` in
9218 .) ac_abs_builddir="$ac_dest_dir";;
9220 case "$ac_dest_dir" in
9221 .) ac_abs_builddir=`pwd`;;
9222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9223 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9224 esac;;
9225 esac
9226 case $ac_abs_builddir in
9227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9229 case ${ac_top_builddir}. in
9230 .) ac_abs_top_builddir=$ac_abs_builddir;;
9231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9233 esac;;
9234 esac
9235 case $ac_abs_builddir in
9236 .) ac_abs_srcdir=$ac_srcdir;;
9238 case $ac_srcdir in
9239 .) ac_abs_srcdir=$ac_abs_builddir;;
9240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9242 esac;;
9243 esac
9244 case $ac_abs_builddir in
9245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9247 case $ac_top_srcdir in
9248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9251 esac;;
9252 esac
9255 case $srcdir in
9256 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9257 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9258 esac
9260 # Try a symlink, then a hard link, then a copy.
9261 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9262 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9263 cp -p $srcdir/$ac_source $ac_dest ||
9264 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9265 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9266 { (exit 1); exit 1; }; }
9267 done
9268 _ACEOF
9269 cat >>$CONFIG_STATUS <<\_ACEOF
9272 # CONFIG_COMMANDS section.
9274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9275 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9276 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9277 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9279 X"$ac_dest" : 'X\(//\)[^/]' \| \
9280 X"$ac_dest" : 'X\(//\)$' \| \
9281 X"$ac_dest" : 'X\(/\)' \| \
9282 . : '\(.\)' 2>/dev/null ||
9283 echo X"$ac_dest" |
9284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9286 /^X\(\/\/\)$/{ s//\1/; q; }
9287 /^X\(\/\).*/{ s//\1/; q; }
9288 s/.*/./; q'`
9289 { if $as_mkdir_p; then
9290 mkdir -p "$ac_dir"
9291 else
9292 as_dir="$ac_dir"
9293 as_dirs=
9294 while test ! -d "$as_dir"; do
9295 as_dirs="$as_dir $as_dirs"
9296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9298 X"$as_dir" : 'X\(//\)[^/]' \| \
9299 X"$as_dir" : 'X\(//\)$' \| \
9300 X"$as_dir" : 'X\(/\)' \| \
9301 . : '\(.\)' 2>/dev/null ||
9302 echo X"$as_dir" |
9303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9305 /^X\(\/\/\)$/{ s//\1/; q; }
9306 /^X\(\/\).*/{ s//\1/; q; }
9307 s/.*/./; q'`
9308 done
9309 test ! -n "$as_dirs" || mkdir $as_dirs
9310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9312 { (exit 1); exit 1; }; }; }
9314 ac_builddir=.
9316 if test "$ac_dir" != .; then
9317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9318 # A "../" for each directory in $ac_dir_suffix.
9319 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9320 else
9321 ac_dir_suffix= ac_top_builddir=
9324 case $srcdir in
9325 .) # No --srcdir option. We are building in place.
9326 ac_srcdir=.
9327 if test -z "$ac_top_builddir"; then
9328 ac_top_srcdir=.
9329 else
9330 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9331 fi ;;
9332 [\\/]* | ?:[\\/]* ) # Absolute path.
9333 ac_srcdir=$srcdir$ac_dir_suffix;
9334 ac_top_srcdir=$srcdir ;;
9335 *) # Relative path.
9336 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9337 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9338 esac
9340 # Do not use `cd foo && pwd` to compute absolute paths, because
9341 # the directories may not exist.
9342 case `pwd` in
9343 .) ac_abs_builddir="$ac_dir";;
9345 case "$ac_dir" in
9346 .) ac_abs_builddir=`pwd`;;
9347 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9348 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9349 esac;;
9350 esac
9351 case $ac_abs_builddir in
9352 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9354 case ${ac_top_builddir}. in
9355 .) ac_abs_top_builddir=$ac_abs_builddir;;
9356 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9357 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9358 esac;;
9359 esac
9360 case $ac_abs_builddir in
9361 .) ac_abs_srcdir=$ac_srcdir;;
9363 case $ac_srcdir in
9364 .) ac_abs_srcdir=$ac_abs_builddir;;
9365 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9366 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9367 esac;;
9368 esac
9369 case $ac_abs_builddir in
9370 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9372 case $ac_top_srcdir in
9373 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9374 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9375 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9376 esac;;
9377 esac
9380 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9381 echo "$as_me: executing $ac_dest commands" >&6;}
9382 case $ac_dest in
9383 default-1 )
9384 # Only add multilib support code if we just rebuilt the top-level
9385 # Makefile.
9386 case " $CONFIG_FILES " in
9387 *" Makefile "*)
9388 ac_file=Makefile . ${multi_basedir}/config-ml.in
9390 esac ;;
9391 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9392 # Strip MF so we end up with the name of the file.
9393 mf=`echo "$mf" | sed -e 's/:.*$//'`
9394 # Check whether this is an Automake generated Makefile or not.
9395 # We used to match only the files named `Makefile.in', but
9396 # some people rename them; so instead we look at the file content.
9397 # Grep'ing the first line is not enough: some people post-process
9398 # each Makefile.in and add a new line on top of each file to say so.
9399 # So let's grep whole file.
9400 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9401 dirpart=`(dirname "$mf") 2>/dev/null ||
9402 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9403 X"$mf" : 'X\(//\)[^/]' \| \
9404 X"$mf" : 'X\(//\)$' \| \
9405 X"$mf" : 'X\(/\)' \| \
9406 . : '\(.\)' 2>/dev/null ||
9407 echo X"$mf" |
9408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9410 /^X\(\/\/\)$/{ s//\1/; q; }
9411 /^X\(\/\).*/{ s//\1/; q; }
9412 s/.*/./; q'`
9413 else
9414 continue
9416 # Extract the definition of DEPDIR, am__include, and am__quote
9417 # from the Makefile without running `make'.
9418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9419 test -z "$DEPDIR" && continue
9420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9421 test -z "am__include" && continue
9422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9423 # When using ansi2knr, U may be empty or an underscore; expand it
9424 U=`sed -n 's/^U = //p' < "$mf"`
9425 # Find all dependency output files, they are included files with
9426 # $(DEPDIR) in their names. We invoke sed twice because it is the
9427 # simplest approach to changing $(DEPDIR) to its actual value in the
9428 # expansion.
9429 for file in `sed -n "
9430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9432 # Make sure the directory exists.
9433 test -f "$dirpart/$file" && continue
9434 fdir=`(dirname "$file") 2>/dev/null ||
9435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9436 X"$file" : 'X\(//\)[^/]' \| \
9437 X"$file" : 'X\(//\)$' \| \
9438 X"$file" : 'X\(/\)' \| \
9439 . : '\(.\)' 2>/dev/null ||
9440 echo X"$file" |
9441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9443 /^X\(\/\/\)$/{ s//\1/; q; }
9444 /^X\(\/\).*/{ s//\1/; q; }
9445 s/.*/./; q'`
9446 { if $as_mkdir_p; then
9447 mkdir -p $dirpart/$fdir
9448 else
9449 as_dir=$dirpart/$fdir
9450 as_dirs=
9451 while test ! -d "$as_dir"; do
9452 as_dirs="$as_dir $as_dirs"
9453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9455 X"$as_dir" : 'X\(//\)[^/]' \| \
9456 X"$as_dir" : 'X\(//\)$' \| \
9457 X"$as_dir" : 'X\(/\)' \| \
9458 . : '\(.\)' 2>/dev/null ||
9459 echo X"$as_dir" |
9460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9462 /^X\(\/\/\)$/{ s//\1/; q; }
9463 /^X\(\/\).*/{ s//\1/; q; }
9464 s/.*/./; q'`
9465 done
9466 test ! -n "$as_dirs" || mkdir $as_dirs
9467 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9468 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9469 { (exit 1); exit 1; }; }; }
9471 # echo "creating $dirpart/$file"
9472 echo '# dummy' > "$dirpart/$file"
9473 done
9474 done
9476 include ) test -d include || mkdir include ;;
9477 src )
9478 test -d src || mkdir src
9479 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
9481 esac
9482 done
9483 _ACEOF
9485 cat >>$CONFIG_STATUS <<\_ACEOF
9487 { (exit 0); exit 0; }
9488 _ACEOF
9489 chmod +x $CONFIG_STATUS
9490 ac_clean_files=$ac_clean_files_save
9493 # configure is writing to config.log, and then calls config.status.
9494 # config.status does its own redirection, appending to config.log.
9495 # Unfortunately, on DOS this fails, as config.log is still kept open
9496 # by configure, so config.status won't be able to write to it; its
9497 # output is simply discarded. So we exec the FD to /dev/null,
9498 # effectively closing config.log, so it can be properly (re)opened and
9499 # appended to by config.status. When coming back to configure, we
9500 # need to make the FD available again.
9501 if test "$no_create" != yes; then
9502 ac_cs_success=:
9503 ac_config_status_args=
9504 test "$silent" = yes &&
9505 ac_config_status_args="$ac_config_status_args --quiet"
9506 exec 5>/dev/null
9507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9508 exec 5>>config.log
9509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9510 # would make configure fail if this is the last instruction.
9511 $ac_cs_success || { (exit 1); exit 1; }