3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-static[=PKGS] build static libraries [default=yes]"
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --disable-libtool-lock avoid locking (might break parallel builds)"
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --enable-debug debugging mode"
34 --disable-structs omit code for struct support"
36 --disable-raw-api make the raw api unavailable"
38 --enable-purify-safety purify-safe mode"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=fficonfig.h.in
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='\c' ac_t=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
560 #define __CYGWIN__ __CYGWIN32__
565 if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
580 test "$ac_cv_cygwin" = yes && CYGWIN=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 cat > conftest.$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
594 if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
609 test "$ac_cv_mingw32" = yes && MINGW32=yes
615 echo "configure: warning: ***********************************************************" 1>&2
616 echo "configure: warning: ***********************************************************" 1>&2
617 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
618 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
619 echo "configure: warning: ***********************************************************" 1>&2
620 echo "configure: warning: ***********************************************************" 1>&2
622 # Check whether --enable-multilib or --disable-multilib was given.
623 if test "${enable_multilib+set}" = set; then
624 enableval="$enable_multilib"
625 case "${enableval}" in
628 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
635 if test "${srcdir}" = "."; then
636 if test "${with_target_subdir}" != "."; then
637 libffi_basedir="${srcdir}/${with_multisrctop}.."
639 libffi_basedir="${srcdir}/${with_multisrctop}"
642 libffi_basedir="${srcdir}"
647 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
648 if test -f $ac_dir/install-sh; then
650 ac_install_sh="$ac_aux_dir/install-sh -c"
652 elif test -f $ac_dir/install.sh; then
654 ac_install_sh="$ac_aux_dir/install.sh -c"
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
661 ac_config_guess=$ac_aux_dir/config.guess
662 ac_config_sub=$ac_aux_dir/config.sub
663 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
675 case "$host_alias" in
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
682 *) host_alias=$nonopt ;;
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
693 # Check whether --enable-shared or --disable-shared was given.
694 if test "${enable_shared+set}" = set; then
695 enableval="$enable_shared"
698 yes) enable_shared=yes ;;
699 no) enable_shared=no ;;
702 # Look at the argument we got. We use all the common list separators.
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
704 for pkg in $enableval; do
705 if test "X$pkg" = "X$p"; then
716 # Check whether --enable-static or --disable-static was given.
717 if test "${enable_static+set}" = set; then
718 enableval="$enable_static"
721 yes) enable_static=yes ;;
722 no) enable_static=no ;;
725 # Look at the argument we got. We use all the common list separators.
726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
727 for pkg in $enableval; do
728 if test "X$pkg" = "X$p"; then
739 # Check whether --enable-fast-install or --disable-fast-install was given.
740 if test "${enable_fast_install+set}" = set; then
741 enableval="$enable_fast_install"
744 yes) enable_fast_install=yes ;;
745 no) enable_fast_install=no ;;
747 enable_fast_install=no
748 # Look at the argument we got. We use all the common list separators.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
750 for pkg in $enableval; do
751 if test "X$pkg" = "X$p"; then
752 enable_fast_install=yes
759 enable_fast_install=yes
762 echo $ac_n "checking build system type""... $ac_c" 1>&6
763 echo "configure:764: checking build system type" >&5
766 case "$build_alias" in
769 NONE) build_alias=$host_alias ;;
770 *) build_alias=$nonopt ;;
774 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
775 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo "$ac_t""$build" 1>&6
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
844 set dummy "$ac_dir/$ac_word" "$@"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
918 ac_cv_prog_cc_cross=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.c <<EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
995 if test "$GCC" = yes; then
1002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1003 if test "${with_gnu_ld+set}" = set; then
1004 withval="$with_gnu_ld"
1005 test "$withval" = no || with_gnu_ld=yes
1011 if test "$GCC" = yes; then
1012 # Check if gcc -print-prog-name=ld gives a path.
1013 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1014 echo "configure:1015: checking for ld used by GCC" >&5
1017 # gcc leaves a trailing carriage return which upsets mingw
1018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1023 # Accept absolute paths.
1024 [\\/]* | [A-Za-z]:[\\/]*)
1025 re_direlt='/[^/][^/]*/\.\./'
1026 # Canonicalize the path of ld
1027 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1028 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1029 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1031 test -z "$LD" && LD="$ac_prog"
1034 # If it fails, then pretend we aren't using GCC.
1038 # If it is relative, then search for the first ld in PATH.
1042 elif test "$with_gnu_ld" = yes; then
1043 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1044 echo "configure:1045: checking for GNU ld" >&5
1046 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1047 echo "configure:1048: checking for non-GNU ld" >&5
1049 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -z "$LD"; then
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1057 lt_cv_path_LD="$ac_dir/$ac_prog"
1058 # Check to see if the program is GNU ld. I'd rather use --version,
1059 # but apparently some GNU ld's only accept -v.
1060 # Break only if it was the GNU/non-GNU ld that we prefer.
1061 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1062 test "$with_gnu_ld" != no && break
1064 test "$with_gnu_ld" != yes && break
1070 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1075 if test -n "$LD"; then
1076 echo "$ac_t""$LD" 1>&6
1078 echo "$ac_t""no" 1>&6
1080 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1082 echo "configure:1083: checking if the linker ($LD) is GNU ld" >&5
1083 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1087 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1088 lt_cv_prog_gnu_ld=yes
1090 lt_cv_prog_gnu_ld=no
1094 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1095 with_gnu_ld=$lt_cv_prog_gnu_ld
1098 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $LD option to reload object files" >&5
1100 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 lt_cv_ld_reload_flag='-r'
1106 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1107 reload_flag=$lt_cv_ld_reload_flag
1108 test -n "$reload_flag" && reload_flag=" $reload_flag"
1110 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1111 echo "configure:1112: checking for BSD-compatible nm" >&5
1112 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$NM"; then
1116 # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1120 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1121 test -z "$ac_dir" && ac_dir=.
1122 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1123 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1124 # Check to see if the nm accepts a BSD-compat flag.
1125 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1126 # nm: unknown option "B" ignored
1127 # Tru64's nm complains that /dev/null is an invalid object file
1128 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1129 lt_cv_path_NM="$tmp_nm -B"
1131 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1132 lt_cv_path_NM="$tmp_nm -p"
1135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1136 continue # so that we can try to find one that supports BSD flags
1141 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1146 echo "$ac_t""$NM" 1>&6
1148 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ln -s works" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1154 if ln -s X conftestdata 2>/dev/null
1157 ac_cv_prog_LN_S="ln -s"
1162 LN_S="$ac_cv_prog_LN_S"
1163 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1164 echo "$ac_t""yes" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1170 echo "configure:1171: checking how to recognise dependant libraries" >&5
1171 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 lt_cv_file_magic_cmd='$MAGIC_CMD'
1175 lt_cv_file_magic_test_file=
1176 lt_cv_deplibs_check_method='unknown'
1177 # Need to set the preceding variable on all platforms that support
1178 # interlibrary dependencies.
1179 # 'none' -- dependencies not supported.
1180 # `unknown' -- same as none, but documents that we really don't know.
1181 # 'pass_all' -- all dependencies passed with no checks.
1182 # 'test_compile' -- check by making test program.
1183 # 'file_magic [regex]' -- check by looking for files in library path
1184 # which responds to the $file_magic_cmd with a given egrep regex.
1185 # If you have `file' or equivalent on your system and you're not sure
1186 # whether `pass_all' will *always* work, you probably want this one.
1190 lt_cv_deplibs_check_method=pass_all
1194 lt_cv_deplibs_check_method=pass_all
1198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1199 lt_cv_file_magic_cmd='/usr/bin/file -L'
1200 lt_cv_file_magic_test_file=/shlib/libc.so
1203 cygwin* | mingw* |pw32*)
1204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1205 lt_cv_file_magic_cmd='$OBJDUMP -f'
1208 darwin* | rhapsody*)
1209 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1210 lt_cv_file_magic_cmd=/usr/bin/file
1211 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1218 # Not sure whether the presence of OpenBSD here was a mistake.
1219 # Let's accept both of them until this is cleared up.
1220 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1221 lt_cv_file_magic_cmd=/usr/bin/file
1222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1226 lt_cv_deplibs_check_method=pass_all
1231 lt_cv_deplibs_check_method=pass_all
1235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1236 lt_cv_file_magic_cmd=/usr/bin/file
1237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1243 # this will be overridden with pass_all, but let us keep it just in case
1244 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1248 *-32|*"-32 ") libmagic=32-bit;;
1249 *-n32|*"-n32 ") libmagic=N32;;
1250 *-64|*"-64 ") libmagic=64-bit;;
1251 *) libmagic=never-match;;
1253 # this will be overridden with pass_all, but let us keep it just in case
1254 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1257 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1258 lt_cv_deplibs_check_method=pass_all
1261 # This must be Linux ELF.
1264 alpha* | i*86 | powerpc* | sparc* | ia64* )
1265 lt_cv_deplibs_check_method=pass_all ;;
1267 # glibc up to 2.1.1 does not perform some relocations on ARM
1268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1270 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1275 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1279 lt_cv_file_magic_cmd='/usr/bin/file -L'
1280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1285 lt_cv_file_magic_cmd=/usr/bin/file
1286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1289 osf3* | osf4* | osf5*)
1290 # this will be overridden with pass_all, but let us keep it just in case
1291 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1292 lt_cv_file_magic_test_file=/shlib/libc.so
1293 lt_cv_deplibs_check_method=pass_all
1297 lt_cv_deplibs_check_method=pass_all
1301 lt_cv_deplibs_check_method=pass_all
1302 lt_cv_file_magic_test_file=/lib/libc.so
1305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1306 case $host_vendor in
1308 lt_cv_deplibs_check_method=pass_all
1311 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]'
1312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1320 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1321 file_magic_cmd=$lt_cv_file_magic_cmd
1322 deplibs_check_method=$lt_cv_deplibs_check_method
1324 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1325 echo "configure:1326: checking for object suffix" >&5
1326 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1330 echo 'int i = 1;' > conftest.$ac_ext
1331 if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 for ac_file in conftest.*; do
1335 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1339 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1344 echo "$ac_t""$ac_cv_objext" 1>&6
1345 OBJEXT=$ac_cv_objext
1346 ac_objext=$ac_cv_objext
1350 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1351 echo "configure:1352: checking for executable suffix" >&5
1352 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1359 echo 'int main () { return 0; }' > conftest.$ac_ext
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1362 for file in conftest.*; do
1364 *.c | *.o | *.obj) ;;
1365 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1369 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1372 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1377 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1378 echo "$ac_t""${ac_cv_exeext}" 1>&6
1381 if test $host != $build; then
1382 ac_tool_prefix=${host_alias}-
1387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1389 # Only perform the check for file, if the check method requires it
1390 case $deplibs_check_method in
1392 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1393 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1394 echo "configure:1395: checking for ${ac_tool_prefix}file" >&5
1395 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1406 ac_save_MAGIC_CMD="$MAGIC_CMD"
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="/usr/bin:$PATH"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/${ac_tool_prefix}file; then
1412 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1413 if test -n "$file_magic_test_file"; then
1414 case $deplibs_check_method in
1416 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1419 egrep "$file_magic_regex" > /dev/null; then
1424 *** Warning: the command libtool uses to detect shared libraries,
1425 *** $file_magic_cmd, produces output that libtool cannot recognize.
1426 *** The result is that libtool may fail to recognize shared libraries
1427 *** as such. This will affect the creation of libtool libraries that
1428 *** depend on shared libraries, but programs linked with such libtool
1429 *** libraries will work regardless of this problem. Nevertheless, you
1430 *** may want to report the problem to your system manager and/or to
1431 *** bug-libtool@gnu.org
1441 MAGIC_CMD="$ac_save_MAGIC_CMD"
1446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1447 if test -n "$MAGIC_CMD"; then
1448 echo "$ac_t""$MAGIC_CMD" 1>&6
1450 echo "$ac_t""no" 1>&6
1453 if test -z "$lt_cv_path_MAGIC_CMD"; then
1454 if test -n "$ac_tool_prefix"; then
1455 echo $ac_n "checking for file""... $ac_c" 1>&6
1456 echo "configure:1457: checking for file" >&5
1457 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1468 ac_save_MAGIC_CMD="$MAGIC_CMD"
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1470 ac_dummy="/usr/bin:$PATH"
1471 for ac_dir in $ac_dummy; do
1472 test -z "$ac_dir" && ac_dir=.
1473 if test -f $ac_dir/file; then
1474 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1475 if test -n "$file_magic_test_file"; then
1476 case $deplibs_check_method in
1478 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1481 egrep "$file_magic_regex" > /dev/null; then
1486 *** Warning: the command libtool uses to detect shared libraries,
1487 *** $file_magic_cmd, produces output that libtool cannot recognize.
1488 *** The result is that libtool may fail to recognize shared libraries
1489 *** as such. This will affect the creation of libtool libraries that
1490 *** depend on shared libraries, but programs linked with such libtool
1491 *** libraries will work regardless of this problem. Nevertheless, you
1492 *** may want to report the problem to your system manager and/or to
1493 *** bug-libtool@gnu.org
1503 MAGIC_CMD="$ac_save_MAGIC_CMD"
1508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1509 if test -n "$MAGIC_CMD"; then
1510 echo "$ac_t""$MAGIC_CMD" 1>&6
1512 echo "$ac_t""no" 1>&6
1524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 if test -n "$RANLIB"; then
1532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1546 RANLIB="$ac_cv_prog_RANLIB"
1547 if test -n "$RANLIB"; then
1548 echo "$ac_t""$RANLIB" 1>&6
1550 echo "$ac_t""no" 1>&6
1554 if test -z "$ac_cv_prog_RANLIB"; then
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "ranlib", so it can be a program name with args.
1557 set dummy ranlib; ac_word=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 if test -n "$RANLIB"; then
1564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1568 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 if test -f $ac_dir/$ac_word; then
1571 ac_cv_prog_RANLIB="ranlib"
1576 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1579 RANLIB="$ac_cv_prog_RANLIB"
1580 if test -n "$RANLIB"; then
1581 echo "$ac_t""$RANLIB" 1>&6
1583 echo "$ac_t""no" 1>&6
1591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}strip; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5
1595 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 if test -n "$STRIP"; then
1599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1603 for ac_dir in $ac_dummy; do
1604 test -z "$ac_dir" && ac_dir=.
1605 if test -f $ac_dir/$ac_word; then
1606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1613 STRIP="$ac_cv_prog_STRIP"
1614 if test -n "$STRIP"; then
1615 echo "$ac_t""$STRIP" 1>&6
1617 echo "$ac_t""no" 1>&6
1621 if test -z "$ac_cv_prog_STRIP"; then
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "strip", so it can be a program name with args.
1624 set dummy strip; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 if test -n "$STRIP"; then
1631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1638 ac_cv_prog_STRIP="strip"
1643 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1646 STRIP="$ac_cv_prog_STRIP"
1647 if test -n "$STRIP"; then
1648 echo "$ac_t""$STRIP" 1>&6
1650 echo "$ac_t""no" 1>&6
1659 # Check for any special flags to pass to ltconfig.
1660 libtool_flags="--cache-file=$cache_file"
1661 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1662 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1663 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1664 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1665 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1668 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1669 if test "${enable_libtool_lock+set}" = set; then
1670 enableval="$enable_libtool_lock"
1674 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1675 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1677 # Check whether --with-pic or --without-pic was given.
1678 if test "${with_pic+set}" = set; then
1685 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1686 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1688 # Some flags need to be propagated to the compiler or linker for good
1692 # Find out which ABI we are using.
1693 echo '#line 1694 "configure"' > conftest.$ac_ext
1694 if { (eval echo configure:1695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 case `/usr/bin/file conftest.$ac_objext` in
1711 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1712 SAVE_CFLAGS="$CFLAGS"
1713 CFLAGS="$CFLAGS -belf"
1714 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether the C compiler needs -belf" >&5
1716 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp='$CPP $CPPFLAGS'
1723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling=$ac_cv_prog_cc_cross
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1737 lt_cv_cc_needs_belf=yes
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1742 lt_cv_cc_needs_belf=no
1746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1750 cross_compiling=$ac_cv_prog_cc_cross
1754 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1757 CFLAGS="$SAVE_CFLAGS"
1765 # Save cache, so that ltconfig can load it
1766 cat > confcache <<\EOF
1767 # This file is a shell script that caches the results of configure
1768 # tests run on this system so they can be shared between configure
1769 # scripts and configure runs. It is not useful on other systems.
1770 # If it contains results you don't want to keep, you may remove or edit it.
1772 # By default, configure uses ./config.cache as the cache file,
1773 # creating it if it does not exist already. You can give configure
1774 # the --cache-file=FILE option to use a different cache file; that is
1775 # what configure does when it calls configure scripts in
1776 # subdirectories, so they share the cache.
1777 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1778 # config.status only pays attention to the cache file if you give it the
1779 # --recheck option to rerun configure.
1782 # The following way of writing the cache mishandles newlines in values,
1783 # but we know of no workaround that is simple, portable, and efficient.
1784 # So, don't put newlines in cache variables' values.
1785 # Ultrix sh set writes to stderr and can't be redirected directly,
1786 # and sets the high bit in the cache file unless we assign to the vars.
1788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1790 # `set' does not quote correctly, so add quotes (double-quote substitution
1791 # turns \\\\ into \\, and sed turns \\ into \).
1793 -e "s/'/'\\\\''/g" \
1794 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1797 # `set' quotes correctly as required by POSIX, so do not add quotes.
1798 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1801 if cmp -s $cache_file confcache; then
1804 if test -w $cache_file; then
1805 echo "updating cache $cache_file"
1806 cat confcache > $cache_file
1808 echo "not updating unwritable cache $cache_file"
1814 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1815 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1816 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1817 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1818 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1819 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1820 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1821 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1822 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1823 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1825 # Reload cache, that may have been modified by ltconfig
1826 if test -r "$cache_file"; then
1827 echo "loading cache $cache_file"
1830 echo "creating cache $cache_file"
1835 # This can be used to rebuild libtool when needed
1836 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1838 # Always use our own libtool.
1839 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1841 # Redirect the config.log output again, so that the ltconfig log is not
1842 # clobbered by the next message.
1843 exec 5>>./config.log
1851 # Find a good install program. We prefer a C program (faster),
1852 # so one script is as good as another. But avoid the broken or
1853 # incompatible versions:
1854 # SysV /etc/install, /usr/sbin/install
1855 # SunOS /usr/etc/install
1856 # IRIX /sbin/install
1858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1861 # ./install, which can be erroneously created by make from ./install.sh.
1862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1863 echo "configure:1864: checking for a BSD compatible install" >&5
1864 if test -z "$INSTALL"; then
1865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1869 for ac_dir in $PATH; do
1870 # Account for people who put trailing slashes in PATH elements.
1872 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1874 # OSF1 and SCO ODT 3.0 have their own names for install.
1875 # Don't use installbsd from OSF since it installs stuff as root
1877 for ac_prog in ginstall scoinst install; do
1878 if test -f $ac_dir/$ac_prog; then
1879 if test $ac_prog = install &&
1880 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1884 ac_cv_path_install="$ac_dir/$ac_prog -c"
1895 if test "${ac_cv_path_install+set}" = set; then
1896 INSTALL="$ac_cv_path_install"
1898 # As a last resort, use the slow shell script. We don't cache a
1899 # path for INSTALL within a source directory, because that will
1900 # break other packages using the cache if that directory is
1901 # removed, or if the path is relative.
1902 INSTALL="$ac_install_sh"
1905 echo "$ac_t""$INSTALL" 1>&6
1907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1908 # It thinks the first close brace ends the variable substitution.
1909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1915 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether build environment is sane" >&5
1919 echo timestamp > conftestfile
1920 # Do `set' in a subshell so we don't clobber the current shell's
1921 # arguments. Must try -L first in case configure is actually a
1922 # symlink; some systems play weird games with the mod time of symlinks
1923 # (eg FreeBSD returns the mod time of the symlink's containing
1926 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1927 if test "$*" = "X"; then
1929 set X `ls -t $srcdir/configure conftestfile`
1931 if test "$*" != "X $srcdir/configure conftestfile" \
1932 && test "$*" != "X conftestfile $srcdir/configure"; then
1934 # If neither matched, then we have a broken ls. This can happen
1935 # if, for instance, CONFIG_SHELL is bash and it inherits a
1936 # broken ls alias from the environment. This has actually
1937 # happened. Such a system could not be considered "sane".
1938 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1939 alias in your environment" 1>&2; exit 1; }
1942 test "$2" = conftestfile
1948 { echo "configure: error: newly created file is older than distributed files!
1949 Check your system clock" 1>&2; exit 1; }
1952 echo "$ac_t""yes" 1>&6
1953 if test "$program_transform_name" = s,x,x,; then
1954 program_transform_name=
1956 # Double any \ or $. echo might interpret backslashes.
1957 cat <<\EOF_SED > conftestsed
1958 s,\\,\\\\,g; s,\$,$$,g
1960 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1963 test "$program_prefix" != NONE &&
1964 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1965 # Use a double $ so make ignores it.
1966 test "$program_suffix" != NONE &&
1967 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1969 # sed with no file args requires a program.
1970 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1972 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether ${MAKE-make} sets \${MAKE}" >&5
1974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1975 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftestmake <<\EOF
1980 @echo 'ac_maketemp="${MAKE}"'
1982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1983 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1984 if test -n "$ac_maketemp"; then
1985 eval ac_cv_prog_make_${ac_make}_set=yes
1987 eval ac_cv_prog_make_${ac_make}_set=no
1991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1995 echo "$ac_t""no" 1>&6
1996 SET_MAKE="MAKE=${MAKE-make}"
2004 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2005 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2010 missing_dir=`cd $ac_aux_dir && pwd`
2011 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2012 echo "configure:2013: checking for working aclocal" >&5
2013 # Run test in a subshell; some versions of sh will print an error if
2014 # an executable is not found, even if stderr is redirected.
2015 # Redirect stdin to placate older versions of autoconf. Sigh.
2016 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2018 echo "$ac_t""found" 1>&6
2020 ACLOCAL="$missing_dir/missing aclocal"
2021 echo "$ac_t""missing" 1>&6
2024 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2025 echo "configure:2026: checking for working autoconf" >&5
2026 # Run test in a subshell; some versions of sh will print an error if
2027 # an executable is not found, even if stderr is redirected.
2028 # Redirect stdin to placate older versions of autoconf. Sigh.
2029 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2031 echo "$ac_t""found" 1>&6
2033 AUTOCONF="$missing_dir/missing autoconf"
2034 echo "$ac_t""missing" 1>&6
2037 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2038 echo "configure:2039: checking for working automake" >&5
2039 # Run test in a subshell; some versions of sh will print an error if
2040 # an executable is not found, even if stderr is redirected.
2041 # Redirect stdin to placate older versions of autoconf. Sigh.
2042 if (automake --version) < /dev/null > /dev/null 2>&1; then
2044 echo "$ac_t""found" 1>&6
2046 AUTOMAKE="$missing_dir/missing automake"
2047 echo "$ac_t""missing" 1>&6
2050 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2051 echo "configure:2052: checking for working autoheader" >&5
2052 # Run test in a subshell; some versions of sh will print an error if
2053 # an executable is not found, even if stderr is redirected.
2054 # Redirect stdin to placate older versions of autoconf. Sigh.
2055 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2056 AUTOHEADER=autoheader
2057 echo "$ac_t""found" 1>&6
2059 AUTOHEADER="$missing_dir/missing autoheader"
2060 echo "$ac_t""missing" 1>&6
2063 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2064 echo "configure:2065: checking for working makeinfo" >&5
2065 # Run test in a subshell; some versions of sh will print an error if
2066 # an executable is not found, even if stderr is redirected.
2067 # Redirect stdin to placate older versions of autoconf. Sigh.
2068 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2070 echo "$ac_t""found" 1>&6
2072 MAKEINFO="$missing_dir/missing makeinfo"
2073 echo "$ac_t""missing" 1>&6
2080 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2081 echo "configure:2082: checking for executable suffix" >&5
2082 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2089 echo 'int main () { return 0; }' > conftest.$ac_ext
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2092 for file in conftest.*; do
2094 *.c | *.o | *.obj) ;;
2095 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2099 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2102 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2107 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2108 echo "$ac_t""${ac_cv_exeext}" 1>&6
2111 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2112 echo "configure:2113: checking whether to enable maintainer-specific portions of Makefiles" >&5
2113 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2114 if test "${enable_maintainer_mode+set}" = set; then
2115 enableval="$enable_maintainer_mode"
2116 USE_MAINTAINER_MODE=$enableval
2118 USE_MAINTAINER_MODE=no
2121 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2124 if test $USE_MAINTAINER_MODE = yes; then
2125 MAINTAINER_MODE_TRUE=
2126 MAINTAINER_MODE_FALSE='#'
2128 MAINTAINER_MODE_TRUE='#'
2129 MAINTAINER_MODE_FALSE=
2131 MAINT=$MAINTAINER_MODE_TRUE
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_word" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/$ac_word; then
2158 if test -n "$CC"; then
2159 echo "$ac_t""$CC" 1>&6
2161 echo "$ac_t""no" 1>&6
2164 if test -z "$CC"; then
2165 # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2178 for ac_dir in $ac_dummy; do
2179 test -z "$ac_dir" && ac_dir=.
2180 if test -f $ac_dir/$ac_word; then
2181 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2190 if test $ac_prog_rejected = yes; then
2191 # We found a bogon in the path, so make sure we never use it.
2192 set dummy $ac_cv_prog_CC
2194 if test $# -gt 0; then
2195 # We chose a different compiler from the bogus one.
2196 # However, it has the same basename, so the bogon will be chosen
2197 # first if we set CC to just the basename; use the full file name.
2199 set dummy "$ac_dir/$ac_word" "$@"
2207 if test -n "$CC"; then
2208 echo "$ac_t""$CC" 1>&6
2210 echo "$ac_t""no" 1>&6
2213 if test -z "$CC"; then
2214 case "`uname -s`" in
2216 # Extract the first word of "cl", so it can be a program name with args.
2217 set dummy cl; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2239 if test -n "$CC"; then
2240 echo "$ac_t""$CC" 1>&6
2242 echo "$ac_t""no" 1>&6
2247 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2250 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2251 echo "configure:2252: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2258 cross_compiling=$ac_cv_prog_cc_cross
2260 cat > conftest.$ac_ext << EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2268 ac_cv_prog_cc_works=yes
2269 # If we can't run a trivial program, we are probably using a cross compiler.
2270 if (./conftest; exit) 2>/dev/null; then
2271 ac_cv_prog_cc_cross=no
2273 ac_cv_prog_cc_cross=yes
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 ac_cv_prog_cc_works=no
2282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2286 cross_compiling=$ac_cv_prog_cc_cross
2288 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2289 if test $ac_cv_prog_cc_works = no; then
2290 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2292 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2294 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2295 cross_compiling=$ac_cv_prog_cc_cross
2297 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2298 echo "configure:2299: checking whether we are using GNU C" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.c <<EOF
2307 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2314 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2316 if test $ac_cv_prog_gcc = yes; then
2322 ac_test_CFLAGS="${CFLAGS+set}"
2323 ac_save_CFLAGS="$CFLAGS"
2325 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether ${CC-cc} accepts -g" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 echo 'void f(){}' > conftest.c
2331 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2340 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2341 if test "$ac_test_CFLAGS" = set; then
2342 CFLAGS="$ac_save_CFLAGS"
2343 elif test $ac_cv_prog_cc_g = yes; then
2344 if test "$GCC" = yes; then
2350 if test "$GCC" = yes; then
2365 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2366 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2367 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2368 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2369 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2370 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2371 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2372 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2373 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2374 sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2375 sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2376 sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2377 alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
2378 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2379 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2380 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2381 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2382 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2385 if test $TARGETDIR = unknown; then
2386 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2391 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2400 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2409 if test x$TARGET = xSPARC; then
2418 if test x$TARGET = xX86; then
2427 if test x$TARGET = xX86_WIN32; then
2436 if test x$TARGET = xALPHA; then
2445 if test x$TARGET = xIA64; then
2454 if test x$TARGET = xM68K; then
2463 if test x$TARGET = xPOWERPC; then
2472 if test x$TARGET = xARM; then
2480 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C preprocessor" >&5
2482 # On Suns, sometimes $CPP names a directory.
2483 if test -n "$CPP" && test -d "$CPP"; then
2486 if test -z "$CPP"; then
2487 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2490 # This must be in double quotes, not single quotes, because CPP may get
2491 # substituted into the Makefile and "${CC-cc}" will confuse make.
2493 # On the NeXT, cc -E runs the code through the compiler's parser,
2494 # not just through cpp.
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2511 CPP="${CC-cc} -E -traditional-cpp"
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 CPP="${CC-cc} -nologo -E"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2552 ac_cv_prog_CPP="$CPP"
2554 CPP="$ac_cv_prog_CPP"
2556 ac_cv_prog_CPP="$CPP"
2558 echo "$ac_t""$CPP" 1>&6
2560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2561 echo "configure:2562: checking for ANSI C header files" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2578 ac_cv_header_stdc=yes
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 ac_cv_header_stdc=no
2588 if test $ac_cv_header_stdc = yes; then
2589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "memchr" >/dev/null 2>&1; then
2600 ac_cv_header_stdc=no
2606 if test $ac_cv_header_stdc = yes; then
2607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2614 egrep "free" >/dev/null 2>&1; then
2618 ac_cv_header_stdc=no
2624 if test $ac_cv_header_stdc = yes; then
2625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2626 if test "$cross_compiling" = yes; then
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2636 int main () { int i; for (i = 0; i < 256; i++)
2637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 ac_cv_header_stdc=no
2656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2657 if test $ac_cv_header_stdc = yes; then
2658 cat >> confdefs.h <<\EOF
2659 #define STDC_HEADERS 1
2664 for ac_func in memcpy
2666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_func" >&5
2668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2674 /* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char $ac_func(); below. */
2677 /* Override any gcc2 internal prototype to avoid an error. */
2678 /* We use char because int might match the return type of a gcc2
2679 builtin and then its argument prototype would still apply. */
2684 /* The GNU C library defines this for functions which it implements
2685 to always fail with ENOSYS. Some functions are actually named
2686 something starting with __ and the normal name is an alias. */
2687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2697 eval "ac_cv_func_$ac_func=yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 eval "ac_cv_func_$ac_func=no"
2707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2710 cat >> confdefs.h <<EOF
2711 #define $ac_tr_func 1
2715 echo "$ac_t""no" 1>&6
2719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2720 # for constant arguments. Useless!
2721 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2722 echo "configure:2723: checking for working alloca.h" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2731 char *p = alloca(2 * sizeof(int));
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2736 ac_cv_header_alloca_h=yes
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2741 ac_cv_header_alloca_h=no
2746 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2747 if test $ac_cv_header_alloca_h = yes; then
2748 cat >> confdefs.h <<\EOF
2749 #define HAVE_ALLOCA_H 1
2754 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2755 echo "configure:2756: checking for alloca" >&5
2756 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2764 # define alloca __builtin_alloca
2767 # include <malloc.h>
2768 # define alloca _alloca
2771 # include <alloca.h>
2776 # ifndef alloca /* predefined by HP cc +Olibcalls */
2785 char *p = (char *) alloca(1);
2788 if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790 ac_cv_func_alloca_works=yes
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2795 ac_cv_func_alloca_works=no
2800 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2801 if test $ac_cv_func_alloca_works = yes; then
2802 cat >> confdefs.h <<\EOF
2803 #define HAVE_ALLOCA 1
2808 if test $ac_cv_func_alloca_works = no; then
2809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2810 # that cause trouble. Some versions do not even contain alloca or
2811 # contain a buggy version. If you still want to use their alloca,
2812 # use ar to extract alloca.o from them instead of compiling alloca.c.
2813 ALLOCA=alloca.${ac_objext}
2814 cat >> confdefs.h <<\EOF
2819 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2820 echo "configure:2821: checking whether alloca needs Cray hooks" >&5
2821 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #if defined(CRAY) && ! defined(CRAY2)
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "webecray" >/dev/null 2>&1; then
2846 echo "$ac_t""$ac_cv_os_cray" 1>&6
2847 if test $ac_cv_os_cray = yes; then
2848 for ac_func in _getb67 GETB67 getb67; do
2849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_func" >&5
2851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 /* System header to define __stub macros and hopefully few prototypes,
2858 which can conflict with char $ac_func(); below. */
2860 /* Override any gcc2 internal prototype to avoid an error. */
2861 /* We use char because int might match the return type of a gcc2
2862 builtin and then its argument prototype would still apply. */
2867 /* The GNU C library defines this for functions which it implements
2868 to always fail with ENOSYS. Some functions are actually named
2869 something starting with __ and the normal name is an alias. */
2870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2878 if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2880 eval "ac_cv_func_$ac_func=yes"
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2885 eval "ac_cv_func_$ac_func=no"
2890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 cat >> confdefs.h <<EOF
2893 #define CRAY_STACKSEG_END $ac_func
2898 echo "$ac_t""no" 1>&6
2904 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2905 echo "configure:2906: checking stack direction for C alloca" >&5
2906 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test "$cross_compiling" = yes; then
2910 ac_cv_c_stack_direction=0
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 find_stack_direction ()
2917 static char *addr = 0;
2922 return find_stack_direction ();
2925 return (&dummy > addr) ? 1 : -1;
2929 exit (find_stack_direction() < 0);
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2934 ac_cv_c_stack_direction=1
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 ac_cv_c_stack_direction=-1
2946 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2947 cat >> confdefs.h <<EOF
2948 #define STACK_DIRECTION $ac_cv_c_stack_direction
2954 echo $ac_n "checking size of short""... $ac_c" 1>&6
2955 echo "configure:2956: checking size of short" >&5
2956 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 if test "$cross_compiling" = yes; then
2960 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2968 FILE *f=fopen("conftestval", "w");
2970 fprintf(f, "%d\n", sizeof(short));
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2976 ac_cv_sizeof_short=`cat conftestval`
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 ac_cv_sizeof_short=0
2987 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2988 cat >> confdefs.h <<EOF
2989 #define SIZEOF_SHORT $ac_cv_sizeof_short
2993 echo $ac_n "checking size of int""... $ac_c" 1>&6
2994 echo "configure:2995: checking size of int" >&5
2995 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 if test "$cross_compiling" = yes; then
2999 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3007 FILE *f=fopen("conftestval", "w");
3009 fprintf(f, "%d\n", sizeof(int));
3013 if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3015 ac_cv_sizeof_int=`cat conftestval`
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3026 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3027 cat >> confdefs.h <<EOF
3028 #define SIZEOF_INT $ac_cv_sizeof_int
3032 echo $ac_n "checking size of long""... $ac_c" 1>&6
3033 echo "configure:3034: checking size of long" >&5
3034 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 if test "$cross_compiling" = yes; then
3038 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3046 FILE *f=fopen("conftestval", "w");
3048 fprintf(f, "%d\n", sizeof(long));
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3054 ac_cv_sizeof_long=`cat conftestval`
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3065 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3066 cat >> confdefs.h <<EOF
3067 #define SIZEOF_LONG $ac_cv_sizeof_long
3071 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3072 echo "configure:3073: checking size of long long" >&5
3073 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 if test "$cross_compiling" = yes; then
3077 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3085 FILE *f=fopen("conftestval", "w");
3087 fprintf(f, "%d\n", sizeof(long long));
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3093 ac_cv_sizeof_long_long=`cat conftestval`
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 ac_cv_sizeof_long_long=0
3104 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3105 cat >> confdefs.h <<EOF
3106 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3110 echo $ac_n "checking size of float""... $ac_c" 1>&6
3111 echo "configure:3112: checking size of float" >&5
3112 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 if test "$cross_compiling" = yes; then
3116 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3124 FILE *f=fopen("conftestval", "w");
3126 fprintf(f, "%d\n", sizeof(float));
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3132 ac_cv_sizeof_float=`cat conftestval`
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 ac_cv_sizeof_float=0
3143 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3144 cat >> confdefs.h <<EOF
3145 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3149 echo $ac_n "checking size of double""... $ac_c" 1>&6
3150 echo "configure:3151: checking size of double" >&5
3151 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 if test "$cross_compiling" = yes; then
3155 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3163 FILE *f=fopen("conftestval", "w");
3165 fprintf(f, "%d\n", sizeof(double));
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3171 ac_cv_sizeof_double=`cat conftestval`
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3176 ac_cv_sizeof_double=0
3182 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3183 cat >> confdefs.h <<EOF
3184 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3188 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3189 echo "configure:3190: checking size of long double" >&5
3190 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 if test "$cross_compiling" = yes; then
3194 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3202 FILE *f=fopen("conftestval", "w");
3204 fprintf(f, "%d\n", sizeof(long double));
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3210 ac_cv_sizeof_long_double=`cat conftestval`
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 ac_cv_sizeof_long_double=0
3221 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3222 cat >> confdefs.h <<EOF
3223 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3228 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3229 echo "configure:3230: checking size of void *" >&5
3230 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 if test "$cross_compiling" = yes; then
3234 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3242 FILE *f=fopen("conftestval", "w");
3244 fprintf(f, "%d\n", sizeof(void *));
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3250 ac_cv_sizeof_void_p=`cat conftestval`
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 ac_cv_sizeof_void_p=0
3261 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3262 cat >> confdefs.h <<EOF
3263 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3267 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether byte ordering is bigendian" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 ac_cv_c_bigendian=unknown
3273 # See if sys/param.h defines the BYTE_ORDER macro.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3278 #include <sys/param.h>
3281 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3286 if { (eval echo configure:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3288 # It does; now see whether it defined to BIG_ENDIAN or not.
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3293 #include <sys/param.h>
3296 #if BYTE_ORDER != BIG_ENDIAN
3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3303 ac_cv_c_bigendian=yes
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3308 ac_cv_c_bigendian=no
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3316 if test $ac_cv_c_bigendian = unknown; then
3317 if test "$cross_compiling" = yes; then
3318 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3324 /* Are we little or big endian? From Harbison&Steele. */
3328 char c[sizeof (long)];
3331 exit (u.c[sizeof (long) - 1] == 1);
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3336 ac_cv_c_bigendian=no
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 ac_cv_c_bigendian=yes
3349 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3350 if test $ac_cv_c_bigendian = yes; then
3351 cat >> confdefs.h <<\EOF
3352 #define WORDS_BIGENDIAN 1
3363 # Check whether --enable-debug or --disable-debug was given.
3364 if test "${enable_debug+set}" = set; then
3365 enableval="$enable_debug"
3366 cat >> confdefs.h <<\EOF
3373 # Check whether --enable-debug or --disable-debug was given.
3374 if test "${enable_debug+set}" = set; then
3375 enableval="$enable_debug"
3376 cat >> confdefs.h <<\EOF
3377 #define FFI_NO_STRUCTS 1
3383 # Check whether --enable-debug or --disable-debug was given.
3384 if test "${enable_debug+set}" = set; then
3385 enableval="$enable_debug"
3386 cat >> confdefs.h <<\EOF
3387 #define FFI_NO_RAW_API 1
3393 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3394 if test "${enable_purify_safety+set}" = set; then
3395 enableval="$enable_purify_safety"
3396 cat >> confdefs.h <<\EOF
3397 #define USING_PURIFY 1
3405 if test -z "$with_cross_host"; then
3407 USE_LIBDIR_FALSE='#'
3413 if test "${multilib}" = "yes"; then
3414 multilib_arg="--enable-multilib"
3420 cat > confcache <<\EOF
3421 # This file is a shell script that caches the results of configure
3422 # tests run on this system so they can be shared between configure
3423 # scripts and configure runs. It is not useful on other systems.
3424 # If it contains results you don't want to keep, you may remove or edit it.
3426 # By default, configure uses ./config.cache as the cache file,
3427 # creating it if it does not exist already. You can give configure
3428 # the --cache-file=FILE option to use a different cache file; that is
3429 # what configure does when it calls configure scripts in
3430 # subdirectories, so they share the cache.
3431 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3432 # config.status only pays attention to the cache file if you give it the
3433 # --recheck option to rerun configure.
3436 # The following way of writing the cache mishandles newlines in values,
3437 # but we know of no workaround that is simple, portable, and efficient.
3438 # So, don't put newlines in cache variables' values.
3439 # Ultrix sh set writes to stderr and can't be redirected directly,
3440 # and sets the high bit in the cache file unless we assign to the vars.
3442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3444 # `set' does not quote correctly, so add quotes (double-quote substitution
3445 # turns \\\\ into \\, and sed turns \\ into \).
3447 -e "s/'/'\\\\''/g" \
3448 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3451 # `set' quotes correctly as required by POSIX, so do not add quotes.
3452 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3455 if cmp -s $cache_file confcache; then
3458 if test -w $cache_file; then
3459 echo "updating cache $cache_file"
3460 cat confcache > $cache_file
3462 echo "not updating unwritable cache $cache_file"
3467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3470 # Let make expand exec_prefix.
3471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3473 # Any assignment to VPATH causes Sun make to only execute
3474 # the first set of double-colon rules, so remove it if not needed.
3475 # If there is a colon in the path, we need to keep it.
3476 if test "x$srcdir" = x.; then
3477 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3480 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3482 DEFS=-DHAVE_CONFIG_H
3484 # Without the "./", some shells look in PATH for config.status.
3485 : ${CONFIG_STATUS=./config.status}
3487 echo creating $CONFIG_STATUS
3488 rm -f $CONFIG_STATUS
3489 cat > $CONFIG_STATUS <<EOF
3491 # Generated automatically by configure.
3492 # Run this file to recreate the current configuration.
3493 # This directory was configured as follows,
3494 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3496 # $0 $ac_configure_args
3498 # Compiler output produced by configure, useful for debugging
3499 # configure, is in ./config.log if it exists.
3501 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3504 case "\$ac_option" in
3505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3506 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3507 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3508 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3509 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3511 -help | --help | --hel | --he | --h)
3512 echo "\$ac_cs_usage"; exit 0 ;;
3513 *) echo "\$ac_cs_usage"; exit 1 ;;
3517 ac_given_srcdir=$srcdir
3518 ac_given_INSTALL="$INSTALL"
3520 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3522 cat >> $CONFIG_STATUS <<EOF
3524 # Protect against being on the right side of a sed subst in config.status.
3525 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3526 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3530 s%@CFLAGS@%$CFLAGS%g
3531 s%@CPPFLAGS@%$CPPFLAGS%g
3532 s%@CXXFLAGS@%$CXXFLAGS%g
3533 s%@FFLAGS@%$FFLAGS%g
3535 s%@LDFLAGS@%$LDFLAGS%g
3537 s%@exec_prefix@%$exec_prefix%g
3538 s%@prefix@%$prefix%g
3539 s%@program_transform_name@%$program_transform_name%g
3540 s%@bindir@%$bindir%g
3541 s%@sbindir@%$sbindir%g
3542 s%@libexecdir@%$libexecdir%g
3543 s%@datadir@%$datadir%g
3544 s%@sysconfdir@%$sysconfdir%g
3545 s%@sharedstatedir@%$sharedstatedir%g
3546 s%@localstatedir@%$localstatedir%g
3547 s%@libdir@%$libdir%g
3548 s%@includedir@%$includedir%g
3549 s%@oldincludedir@%$oldincludedir%g
3550 s%@infodir@%$infodir%g
3551 s%@mandir@%$mandir%g
3552 s%@libffi_basedir@%$libffi_basedir%g
3554 s%@host_alias@%$host_alias%g
3555 s%@host_cpu@%$host_cpu%g
3556 s%@host_vendor@%$host_vendor%g
3557 s%@host_os@%$host_os%g
3559 s%@build_alias@%$build_alias%g
3560 s%@build_cpu@%$build_cpu%g
3561 s%@build_vendor@%$build_vendor%g
3562 s%@build_os@%$build_os%g
3565 s%@OBJEXT@%$OBJEXT%g
3566 s%@EXEEXT@%$EXEEXT%g
3567 s%@RANLIB@%$RANLIB%g
3569 s%@LIBTOOL@%$LIBTOOL%g
3570 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3571 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3572 s%@INSTALL_DATA@%$INSTALL_DATA%g
3573 s%@PACKAGE@%$PACKAGE%g
3574 s%@VERSION@%$VERSION%g
3575 s%@ACLOCAL@%$ACLOCAL%g
3576 s%@AUTOCONF@%$AUTOCONF%g
3577 s%@AUTOMAKE@%$AUTOMAKE%g
3578 s%@AUTOHEADER@%$AUTOHEADER%g
3579 s%@MAKEINFO@%$MAKEINFO%g
3580 s%@SET_MAKE@%$SET_MAKE%g
3581 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3582 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3584 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3585 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3586 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3587 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3588 s%@SPARC_TRUE@%$SPARC_TRUE%g
3589 s%@SPARC_FALSE@%$SPARC_FALSE%g
3590 s%@X86_TRUE@%$X86_TRUE%g
3591 s%@X86_FALSE@%$X86_FALSE%g
3592 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3593 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3594 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3595 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3596 s%@IA64_TRUE@%$IA64_TRUE%g
3597 s%@IA64_FALSE@%$IA64_FALSE%g
3598 s%@M68K_TRUE@%$M68K_TRUE%g
3599 s%@M68K_FALSE@%$M68K_FALSE%g
3600 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3601 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3602 s%@ARM_TRUE@%$ARM_TRUE%g
3603 s%@ARM_FALSE@%$ARM_FALSE%g
3605 s%@ALLOCA@%$ALLOCA%g
3606 s%@TARGET@%$TARGET%g
3607 s%@TARGETDIR@%$TARGETDIR%g
3608 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3609 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3614 cat >> $CONFIG_STATUS <<\EOF
3616 # Split the substitutions into bite-sized pieces for seds with
3617 # small command number limits, like on Digital OSF/1 and HP-UX.
3618 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3619 ac_file=1 # Number of current file.
3620 ac_beg=1 # First line for current file.
3621 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3624 while $ac_more_lines; do
3625 if test $ac_beg -gt 1; then
3626 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3628 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3630 if test ! -s conftest.s$ac_file; then
3632 rm -f conftest.s$ac_file
3634 if test -z "$ac_sed_cmds"; then
3635 ac_sed_cmds="sed -f conftest.s$ac_file"
3637 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3639 ac_file=`expr $ac_file + 1`
3641 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3644 if test -z "$ac_sed_cmds"; then
3649 cat >> $CONFIG_STATUS <<EOF
3651 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3653 cat >> $CONFIG_STATUS <<\EOF
3654 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3657 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3658 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3659 *) ac_file_in="${ac_file}.in" ;;
3662 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3664 # Remove last slash and all that follows it. Not all systems have dirname.
3665 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3666 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3667 # The file is in a subdirectory.
3668 test ! -d "$ac_dir" && mkdir "$ac_dir"
3669 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3670 # A "../" for each directory in $ac_dir_suffix.
3671 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3673 ac_dir_suffix= ac_dots=
3676 case "$ac_given_srcdir" in
3678 if test -z "$ac_dots"; then top_srcdir=.
3679 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3680 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3682 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3683 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3686 case "$ac_given_INSTALL" in
3687 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3688 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3691 echo creating "$ac_file"
3693 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3695 *Makefile*) ac_comsub="1i\\
3696 # $configure_input" ;;
3700 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3702 s%@configure_input@%$configure_input%g
3703 s%@srcdir@%$srcdir%g
3704 s%@top_srcdir@%$top_srcdir%g
3705 s%@INSTALL@%$INSTALL%g
3706 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3710 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3711 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3713 # ac_d sets the value in "#define NAME VALUE" lines.
3714 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3715 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3718 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3719 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3720 ac_uB='\([ ]\)%\1#\2define\3'
3723 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3724 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3725 ac_eB='$%\1#\2define\3'
3729 if test "${CONFIG_HEADERS+set}" != set; then
3731 cat >> $CONFIG_STATUS <<EOF
3732 CONFIG_HEADERS="fficonfig.h"
3734 cat >> $CONFIG_STATUS <<\EOF
3736 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3741 *) ac_file_in="${ac_file}.in" ;;
3744 echo creating $ac_file
3746 rm -f conftest.frag conftest.in conftest.out
3747 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3748 cat $ac_file_inputs > conftest.in
3752 # Transform confdefs.h into a sed script conftest.vals that substitutes
3753 # the proper values into config.h.in to produce config.h. And first:
3754 # Protect against being on the right side of a sed subst in config.status.
3755 # Protect against being in an unquoted here document in config.status.
3757 cat > conftest.hdr <<\EOF
3760 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3764 sed -n -f conftest.hdr confdefs.h > conftest.vals
3767 # This sed command replaces #undef with comments. This is necessary, for
3768 # example, in the case of _POSIX_SOURCE, which is predefined and required
3769 # on some systems where configure will not decide to define it.
3770 cat >> conftest.vals <<\EOF
3771 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3774 # Break up conftest.vals because some shells have a limit on
3775 # the size of here documents, and old seds have small limits too.
3780 ac_lines=`grep -c . conftest.vals`
3781 # grep -c gives empty output for an empty file on some AIX systems.
3782 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3783 # Write a limited-size here document to conftest.frag.
3784 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3785 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3787 sed -f conftest.frag conftest.in > conftest.out
3789 mv conftest.out conftest.in
3791 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3793 mv conftest.tail conftest.vals
3797 cat >> $CONFIG_STATUS <<\EOF
3798 rm -f conftest.frag conftest.h
3799 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3800 cat conftest.in >> conftest.h
3802 if cmp -s $ac_file conftest.h 2>/dev/null; then
3803 echo "$ac_file is unchanged"
3806 # Remove last slash and all that follows it. Not all systems have dirname.
3807 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3808 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3809 # The file is in a subdirectory.
3810 test ! -d "$ac_dir" && mkdir "$ac_dir"
3813 mv conftest.h $ac_file
3818 cat >> $CONFIG_STATUS <<EOF
3823 with_multisubdir=${with_multisubdir}
3824 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3825 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3826 libffi_basedir=${libffi_basedir}
3829 test ! -d include && mkdir include
3830 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3831 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3832 echo fficonfig.h unchanged
3834 echo Moving fficonfig.h to include/fficonfig.h
3835 cp fficonfig.h include/fficonfig.h
3839 cat >> $CONFIG_STATUS <<\EOF
3840 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3842 if test -n "$CONFIG_FILES"; then
3843 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3848 chmod +x $CONFIG_STATUS
3849 rm -fr confdefs* $ac_clean_files
3850 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3853 # Make target subdirectories if required.
3854 test -d src || mkdir src
3855 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}