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-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --enable-debug debugging mode"
32 --disable-structs omit code for struct support"
34 --disable-raw-api make the raw api unavailable"
36 --enable-purify-safety purify-safe mode"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
342 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
343 sitefile
="$ac_optarg" ;;
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file
=fficonfig.h.
in
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE
="$sitefile"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
562 echo "configure: warning: ***********************************************************" 1>&2
563 echo "configure: warning: ***********************************************************" 1>&2
564 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
565 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
566 echo "configure: warning: ***********************************************************" 1>&2
567 echo "configure: warning: ***********************************************************" 1>&2
569 # Check whether --enable-multilib or --disable-multilib was given.
570 if test "${enable_multilib+set}" = set; then
571 enableval
="$enable_multilib"
572 case "${enableval}" in
575 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
582 if test "${srcdir}" = "."; then
583 if test "${with_target_subdir}" != "."; then
584 libffi_basedir
="${srcdir}/${with_multisrctop}.."
586 libffi_basedir
="${srcdir}/${with_multisrctop}"
589 libffi_basedir
="${srcdir}"
594 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
595 if test -f $ac_dir/install-sh
; then
597 ac_install_sh
="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh
; then
601 ac_install_sh
="$ac_aux_dir/install.sh -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608 ac_config_guess
=$ac_aux_dir/config.guess
609 ac_config_sub
=$ac_aux_dir/config.sub
610 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
613 # Make sure we can run config.sub.
614 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 echo $ac_n "checking host system type""... $ac_c" 1>&6
619 echo "configure:620: checking host system type" >&5
622 case "$host_alias" in
626 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
627 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 *) host_alias
=$nonopt ;;
633 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
634 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$host" 1>&6
640 # Find a good install program. We prefer a C program (faster),
641 # so one script is as good as another. But avoid the broken or
642 # incompatible versions:
643 # SysV /etc/install, /usr/sbin/install
644 # SunOS /usr/etc/install
647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
650 # ./install, which can be erroneously created by make from ./install.sh.
651 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
652 echo "configure:653: checking for a BSD compatible install" >&5
653 if test -z "$INSTALL"; then
654 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
658 for ac_dir
in $PATH; do
659 # Account for people who put trailing slashes in PATH elements.
661 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
663 # OSF1 and SCO ODT 3.0 have their own names for install.
664 # Don't use installbsd from OSF since it installs stuff as root
666 for ac_prog
in ginstall scoinst
install; do
667 if test -f $ac_dir/$ac_prog; then
668 if test $ac_prog = install &&
669 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
670 # AIX install. It has an incompatible calling convention.
673 ac_cv_path_install
="$ac_dir/$ac_prog -c"
684 if test "${ac_cv_path_install+set}" = set; then
685 INSTALL
="$ac_cv_path_install"
687 # As a last resort, use the slow shell script. We don't cache a
688 # path for INSTALL within a source directory, because that will
689 # break other packages using the cache if that directory is
690 # removed, or if the path is relative.
691 INSTALL
="$ac_install_sh"
694 echo "$ac_t""$INSTALL" 1>&6
696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
697 # It thinks the first close brace ends the variable substitution.
698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
704 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
705 echo "configure:706: checking whether build environment is sane" >&5
708 echo timestamp
> conftestfile
709 # Do `set' in a subshell so we don't clobber the current shell's
710 # arguments. Must try -L first in case configure is actually a
711 # symlink; some systems play weird games with the mod time of symlinks
712 # (eg FreeBSD returns the mod time of the symlink's containing
715 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
716 if test "$*" = "X"; then
718 set X
`ls -t $srcdir/configure conftestfile`
720 if test "$*" != "X $srcdir/configure conftestfile" \
721 && test "$*" != "X conftestfile $srcdir/configure"; then
723 # If neither matched, then we have a broken ls. This can happen
724 # if, for instance, CONFIG_SHELL is bash and it inherits a
725 # broken ls alias from the environment. This has actually
726 # happened. Such a system could not be considered "sane".
727 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
728 alias in your environment" 1>&2; exit 1; }
731 test "$2" = conftestfile
737 { echo "configure: error: newly created file is older than distributed files!
738 Check your system clock" 1>&2; exit 1; }
741 echo "$ac_t""yes" 1>&6
742 if test "$program_transform_name" = s
,x
,x
,; then
743 program_transform_name
=
745 # Double any \ or $. echo might interpret backslashes.
746 cat <<\EOF_SED
> conftestsed
747 s
,\\,\\\\,g
; s
,\$
,$$
,g
749 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
752 test "$program_prefix" != NONE
&&
753 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
754 # Use a double $ so make ignores it.
755 test "$program_suffix" != NONE
&&
756 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
758 # sed with no file args requires a program.
759 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${MAKE-make} sets \${MAKE}" >&5
763 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
764 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftestmake
<<\EOF
769 @
echo 'ac_maketemp="${MAKE}"'
771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
772 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
773 if test -n "$ac_maketemp"; then
774 eval ac_cv_prog_make_
${ac_make}_set
=yes
776 eval ac_cv_prog_make_
${ac_make}_set
=no
780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
781 echo "$ac_t""yes" 1>&6
784 echo "$ac_t""no" 1>&6
785 SET_MAKE
="MAKE=${MAKE-make}"
793 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
794 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
799 missing_dir
=`cd $ac_aux_dir && pwd`
800 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
801 echo "configure:802: checking for working aclocal" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
807 echo "$ac_t""found" 1>&6
809 ACLOCAL
="$missing_dir/missing aclocal"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoconf" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOCONF
="$missing_dir/missing autoconf"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working automake""... $ac_c" 1>&6
827 echo "configure:828: checking for working automake" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
833 echo "$ac_t""found" 1>&6
835 AUTOMAKE
="$missing_dir/missing automake"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
840 echo "configure:841: checking for working autoheader" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
845 AUTOHEADER
=autoheader
846 echo "$ac_t""found" 1>&6
848 AUTOHEADER
="$missing_dir/missing autoheader"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
853 echo "configure:854: checking for working makeinfo" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
859 echo "$ac_t""found" 1>&6
861 MAKEINFO
="$missing_dir/missing makeinfo"
862 echo "$ac_t""missing" 1>&6
867 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
868 echo "configure:869: checking for Cygwin environment" >&5
869 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 cat > conftest.
$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
879 #define __CYGWIN__ __CYGWIN32__
884 if { (eval echo configure
:885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
888 echo "configure: failed program was:" >&5
889 cat conftest.
$ac_ext >&5
897 echo "$ac_t""$ac_cv_cygwin" 1>&6
899 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
900 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
901 echo "configure:902: checking for mingw32 environment" >&5
902 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftest.
$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
913 if { (eval echo configure
:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
917 echo "configure: failed program was:" >&5
918 cat conftest.
$ac_ext >&5
926 echo "$ac_t""$ac_cv_mingw32" 1>&6
928 test "$ac_cv_mingw32" = yes && MINGW32
=yes
931 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
932 echo "configure:933: checking for executable suffix" >&5
933 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
940 echo 'int main () { return 0; }' > conftest.
$ac_ext
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
943 for file in conftest.
*; do
945 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
946 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
950 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
953 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
958 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
959 echo "$ac_t""${ac_cv_exeext}" 1>&6
962 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
963 echo "configure:964: checking whether to enable maintainer-specific portions of Makefiles" >&5
964 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
965 if test "${enable_maintainer_mode+set}" = set; then
966 enableval
="$enable_maintainer_mode"
967 USE_MAINTAINER_MODE
=$enableval
969 USE_MAINTAINER_MODE
=no
972 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
975 if test $USE_MAINTAINER_MODE = yes; then
976 MAINTAINER_MODE_TRUE
=
977 MAINTAINER_MODE_FALSE
='#'
979 MAINTAINER_MODE_TRUE
='#'
980 MAINTAINER_MODE_FALSE
=
982 MAINT
=$MAINTAINER_MODE_TRUE
986 # Extract the first word of "gcc", so it can be a program name with args.
987 set dummy gcc
; ac_word
=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$CC"; then
994 ac_cv_prog_CC
="$CC" # Let the user override the test.
996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
998 for ac_dir
in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir
=.
1000 if test -f $ac_dir/$ac_word; then
1009 if test -n "$CC"; then
1010 echo "$ac_t""$CC" 1>&6
1012 echo "$ac_t""no" 1>&6
1015 if test -z "$CC"; then
1016 # Extract the first word of "cc", so it can be a program name with args.
1017 set dummy cc
; ac_word
=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 if test -n "$CC"; then
1024 ac_cv_prog_CC
="$CC" # Let the user override the test.
1026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1029 for ac_dir
in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1033 ac_prog_rejected
=yes
1041 if test $ac_prog_rejected = yes; then
1042 # We found a bogon in the path, so make sure we never use it.
1043 set dummy
$ac_cv_prog_CC
1045 if test $# -gt 0; then
1046 # We chose a different compiler from the bogus one.
1047 # However, it has the same basename, so the bogon will be chosen
1048 # first if we set CC to just the basename; use the full file name.
1050 set dummy
"$ac_dir/$ac_word" "$@"
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1064 if test -z "$CC"; then
1065 case "`uname -s`" in
1067 # Extract the first word of "cl", so it can be a program name with args.
1068 set dummy cl
; ac_word
=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC
="$CC" # Let the user override the test.
1077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1079 for ac_dir
in $ac_dummy; do
1080 test -z "$ac_dir" && ac_dir
=.
1081 if test -f $ac_dir/$ac_word; then
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1093 echo "$ac_t""no" 1>&6
1098 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1101 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1106 ac_cpp
='$CPP $CPPFLAGS'
1107 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1108 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1109 cross_compiling
=$ac_cv_prog_cc_cross
1111 cat > conftest.
$ac_ext << EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1118 if { (eval echo configure
:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1119 ac_cv_prog_cc_works
=yes
1120 # If we can't run a trivial program, we are probably using a cross compiler.
1121 if (.
/conftest
; exit) 2>/dev
/null
; then
1122 ac_cv_prog_cc_cross
=no
1124 ac_cv_prog_cc_cross
=yes
1127 echo "configure: failed program was:" >&5
1128 cat conftest.
$ac_ext >&5
1129 ac_cv_prog_cc_works
=no
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp
='$CPP $CPPFLAGS'
1135 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1137 cross_compiling
=$ac_cv_prog_cc_cross
1139 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1140 if test $ac_cv_prog_cc_works = no
; then
1141 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1143 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1145 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1146 cross_compiling
=$ac_cv_prog_cc_cross
1148 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether we are using GNU C" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftest.c
<<EOF
1158 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1173 ac_test_CFLAGS
="${CFLAGS+set}"
1174 ac_save_CFLAGS
="$CFLAGS"
1176 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether ${CC-cc} accepts -g" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 echo 'void f(){}' > conftest.c
1182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1191 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1192 if test "$ac_test_CFLAGS" = set; then
1193 CFLAGS
="$ac_save_CFLAGS"
1194 elif test $ac_cv_prog_cc_g = yes; then
1195 if test "$GCC" = yes; then
1201 if test "$GCC" = yes; then
1208 # Check whether --enable-shared or --disable-shared was given.
1209 if test "${enable_shared+set}" = set; then
1210 enableval
="$enable_shared"
1211 p
=${PACKAGE-default}
1212 case "$enableval" in
1213 yes) enable_shared
=yes ;;
1214 no
) enable_shared
=no
;;
1217 # Look at the argument we got. We use all the common list separators.
1218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1219 for pkg
in $enableval; do
1220 if test "X$pkg" = "X$p"; then
1231 # Check whether --enable-static or --disable-static was given.
1232 if test "${enable_static+set}" = set; then
1233 enableval
="$enable_static"
1234 p
=${PACKAGE-default}
1235 case "$enableval" in
1236 yes) enable_static
=yes ;;
1237 no
) enable_static
=no
;;
1240 # Look at the argument we got. We use all the common list separators.
1241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1242 for pkg
in $enableval; do
1243 if test "X$pkg" = "X$p"; then
1254 # Check whether --enable-fast-install or --disable-fast-install was given.
1255 if test "${enable_fast_install+set}" = set; then
1256 enableval
="$enable_fast_install"
1257 p
=${PACKAGE-default}
1258 case "$enableval" in
1259 yes) enable_fast_install
=yes ;;
1260 no
) enable_fast_install
=no
;;
1262 enable_fast_install
=no
1263 # Look at the argument we got. We use all the common list separators.
1264 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1265 for pkg
in $enableval; do
1266 if test "X$pkg" = "X$p"; then
1267 enable_fast_install
=yes
1274 enable_fast_install
=yes
1277 echo $ac_n "checking build system type""... $ac_c" 1>&6
1278 echo "configure:1279: checking build system type" >&5
1281 case "$build_alias" in
1284 NONE
) build_alias
=$host_alias ;;
1285 *) build_alias
=$nonopt ;;
1289 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1290 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 echo "$ac_t""$build" 1>&6
1295 # Extract the first word of "ranlib", so it can be a program name with args.
1296 set dummy ranlib
; ac_word
=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1305 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1307 for ac_dir
in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir
=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB
="ranlib"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1318 RANLIB
="$ac_cv_prog_RANLIB"
1319 if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1322 echo "$ac_t""no" 1>&6
1325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1326 if test "${with_gnu_ld+set}" = set; then
1327 withval
="$with_gnu_ld"
1328 test "$withval" = no || with_gnu_ld
=yes
1334 if test "$ac_cv_prog_gcc" = yes; then
1335 # Check if gcc -print-prog-name=ld gives a path.
1336 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1337 echo "configure:1338: checking for ld used by GCC" >&5
1338 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1340 # Accept absolute paths.
1341 [\\/]* |
[A-Za-z
]:[\\/]*)
1342 re_direlt
='/[^/][^/]*/\.\./'
1343 # Canonicalize the path of ld
1344 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1345 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1346 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1348 test -z "$LD" && LD
="$ac_prog"
1351 # If it fails, then pretend we aren't using GCC.
1355 # If it is relative, then search for the first ld in PATH.
1359 elif test "$with_gnu_ld" = yes; then
1360 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1361 echo "configure:1362: checking for GNU ld" >&5
1363 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1364 echo "configure:1365: checking for non-GNU ld" >&5
1366 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -z "$LD"; then
1370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1371 for ac_dir
in $PATH; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1374 ac_cv_path_LD
="$ac_dir/$ac_prog"
1375 # Check to see if the program is GNU ld. I'd rather use --version,
1376 # but apparently some GNU ld's only accept -v.
1377 # Break only if it was the GNU/non-GNU ld that we prefer.
1378 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1379 test "$with_gnu_ld" != no
&& break
1381 test "$with_gnu_ld" != yes && break
1387 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1392 if test -n "$LD"; then
1393 echo "$ac_t""$LD" 1>&6
1395 echo "$ac_t""no" 1>&6
1397 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1399 echo "configure:1400: checking if the linker ($LD) is GNU ld" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1404 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1405 ac_cv_prog_gnu_ld
=yes
1407 ac_cv_prog_gnu_ld
=no
1411 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1414 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1415 echo "configure:1416: checking for BSD-compatible nm" >&5
1416 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 if test -n "$NM"; then
1420 # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1424 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1425 test -z "$ac_dir" && ac_dir
=.
1426 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1427 # Check to see if the nm accepts a BSD-compat flag.
1428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1429 # nm: unknown option "B" ignored
1430 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1431 ac_cv_path_NM
="$ac_dir/nm -B"
1433 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1434 ac_cv_path_NM
="$ac_dir/nm -p"
1437 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1438 continue # so that we can try to find one that supports BSD flags
1443 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1448 echo "$ac_t""$NM" 1>&6
1450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ln -s works" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1456 if ln -s X conftestdata
2>/dev
/null
1459 ac_cv_prog_LN_S
="ln -s"
1464 LN_S
="$ac_cv_prog_LN_S"
1465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1466 echo "$ac_t""yes" 1>&6
1468 echo "$ac_t""no" 1>&6
1473 NONE
) lt_target
="$host" ;;
1474 *) lt_target
="$target" ;;
1477 # Check for any special flags to pass to ltconfig.
1478 libtool_flags
="--cache-file=$cache_file"
1479 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1480 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1481 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1482 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1483 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1486 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1487 if test "${enable_libtool_lock+set}" = set; then
1488 enableval
="$enable_libtool_lock"
1492 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1493 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1495 # Some flags need to be propagated to the compiler or linker for good
1497 case "$lt_target" in
1499 # Find out which ABI we are using.
1500 echo '#line 1501 "configure"' > conftest.
$ac_ext
1501 if { (eval echo configure
:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 case "`/usr/bin/file conftest.o`" in
1518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1519 SAVE_CFLAGS
="$CFLAGS"
1520 CFLAGS
="$CFLAGS -belf"
1521 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether the C compiler needs -belf" >&5
1523 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.
$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1534 if { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1536 lt_cv_cc_needs_belf
=yes
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 lt_cv_cc_needs_belf
=no
1546 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1547 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1549 CFLAGS
="$SAVE_CFLAGS"
1557 # Save cache, so that ltconfig can load it
1558 cat > confcache
<<\EOF
1559 # This file is a shell script that caches the results of configure
1560 # tests run on this system so they can be shared between configure
1561 # scripts and configure runs. It is not useful on other systems.
1562 # If it contains results you don't want to keep, you may remove or edit it.
1564 # By default, configure uses ./config.cache as the cache file,
1565 # creating it if it does not exist already. You can give configure
1566 # the --cache-file=FILE option to use a different cache file; that is
1567 # what configure does when it calls configure scripts in
1568 # subdirectories, so they share the cache.
1569 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1570 # config.status only pays attention to the cache file if you give it the
1571 # --recheck option to rerun configure.
1574 # The following way of writing the cache mishandles newlines in values,
1575 # but we know of no workaround that is simple, portable, and efficient.
1576 # So, don't put newlines in cache variables' values.
1577 # Ultrix sh set writes to stderr and can't be redirected directly,
1578 # and sets the high bit in the cache file unless we assign to the vars.
1580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1582 # `set' does not quote correctly, so add quotes (double-quote substitution
1583 # turns \\\\ into \\, and sed turns \\ into \).
1585 -e "s/'/'\\\\''/g" \
1586 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1589 # `set' quotes correctly as required by POSIX, so do not add quotes.
1590 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1593 if cmp -s $cache_file confcache
; then
1596 if test -w $cache_file; then
1597 echo "updating cache $cache_file"
1598 cat confcache
> $cache_file
1600 echo "not updating unwritable cache $cache_file"
1606 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1607 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1608 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1609 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1610 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1611 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1612 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1613 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1615 # Reload cache, that may have been modified by ltconfig
1616 if test -r "$cache_file"; then
1617 echo "loading cache $cache_file"
1620 echo "creating cache $cache_file"
1625 # This can be used to rebuild libtool when needed
1626 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1628 # Always use our own libtool.
1629 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1631 # Redirect the config.log output again, so that the ltconfig log is not
1632 # clobbered by the next message.
1633 exec 5>>.
/config.log
1638 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
1639 i
*86-*-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
1640 i
*86-*-solaris*) TARGET
=X86
; TARGETDIR
=x86
;;
1641 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
1642 i
*86-*-freebsd*) TARGET
=X86
; TARGETDIR
=x86
;;
1643 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1644 sparc-sun-
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1645 sparc-
*-linux*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1646 sparc64-
*-linux*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1647 alpha
*-*-linux* | alpha
*-*-osf*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
1648 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
1649 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
1650 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1651 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1652 arm
*-*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
1655 if test $TARGETDIR = unknown
; then
1656 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
1661 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
1670 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
1679 if test x
$TARGET = xSPARC
; then
1688 if test x
$TARGET = xX86
; then
1697 if test x
$TARGET = xALPHA
; then
1706 if test x
$TARGET = xIA64
; then
1715 if test x
$TARGET = xM68K
; then
1724 if test x
$TARGET = xPOWERPC
; then
1733 if test x
$TARGET = xARM
; then
1741 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1742 echo "configure:1742: checking how to run the C preprocessor" >&5
1743 # On Suns, sometimes $CPP names a directory.
1744 if test -n "$CPP" && test -d "$CPP"; then
1747 if test -z "$CPP"; then
1748 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 # This must be in double quotes, not single quotes, because CPP may get
1752 # substituted into the Makefile and "${CC-cc}" will confuse make.
1754 # On the NeXT, cc -E runs the code through the compiler's parser,
1755 # not just through cpp.
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1757 "configure"
1758 #include "confdefs.h"
1762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1763 { (eval echo configure
:1763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1764 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1765 if test -z "$ac_err"; then
1769 echo "configure: failed program was:" >&5
1770 cat conftest.
$ac_ext >&5
1772 CPP
="${CC-cc} -E -traditional-cpp"
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1774 "configure"
1775 #include "confdefs.h"
1779 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780 { (eval echo configure
:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1781 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1782 if test -z "$ac_err"; then
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 CPP
="${CC-cc} -nologo -E"
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1791 "configure"
1792 #include "confdefs.h"
1796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure
:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1799 if test -z "$ac_err"; then
1803 echo "configure: failed program was:" >&5
1804 cat conftest.
$ac_ext >&5
1813 ac_cv_prog_CPP
="$CPP"
1815 CPP
="$ac_cv_prog_CPP"
1817 ac_cv_prog_CPP
="$CPP"
1819 echo "$ac_t""$CPP" 1>&6
1821 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1822 echo "configure:1822: checking for ANSI C header files" >&5
1823 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.
$ac_ext <<EOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure
:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1839 ac_cv_header_stdc
=yes
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1845 ac_cv_header_stdc
=no
1849 if test $ac_cv_header_stdc = yes; then
1850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1851 cat > conftest.
$ac_ext <<EOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1857 egrep "memchr" >/dev
/null
2>&1; then
1861 ac_cv_header_stdc
=no
1867 if test $ac_cv_header_stdc = yes; then
1868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1869 cat > conftest.
$ac_ext <<EOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1875 egrep "free" >/dev
/null
2>&1; then
1879 ac_cv_header_stdc
=no
1885 if test $ac_cv_header_stdc = yes; then
1886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1887 if test "$cross_compiling" = yes; then
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1894 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1895 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1897 int main () { int i; for (i = 0; i < 256; i++)
1898 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1902 if { (eval echo configure
:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 ac_cv_header_stdc
=no
1917 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1918 if test $ac_cv_header_stdc = yes; then
1919 cat >> confdefs.h
<<\EOF
1920 #define STDC_HEADERS 1
1925 for ac_func
in memcpy
1927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1928 echo "configure:1928: checking for $ac_func" >&5
1929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 cat > conftest.
$ac_ext <<EOF
1933 #line 1933 "configure"
1934 #include "confdefs.h"
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $ac_func(); below. */
1938 /* Override any gcc2 internal prototype to avoid an error. */
1939 /* We use char because int might match the return type of a gcc2
1940 builtin and then its argument prototype would still apply. */
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1956 if { (eval echo configure
:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1958 eval "ac_cv_func_$ac_func=yes"
1960 echo "configure: failed program was:" >&5
1961 cat conftest.
$ac_ext >&5
1963 eval "ac_cv_func_$ac_func=no"
1968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1969 echo "$ac_t""yes" 1>&6
1970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1971 cat >> confdefs.h
<<EOF
1972 #define $ac_tr_func 1
1976 echo "$ac_t""no" 1>&6
1980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1981 # for constant arguments. Useless!
1982 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1983 echo "configure:1983: checking for working alloca.h" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1988 "configure"
1989 #include "confdefs.h"
1992 char *p = alloca(2 * sizeof(int));
1995 if { (eval echo configure
:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1997 ac_cv_header_alloca_h
=yes
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 ac_cv_header_alloca_h
=no
2007 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2008 if test $ac_cv_header_alloca_h = yes; then
2009 cat >> confdefs.h
<<\EOF
2010 #define HAVE_ALLOCA_H 1
2015 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2016 echo "configure:2016: checking for alloca" >&5
2017 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.
$ac_ext <<EOF
2021 #line 2021 "configure"
2022 #include "confdefs.h"
2025 # define alloca __builtin_alloca
2028 # include <malloc.h>
2029 # define alloca _alloca
2032 # include <alloca.h>
2037 # ifndef alloca /* predefined by HP cc +Olibcalls */
2046 char *p = (char *) alloca(1);
2049 if { (eval echo configure
:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2051 ac_cv_func_alloca_works
=yes
2053 echo "configure: failed program was:" >&5
2054 cat conftest.
$ac_ext >&5
2056 ac_cv_func_alloca_works
=no
2061 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2062 if test $ac_cv_func_alloca_works = yes; then
2063 cat >> confdefs.h
<<\EOF
2064 #define HAVE_ALLOCA 1
2069 if test $ac_cv_func_alloca_works = no
; then
2070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2071 # that cause trouble. Some versions do not even contain alloca or
2072 # contain a buggy version. If you still want to use their alloca,
2073 # use ar to extract alloca.o from them instead of compiling alloca.c.
2074 ALLOCA
=alloca.
${ac_objext}
2075 cat >> confdefs.h
<<\EOF
2080 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2081 echo "configure:2081: checking whether alloca needs Cray hooks" >&5
2082 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.
$ac_ext <<EOF
2086 #line 2086 "configure"
2087 #include "confdefs.h"
2088 #if defined(CRAY) && ! defined(CRAY2)
2095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2096 egrep "webecray" >/dev
/null
2>&1; then
2107 echo "$ac_t""$ac_cv_os_cray" 1>&6
2108 if test $ac_cv_os_cray = yes; then
2109 for ac_func
in _getb67 GETB67 getb67
; do
2110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2111 echo "configure:2111: checking for $ac_func" >&5
2112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.
$ac_ext <<EOF
2116 #line 2116 "configure"
2117 #include "confdefs.h"
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $ac_func(); below. */
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2128 /* The GNU C library defines this for functions which it implements
2129 to always fail with ENOSYS. Some functions are actually named
2130 something starting with __ and the normal name is an alias. */
2131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2139 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2141 eval "ac_cv_func_$ac_func=yes"
2143 echo "configure: failed program was:" >&5
2144 cat conftest.
$ac_ext >&5
2146 eval "ac_cv_func_$ac_func=no"
2151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 cat >> confdefs.h
<<EOF
2154 #define CRAY_STACKSEG_END $ac_func
2159 echo "$ac_t""no" 1>&6
2165 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2166 echo "configure:2166: checking stack direction for C alloca" >&5
2167 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test "$cross_compiling" = yes; then
2171 ac_cv_c_stack_direction
=0
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 find_stack_direction ()
2178 static char *addr = 0;
2183 return find_stack_direction ();
2186 return (&dummy > addr) ? 1 : -1;
2190 exit (find_stack_direction() < 0);
2193 if { (eval echo configure
:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2195 ac_cv_c_stack_direction
=1
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 ac_cv_c_stack_direction
=-1
2207 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2208 cat >> confdefs.h
<<EOF
2209 #define STACK_DIRECTION $ac_cv_c_stack_direction
2215 echo $ac_n "checking size of short""... $ac_c" 1>&6
2216 echo "configure:2216: checking size of short" >&5
2217 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 if test "$cross_compiling" = yes; then
2221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2224 "configure"
2225 #include "confdefs.h"
2229 FILE *f=fopen("conftestval", "w");
2231 fprintf(f, "%d\n", sizeof(short));
2235 if { (eval echo configure
:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2237 ac_cv_sizeof_short
=`cat conftestval`
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 ac_cv_sizeof_short
=0
2248 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2249 cat >> confdefs.h
<<EOF
2250 #define SIZEOF_SHORT $ac_cv_sizeof_short
2254 echo $ac_n "checking size of int""... $ac_c" 1>&6
2255 echo "configure:2255: checking size of int" >&5
2256 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 if test "$cross_compiling" = yes; then
2260 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2262 cat > conftest.
$ac_ext <<EOF
2263 #line 2263 "configure"
2264 #include "confdefs.h"
2268 FILE *f=fopen("conftestval", "w");
2270 fprintf(f, "%d\n", sizeof(int));
2274 if { (eval echo configure
:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2276 ac_cv_sizeof_int
=`cat conftestval`
2278 echo "configure: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2287 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2288 cat >> confdefs.h
<<EOF
2289 #define SIZEOF_INT $ac_cv_sizeof_int
2293 echo $ac_n "checking size of long""... $ac_c" 1>&6
2294 echo "configure:2294: checking size of long" >&5
2295 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 if test "$cross_compiling" = yes; then
2299 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2302 "configure"
2303 #include "confdefs.h"
2307 FILE *f=fopen("conftestval", "w");
2309 fprintf(f, "%d\n", sizeof(long));
2313 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2315 ac_cv_sizeof_long
=`cat conftestval`
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2326 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2327 cat >> confdefs.h
<<EOF
2328 #define SIZEOF_LONG $ac_cv_sizeof_long
2332 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2333 echo "configure:2333: checking size of long long" >&5
2334 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 if test "$cross_compiling" = yes; then
2338 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2341 "configure"
2342 #include "confdefs.h"
2346 FILE *f=fopen("conftestval", "w");
2348 fprintf(f, "%d\n", sizeof(long long));
2352 if { (eval echo configure
:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2354 ac_cv_sizeof_long_long
=`cat conftestval`
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 ac_cv_sizeof_long_long
=0
2365 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2366 cat >> confdefs.h
<<EOF
2367 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2371 echo $ac_n "checking size of float""... $ac_c" 1>&6
2372 echo "configure:2372: checking size of float" >&5
2373 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 if test "$cross_compiling" = yes; then
2377 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2380 "configure"
2381 #include "confdefs.h"
2385 FILE *f=fopen("conftestval", "w");
2387 fprintf(f, "%d\n", sizeof(float));
2391 if { (eval echo configure
:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2393 ac_cv_sizeof_float
=`cat conftestval`
2395 echo "configure: failed program was:" >&5
2396 cat conftest.
$ac_ext >&5
2398 ac_cv_sizeof_float
=0
2404 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2405 cat >> confdefs.h
<<EOF
2406 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2410 echo $ac_n "checking size of double""... $ac_c" 1>&6
2411 echo "configure:2411: checking size of double" >&5
2412 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 if test "$cross_compiling" = yes; then
2416 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2418 cat > conftest.
$ac_ext <<EOF
2419 #line 2419 "configure"
2420 #include "confdefs.h"
2424 FILE *f=fopen("conftestval", "w");
2426 fprintf(f, "%d\n", sizeof(double));
2430 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2432 ac_cv_sizeof_double
=`cat conftestval`
2434 echo "configure: failed program was:" >&5
2435 cat conftest.
$ac_ext >&5
2437 ac_cv_sizeof_double
=0
2443 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2444 cat >> confdefs.h
<<EOF
2445 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2449 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2450 echo "configure:2450: checking size of long double" >&5
2451 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 if test "$cross_compiling" = yes; then
2455 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2458 "configure"
2459 #include "confdefs.h"
2463 FILE *f=fopen("conftestval", "w");
2465 fprintf(f, "%d\n", sizeof(long double));
2469 if { (eval echo configure
:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2471 ac_cv_sizeof_long_double
=`cat conftestval`
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 ac_cv_sizeof_long_double
=0
2482 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2483 cat >> confdefs.h
<<EOF
2484 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2489 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2490 echo "configure:2490: checking size of void *" >&5
2491 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 if test "$cross_compiling" = yes; then
2495 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2498 "configure"
2499 #include "confdefs.h"
2503 FILE *f=fopen("conftestval", "w");
2505 fprintf(f, "%d\n", sizeof(void *));
2509 if { (eval echo configure
:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2511 ac_cv_sizeof_void_p
=`cat conftestval`
2513 echo "configure: failed program was:" >&5
2514 cat conftest.
$ac_ext >&5
2516 ac_cv_sizeof_void_p
=0
2522 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2523 cat >> confdefs.h
<<EOF
2524 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2528 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2529 echo "configure:2529: checking whether byte ordering is bigendian" >&5
2530 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 ac_cv_c_bigendian
=unknown
2534 # See if sys/param.h defines the BYTE_ORDER macro.
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2539 #include <sys/param.h>
2542 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2547 if { (eval echo configure
:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549 # It does; now see whether it defined to BIG_ENDIAN or not.
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2551 "configure"
2552 #include "confdefs.h"
2553 #include <sys/types.h>
2554 #include <sys/param.h>
2557 #if BYTE_ORDER != BIG_ENDIAN
2562 if { (eval echo configure
:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 ac_cv_c_bigendian
=yes
2566 echo "configure: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2569 ac_cv_c_bigendian
=no
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2577 if test $ac_cv_c_bigendian = unknown
; then
2578 if test "$cross_compiling" = yes; then
2579 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2582 "configure"
2583 #include "confdefs.h"
2585 /* Are we little or big endian? From Harbison&Steele. */
2589 char c[sizeof (long)];
2592 exit (u.c[sizeof (long) - 1] == 1);
2595 if { (eval echo configure
:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2597 ac_cv_c_bigendian
=no
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 ac_cv_c_bigendian
=yes
2610 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2611 if test $ac_cv_c_bigendian = yes; then
2612 cat >> confdefs.h
<<\EOF
2613 #define WORDS_BIGENDIAN 1
2624 # Check whether --enable-debug or --disable-debug was given.
2625 if test "${enable_debug+set}" = set; then
2626 enableval
="$enable_debug"
2627 cat >> confdefs.h
<<\EOF
2634 # Check whether --enable-debug or --disable-debug was given.
2635 if test "${enable_debug+set}" = set; then
2636 enableval
="$enable_debug"
2637 cat >> confdefs.h
<<\EOF
2638 #define FFI_NO_STRUCTS 1
2644 # Check whether --enable-debug or --disable-debug was given.
2645 if test "${enable_debug+set}" = set; then
2646 enableval
="$enable_debug"
2647 cat >> confdefs.h
<<\EOF
2648 #define FFI_NO_RAW_API 1
2654 # Check whether --enable-purify-safety or --disable-purify-safety was given.
2655 if test "${enable_purify_safety+set}" = set; then
2656 enableval
="$enable_purify_safety"
2657 cat >> confdefs.h
<<\EOF
2658 #define USING_PURIFY 1
2666 if test -z "$with_cross_host"; then
2668 USE_LIBDIR_FALSE
='#'
2674 if test "${multilib}" = "yes"; then
2675 multilib_arg
="--enable-multilib"
2681 cat > confcache
<<\EOF
2682 # This file is a shell script that caches the results of configure
2683 # tests run on this system so they can be shared between configure
2684 # scripts and configure runs. It is not useful on other systems.
2685 # If it contains results you don't want to keep, you may remove or edit it.
2687 # By default, configure uses ./config.cache as the cache file,
2688 # creating it if it does not exist already. You can give configure
2689 # the --cache-file=FILE option to use a different cache file; that is
2690 # what configure does when it calls configure scripts in
2691 # subdirectories, so they share the cache.
2692 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2693 # config.status only pays attention to the cache file if you give it the
2694 # --recheck option to rerun configure.
2697 # The following way of writing the cache mishandles newlines in values,
2698 # but we know of no workaround that is simple, portable, and efficient.
2699 # So, don't put newlines in cache variables' values.
2700 # Ultrix sh set writes to stderr and can't be redirected directly,
2701 # and sets the high bit in the cache file unless we assign to the vars.
2703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2705 # `set' does not quote correctly, so add quotes (double-quote substitution
2706 # turns \\\\ into \\, and sed turns \\ into \).
2708 -e "s/'/'\\\\''/g" \
2709 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2712 # `set' quotes correctly as required by POSIX, so do not add quotes.
2713 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2716 if cmp -s $cache_file confcache
; then
2719 if test -w $cache_file; then
2720 echo "updating cache $cache_file"
2721 cat confcache
> $cache_file
2723 echo "not updating unwritable cache $cache_file"
2728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2730 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2731 # Let make expand exec_prefix.
2732 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2734 # Any assignment to VPATH causes Sun make to only execute
2735 # the first set of double-colon rules, so remove it if not needed.
2736 # If there is a colon in the path, we need to keep it.
2737 if test "x$srcdir" = x.
; then
2738 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2743 DEFS
=-DHAVE_CONFIG_H
2745 # Without the "./", some shells look in PATH for config.status.
2746 : ${CONFIG_STATUS=./config.status}
2748 echo creating
$CONFIG_STATUS
2749 rm -f $CONFIG_STATUS
2750 cat > $CONFIG_STATUS <<EOF
2752 # Generated automatically by configure.
2753 # Run this file to recreate the current configuration.
2754 # This directory was configured as follows,
2755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2757 # $0 $ac_configure_args
2759 # Compiler output produced by configure, useful for debugging
2760 # configure, is in ./config.log if it exists.
2762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2765 case "\$ac_option" in
2766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2770 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2772 -help | --help | --hel | --he | --h)
2773 echo "\$ac_cs_usage"; exit 0 ;;
2774 *) echo "\$ac_cs_usage"; exit 1 ;;
2778 ac_given_srcdir=$srcdir
2779 ac_given_INSTALL="$INSTALL"
2781 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2783 cat >> $CONFIG_STATUS <<EOF
2785 # Protect against being on the right side of a sed subst in config.status.
2786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2791 s%@CFLAGS@%$CFLAGS%g
2792 s%@CPPFLAGS@%$CPPFLAGS%g
2793 s%@CXXFLAGS@%$CXXFLAGS%g
2794 s%@FFLAGS@%$FFLAGS%g
2796 s%@LDFLAGS@%$LDFLAGS%g
2798 s%@exec_prefix@%$exec_prefix%g
2799 s%@prefix@%$prefix%g
2800 s%@program_transform_name@%$program_transform_name%g
2801 s%@bindir@%$bindir%g
2802 s%@sbindir@%$sbindir%g
2803 s%@libexecdir@%$libexecdir%g
2804 s%@datadir@%$datadir%g
2805 s%@sysconfdir@%$sysconfdir%g
2806 s%@sharedstatedir@%$sharedstatedir%g
2807 s%@localstatedir@%$localstatedir%g
2808 s%@libdir@%$libdir%g
2809 s%@includedir@%$includedir%g
2810 s%@oldincludedir@%$oldincludedir%g
2811 s%@infodir@%$infodir%g
2812 s%@mandir@%$mandir%g
2813 s%@libffi_basedir@%$libffi_basedir%g
2815 s%@host_alias@%$host_alias%g
2816 s%@host_cpu@%$host_cpu%g
2817 s%@host_vendor@%$host_vendor%g
2818 s%@host_os@%$host_os%g
2819 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2820 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2821 s%@INSTALL_DATA@%$INSTALL_DATA%g
2822 s%@PACKAGE@%$PACKAGE%g
2823 s%@VERSION@%$VERSION%g
2824 s%@ACLOCAL@%$ACLOCAL%g
2825 s%@AUTOCONF@%$AUTOCONF%g
2826 s%@AUTOMAKE@%$AUTOMAKE%g
2827 s%@AUTOHEADER@%$AUTOHEADER%g
2828 s%@MAKEINFO@%$MAKEINFO%g
2829 s%@SET_MAKE@%$SET_MAKE%g
2830 s%@EXEEXT@%$EXEEXT%g
2831 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2832 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2836 s%@build_alias@%$build_alias%g
2837 s%@build_cpu@%$build_cpu%g
2838 s%@build_vendor@%$build_vendor%g
2839 s%@build_os@%$build_os%g
2840 s%@RANLIB@%$RANLIB%g
2842 s%@LIBTOOL@%$LIBTOOL%g
2843 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
2844 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
2845 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
2846 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
2847 s%@SPARC_TRUE@%$SPARC_TRUE%g
2848 s%@SPARC_FALSE@%$SPARC_FALSE%g
2849 s%@X86_TRUE@%$X86_TRUE%g
2850 s%@X86_FALSE@%$X86_FALSE%g
2851 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
2852 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
2853 s%@IA64_TRUE@%$IA64_TRUE%g
2854 s%@IA64_FALSE@%$IA64_FALSE%g
2855 s%@M68K_TRUE@%$M68K_TRUE%g
2856 s%@M68K_FALSE@%$M68K_FALSE%g
2857 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
2858 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
2859 s%@ARM_TRUE@%$ARM_TRUE%g
2860 s%@ARM_FALSE@%$ARM_FALSE%g
2862 s%@ALLOCA@%$ALLOCA%g
2863 s%@TARGET@%$TARGET%g
2864 s%@TARGETDIR@%$TARGETDIR%g
2865 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2866 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2871 cat >> $CONFIG_STATUS <<\EOF
2873 # Split the substitutions into bite-sized pieces for seds with
2874 # small command number limits, like on Digital OSF/1 and HP-UX.
2875 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2876 ac_file
=1 # Number of current file.
2877 ac_beg
=1 # First line for current file.
2878 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2881 while $ac_more_lines; do
2882 if test $ac_beg -gt 1; then
2883 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2885 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2887 if test ! -s conftest.s
$ac_file; then
2889 rm -f conftest.s
$ac_file
2891 if test -z "$ac_sed_cmds"; then
2892 ac_sed_cmds
="sed -f conftest.s$ac_file"
2894 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2896 ac_file
=`expr $ac_file + 1`
2898 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2901 if test -z "$ac_sed_cmds"; then
2906 cat >> $CONFIG_STATUS <<EOF
2908 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
2910 cat >> $CONFIG_STATUS <<\EOF
2911 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2914 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2915 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2916 *) ac_file_in
="${ac_file}.in" ;;
2919 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2921 # Remove last slash and all that follows it. Not all systems have dirname.
2922 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2924 # The file is in a subdirectory.
2925 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2926 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2927 # A "../" for each directory in $ac_dir_suffix.
2928 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2930 ac_dir_suffix
= ac_dots
=
2933 case "$ac_given_srcdir" in
2935 if test -z "$ac_dots"; then top_srcdir
=.
2936 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2937 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2939 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2940 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2943 case "$ac_given_INSTALL" in
2944 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2945 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2948 echo creating
"$ac_file"
2950 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2952 *Makefile
*) ac_comsub
="1i\\
2953 # $configure_input" ;;
2957 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2959 s%@configure_input@%$configure_input%g
2960 s%@srcdir@%$srcdir%g
2961 s%@top_srcdir@%$top_srcdir%g
2962 s%@INSTALL@%$INSTALL%g
2963 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2970 # ac_d sets the value in "#define NAME VALUE" lines.
2971 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2972 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2975 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2976 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2977 ac_uB
='\([ ]\)%\1#\2define\3'
2980 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2981 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2982 ac_eB
='$%\1#\2define\3'
2986 if test "${CONFIG_HEADERS+set}" != set; then
2988 cat >> $CONFIG_STATUS <<EOF
2989 CONFIG_HEADERS="fficonfig.h"
2991 cat >> $CONFIG_STATUS <<\EOF
2993 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2996 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2997 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2998 *) ac_file_in
="${ac_file}.in" ;;
3001 echo creating
$ac_file
3003 rm -f conftest.frag conftest.
in conftest.out
3004 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3005 cat $ac_file_inputs > conftest.
in
3009 # Transform confdefs.h into a sed script conftest.vals that substitutes
3010 # the proper values into config.h.in to produce config.h. And first:
3011 # Protect against being on the right side of a sed subst in config.status.
3012 # Protect against being in an unquoted here document in config.status.
3014 cat > conftest.hdr
<<\EOF
3017 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3021 sed -n -f conftest.hdr confdefs.h > conftest.vals
3024 # This sed command replaces #undef with comments. This is necessary, for
3025 # example, in the case of _POSIX_SOURCE, which is predefined and required
3026 # on some systems where configure will not decide to define it.
3027 cat >> conftest.vals <<\EOF
3028 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3031 # Break up conftest.vals because some shells have a limit on
3032 # the size of here documents, and old seds have small limits too.
3037 ac_lines=`grep -c . conftest.vals
`
3038 # grep -c gives empty output for an empty file on some AIX systems.
3039 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3040 # Write a limited-size here document to conftest.frag.
3041 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3042 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3044 sed -f conftest.frag conftest.in > conftest.out
3046 mv conftest.out conftest.in
3048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3050 mv conftest.tail conftest.vals
3054 cat >> $CONFIG_STATUS <<\EOF
3055 rm -f conftest.frag conftest.h
3056 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3057 cat conftest.in >> conftest.h
3059 if cmp -s $ac_file conftest.h 2>/dev/null; then
3060 echo "$ac_file is unchanged"
3063 # Remove last slash and all that follows it. Not all systems have dirname.
3064 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3066 # The file is in a subdirectory.
3067 test ! -d "$ac_dir" && mkdir "$ac_dir"
3070 mv conftest.h $ac_file
3075 cat >> $CONFIG_STATUS <<EOF
3080 with_multisubdir=${with_multisubdir}
3081 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3082 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3083 libffi_basedir=${libffi_basedir}
3086 test ! -d include && mkdir include
3087 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3088 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3089 echo fficonfig.h unchanged
3091 echo Moving fficonfig.h to include/fficonfig.h
3092 cp fficonfig.h include/fficonfig.h
3096 cat >> $CONFIG_STATUS <<\EOF
3097 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3099 if test -n "$CONFIG_FILES"; then
3100 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3105 chmod +x $CONFIG_STATUS
3106 rm -fr confdefs* $ac_clean_files
3107 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1