* pex-unix.c (pexecute): Use vfork instead of fork, with
[official-gcc.git] / libffi / configure
blob13363aba881ffb8625287eda9bf218350f61af21
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 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE CPP CPPFLAGS EGREP ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
317 ac_prev=
318 for ac_option
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
331 case $ac_option in
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
350 --config-cache | -C)
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
613 esac
614 done
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631 done
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643 done
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
689 else
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CPP_set=${CPP+set}
718 ac_env_CPP_value=$CPP
719 ac_cv_env_CPP_set=${CPP+set}
720 ac_cv_env_CPP_value=$CPP
721 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
722 ac_env_CPPFLAGS_value=$CPPFLAGS
723 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
724 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
727 # Report the --help message.
729 if test "$ac_init_help" = "long"; then
730 # Omit some internal or obsolete options to make the list less imposing.
731 # This message is too long to be a string in the A/UX 3.1 sh.
732 cat <<_ACEOF
733 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
735 Usage: $0 [OPTION]... [VAR=VALUE]...
737 To assign environment variables (e.g., CC, CFLAGS...), specify them as
738 VAR=VALUE. See below for descriptions of some of the useful variables.
740 Defaults for the options are specified in brackets.
742 Configuration:
743 -h, --help display this help and exit
744 --help=short display options specific to this package
745 --help=recursive display the short help of all the included packages
746 -V, --version display version information and exit
747 -q, --quiet, --silent do not print \`checking...' messages
748 --cache-file=FILE cache test results in FILE [disabled]
749 -C, --config-cache alias for \`--cache-file=config.cache'
750 -n, --no-create do not create output files
751 --srcdir=DIR find the sources in DIR [configure dir or \`..']
753 _ACEOF
755 cat <<_ACEOF
756 Installation directories:
757 --prefix=PREFIX install architecture-independent files in PREFIX
758 [$ac_default_prefix]
759 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
760 [PREFIX]
762 By default, \`make install' will install all the files in
763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
765 for instance \`--prefix=\$HOME'.
767 For better control, use the options below.
769 Fine tuning of the installation directories:
770 --bindir=DIR user executables [EPREFIX/bin]
771 --sbindir=DIR system admin executables [EPREFIX/sbin]
772 --libexecdir=DIR program executables [EPREFIX/libexec]
773 --datadir=DIR read-only architecture-independent data [PREFIX/share]
774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
776 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
777 --libdir=DIR object code libraries [EPREFIX/lib]
778 --includedir=DIR C header files [PREFIX/include]
779 --oldincludedir=DIR C header files for non-gcc [/usr/include]
780 --infodir=DIR info documentation [PREFIX/info]
781 --mandir=DIR man documentation [PREFIX/man]
782 _ACEOF
784 cat <<\_ACEOF
786 Program names:
787 --program-prefix=PREFIX prepend PREFIX to installed program names
788 --program-suffix=SUFFIX append SUFFIX to installed program names
789 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
791 System types:
792 --build=BUILD configure for building on BUILD [guessed]
793 --host=HOST cross-compile to build programs to run on HOST [BUILD]
794 --target=TARGET configure for building compilers for TARGET [HOST]
795 _ACEOF
798 if test -n "$ac_init_help"; then
799 case $ac_init_help in
800 short | recursive ) echo "Configuration of libffi 2.1:";;
801 esac
802 cat <<\_ACEOF
804 Optional Features:
805 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
806 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
807 --enable-multilib build many library versions (default)
808 --disable-dependency-tracking Speeds up one-time builds
809 --enable-dependency-tracking Do not reject slow dependency extractors
810 --enable-shared=PKGS build shared libraries default=yes
811 --enable-static=PKGS build static libraries default=yes
812 --enable-fast-install=PKGS optimize for fast installation default=yes
813 --disable-libtool-lock avoid locking (might break parallel builds)
814 --enable-maintainer-mode enable make rules and dependencies not useful
815 (and sometimes confusing) to the casual installer
816 --enable-debug debugging mode
817 --disable-structs omit code for struct support
818 --disable-raw-api make the raw api unavailable
819 --enable-purify-safety purify-safe mode
821 Optional Packages:
822 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
823 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
824 --with-gnu-ld assume the C compiler uses GNU ld default=no
825 --with-pic try to use only PIC/non-PIC objects default=use both
827 Some influential environment variables:
828 CC C compiler command
829 CFLAGS C compiler flags
830 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
831 nonstandard directory <lib dir>
832 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
833 headers in a nonstandard directory <include dir>
834 CPP C preprocessor
836 Use these variables to override the choices made by `configure' or to help
837 it to find libraries and programs with nonstandard names/locations.
839 Report bugs to <http://gcc.gnu.org/bugs.html>.
840 _ACEOF
843 if test "$ac_init_help" = "recursive"; then
844 # If there are subdirs, report their specific --help.
845 ac_popdir=`pwd`
846 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
847 test -d $ac_dir || continue
848 ac_builddir=.
850 if test "$ac_dir" != .; then
851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
852 # A "../" for each directory in $ac_dir_suffix.
853 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
854 else
855 ac_dir_suffix= ac_top_builddir=
858 case $srcdir in
859 .) # No --srcdir option. We are building in place.
860 ac_srcdir=.
861 if test -z "$ac_top_builddir"; then
862 ac_top_srcdir=.
863 else
864 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
865 fi ;;
866 [\\/]* | ?:[\\/]* ) # Absolute path.
867 ac_srcdir=$srcdir$ac_dir_suffix;
868 ac_top_srcdir=$srcdir ;;
869 *) # Relative path.
870 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
871 ac_top_srcdir=$ac_top_builddir$srcdir ;;
872 esac
874 # Do not use `cd foo && pwd` to compute absolute paths, because
875 # the directories may not exist.
876 case `pwd` in
877 .) ac_abs_builddir="$ac_dir";;
879 case "$ac_dir" in
880 .) ac_abs_builddir=`pwd`;;
881 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
882 *) ac_abs_builddir=`pwd`/"$ac_dir";;
883 esac;;
884 esac
885 case $ac_abs_builddir in
886 .) ac_abs_top_builddir=${ac_top_builddir}.;;
888 case ${ac_top_builddir}. in
889 .) ac_abs_top_builddir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
891 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
892 esac;;
893 esac
894 case $ac_abs_builddir in
895 .) ac_abs_srcdir=$ac_srcdir;;
897 case $ac_srcdir in
898 .) ac_abs_srcdir=$ac_abs_builddir;;
899 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
900 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
901 esac;;
902 esac
903 case $ac_abs_builddir in
904 .) ac_abs_top_srcdir=$ac_top_srcdir;;
906 case $ac_top_srcdir in
907 .) ac_abs_top_srcdir=$ac_abs_builddir;;
908 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
909 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
910 esac;;
911 esac
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
935 libffi configure 2.1
936 generated by GNU Autoconf 2.59
938 Copyright (C) 2003 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by libffi $as_me 2.1, which was
950 generated by GNU Autoconf 2.59. Invocation command line was
952 $ $0 $@
954 _ACEOF
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 _ASUNAME
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
988 } >&5
990 cat >&5 <<_ACEOF
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
997 _ACEOF
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1012 for ac_arg
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1045 esac
1046 done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1059 echo
1061 cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 esac;
1082 echo
1084 cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 exit $exit_status
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1181 . "$ac_site_file"
1183 done
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1196 else
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 esac
1244 done
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285 ac_config_headers="$ac_config_headers fficonfig.h"
1288 # Default to --enable-multilib
1289 # Check whether --enable-multilib or --disable-multilib was given.
1290 if test "${enable_multilib+set}" = set; then
1291 enableval="$enable_multilib"
1292 case "$enableval" in
1293 yes) multilib=yes ;;
1294 no) multilib=no ;;
1295 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1296 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1297 { (exit 1); exit 1; }; } ;;
1298 esac
1299 else
1300 multilib=yes
1303 # We may get other options which we leave undocumented:
1304 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1305 # See config-ml.in if you want the gory details.
1307 if test "$srcdir" = "."; then
1308 if test "$with_target_subdir" != "."; then
1309 multi_basedir="$srcdir/$with_multisrctop../.."
1310 else
1311 multi_basedir="$srcdir/$with_multisrctop.."
1313 else
1314 multi_basedir="$srcdir/.."
1318 ac_config_commands="$ac_config_commands default-1"
1320 if test a = b; then
1321 # This is for automake
1322 ac_aux_dir=
1323 for ac_dir in .. $srcdir/..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 else
1348 # and this is for autoconf
1349 ac_aux_dir=
1350 for ac_dir in ${multi_basedir}; do
1351 if test -f $ac_dir/install-sh; then
1352 ac_aux_dir=$ac_dir
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1354 break
1355 elif test -f $ac_dir/install.sh; then
1356 ac_aux_dir=$ac_dir
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1358 break
1359 elif test -f $ac_dir/shtool; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1362 break
1364 done
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1402 build=$ac_cv_build
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1424 host=$ac_cv_host
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking target system type" >&5
1431 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1432 if test "${ac_cv_target+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 ac_cv_target_alias=$target_alias
1436 test "x$ac_cv_target_alias" = "x" &&
1437 ac_cv_target_alias=$ac_cv_host_alias
1438 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1445 echo "${ECHO_T}$ac_cv_target" >&6
1446 target=$ac_cv_target
1447 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 # The aliases save the names the user supplied, while $host etc.
1453 # will get canonicalized.
1454 test -n "$target_alias" &&
1455 test "$program_prefix$program_suffix$program_transform_name" = \
1456 NONENONEs,x,x, &&
1457 program_prefix=${target_alias}-
1458 target_alias=${target_alias-$host_alias}
1460 am__api_version="1.7"
1461 # Find a good install program. We prefer a C program (faster),
1462 # so one script is as good as another. But avoid the broken or
1463 # incompatible versions:
1464 # SysV /etc/install, /usr/sbin/install
1465 # SunOS /usr/etc/install
1466 # IRIX /sbin/install
1467 # AIX /bin/install
1468 # AmigaOS /C/install, which installs bootblocks on floppy discs
1469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1472 # OS/2's system install, which has a completely different semantic
1473 # ./install, which can be erroneously created by make from ./install.sh.
1474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1476 if test -z "$INSTALL"; then
1477 if test "${ac_cv_path_install+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 # Account for people who put trailing slashes in PATH elements.
1486 case $as_dir/ in
1487 ./ | .// | /cC/* | \
1488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1490 /usr/ucb/* ) ;;
1492 # OSF1 and SCO ODT 3.0 have their own names for install.
1493 # Don't use installbsd from OSF since it installs stuff as root
1494 # by default.
1495 for ac_prog in ginstall scoinst install; do
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1498 if test $ac_prog = install &&
1499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1500 # AIX install. It has an incompatible calling convention.
1502 elif test $ac_prog = install &&
1503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1504 # program-specific install script used by HP pwplus--don't use.
1506 else
1507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1508 break 3
1511 done
1512 done
1514 esac
1515 done
1519 if test "${ac_cv_path_install+set}" = set; then
1520 INSTALL=$ac_cv_path_install
1521 else
1522 # As a last resort, use the slow shell script. We don't cache a
1523 # path for INSTALL within a source directory, because that will
1524 # break other packages using the cache if that directory is
1525 # removed, or if the path is relative.
1526 INSTALL=$ac_install_sh
1529 echo "$as_me:$LINENO: result: $INSTALL" >&5
1530 echo "${ECHO_T}$INSTALL" >&6
1532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1533 # It thinks the first close brace ends the variable substitution.
1534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1540 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1541 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1542 # Just in case
1543 sleep 1
1544 echo timestamp > conftest.file
1545 # Do `set' in a subshell so we don't clobber the current shell's
1546 # arguments. Must try -L first in case configure is actually a
1547 # symlink; some systems play weird games with the mod time of symlinks
1548 # (eg FreeBSD returns the mod time of the symlink's containing
1549 # directory).
1550 if (
1551 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1552 if test "$*" = "X"; then
1553 # -L didn't work.
1554 set X `ls -t $srcdir/configure conftest.file`
1556 rm -f conftest.file
1557 if test "$*" != "X $srcdir/configure conftest.file" \
1558 && test "$*" != "X conftest.file $srcdir/configure"; then
1560 # If neither matched, then we have a broken ls. This can happen
1561 # if, for instance, CONFIG_SHELL is bash and it inherits a
1562 # broken ls alias from the environment. This has actually
1563 # happened. Such a system could not be considered "sane".
1564 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1565 alias in your environment" >&5
1566 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1567 alias in your environment" >&2;}
1568 { (exit 1); exit 1; }; }
1571 test "$2" = conftest.file
1573 then
1574 # Ok.
1576 else
1577 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1578 Check your system clock" >&5
1579 echo "$as_me: error: newly created file is older than distributed files!
1580 Check your system clock" >&2;}
1581 { (exit 1); exit 1; }; }
1583 echo "$as_me:$LINENO: result: yes" >&5
1584 echo "${ECHO_T}yes" >&6
1585 test "$program_prefix" != NONE &&
1586 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1587 # Use a double $ so make ignores it.
1588 test "$program_suffix" != NONE &&
1589 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1590 # Double any \ or $. echo might interpret backslashes.
1591 # By default was `s,x,x', remove it if useless.
1592 cat <<\_ACEOF >conftest.sed
1593 s/[\\$]/&&/g;s/;s,x,x,$//
1594 _ACEOF
1595 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1596 rm conftest.sed
1599 # expand $ac_aux_dir to an absolute path
1600 am_aux_dir=`cd $ac_aux_dir && pwd`
1602 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1603 # Use eval to expand $SHELL
1604 if eval "$MISSING --run true"; then
1605 am_missing_run="$MISSING --run "
1606 else
1607 am_missing_run=
1608 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1609 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1612 for ac_prog in gawk mawk nawk awk
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615 set dummy $ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_AWK+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$AWK"; then
1622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_AWK="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1635 done
1636 done
1640 AWK=$ac_cv_prog_AWK
1641 if test -n "$AWK"; then
1642 echo "$as_me:$LINENO: result: $AWK" >&5
1643 echo "${ECHO_T}$AWK" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$AWK" && break
1650 done
1652 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1653 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1654 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1655 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 cat >conftest.make <<\_ACEOF
1659 all:
1660 @echo 'ac_maketemp="$(MAKE)"'
1661 _ACEOF
1662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1663 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1664 if test -n "$ac_maketemp"; then
1665 eval ac_cv_prog_make_${ac_make}_set=yes
1666 else
1667 eval ac_cv_prog_make_${ac_make}_set=no
1669 rm -f conftest.make
1671 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1672 echo "$as_me:$LINENO: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1674 SET_MAKE=
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 SET_MAKE="MAKE=${MAKE-make}"
1681 rm -rf .tst 2>/dev/null
1682 mkdir .tst 2>/dev/null
1683 if test -d .tst; then
1684 am__leading_dot=.
1685 else
1686 am__leading_dot=_
1688 rmdir .tst 2>/dev/null
1690 # test to see if srcdir already configured
1691 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1692 test -f $srcdir/config.status; then
1693 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1694 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1695 { (exit 1); exit 1; }; }
1698 # test whether we have cygpath
1699 if test -z "$CYGPATH_W"; then
1700 if (cygpath --version) >/dev/null 2>/dev/null; then
1701 CYGPATH_W='cygpath -w'
1702 else
1703 CYGPATH_W=echo
1708 # Define the identity of the package.
1709 PACKAGE='libffi'
1710 VERSION='2.1'
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1720 _ACEOF
1722 # Some tools Automake needs.
1724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1739 AMTAR=${AMTAR-"${am_missing_run}tar"}
1741 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1743 # Installed binaries are usually stripped using `strip' when the user
1744 # run `make install-strip'. However `strip' might not be the right
1745 # tool to use in cross-compilation environments, therefore Automake
1746 # will honor the `STRIP' environment variable to overrule this program.
1747 if test "$cross_compiling" != no; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}strip; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_STRIP+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$STRIP"; then
1757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
1770 done
1771 done
1775 STRIP=$ac_cv_prog_STRIP
1776 if test -n "$STRIP"; then
1777 echo "$as_me:$LINENO: result: $STRIP" >&5
1778 echo "${ECHO_T}$STRIP" >&6
1779 else
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_STRIP"; then
1786 ac_ct_STRIP=$STRIP
1787 # Extract the first word of "strip", so it can be a program name with args.
1788 set dummy strip; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$ac_ct_STRIP"; then
1795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_STRIP="strip"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1811 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1815 if test -n "$ac_ct_STRIP"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1817 echo "${ECHO_T}$ac_ct_STRIP" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 STRIP=$ac_ct_STRIP
1824 else
1825 STRIP="$ac_cv_prog_STRIP"
1829 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1831 # We need awk for the "check" target. The system "awk" is bad on
1832 # some platforms.
1837 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1838 # We must force CC to /not/ be precious variables; otherwise
1839 # the wrong, non-multilib-adjusted value will be used in multilibs.
1840 # As a side effect, we have to subst CFLAGS ourselves.
1844 ac_ext=c
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1887 ac_ct_CC=$CC
1888 # Extract the first word of "gcc", so it can be a program name with args.
1889 set dummy gcc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="gcc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1909 done
1910 done
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 CC=$ac_ct_CC
1924 else
1925 CC="$ac_cv_prog_CC"
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_CC="${ac_tool_prefix}cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1956 CC=$ac_cv_prog_CC
1957 if test -n "$CC"; then
1958 echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1966 if test -z "$ac_cv_prog_CC"; then
1967 ac_ct_CC=$CC
1968 # Extract the first word of "cc", so it can be a program name with args.
1969 set dummy cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$ac_ct_CC"; then
1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_ac_ct_CC="cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6
1998 else
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2003 CC=$ac_ct_CC
2004 else
2005 CC="$ac_cv_prog_CC"
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 ac_prog_rejected=no
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2030 continue
2032 ac_cv_prog_CC="cc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2036 done
2037 done
2039 if test $ac_prog_rejected = yes; then
2040 # We found a bogon in the path, so make sure we never use it.
2041 set dummy $ac_cv_prog_CC
2042 shift
2043 if test $# != 0; then
2044 # We chose a different compiler from the bogus one.
2045 # However, it has the same basename, so the bogon will be chosen
2046 # first if we set CC to just the basename; use the full file name.
2047 shift
2048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in cl
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6
2097 else
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$CC" && break
2103 done
2105 if test -z "$CC"; then
2106 ac_ct_CC=$CC
2107 for ac_prog in cl
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$ac_ct_CC"; then
2117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_ac_ct_CC="$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2130 done
2131 done
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6
2139 else
2140 echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2144 test -n "$ac_ct_CC" && break
2145 done
2147 CC=$ac_ct_CC
2153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&2;}
2157 { (exit 1); exit 1; }; }
2159 # Provide some information about the compiler.
2160 echo "$as_me:$LINENO:" \
2161 "checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2164 (eval $ac_compiler --version </dev/null >&5) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2169 (eval $ac_compiler -v </dev/null >&5) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2174 (eval $ac_compiler -V </dev/null >&5) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2179 cat >conftest.$ac_ext <<_ACEOF
2180 /* confdefs.h. */
2181 _ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2187 main ()
2191 return 0;
2193 _ACEOF
2194 ac_clean_files_save=$ac_clean_files
2195 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2196 # Try to create an executable without -o first, disregard a.out.
2197 # It will help us diagnose broken compilers, and finding out an intuition
2198 # of exeext.
2199 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2200 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2201 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2202 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2203 (eval $ac_link_default) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Find the output, starting from the most likely. This scheme is
2208 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2209 # resort.
2211 # Be careful to initialize this variable, since it used to be cached.
2212 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2213 ac_cv_exeext=
2214 # b.out is created by i960 compilers.
2215 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2217 test -f "$ac_file" || continue
2218 case $ac_file in
2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2221 conftest.$ac_ext )
2222 # This is the source file.
2224 [ab].out )
2225 # We found the default executable, but exeext='' is most
2226 # certainly right.
2227 break;;
2228 *.* )
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 # FIXME: I believe we export ac_cv_exeext for Libtool,
2231 # but it would be cool to find out if it's true. Does anybody
2232 # maintain Libtool? --akim.
2233 export ac_cv_exeext
2234 break;;
2236 break;;
2237 esac
2238 done
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2250 ac_exeext=$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 cross_compiling=no
2268 else
2269 if test "$cross_compiling" = maybe; then
2270 cross_compiling=yes
2271 else
2272 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details." >&2;}
2278 { (exit 1); exit 1; }; }
2282 echo "$as_me:$LINENO: result: yes" >&5
2283 echo "${ECHO_T}yes" >&6
2285 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2286 ac_clean_files=$ac_clean_files_save
2287 # Check the compiler produces executables we can run. If not, either
2288 # the compiler is broken, or we cross compile.
2289 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2290 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2291 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2292 echo "${ECHO_T}$cross_compiling" >&6
2294 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2295 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297 (eval $ac_link) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2302 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2303 # work properly (i.e., refer to `conftest.exe'), while it won't with
2304 # `rm'.
2305 for ac_file in conftest.exe conftest conftest.*; do
2306 test -f "$ac_file" || continue
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 export ac_cv_exeext
2311 break;;
2312 * ) break;;
2313 esac
2314 done
2315 else
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2323 rm -f conftest$ac_cv_exeext
2324 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2332 if test "${ac_cv_objext+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 main ()
2347 return 0;
2349 _ACEOF
2350 rm -f conftest.o conftest.obj
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2357 case $ac_file in
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360 break;;
2361 esac
2362 done
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6
2378 OBJEXT=$ac_cv_objext
2379 ac_objext=$OBJEXT
2380 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2393 main ()
2395 #ifndef __GNUC__
2396 choke me
2397 #endif
2400 return 0;
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_compiler_gnu=yes
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 ac_compiler_gnu=no
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2436 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438 GCC=`test $ac_compiler_gnu = yes && echo yes`
2439 ac_test_CFLAGS=${CFLAGS+set}
2440 ac_save_CFLAGS=$CFLAGS
2441 CFLAGS="-g"
2442 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2444 if test "${ac_cv_prog_cc_g+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 ()
2459 return 0;
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag"
2472 || test ! -s conftest.err'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 ac_cv_prog_cc_g=yes
2485 else
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 ac_cv_prog_cc_g=no
2491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2495 if test "$ac_test_CFLAGS" = set; then
2496 CFLAGS=$ac_save_CFLAGS
2497 elif test $ac_cv_prog_cc_g = yes; then
2498 if test "$GCC" = yes; then
2499 CFLAGS="-g -O2"
2500 else
2501 CFLAGS="-g"
2503 else
2504 if test "$GCC" = yes; then
2505 CFLAGS="-O2"
2506 else
2507 CFLAGS=
2510 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2511 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 ac_cv_prog_cc_stdc=no
2516 ac_save_CC=$CC
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #include <stdarg.h>
2524 #include <stdio.h>
2525 #include <sys/types.h>
2526 #include <sys/stat.h>
2527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2528 struct buf { int x; };
2529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530 static char *e (p, i)
2531 char **p;
2532 int i;
2534 return p[i];
2536 static char *f (char * (*g) (char **, int), char **p, ...)
2538 char *s;
2539 va_list v;
2540 va_start (v,p);
2541 s = g (p, va_arg (v,int));
2542 va_end (v);
2543 return s;
2546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2547 function prototypes and stuff, but not '\xHH' hex character constants.
2548 These don't provoke an error unfortunately, instead are silently treated
2549 as 'x'. The following induces an error, until -std1 is added to get
2550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2551 array size at least. It's necessary to write '\x00'==0 to get something
2552 that's true only with -std1. */
2553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2555 int test (int i, double x);
2556 struct s1 {int (*f) (int a);};
2557 struct s2 {int (*f) (double a);};
2558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 int argc;
2560 char **argv;
2562 main ()
2564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2566 return 0;
2568 _ACEOF
2569 # Don't try gcc -ansi; that turns off useful extensions and
2570 # breaks some systems' header files.
2571 # AIX -qlanglvl=ansi
2572 # Ultrix and OSF/1 -std1
2573 # HP-UX 10.20 and later -Ae
2574 # HP-UX older versions -Aa -D_HPUX_SOURCE
2575 # SVR4 -Xc -D__EXTENSIONS__
2576 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2578 CC="$ac_save_CC $ac_arg"
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cc_stdc=$ac_arg
2602 break
2603 else
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f conftest.err conftest.$ac_objext
2609 done
2610 rm -f conftest.$ac_ext conftest.$ac_objext
2611 CC=$ac_save_CC
2615 case "x$ac_cv_prog_cc_stdc" in
2616 x|xno)
2617 echo "$as_me:$LINENO: result: none needed" >&5
2618 echo "${ECHO_T}none needed" >&6 ;;
2620 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2622 CC="$CC $ac_cv_prog_cc_stdc" ;;
2623 esac
2625 # Some people use a C++ compiler to compile C. Since we use `exit',
2626 # in C++ we need to declare it. In case someone uses the same compiler
2627 # for both compiling C and C++ we need to have the C++ compiler decide
2628 # the declaration of exit, since it's the most demanding environment.
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #ifndef __cplusplus
2631 choke me
2632 #endif
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 for ac_declaration in \
2657 '' \
2658 'extern "C" void std::exit (int) throw (); using std::exit;' \
2659 'extern "C" void std::exit (int); using std::exit;' \
2660 'extern "C" void exit (int) throw ();' \
2661 'extern "C" void exit (int);' \
2662 'void exit (int);'
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2670 $ac_declaration
2671 #include <stdlib.h>
2673 main ()
2675 exit (42);
2677 return 0;
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2703 else
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 continue
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 $ac_declaration
2718 main ()
2720 exit (42);
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 break
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 done
2755 rm -f conftest*
2756 if test -n "$ac_declaration"; then
2757 echo '#ifdef __cplusplus' >>confdefs.h
2758 echo $ac_declaration >>confdefs.h
2759 echo '#endif' >>confdefs.h
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 DEPDIR="${am__leading_dot}deps"
2775 ac_config_commands="$ac_config_commands depfiles"
2778 am_make=${MAKE-make}
2779 cat > confinc << 'END'
2780 am__doit:
2781 @echo done
2782 .PHONY: am__doit
2784 # If we don't find an include directive, just comment out the code.
2785 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2786 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2787 am__include="#"
2788 am__quote=
2789 _am_result=none
2790 # First try GNU make style include.
2791 echo "include confinc" > confmf
2792 # We grep out `Entering directory' and `Leaving directory'
2793 # messages which can occur if `w' ends up in MAKEFLAGS.
2794 # In particular we don't look at `^make:' because GNU make might
2795 # be invoked under some other name (usually "gmake"), in which
2796 # case it prints its new name instead of `make'.
2797 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2798 am__include=include
2799 am__quote=
2800 _am_result=GNU
2802 # Now try BSD make style include.
2803 if test "$am__include" = "#"; then
2804 echo '.include "confinc"' > confmf
2805 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2806 am__include=.include
2807 am__quote="\""
2808 _am_result=BSD
2813 echo "$as_me:$LINENO: result: $_am_result" >&5
2814 echo "${ECHO_T}$_am_result" >&6
2815 rm -f confinc confmf
2817 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2818 if test "${enable_dependency_tracking+set}" = set; then
2819 enableval="$enable_dependency_tracking"
2822 if test "x$enable_dependency_tracking" != xno; then
2823 am_depcomp="$ac_aux_dir/depcomp"
2824 AMDEPBACKSLASH='\'
2828 if test "x$enable_dependency_tracking" != xno; then
2829 AMDEP_TRUE=
2830 AMDEP_FALSE='#'
2831 else
2832 AMDEP_TRUE='#'
2833 AMDEP_FALSE=
2839 depcc="$CC" am_compiler_list=
2841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2843 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2847 # We make a subdir and do the tests there. Otherwise we can end up
2848 # making bogus files that we don't know about and never remove. For
2849 # instance it was reported that on HP-UX the gcc test will end up
2850 # making a dummy file named `D' -- because `-MD' means `put the output
2851 # in D'.
2852 mkdir conftest.dir
2853 # Copy depcomp to subdir because otherwise we won't find it if we're
2854 # using a relative directory.
2855 cp "$am_depcomp" conftest.dir
2856 cd conftest.dir
2857 # We will build objects and dependencies in a subdirectory because
2858 # it helps to detect inapplicable dependency modes. For instance
2859 # both Tru64's cc and ICC support -MD to output dependencies as a
2860 # side effect of compilation, but ICC will put the dependencies in
2861 # the current directory while Tru64 will put them in the object
2862 # directory.
2863 mkdir sub
2865 am_cv_CC_dependencies_compiler_type=none
2866 if test "$am_compiler_list" = ""; then
2867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2869 for depmode in $am_compiler_list; do
2870 # Setup a source with many dependencies, because some compilers
2871 # like to wrap large dependency lists on column 80 (with \), and
2872 # we should not choose a depcomp mode which is confused by this.
2874 # We need to recreate these files for each test, as the compiler may
2875 # overwrite some of them when testing with obscure command lines.
2876 # This happens at least with the AIX C compiler.
2877 : > sub/conftest.c
2878 for i in 1 2 3 4 5 6; do
2879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2880 : > sub/conftst$i.h
2881 done
2882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2884 case $depmode in
2885 nosideeffect)
2886 # after this tag, mechanisms are not by side-effect, so they'll
2887 # only be used when explicitly requested
2888 if test "x$enable_dependency_tracking" = xyes; then
2889 continue
2890 else
2891 break
2894 none) break ;;
2895 esac
2896 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2897 # mode. It turns out that the SunPro C++ compiler does not properly
2898 # handle `-M -o', and we need to detect this.
2899 if depmode=$depmode \
2900 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2902 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2903 >/dev/null 2>conftest.err &&
2904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2905 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2907 # icc doesn't choke on unknown options, it will just issue warnings
2908 # (even with -Werror). So we grep stderr for any message
2909 # that says an option was ignored.
2910 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2911 am_cv_CC_dependencies_compiler_type=$depmode
2912 break
2915 done
2917 cd ..
2918 rm -rf conftest.dir
2919 else
2920 am_cv_CC_dependencies_compiler_type=none
2924 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2925 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2931 test "x$enable_dependency_tracking" != xno \
2932 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2933 am__fastdepCC_TRUE=
2934 am__fastdepCC_FALSE='#'
2935 else
2936 am__fastdepCC_TRUE='#'
2937 am__fastdepCC_FALSE=
2945 # By default we simply use the C compiler to build assembly code.
2947 : ${CCAS='$(CC)'}
2948 # Set ASFLAGS if not already set.
2949 : ${CCASFLAGS='$(CFLAGS)'}
2952 if test "x$CC" != xcc; then
2953 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2954 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2955 else
2956 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2957 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2959 set dummy $CC; ac_cc=`echo $2 |
2960 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2961 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 # Make sure it works both with $CC and with simple cc.
2980 # We do the test twice because some compilers refuse to overwrite an
2981 # existing .o file with -o, though they will create one.
2982 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2983 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); };
2993 then
2994 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2995 if test "x$CC" != xcc; then
2996 # Test first that cc exists at all.
2997 if { ac_try='cc -c conftest.$ac_ext >&5'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3004 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); };
3014 then
3015 # cc works too.
3017 else
3018 # cc exists but doesn't like -o.
3019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3023 else
3024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3026 rm -f conftest*
3029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3036 cat >>confdefs.h <<\_ACEOF
3037 #define NO_MINUS_C_MINUS_O 1
3038 _ACEOF
3042 # FIXME: we rely on the cache variable name because
3043 # there is no other way.
3044 set dummy $CC
3045 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3046 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3047 # Losing compiler, so override with the script.
3048 # FIXME: It is wrong to rewrite CC.
3049 # But if we don't then we get into trouble of one sort or another.
3050 # A longer-term fix would be to have automake use am__CC in this case,
3051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3052 CC="$am_aux_dir/compile $CC"
3055 # Check whether --enable-shared or --disable-shared was given.
3056 if test "${enable_shared+set}" = set; then
3057 enableval="$enable_shared"
3058 p=${PACKAGE-default}
3059 case $enableval in
3060 yes) enable_shared=yes ;;
3061 no) enable_shared=no ;;
3063 enable_shared=no
3064 # Look at the argument we got. We use all the common list separators.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3066 for pkg in $enableval; do
3067 if test "X$pkg" = "X$p"; then
3068 enable_shared=yes
3070 done
3071 IFS="$ac_save_ifs"
3073 esac
3074 else
3075 enable_shared=yes
3077 # Check whether --enable-static or --disable-static was given.
3078 if test "${enable_static+set}" = set; then
3079 enableval="$enable_static"
3080 p=${PACKAGE-default}
3081 case $enableval in
3082 yes) enable_static=yes ;;
3083 no) enable_static=no ;;
3085 enable_static=no
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3090 enable_static=yes
3092 done
3093 IFS="$ac_save_ifs"
3095 esac
3096 else
3097 enable_static=yes
3099 # Check whether --enable-fast-install or --disable-fast-install was given.
3100 if test "${enable_fast_install+set}" = set; then
3101 enableval="$enable_fast_install"
3102 p=${PACKAGE-default}
3103 case $enableval in
3104 yes) enable_fast_install=yes ;;
3105 no) enable_fast_install=no ;;
3107 enable_fast_install=no
3108 # Look at the argument we got. We use all the common list separators.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110 for pkg in $enableval; do
3111 if test "X$pkg" = "X$p"; then
3112 enable_fast_install=yes
3114 done
3115 IFS="$ac_save_ifs"
3117 esac
3118 else
3119 enable_fast_install=yes
3122 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3123 if test "${with_gnu_ld+set}" = set; then
3124 withval="$with_gnu_ld"
3125 test "$withval" = no || with_gnu_ld=yes
3126 else
3127 with_gnu_ld=no
3129 ac_prog=ld
3130 if test "$GCC" = yes; then
3131 # Check if gcc -print-prog-name=ld gives a path.
3132 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3133 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3134 case $host in
3135 *-*-mingw*)
3136 # gcc leaves a trailing carriage return which upsets mingw
3137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3140 esac
3141 case $ac_prog in
3142 # Accept absolute paths.
3143 [\\/]* | [A-Za-z]:[\\/]*)
3144 re_direlt='/[^/][^/]*/\.\./'
3145 # Canonicalize the path of ld
3146 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3147 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3148 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3149 done
3150 test -z "$LD" && LD="$ac_prog"
3153 # If it fails, then pretend we aren't using GCC.
3154 ac_prog=ld
3157 # If it is relative, then search for the first ld in PATH.
3158 with_gnu_ld=unknown
3160 esac
3161 elif test "$with_gnu_ld" = yes; then
3162 echo "$as_me:$LINENO: checking for GNU ld" >&5
3163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3164 else
3165 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3168 if test "${lt_cv_path_LD+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -z "$LD"; then
3172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3173 for ac_dir in $PATH; do
3174 test -z "$ac_dir" && ac_dir=.
3175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3176 lt_cv_path_LD="$ac_dir/$ac_prog"
3177 # Check to see if the program is GNU ld. I'd rather use --version,
3178 # but apparently some GNU ld's only accept -v.
3179 # Break only if it was the GNU/non-GNU ld that we prefer.
3180 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3181 test "$with_gnu_ld" != no && break
3182 else
3183 test "$with_gnu_ld" != yes && break
3186 done
3187 IFS="$ac_save_ifs"
3188 else
3189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3193 LD="$lt_cv_path_LD"
3194 if test -n "$LD"; then
3195 echo "$as_me:$LINENO: result: $LD" >&5
3196 echo "${ECHO_T}$LD" >&6
3197 else
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3203 { (exit 1); exit 1; }; }
3204 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3210 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3211 lt_cv_prog_gnu_ld=yes
3212 else
3213 lt_cv_prog_gnu_ld=no
3216 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3217 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3218 with_gnu_ld=$lt_cv_prog_gnu_ld
3221 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3222 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3223 if test "${lt_cv_ld_reload_flag+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 lt_cv_ld_reload_flag='-r'
3228 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3229 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3230 reload_flag=$lt_cv_ld_reload_flag
3231 test -n "$reload_flag" && reload_flag=" $reload_flag"
3233 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3234 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3235 if test "${lt_cv_path_NM+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 if test -n "$NM"; then
3239 # Let the user override the test.
3240 lt_cv_path_NM="$NM"
3241 else
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3243 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3244 test -z "$ac_dir" && ac_dir=.
3245 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3246 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3247 # Check to see if the nm accepts a BSD-compat flag.
3248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3249 # nm: unknown option "B" ignored
3250 # Tru64's nm complains that /dev/null is an invalid object file
3251 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3252 lt_cv_path_NM="$tmp_nm -B"
3253 break
3254 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3255 lt_cv_path_NM="$tmp_nm -p"
3256 break
3257 else
3258 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3259 continue # so that we can try to find one that supports BSD flags
3262 done
3263 IFS="$ac_save_ifs"
3264 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3268 NM="$lt_cv_path_NM"
3269 echo "$as_me:$LINENO: result: $NM" >&5
3270 echo "${ECHO_T}$NM" >&6
3272 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3273 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3274 LN_S=$as_ln_s
3275 if test "$LN_S" = "ln -s"; then
3276 echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6
3278 else
3279 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3280 echo "${ECHO_T}no, using $LN_S" >&6
3283 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3284 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3285 if test "${lt_cv_deplibs_check_method+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 lt_cv_file_magic_cmd='$MAGIC_CMD'
3289 lt_cv_file_magic_test_file=
3290 lt_cv_deplibs_check_method='unknown'
3291 # Need to set the preceding variable on all platforms that support
3292 # interlibrary dependencies.
3293 # 'none' -- dependencies not supported.
3294 # `unknown' -- same as none, but documents that we really don't know.
3295 # 'pass_all' -- all dependencies passed with no checks.
3296 # 'test_compile' -- check by making test program.
3297 # 'file_magic [regex]' -- check by looking for files in library path
3298 # which responds to the $file_magic_cmd with a given egrep regex.
3299 # If you have `file' or equivalent on your system and you're not sure
3300 # whether `pass_all' will *always* work, you probably want this one.
3302 case $host_os in
3303 aix*)
3304 lt_cv_deplibs_check_method=pass_all
3307 beos*)
3308 lt_cv_deplibs_check_method=pass_all
3311 bsdi4*)
3312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3313 lt_cv_file_magic_cmd='/usr/bin/file -L'
3314 lt_cv_file_magic_test_file=/shlib/libc.so
3317 cygwin* | mingw* |pw32*)
3318 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3319 lt_cv_file_magic_cmd='$OBJDUMP -f'
3322 darwin* | rhapsody*)
3323 # this will be overwritten by pass_all, but leave it in just in case
3324 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3326 case "$host_os" in
3327 rhapsody* | darwin1.012)
3328 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3330 *) # Darwin 1.3 on
3331 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3333 esac
3334 lt_cv_deplibs_check_method=pass_all
3337 freebsd* )
3338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3339 case $host_cpu in
3340 i*86 )
3341 # Not sure whether the presence of OpenBSD here was a mistake.
3342 # Let's accept both of them until this is cleared up.
3343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3344 lt_cv_file_magic_cmd=/usr/bin/file
3345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3347 esac
3348 else
3349 lt_cv_deplibs_check_method=pass_all
3353 gnu*)
3354 lt_cv_deplibs_check_method=pass_all
3357 hpux10.20*|hpux11*)
3358 case $host_cpu in
3359 hppa*)
3360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3361 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3364 ia64*)
3365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3366 lt_cv_file_magic_cmd=/usr/bin/file
3367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3369 esac
3372 irix5* | irix6*)
3373 case $host_os in
3374 irix5*)
3375 # this will be overridden with pass_all, but let us keep it just in case
3376 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3379 case $LD in
3380 *-32|*"-32 ") libmagic=32-bit;;
3381 *-n32|*"-n32 ") libmagic=N32;;
3382 *-64|*"-64 ") libmagic=64-bit;;
3383 *) libmagic=never-match;;
3384 esac
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3388 esac
3389 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3390 lt_cv_deplibs_check_method=pass_all
3393 # This must be Linux ELF.
3394 linux-gnu*)
3395 case $host_cpu in
3396 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3397 lt_cv_deplibs_check_method=pass_all ;;
3399 # glibc up to 2.1.1 does not perform some relocations on ARM
3400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3401 esac
3402 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3405 netbsd*)
3406 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3407 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3408 else
3409 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3413 newsos6)
3414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3415 lt_cv_file_magic_cmd=/usr/bin/file
3416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3419 osf3* | osf4* | osf5*)
3420 # this will be overridden with pass_all, but let us keep it just in case
3421 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3422 lt_cv_file_magic_test_file=/shlib/libc.so
3423 lt_cv_deplibs_check_method=pass_all
3426 sco3.2v5*)
3427 lt_cv_deplibs_check_method=pass_all
3430 solaris*)
3431 lt_cv_deplibs_check_method=pass_all
3432 lt_cv_file_magic_test_file=/lib/libc.so
3435 sysv5uw[78]* | sysv4*uw2*)
3436 lt_cv_deplibs_check_method=pass_all
3439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3440 case $host_vendor in
3441 ncr)
3442 lt_cv_deplibs_check_method=pass_all
3444 motorola)
3445 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]'
3446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3448 esac
3450 esac
3453 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3454 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3455 file_magic_cmd=$lt_cv_file_magic_cmd
3456 deplibs_check_method=$lt_cv_deplibs_check_method
3462 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3464 # Only perform the check for file, if the check method requires it
3465 case $deplibs_check_method in
3466 file_magic*)
3467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3468 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3469 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 case $MAGIC_CMD in
3475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3477 ?:/*)
3478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3481 ac_save_MAGIC_CMD="$MAGIC_CMD"
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3483 ac_dummy="/usr/bin:$PATH"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/${ac_tool_prefix}file; then
3487 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3488 if test -n "$file_magic_test_file"; then
3489 case $deplibs_check_method in
3490 "file_magic "*)
3491 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3494 egrep "$file_magic_regex" > /dev/null; then
3496 else
3497 cat <<EOF 1>&2
3499 *** Warning: the command libtool uses to detect shared libraries,
3500 *** $file_magic_cmd, produces output that libtool cannot recognize.
3501 *** The result is that libtool may fail to recognize shared libraries
3502 *** as such. This will affect the creation of libtool libraries that
3503 *** depend on shared libraries, but programs linked with such libtool
3504 *** libraries will work regardless of this problem. Nevertheless, you
3505 *** may want to report the problem to your system manager and/or to
3506 *** bug-libtool@gnu.org
3509 fi ;;
3510 esac
3512 break
3514 done
3515 IFS="$ac_save_ifs"
3516 MAGIC_CMD="$ac_save_MAGIC_CMD"
3518 esac
3521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3522 if test -n "$MAGIC_CMD"; then
3523 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3524 echo "${ECHO_T}$MAGIC_CMD" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 if test -z "$lt_cv_path_MAGIC_CMD"; then
3531 if test -n "$ac_tool_prefix"; then
3532 echo "$as_me:$LINENO: checking for file" >&5
3533 echo $ECHO_N "checking for file... $ECHO_C" >&6
3534 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 case $MAGIC_CMD in
3539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3541 ?:/*)
3542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3545 ac_save_MAGIC_CMD="$MAGIC_CMD"
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3547 ac_dummy="/usr/bin:$PATH"
3548 for ac_dir in $ac_dummy; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/file; then
3551 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3552 if test -n "$file_magic_test_file"; then
3553 case $deplibs_check_method in
3554 "file_magic "*)
3555 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3558 egrep "$file_magic_regex" > /dev/null; then
3560 else
3561 cat <<EOF 1>&2
3563 *** Warning: the command libtool uses to detect shared libraries,
3564 *** $file_magic_cmd, produces output that libtool cannot recognize.
3565 *** The result is that libtool may fail to recognize shared libraries
3566 *** as such. This will affect the creation of libtool libraries that
3567 *** depend on shared libraries, but programs linked with such libtool
3568 *** libraries will work regardless of this problem. Nevertheless, you
3569 *** may want to report the problem to your system manager and/or to
3570 *** bug-libtool@gnu.org
3573 fi ;;
3574 esac
3576 break
3578 done
3579 IFS="$ac_save_ifs"
3580 MAGIC_CMD="$ac_save_MAGIC_CMD"
3582 esac
3585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3586 if test -n "$MAGIC_CMD"; then
3587 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3588 echo "${ECHO_T}$MAGIC_CMD" >&6
3589 else
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 else
3595 MAGIC_CMD=:
3601 esac
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_RANLIB+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 if test -n "$RANLIB"; then
3612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3630 RANLIB=$ac_cv_prog_RANLIB
3631 if test -n "$RANLIB"; then
3632 echo "$as_me:$LINENO: result: $RANLIB" >&5
3633 echo "${ECHO_T}$RANLIB" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3640 if test -z "$ac_cv_prog_RANLIB"; then
3641 ac_ct_RANLIB=$RANLIB
3642 # Extract the first word of "ranlib", so it can be a program name with args.
3643 set dummy ranlib; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test -n "$ac_ct_RANLIB"; then
3650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_RANLIB="ranlib"
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3666 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3670 if test -n "$ac_ct_RANLIB"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3672 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3673 else
3674 echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 RANLIB=$ac_ct_RANLIB
3679 else
3680 RANLIB="$ac_cv_prog_RANLIB"
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3685 set dummy ${ac_tool_prefix}strip; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_STRIP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -n "$STRIP"; then
3692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3710 STRIP=$ac_cv_prog_STRIP
3711 if test -n "$STRIP"; then
3712 echo "$as_me:$LINENO: result: $STRIP" >&5
3713 echo "${ECHO_T}$STRIP" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3720 if test -z "$ac_cv_prog_STRIP"; then
3721 ac_ct_STRIP=$STRIP
3722 # Extract the first word of "strip", so it can be a program name with args.
3723 set dummy strip; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 if test -n "$ac_ct_STRIP"; then
3730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_STRIP="strip"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3743 done
3744 done
3746 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3749 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3750 if test -n "$ac_ct_STRIP"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3752 echo "${ECHO_T}$ac_ct_STRIP" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 STRIP=$ac_ct_STRIP
3759 else
3760 STRIP="$ac_cv_prog_STRIP"
3764 # Check for any special flags to pass to ltconfig.
3765 libtool_flags="--cache-file=$cache_file"
3766 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3767 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3768 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3769 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3770 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3773 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3774 if test "${enable_libtool_lock+set}" = set; then
3775 enableval="$enable_libtool_lock"
3778 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3779 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3782 # Check whether --with-pic or --without-pic was given.
3783 if test "${with_pic+set}" = set; then
3784 withval="$with_pic"
3785 pic_mode="$withval"
3786 else
3787 pic_mode=default
3789 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3790 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3792 # Some flags need to be propagated to the compiler or linker for good
3793 # libtool support.
3794 case $host in
3795 *-*-irix6*)
3796 # Find out which ABI we are using.
3797 echo '#line 3797 "configure"' > conftest.$ac_ext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; then
3803 if test "$lt_cv_prog_gnu_ld" = yes; then
3804 case `/usr/bin/file conftest.$ac_objext` in
3805 *32-bit*)
3806 LD="${LD-ld} -melf32bsmip"
3808 *N32*)
3809 LD="${LD-ld} -melf32bmipn32"
3811 *64-bit*)
3812 LD="${LD-ld} -melf64bmip"
3814 esac
3815 else
3816 case `/usr/bin/file conftest.$ac_objext` in
3817 *32-bit*)
3818 LD="${LD-ld} -32"
3820 *N32*)
3821 LD="${LD-ld} -n32"
3823 *64-bit*)
3824 LD="${LD-ld} -64"
3826 esac
3829 rm -rf conftest*
3832 ia64-*-hpux*)
3833 # Find out which ABI we are using.
3834 echo 'int i;' > conftest.$ac_ext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; then
3840 case "`/usr/bin/file conftest.o`" in
3841 *ELF-32*)
3842 HPUX_IA64_MODE="32"
3844 *ELF-64*)
3845 HPUX_IA64_MODE="64"
3847 esac
3849 rm -rf conftest*
3852 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3853 # Find out which ABI we are using.
3854 echo 'int i;' > conftest.$ac_ext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; then
3860 case "`/usr/bin/file conftest.o`" in
3861 *32-bit*)
3862 case $host in
3863 x86_64-*linux*)
3864 LD="${LD-ld} -m elf_i386"
3866 ppc64-*linux*|powerpc64-*linux*)
3867 LD="${LD-ld} -m elf32ppclinux"
3869 s390x-*linux*)
3870 LD="${LD-ld} -m elf_s390"
3872 sparc64-*linux*)
3873 LD="${LD-ld} -m elf32_sparc"
3875 esac
3877 *64-bit*)
3878 case $host in
3879 x86_64-*linux*)
3880 LD="${LD-ld} -m elf_x86_64"
3882 ppc*-*linux*|powerpc*-*linux*)
3883 LD="${LD-ld} -m elf64ppc"
3885 s390*-*linux*)
3886 LD="${LD-ld} -m elf64_s390"
3888 sparc*-*linux*)
3889 LD="${LD-ld} -m elf64_sparc"
3891 esac
3893 esac
3895 rm -rf conftest*
3898 *-*-sco3.2v5*)
3899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3900 SAVE_CFLAGS="$CFLAGS"
3901 CFLAGS="$CFLAGS -belf"
3902 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3903 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3904 if test "${lt_cv_cc_needs_belf+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 lt_cv_cc_needs_belf=yes
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 lt_cv_cc_needs_belf=no
3959 rm -f conftest.err conftest.$ac_objext \
3960 conftest$ac_exeext conftest.$ac_ext
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3969 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3972 CFLAGS="$SAVE_CFLAGS"
3977 esac
3980 # Save cache, so that ltconfig can load it
3981 cat >confcache <<\_ACEOF
3982 # This file is a shell script that caches the results of configure
3983 # tests run on this system so they can be shared between configure
3984 # scripts and configure runs, see configure's option --config-cache.
3985 # It is not useful on other systems. If it contains results you don't
3986 # want to keep, you may remove or edit it.
3988 # config.status only pays attention to the cache file if you give it
3989 # the --recheck option to rerun configure.
3991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3993 # following values.
3995 _ACEOF
3997 # The following way of writing the cache mishandles newlines in values,
3998 # but we know of no workaround that is simple, portable, and efficient.
3999 # So, don't put newlines in cache variables' values.
4000 # Ultrix sh set writes to stderr and can't be redirected directly,
4001 # and sets the high bit in the cache file unless we assign to the vars.
4003 (set) 2>&1 |
4004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4005 *ac_space=\ *)
4006 # `set' does not quote correctly, so add quotes (double-quote
4007 # substitution turns \\\\ into \\, and sed turns \\ into \).
4008 sed -n \
4009 "s/'/'\\\\''/g;
4010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4013 # `set' quotes correctly as required by POSIX, so do not add quotes.
4014 sed -n \
4015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4017 esac;
4019 sed '
4020 t clear
4021 : clear
4022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4023 t end
4024 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4025 : end' >>confcache
4026 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4027 if test -w $cache_file; then
4028 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4029 cat confcache >$cache_file
4030 else
4031 echo "not updating unwritable cache $cache_file"
4034 rm -f confcache
4036 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4037 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4038 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4039 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4040 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4041 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4042 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4043 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4044 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4045 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4046 echo "$as_me: error: libtool configure failed" >&2;}
4047 { (exit 1); exit 1; }; }
4049 # Reload cache, that may have been modified by ltconfig
4050 if test -r "$cache_file"; then
4051 # Some versions of bash will fail to source /dev/null (special
4052 # files actually), so we avoid doing that.
4053 if test -f "$cache_file"; then
4054 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4055 echo "$as_me: loading cache $cache_file" >&6;}
4056 case $cache_file in
4057 [\\/]* | ?:[\\/]* ) . $cache_file;;
4058 *) . ./$cache_file;;
4059 esac
4061 else
4062 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4063 echo "$as_me: creating cache $cache_file" >&6;}
4064 >$cache_file
4068 # This can be used to rebuild libtool when needed
4069 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4071 # Always use our own libtool.
4072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4074 # Redirect the config.log output again, so that the ltconfig log is not
4075 # clobbered by the next message.
4076 exec 5>>./config.log
4084 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4085 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4086 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4087 if test "${enable_maintainer_mode+set}" = set; then
4088 enableval="$enable_maintainer_mode"
4089 USE_MAINTAINER_MODE=$enableval
4090 else
4091 USE_MAINTAINER_MODE=no
4093 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4094 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4097 if test $USE_MAINTAINER_MODE = yes; then
4098 MAINTAINER_MODE_TRUE=
4099 MAINTAINER_MODE_FALSE='#'
4100 else
4101 MAINTAINER_MODE_TRUE='#'
4102 MAINTAINER_MODE_FALSE=
4105 MAINT=$MAINTAINER_MODE_TRUE
4109 if test $ac_cv_header_sys_mman_h != yes \
4110 || test $ac_cv_func_mmap != yes; then
4111 ac_cv_func_mmap_file=no
4112 ac_cv_func_mmap_dev_zero=no
4113 ac_cv_func_mmap_anon=no
4114 else
4115 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
4116 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
4117 if test "${ac_cv_func_mmap_file+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 # Add a system to this blacklist if
4121 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
4122 # memory area containing the same data that you'd get if you applied
4123 # read() to the same fd. The only system known to have a problem here
4124 # is VMS, where text files have record structure.
4125 case "$host_os" in
4126 vms* | ultrix*)
4127 ac_cv_func_mmap_file=no ;;
4129 ac_cv_func_mmap_file=yes;;
4130 esac
4132 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
4133 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
4134 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
4135 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
4136 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 # Add a system to this blacklist if it has mmap() but /dev/zero
4140 # does not exist, or if mmapping /dev/zero does not give anonymous
4141 # zeroed pages with both the following properties:
4142 # 1. If you map N consecutive pages in with one call, and then
4143 # unmap any subset of those pages, the pages that were not
4144 # explicitly unmapped remain accessible.
4145 # 2. If you map two adjacent blocks of memory and then unmap them
4146 # both at once, they must both go away.
4147 # Systems known to be in this category are Windows (all variants),
4148 # VMS, and Darwin.
4149 case "$host_os" in
4150 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4151 ac_cv_func_mmap_dev_zero=no ;;
4153 ac_cv_func_mmap_dev_zero=yes;;
4154 esac
4156 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
4157 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
4159 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4160 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4161 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4162 if test "${ac_cv_decl_map_anon+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/mman.h>
4173 #include <unistd.h>
4175 #ifndef MAP_ANONYMOUS
4176 #define MAP_ANONYMOUS MAP_ANON
4177 #endif
4180 main ()
4182 int n = MAP_ANONYMOUS;
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_decl_map_anon=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_decl_map_anon=no
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
4219 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
4221 if test $ac_cv_decl_map_anon = no; then
4222 ac_cv_func_mmap_anon=no
4223 else
4224 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4225 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
4226 if test "${ac_cv_func_mmap_anon+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4230 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4231 # doesn't give anonymous zeroed pages with the same properties listed
4232 # above for use of /dev/zero.
4233 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4234 case "$host_os" in
4235 vms* | cygwin* | pe | mingw* | sco* | udk* )
4236 ac_cv_func_mmap_anon=no ;;
4238 ac_cv_func_mmap_anon=yes;;
4239 esac
4241 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
4242 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
4246 if test $ac_cv_func_mmap_file = yes; then
4248 cat >>confdefs.h <<\_ACEOF
4249 #define HAVE_MMAP_FILE 1
4250 _ACEOF
4253 if test $ac_cv_func_mmap_dev_zero = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define HAVE_MMAP_DEV_ZERO 1
4257 _ACEOF
4260 if test $ac_cv_func_mmap_anon = yes; then
4262 cat >>confdefs.h <<\_ACEOF
4263 #define HAVE_MMAP_ANON 1
4264 _ACEOF
4271 if test -d $srcdir/testsuite; then
4272 TESTSUBDIR_TRUE=
4273 TESTSUBDIR_FALSE='#'
4274 else
4275 TESTSUBDIR_TRUE='#'
4276 TESTSUBDIR_FALSE=
4280 TARGETDIR="unknown"
4281 case "$host" in
4282 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
4283 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
4284 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
4285 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
4286 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
4287 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
4288 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
4289 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
4290 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
4291 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
4292 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
4293 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
4294 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
4295 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
4296 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
4297 mips64*-*);;
4298 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
4299 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
4300 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
4301 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
4302 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
4303 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
4304 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
4305 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
4306 arm*-*-netbsdelf*) TARGET=ARM; TARGETDIR=arm;;
4307 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
4308 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
4309 x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
4310 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
4311 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
4312 esac
4316 if test $TARGETDIR = unknown; then
4317 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
4318 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
4319 { (exit 1); exit 1; }; }
4324 if test x$TARGET = xMIPS_IRIX; then
4325 MIPS_IRIX_TRUE=
4326 MIPS_IRIX_FALSE='#'
4327 else
4328 MIPS_IRIX_TRUE='#'
4329 MIPS_IRIX_FALSE=
4334 if test x$TARGET = xMIPS_LINUX; then
4335 MIPS_LINUX_TRUE=
4336 MIPS_LINUX_FALSE='#'
4337 else
4338 MIPS_LINUX_TRUE='#'
4339 MIPS_LINUX_FALSE=
4344 if test x$TARGET = xSPARC; then
4345 SPARC_TRUE=
4346 SPARC_FALSE='#'
4347 else
4348 SPARC_TRUE='#'
4349 SPARC_FALSE=
4354 if test x$TARGET = xX86; then
4355 X86_TRUE=
4356 X86_FALSE='#'
4357 else
4358 X86_TRUE='#'
4359 X86_FALSE=
4364 if test x$TARGET = xX86_WIN32; then
4365 X86_WIN32_TRUE=
4366 X86_WIN32_FALSE='#'
4367 else
4368 X86_WIN32_TRUE='#'
4369 X86_WIN32_FALSE=
4374 if test x$TARGET = xALPHA; then
4375 ALPHA_TRUE=
4376 ALPHA_FALSE='#'
4377 else
4378 ALPHA_TRUE='#'
4379 ALPHA_FALSE=
4384 if test x$TARGET = xIA64; then
4385 IA64_TRUE=
4386 IA64_FALSE='#'
4387 else
4388 IA64_TRUE='#'
4389 IA64_FALSE=
4394 if test x$TARGET = xM68K; then
4395 M68K_TRUE=
4396 M68K_FALSE='#'
4397 else
4398 M68K_TRUE='#'
4399 M68K_FALSE=
4404 if test x$TARGET = xPOWERPC; then
4405 POWERPC_TRUE=
4406 POWERPC_FALSE='#'
4407 else
4408 POWERPC_TRUE='#'
4409 POWERPC_FALSE=
4414 if test x$TARGET = xPOWERPC_AIX; then
4415 POWERPC_AIX_TRUE=
4416 POWERPC_AIX_FALSE='#'
4417 else
4418 POWERPC_AIX_TRUE='#'
4419 POWERPC_AIX_FALSE=
4424 if test x$TARGET = xPOWERPC_DARWIN; then
4425 POWERPC_DARWIN_TRUE=
4426 POWERPC_DARWIN_FALSE='#'
4427 else
4428 POWERPC_DARWIN_TRUE='#'
4429 POWERPC_DARWIN_FALSE=
4434 if test x$TARGET = xARM; then
4435 ARM_TRUE=
4436 ARM_FALSE='#'
4437 else
4438 ARM_TRUE='#'
4439 ARM_FALSE=
4444 if test x$TARGET = xS390; then
4445 S390_TRUE=
4446 S390_FALSE='#'
4447 else
4448 S390_TRUE='#'
4449 S390_FALSE=
4454 if test x$TARGET = xX86_64; then
4455 X86_64_TRUE=
4456 X86_64_FALSE='#'
4457 else
4458 X86_64_TRUE='#'
4459 X86_64_FALSE=
4464 if test x$TARGET = xSH; then
4465 SH_TRUE=
4466 SH_FALSE='#'
4467 else
4468 SH_TRUE='#'
4469 SH_FALSE=
4474 if test x$TARGET = xSH64; then
4475 SH64_TRUE=
4476 SH64_FALSE='#'
4477 else
4478 SH64_TRUE='#'
4479 SH64_FALSE=
4483 case x$TARGET in
4484 xMIPS*) TARGET=MIPS ;;
4485 *) ;;
4486 esac
4488 ac_ext=c
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4494 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4495 # On Suns, sometimes $CPP names a directory.
4496 if test -n "$CPP" && test -d "$CPP"; then
4497 CPP=
4499 if test -z "$CPP"; then
4500 if test "${ac_cv_prog_CPP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 # Double quotes because CPP needs to be expanded
4504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4506 ac_preproc_ok=false
4507 for ac_c_preproc_warn_flag in '' yes
4509 # Use a header file that comes with gcc, so configuring glibc
4510 # with a fresh cross-compiler works.
4511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4512 # <limits.h> exists even on freestanding compilers.
4513 # On the NeXT, cc -E runs the code through the compiler's parser,
4514 # not just through cpp. "Syntax error" is here to catch this case.
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #ifdef __STDC__
4522 # include <limits.h>
4523 #else
4524 # include <assert.h>
4525 #endif
4526 Syntax error
4527 _ACEOF
4528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } >/dev/null; then
4536 if test -s conftest.err; then
4537 ac_cpp_err=$ac_c_preproc_warn_flag
4538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4539 else
4540 ac_cpp_err=
4542 else
4543 ac_cpp_err=yes
4545 if test -z "$ac_cpp_err"; then
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 # Broken: fails on valid input.
4552 continue
4554 rm -f conftest.err conftest.$ac_ext
4556 # OK, works on sane cases. Now check whether non-existent headers
4557 # can be detected and how.
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564 #include <ac_nonexistent.h>
4565 _ACEOF
4566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } >/dev/null; then
4574 if test -s conftest.err; then
4575 ac_cpp_err=$ac_c_preproc_warn_flag
4576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4577 else
4578 ac_cpp_err=
4580 else
4581 ac_cpp_err=yes
4583 if test -z "$ac_cpp_err"; then
4584 # Broken: success on invalid input.
4585 continue
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 # Passes both tests.
4591 ac_preproc_ok=:
4592 break
4594 rm -f conftest.err conftest.$ac_ext
4596 done
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 rm -f conftest.err conftest.$ac_ext
4599 if $ac_preproc_ok; then
4600 break
4603 done
4604 ac_cv_prog_CPP=$CPP
4607 CPP=$ac_cv_prog_CPP
4608 else
4609 ac_cv_prog_CPP=$CPP
4611 echo "$as_me:$LINENO: result: $CPP" >&5
4612 echo "${ECHO_T}$CPP" >&6
4613 ac_preproc_ok=false
4614 for ac_c_preproc_warn_flag in '' yes
4616 # Use a header file that comes with gcc, so configuring glibc
4617 # with a fresh cross-compiler works.
4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619 # <limits.h> exists even on freestanding compilers.
4620 # On the NeXT, cc -E runs the code through the compiler's parser,
4621 # not just through cpp. "Syntax error" is here to catch this case.
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #ifdef __STDC__
4629 # include <limits.h>
4630 #else
4631 # include <assert.h>
4632 #endif
4633 Syntax error
4634 _ACEOF
4635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_c_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4646 else
4647 ac_cpp_err=
4649 else
4650 ac_cpp_err=yes
4652 if test -z "$ac_cpp_err"; then
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 # Broken: fails on valid input.
4659 continue
4661 rm -f conftest.err conftest.$ac_ext
4663 # OK, works on sane cases. Now check whether non-existent headers
4664 # can be detected and how.
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #include <ac_nonexistent.h>
4672 _ACEOF
4673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } >/dev/null; then
4681 if test -s conftest.err; then
4682 ac_cpp_err=$ac_c_preproc_warn_flag
4683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4684 else
4685 ac_cpp_err=
4687 else
4688 ac_cpp_err=yes
4690 if test -z "$ac_cpp_err"; then
4691 # Broken: success on invalid input.
4692 continue
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 # Passes both tests.
4698 ac_preproc_ok=:
4699 break
4701 rm -f conftest.err conftest.$ac_ext
4703 done
4704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4705 rm -f conftest.err conftest.$ac_ext
4706 if $ac_preproc_ok; then
4708 else
4709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; }
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 echo "$as_me:$LINENO: checking for egrep" >&5
4724 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4725 if test "${ac_cv_prog_egrep+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4729 then ac_cv_prog_egrep='grep -E'
4730 else ac_cv_prog_egrep='egrep'
4733 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4734 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4735 EGREP=$ac_cv_prog_egrep
4738 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4740 if test "${ac_cv_header_stdc+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <stdlib.h>
4750 #include <stdarg.h>
4751 #include <string.h>
4752 #include <float.h>
4755 main ()
4759 return 0;
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_c_werror_flag"
4772 || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 ac_cv_header_stdc=yes
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_cv_header_stdc=no
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 if test $ac_cv_header_stdc = yes; then
4794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <string.h>
4803 _ACEOF
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 $EGREP "memchr" >/dev/null 2>&1; then
4807 else
4808 ac_cv_header_stdc=no
4810 rm -f conftest*
4814 if test $ac_cv_header_stdc = yes; then
4815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <stdlib.h>
4824 _ACEOF
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826 $EGREP "free" >/dev/null 2>&1; then
4828 else
4829 ac_cv_header_stdc=no
4831 rm -f conftest*
4835 if test $ac_cv_header_stdc = yes; then
4836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4837 if test "$cross_compiling" = yes; then
4839 else
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <ctype.h>
4847 #if ((' ' & 0x0FF) == 0x020)
4848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4850 #else
4851 # define ISLOWER(c) \
4852 (('a' <= (c) && (c) <= 'i') \
4853 || ('j' <= (c) && (c) <= 'r') \
4854 || ('s' <= (c) && (c) <= 'z'))
4855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4856 #endif
4858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4860 main ()
4862 int i;
4863 for (i = 0; i < 256; i++)
4864 if (XOR (islower (i), ISLOWER (i))
4865 || toupper (i) != TOUPPER (i))
4866 exit(2);
4867 exit (0);
4869 _ACEOF
4870 rm -f conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4882 else
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ( exit $ac_status )
4888 ac_cv_header_stdc=no
4890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4894 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4895 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4896 if test $ac_cv_header_stdc = yes; then
4898 cat >>confdefs.h <<\_ACEOF
4899 #define STDC_HEADERS 1
4900 _ACEOF
4905 for ac_func in memcpy
4907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4908 echo "$as_me:$LINENO: checking for $ac_func" >&5
4909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4910 if eval "test \"\${$as_ac_var+set}\" = set"; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4921 #define $ac_func innocuous_$ac_func
4923 /* System header to define __stub macros and hopefully few prototypes,
4924 which can conflict with char $ac_func (); below.
4925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 <limits.h> exists even on freestanding compilers. */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4934 #undef $ac_func
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 #ifdef __cplusplus
4938 extern "C"
4940 #endif
4941 /* We use char because int might match the return type of a gcc2
4942 builtin and then its argument prototype would still apply. */
4943 char $ac_func ();
4944 /* The GNU C library defines this for functions which it implements
4945 to always fail with ENOSYS. Some functions are actually named
4946 something starting with __ and the normal name is an alias. */
4947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4948 choke me
4949 #else
4950 char (*f) () = $ac_func;
4951 #endif
4952 #ifdef __cplusplus
4954 #endif
4957 main ()
4959 return f != $ac_func;
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext conftest$ac_exeext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4966 (eval $ac_link) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 eval "$as_ac_var=yes"
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 eval "$as_ac_var=no"
4993 rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4998 if test `eval echo '${'$as_ac_var'}'` = yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5001 _ACEOF
5004 done
5006 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5007 # for constant arguments. Useless!
5008 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5009 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5010 if test "${ac_cv_working_alloca_h+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <alloca.h>
5021 main ()
5023 char *p = (char *) alloca (2 * sizeof (int));
5025 return 0;
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest$ac_exeext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_cv_working_alloca_h=yes
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_cv_working_alloca_h=no
5057 rm -f conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5061 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5062 if test $ac_cv_working_alloca_h = yes; then
5064 cat >>confdefs.h <<\_ACEOF
5065 #define HAVE_ALLOCA_H 1
5066 _ACEOF
5070 echo "$as_me:$LINENO: checking for alloca" >&5
5071 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5072 if test "${ac_cv_func_alloca_works+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #ifdef __GNUC__
5082 # define alloca __builtin_alloca
5083 #else
5084 # ifdef _MSC_VER
5085 # include <malloc.h>
5086 # define alloca _alloca
5087 # else
5088 # if HAVE_ALLOCA_H
5089 # include <alloca.h>
5090 # else
5091 # ifdef _AIX
5092 #pragma alloca
5093 # else
5094 # ifndef alloca /* predefined by HP cc +Olibcalls */
5095 char *alloca ();
5096 # endif
5097 # endif
5098 # endif
5099 # endif
5100 #endif
5103 main ()
5105 char *p = (char *) alloca (1);
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_func_alloca_works=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_cv_func_alloca_works=no
5139 rm -f conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5143 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5145 if test $ac_cv_func_alloca_works = yes; then
5147 cat >>confdefs.h <<\_ACEOF
5148 #define HAVE_ALLOCA 1
5149 _ACEOF
5151 else
5152 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5153 # that cause trouble. Some versions do not even contain alloca or
5154 # contain a buggy version. If you still want to use their alloca,
5155 # use ar to extract alloca.o from them instead of compiling alloca.c.
5157 ALLOCA=alloca.$ac_objext
5159 cat >>confdefs.h <<\_ACEOF
5160 #define C_ALLOCA 1
5161 _ACEOF
5164 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5165 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5166 if test "${ac_cv_os_cray+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #if defined(CRAY) && ! defined(CRAY2)
5176 webecray
5177 #else
5178 wenotbecray
5179 #endif
5181 _ACEOF
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "webecray" >/dev/null 2>&1; then
5184 ac_cv_os_cray=yes
5185 else
5186 ac_cv_os_cray=no
5188 rm -f conftest*
5191 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5192 echo "${ECHO_T}$ac_cv_os_cray" >&6
5193 if test $ac_cv_os_cray = yes; then
5194 for ac_func in _getb67 GETB67 getb67; do
5195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5196 echo "$as_me:$LINENO: checking for $ac_func" >&5
5197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_var+set}\" = set"; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5209 #define $ac_func innocuous_$ac_func
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func (); below.
5213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 <limits.h> exists even on freestanding compilers. */
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5222 #undef $ac_func
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 #ifdef __cplusplus
5226 extern "C"
5228 #endif
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char $ac_func ();
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 choke me
5237 #else
5238 char (*f) () = $ac_func;
5239 #endif
5240 #ifdef __cplusplus
5242 #endif
5245 main ()
5247 return f != $ac_func;
5249 return 0;
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 eval "$as_ac_var=yes"
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 eval "$as_ac_var=no"
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5286 if test `eval echo '${'$as_ac_var'}'` = yes; then
5288 cat >>confdefs.h <<_ACEOF
5289 #define CRAY_STACKSEG_END $ac_func
5290 _ACEOF
5292 break
5295 done
5298 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5299 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5300 if test "${ac_cv_c_stack_direction+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 if test "$cross_compiling" = yes; then
5304 ac_cv_c_stack_direction=0
5305 else
5306 cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h. */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5313 find_stack_direction ()
5315 static char *addr = 0;
5316 auto char dummy;
5317 if (addr == 0)
5319 addr = &dummy;
5320 return find_stack_direction ();
5322 else
5323 return (&dummy > addr) ? 1 : -1;
5327 main ()
5329 exit (find_stack_direction () < 0);
5331 _ACEOF
5332 rm -f conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_c_stack_direction=1
5344 else
5345 echo "$as_me: program exited with status $ac_status" >&5
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ( exit $ac_status )
5350 ac_cv_c_stack_direction=-1
5352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5356 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5358 cat >>confdefs.h <<_ACEOF
5359 #define STACK_DIRECTION $ac_cv_c_stack_direction
5360 _ACEOF
5366 echo "$as_me:$LINENO: checking size of double" >&5
5367 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5368 if test "${ac_cv_sizeof_double+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include "confdefs.h"
5379 #include <sys/types.h>
5383 main ()
5385 switch (0) case 0: case (sizeof (double) == $ac_size):;
5387 return 0;
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_sizeof_double=$ac_size
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 if test x$ac_cv_sizeof_double != x ; then break; fi
5420 done
5424 if test x$ac_cv_sizeof_double = x ; then
5425 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
5426 echo "$as_me: error: cannot determine a size for double" >&2;}
5427 { (exit 1); exit 1; }; }
5429 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5430 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5432 cat >>confdefs.h <<_ACEOF
5433 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5434 _ACEOF
5437 echo "$as_me:$LINENO: checking size of long double" >&5
5438 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
5439 if test "${ac_cv_sizeof_long_double+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include "confdefs.h"
5450 #include <sys/types.h>
5454 main ()
5456 switch (0) case 0: case (sizeof (long double) == $ac_size):;
5458 return 0;
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_cv_sizeof_long_double=$ac_size
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 if test x$ac_cv_sizeof_long_double != x ; then break; fi
5491 done
5495 if test x$ac_cv_sizeof_long_double = x ; then
5496 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
5497 echo "$as_me: error: cannot determine a size for long double" >&2;}
5498 { (exit 1); exit 1; }; }
5500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
5501 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
5503 cat >>confdefs.h <<_ACEOF
5504 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
5505 _ACEOF
5509 # Also AC_SUBST this variable for ffi.h.
5510 HAVE_LONG_DOUBLE=0
5511 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
5512 if test $ac_cv_sizeof_long_double != 0; then
5513 HAVE_LONG_DOUBLE=1
5515 cat >>confdefs.h <<\_ACEOF
5516 #define HAVE_LONG_DOUBLE 1
5517 _ACEOF
5523 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5525 if test "${ac_cv_c_bigendian+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 ac_cv_c_bigendian=unknown
5529 # See if sys/param.h defines the BYTE_ORDER macro.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 #include <sys/param.h>
5539 main ()
5542 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5543 bogus endian macros
5544 #endif
5546 return 0;
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -z "$ac_c_werror_flag"
5559 || test ! -s conftest.err'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 # It does; now see whether it defined to BIG_ENDIAN or not.
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <sys/types.h>
5579 #include <sys/param.h>
5581 main ()
5584 #if BYTE_ORDER != BIG_ENDIAN
5585 not big endian
5586 #endif
5588 return 0;
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_c_bigendian=yes
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_cv_c_bigendian=no
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 if test $ac_cv_c_bigendian = unknown; then
5628 if test "$cross_compiling" = yes; then
5629 echo $ac_n "cross-compiling... " 2>&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 main () {
5638 /* Are we little or big endian? From Harbison&Steele. */
5639 union
5641 long l;
5642 char c[sizeof (long)];
5643 } u;
5644 u.l = 1;
5645 exit (u.c[sizeof (long) - 1] == 1);
5647 _ACEOF
5648 rm -f conftest$ac_exeext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650 (eval $ac_link) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_c_bigendian=no
5660 else
5661 echo "$as_me: program exited with status $ac_status" >&5
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ( exit $ac_status )
5666 ac_cv_c_bigendian=yes
5668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5673 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5674 if test $ac_cv_c_bigendian = unknown; then
5675 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5676 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5678 cat >conftest.c <<EOF
5679 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5680 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5681 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5682 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5683 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5684 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5685 int main() { _ascii (); _ebcdic (); return 0; }
5687 if test -f conftest.c ; then
5688 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
5689 if test `grep -l BIGenDianSyS conftest.o` ; then
5690 echo $ac_n ' big endian probe OK, ' 1>&6
5691 ac_cv_c_bigendian=yes
5693 if test `grep -l LiTTleEnDian conftest.o` ; then
5694 echo $ac_n ' little endian probe OK, ' 1>&6
5695 if test $ac_cv_c_bigendian = yes ; then
5696 ac_cv_c_bigendian=unknown;
5697 else
5698 ac_cv_c_bigendian=no
5701 echo $ac_n 'guessing bigendian ... ' >&6
5704 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5705 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5707 if test $ac_cv_c_bigendian = yes; then
5709 cat >>confdefs.h <<\_ACEOF
5710 #define WORDS_BIGENDIAN 1
5711 _ACEOF
5714 cat >>confdefs.h <<\_ACEOF
5715 #define HOST_WORDS_BIG_ENDIAN 1
5716 _ACEOF
5718 BYTEORDER=4321
5719 else
5720 BYTEORDER=1234
5723 cat >>confdefs.h <<_ACEOF
5724 #define BYTEORDER $BYTEORDER
5725 _ACEOF
5727 if test $ac_cv_c_bigendian = unknown; then
5728 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
5729 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
5730 { (exit 1); exit 1; }; }
5734 if test x$TARGET = xSPARC; then
5735 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
5736 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
5737 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5741 save_CFLAGS="$CFLAGS"
5742 save_LDFLAGS="$LDFLAGS"
5743 CFLAGS="$CFLAGS -fpic"
5744 LDFLAGS="$LDFLAGS -shared"
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 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
5753 main ()
5757 return 0;
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 libffi_cv_as_sparc_ua_pcrel=yes
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 libffi_cv_as_sparc_ua_pcrel=no
5789 rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 CFLAGS="$save_CFLAGS"
5792 LDFLAGS="$save_LDFLAGS"
5794 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
5795 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
5796 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define HAVE_AS_SPARC_UA_PCREL 1
5800 _ACEOF
5804 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
5805 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
5806 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5810 libffi_cv_as_register_pseudo_op=unknown
5811 # Check if we have .register
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 asm (".register %g2, #scratch");
5820 main ()
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 libffi_cv_as_register_pseudo_op=yes
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 libffi_cv_as_register_pseudo_op=no
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
5860 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
5861 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
5863 cat >>confdefs.h <<\_ACEOF
5864 #define HAVE_AS_REGISTER_PSEUDO_OP 1
5865 _ACEOF
5870 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
5871 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
5872 if test "${libffi_cv_ro_eh_frame+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5876 libffi_cv_ro_eh_frame=no
5877 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
5878 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
5879 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
5880 libffi_cv_ro_eh_frame=yes
5881 elif grep '.section.*eh_frame.*#alloc' conftest.c \
5882 | grep -v '#write' > /dev/null; then
5883 libffi_cv_ro_eh_frame=yes
5886 rm -f conftest.*
5889 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
5890 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
5891 if test "x$libffi_cv_ro_eh_frame" = xyes; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define HAVE_RO_EH_FRAME 1
5895 _ACEOF
5898 cat >>confdefs.h <<\_ACEOF
5899 #define EH_FRAME_FLAGS "a"
5900 _ACEOF
5902 else
5904 cat >>confdefs.h <<\_ACEOF
5905 #define EH_FRAME_FLAGS "aw"
5906 _ACEOF
5915 # Check whether --enable-debug or --disable-debug was given.
5916 if test "${enable_debug+set}" = set; then
5917 enableval="$enable_debug"
5918 if test "$enable_debug" = "yes"; then
5920 cat >>confdefs.h <<\_ACEOF
5921 #define FFI_DEBUG 1
5922 _ACEOF
5927 # Check whether --enable-structs or --disable-structs was given.
5928 if test "${enable_structs+set}" = set; then
5929 enableval="$enable_structs"
5930 if test "$enable_structs" = "no"; then
5932 cat >>confdefs.h <<\_ACEOF
5933 #define FFI_NO_STRUCTS 1
5934 _ACEOF
5939 # Check whether --enable-raw-api or --disable-raw-api was given.
5940 if test "${enable_raw_api+set}" = set; then
5941 enableval="$enable_raw_api"
5942 if test "$enable_raw_api" = "no"; then
5944 cat >>confdefs.h <<\_ACEOF
5945 #define FFI_NO_RAW_API 1
5946 _ACEOF
5951 # Check whether --enable-purify-safety or --disable-purify-safety was given.
5952 if test "${enable_purify_safety+set}" = set; then
5953 enableval="$enable_purify_safety"
5954 if test "$enable_purify_safety" = "yes"; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define USING_PURIFY 1
5958 _ACEOF
5963 if test -n "$with_cross_host" &&
5964 test x"$with_cross_host" != x"no"; then
5965 toolexecdir='$(exec_prefix)/$(target_alias)'
5966 toolexeclibdir='$(toolexecdir)/lib'
5967 else
5968 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5969 toolexeclibdir='$(libdir)'
5971 multi_os_directory=`$CC -print-multi-os-directory`
5972 case $multi_os_directory in
5973 .) ;; # Avoid trailing /.
5974 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5975 esac
5979 #Figure out where generated headers like ffitarget.h get installed.
5980 gcc_version_trigger=${srcdir}/../gcc/version.c
5981 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
5982 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5983 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
5988 if test "${multilib}" = "yes"; then
5989 multilib_arg="--enable-multilib"
5990 else
5991 multilib_arg=
5994 ac_config_commands="$ac_config_commands include"
5996 ac_config_commands="$ac_config_commands src"
5999 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6002 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6005 cat >confcache <<\_ACEOF
6006 # This file is a shell script that caches the results of configure
6007 # tests run on this system so they can be shared between configure
6008 # scripts and configure runs, see configure's option --config-cache.
6009 # It is not useful on other systems. If it contains results you don't
6010 # want to keep, you may remove or edit it.
6012 # config.status only pays attention to the cache file if you give it
6013 # the --recheck option to rerun configure.
6015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6017 # following values.
6019 _ACEOF
6021 # The following way of writing the cache mishandles newlines in values,
6022 # but we know of no workaround that is simple, portable, and efficient.
6023 # So, don't put newlines in cache variables' values.
6024 # Ultrix sh set writes to stderr and can't be redirected directly,
6025 # and sets the high bit in the cache file unless we assign to the vars.
6027 (set) 2>&1 |
6028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6029 *ac_space=\ *)
6030 # `set' does not quote correctly, so add quotes (double-quote
6031 # substitution turns \\\\ into \\, and sed turns \\ into \).
6032 sed -n \
6033 "s/'/'\\\\''/g;
6034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6037 # `set' quotes correctly as required by POSIX, so do not add quotes.
6038 sed -n \
6039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6041 esac;
6043 sed '
6044 t clear
6045 : clear
6046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6047 t end
6048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6049 : end' >>confcache
6050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6051 if test -w $cache_file; then
6052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6053 cat confcache >$cache_file
6054 else
6055 echo "not updating unwritable cache $cache_file"
6058 rm -f confcache
6060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6061 # Let make expand exec_prefix.
6062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6066 # trailing colons and then remove the whole line if VPATH becomes empty
6067 # (actually we leave an empty line to preserve line numbers).
6068 if test "x$srcdir" = x.; then
6069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6070 s/:*\$(srcdir):*/:/;
6071 s/:*\${srcdir}:*/:/;
6072 s/:*@srcdir@:*/:/;
6073 s/^\([^=]*=[ ]*\):*/\1/;
6074 s/:*$//;
6075 s/^[^=]*=[ ]*$//;
6079 DEFS=-DHAVE_CONFIG_H
6081 ac_libobjs=
6082 ac_ltlibobjs=
6083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6084 # 1. Remove the extension, and $U if already installed.
6085 ac_i=`echo "$ac_i" |
6086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6087 # 2. Add them.
6088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6090 done
6091 LIBOBJS=$ac_libobjs
6093 LTLIBOBJS=$ac_ltlibobjs
6096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6097 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6098 Usually this means the macro was only invoked conditionally." >&5
6099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6100 Usually this means the macro was only invoked conditionally." >&2;}
6101 { (exit 1); exit 1; }; }
6103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6104 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6105 Usually this means the macro was only invoked conditionally." >&5
6106 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6107 Usually this means the macro was only invoked conditionally." >&2;}
6108 { (exit 1); exit 1; }; }
6110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6111 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6112 Usually this means the macro was only invoked conditionally." >&5
6113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6114 Usually this means the macro was only invoked conditionally." >&2;}
6115 { (exit 1); exit 1; }; }
6117 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6118 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6119 Usually this means the macro was only invoked conditionally." >&5
6120 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6121 Usually this means the macro was only invoked conditionally." >&2;}
6122 { (exit 1); exit 1; }; }
6124 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6125 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6126 Usually this means the macro was only invoked conditionally." >&5
6127 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6128 Usually this means the macro was only invoked conditionally." >&2;}
6129 { (exit 1); exit 1; }; }
6131 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6132 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6133 Usually this means the macro was only invoked conditionally." >&5
6134 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6135 Usually this means the macro was only invoked conditionally." >&2;}
6136 { (exit 1); exit 1; }; }
6138 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6139 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6140 Usually this means the macro was only invoked conditionally." >&5
6141 echo "$as_me: error: conditional \"SPARC\" was never defined.
6142 Usually this means the macro was only invoked conditionally." >&2;}
6143 { (exit 1); exit 1; }; }
6145 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6146 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6147 Usually this means the macro was only invoked conditionally." >&5
6148 echo "$as_me: error: conditional \"X86\" was never defined.
6149 Usually this means the macro was only invoked conditionally." >&2;}
6150 { (exit 1); exit 1; }; }
6152 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6153 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6154 Usually this means the macro was only invoked conditionally." >&5
6155 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6156 Usually this means the macro was only invoked conditionally." >&2;}
6157 { (exit 1); exit 1; }; }
6159 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6160 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6161 Usually this means the macro was only invoked conditionally." >&5
6162 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6163 Usually this means the macro was only invoked conditionally." >&2;}
6164 { (exit 1); exit 1; }; }
6166 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6167 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6168 Usually this means the macro was only invoked conditionally." >&5
6169 echo "$as_me: error: conditional \"IA64\" was never defined.
6170 Usually this means the macro was only invoked conditionally." >&2;}
6171 { (exit 1); exit 1; }; }
6173 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
6174 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
6175 Usually this means the macro was only invoked conditionally." >&5
6176 echo "$as_me: error: conditional \"M68K\" was never defined.
6177 Usually this means the macro was only invoked conditionally." >&2;}
6178 { (exit 1); exit 1; }; }
6180 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
6181 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
6182 Usually this means the macro was only invoked conditionally." >&5
6183 echo "$as_me: error: conditional \"POWERPC\" was never defined.
6184 Usually this means the macro was only invoked conditionally." >&2;}
6185 { (exit 1); exit 1; }; }
6187 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
6188 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
6189 Usually this means the macro was only invoked conditionally." >&5
6190 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
6191 Usually this means the macro was only invoked conditionally." >&2;}
6192 { (exit 1); exit 1; }; }
6194 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6195 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6196 Usually this means the macro was only invoked conditionally." >&5
6197 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6198 Usually this means the macro was only invoked conditionally." >&2;}
6199 { (exit 1); exit 1; }; }
6201 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
6202 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
6203 Usually this means the macro was only invoked conditionally." >&5
6204 echo "$as_me: error: conditional \"ARM\" was never defined.
6205 Usually this means the macro was only invoked conditionally." >&2;}
6206 { (exit 1); exit 1; }; }
6208 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
6209 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
6210 Usually this means the macro was only invoked conditionally." >&5
6211 echo "$as_me: error: conditional \"S390\" was never defined.
6212 Usually this means the macro was only invoked conditionally." >&2;}
6213 { (exit 1); exit 1; }; }
6215 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
6216 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
6217 Usually this means the macro was only invoked conditionally." >&5
6218 echo "$as_me: error: conditional \"X86_64\" was never defined.
6219 Usually this means the macro was only invoked conditionally." >&2;}
6220 { (exit 1); exit 1; }; }
6222 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
6223 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
6224 Usually this means the macro was only invoked conditionally." >&5
6225 echo "$as_me: error: conditional \"SH\" was never defined.
6226 Usually this means the macro was only invoked conditionally." >&2;}
6227 { (exit 1); exit 1; }; }
6229 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
6230 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
6231 Usually this means the macro was only invoked conditionally." >&5
6232 echo "$as_me: error: conditional \"SH64\" was never defined.
6233 Usually this means the macro was only invoked conditionally." >&2;}
6234 { (exit 1); exit 1; }; }
6237 : ${CONFIG_STATUS=./config.status}
6238 ac_clean_files_save=$ac_clean_files
6239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6242 cat >$CONFIG_STATUS <<_ACEOF
6243 #! $SHELL
6244 # Generated by $as_me.
6245 # Run this file to recreate the current configuration.
6246 # Compiler output produced by configure, useful for debugging
6247 # configure, is in config.log if it exists.
6249 debug=false
6250 ac_cs_recheck=false
6251 ac_cs_silent=false
6252 SHELL=\${CONFIG_SHELL-$SHELL}
6253 _ACEOF
6255 cat >>$CONFIG_STATUS <<\_ACEOF
6256 ## --------------------- ##
6257 ## M4sh Initialization. ##
6258 ## --------------------- ##
6260 # Be Bourne compatible
6261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6262 emulate sh
6263 NULLCMD=:
6264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6265 # is contrary to our usage. Disable this feature.
6266 alias -g '${1+"$@"}'='"$@"'
6267 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6268 set -o posix
6270 DUALCASE=1; export DUALCASE # for MKS sh
6272 # Support unset when possible.
6273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6274 as_unset=unset
6275 else
6276 as_unset=false
6280 # Work around bugs in pre-3.0 UWIN ksh.
6281 $as_unset ENV MAIL MAILPATH
6282 PS1='$ '
6283 PS2='> '
6284 PS4='+ '
6286 # NLS nuisances.
6287 for as_var in \
6288 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6289 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6290 LC_TELEPHONE LC_TIME
6292 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6293 eval $as_var=C; export $as_var
6294 else
6295 $as_unset $as_var
6297 done
6299 # Required to use basename.
6300 if expr a : '\(a\)' >/dev/null 2>&1; then
6301 as_expr=expr
6302 else
6303 as_expr=false
6306 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6307 as_basename=basename
6308 else
6309 as_basename=false
6313 # Name of the executable.
6314 as_me=`$as_basename "$0" ||
6315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6316 X"$0" : 'X\(//\)$' \| \
6317 X"$0" : 'X\(/\)$' \| \
6318 . : '\(.\)' 2>/dev/null ||
6319 echo X/"$0" |
6320 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6321 /^X\/\(\/\/\)$/{ s//\1/; q; }
6322 /^X\/\(\/\).*/{ s//\1/; q; }
6323 s/.*/./; q'`
6326 # PATH needs CR, and LINENO needs CR and PATH.
6327 # Avoid depending upon Character Ranges.
6328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6331 as_cr_digits='0123456789'
6332 as_cr_alnum=$as_cr_Letters$as_cr_digits
6334 # The user is always right.
6335 if test "${PATH_SEPARATOR+set}" != set; then
6336 echo "#! /bin/sh" >conf$$.sh
6337 echo "exit 0" >>conf$$.sh
6338 chmod +x conf$$.sh
6339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6340 PATH_SEPARATOR=';'
6341 else
6342 PATH_SEPARATOR=:
6344 rm -f conf$$.sh
6348 as_lineno_1=$LINENO
6349 as_lineno_2=$LINENO
6350 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6351 test "x$as_lineno_1" != "x$as_lineno_2" &&
6352 test "x$as_lineno_3" = "x$as_lineno_2" || {
6353 # Find who we are. Look in the path if we contain no path at all
6354 # relative or not.
6355 case $0 in
6356 *[\\/]* ) as_myself=$0 ;;
6357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6363 done
6366 esac
6367 # We did not find ourselves, most probably we were run as `sh COMMAND'
6368 # in which case we are not to be found in the path.
6369 if test "x$as_myself" = x; then
6370 as_myself=$0
6372 if test ! -f "$as_myself"; then
6373 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6374 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6375 { (exit 1); exit 1; }; }
6377 case $CONFIG_SHELL in
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for as_base in sh bash ksh sh5; do
6385 case $as_dir in
6387 if ("$as_dir/$as_base" -c '
6388 as_lineno_1=$LINENO
6389 as_lineno_2=$LINENO
6390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6391 test "x$as_lineno_1" != "x$as_lineno_2" &&
6392 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6393 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6394 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6395 CONFIG_SHELL=$as_dir/$as_base
6396 export CONFIG_SHELL
6397 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6398 fi;;
6399 esac
6400 done
6401 done
6403 esac
6405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6406 # uniformly replaced by the line number. The first 'sed' inserts a
6407 # line-number line before each line; the second 'sed' does the real
6408 # work. The second script uses 'N' to pair each line-number line
6409 # with the numbered line, and appends trailing '-' during
6410 # substitution so that $LINENO is not a special case at line end.
6411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6412 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6413 sed '=' <$as_myself |
6414 sed '
6416 s,$,-,
6417 : loop
6418 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6419 t loop
6420 s,-$,,
6421 s,^['$as_cr_digits']*\n,,
6422 ' >$as_me.lineno &&
6423 chmod +x $as_me.lineno ||
6424 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6425 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6426 { (exit 1); exit 1; }; }
6428 # Don't try to exec as it changes $[0], causing all sort of problems
6429 # (the dirname of $[0] is not the place where we might find the
6430 # original and so on. Autoconf is especially sensible to this).
6431 . ./$as_me.lineno
6432 # Exit status is that of the last command.
6433 exit
6437 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6438 *c*,-n*) ECHO_N= ECHO_C='
6439 ' ECHO_T=' ' ;;
6440 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6441 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6442 esac
6444 if expr a : '\(a\)' >/dev/null 2>&1; then
6445 as_expr=expr
6446 else
6447 as_expr=false
6450 rm -f conf$$ conf$$.exe conf$$.file
6451 echo >conf$$.file
6452 if ln -s conf$$.file conf$$ 2>/dev/null; then
6453 # We could just check for DJGPP; but this test a) works b) is more generic
6454 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6455 if test -f conf$$.exe; then
6456 # Don't use ln at all; we don't have any links
6457 as_ln_s='cp -p'
6458 else
6459 as_ln_s='ln -s'
6461 elif ln conf$$.file conf$$ 2>/dev/null; then
6462 as_ln_s=ln
6463 else
6464 as_ln_s='cp -p'
6466 rm -f conf$$ conf$$.exe conf$$.file
6468 if mkdir -p . 2>/dev/null; then
6469 as_mkdir_p=:
6470 else
6471 test -d ./-p && rmdir ./-p
6472 as_mkdir_p=false
6475 as_executable_p="test -f"
6477 # Sed expression to map a string onto a valid CPP name.
6478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6480 # Sed expression to map a string onto a valid variable name.
6481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6484 # IFS
6485 # We need space, tab and new line, in precisely that order.
6486 as_nl='
6488 IFS=" $as_nl"
6490 # CDPATH.
6491 $as_unset CDPATH
6493 exec 6>&1
6495 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6496 # report actual input values of CONFIG_FILES etc. instead of their
6497 # values after options handling. Logging --version etc. is OK.
6498 exec 5>>config.log
6500 echo
6501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6502 ## Running $as_me. ##
6503 _ASBOX
6504 } >&5
6505 cat >&5 <<_CSEOF
6507 This file was extended by libffi $as_me 2.1, which was
6508 generated by GNU Autoconf 2.59. Invocation command line was
6510 CONFIG_FILES = $CONFIG_FILES
6511 CONFIG_HEADERS = $CONFIG_HEADERS
6512 CONFIG_LINKS = $CONFIG_LINKS
6513 CONFIG_COMMANDS = $CONFIG_COMMANDS
6514 $ $0 $@
6516 _CSEOF
6517 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6518 echo >&5
6519 _ACEOF
6521 # Files that config.status was made for.
6522 if test -n "$ac_config_files"; then
6523 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6526 if test -n "$ac_config_headers"; then
6527 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6530 if test -n "$ac_config_links"; then
6531 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6534 if test -n "$ac_config_commands"; then
6535 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6538 cat >>$CONFIG_STATUS <<\_ACEOF
6540 ac_cs_usage="\
6541 \`$as_me' instantiates files from templates according to the
6542 current configuration.
6544 Usage: $0 [OPTIONS] [FILE]...
6546 -h, --help print this help, then exit
6547 -V, --version print version number, then exit
6548 -q, --quiet do not print progress messages
6549 -d, --debug don't remove temporary files
6550 --recheck update $as_me by reconfiguring in the same conditions
6551 --file=FILE[:TEMPLATE]
6552 instantiate the configuration file FILE
6553 --header=FILE[:TEMPLATE]
6554 instantiate the configuration header FILE
6556 Configuration files:
6557 $config_files
6559 Configuration headers:
6560 $config_headers
6562 Configuration links:
6563 $config_links
6565 Configuration commands:
6566 $config_commands
6568 Report bugs to <bug-autoconf@gnu.org>."
6569 _ACEOF
6571 cat >>$CONFIG_STATUS <<_ACEOF
6572 ac_cs_version="\\
6573 libffi config.status 2.1
6574 configured by $0, generated by GNU Autoconf 2.59,
6575 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6577 Copyright (C) 2003 Free Software Foundation, Inc.
6578 This config.status script is free software; the Free Software Foundation
6579 gives unlimited permission to copy, distribute and modify it."
6580 srcdir=$srcdir
6581 INSTALL="$INSTALL"
6582 _ACEOF
6584 cat >>$CONFIG_STATUS <<\_ACEOF
6585 # If no file are specified by the user, then we need to provide default
6586 # value. By we need to know if files were specified by the user.
6587 ac_need_defaults=:
6588 while test $# != 0
6590 case $1 in
6591 --*=*)
6592 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6593 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6594 ac_shift=:
6597 ac_option=$1
6598 ac_optarg=$2
6599 ac_shift=shift
6601 *) # This is not an option, so the user has probably given explicit
6602 # arguments.
6603 ac_option=$1
6604 ac_need_defaults=false;;
6605 esac
6607 case $ac_option in
6608 # Handling of the options.
6609 _ACEOF
6610 cat >>$CONFIG_STATUS <<\_ACEOF
6611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6612 ac_cs_recheck=: ;;
6613 --version | --vers* | -V )
6614 echo "$ac_cs_version"; exit 0 ;;
6615 --he | --h)
6616 # Conflict between --help and --header
6617 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6618 Try \`$0 --help' for more information." >&5
6619 echo "$as_me: error: ambiguous option: $1
6620 Try \`$0 --help' for more information." >&2;}
6621 { (exit 1); exit 1; }; };;
6622 --help | --hel | -h )
6623 echo "$ac_cs_usage"; exit 0 ;;
6624 --debug | --d* | -d )
6625 debug=: ;;
6626 --file | --fil | --fi | --f )
6627 $ac_shift
6628 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6629 ac_need_defaults=false;;
6630 --header | --heade | --head | --hea )
6631 $ac_shift
6632 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6633 ac_need_defaults=false;;
6634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6636 ac_cs_silent=: ;;
6638 # This is an error.
6639 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6640 Try \`$0 --help' for more information." >&5
6641 echo "$as_me: error: unrecognized option: $1
6642 Try \`$0 --help' for more information." >&2;}
6643 { (exit 1); exit 1; }; } ;;
6645 *) ac_config_targets="$ac_config_targets $1" ;;
6647 esac
6648 shift
6649 done
6651 ac_configure_extra_args=
6653 if $ac_cs_silent; then
6654 exec 6>/dev/null
6655 ac_configure_extra_args="$ac_configure_extra_args --silent"
6658 _ACEOF
6659 cat >>$CONFIG_STATUS <<_ACEOF
6660 if \$ac_cs_recheck; then
6661 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6662 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6665 _ACEOF
6667 cat >>$CONFIG_STATUS <<_ACEOF
6669 # INIT-COMMANDS section.
6673 srcdir="$srcdir"
6674 host="$host"
6675 target="$target"
6676 with_multisubdir="$with_multisubdir"
6677 with_multisrctop="$with_multisrctop"
6678 with_target_subdir="$with_target_subdir"
6679 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6680 multi_basedir="$multi_basedir"
6681 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6682 CC="$CC"
6683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6684 TARGETDIR="$TARGETDIR"
6686 _ACEOF
6690 cat >>$CONFIG_STATUS <<\_ACEOF
6691 for ac_config_target in $ac_config_targets
6693 case "$ac_config_target" in
6694 # Handling of arguments.
6695 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6696 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
6697 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6698 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6699 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
6700 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6701 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6702 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
6703 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
6704 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
6705 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6706 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6707 { (exit 1); exit 1; }; };;
6708 esac
6709 done
6711 # If the user did not use the arguments to specify the items to instantiate,
6712 # then the envvar interface is used. Set only those that are not.
6713 # We use the long form for the default assignment because of an extremely
6714 # bizarre bug on SunOS 4.1.3.
6715 if $ac_need_defaults; then
6716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6717 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6718 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6719 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6722 # Have a temporary directory for convenience. Make it in the build tree
6723 # simply because there is no reason to put it here, and in addition,
6724 # creating and moving files from /tmp can sometimes cause problems.
6725 # Create a temporary directory, and hook for its removal unless debugging.
6726 $debug ||
6728 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6729 trap '{ (exit 1); exit 1; }' 1 2 13 15
6732 # Create a (secure) tmp directory for tmp files.
6735 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6736 test -n "$tmp" && test -d "$tmp"
6737 } ||
6739 tmp=./confstat$$-$RANDOM
6740 (umask 077 && mkdir $tmp)
6741 } ||
6743 echo "$me: cannot create a temporary directory in ." >&2
6744 { (exit 1); exit 1; }
6747 _ACEOF
6749 cat >>$CONFIG_STATUS <<_ACEOF
6752 # CONFIG_FILES section.
6755 # No need to generate the scripts if there are no CONFIG_FILES.
6756 # This happens for instance when ./config.status config.h
6757 if test -n "\$CONFIG_FILES"; then
6758 # Protect against being on the right side of a sed subst in config.status.
6759 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6760 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6761 s,@SHELL@,$SHELL,;t t
6762 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6763 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6764 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6765 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6766 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6767 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6768 s,@exec_prefix@,$exec_prefix,;t t
6769 s,@prefix@,$prefix,;t t
6770 s,@program_transform_name@,$program_transform_name,;t t
6771 s,@bindir@,$bindir,;t t
6772 s,@sbindir@,$sbindir,;t t
6773 s,@libexecdir@,$libexecdir,;t t
6774 s,@datadir@,$datadir,;t t
6775 s,@sysconfdir@,$sysconfdir,;t t
6776 s,@sharedstatedir@,$sharedstatedir,;t t
6777 s,@localstatedir@,$localstatedir,;t t
6778 s,@libdir@,$libdir,;t t
6779 s,@includedir@,$includedir,;t t
6780 s,@oldincludedir@,$oldincludedir,;t t
6781 s,@infodir@,$infodir,;t t
6782 s,@mandir@,$mandir,;t t
6783 s,@build_alias@,$build_alias,;t t
6784 s,@host_alias@,$host_alias,;t t
6785 s,@target_alias@,$target_alias,;t t
6786 s,@DEFS@,$DEFS,;t t
6787 s,@ECHO_C@,$ECHO_C,;t t
6788 s,@ECHO_N@,$ECHO_N,;t t
6789 s,@ECHO_T@,$ECHO_T,;t t
6790 s,@LIBS@,$LIBS,;t t
6791 s,@multi_basedir@,$multi_basedir,;t t
6792 s,@build@,$build,;t t
6793 s,@build_cpu@,$build_cpu,;t t
6794 s,@build_vendor@,$build_vendor,;t t
6795 s,@build_os@,$build_os,;t t
6796 s,@host@,$host,;t t
6797 s,@host_cpu@,$host_cpu,;t t
6798 s,@host_vendor@,$host_vendor,;t t
6799 s,@host_os@,$host_os,;t t
6800 s,@target@,$target,;t t
6801 s,@target_cpu@,$target_cpu,;t t
6802 s,@target_vendor@,$target_vendor,;t t
6803 s,@target_os@,$target_os,;t t
6804 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6805 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6806 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6807 s,@CYGPATH_W@,$CYGPATH_W,;t t
6808 s,@PACKAGE@,$PACKAGE,;t t
6809 s,@VERSION@,$VERSION,;t t
6810 s,@ACLOCAL@,$ACLOCAL,;t t
6811 s,@AUTOCONF@,$AUTOCONF,;t t
6812 s,@AUTOMAKE@,$AUTOMAKE,;t t
6813 s,@AUTOHEADER@,$AUTOHEADER,;t t
6814 s,@MAKEINFO@,$MAKEINFO,;t t
6815 s,@AMTAR@,$AMTAR,;t t
6816 s,@install_sh@,$install_sh,;t t
6817 s,@STRIP@,$STRIP,;t t
6818 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6819 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6820 s,@AWK@,$AWK,;t t
6821 s,@SET_MAKE@,$SET_MAKE,;t t
6822 s,@am__leading_dot@,$am__leading_dot,;t t
6823 s,@CC@,$CC,;t t
6824 s,@ac_ct_CC@,$ac_ct_CC,;t t
6825 s,@EXEEXT@,$EXEEXT,;t t
6826 s,@OBJEXT@,$OBJEXT,;t t
6827 s,@DEPDIR@,$DEPDIR,;t t
6828 s,@am__include@,$am__include,;t t
6829 s,@am__quote@,$am__quote,;t t
6830 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6831 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6832 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6833 s,@CCDEPMODE@,$CCDEPMODE,;t t
6834 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6835 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6836 s,@CFLAGS@,$CFLAGS,;t t
6837 s,@CCAS@,$CCAS,;t t
6838 s,@CCASFLAGS@,$CCASFLAGS,;t t
6839 s,@LN_S@,$LN_S,;t t
6840 s,@RANLIB@,$RANLIB,;t t
6841 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6842 s,@LIBTOOL@,$LIBTOOL,;t t
6843 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6844 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6845 s,@MAINT@,$MAINT,;t t
6846 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
6847 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
6848 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
6849 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
6850 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
6851 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
6852 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
6853 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
6854 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
6855 s,@X86_TRUE@,$X86_TRUE,;t t
6856 s,@X86_FALSE@,$X86_FALSE,;t t
6857 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
6858 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
6859 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
6860 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
6861 s,@IA64_TRUE@,$IA64_TRUE,;t t
6862 s,@IA64_FALSE@,$IA64_FALSE,;t t
6863 s,@M68K_TRUE@,$M68K_TRUE,;t t
6864 s,@M68K_FALSE@,$M68K_FALSE,;t t
6865 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
6866 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
6867 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
6868 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
6869 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6870 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6871 s,@ARM_TRUE@,$ARM_TRUE,;t t
6872 s,@ARM_FALSE@,$ARM_FALSE,;t t
6873 s,@S390_TRUE@,$S390_TRUE,;t t
6874 s,@S390_FALSE@,$S390_FALSE,;t t
6875 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
6876 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
6877 s,@SH_TRUE@,$SH_TRUE,;t t
6878 s,@SH_FALSE@,$SH_FALSE,;t t
6879 s,@SH64_TRUE@,$SH64_TRUE,;t t
6880 s,@SH64_FALSE@,$SH64_FALSE,;t t
6881 s,@CPP@,$CPP,;t t
6882 s,@CPPFLAGS@,$CPPFLAGS,;t t
6883 s,@EGREP@,$EGREP,;t t
6884 s,@ALLOCA@,$ALLOCA,;t t
6885 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
6886 s,@TARGET@,$TARGET,;t t
6887 s,@TARGETDIR@,$TARGETDIR,;t t
6888 s,@toolexecdir@,$toolexecdir,;t t
6889 s,@toolexeclibdir@,$toolexeclibdir,;t t
6890 s,@tool_include_dir@,$tool_include_dir,;t t
6891 s,@gcc_version@,$gcc_version,;t t
6892 s,@LIBOBJS@,$LIBOBJS,;t t
6893 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6894 CEOF
6896 _ACEOF
6898 cat >>$CONFIG_STATUS <<\_ACEOF
6899 # Split the substitutions into bite-sized pieces for seds with
6900 # small command number limits, like on Digital OSF/1 and HP-UX.
6901 ac_max_sed_lines=48
6902 ac_sed_frag=1 # Number of current file.
6903 ac_beg=1 # First line for current file.
6904 ac_end=$ac_max_sed_lines # Line after last line for current file.
6905 ac_more_lines=:
6906 ac_sed_cmds=
6907 while $ac_more_lines; do
6908 if test $ac_beg -gt 1; then
6909 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6910 else
6911 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6913 if test ! -s $tmp/subs.frag; then
6914 ac_more_lines=false
6915 else
6916 # The purpose of the label and of the branching condition is to
6917 # speed up the sed processing (if there are no `@' at all, there
6918 # is no need to browse any of the substitutions).
6919 # These are the two extra sed commands mentioned above.
6920 (echo ':t
6921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6922 if test -z "$ac_sed_cmds"; then
6923 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6924 else
6925 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6927 ac_sed_frag=`expr $ac_sed_frag + 1`
6928 ac_beg=$ac_end
6929 ac_end=`expr $ac_end + $ac_max_sed_lines`
6931 done
6932 if test -z "$ac_sed_cmds"; then
6933 ac_sed_cmds=cat
6935 fi # test -n "$CONFIG_FILES"
6937 _ACEOF
6938 cat >>$CONFIG_STATUS <<\_ACEOF
6939 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6941 case $ac_file in
6942 - | *:- | *:-:* ) # input from stdin
6943 cat >$tmp/stdin
6944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6948 * ) ac_file_in=$ac_file.in ;;
6949 esac
6951 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6954 X"$ac_file" : 'X\(//\)[^/]' \| \
6955 X"$ac_file" : 'X\(//\)$' \| \
6956 X"$ac_file" : 'X\(/\)' \| \
6957 . : '\(.\)' 2>/dev/null ||
6958 echo X"$ac_file" |
6959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6961 /^X\(\/\/\)$/{ s//\1/; q; }
6962 /^X\(\/\).*/{ s//\1/; q; }
6963 s/.*/./; q'`
6964 { if $as_mkdir_p; then
6965 mkdir -p "$ac_dir"
6966 else
6967 as_dir="$ac_dir"
6968 as_dirs=
6969 while test ! -d "$as_dir"; do
6970 as_dirs="$as_dir $as_dirs"
6971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6973 X"$as_dir" : 'X\(//\)[^/]' \| \
6974 X"$as_dir" : 'X\(//\)$' \| \
6975 X"$as_dir" : 'X\(/\)' \| \
6976 . : '\(.\)' 2>/dev/null ||
6977 echo X"$as_dir" |
6978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6980 /^X\(\/\/\)$/{ s//\1/; q; }
6981 /^X\(\/\).*/{ s//\1/; q; }
6982 s/.*/./; q'`
6983 done
6984 test ! -n "$as_dirs" || mkdir $as_dirs
6985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6987 { (exit 1); exit 1; }; }; }
6989 ac_builddir=.
6991 if test "$ac_dir" != .; then
6992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6993 # A "../" for each directory in $ac_dir_suffix.
6994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6995 else
6996 ac_dir_suffix= ac_top_builddir=
6999 case $srcdir in
7000 .) # No --srcdir option. We are building in place.
7001 ac_srcdir=.
7002 if test -z "$ac_top_builddir"; then
7003 ac_top_srcdir=.
7004 else
7005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7006 fi ;;
7007 [\\/]* | ?:[\\/]* ) # Absolute path.
7008 ac_srcdir=$srcdir$ac_dir_suffix;
7009 ac_top_srcdir=$srcdir ;;
7010 *) # Relative path.
7011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7013 esac
7015 # Do not use `cd foo && pwd` to compute absolute paths, because
7016 # the directories may not exist.
7017 case `pwd` in
7018 .) ac_abs_builddir="$ac_dir";;
7020 case "$ac_dir" in
7021 .) ac_abs_builddir=`pwd`;;
7022 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7023 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7024 esac;;
7025 esac
7026 case $ac_abs_builddir in
7027 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7029 case ${ac_top_builddir}. in
7030 .) ac_abs_top_builddir=$ac_abs_builddir;;
7031 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7032 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7033 esac;;
7034 esac
7035 case $ac_abs_builddir in
7036 .) ac_abs_srcdir=$ac_srcdir;;
7038 case $ac_srcdir in
7039 .) ac_abs_srcdir=$ac_abs_builddir;;
7040 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7041 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7042 esac;;
7043 esac
7044 case $ac_abs_builddir in
7045 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7047 case $ac_top_srcdir in
7048 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7049 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7050 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7051 esac;;
7052 esac
7055 case $INSTALL in
7056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7057 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7058 esac
7060 if test x"$ac_file" != x-; then
7061 { echo "$as_me:$LINENO: creating $ac_file" >&5
7062 echo "$as_me: creating $ac_file" >&6;}
7063 rm -f "$ac_file"
7065 # Let's still pretend it is `configure' which instantiates (i.e., don't
7066 # use $as_me), people would be surprised to read:
7067 # /* config.h. Generated by config.status. */
7068 if test x"$ac_file" = x-; then
7069 configure_input=
7070 else
7071 configure_input="$ac_file. "
7073 configure_input=$configure_input"Generated from `echo $ac_file_in |
7074 sed 's,.*/,,'` by configure."
7076 # First look for the input files in the build tree, otherwise in the
7077 # src tree.
7078 ac_file_inputs=`IFS=:
7079 for f in $ac_file_in; do
7080 case $f in
7081 -) echo $tmp/stdin ;;
7082 [\\/$]*)
7083 # Absolute (can't be DOS-style, as IFS=:)
7084 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7085 echo "$as_me: error: cannot find input file: $f" >&2;}
7086 { (exit 1); exit 1; }; }
7087 echo "$f";;
7088 *) # Relative
7089 if test -f "$f"; then
7090 # Build tree
7091 echo "$f"
7092 elif test -f "$srcdir/$f"; then
7093 # Source tree
7094 echo "$srcdir/$f"
7095 else
7096 # /dev/null tree
7097 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7098 echo "$as_me: error: cannot find input file: $f" >&2;}
7099 { (exit 1); exit 1; }; }
7100 fi;;
7101 esac
7102 done` || { (exit 1); exit 1; }
7103 _ACEOF
7104 cat >>$CONFIG_STATUS <<_ACEOF
7105 sed "$ac_vpsub
7106 $extrasub
7107 _ACEOF
7108 cat >>$CONFIG_STATUS <<\_ACEOF
7110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7111 s,@configure_input@,$configure_input,;t t
7112 s,@srcdir@,$ac_srcdir,;t t
7113 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7114 s,@top_srcdir@,$ac_top_srcdir,;t t
7115 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7116 s,@builddir@,$ac_builddir,;t t
7117 s,@abs_builddir@,$ac_abs_builddir,;t t
7118 s,@top_builddir@,$ac_top_builddir,;t t
7119 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7120 s,@INSTALL@,$ac_INSTALL,;t t
7121 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7122 rm -f $tmp/stdin
7123 if test x"$ac_file" != x-; then
7124 mv $tmp/out $ac_file
7125 else
7126 cat $tmp/out
7127 rm -f $tmp/out
7130 done
7131 _ACEOF
7132 cat >>$CONFIG_STATUS <<\_ACEOF
7135 # CONFIG_HEADER section.
7138 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7139 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7141 # ac_d sets the value in "#define NAME VALUE" lines.
7142 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7143 ac_dB='[ ].*$,\1#\2'
7144 ac_dC=' '
7145 ac_dD=',;t'
7146 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7147 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7148 ac_uB='$,\1#\2define\3'
7149 ac_uC=' '
7150 ac_uD=',;t'
7152 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7154 case $ac_file in
7155 - | *:- | *:-:* ) # input from stdin
7156 cat >$tmp/stdin
7157 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7159 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7161 * ) ac_file_in=$ac_file.in ;;
7162 esac
7164 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7165 echo "$as_me: creating $ac_file" >&6;}
7167 # First look for the input files in the build tree, otherwise in the
7168 # src tree.
7169 ac_file_inputs=`IFS=:
7170 for f in $ac_file_in; do
7171 case $f in
7172 -) echo $tmp/stdin ;;
7173 [\\/$]*)
7174 # Absolute (can't be DOS-style, as IFS=:)
7175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7176 echo "$as_me: error: cannot find input file: $f" >&2;}
7177 { (exit 1); exit 1; }; }
7178 # Do quote $f, to prevent DOS paths from being IFS'd.
7179 echo "$f";;
7180 *) # Relative
7181 if test -f "$f"; then
7182 # Build tree
7183 echo "$f"
7184 elif test -f "$srcdir/$f"; then
7185 # Source tree
7186 echo "$srcdir/$f"
7187 else
7188 # /dev/null tree
7189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7190 echo "$as_me: error: cannot find input file: $f" >&2;}
7191 { (exit 1); exit 1; }; }
7192 fi;;
7193 esac
7194 done` || { (exit 1); exit 1; }
7195 # Remove the trailing spaces.
7196 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7198 _ACEOF
7200 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7201 # `conftest.undefs', that substitutes the proper values into
7202 # config.h.in to produce config.h. The first handles `#define'
7203 # templates, and the second `#undef' templates.
7204 # And first: Protect against being on the right side of a sed subst in
7205 # config.status. Protect against being in an unquoted here document
7206 # in config.status.
7207 rm -f conftest.defines conftest.undefs
7208 # Using a here document instead of a string reduces the quoting nightmare.
7209 # Putting comments in sed scripts is not portable.
7211 # `end' is used to avoid that the second main sed command (meant for
7212 # 0-ary CPP macros) applies to n-ary macro definitions.
7213 # See the Autoconf documentation for `clear'.
7214 cat >confdef2sed.sed <<\_ACEOF
7215 s/[\\&,]/\\&/g
7216 s,[\\$`],\\&,g
7217 t clear
7218 : clear
7219 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7220 t end
7221 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7222 : end
7223 _ACEOF
7224 # If some macros were called several times there might be several times
7225 # the same #defines, which is useless. Nevertheless, we may not want to
7226 # sort them, since we want the *last* AC-DEFINE to be honored.
7227 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7228 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7229 rm -f confdef2sed.sed
7231 # This sed command replaces #undef with comments. This is necessary, for
7232 # example, in the case of _POSIX_SOURCE, which is predefined and required
7233 # on some systems where configure will not decide to define it.
7234 cat >>conftest.undefs <<\_ACEOF
7235 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7236 _ACEOF
7238 # Break up conftest.defines because some shells have a limit on the size
7239 # of here documents, and old seds have small limits too (100 cmds).
7240 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7241 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7242 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7243 echo ' :' >>$CONFIG_STATUS
7244 rm -f conftest.tail
7245 while grep . conftest.defines >/dev/null
7247 # Write a limited-size here document to $tmp/defines.sed.
7248 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7249 # Speed up: don't consider the non `#define' lines.
7250 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7251 # Work around the forget-to-reset-the-flag bug.
7252 echo 't clr' >>$CONFIG_STATUS
7253 echo ': clr' >>$CONFIG_STATUS
7254 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7255 echo 'CEOF
7256 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7257 rm -f $tmp/in
7258 mv $tmp/out $tmp/in
7259 ' >>$CONFIG_STATUS
7260 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7261 rm -f conftest.defines
7262 mv conftest.tail conftest.defines
7263 done
7264 rm -f conftest.defines
7265 echo ' fi # grep' >>$CONFIG_STATUS
7266 echo >>$CONFIG_STATUS
7268 # Break up conftest.undefs because some shells have a limit on the size
7269 # of here documents, and old seds have small limits too (100 cmds).
7270 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7271 rm -f conftest.tail
7272 while grep . conftest.undefs >/dev/null
7274 # Write a limited-size here document to $tmp/undefs.sed.
7275 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7276 # Speed up: don't consider the non `#undef'
7277 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7278 # Work around the forget-to-reset-the-flag bug.
7279 echo 't clr' >>$CONFIG_STATUS
7280 echo ': clr' >>$CONFIG_STATUS
7281 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7282 echo 'CEOF
7283 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7284 rm -f $tmp/in
7285 mv $tmp/out $tmp/in
7286 ' >>$CONFIG_STATUS
7287 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7288 rm -f conftest.undefs
7289 mv conftest.tail conftest.undefs
7290 done
7291 rm -f conftest.undefs
7293 cat >>$CONFIG_STATUS <<\_ACEOF
7294 # Let's still pretend it is `configure' which instantiates (i.e., don't
7295 # use $as_me), people would be surprised to read:
7296 # /* config.h. Generated by config.status. */
7297 if test x"$ac_file" = x-; then
7298 echo "/* Generated by configure. */" >$tmp/config.h
7299 else
7300 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7302 cat $tmp/in >>$tmp/config.h
7303 rm -f $tmp/in
7304 if test x"$ac_file" != x-; then
7305 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7306 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7307 echo "$as_me: $ac_file is unchanged" >&6;}
7308 else
7309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7311 X"$ac_file" : 'X\(//\)[^/]' \| \
7312 X"$ac_file" : 'X\(//\)$' \| \
7313 X"$ac_file" : 'X\(/\)' \| \
7314 . : '\(.\)' 2>/dev/null ||
7315 echo X"$ac_file" |
7316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7318 /^X\(\/\/\)$/{ s//\1/; q; }
7319 /^X\(\/\).*/{ s//\1/; q; }
7320 s/.*/./; q'`
7321 { if $as_mkdir_p; then
7322 mkdir -p "$ac_dir"
7323 else
7324 as_dir="$ac_dir"
7325 as_dirs=
7326 while test ! -d "$as_dir"; do
7327 as_dirs="$as_dir $as_dirs"
7328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7330 X"$as_dir" : 'X\(//\)[^/]' \| \
7331 X"$as_dir" : 'X\(//\)$' \| \
7332 X"$as_dir" : 'X\(/\)' \| \
7333 . : '\(.\)' 2>/dev/null ||
7334 echo X"$as_dir" |
7335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7337 /^X\(\/\/\)$/{ s//\1/; q; }
7338 /^X\(\/\).*/{ s//\1/; q; }
7339 s/.*/./; q'`
7340 done
7341 test ! -n "$as_dirs" || mkdir $as_dirs
7342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7344 { (exit 1); exit 1; }; }; }
7346 rm -f $ac_file
7347 mv $tmp/config.h $ac_file
7349 else
7350 cat $tmp/config.h
7351 rm -f $tmp/config.h
7353 # Compute $ac_file's index in $config_headers.
7354 _am_stamp_count=1
7355 for _am_header in $config_headers :; do
7356 case $_am_header in
7357 $ac_file | $ac_file:* )
7358 break ;;
7360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7361 esac
7362 done
7363 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7364 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7365 X$ac_file : 'X\(//\)[^/]' \| \
7366 X$ac_file : 'X\(//\)$' \| \
7367 X$ac_file : 'X\(/\)' \| \
7368 . : '\(.\)' 2>/dev/null ||
7369 echo X$ac_file |
7370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7372 /^X\(\/\/\)$/{ s//\1/; q; }
7373 /^X\(\/\).*/{ s//\1/; q; }
7374 s/.*/./; q'`/stamp-h$_am_stamp_count
7375 done
7376 _ACEOF
7377 cat >>$CONFIG_STATUS <<\_ACEOF
7380 # CONFIG_LINKS section.
7383 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7384 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7385 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7387 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7388 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7390 if test ! -r $srcdir/$ac_source; then
7391 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7392 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7393 { (exit 1); exit 1; }; }
7395 rm -f $ac_dest
7397 # Make relative symlinks.
7398 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7399 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7400 X"$ac_dest" : 'X\(//\)[^/]' \| \
7401 X"$ac_dest" : 'X\(//\)$' \| \
7402 X"$ac_dest" : 'X\(/\)' \| \
7403 . : '\(.\)' 2>/dev/null ||
7404 echo X"$ac_dest" |
7405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7407 /^X\(\/\/\)$/{ s//\1/; q; }
7408 /^X\(\/\).*/{ s//\1/; q; }
7409 s/.*/./; q'`
7410 { if $as_mkdir_p; then
7411 mkdir -p "$ac_dest_dir"
7412 else
7413 as_dir="$ac_dest_dir"
7414 as_dirs=
7415 while test ! -d "$as_dir"; do
7416 as_dirs="$as_dir $as_dirs"
7417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7419 X"$as_dir" : 'X\(//\)[^/]' \| \
7420 X"$as_dir" : 'X\(//\)$' \| \
7421 X"$as_dir" : 'X\(/\)' \| \
7422 . : '\(.\)' 2>/dev/null ||
7423 echo X"$as_dir" |
7424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7426 /^X\(\/\/\)$/{ s//\1/; q; }
7427 /^X\(\/\).*/{ s//\1/; q; }
7428 s/.*/./; q'`
7429 done
7430 test ! -n "$as_dirs" || mkdir $as_dirs
7431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7432 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7433 { (exit 1); exit 1; }; }; }
7435 ac_builddir=.
7437 if test "$ac_dest_dir" != .; then
7438 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7439 # A "../" for each directory in $ac_dir_suffix.
7440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7441 else
7442 ac_dir_suffix= ac_top_builddir=
7445 case $srcdir in
7446 .) # No --srcdir option. We are building in place.
7447 ac_srcdir=.
7448 if test -z "$ac_top_builddir"; then
7449 ac_top_srcdir=.
7450 else
7451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7452 fi ;;
7453 [\\/]* | ?:[\\/]* ) # Absolute path.
7454 ac_srcdir=$srcdir$ac_dir_suffix;
7455 ac_top_srcdir=$srcdir ;;
7456 *) # Relative path.
7457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7458 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7459 esac
7461 # Do not use `cd foo && pwd` to compute absolute paths, because
7462 # the directories may not exist.
7463 case `pwd` in
7464 .) ac_abs_builddir="$ac_dest_dir";;
7466 case "$ac_dest_dir" in
7467 .) ac_abs_builddir=`pwd`;;
7468 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
7469 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
7470 esac;;
7471 esac
7472 case $ac_abs_builddir in
7473 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7475 case ${ac_top_builddir}. in
7476 .) ac_abs_top_builddir=$ac_abs_builddir;;
7477 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7478 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7479 esac;;
7480 esac
7481 case $ac_abs_builddir in
7482 .) ac_abs_srcdir=$ac_srcdir;;
7484 case $ac_srcdir in
7485 .) ac_abs_srcdir=$ac_abs_builddir;;
7486 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7487 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7488 esac;;
7489 esac
7490 case $ac_abs_builddir in
7491 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7493 case $ac_top_srcdir in
7494 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7495 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7496 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7497 esac;;
7498 esac
7501 case $srcdir in
7502 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7503 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7504 esac
7506 # Try a symlink, then a hard link, then a copy.
7507 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7508 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7509 cp -p $srcdir/$ac_source $ac_dest ||
7510 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7511 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7512 { (exit 1); exit 1; }; }
7513 done
7514 _ACEOF
7515 cat >>$CONFIG_STATUS <<\_ACEOF
7518 # CONFIG_COMMANDS section.
7520 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7521 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7522 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7523 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7524 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7525 X"$ac_dest" : 'X\(//\)[^/]' \| \
7526 X"$ac_dest" : 'X\(//\)$' \| \
7527 X"$ac_dest" : 'X\(/\)' \| \
7528 . : '\(.\)' 2>/dev/null ||
7529 echo X"$ac_dest" |
7530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7532 /^X\(\/\/\)$/{ s//\1/; q; }
7533 /^X\(\/\).*/{ s//\1/; q; }
7534 s/.*/./; q'`
7535 { if $as_mkdir_p; then
7536 mkdir -p "$ac_dir"
7537 else
7538 as_dir="$ac_dir"
7539 as_dirs=
7540 while test ! -d "$as_dir"; do
7541 as_dirs="$as_dir $as_dirs"
7542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7544 X"$as_dir" : 'X\(//\)[^/]' \| \
7545 X"$as_dir" : 'X\(//\)$' \| \
7546 X"$as_dir" : 'X\(/\)' \| \
7547 . : '\(.\)' 2>/dev/null ||
7548 echo X"$as_dir" |
7549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7551 /^X\(\/\/\)$/{ s//\1/; q; }
7552 /^X\(\/\).*/{ s//\1/; q; }
7553 s/.*/./; q'`
7554 done
7555 test ! -n "$as_dirs" || mkdir $as_dirs
7556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7557 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7558 { (exit 1); exit 1; }; }; }
7560 ac_builddir=.
7562 if test "$ac_dir" != .; then
7563 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7564 # A "../" for each directory in $ac_dir_suffix.
7565 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7566 else
7567 ac_dir_suffix= ac_top_builddir=
7570 case $srcdir in
7571 .) # No --srcdir option. We are building in place.
7572 ac_srcdir=.
7573 if test -z "$ac_top_builddir"; then
7574 ac_top_srcdir=.
7575 else
7576 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7577 fi ;;
7578 [\\/]* | ?:[\\/]* ) # Absolute path.
7579 ac_srcdir=$srcdir$ac_dir_suffix;
7580 ac_top_srcdir=$srcdir ;;
7581 *) # Relative path.
7582 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7583 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7584 esac
7586 # Do not use `cd foo && pwd` to compute absolute paths, because
7587 # the directories may not exist.
7588 case `pwd` in
7589 .) ac_abs_builddir="$ac_dir";;
7591 case "$ac_dir" in
7592 .) ac_abs_builddir=`pwd`;;
7593 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7594 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7595 esac;;
7596 esac
7597 case $ac_abs_builddir in
7598 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7600 case ${ac_top_builddir}. in
7601 .) ac_abs_top_builddir=$ac_abs_builddir;;
7602 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7603 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7604 esac;;
7605 esac
7606 case $ac_abs_builddir in
7607 .) ac_abs_srcdir=$ac_srcdir;;
7609 case $ac_srcdir in
7610 .) ac_abs_srcdir=$ac_abs_builddir;;
7611 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7612 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7613 esac;;
7614 esac
7615 case $ac_abs_builddir in
7616 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7618 case $ac_top_srcdir in
7619 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7620 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7621 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7622 esac;;
7623 esac
7626 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7627 echo "$as_me: executing $ac_dest commands" >&6;}
7628 case $ac_dest in
7629 default-1 )
7630 # Only add multilib support code if we just rebuilt the top-level
7631 # Makefile.
7632 case " $CONFIG_FILES " in
7633 *" Makefile "*)
7634 ac_file=Makefile . ${multi_basedir}/config-ml.in
7636 esac ;;
7637 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7638 # Strip MF so we end up with the name of the file.
7639 mf=`echo "$mf" | sed -e 's/:.*$//'`
7640 # Check whether this is an Automake generated Makefile or not.
7641 # We used to match only the files named `Makefile.in', but
7642 # some people rename them; so instead we look at the file content.
7643 # Grep'ing the first line is not enough: some people post-process
7644 # each Makefile.in and add a new line on top of each file to say so.
7645 # So let's grep whole file.
7646 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7647 dirpart=`(dirname "$mf") 2>/dev/null ||
7648 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7649 X"$mf" : 'X\(//\)[^/]' \| \
7650 X"$mf" : 'X\(//\)$' \| \
7651 X"$mf" : 'X\(/\)' \| \
7652 . : '\(.\)' 2>/dev/null ||
7653 echo X"$mf" |
7654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7656 /^X\(\/\/\)$/{ s//\1/; q; }
7657 /^X\(\/\).*/{ s//\1/; q; }
7658 s/.*/./; q'`
7659 else
7660 continue
7662 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7663 # Extract the definition of DEP_FILES from the Makefile without
7664 # running `make'.
7665 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7666 test -z "$DEPDIR" && continue
7667 # When using ansi2knr, U may be empty or an underscore; expand it
7668 U=`sed -n -e '/^U = / s///p' < "$mf"`
7669 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7670 # We invoke sed twice because it is the simplest approach to
7671 # changing $(DEPDIR) to its actual value in the expansion.
7672 for file in `sed -n -e '
7673 /^DEP_FILES = .*\\\\$/ {
7674 s/^DEP_FILES = //
7675 :loop
7676 s/\\\\$//
7679 /\\\\$/ b loop
7682 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7683 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7684 # Make sure the directory exists.
7685 test -f "$dirpart/$file" && continue
7686 fdir=`(dirname "$file") 2>/dev/null ||
7687 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7688 X"$file" : 'X\(//\)[^/]' \| \
7689 X"$file" : 'X\(//\)$' \| \
7690 X"$file" : 'X\(/\)' \| \
7691 . : '\(.\)' 2>/dev/null ||
7692 echo X"$file" |
7693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7695 /^X\(\/\/\)$/{ s//\1/; q; }
7696 /^X\(\/\).*/{ s//\1/; q; }
7697 s/.*/./; q'`
7698 { if $as_mkdir_p; then
7699 mkdir -p $dirpart/$fdir
7700 else
7701 as_dir=$dirpart/$fdir
7702 as_dirs=
7703 while test ! -d "$as_dir"; do
7704 as_dirs="$as_dir $as_dirs"
7705 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7707 X"$as_dir" : 'X\(//\)[^/]' \| \
7708 X"$as_dir" : 'X\(//\)$' \| \
7709 X"$as_dir" : 'X\(/\)' \| \
7710 . : '\(.\)' 2>/dev/null ||
7711 echo X"$as_dir" |
7712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7714 /^X\(\/\/\)$/{ s//\1/; q; }
7715 /^X\(\/\).*/{ s//\1/; q; }
7716 s/.*/./; q'`
7717 done
7718 test ! -n "$as_dirs" || mkdir $as_dirs
7719 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7720 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7721 { (exit 1); exit 1; }; }; }
7723 # echo "creating $dirpart/$file"
7724 echo '# dummy' > "$dirpart/$file"
7725 done
7726 done
7728 include ) test -d include || mkdir include ;;
7729 src )
7730 test -d src || mkdir src
7731 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
7733 esac
7734 done
7735 _ACEOF
7737 cat >>$CONFIG_STATUS <<\_ACEOF
7739 { (exit 0); exit 0; }
7740 _ACEOF
7741 chmod +x $CONFIG_STATUS
7742 ac_clean_files=$ac_clean_files_save
7745 # configure is writing to config.log, and then calls config.status.
7746 # config.status does its own redirection, appending to config.log.
7747 # Unfortunately, on DOS this fails, as config.log is still kept open
7748 # by configure, so config.status won't be able to write to it; its
7749 # output is simply discarded. So we exec the FD to /dev/null,
7750 # effectively closing config.log, so it can be properly (re)opened and
7751 # appended to by config.status. When coming back to configure, we
7752 # need to make the FD available again.
7753 if test "$no_create" != yes; then
7754 ac_cs_success=:
7755 ac_config_status_args=
7756 test "$silent" = yes &&
7757 ac_config_status_args="$ac_config_status_args --quiet"
7758 exec 5>/dev/null
7759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7760 exec 5>>config.log
7761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7762 # would make configure fail if this is the last instruction.
7763 $ac_cs_success || { (exit 1); exit 1; }