2000-05-02 Jeff Sturm <jsturm@one-point.com>
[official-gcc.git] / libffi / configure
blob3b1295b2c4bfd07ddc563b1b77f831032ddfe6ea
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static[=PKGS] build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --disable-libtool-lock avoid locking (might break parallel builds)"
26 ac_help="$ac_help
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
28 ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
31 ac_help="$ac_help
32 --enable-debug debugging mode"
33 ac_help="$ac_help
34 --disable-structs omit code for struct support"
35 ac_help="$ac_help
36 --disable-raw-api make the raw api unavailable"
37 ac_help="$ac_help
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.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
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.
75 subdirs=
76 MFLAGS= MAKEFLAGS=
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
79 ac_max_here_lines=12
81 ac_prev=
82 for ac_option
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
97 # Accept the important Cygnus configure options, so we can diagnose typos.
99 case "$ac_option" in
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
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)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
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'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
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.
157 with_gas=yes ;;
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.
162 cat << EOF
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
165 Configuration:
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
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
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
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
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
196 cat << EOF
197 Host type:
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"
212 exit 0 ;;
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
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)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
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)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
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)
279 ac_prev=prefix ;;
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)
316 silent=yes ;;
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
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)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
364 -with-* | --with-*)
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'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
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" ;;
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
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; }
414 nonopt="$ac_option"
417 esac
418 done
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:
427 # 0 standard input
428 # 1 file creation
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
435 exec 6>/dev/null
436 else
437 exec 6>&1
439 exec 5>./config.log
441 echo "\
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
444 " 1>&5
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
448 ac_configure_args=
449 for ac_arg
451 case "$ac_arg" in
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" ;;
459 esac
460 done
462 # NLS nuisances.
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.
475 echo > confdefs.h
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.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
492 else
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; }
498 else
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"
508 else
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"
515 . "$ac_site_file"
517 done
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522 else
523 echo "creating cache $cache_file"
524 > $cache_file
527 ac_ext=c
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
534 ac_exeext=
535 ac_objext=o
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
539 ac_n= ac_c='
540 ' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
544 else
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
552 else
553 cat > conftest.$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
557 int main() {
559 #ifndef __CYGWIN__
560 #define __CYGWIN__ __CYGWIN32__
561 #endif
562 return __CYGWIN__;
563 ; return 0; }
565 if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
566 rm -rf conftest*
567 ac_cv_cygwin=yes
568 else
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
571 rm -rf conftest*
572 ac_cv_cygwin=no
574 rm -f conftest*
575 rm -f conftest*
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
579 CYGWIN=
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
585 else
586 cat > conftest.$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
590 int main() {
591 return __MINGW32__;
592 ; return 0; }
594 if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
595 rm -rf conftest*
596 ac_cv_mingw32=yes
597 else
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
600 rm -rf conftest*
601 ac_cv_mingw32=no
603 rm -f conftest*
604 rm -f conftest*
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
608 MINGW32=
609 test "$ac_cv_mingw32" = yes && MINGW32=yes
615 # Check whether --enable-multilib or --disable-multilib was given.
616 if test "${enable_multilib+set}" = set; then
617 enableval="$enable_multilib"
618 case "${enableval}" in
619 yes) multilib=yes ;;
620 no) multilib=no ;;
621 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
622 esac
623 else
624 multilib=yes
628 if test "${srcdir}" = "."; then
629 if test "${with_target_subdir}" != "."; then
630 libffi_basedir="${srcdir}/${with_multisrctop}.."
631 else
632 libffi_basedir="${srcdir}/${with_multisrctop}"
634 else
635 libffi_basedir="${srcdir}"
639 ac_aux_dir=
640 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
641 if test -f $ac_dir/install-sh; then
642 ac_aux_dir=$ac_dir
643 ac_install_sh="$ac_aux_dir/install-sh -c"
644 break
645 elif test -f $ac_dir/install.sh; then
646 ac_aux_dir=$ac_dir
647 ac_install_sh="$ac_aux_dir/install.sh -c"
648 break
650 done
651 if test -z "$ac_aux_dir"; then
652 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
654 ac_config_guess=$ac_aux_dir/config.guess
655 ac_config_sub=$ac_aux_dir/config.sub
656 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
667 host_alias=$host
668 case "$host_alias" in
669 NONE)
670 case $nonopt in
671 NONE)
672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 fi ;;
675 *) host_alias=$nonopt ;;
676 esac ;;
677 esac
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
686 # Check whether --enable-shared or --disable-shared was given.
687 if test "${enable_shared+set}" = set; then
688 enableval="$enable_shared"
689 p=${PACKAGE-default}
690 case $enableval in
691 yes) enable_shared=yes ;;
692 no) enable_shared=no ;;
694 enable_shared=no
695 # Look at the argument we got. We use all the common list separators.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
697 for pkg in $enableval; do
698 if test "X$pkg" = "X$p"; then
699 enable_shared=yes
701 done
702 IFS="$ac_save_ifs"
704 esac
705 else
706 enable_shared=yes
709 # Check whether --enable-static or --disable-static was given.
710 if test "${enable_static+set}" = set; then
711 enableval="$enable_static"
712 p=${PACKAGE-default}
713 case $enableval in
714 yes) enable_static=yes ;;
715 no) enable_static=no ;;
717 enable_static=no
718 # Look at the argument we got. We use all the common list separators.
719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
720 for pkg in $enableval; do
721 if test "X$pkg" = "X$p"; then
722 enable_static=yes
724 done
725 IFS="$ac_save_ifs"
727 esac
728 else
729 enable_static=yes
732 # Check whether --enable-fast-install or --disable-fast-install was given.
733 if test "${enable_fast_install+set}" = set; then
734 enableval="$enable_fast_install"
735 p=${PACKAGE-default}
736 case $enableval in
737 yes) enable_fast_install=yes ;;
738 no) enable_fast_install=no ;;
740 enable_fast_install=no
741 # Look at the argument we got. We use all the common list separators.
742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
743 for pkg in $enableval; do
744 if test "X$pkg" = "X$p"; then
745 enable_fast_install=yes
747 done
748 IFS="$ac_save_ifs"
750 esac
751 else
752 enable_fast_install=yes
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
758 build_alias=$build
759 case "$build_alias" in
760 NONE)
761 case $nonopt in
762 NONE) build_alias=$host_alias ;;
763 *) build_alias=$nonopt ;;
764 esac ;;
765 esac
767 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
768 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
769 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
770 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
771 echo "$ac_t""$build" 1>&6
773 # Extract the first word of "gcc", so it can be a program name with args.
774 set dummy gcc; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 if test -n "$CC"; then
781 ac_cv_prog_CC="$CC" # Let the user override the test.
782 else
783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784 ac_dummy="$PATH"
785 for ac_dir in $ac_dummy; do
786 test -z "$ac_dir" && ac_dir=.
787 if test -f $ac_dir/$ac_word; then
788 ac_cv_prog_CC="gcc"
789 break
791 done
792 IFS="$ac_save_ifs"
795 CC="$ac_cv_prog_CC"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
798 else
799 echo "$ac_t""no" 1>&6
802 if test -z "$CC"; then
803 # Extract the first word of "cc", so it can be a program name with args.
804 set dummy cc; ac_word=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 if test -n "$CC"; then
811 ac_cv_prog_CC="$CC" # Let the user override the test.
812 else
813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
814 ac_prog_rejected=no
815 ac_dummy="$PATH"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
820 ac_prog_rejected=yes
821 continue
823 ac_cv_prog_CC="cc"
824 break
826 done
827 IFS="$ac_save_ifs"
828 if test $ac_prog_rejected = yes; then
829 # We found a bogon in the path, so make sure we never use it.
830 set dummy $ac_cv_prog_CC
831 shift
832 if test $# -gt 0; then
833 # We chose a different compiler from the bogus one.
834 # However, it has the same basename, so the bogon will be chosen
835 # first if we set CC to just the basename; use the full file name.
836 shift
837 set dummy "$ac_dir/$ac_word" "$@"
838 shift
839 ac_cv_prog_CC="$@"
844 CC="$ac_cv_prog_CC"
845 if test -n "$CC"; then
846 echo "$ac_t""$CC" 1>&6
847 else
848 echo "$ac_t""no" 1>&6
851 if test -z "$CC"; then
852 case "`uname -s`" in
853 *win32* | *WIN32*)
854 # Extract the first word of "cl", so it can be a program name with args.
855 set dummy cl; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860 else
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
863 else
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
865 ac_dummy="$PATH"
866 for ac_dir in $ac_dummy; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 ac_cv_prog_CC="cl"
870 break
872 done
873 IFS="$ac_save_ifs"
876 CC="$ac_cv_prog_CC"
877 if test -n "$CC"; then
878 echo "$ac_t""$CC" 1>&6
879 else
880 echo "$ac_t""no" 1>&6
883 esac
885 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
889 echo "configure:890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
891 ac_ext=c
892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CPP $CPPFLAGS'
894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cc_cross
898 cat > conftest.$ac_ext << EOF
900 #line 901 "configure"
901 #include "confdefs.h"
903 main(){return(0);}
905 if { (eval echo configure:906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
906 ac_cv_prog_cc_works=yes
907 # If we can't run a trivial program, we are probably using a cross compiler.
908 if (./conftest; exit) 2>/dev/null; then
909 ac_cv_prog_cc_cross=no
910 else
911 ac_cv_prog_cc_cross=yes
913 else
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
916 ac_cv_prog_cc_works=no
918 rm -fr conftest*
919 ac_ext=c
920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924 cross_compiling=$ac_cv_prog_cc_cross
926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
927 if test $ac_cv_prog_cc_works = no; then
928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939 else
940 cat > conftest.c <<EOF
941 #ifdef __GNUC__
942 yes;
943 #endif
945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
946 ac_cv_prog_gcc=yes
947 else
948 ac_cv_prog_gcc=no
952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
954 if test $ac_cv_prog_gcc = yes; then
955 GCC=yes
956 else
957 GCC=
960 ac_test_CFLAGS="${CFLAGS+set}"
961 ac_save_CFLAGS="$CFLAGS"
962 CFLAGS=
963 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
964 echo "configure:965: checking whether ${CC-cc} accepts -g" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
967 else
968 echo 'void f(){}' > conftest.c
969 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
970 ac_cv_prog_cc_g=yes
971 else
972 ac_cv_prog_cc_g=no
974 rm -f conftest*
978 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
979 if test "$ac_test_CFLAGS" = set; then
980 CFLAGS="$ac_save_CFLAGS"
981 elif test $ac_cv_prog_cc_g = yes; then
982 if test "$GCC" = yes; then
983 CFLAGS="-g -O2"
984 else
985 CFLAGS="-g"
987 else
988 if test "$GCC" = yes; then
989 CFLAGS="-O2"
990 else
991 CFLAGS=
995 # Check whether --with-gnu-ld or --without-gnu-ld was given.
996 if test "${with_gnu_ld+set}" = set; then
997 withval="$with_gnu_ld"
998 test "$withval" = no || with_gnu_ld=yes
999 else
1000 with_gnu_ld=no
1003 ac_prog=ld
1004 if test "$GCC" = yes; then
1005 # Check if gcc -print-prog-name=ld gives a path.
1006 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1007 echo "configure:1008: checking for ld used by GCC" >&5
1008 case $host in
1009 *-*-mingw*)
1010 # gcc leaves a trailing carriage return which upsets mingw
1011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1014 esac
1015 case $ac_prog in
1016 # Accept absolute paths.
1017 [\\/]* | [A-Za-z]:[\\/]*)
1018 re_direlt='/[^/][^/]*/\.\./'
1019 # Canonicalize the path of ld
1020 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1021 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1022 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1023 done
1024 test -z "$LD" && LD="$ac_prog"
1027 # If it fails, then pretend we aren't using GCC.
1028 ac_prog=ld
1031 # If it is relative, then search for the first ld in PATH.
1032 with_gnu_ld=unknown
1034 esac
1035 elif test "$with_gnu_ld" = yes; then
1036 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1037 echo "configure:1038: checking for GNU ld" >&5
1038 else
1039 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1040 echo "configure:1041: checking for non-GNU ld" >&5
1042 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044 else
1045 if test -z "$LD"; then
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1047 for ac_dir in $PATH; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1050 lt_cv_path_LD="$ac_dir/$ac_prog"
1051 # Check to see if the program is GNU ld. I'd rather use --version,
1052 # but apparently some GNU ld's only accept -v.
1053 # Break only if it was the GNU/non-GNU ld that we prefer.
1054 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1055 test "$with_gnu_ld" != no && break
1056 else
1057 test "$with_gnu_ld" != yes && break
1060 done
1061 IFS="$ac_save_ifs"
1062 else
1063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1067 LD="$lt_cv_path_LD"
1068 if test -n "$LD"; then
1069 echo "$ac_t""$LD" 1>&6
1070 else
1071 echo "$ac_t""no" 1>&6
1073 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1074 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1075 echo "configure:1076: checking if the linker ($LD) is GNU ld" >&5
1076 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1080 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1081 lt_cv_prog_gnu_ld=yes
1082 else
1083 lt_cv_prog_gnu_ld=no
1087 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1088 with_gnu_ld=$lt_cv_prog_gnu_ld
1091 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $LD option to reload object files" >&5
1093 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 lt_cv_ld_reload_flag='-r'
1099 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1100 reload_flag=$lt_cv_ld_reload_flag
1101 test -n "$reload_flag" && reload_flag=" $reload_flag"
1103 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1104 echo "configure:1105: checking for BSD-compatible nm" >&5
1105 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1107 else
1108 if test -n "$NM"; then
1109 # Let the user override the test.
1110 lt_cv_path_NM="$NM"
1111 else
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1113 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1114 test -z "$ac_dir" && ac_dir=.
1115 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1116 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1117 # Check to see if the nm accepts a BSD-compat flag.
1118 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1119 # nm: unknown option "B" ignored
1120 # Tru64's nm complains that /dev/null is an invalid object file
1121 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1122 lt_cv_path_NM="$tmp_nm -B"
1123 break
1124 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1125 lt_cv_path_NM="$tmp_nm -p"
1126 break
1127 else
1128 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1129 continue # so that we can try to find one that supports BSD flags
1132 done
1133 IFS="$ac_save_ifs"
1134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1138 NM="$lt_cv_path_NM"
1139 echo "$ac_t""$NM" 1>&6
1141 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether ln -s works" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1145 else
1146 rm -f conftestdata
1147 if ln -s X conftestdata 2>/dev/null
1148 then
1149 rm -f conftestdata
1150 ac_cv_prog_LN_S="ln -s"
1151 else
1152 ac_cv_prog_LN_S=ln
1155 LN_S="$ac_cv_prog_LN_S"
1156 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1157 echo "$ac_t""yes" 1>&6
1158 else
1159 echo "$ac_t""no" 1>&6
1162 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1163 echo "configure:1164: checking how to recognise dependant libraries" >&5
1164 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 lt_cv_file_magic_cmd='$MAGIC_CMD'
1168 lt_cv_file_magic_test_file=
1169 lt_cv_deplibs_check_method='unknown'
1170 # Need to set the preceding variable on all platforms that support
1171 # interlibrary dependencies.
1172 # 'none' -- dependencies not supported.
1173 # `unknown' -- same as none, but documents that we really don't know.
1174 # 'pass_all' -- all dependencies passed with no checks.
1175 # 'test_compile' -- check by making test program.
1176 # 'file_magic [regex]' -- check by looking for files in library path
1177 # which responds to the $file_magic_cmd with a given egrep regex.
1178 # If you have `file' or equivalent on your system and you're not sure
1179 # whether `pass_all' will *always* work, you probably want this one.
1181 case $host_os in
1182 aix*)
1183 lt_cv_deplibs_check_method=pass_all
1186 beos*)
1187 lt_cv_deplibs_check_method=pass_all
1190 bsdi4*)
1191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1192 lt_cv_file_magic_cmd='/usr/bin/file -L'
1193 lt_cv_file_magic_test_file=/shlib/libc.so
1196 cygwin* | mingw* |pw32*)
1197 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1198 lt_cv_file_magic_cmd='$OBJDUMP -f'
1201 darwin* | rhapsody*)
1202 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1203 lt_cv_file_magic_cmd='/usr/bin/file -L'
1204 case "$host_os" in
1205 rhapsody* | darwin1.012)
1206 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1208 *) # Darwin 1.3 on
1209 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1211 esac
1214 freebsd* )
1215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1216 case $host_cpu in
1217 i*86 )
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.*`
1224 esac
1225 else
1226 lt_cv_deplibs_check_method=pass_all
1230 gnu*)
1231 lt_cv_deplibs_check_method=pass_all
1234 hpux10.20*|hpux11*)
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
1240 irix5* | irix6*)
1241 case $host_os in
1242 irix5*)
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"
1247 case $LD in
1248 *-32|*"-32 ") libmagic=32-bit;;
1249 *-n32|*"-n32 ") libmagic=N32;;
1250 *-64|*"-64 ") libmagic=64-bit;;
1251 *) libmagic=never-match;;
1252 esac
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"
1256 esac
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.
1262 linux-gnu*)
1263 case $host_cpu in
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 )' ;;
1269 esac
1270 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1273 netbsd*)
1274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1275 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1276 else
1277 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1281 newsos6)
1282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1283 lt_cv_file_magic_cmd=/usr/bin/file
1284 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1287 osf3* | osf4* | osf5*)
1288 # this will be overridden with pass_all, but let us keep it just in case
1289 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1290 lt_cv_file_magic_test_file=/shlib/libc.so
1291 lt_cv_deplibs_check_method=pass_all
1294 sco3.2v5*)
1295 lt_cv_deplibs_check_method=pass_all
1298 solaris*)
1299 lt_cv_deplibs_check_method=pass_all
1300 lt_cv_file_magic_test_file=/lib/libc.so
1303 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1304 case $host_vendor in
1305 ncr)
1306 lt_cv_deplibs_check_method=pass_all
1308 motorola)
1309 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]'
1310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1312 esac
1314 esac
1318 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1319 file_magic_cmd=$lt_cv_file_magic_cmd
1320 deplibs_check_method=$lt_cv_deplibs_check_method
1322 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1323 echo "configure:1324: checking for object suffix" >&5
1324 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1326 else
1327 rm -f conftest*
1328 echo 'int i = 1;' > conftest.$ac_ext
1329 if { (eval echo configure:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330 for ac_file in conftest.*; do
1331 case $ac_file in
1332 *.c) ;;
1333 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1334 esac
1335 done
1336 else
1337 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1339 rm -f conftest*
1342 echo "$ac_t""$ac_cv_objext" 1>&6
1343 OBJEXT=$ac_cv_objext
1344 ac_objext=$ac_cv_objext
1348 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1349 echo "configure:1350: checking for executable suffix" >&5
1350 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352 else
1353 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1354 ac_cv_exeext=.exe
1355 else
1356 rm -f conftest*
1357 echo 'int main () { return 0; }' > conftest.$ac_ext
1358 ac_cv_exeext=
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1360 for file in conftest.*; do
1361 case $file in
1362 *.c | *.o | *.obj) ;;
1363 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1364 esac
1365 done
1366 else
1367 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1369 rm -f conftest*
1370 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1374 EXEEXT=""
1375 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1376 echo "$ac_t""${ac_cv_exeext}" 1>&6
1377 ac_exeext=$EXEEXT
1379 if test $host != $build; then
1380 ac_tool_prefix=${host_alias}-
1381 else
1382 ac_tool_prefix=
1385 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1387 # Only perform the check for file, if the check method requires it
1388 case $deplibs_check_method in
1389 file_magic*)
1390 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1391 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1392 echo "configure:1393: checking for ${ac_tool_prefix}file" >&5
1393 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396 case $MAGIC_CMD in
1398 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1400 ?:/*)
1401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1404 ac_save_MAGIC_CMD="$MAGIC_CMD"
1405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1406 ac_dummy="/usr/bin:$PATH"
1407 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/${ac_tool_prefix}file; then
1410 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1411 if test -n "$file_magic_test_file"; then
1412 case $deplibs_check_method in
1413 "file_magic "*)
1414 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1417 egrep "$file_magic_regex" > /dev/null; then
1419 else
1420 cat <<EOF 1>&2
1422 *** Warning: the command libtool uses to detect shared libraries,
1423 *** $file_magic_cmd, produces output that libtool cannot recognize.
1424 *** The result is that libtool may fail to recognize shared libraries
1425 *** as such. This will affect the creation of libtool libraries that
1426 *** depend on shared libraries, but programs linked with such libtool
1427 *** libraries will work regardless of this problem. Nevertheless, you
1428 *** may want to report the problem to your system manager and/or to
1429 *** bug-libtool@gnu.org
1432 fi ;;
1433 esac
1435 break
1437 done
1438 IFS="$ac_save_ifs"
1439 MAGIC_CMD="$ac_save_MAGIC_CMD"
1441 esac
1444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1445 if test -n "$MAGIC_CMD"; then
1446 echo "$ac_t""$MAGIC_CMD" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 if test -z "$lt_cv_path_MAGIC_CMD"; then
1452 if test -n "$ac_tool_prefix"; then
1453 echo $ac_n "checking for file""... $ac_c" 1>&6
1454 echo "configure:1455: checking for file" >&5
1455 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 case $MAGIC_CMD in
1460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1462 ?:/*)
1463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1466 ac_save_MAGIC_CMD="$MAGIC_CMD"
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1468 ac_dummy="/usr/bin:$PATH"
1469 for ac_dir in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/file; then
1472 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1473 if test -n "$file_magic_test_file"; then
1474 case $deplibs_check_method in
1475 "file_magic "*)
1476 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1479 egrep "$file_magic_regex" > /dev/null; then
1481 else
1482 cat <<EOF 1>&2
1484 *** Warning: the command libtool uses to detect shared libraries,
1485 *** $file_magic_cmd, produces output that libtool cannot recognize.
1486 *** The result is that libtool may fail to recognize shared libraries
1487 *** as such. This will affect the creation of libtool libraries that
1488 *** depend on shared libraries, but programs linked with such libtool
1489 *** libraries will work regardless of this problem. Nevertheless, you
1490 *** may want to report the problem to your system manager and/or to
1491 *** bug-libtool@gnu.org
1494 fi ;;
1495 esac
1497 break
1499 done
1500 IFS="$ac_save_ifs"
1501 MAGIC_CMD="$ac_save_MAGIC_CMD"
1503 esac
1506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1507 if test -n "$MAGIC_CMD"; then
1508 echo "$ac_t""$MAGIC_CMD" 1>&6
1509 else
1510 echo "$ac_t""no" 1>&6
1513 else
1514 MAGIC_CMD=:
1520 esac
1522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test -n "$RANLIB"; then
1530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1531 else
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1538 break
1540 done
1541 IFS="$ac_save_ifs"
1544 RANLIB="$ac_cv_prog_RANLIB"
1545 if test -n "$RANLIB"; then
1546 echo "$ac_t""$RANLIB" 1>&6
1547 else
1548 echo "$ac_t""no" 1>&6
1552 if test -z "$ac_cv_prog_RANLIB"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "ranlib", so it can be a program name with args.
1555 set dummy ranlib; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 if test -n "$RANLIB"; then
1562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1563 else
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_RANLIB="ranlib"
1570 break
1572 done
1573 IFS="$ac_save_ifs"
1574 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1577 RANLIB="$ac_cv_prog_RANLIB"
1578 if test -n "$RANLIB"; then
1579 echo "$ac_t""$RANLIB" 1>&6
1580 else
1581 echo "$ac_t""no" 1>&6
1584 else
1585 RANLIB=":"
1589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1590 set dummy ${ac_tool_prefix}strip; ac_word=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 if test -n "$STRIP"; then
1597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1598 else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 ac_dummy="$PATH"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1605 break
1607 done
1608 IFS="$ac_save_ifs"
1611 STRIP="$ac_cv_prog_STRIP"
1612 if test -n "$STRIP"; then
1613 echo "$ac_t""$STRIP" 1>&6
1614 else
1615 echo "$ac_t""no" 1>&6
1619 if test -z "$ac_cv_prog_STRIP"; then
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "strip", so it can be a program name with args.
1622 set dummy strip; ac_word=$2
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_word" >&5
1625 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628 if test -n "$STRIP"; then
1629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1630 else
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 ac_dummy="$PATH"
1633 for ac_dir in $ac_dummy; do
1634 test -z "$ac_dir" && ac_dir=.
1635 if test -f $ac_dir/$ac_word; then
1636 ac_cv_prog_STRIP="strip"
1637 break
1639 done
1640 IFS="$ac_save_ifs"
1641 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1644 STRIP="$ac_cv_prog_STRIP"
1645 if test -n "$STRIP"; then
1646 echo "$ac_t""$STRIP" 1>&6
1647 else
1648 echo "$ac_t""no" 1>&6
1651 else
1652 STRIP=":"
1657 # Check for any special flags to pass to ltconfig.
1658 libtool_flags="--cache-file=$cache_file"
1659 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1660 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1661 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1662 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1663 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1666 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1667 if test "${enable_libtool_lock+set}" = set; then
1668 enableval="$enable_libtool_lock"
1672 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1673 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1675 # Check whether --with-pic or --without-pic was given.
1676 if test "${with_pic+set}" = set; then
1677 withval="$with_pic"
1678 pic_mode="$withval"
1679 else
1680 pic_mode=default
1683 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1684 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1686 # Some flags need to be propagated to the compiler or linker for good
1687 # libtool support.
1688 case $host in
1689 *-*-irix6*)
1690 # Find out which ABI we are using.
1691 echo '#line 1692 "configure"' > conftest.$ac_ext
1692 if { (eval echo configure:1693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1693 case `/usr/bin/file conftest.$ac_objext` in
1694 *32-bit*)
1695 LD="${LD-ld} -32"
1697 *N32*)
1698 LD="${LD-ld} -n32"
1700 *64-bit*)
1701 LD="${LD-ld} -64"
1703 esac
1705 rm -rf conftest*
1708 *-*-sco3.2v5*)
1709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1710 SAVE_CFLAGS="$CFLAGS"
1711 CFLAGS="$CFLAGS -belf"
1712 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether the C compiler needs -belf" >&5
1714 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1718 ac_ext=c
1719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1720 ac_cpp='$CPP $CPPFLAGS'
1721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1723 cross_compiling=$ac_cv_prog_cc_cross
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1729 int main() {
1731 ; return 0; }
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 rm -rf conftest*
1735 lt_cv_cc_needs_belf=yes
1736 else
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -rf conftest*
1740 lt_cv_cc_needs_belf=no
1742 rm -f conftest*
1743 ac_ext=c
1744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1745 ac_cpp='$CPP $CPPFLAGS'
1746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1748 cross_compiling=$ac_cv_prog_cc_cross
1752 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1753 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1754 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1755 CFLAGS="$SAVE_CFLAGS"
1760 esac
1763 # Save cache, so that ltconfig can load it
1764 cat > confcache <<\EOF
1765 # This file is a shell script that caches the results of configure
1766 # tests run on this system so they can be shared between configure
1767 # scripts and configure runs. It is not useful on other systems.
1768 # If it contains results you don't want to keep, you may remove or edit it.
1770 # By default, configure uses ./config.cache as the cache file,
1771 # creating it if it does not exist already. You can give configure
1772 # the --cache-file=FILE option to use a different cache file; that is
1773 # what configure does when it calls configure scripts in
1774 # subdirectories, so they share the cache.
1775 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1776 # config.status only pays attention to the cache file if you give it the
1777 # --recheck option to rerun configure.
1780 # The following way of writing the cache mishandles newlines in values,
1781 # but we know of no workaround that is simple, portable, and efficient.
1782 # So, don't put newlines in cache variables' values.
1783 # Ultrix sh set writes to stderr and can't be redirected directly,
1784 # and sets the high bit in the cache file unless we assign to the vars.
1785 (set) 2>&1 |
1786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1787 *ac_space=\ *)
1788 # `set' does not quote correctly, so add quotes (double-quote substitution
1789 # turns \\\\ into \\, and sed turns \\ into \).
1790 sed -n \
1791 -e "s/'/'\\\\''/g" \
1792 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1795 # `set' quotes correctly as required by POSIX, so do not add quotes.
1796 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1798 esac >> confcache
1799 if cmp -s $cache_file confcache; then
1801 else
1802 if test -w $cache_file; then
1803 echo "updating cache $cache_file"
1804 cat confcache > $cache_file
1805 else
1806 echo "not updating unwritable cache $cache_file"
1809 rm -f confcache
1812 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1813 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1814 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1815 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1816 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1817 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1818 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1819 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1820 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1821 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1823 # Reload cache, that may have been modified by ltconfig
1824 if test -r "$cache_file"; then
1825 echo "loading cache $cache_file"
1826 . $cache_file
1827 else
1828 echo "creating cache $cache_file"
1829 > $cache_file
1833 # This can be used to rebuild libtool when needed
1834 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1836 # Always use our own libtool.
1837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1839 # Redirect the config.log output again, so that the ltconfig log is not
1840 # clobbered by the next message.
1841 exec 5>>./config.log
1849 # Find a good install program. We prefer a C program (faster),
1850 # so one script is as good as another. But avoid the broken or
1851 # incompatible versions:
1852 # SysV /etc/install, /usr/sbin/install
1853 # SunOS /usr/etc/install
1854 # IRIX /sbin/install
1855 # AIX /bin/install
1856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1859 # ./install, which can be erroneously created by make from ./install.sh.
1860 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1861 echo "configure:1862: checking for a BSD compatible install" >&5
1862 if test -z "$INSTALL"; then
1863 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1867 for ac_dir in $PATH; do
1868 # Account for people who put trailing slashes in PATH elements.
1869 case "$ac_dir/" in
1870 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1872 # OSF1 and SCO ODT 3.0 have their own names for install.
1873 # Don't use installbsd from OSF since it installs stuff as root
1874 # by default.
1875 for ac_prog in ginstall scoinst install; do
1876 if test -f $ac_dir/$ac_prog; then
1877 if test $ac_prog = install &&
1878 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1879 # AIX install. It has an incompatible calling convention.
1881 else
1882 ac_cv_path_install="$ac_dir/$ac_prog -c"
1883 break 2
1886 done
1888 esac
1889 done
1890 IFS="$ac_save_IFS"
1893 if test "${ac_cv_path_install+set}" = set; then
1894 INSTALL="$ac_cv_path_install"
1895 else
1896 # As a last resort, use the slow shell script. We don't cache a
1897 # path for INSTALL within a source directory, because that will
1898 # break other packages using the cache if that directory is
1899 # removed, or if the path is relative.
1900 INSTALL="$ac_install_sh"
1903 echo "$ac_t""$INSTALL" 1>&6
1905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1906 # It thinks the first close brace ends the variable substitution.
1907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1913 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether build environment is sane" >&5
1915 # Just in case
1916 sleep 1
1917 echo timestamp > conftestfile
1918 # Do `set' in a subshell so we don't clobber the current shell's
1919 # arguments. Must try -L first in case configure is actually a
1920 # symlink; some systems play weird games with the mod time of symlinks
1921 # (eg FreeBSD returns the mod time of the symlink's containing
1922 # directory).
1923 if (
1924 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1925 if test "$*" = "X"; then
1926 # -L didn't work.
1927 set X `ls -t $srcdir/configure conftestfile`
1929 if test "$*" != "X $srcdir/configure conftestfile" \
1930 && test "$*" != "X conftestfile $srcdir/configure"; then
1932 # If neither matched, then we have a broken ls. This can happen
1933 # if, for instance, CONFIG_SHELL is bash and it inherits a
1934 # broken ls alias from the environment. This has actually
1935 # happened. Such a system could not be considered "sane".
1936 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1937 alias in your environment" 1>&2; exit 1; }
1940 test "$2" = conftestfile
1942 then
1943 # Ok.
1945 else
1946 { echo "configure: error: newly created file is older than distributed files!
1947 Check your system clock" 1>&2; exit 1; }
1949 rm -f conftest*
1950 echo "$ac_t""yes" 1>&6
1951 if test "$program_transform_name" = s,x,x,; then
1952 program_transform_name=
1953 else
1954 # Double any \ or $. echo might interpret backslashes.
1955 cat <<\EOF_SED > conftestsed
1956 s,\\,\\\\,g; s,\$,$$,g
1957 EOF_SED
1958 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1959 rm -f conftestsed
1961 test "$program_prefix" != NONE &&
1962 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1963 # Use a double $ so make ignores it.
1964 test "$program_suffix" != NONE &&
1965 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1967 # sed with no file args requires a program.
1968 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether ${MAKE-make} sets \${MAKE}" >&5
1972 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976 cat > conftestmake <<\EOF
1977 all:
1978 @echo 'ac_maketemp="${MAKE}"'
1980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1982 if test -n "$ac_maketemp"; then
1983 eval ac_cv_prog_make_${ac_make}_set=yes
1984 else
1985 eval ac_cv_prog_make_${ac_make}_set=no
1987 rm -f conftestmake
1989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 SET_MAKE=
1992 else
1993 echo "$ac_t""no" 1>&6
1994 SET_MAKE="MAKE=${MAKE-make}"
1998 PACKAGE=libffi
2000 VERSION=2.00-beta
2002 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2003 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2008 missing_dir=`cd $ac_aux_dir && pwd`
2009 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2010 echo "configure:2011: checking for working aclocal" >&5
2011 # Run test in a subshell; some versions of sh will print an error if
2012 # an executable is not found, even if stderr is redirected.
2013 # Redirect stdin to placate older versions of autoconf. Sigh.
2014 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2015 ACLOCAL=aclocal
2016 echo "$ac_t""found" 1>&6
2017 else
2018 ACLOCAL="$missing_dir/missing aclocal"
2019 echo "$ac_t""missing" 1>&6
2022 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2023 echo "configure:2024: checking for working autoconf" >&5
2024 # Run test in a subshell; some versions of sh will print an error if
2025 # an executable is not found, even if stderr is redirected.
2026 # Redirect stdin to placate older versions of autoconf. Sigh.
2027 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2028 AUTOCONF=autoconf
2029 echo "$ac_t""found" 1>&6
2030 else
2031 AUTOCONF="$missing_dir/missing autoconf"
2032 echo "$ac_t""missing" 1>&6
2035 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2036 echo "configure:2037: checking for working automake" >&5
2037 # Run test in a subshell; some versions of sh will print an error if
2038 # an executable is not found, even if stderr is redirected.
2039 # Redirect stdin to placate older versions of autoconf. Sigh.
2040 if (automake --version) < /dev/null > /dev/null 2>&1; then
2041 AUTOMAKE=automake
2042 echo "$ac_t""found" 1>&6
2043 else
2044 AUTOMAKE="$missing_dir/missing automake"
2045 echo "$ac_t""missing" 1>&6
2048 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2049 echo "configure:2050: checking for working autoheader" >&5
2050 # Run test in a subshell; some versions of sh will print an error if
2051 # an executable is not found, even if stderr is redirected.
2052 # Redirect stdin to placate older versions of autoconf. Sigh.
2053 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2054 AUTOHEADER=autoheader
2055 echo "$ac_t""found" 1>&6
2056 else
2057 AUTOHEADER="$missing_dir/missing autoheader"
2058 echo "$ac_t""missing" 1>&6
2061 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2062 echo "configure:2063: checking for working makeinfo" >&5
2063 # Run test in a subshell; some versions of sh will print an error if
2064 # an executable is not found, even if stderr is redirected.
2065 # Redirect stdin to placate older versions of autoconf. Sigh.
2066 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2067 MAKEINFO=makeinfo
2068 echo "$ac_t""found" 1>&6
2069 else
2070 MAKEINFO="$missing_dir/missing makeinfo"
2071 echo "$ac_t""missing" 1>&6
2078 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2079 echo "configure:2080: checking for executable suffix" >&5
2080 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2084 ac_cv_exeext=.exe
2085 else
2086 rm -f conftest*
2087 echo 'int main () { return 0; }' > conftest.$ac_ext
2088 ac_cv_exeext=
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2090 for file in conftest.*; do
2091 case $file in
2092 *.c | *.o | *.obj) ;;
2093 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2094 esac
2095 done
2096 else
2097 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2099 rm -f conftest*
2100 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2104 EXEEXT=""
2105 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2106 echo "$ac_t""${ac_cv_exeext}" 1>&6
2107 ac_exeext=$EXEEXT
2109 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether to enable maintainer-specific portions of Makefiles" >&5
2111 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2112 if test "${enable_maintainer_mode+set}" = set; then
2113 enableval="$enable_maintainer_mode"
2114 USE_MAINTAINER_MODE=$enableval
2115 else
2116 USE_MAINTAINER_MODE=no
2119 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2122 if test $USE_MAINTAINER_MODE = yes; then
2123 MAINTAINER_MODE_TRUE=
2124 MAINTAINER_MODE_FALSE='#'
2125 else
2126 MAINTAINER_MODE_TRUE='#'
2127 MAINTAINER_MODE_FALSE=
2129 MAINT=$MAINTAINER_MODE_TRUE
2133 # Extract the first word of "gcc", so it can be a program name with args.
2134 set dummy gcc; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_CC="gcc"
2149 break
2151 done
2152 IFS="$ac_save_ifs"
2155 CC="$ac_cv_prog_CC"
2156 if test -n "$CC"; then
2157 echo "$ac_t""$CC" 1>&6
2158 else
2159 echo "$ac_t""no" 1>&6
2162 if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164 set dummy cc; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_prog_rejected=no
2175 ac_dummy="$PATH"
2176 for ac_dir in $ac_dummy; do
2177 test -z "$ac_dir" && ac_dir=.
2178 if test -f $ac_dir/$ac_word; then
2179 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2180 ac_prog_rejected=yes
2181 continue
2183 ac_cv_prog_CC="cc"
2184 break
2186 done
2187 IFS="$ac_save_ifs"
2188 if test $ac_prog_rejected = yes; then
2189 # We found a bogon in the path, so make sure we never use it.
2190 set dummy $ac_cv_prog_CC
2191 shift
2192 if test $# -gt 0; then
2193 # We chose a different compiler from the bogus one.
2194 # However, it has the same basename, so the bogon will be chosen
2195 # first if we set CC to just the basename; use the full file name.
2196 shift
2197 set dummy "$ac_dir/$ac_word" "$@"
2198 shift
2199 ac_cv_prog_CC="$@"
2204 CC="$ac_cv_prog_CC"
2205 if test -n "$CC"; then
2206 echo "$ac_t""$CC" 1>&6
2207 else
2208 echo "$ac_t""no" 1>&6
2211 if test -z "$CC"; then
2212 case "`uname -s`" in
2213 *win32* | *WIN32*)
2214 # Extract the first word of "cl", so it can be a program name with args.
2215 set dummy cl; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 else
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2225 ac_dummy="$PATH"
2226 for ac_dir in $ac_dummy; do
2227 test -z "$ac_dir" && ac_dir=.
2228 if test -f $ac_dir/$ac_word; then
2229 ac_cv_prog_CC="cl"
2230 break
2232 done
2233 IFS="$ac_save_ifs"
2236 CC="$ac_cv_prog_CC"
2237 if test -n "$CC"; then
2238 echo "$ac_t""$CC" 1>&6
2239 else
2240 echo "$ac_t""no" 1>&6
2243 esac
2245 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2248 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2249 echo "configure:2250: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2251 ac_ext=c
2252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2256 cross_compiling=$ac_cv_prog_cc_cross
2258 cat > conftest.$ac_ext << EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2263 main(){return(0);}
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2266 ac_cv_prog_cc_works=yes
2267 # If we can't run a trivial program, we are probably using a cross compiler.
2268 if (./conftest; exit) 2>/dev/null; then
2269 ac_cv_prog_cc_cross=no
2270 else
2271 ac_cv_prog_cc_cross=yes
2273 else
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 ac_cv_prog_cc_works=no
2278 rm -fr conftest*
2279 ac_ext=c
2280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2284 cross_compiling=$ac_cv_prog_cc_cross
2286 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2287 if test $ac_cv_prog_cc_works = no; then
2288 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2290 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2292 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2293 cross_compiling=$ac_cv_prog_cc_cross
2295 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether we are using GNU C" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 cat > conftest.c <<EOF
2301 #ifdef __GNUC__
2302 yes;
2303 #endif
2305 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2306 ac_cv_prog_gcc=yes
2307 else
2308 ac_cv_prog_gcc=no
2312 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2314 if test $ac_cv_prog_gcc = yes; then
2315 GCC=yes
2316 else
2317 GCC=
2320 ac_test_CFLAGS="${CFLAGS+set}"
2321 ac_save_CFLAGS="$CFLAGS"
2322 CFLAGS=
2323 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2324 echo "configure:2325: checking whether ${CC-cc} accepts -g" >&5
2325 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327 else
2328 echo 'void f(){}' > conftest.c
2329 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2330 ac_cv_prog_cc_g=yes
2331 else
2332 ac_cv_prog_cc_g=no
2334 rm -f conftest*
2338 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2339 if test "$ac_test_CFLAGS" = set; then
2340 CFLAGS="$ac_save_CFLAGS"
2341 elif test $ac_cv_prog_cc_g = yes; then
2342 if test "$GCC" = yes; then
2343 CFLAGS="-g -O2"
2344 else
2345 CFLAGS="-g"
2347 else
2348 if test "$GCC" = yes; then
2349 CFLAGS="-O2"
2350 else
2351 CFLAGS=
2361 TARGETDIR="unknown"
2362 case "$host" in
2363 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2364 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2365 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2366 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2367 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2368 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2369 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2370 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2371 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2372 sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2373 sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2374 sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2375 alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
2376 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2377 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2378 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2379 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2380 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2381 esac
2383 if test $TARGETDIR = unknown; then
2384 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2389 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2390 MIPS_GCC_TRUE=
2391 MIPS_GCC_FALSE='#'
2392 else
2393 MIPS_GCC_TRUE='#'
2394 MIPS_GCC_FALSE=
2398 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2399 MIPS_SGI_TRUE=
2400 MIPS_SGI_FALSE='#'
2401 else
2402 MIPS_SGI_TRUE='#'
2403 MIPS_SGI_FALSE=
2407 if test x$TARGET = xSPARC; then
2408 SPARC_TRUE=
2409 SPARC_FALSE='#'
2410 else
2411 SPARC_TRUE='#'
2412 SPARC_FALSE=
2416 if test x$TARGET = xX86; then
2417 X86_TRUE=
2418 X86_FALSE='#'
2419 else
2420 X86_TRUE='#'
2421 X86_FALSE=
2425 if test x$TARGET = xX86_WIN32; then
2426 X86_WIN32_TRUE=
2427 X86_WIN32_FALSE='#'
2428 else
2429 X86_WIN32_TRUE='#'
2430 X86_WIN32_FALSE=
2434 if test x$TARGET = xALPHA; then
2435 ALPHA_TRUE=
2436 ALPHA_FALSE='#'
2437 else
2438 ALPHA_TRUE='#'
2439 ALPHA_FALSE=
2443 if test x$TARGET = xIA64; then
2444 IA64_TRUE=
2445 IA64_FALSE='#'
2446 else
2447 IA64_TRUE='#'
2448 IA64_FALSE=
2452 if test x$TARGET = xM68K; then
2453 M68K_TRUE=
2454 M68K_FALSE='#'
2455 else
2456 M68K_TRUE='#'
2457 M68K_FALSE=
2461 if test x$TARGET = xPOWERPC; then
2462 POWERPC_TRUE=
2463 POWERPC_FALSE='#'
2464 else
2465 POWERPC_TRUE='#'
2466 POWERPC_FALSE=
2470 if test x$TARGET = xARM; then
2471 ARM_TRUE=
2472 ARM_FALSE='#'
2473 else
2474 ARM_TRUE='#'
2475 ARM_FALSE=
2478 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2479 echo "configure:2480: checking how to run the C preprocessor" >&5
2480 # On Suns, sometimes $CPP names a directory.
2481 if test -n "$CPP" && test -d "$CPP"; then
2482 CPP=
2484 if test -z "$CPP"; then
2485 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 # This must be in double quotes, not single quotes, because CPP may get
2489 # substituted into the Makefile and "${CC-cc}" will confuse make.
2490 CPP="${CC-cc} -E"
2491 # On the NeXT, cc -E runs the code through the compiler's parser,
2492 # not just through cpp.
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <assert.h>
2497 Syntax Error
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 else
2505 echo "$ac_err" >&5
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -rf conftest*
2509 CPP="${CC-cc} -E -traditional-cpp"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <assert.h>
2514 Syntax Error
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2521 else
2522 echo "$ac_err" >&5
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 CPP="${CC-cc} -nologo -E"
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 #include <assert.h>
2531 Syntax Error
2533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2534 { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2536 if test -z "$ac_err"; then
2538 else
2539 echo "$ac_err" >&5
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 rm -rf conftest*
2543 CPP=/lib/cpp
2545 rm -f conftest*
2547 rm -f conftest*
2549 rm -f conftest*
2550 ac_cv_prog_CPP="$CPP"
2552 CPP="$ac_cv_prog_CPP"
2553 else
2554 ac_cv_prog_CPP="$CPP"
2556 echo "$ac_t""$CPP" 1>&6
2558 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2559 echo "configure:2560: checking for ANSI C header files" >&5
2560 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 #include <stdlib.h>
2567 #include <stdarg.h>
2568 #include <string.h>
2569 #include <float.h>
2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 { (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574 if test -z "$ac_err"; then
2575 rm -rf conftest*
2576 ac_cv_header_stdc=yes
2577 else
2578 echo "$ac_err" >&5
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 rm -rf conftest*
2582 ac_cv_header_stdc=no
2584 rm -f conftest*
2586 if test $ac_cv_header_stdc = yes; then
2587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 #include <string.h>
2593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2594 egrep "memchr" >/dev/null 2>&1; then
2596 else
2597 rm -rf conftest*
2598 ac_cv_header_stdc=no
2600 rm -f conftest*
2604 if test $ac_cv_header_stdc = yes; then
2605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <stdlib.h>
2611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2612 egrep "free" >/dev/null 2>&1; then
2614 else
2615 rm -rf conftest*
2616 ac_cv_header_stdc=no
2618 rm -f conftest*
2622 if test $ac_cv_header_stdc = yes; then
2623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2624 if test "$cross_compiling" = yes; then
2626 else
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <ctype.h>
2631 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2632 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2634 int main () { int i; for (i = 0; i < 256; i++)
2635 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2636 exit (0); }
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2640 then
2642 else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -fr conftest*
2646 ac_cv_header_stdc=no
2648 rm -fr conftest*
2654 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2655 if test $ac_cv_header_stdc = yes; then
2656 cat >> confdefs.h <<\EOF
2657 #define STDC_HEADERS 1
2662 for ac_func in memcpy
2664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_func" >&5
2666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* System header to define __stub macros and hopefully few prototypes,
2673 which can conflict with char $ac_func(); below. */
2674 #include <assert.h>
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2678 char $ac_func();
2680 int main() {
2682 /* The GNU C library defines this for functions which it implements
2683 to always fail with ENOSYS. Some functions are actually named
2684 something starting with __ and the normal name is an alias. */
2685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2686 choke me
2687 #else
2688 $ac_func();
2689 #endif
2691 ; return 0; }
2693 if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2694 rm -rf conftest*
2695 eval "ac_cv_func_$ac_func=yes"
2696 else
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 rm -rf conftest*
2700 eval "ac_cv_func_$ac_func=no"
2702 rm -f conftest*
2705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2708 cat >> confdefs.h <<EOF
2709 #define $ac_tr_func 1
2712 else
2713 echo "$ac_t""no" 1>&6
2715 done
2717 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2718 # for constant arguments. Useless!
2719 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2720 echo "configure:2721: checking for working alloca.h" >&5
2721 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2723 else
2724 cat > conftest.$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2727 #include <alloca.h>
2728 int main() {
2729 char *p = alloca(2 * sizeof(int));
2730 ; return 0; }
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2733 rm -rf conftest*
2734 ac_cv_header_alloca_h=yes
2735 else
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 rm -rf conftest*
2739 ac_cv_header_alloca_h=no
2741 rm -f conftest*
2744 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2745 if test $ac_cv_header_alloca_h = yes; then
2746 cat >> confdefs.h <<\EOF
2747 #define HAVE_ALLOCA_H 1
2752 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2753 echo "configure:2754: checking for alloca" >&5
2754 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2756 else
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2761 #ifdef __GNUC__
2762 # define alloca __builtin_alloca
2763 #else
2764 # ifdef _MSC_VER
2765 # include <malloc.h>
2766 # define alloca _alloca
2767 # else
2768 # if HAVE_ALLOCA_H
2769 # include <alloca.h>
2770 # else
2771 # ifdef _AIX
2772 #pragma alloca
2773 # else
2774 # ifndef alloca /* predefined by HP cc +Olibcalls */
2775 char *alloca ();
2776 # endif
2777 # endif
2778 # endif
2779 # endif
2780 #endif
2782 int main() {
2783 char *p = (char *) alloca(1);
2784 ; return 0; }
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2787 rm -rf conftest*
2788 ac_cv_func_alloca_works=yes
2789 else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 ac_cv_func_alloca_works=no
2795 rm -f conftest*
2798 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2799 if test $ac_cv_func_alloca_works = yes; then
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_ALLOCA 1
2806 if test $ac_cv_func_alloca_works = no; then
2807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2808 # that cause trouble. Some versions do not even contain alloca or
2809 # contain a buggy version. If you still want to use their alloca,
2810 # use ar to extract alloca.o from them instead of compiling alloca.c.
2811 ALLOCA=alloca.${ac_objext}
2812 cat >> confdefs.h <<\EOF
2813 #define C_ALLOCA 1
2817 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2818 echo "configure:2819: checking whether alloca needs Cray hooks" >&5
2819 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2821 else
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 #if defined(CRAY) && ! defined(CRAY2)
2826 webecray
2827 #else
2828 wenotbecray
2829 #endif
2832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2833 egrep "webecray" >/dev/null 2>&1; then
2834 rm -rf conftest*
2835 ac_cv_os_cray=yes
2836 else
2837 rm -rf conftest*
2838 ac_cv_os_cray=no
2840 rm -f conftest*
2844 echo "$ac_t""$ac_cv_os_cray" 1>&6
2845 if test $ac_cv_os_cray = yes; then
2846 for ac_func in _getb67 GETB67 getb67; do
2847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_func" >&5
2849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851 else
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* System header to define __stub macros and hopefully few prototypes,
2856 which can conflict with char $ac_func(); below. */
2857 #include <assert.h>
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2861 char $ac_func();
2863 int main() {
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2869 choke me
2870 #else
2871 $ac_func();
2872 #endif
2874 ; return 0; }
2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2877 rm -rf conftest*
2878 eval "ac_cv_func_$ac_func=yes"
2879 else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 eval "ac_cv_func_$ac_func=no"
2885 rm -f conftest*
2888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2889 echo "$ac_t""yes" 1>&6
2890 cat >> confdefs.h <<EOF
2891 #define CRAY_STACKSEG_END $ac_func
2894 break
2895 else
2896 echo "$ac_t""no" 1>&6
2899 done
2902 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2903 echo "configure:2904: checking stack direction for C alloca" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 if test "$cross_compiling" = yes; then
2908 ac_cv_c_stack_direction=0
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 find_stack_direction ()
2915 static char *addr = 0;
2916 auto char dummy;
2917 if (addr == 0)
2919 addr = &dummy;
2920 return find_stack_direction ();
2922 else
2923 return (&dummy > addr) ? 1 : -1;
2925 main ()
2927 exit (find_stack_direction() < 0);
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2931 then
2932 ac_cv_c_stack_direction=1
2933 else
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 rm -fr conftest*
2937 ac_cv_c_stack_direction=-1
2939 rm -fr conftest*
2944 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2945 cat >> confdefs.h <<EOF
2946 #define STACK_DIRECTION $ac_cv_c_stack_direction
2952 echo $ac_n "checking size of short""... $ac_c" 1>&6
2953 echo "configure:2954: checking size of short" >&5
2954 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2956 else
2957 if test "$cross_compiling" = yes; then
2958 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <stdio.h>
2964 main()
2966 FILE *f=fopen("conftestval", "w");
2967 if (!f) exit(1);
2968 fprintf(f, "%d\n", sizeof(short));
2969 exit(0);
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2973 then
2974 ac_cv_sizeof_short=`cat conftestval`
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -fr conftest*
2979 ac_cv_sizeof_short=0
2981 rm -fr conftest*
2985 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2986 cat >> confdefs.h <<EOF
2987 #define SIZEOF_SHORT $ac_cv_sizeof_short
2991 echo $ac_n "checking size of int""... $ac_c" 1>&6
2992 echo "configure:2993: checking size of int" >&5
2993 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2995 else
2996 if test "$cross_compiling" = yes; then
2997 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2998 else
2999 cat > conftest.$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 #include <stdio.h>
3003 main()
3005 FILE *f=fopen("conftestval", "w");
3006 if (!f) exit(1);
3007 fprintf(f, "%d\n", sizeof(int));
3008 exit(0);
3011 if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3012 then
3013 ac_cv_sizeof_int=`cat conftestval`
3014 else
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 rm -fr conftest*
3018 ac_cv_sizeof_int=0
3020 rm -fr conftest*
3024 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3025 cat >> confdefs.h <<EOF
3026 #define SIZEOF_INT $ac_cv_sizeof_int
3030 echo $ac_n "checking size of long""... $ac_c" 1>&6
3031 echo "configure:3032: checking size of long" >&5
3032 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034 else
3035 if test "$cross_compiling" = yes; then
3036 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3037 else
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 #include <stdio.h>
3042 main()
3044 FILE *f=fopen("conftestval", "w");
3045 if (!f) exit(1);
3046 fprintf(f, "%d\n", sizeof(long));
3047 exit(0);
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051 then
3052 ac_cv_sizeof_long=`cat conftestval`
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -fr conftest*
3057 ac_cv_sizeof_long=0
3059 rm -fr conftest*
3063 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3064 cat >> confdefs.h <<EOF
3065 #define SIZEOF_LONG $ac_cv_sizeof_long
3069 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3070 echo "configure:3071: checking size of long long" >&5
3071 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3073 else
3074 if test "$cross_compiling" = yes; then
3075 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3076 else
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <stdio.h>
3081 main()
3083 FILE *f=fopen("conftestval", "w");
3084 if (!f) exit(1);
3085 fprintf(f, "%d\n", sizeof(long long));
3086 exit(0);
3089 if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3090 then
3091 ac_cv_sizeof_long_long=`cat conftestval`
3092 else
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 rm -fr conftest*
3096 ac_cv_sizeof_long_long=0
3098 rm -fr conftest*
3102 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3103 cat >> confdefs.h <<EOF
3104 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3108 echo $ac_n "checking size of float""... $ac_c" 1>&6
3109 echo "configure:3110: checking size of float" >&5
3110 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113 if test "$cross_compiling" = yes; then
3114 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3115 else
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <stdio.h>
3120 main()
3122 FILE *f=fopen("conftestval", "w");
3123 if (!f) exit(1);
3124 fprintf(f, "%d\n", sizeof(float));
3125 exit(0);
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3129 then
3130 ac_cv_sizeof_float=`cat conftestval`
3131 else
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 rm -fr conftest*
3135 ac_cv_sizeof_float=0
3137 rm -fr conftest*
3141 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3142 cat >> confdefs.h <<EOF
3143 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3147 echo $ac_n "checking size of double""... $ac_c" 1>&6
3148 echo "configure:3149: checking size of double" >&5
3149 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3151 else
3152 if test "$cross_compiling" = yes; then
3153 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3154 else
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 #include <stdio.h>
3159 main()
3161 FILE *f=fopen("conftestval", "w");
3162 if (!f) exit(1);
3163 fprintf(f, "%d\n", sizeof(double));
3164 exit(0);
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3168 then
3169 ac_cv_sizeof_double=`cat conftestval`
3170 else
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3173 rm -fr conftest*
3174 ac_cv_sizeof_double=0
3176 rm -fr conftest*
3180 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3181 cat >> confdefs.h <<EOF
3182 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3186 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3187 echo "configure:3188: checking size of long double" >&5
3188 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190 else
3191 if test "$cross_compiling" = yes; then
3192 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3193 else
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <stdio.h>
3198 main()
3200 FILE *f=fopen("conftestval", "w");
3201 if (!f) exit(1);
3202 fprintf(f, "%d\n", sizeof(long double));
3203 exit(0);
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3207 then
3208 ac_cv_sizeof_long_double=`cat conftestval`
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -fr conftest*
3213 ac_cv_sizeof_long_double=0
3215 rm -fr conftest*
3219 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3220 cat >> confdefs.h <<EOF
3221 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3226 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3227 echo "configure:3228: checking size of void *" >&5
3228 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231 if test "$cross_compiling" = yes; then
3232 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3233 else
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <stdio.h>
3238 main()
3240 FILE *f=fopen("conftestval", "w");
3241 if (!f) exit(1);
3242 fprintf(f, "%d\n", sizeof(void *));
3243 exit(0);
3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3247 then
3248 ac_cv_sizeof_void_p=`cat conftestval`
3249 else
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -fr conftest*
3253 ac_cv_sizeof_void_p=0
3255 rm -fr conftest*
3259 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3260 cat >> confdefs.h <<EOF
3261 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3265 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3266 echo "configure:3267: checking whether byte ordering is bigendian" >&5
3267 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 ac_cv_c_bigendian=unknown
3271 # See if sys/param.h defines the BYTE_ORDER macro.
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 #include <sys/types.h>
3276 #include <sys/param.h>
3277 int main() {
3279 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3280 bogus endian macros
3281 #endif
3282 ; return 0; }
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285 rm -rf conftest*
3286 # It does; now see whether it defined to BIG_ENDIAN or not.
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3291 #include <sys/param.h>
3292 int main() {
3294 #if BYTE_ORDER != BIG_ENDIAN
3295 not big endian
3296 #endif
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 rm -rf conftest*
3301 ac_cv_c_bigendian=yes
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -rf conftest*
3306 ac_cv_c_bigendian=no
3308 rm -f conftest*
3309 else
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3313 rm -f conftest*
3314 if test $ac_cv_c_bigendian = unknown; then
3315 if test "$cross_compiling" = yes; then
3316 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3317 else
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 main () {
3322 /* Are we little or big endian? From Harbison&Steele. */
3323 union
3325 long l;
3326 char c[sizeof (long)];
3327 } u;
3328 u.l = 1;
3329 exit (u.c[sizeof (long) - 1] == 1);
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3333 then
3334 ac_cv_c_bigendian=no
3335 else
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 rm -fr conftest*
3339 ac_cv_c_bigendian=yes
3341 rm -fr conftest*
3347 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3348 if test $ac_cv_c_bigendian = yes; then
3349 cat >> confdefs.h <<\EOF
3350 #define WORDS_BIGENDIAN 1
3361 # Check whether --enable-debug or --disable-debug was given.
3362 if test "${enable_debug+set}" = set; then
3363 enableval="$enable_debug"
3364 cat >> confdefs.h <<\EOF
3365 #define FFI_DEBUG 1
3371 # Check whether --enable-debug or --disable-debug was given.
3372 if test "${enable_debug+set}" = set; then
3373 enableval="$enable_debug"
3374 cat >> confdefs.h <<\EOF
3375 #define FFI_NO_STRUCTS 1
3381 # Check whether --enable-debug or --disable-debug was given.
3382 if test "${enable_debug+set}" = set; then
3383 enableval="$enable_debug"
3384 cat >> confdefs.h <<\EOF
3385 #define FFI_NO_RAW_API 1
3391 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3392 if test "${enable_purify_safety+set}" = set; then
3393 enableval="$enable_purify_safety"
3394 cat >> confdefs.h <<\EOF
3395 #define USING_PURIFY 1
3403 if test -z "$with_cross_host"; then
3404 USE_LIBDIR_TRUE=
3405 USE_LIBDIR_FALSE='#'
3406 else
3407 USE_LIBDIR_TRUE='#'
3408 USE_LIBDIR_FALSE=
3411 if test "${multilib}" = "yes"; then
3412 multilib_arg="--enable-multilib"
3413 else
3414 multilib_arg=
3417 trap '' 1 2 15
3418 cat > confcache <<\EOF
3419 # This file is a shell script that caches the results of configure
3420 # tests run on this system so they can be shared between configure
3421 # scripts and configure runs. It is not useful on other systems.
3422 # If it contains results you don't want to keep, you may remove or edit it.
3424 # By default, configure uses ./config.cache as the cache file,
3425 # creating it if it does not exist already. You can give configure
3426 # the --cache-file=FILE option to use a different cache file; that is
3427 # what configure does when it calls configure scripts in
3428 # subdirectories, so they share the cache.
3429 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3430 # config.status only pays attention to the cache file if you give it the
3431 # --recheck option to rerun configure.
3434 # The following way of writing the cache mishandles newlines in values,
3435 # but we know of no workaround that is simple, portable, and efficient.
3436 # So, don't put newlines in cache variables' values.
3437 # Ultrix sh set writes to stderr and can't be redirected directly,
3438 # and sets the high bit in the cache file unless we assign to the vars.
3439 (set) 2>&1 |
3440 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3441 *ac_space=\ *)
3442 # `set' does not quote correctly, so add quotes (double-quote substitution
3443 # turns \\\\ into \\, and sed turns \\ into \).
3444 sed -n \
3445 -e "s/'/'\\\\''/g" \
3446 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3449 # `set' quotes correctly as required by POSIX, so do not add quotes.
3450 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3452 esac >> confcache
3453 if cmp -s $cache_file confcache; then
3455 else
3456 if test -w $cache_file; then
3457 echo "updating cache $cache_file"
3458 cat confcache > $cache_file
3459 else
3460 echo "not updating unwritable cache $cache_file"
3463 rm -f confcache
3465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3468 # Let make expand exec_prefix.
3469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3471 # Any assignment to VPATH causes Sun make to only execute
3472 # the first set of double-colon rules, so remove it if not needed.
3473 # If there is a colon in the path, we need to keep it.
3474 if test "x$srcdir" = x.; then
3475 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3478 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3480 DEFS=-DHAVE_CONFIG_H
3482 # Without the "./", some shells look in PATH for config.status.
3483 : ${CONFIG_STATUS=./config.status}
3485 echo creating $CONFIG_STATUS
3486 rm -f $CONFIG_STATUS
3487 cat > $CONFIG_STATUS <<EOF
3488 #! /bin/sh
3489 # Generated automatically by configure.
3490 # Run this file to recreate the current configuration.
3491 # This directory was configured as follows,
3492 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3494 # $0 $ac_configure_args
3496 # Compiler output produced by configure, useful for debugging
3497 # configure, is in ./config.log if it exists.
3499 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3500 for ac_option
3502 case "\$ac_option" in
3503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3504 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3505 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3506 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3507 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3508 exit 0 ;;
3509 -help | --help | --hel | --he | --h)
3510 echo "\$ac_cs_usage"; exit 0 ;;
3511 *) echo "\$ac_cs_usage"; exit 1 ;;
3512 esac
3513 done
3515 ac_given_srcdir=$srcdir
3516 ac_given_INSTALL="$INSTALL"
3518 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3520 cat >> $CONFIG_STATUS <<EOF
3522 # Protect against being on the right side of a sed subst in config.status.
3523 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3524 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3525 $ac_vpsub
3526 $extrasub
3527 s%@SHELL@%$SHELL%g
3528 s%@CFLAGS@%$CFLAGS%g
3529 s%@CPPFLAGS@%$CPPFLAGS%g
3530 s%@CXXFLAGS@%$CXXFLAGS%g
3531 s%@FFLAGS@%$FFLAGS%g
3532 s%@DEFS@%$DEFS%g
3533 s%@LDFLAGS@%$LDFLAGS%g
3534 s%@LIBS@%$LIBS%g
3535 s%@exec_prefix@%$exec_prefix%g
3536 s%@prefix@%$prefix%g
3537 s%@program_transform_name@%$program_transform_name%g
3538 s%@bindir@%$bindir%g
3539 s%@sbindir@%$sbindir%g
3540 s%@libexecdir@%$libexecdir%g
3541 s%@datadir@%$datadir%g
3542 s%@sysconfdir@%$sysconfdir%g
3543 s%@sharedstatedir@%$sharedstatedir%g
3544 s%@localstatedir@%$localstatedir%g
3545 s%@libdir@%$libdir%g
3546 s%@includedir@%$includedir%g
3547 s%@oldincludedir@%$oldincludedir%g
3548 s%@infodir@%$infodir%g
3549 s%@mandir@%$mandir%g
3550 s%@libffi_basedir@%$libffi_basedir%g
3551 s%@host@%$host%g
3552 s%@host_alias@%$host_alias%g
3553 s%@host_cpu@%$host_cpu%g
3554 s%@host_vendor@%$host_vendor%g
3555 s%@host_os@%$host_os%g
3556 s%@build@%$build%g
3557 s%@build_alias@%$build_alias%g
3558 s%@build_cpu@%$build_cpu%g
3559 s%@build_vendor@%$build_vendor%g
3560 s%@build_os@%$build_os%g
3561 s%@CC@%$CC%g
3562 s%@LN_S@%$LN_S%g
3563 s%@OBJEXT@%$OBJEXT%g
3564 s%@EXEEXT@%$EXEEXT%g
3565 s%@RANLIB@%$RANLIB%g
3566 s%@STRIP@%$STRIP%g
3567 s%@LIBTOOL@%$LIBTOOL%g
3568 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3569 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3570 s%@INSTALL_DATA@%$INSTALL_DATA%g
3571 s%@PACKAGE@%$PACKAGE%g
3572 s%@VERSION@%$VERSION%g
3573 s%@ACLOCAL@%$ACLOCAL%g
3574 s%@AUTOCONF@%$AUTOCONF%g
3575 s%@AUTOMAKE@%$AUTOMAKE%g
3576 s%@AUTOHEADER@%$AUTOHEADER%g
3577 s%@MAKEINFO@%$MAKEINFO%g
3578 s%@SET_MAKE@%$SET_MAKE%g
3579 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3580 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3581 s%@MAINT@%$MAINT%g
3582 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3583 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3584 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3585 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3586 s%@SPARC_TRUE@%$SPARC_TRUE%g
3587 s%@SPARC_FALSE@%$SPARC_FALSE%g
3588 s%@X86_TRUE@%$X86_TRUE%g
3589 s%@X86_FALSE@%$X86_FALSE%g
3590 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3591 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3592 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3593 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3594 s%@IA64_TRUE@%$IA64_TRUE%g
3595 s%@IA64_FALSE@%$IA64_FALSE%g
3596 s%@M68K_TRUE@%$M68K_TRUE%g
3597 s%@M68K_FALSE@%$M68K_FALSE%g
3598 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3599 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3600 s%@ARM_TRUE@%$ARM_TRUE%g
3601 s%@ARM_FALSE@%$ARM_FALSE%g
3602 s%@CPP@%$CPP%g
3603 s%@ALLOCA@%$ALLOCA%g
3604 s%@TARGET@%$TARGET%g
3605 s%@TARGETDIR@%$TARGETDIR%g
3606 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3607 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3609 CEOF
3612 cat >> $CONFIG_STATUS <<\EOF
3614 # Split the substitutions into bite-sized pieces for seds with
3615 # small command number limits, like on Digital OSF/1 and HP-UX.
3616 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3617 ac_file=1 # Number of current file.
3618 ac_beg=1 # First line for current file.
3619 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3620 ac_more_lines=:
3621 ac_sed_cmds=""
3622 while $ac_more_lines; do
3623 if test $ac_beg -gt 1; then
3624 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3625 else
3626 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3628 if test ! -s conftest.s$ac_file; then
3629 ac_more_lines=false
3630 rm -f conftest.s$ac_file
3631 else
3632 if test -z "$ac_sed_cmds"; then
3633 ac_sed_cmds="sed -f conftest.s$ac_file"
3634 else
3635 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3637 ac_file=`expr $ac_file + 1`
3638 ac_beg=$ac_end
3639 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3641 done
3642 if test -z "$ac_sed_cmds"; then
3643 ac_sed_cmds=cat
3647 cat >> $CONFIG_STATUS <<EOF
3649 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3651 cat >> $CONFIG_STATUS <<\EOF
3652 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3654 case "$ac_file" in
3655 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3656 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3657 *) ac_file_in="${ac_file}.in" ;;
3658 esac
3660 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3662 # Remove last slash and all that follows it. Not all systems have dirname.
3663 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3665 # The file is in a subdirectory.
3666 test ! -d "$ac_dir" && mkdir "$ac_dir"
3667 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3668 # A "../" for each directory in $ac_dir_suffix.
3669 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3670 else
3671 ac_dir_suffix= ac_dots=
3674 case "$ac_given_srcdir" in
3675 .) srcdir=.
3676 if test -z "$ac_dots"; then top_srcdir=.
3677 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3678 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3679 *) # Relative path.
3680 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3681 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3682 esac
3684 case "$ac_given_INSTALL" in
3685 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3686 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3687 esac
3689 echo creating "$ac_file"
3690 rm -f "$ac_file"
3691 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3692 case "$ac_file" in
3693 *Makefile*) ac_comsub="1i\\
3694 # $configure_input" ;;
3695 *) ac_comsub= ;;
3696 esac
3698 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3699 sed -e "$ac_comsub
3700 s%@configure_input@%$configure_input%g
3701 s%@srcdir@%$srcdir%g
3702 s%@top_srcdir@%$top_srcdir%g
3703 s%@INSTALL@%$INSTALL%g
3704 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3705 fi; done
3706 rm -f conftest.s*
3708 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3709 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3711 # ac_d sets the value in "#define NAME VALUE" lines.
3712 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3713 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3714 ac_dC='\3'
3715 ac_dD='%g'
3716 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3717 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3718 ac_uB='\([ ]\)%\1#\2define\3'
3719 ac_uC=' '
3720 ac_uD='\4%g'
3721 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3722 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3723 ac_eB='$%\1#\2define\3'
3724 ac_eC=' '
3725 ac_eD='%g'
3727 if test "${CONFIG_HEADERS+set}" != set; then
3729 cat >> $CONFIG_STATUS <<EOF
3730 CONFIG_HEADERS="fficonfig.h"
3732 cat >> $CONFIG_STATUS <<\EOF
3734 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3736 case "$ac_file" in
3737 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3738 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3739 *) ac_file_in="${ac_file}.in" ;;
3740 esac
3742 echo creating $ac_file
3744 rm -f conftest.frag conftest.in conftest.out
3745 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3746 cat $ac_file_inputs > conftest.in
3750 # Transform confdefs.h into a sed script conftest.vals that substitutes
3751 # the proper values into config.h.in to produce config.h. And first:
3752 # Protect against being on the right side of a sed subst in config.status.
3753 # Protect against being in an unquoted here document in config.status.
3754 rm -f conftest.vals
3755 cat > conftest.hdr <<\EOF
3756 s/[\\&%]/\\&/g
3757 s%[\\$`]%\\&%g
3758 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3759 s%ac_d%ac_u%gp
3760 s%ac_u%ac_e%gp
3762 sed -n -f conftest.hdr confdefs.h > conftest.vals
3763 rm -f conftest.hdr
3765 # This sed command replaces #undef with comments. This is necessary, for
3766 # example, in the case of _POSIX_SOURCE, which is predefined and required
3767 # on some systems where configure will not decide to define it.
3768 cat >> conftest.vals <<\EOF
3769 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3772 # Break up conftest.vals because some shells have a limit on
3773 # the size of here documents, and old seds have small limits too.
3775 rm -f conftest.tail
3776 while :
3778 ac_lines=`grep -c . conftest.vals`
3779 # grep -c gives empty output for an empty file on some AIX systems.
3780 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3781 # Write a limited-size here document to conftest.frag.
3782 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3783 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3784 echo 'CEOF
3785 sed -f conftest.frag conftest.in > conftest.out
3786 rm -f conftest.in
3787 mv conftest.out conftest.in
3788 ' >> $CONFIG_STATUS
3789 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3790 rm -f conftest.vals
3791 mv conftest.tail conftest.vals
3792 done
3793 rm -f conftest.vals
3795 cat >> $CONFIG_STATUS <<\EOF
3796 rm -f conftest.frag conftest.h
3797 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3798 cat conftest.in >> conftest.h
3799 rm -f conftest.in
3800 if cmp -s $ac_file conftest.h 2>/dev/null; then
3801 echo "$ac_file is unchanged"
3802 rm -f conftest.h
3803 else
3804 # Remove last slash and all that follows it. Not all systems have dirname.
3805 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3807 # The file is in a subdirectory.
3808 test ! -d "$ac_dir" && mkdir "$ac_dir"
3810 rm -f $ac_file
3811 mv conftest.h $ac_file
3813 fi; done
3816 cat >> $CONFIG_STATUS <<EOF
3818 srcdir=${srcdir}
3819 host=${host}
3820 target=${target}
3821 with_multisubdir=${with_multisubdir}
3822 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3823 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3824 libffi_basedir=${libffi_basedir}
3825 CC="${CC}"
3826 DEFS="$DEFS"
3827 test ! -d include && mkdir include
3828 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3829 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3830 echo fficonfig.h unchanged
3831 else
3832 echo Moving fficonfig.h to include/fficonfig.h
3833 cp fficonfig.h include/fficonfig.h
3837 cat >> $CONFIG_STATUS <<\EOF
3838 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3840 if test -n "$CONFIG_FILES"; then
3841 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3844 exit 0
3846 chmod +x $CONFIG_STATUS
3847 rm -fr confdefs* $ac_clean_files
3848 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3851 # Make target subdirectories if required.
3852 test -d src || mkdir src
3853 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}