source: trunk/src/gcc/libffi/configure@ 1124

Last change on this file since 1124 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

  • Property cvs2svn:cvs-rev set to 1.4
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 118.5 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18ac_help="$ac_help
19 --enable-static[=PKGS] build static libraries [default=yes]"
20ac_help="$ac_help
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24ac_help="$ac_help
25 --disable-libtool-lock avoid locking (might break parallel builds)"
26ac_help="$ac_help
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
28ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
31ac_help="$ac_help
32 --enable-debug debugging mode"
33ac_help="$ac_help
34 --disable-structs omit code for struct support"
35ac_help="$ac_help
36 --disable-raw-api make the raw api unavailable"
37ac_help="$ac_help
38 --enable-purify-safety purify-safe mode"
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
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
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
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" ;;
117
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" ;;
123
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; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
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; }
138 fi
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'" ;;
145
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" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
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
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
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
171Directory 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
195EOF
196 cat << EOF
197Host 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]
201Features 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
208EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
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" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
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" ;;
242
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" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
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 ;;
268
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" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
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" ;;
289
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" ;;
296
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" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
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" ;;
323
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" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
344
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" ;;
351
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
356
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
359
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
363
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; }
369 fi
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'" ;;
376
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; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
385
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
389
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" ;;
396
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" ;;
403
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 ;;
406
407 *)
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
410 fi
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; }
413 fi
414 nonopt="$ac_option"
415 ;;
416
417 esac
418done
419
420if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
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
434if test "$silent" = yes; then
435 exec 6>/dev/null
436else
437 exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
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
460done
461
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.
467if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
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.
479ac_unique_file=fficonfig.h.in
480
481# Find the source files, if location was not specified.
482if 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=..
491 fi
492else
493 ac_srcdir_defaulted=no
494fi
495if 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; }
500 fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
505if 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"
510 fi
511fi
512for 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"
516 fi
517done
518
519if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522else
523 echo "creating cache $cache_file"
524 > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (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=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548echo $ac_n "checking for path separator""... $ac_c" 1>&6
549echo "configure:550: checking for path separator" >&5
550# Filter path to get backslahes into forwardslashes
551case "`uname -s 2> /dev/null`" in
552OS/2)
553 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
554 PATH_IFS=';'
555 ;;
556*)
557 PATH_IFS=':'
558 ;;
559esac
560echo "$ac_t""${PATH_IFS}" 1>&6
561
562echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
563echo "configure:564: checking for Cygwin environment" >&5
564if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566else
567 cat > conftest.$ac_ext <<EOF
568#line 569 "configure"
569#include "confdefs.h"
570
571int main() {
572
573#ifndef __CYGWIN__
574#define __CYGWIN__ __CYGWIN32__
575#endif
576return __CYGWIN__;
577; return 0; }
578EOF
579if { (eval echo configure:580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 rm -rf conftest*
581 ac_cv_cygwin=yes
582else
583 echo "configure: failed program was:" >&5
584 cat conftest.$ac_ext >&5
585 rm -rf conftest*
586 ac_cv_cygwin=no
587fi
588rm -f conftest*
589rm -f conftest*
590fi
591
592echo "$ac_t""$ac_cv_cygwin" 1>&6
593CYGWIN=
594test "$ac_cv_cygwin" = yes && CYGWIN=yes
595echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
596echo "configure:597: checking for mingw32 environment" >&5
597if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
599else
600 cat > conftest.$ac_ext <<EOF
601#line 602 "configure"
602#include "confdefs.h"
603
604int main() {
605return __MINGW32__;
606; return 0; }
607EOF
608if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 rm -rf conftest*
610 ac_cv_mingw32=yes
611else
612 echo "configure: failed program was:" >&5
613 cat conftest.$ac_ext >&5
614 rm -rf conftest*
615 ac_cv_mingw32=no
616fi
617rm -f conftest*
618rm -f conftest*
619fi
620
621echo "$ac_t""$ac_cv_mingw32" 1>&6
622MINGW32=
623test "$ac_cv_mingw32" = yes && MINGW32=yes
624echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
625echo "configure:626: checking for EMX/OS2 environment" >&5
626if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 : ${CC=gcc.exe}
630cat > conftest.$ac_ext <<EOF
631#line 632 "configure"
632#include "confdefs.h"
633
634int main() {
635return __EMX__;
636; return 0; }
637EOF
638if { (eval echo configure:639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
639 rm -rf conftest*
640 ac_cv_emxos2=yes
641else
642 echo "configure: failed program was:" >&5
643 cat conftest.$ac_ext >&5
644 rm -rf conftest*
645 ac_cv_emxos2=no
646fi
647rm -f conftest*
648rm -f conftest*
649fi
650
651echo "$ac_t""$ac_cv_emxos2" 1>&6
652if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654else
655 if test "$ac_cv_emxos2" = yes ; then
656 ac_cv_libpre=
657else
658 ac_cv_libpre=lib
659fi
660
661fi
662
663EMXOS2=
664test "$ac_cv_emxos2" = yes && EMXOS2=yes
665
666
667
668echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
669echo "configure:670: checking for executable suffix" >&5
670if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672else
673 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
674 ac_cv_exeext=.exe
675else
676 rm -f conftest*
677 echo 'int main () { return 0; }' > conftest.$ac_ext
678 ac_cv_exeext=
679 if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
680 for file in conftest.*; do
681 case $file in
682 *.c | *.o | *.obj) ;;
683 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
684 esac
685 done
686 else
687 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
688 fi
689 rm -f conftest*
690 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
691fi
692fi
693
694EXEEXT=""
695test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
696echo "$ac_t""${ac_cv_exeext}" 1>&6
697ac_exeext=$EXEEXT
698
699
700
701
702
703
704# This works around the fact that libtool configuration may change LD
705# for this particular configuration, but some shells, instead of
706# keeping the changes in LD private, export them just because LD is
707# exported.
708ORIGINAL_LD_FOR_MULTILIBS=$LD
709
710# Check whether --enable-multilib or --disable-multilib was given.
711if test "${enable_multilib+set}" = set; then
712 enableval="$enable_multilib"
713 case "${enableval}" in
714 yes) multilib=yes ;;
715 no) multilib=no ;;
716 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
717 esac
718else
719 multilib=yes
720fi
721
722
723if test "${srcdir}" = "."; then
724 if test "${with_target_subdir}" != "."; then
725 libffi_basedir="${srcdir}/${with_multisrctop}.."
726 else
727 libffi_basedir="${srcdir}/${with_multisrctop}"
728 fi
729else
730 libffi_basedir="${srcdir}"
731fi
732
733
734ac_aux_dir=
735for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
736 if test -f $ac_dir/install-sh; then
737 ac_aux_dir=$ac_dir
738 ac_install_sh="$ac_aux_dir/install-sh -c"
739 break
740 elif test -f $ac_dir/install.sh; then
741 ac_aux_dir=$ac_dir
742 ac_install_sh="$ac_aux_dir/install.sh -c"
743 break
744 fi
745done
746if test -z "$ac_aux_dir"; then
747 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
748fi
749ac_config_guess=$ac_aux_dir/config.guess
750ac_config_sub=$ac_aux_dir/config.sub
751ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
752
753
754# Make sure we can run config.sub.
755if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
756else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
757fi
758
759echo $ac_n "checking host system type""... $ac_c" 1>&6
760echo "configure:761: checking host system type" >&5
761
762host_alias=$host
763case "$host_alias" in
764NONE)
765 case $nonopt in
766 NONE)
767 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
768 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
769 fi ;;
770 *) host_alias=$nonopt ;;
771 esac ;;
772esac
773
774host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
775host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778echo "$ac_t""$host" 1>&6
779
780
781# Check whether --enable-shared or --disable-shared was given.
782if test "${enable_shared+set}" = set; then
783 enableval="$enable_shared"
784 p=${PACKAGE-default}
785case $enableval in
786yes) enable_shared=yes ;;
787no) enable_shared=no ;;
788*)
789 enable_shared=no
790 # Look at the argument we got. We use all the common list separators.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
792 for pkg in $enableval; do
793 if test "X$pkg" = "X$p"; then
794 enable_shared=yes
795 fi
796 done
797 IFS="$ac_save_ifs"
798 ;;
799esac
800else
801 enable_shared=yes
802fi
803
804# Check whether --enable-static or --disable-static was given.
805if test "${enable_static+set}" = set; then
806 enableval="$enable_static"
807 p=${PACKAGE-default}
808case $enableval in
809yes) enable_static=yes ;;
810no) enable_static=no ;;
811*)
812 enable_static=no
813 # Look at the argument we got. We use all the common list separators.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
815 for pkg in $enableval; do
816 if test "X$pkg" = "X$p"; then
817 enable_static=yes
818 fi
819 done
820 IFS="$ac_save_ifs"
821 ;;
822esac
823else
824 enable_static=yes
825fi
826
827# Check whether --enable-fast-install or --disable-fast-install was given.
828if test "${enable_fast_install+set}" = set; then
829 enableval="$enable_fast_install"
830 p=${PACKAGE-default}
831case $enableval in
832yes) enable_fast_install=yes ;;
833no) enable_fast_install=no ;;
834*)
835 enable_fast_install=no
836 # Look at the argument we got. We use all the common list separators.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
838 for pkg in $enableval; do
839 if test "X$pkg" = "X$p"; then
840 enable_fast_install=yes
841 fi
842 done
843 IFS="$ac_save_ifs"
844 ;;
845esac
846else
847 enable_fast_install=yes
848fi
849
850echo $ac_n "checking build system type""... $ac_c" 1>&6
851echo "configure:852: checking build system type" >&5
852
853build_alias=$build
854case "$build_alias" in
855NONE)
856 case $nonopt in
857 NONE) build_alias=$host_alias ;;
858 *) build_alias=$nonopt ;;
859 esac ;;
860esac
861
862build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
863build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
864build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
865build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
866echo "$ac_t""$build" 1>&6
867
868# Extract the first word of "gcc", so it can be a program name with args.
869set dummy gcc; ac_word=$2
870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871echo "configure:872: checking for $ac_word" >&5
872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874else
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
877else
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
879 ac_dummy="$PATH"
880 for ac_dir in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word -o \
883 -f $ac_dir/$ac_word$ac_exeext ; then
884 ac_cv_prog_CC="gcc"
885 break
886 fi
887 done
888 IFS="$ac_save_ifs"
889fi
890fi
891CC="$ac_cv_prog_CC"
892if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
894else
895 echo "$ac_t""no" 1>&6
896fi
897
898if test -z "$CC"; then
899 # Extract the first word of "cc", so it can be a program name with args.
900set dummy cc; ac_word=$2
901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902echo "configure:903: checking for $ac_word" >&5
903if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905else
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
908else
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
910 ac_prog_rejected=no
911 ac_dummy="$PATH"
912 for ac_dir in $ac_dummy; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word -o \
915 -f $ac_dir/$ac_word$ac_exeext ; then
916 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
917 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
918 ac_prog_rejected=yes
919 continue
920 fi
921 ac_cv_prog_CC="cc"
922 break
923 fi
924 done
925 IFS="$ac_save_ifs"
926if test $ac_prog_rejected = yes; then
927 # We found a bogon in the path, so make sure we never use it.
928 set dummy $ac_cv_prog_CC
929 shift
930 if test $# -gt 0; then
931 # We chose a different compiler from the bogus one.
932 # However, it has the same basename, so the bogon will be chosen
933 # first if we set CC to just the basename; use the full file name.
934 shift
935 set dummy "$ac_dir/$ac_word" "$@"
936 shift
937 ac_cv_prog_CC="$@"
938 fi
939fi
940fi
941fi
942CC="$ac_cv_prog_CC"
943if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
945else
946 echo "$ac_t""no" 1>&6
947fi
948
949 if test -z "$CC"; then
950 case "`uname -s`" in
951 *win32* | *WIN32*)
952 # Extract the first word of "cl", so it can be a program name with args.
953set dummy cl; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955echo "configure:956: checking for $ac_word" >&5
956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958else
959 if test -n "$CC"; then
960 ac_cv_prog_CC="$CC" # Let the user override the test.
961else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word -o \
967 -f $ac_dir/$ac_word$ac_exeext ; then
968 ac_cv_prog_CC="cl"
969 break
970 fi
971 done
972 IFS="$ac_save_ifs"
973fi
974fi
975CC="$ac_cv_prog_CC"
976if test -n "$CC"; then
977 echo "$ac_t""$CC" 1>&6
978else
979 echo "$ac_t""no" 1>&6
980fi
981 ;;
982 esac
983 fi
984 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
985fi
986
987echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
988echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
989
990ac_ext=c
991# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992ac_cpp='$CPP $CPPFLAGS'
993ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995cross_compiling=$ac_cv_prog_cc_cross
996
997cat > conftest.$ac_ext << EOF
998
999#line 1000 "configure"
1000#include "confdefs.h"
1001
1002main(){return(0);}
1003EOF
1004if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1005 ac_cv_prog_cc_works=yes
1006 # If we can't run a trivial program, we are probably using a cross compiler.
1007 if (./conftest; exit) 2>/dev/null; then
1008 ac_cv_prog_cc_cross=no
1009 else
1010 ac_cv_prog_cc_cross=yes
1011 fi
1012else
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1015 ac_cv_prog_cc_works=no
1016fi
1017rm -fr conftest*
1018ac_ext=c
1019# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1020ac_cpp='$CPP $CPPFLAGS'
1021ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1022ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1023cross_compiling=$ac_cv_prog_cc_cross
1024
1025echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1026if test $ac_cv_prog_cc_works = no; then
1027 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1028fi
1029echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1030echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1031echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1032cross_compiling=$ac_cv_prog_cc_cross
1033
1034echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1035echo "configure:1036: checking whether we are using GNU C" >&5
1036if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038else
1039 cat > conftest.c <<EOF
1040#ifdef __GNUC__
1041 yes;
1042#endif
1043EOF
1044if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1045 ac_cv_prog_gcc=yes
1046else
1047 ac_cv_prog_gcc=no
1048fi
1049fi
1050
1051echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1052
1053if test $ac_cv_prog_gcc = yes; then
1054 GCC=yes
1055else
1056 GCC=
1057fi
1058
1059ac_test_CFLAGS="${CFLAGS+set}"
1060ac_save_CFLAGS="$CFLAGS"
1061CFLAGS=
1062echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1063echo "configure:1064: checking whether ${CC-cc} accepts -g" >&5
1064if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067 echo 'void f(){}' > conftest.c
1068if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1069 ac_cv_prog_cc_g=yes
1070else
1071 ac_cv_prog_cc_g=no
1072fi
1073rm -f conftest*
1074
1075fi
1076
1077echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1078if test "$ac_test_CFLAGS" = set; then
1079 CFLAGS="$ac_save_CFLAGS"
1080elif test $ac_cv_prog_cc_g = yes; then
1081 if test "$GCC" = yes; then
1082 CFLAGS="-g -O2"
1083 else
1084 CFLAGS="-g"
1085 fi
1086else
1087 if test "$GCC" = yes; then
1088 CFLAGS="-O2"
1089 else
1090 CFLAGS=
1091 fi
1092fi
1093
1094# Check whether --with-gnu-ld or --without-gnu-ld was given.
1095if test "${with_gnu_ld+set}" = set; then
1096 withval="$with_gnu_ld"
1097 test "$withval" = no || with_gnu_ld=yes
1098else
1099 with_gnu_ld=no
1100fi
1101
1102ac_prog=ld
1103if test "$GCC" = yes; then
1104 # Check if gcc -print-prog-name=ld gives a path.
1105 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1106echo "configure:1107: checking for ld used by GCC" >&5
1107 case $host in
1108 *-*-mingw*)
1109 # gcc leaves a trailing carriage return which upsets mingw
1110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1111 *)
1112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1113 esac
1114 case $ac_prog in
1115 # Accept absolute paths.
1116 [\\/]* | [A-Za-z]:[\\/]*)
1117 re_direlt='/[^/][^/]*/\.\./'
1118 # Canonicalize the path of ld
1119 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1121 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1122 done
1123 test -z "$LD" && LD="$ac_prog"
1124 ;;
1125 "")
1126 # If it fails, then pretend we aren't using GCC.
1127 ac_prog=ld
1128 ;;
1129 *)
1130 # If it is relative, then search for the first ld in PATH.
1131 with_gnu_ld=unknown
1132 ;;
1133 esac
1134elif test "$with_gnu_ld" = yes; then
1135 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1136echo "configure:1137: checking for GNU ld" >&5
1137else
1138 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1139echo "configure:1140: checking for non-GNU ld" >&5
1140fi
1141if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144 if test -z "$LD"; then
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1146 for ac_dir in $PATH; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1149 lt_cv_path_LD="$ac_dir/$ac_prog"
1150 # Check to see if the program is GNU ld. I'd rather use --version,
1151 # but apparently some GNU ld's only accept -v.
1152 # Break only if it was the GNU/non-GNU ld that we prefer.
1153 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1154 test "$with_gnu_ld" != no && break
1155 else
1156 test "$with_gnu_ld" != yes && break
1157 fi
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161else
1162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1163fi
1164fi
1165
1166LD="$lt_cv_path_LD"
1167if test -n "$LD"; then
1168 echo "$ac_t""$LD" 1>&6
1169else
1170 echo "$ac_t""no" 1>&6
1171fi
1172test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1173echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1174echo "configure:1175: checking if the linker ($LD) is GNU ld" >&5
1175if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1177else
1178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1179if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1180 lt_cv_prog_gnu_ld=yes
1181else
1182 lt_cv_prog_gnu_ld=no
1183fi
1184fi
1185
1186echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1187with_gnu_ld=$lt_cv_prog_gnu_ld
1188
1189
1190echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1191echo "configure:1192: checking for $LD option to reload object files" >&5
1192if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195 lt_cv_ld_reload_flag='-r'
1196fi
1197
1198echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1199reload_flag=$lt_cv_ld_reload_flag
1200test -n "$reload_flag" && reload_flag=" $reload_flag"
1201
1202echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1203echo "configure:1204: checking for BSD-compatible nm" >&5
1204if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206else
1207 if test -n "$NM"; then
1208 # Let the user override the test.
1209 lt_cv_path_NM="$NM"
1210else
1211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1212 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1213 test -z "$ac_dir" && ac_dir=.
1214 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1215 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1216 # Check to see if the nm accepts a BSD-compat flag.
1217 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1218 # nm: unknown option "B" ignored
1219 # Tru64's nm complains that /dev/null is an invalid object file
1220 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1221 lt_cv_path_NM="$tmp_nm -B"
1222 break
1223 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1224 lt_cv_path_NM="$tmp_nm -p"
1225 break
1226 else
1227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1228 continue # so that we can try to find one that supports BSD flags
1229 fi
1230 fi
1231 done
1232 IFS="$ac_save_ifs"
1233 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1234fi
1235fi
1236
1237NM="$lt_cv_path_NM"
1238echo "$ac_t""$NM" 1>&6
1239
1240echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1241echo "configure:1242: checking whether ln -s works" >&5
1242if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244else
1245 rm -f conftestdata
1246if ln -s X conftestdata 2>/dev/null
1247then
1248 rm -f conftestdata
1249 ac_cv_prog_LN_S="ln -s"
1250else
1251 echo A > conftestdata;
1252 if ln conftestdata conftestdata2 2>/dev/null; then
1253 ac_cv_prog_LN_S=ln
1254 else
1255 ac_cv_prog_LN_S=cp
1256 fi
1257fi
1258rm -f conftestdata*
1259fi
1260LN_S="$ac_cv_prog_LN_S"
1261if test "$ac_cv_prog_LN_S" = "ln -s"; then
1262 echo "$ac_t""yes" 1>&6
1263else
1264 echo "$ac_t""no" 1>&6
1265fi
1266
1267echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1268echo "configure:1269: checking how to recognise dependant libraries" >&5
1269if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271else
1272 lt_cv_file_magic_cmd='$MAGIC_CMD'
1273lt_cv_file_magic_test_file=
1274lt_cv_deplibs_check_method='unknown'
1275# Need to set the preceding variable on all platforms that support
1276# interlibrary dependencies.
1277# 'none' -- dependencies not supported.
1278# `unknown' -- same as none, but documents that we really don't know.
1279# 'pass_all' -- all dependencies passed with no checks.
1280# 'test_compile' -- check by making test program.
1281# 'file_magic [regex]' -- check by looking for files in library path
1282# which responds to the $file_magic_cmd with a given egrep regex.
1283# If you have `file' or equivalent on your system and you're not sure
1284# whether `pass_all' will *always* work, you probably want this one.
1285
1286case $host_os in
1287aix*)
1288 lt_cv_deplibs_check_method=pass_all
1289 ;;
1290
1291beos*)
1292 lt_cv_deplibs_check_method=pass_all
1293 ;;
1294
1295bsdi4*)
1296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1297 lt_cv_file_magic_cmd='/usr/bin/file -L'
1298 lt_cv_file_magic_test_file=/shlib/libc.so
1299 ;;
1300
1301cygwin* | mingw* |pw32*)
1302 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1303 lt_cv_file_magic_cmd='$OBJDUMP -f'
1304 ;;
1305
1306darwin* | rhapsody*)
1307 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1308 lt_cv_file_magic_cmd='/usr/bin/file -L'
1309 case "$host_os" in
1310 rhapsody* | darwin1.012)
1311 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1312 ;;
1313 *) # Darwin 1.3 on
1314 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1315 ;;
1316 esac
1317 ;;
1318
1319freebsd* )
1320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1321 case $host_cpu in
1322 i*86 )
1323 # Not sure whether the presence of OpenBSD here was a mistake.
1324 # Let's accept both of them until this is cleared up.
1325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1326 lt_cv_file_magic_cmd=/usr/bin/file
1327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1328 ;;
1329 esac
1330 else
1331 lt_cv_deplibs_check_method=pass_all
1332 fi
1333 ;;
1334
1335gnu*)
1336 lt_cv_deplibs_check_method=pass_all
1337 ;;
1338
1339hpux10.20*|hpux11*)
1340 case $host_cpu in
1341 hppa*)
1342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1343 lt_cv_file_magic_cmd=/usr/bin/file
1344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1345 ;;
1346 ia64*)
1347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1348 lt_cv_file_magic_cmd=/usr/bin/file
1349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1350 ;;
1351 esac
1352 ;;
1353
1354irix5* | irix6*)
1355 case $host_os in
1356 irix5*)
1357 # this will be overridden with pass_all, but let us keep it just in case
1358 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1359 ;;
1360 *)
1361 case $LD in
1362 *-32|*"-32 ") libmagic=32-bit;;
1363 *-n32|*"-n32 ") libmagic=N32;;
1364 *-64|*"-64 ") libmagic=64-bit;;
1365 *) libmagic=never-match;;
1366 esac
1367 # this will be overridden with pass_all, but let us keep it just in case
1368 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1369 ;;
1370 esac
1371 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1372 lt_cv_deplibs_check_method=pass_all
1373 ;;
1374
1375# This must be Linux ELF.
1376linux-gnu*)
1377 case $host_cpu in
1378 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1379 lt_cv_deplibs_check_method=pass_all ;;
1380 *)
1381 # glibc up to 2.1.1 does not perform some relocations on ARM
1382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1383 esac
1384 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1385 ;;
1386
1387netbsd*)
1388 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1389 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1390 else
1391 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1392 fi
1393 ;;
1394
1395newsos6)
1396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1397 lt_cv_file_magic_cmd=/usr/bin/file
1398 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1399 ;;
1400
1401os2*)
1402 lt_cv_deplibs_check_method=pass_all
1403 ;;
1404
1405osf3* | osf4* | osf5*)
1406 # this will be overridden with pass_all, but let us keep it just in case
1407 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1408 lt_cv_file_magic_test_file=/shlib/libc.so
1409 lt_cv_deplibs_check_method=pass_all
1410 ;;
1411
1412sco3.2v5*)
1413 lt_cv_deplibs_check_method=pass_all
1414 ;;
1415
1416solaris*)
1417 lt_cv_deplibs_check_method=pass_all
1418 lt_cv_file_magic_test_file=/lib/libc.so
1419 ;;
1420
1421sysv5uw[78]* | sysv4*uw2*)
1422 lt_cv_deplibs_check_method=pass_all
1423 ;;
1424
1425sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1426 case $host_vendor in
1427 ncr)
1428 lt_cv_deplibs_check_method=pass_all
1429 ;;
1430 motorola)
1431 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]'
1432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1433 ;;
1434 esac
1435 ;;
1436esac
1437
1438fi
1439
1440echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1441file_magic_cmd=$lt_cv_file_magic_cmd
1442deplibs_check_method=$lt_cv_deplibs_check_method
1443
1444echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1445echo "configure:1446: checking for object suffix" >&5
1446if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449 rm -f conftest*
1450echo 'int i = 1;' > conftest.$ac_ext
1451if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1452 for ac_file in conftest.*; do
1453 case $ac_file in
1454 *.c) ;;
1455 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1456 esac
1457 done
1458else
1459 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1460fi
1461rm -f conftest*
1462fi
1463
1464echo "$ac_t""$ac_cv_objext" 1>&6
1465OBJEXT=$ac_cv_objext
1466ac_objext=$ac_cv_objext
1467
1468if test $host != $build; then
1469 ac_tool_prefix=${host_alias}-
1470else
1471 ac_tool_prefix=
1472fi
1473
1474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1475
1476# Only perform the check for file, if the check method requires it
1477case $deplibs_check_method in
1478file_magic*)
1479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1480 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1481echo "configure:1482: checking for ${ac_tool_prefix}file" >&5
1482if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1484else
1485 case $MAGIC_CMD in
1486 /*)
1487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1488 ;;
1489 ?:/*)
1490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1491 ;;
1492 *)
1493 ac_save_MAGIC_CMD="$MAGIC_CMD"
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1495 ac_dummy="/usr/bin:$PATH"
1496 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 if test -f $ac_dir/${ac_tool_prefix}file; then
1499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1500 if test -n "$file_magic_test_file"; then
1501 case $deplibs_check_method in
1502 "file_magic "*)
1503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1506 egrep "$file_magic_regex" > /dev/null; then
1507 :
1508 else
1509 cat <<EOF 1>&2
1510
1511*** Warning: the command libtool uses to detect shared libraries,
1512*** $file_magic_cmd, produces output that libtool cannot recognize.
1513*** The result is that libtool may fail to recognize shared libraries
1514*** as such. This will affect the creation of libtool libraries that
1515*** depend on shared libraries, but programs linked with such libtool
1516*** libraries will work regardless of this problem. Nevertheless, you
1517*** may want to report the problem to your system manager and/or to
1518*** bug-libtool@gnu.org
1519
1520EOF
1521 fi ;;
1522 esac
1523 fi
1524 break
1525 fi
1526 done
1527 IFS="$ac_save_ifs"
1528 MAGIC_CMD="$ac_save_MAGIC_CMD"
1529 ;;
1530esac
1531fi
1532
1533MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1534if test -n "$MAGIC_CMD"; then
1535 echo "$ac_t""$MAGIC_CMD" 1>&6
1536else
1537 echo "$ac_t""no" 1>&6
1538fi
1539
1540if test -z "$lt_cv_path_MAGIC_CMD"; then
1541 if test -n "$ac_tool_prefix"; then
1542 echo $ac_n "checking for file""... $ac_c" 1>&6
1543echo "configure:1544: checking for file" >&5
1544if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546else
1547 case $MAGIC_CMD in
1548 /*)
1549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1550 ;;
1551 ?:/*)
1552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1553 ;;
1554 *)
1555 ac_save_MAGIC_CMD="$MAGIC_CMD"
1556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1557 ac_dummy="/usr/bin:$PATH"
1558 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/file; then
1561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1562 if test -n "$file_magic_test_file"; then
1563 case $deplibs_check_method in
1564 "file_magic "*)
1565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1568 egrep "$file_magic_regex" > /dev/null; then
1569 :
1570 else
1571 cat <<EOF 1>&2
1572
1573*** Warning: the command libtool uses to detect shared libraries,
1574*** $file_magic_cmd, produces output that libtool cannot recognize.
1575*** The result is that libtool may fail to recognize shared libraries
1576*** as such. This will affect the creation of libtool libraries that
1577*** depend on shared libraries, but programs linked with such libtool
1578*** libraries will work regardless of this problem. Nevertheless, you
1579*** may want to report the problem to your system manager and/or to
1580*** bug-libtool@gnu.org
1581
1582EOF
1583 fi ;;
1584 esac
1585 fi
1586 break
1587 fi
1588 done
1589 IFS="$ac_save_ifs"
1590 MAGIC_CMD="$ac_save_MAGIC_CMD"
1591 ;;
1592esac
1593fi
1594
1595MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1596if test -n "$MAGIC_CMD"; then
1597 echo "$ac_t""$MAGIC_CMD" 1>&6
1598else
1599 echo "$ac_t""no" 1>&6
1600fi
1601
1602 else
1603 MAGIC_CMD=:
1604 fi
1605fi
1606
1607 fi
1608 ;;
1609esac
1610
1611# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1612set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1614echo "configure:1615: checking for $ac_word" >&5
1615if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617else
1618 if test -n "$RANLIB"; then
1619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1620else
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1622 ac_dummy="$PATH"
1623 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 if test -f $ac_dir/$ac_word -o \
1626 -f $ac_dir/$ac_word$ac_exeext ; then
1627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1628 break
1629 fi
1630 done
1631 IFS="$ac_save_ifs"
1632fi
1633fi
1634RANLIB="$ac_cv_prog_RANLIB"
1635if test -n "$RANLIB"; then
1636 echo "$ac_t""$RANLIB" 1>&6
1637else
1638 echo "$ac_t""no" 1>&6
1639fi
1640
1641
1642if test -z "$ac_cv_prog_RANLIB"; then
1643if test -n "$ac_tool_prefix"; then
1644 # Extract the first word of "ranlib", so it can be a program name with args.
1645set dummy ranlib; ac_word=$2
1646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1647echo "configure:1648: checking for $ac_word" >&5
1648if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1650else
1651 if test -n "$RANLIB"; then
1652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1653else
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1655 ac_dummy="$PATH"
1656 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 if test -f $ac_dir/$ac_word -o \
1659 -f $ac_dir/$ac_word$ac_exeext ; then
1660 ac_cv_prog_RANLIB="ranlib"
1661 break
1662 fi
1663 done
1664 IFS="$ac_save_ifs"
1665 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1666fi
1667fi
1668RANLIB="$ac_cv_prog_RANLIB"
1669if test -n "$RANLIB"; then
1670 echo "$ac_t""$RANLIB" 1>&6
1671else
1672 echo "$ac_t""no" 1>&6
1673fi
1674
1675else
1676 RANLIB=":"
1677fi
1678fi
1679
1680# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}strip; ac_word=$2
1682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1683echo "configure:1684: checking for $ac_word" >&5
1684if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689else
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1691 ac_dummy="$PATH"
1692 for ac_dir in $ac_dummy; do
1693 test -z "$ac_dir" && ac_dir=.
1694 if test -f $ac_dir/$ac_word -o \
1695 -f $ac_dir/$ac_word$ac_exeext ; then
1696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1697 break
1698 fi
1699 done
1700 IFS="$ac_save_ifs"
1701fi
1702fi
1703STRIP="$ac_cv_prog_STRIP"
1704if test -n "$STRIP"; then
1705 echo "$ac_t""$STRIP" 1>&6
1706else
1707 echo "$ac_t""no" 1>&6
1708fi
1709
1710
1711if test -z "$ac_cv_prog_STRIP"; then
1712if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "strip", so it can be a program name with args.
1714set dummy strip; ac_word=$2
1715echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1716echo "configure:1717: checking for $ac_word" >&5
1717if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720 if test -n "$STRIP"; then
1721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1722else
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1724 ac_dummy="$PATH"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word -o \
1728 -f $ac_dir/$ac_word$ac_exeext ; then
1729 ac_cv_prog_STRIP="strip"
1730 break
1731 fi
1732 done
1733 IFS="$ac_save_ifs"
1734 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1735fi
1736fi
1737STRIP="$ac_cv_prog_STRIP"
1738if test -n "$STRIP"; then
1739 echo "$ac_t""$STRIP" 1>&6
1740else
1741 echo "$ac_t""no" 1>&6
1742fi
1743
1744else
1745 STRIP=":"
1746fi
1747fi
1748
1749
1750# Check for any special flags to pass to ltconfig.
1751libtool_flags="--cache-file=$cache_file"
1752test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1753test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1754test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1755test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1756test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1757
1758
1759# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1760if test "${enable_libtool_lock+set}" = set; then
1761 enableval="$enable_libtool_lock"
1762 :
1763fi
1764
1765test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1766test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1767
1768# Check whether --with-pic or --without-pic was given.
1769if test "${with_pic+set}" = set; then
1770 withval="$with_pic"
1771 pic_mode="$withval"
1772else
1773 pic_mode=default
1774fi
1775
1776test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1777test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1778
1779# Some flags need to be propagated to the compiler or linker for good
1780# libtool support.
1781case $host in
1782*-*-irix6*)
1783 # Find out which ABI we are using.
1784 echo '#line 1785 "configure"' > conftest.$ac_ext
1785 if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1786 if test "$lt_cv_prog_gnu_ld" = yes; then
1787 case `/usr/bin/file conftest.$ac_objext` in
1788 *32-bit*)
1789 LD="${LD-ld} -melf32bsmip"
1790 ;;
1791 *N32*)
1792 LD="${LD-ld} -melf32bmipn32"
1793 ;;
1794 *64-bit*)
1795 LD="${LD-ld} -melf64bmip"
1796 ;;
1797 esac
1798 else
1799 case `/usr/bin/file conftest.$ac_objext` in
1800 *32-bit*)
1801 LD="${LD-ld} -32"
1802 ;;
1803 *N32*)
1804 LD="${LD-ld} -n32"
1805 ;;
1806 *64-bit*)
1807 LD="${LD-ld} -64"
1808 ;;
1809 esac
1810 fi
1811 fi
1812 rm -rf conftest*
1813 ;;
1814
1815ia64-*-hpux*)
1816 # Find out which ABI we are using.
1817 echo 'int i;' > conftest.$ac_ext
1818 if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 case "`/usr/bin/file conftest.o`" in
1820 *ELF-32*)
1821 HPUX_IA64_MODE="32"
1822 ;;
1823 *ELF-64*)
1824 HPUX_IA64_MODE="64"
1825 ;;
1826 esac
1827 fi
1828 rm -rf conftest*
1829 ;;
1830
1831*-*-sco3.2v5*)
1832 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1833 SAVE_CFLAGS="$CFLAGS"
1834 CFLAGS="$CFLAGS -belf"
1835 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1836echo "configure:1837: checking whether the C compiler needs -belf" >&5
1837if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839else
1840
1841 ac_ext=c
1842# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1843ac_cpp='$CPP $CPPFLAGS'
1844ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1845ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1846cross_compiling=$ac_cv_prog_cc_cross
1847
1848 cat > conftest.$ac_ext <<EOF
1849#line 1850 "configure"
1850#include "confdefs.h"
1851
1852int main() {
1853
1854; return 0; }
1855EOF
1856if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1857 rm -rf conftest*
1858 lt_cv_cc_needs_belf=yes
1859else
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 lt_cv_cc_needs_belf=no
1864fi
1865rm -f conftest*
1866 ac_ext=c
1867# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1868ac_cpp='$CPP $CPPFLAGS'
1869ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1870ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1871cross_compiling=$ac_cv_prog_cc_cross
1872
1873fi
1874
1875echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1878 CFLAGS="$SAVE_CFLAGS"
1879 fi
1880 ;;
1881
1882
1883esac
1884
1885
1886# Save cache, so that ltconfig can load it
1887cat > confcache <<\EOF
1888# This file is a shell script that caches the results of configure
1889# tests run on this system so they can be shared between configure
1890# scripts and configure runs. It is not useful on other systems.
1891# If it contains results you don't want to keep, you may remove or edit it.
1892#
1893# By default, configure uses ./config.cache as the cache file,
1894# creating it if it does not exist already. You can give configure
1895# the --cache-file=FILE option to use a different cache file; that is
1896# what configure does when it calls configure scripts in
1897# subdirectories, so they share the cache.
1898# Giving --cache-file=/dev/null disables caching, for debugging configure.
1899# config.status only pays attention to the cache file if you give it the
1900# --recheck option to rerun configure.
1901#
1902EOF
1903# The following way of writing the cache mishandles newlines in values,
1904# but we know of no workaround that is simple, portable, and efficient.
1905# So, don't put newlines in cache variables' values.
1906# Ultrix sh set writes to stderr and can't be redirected directly,
1907# and sets the high bit in the cache file unless we assign to the vars.
1908(set) 2>&1 |
1909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1910 *ac_space=\ *)
1911 # `set' does not quote correctly, so add quotes (double-quote substitution
1912 # turns \\\\ into \\, and sed turns \\ into \).
1913 sed -n \
1914 -e "s/'/'\\\\''/g" \
1915 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1916 ;;
1917 *)
1918 # `set' quotes correctly as required by POSIX, so do not add quotes.
1919 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1920 ;;
1921 esac >> confcache
1922if cmp -s $cache_file confcache; then
1923 :
1924else
1925 if test -w $cache_file; then
1926 echo "updating cache $cache_file"
1927 cat confcache > $cache_file
1928 else
1929 echo "not updating unwritable cache $cache_file"
1930 fi
1931fi
1932rm -f confcache
1933
1934
1935# Actually configure libtool. ac_aux_dir is where install-sh is found.
1936AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1937MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1938LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1939AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1940objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1941deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1942${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1943$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1944|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1945
1946# Reload cache, that may have been modified by ltconfig
1947if test -r "$cache_file"; then
1948 echo "loading cache $cache_file"
1949 . $cache_file
1950else
1951 echo "creating cache $cache_file"
1952 > $cache_file
1953fi
1954
1955
1956# This can be used to rebuild libtool when needed
1957LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1958
1959# Always use our own libtool.
1960LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1961
1962# Redirect the config.log output again, so that the ltconfig log is not
1963# clobbered by the next message.
1964exec 5>>./config.log
1965
1966
1967
1968
1969
1970
1971
1972# Find a good install program. We prefer a C program (faster),
1973# so one script is as good as another. But avoid the broken or
1974# incompatible versions:
1975# SysV /etc/install, /usr/sbin/install
1976# SunOS /usr/etc/install
1977# IRIX /sbin/install
1978# AIX /bin/install
1979# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982# ./install, which can be erroneously created by make from ./install.sh.
1983echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1984echo "configure:1985: checking for a BSD compatible install" >&5
1985if test -z "$INSTALL"; then
1986if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988else
1989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1990 for ac_dir in $PATH; do
1991 # Account for people who put trailing slashes in PATH elements.
1992 case "$ac_dir/" in
1993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1994 # We reject the install program from OS/2 or W3.1
1995 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1996 *)
1997 # OSF1 and SCO ODT 3.0 have their own names for install.
1998 # Don't use installbsd from OSF since it installs stuff as root
1999 # by default.
2000 for ac_prog in ginstall scoinst install; do
2001 if test -f $ac_dir/$ac_prog$ac_exeext; then
2002 if test $ac_prog = install &&
2003 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2004 # AIX install. It has an incompatible calling convention.
2005 :
2006 else
2007 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
2008 break 2
2009 fi
2010 fi
2011 done
2012 ;;
2013 esac
2014 done
2015 IFS="$ac_save_IFS"
2016
2017fi
2018 if test "${ac_cv_path_install+set}" = set; then
2019 INSTALL="$ac_cv_path_install"
2020 else
2021 # As a last resort, use the slow shell script. We don't cache a
2022 # path for INSTALL within a source directory, because that will
2023 # break other packages using the cache if that directory is
2024 # removed, or if the path is relative.
2025 INSTALL="$ac_install_sh"
2026 fi
2027fi
2028echo "$ac_t""$INSTALL" 1>&6
2029
2030# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2031# It thinks the first close brace ends the variable substitution.
2032test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2033
2034test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2035
2036test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2037
2038echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
2039echo "configure:2040: checking whether build environment is sane" >&5
2040# Just in case
2041sleep 1
2042echo timestamp > conftestfile
2043# Do `set' in a subshell so we don't clobber the current shell's
2044# arguments. Must try -L first in case configure is actually a
2045# symlink; some systems play weird games with the mod time of symlinks
2046# (eg FreeBSD returns the mod time of the symlink's containing
2047# directory).
2048if (
2049 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2050 if test "$*" = "X"; then
2051 # -L didn't work.
2052 set X `ls -t $srcdir/configure conftestfile`
2053 fi
2054 if test "$*" != "X $srcdir/configure conftestfile" \
2055 && test "$*" != "X conftestfile $srcdir/configure"; then
2056
2057 # If neither matched, then we have a broken ls. This can happen
2058 # if, for instance, CONFIG_SHELL is bash and it inherits a
2059 # broken ls alias from the environment. This has actually
2060 # happened. Such a system could not be considered "sane".
2061 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
2062alias in your environment" 1>&2; exit 1; }
2063 fi
2064
2065 test "$2" = conftestfile
2066 )
2067then
2068 # Ok.
2069 :
2070else
2071 { echo "configure: error: newly created file is older than distributed files!
2072Check your system clock" 1>&2; exit 1; }
2073fi
2074rm -f conftest*
2075echo "$ac_t""yes" 1>&6
2076if test "$program_transform_name" = s,x,x,; then
2077 program_transform_name=
2078else
2079 # Double any \ or $. echo might interpret backslashes.
2080 cat <<\EOF_SED > conftestsed
2081s,\\,\\\\,g; s,\$,$$,g
2082EOF_SED
2083 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2084 rm -f conftestsed
2085fi
2086test "$program_prefix" != NONE &&
2087 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2088# Use a double $ so make ignores it.
2089test "$program_suffix" != NONE &&
2090 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2091
2092# sed with no file args requires a program.
2093test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2094
2095echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2096echo "configure:2097: checking whether ${MAKE-make} sets \${MAKE}" >&5
2097set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2098if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100else
2101 cat > conftestmake <<\EOF
2102all:
2103 @echo 'ac_maketemp="${MAKE}"'
2104EOF
2105# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2106eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2107if test -n "$ac_maketemp"; then
2108 eval ac_cv_prog_make_${ac_make}_set=yes
2109else
2110 eval ac_cv_prog_make_${ac_make}_set=no
2111fi
2112rm -f conftestmake
2113fi
2114if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 SET_MAKE=
2117else
2118 echo "$ac_t""no" 1>&6
2119 SET_MAKE="MAKE=${MAKE-make}"
2120fi
2121
2122
2123PACKAGE=libffi
2124
2125VERSION=2.00-beta
2126
2127if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2128 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2129fi
2130
2131
2132
2133missing_dir=`cd $ac_aux_dir && pwd`
2134echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2135echo "configure:2136: checking for working aclocal" >&5
2136# Run test in a subshell; some versions of sh will print an error if
2137# an executable is not found, even if stderr is redirected.
2138# Redirect stdin to placate older versions of autoconf. Sigh.
2139if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2140 ACLOCAL=aclocal
2141 echo "$ac_t""found" 1>&6
2142else
2143 ACLOCAL="$missing_dir/missing aclocal"
2144 echo "$ac_t""missing" 1>&6
2145fi
2146
2147echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2148echo "configure:2149: checking for working autoconf" >&5
2149# Run test in a subshell; some versions of sh will print an error if
2150# an executable is not found, even if stderr is redirected.
2151# Redirect stdin to placate older versions of autoconf. Sigh.
2152if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2153 AUTOCONF=autoconf
2154 echo "$ac_t""found" 1>&6
2155else
2156 AUTOCONF="$missing_dir/missing autoconf"
2157 echo "$ac_t""missing" 1>&6
2158fi
2159
2160echo $ac_n "checking for working automake""... $ac_c" 1>&6
2161echo "configure:2162: checking for working automake" >&5
2162# Run test in a subshell; some versions of sh will print an error if
2163# an executable is not found, even if stderr is redirected.
2164# Redirect stdin to placate older versions of autoconf. Sigh.
2165if (automake --version) < /dev/null > /dev/null 2>&1; then
2166 AUTOMAKE=automake
2167 echo "$ac_t""found" 1>&6
2168else
2169 AUTOMAKE="$missing_dir/missing automake"
2170 echo "$ac_t""missing" 1>&6
2171fi
2172
2173echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2174echo "configure:2175: checking for working autoheader" >&5
2175# Run test in a subshell; some versions of sh will print an error if
2176# an executable is not found, even if stderr is redirected.
2177# Redirect stdin to placate older versions of autoconf. Sigh.
2178if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2179 AUTOHEADER=autoheader
2180 echo "$ac_t""found" 1>&6
2181else
2182 AUTOHEADER="$missing_dir/missing autoheader"
2183 echo "$ac_t""missing" 1>&6
2184fi
2185
2186echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2187echo "configure:2188: checking for working makeinfo" >&5
2188# Run test in a subshell; some versions of sh will print an error if
2189# an executable is not found, even if stderr is redirected.
2190# Redirect stdin to placate older versions of autoconf. Sigh.
2191if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2192 MAKEINFO=makeinfo
2193 echo "$ac_t""found" 1>&6
2194else
2195 MAKEINFO="$missing_dir/missing makeinfo"
2196 echo "$ac_t""missing" 1>&6
2197fi
2198
2199
2200
2201
2202
2203
2204echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2205echo "configure:2206: checking for executable suffix" >&5
2206if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2208else
2209 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
2210 ac_cv_exeext=.exe
2211else
2212 rm -f conftest*
2213 echo 'int main () { return 0; }' > conftest.$ac_ext
2214 ac_cv_exeext=
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2216 for file in conftest.*; do
2217 case $file in
2218 *.c | *.o | *.obj) ;;
2219 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2220 esac
2221 done
2222 else
2223 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2224 fi
2225 rm -f conftest*
2226 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2227fi
2228fi
2229
2230EXEEXT=""
2231test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2232echo "$ac_t""${ac_cv_exeext}" 1>&6
2233ac_exeext=$EXEEXT
2234
2235echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2236echo "configure:2237: checking whether to enable maintainer-specific portions of Makefiles" >&5
2237 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2238if test "${enable_maintainer_mode+set}" = set; then
2239 enableval="$enable_maintainer_mode"
2240 USE_MAINTAINER_MODE=$enableval
2241else
2242 USE_MAINTAINER_MODE=no
2243fi
2244
2245 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2246
2247
2248if test $USE_MAINTAINER_MODE = yes; then
2249 MAINTAINER_MODE_TRUE=
2250 MAINTAINER_MODE_FALSE='#'
2251else
2252 MAINTAINER_MODE_TRUE='#'
2253 MAINTAINER_MODE_FALSE=
2254fi
2255 MAINT=$MAINTAINER_MODE_TRUE
2256
2257
2258
2259# Extract the first word of "gcc", so it can be a program name with args.
2260set dummy gcc; ac_word=$2
2261echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262echo "configure:2263: checking for $ac_word" >&5
2263if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265else
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2268else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2270 ac_dummy="$PATH"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word -o \
2274 -f $ac_dir/$ac_word$ac_exeext ; then
2275 ac_cv_prog_CC="gcc"
2276 break
2277 fi
2278 done
2279 IFS="$ac_save_ifs"
2280fi
2281fi
2282CC="$ac_cv_prog_CC"
2283if test -n "$CC"; then
2284 echo "$ac_t""$CC" 1>&6
2285else
2286 echo "$ac_t""no" 1>&6
2287fi
2288
2289if test -z "$CC"; then
2290 # Extract the first word of "cc", so it can be a program name with args.
2291set dummy cc; ac_word=$2
2292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293echo "configure:2294: checking for $ac_word" >&5
2294if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2296else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2301 ac_prog_rejected=no
2302 ac_dummy="$PATH"
2303 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 if test -f $ac_dir/$ac_word -o \
2306 -f $ac_dir/$ac_word$ac_exeext ; then
2307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2308 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2309 ac_prog_rejected=yes
2310 continue
2311 fi
2312 ac_cv_prog_CC="cc"
2313 break
2314 fi
2315 done
2316 IFS="$ac_save_ifs"
2317if test $ac_prog_rejected = yes; then
2318 # We found a bogon in the path, so make sure we never use it.
2319 set dummy $ac_cv_prog_CC
2320 shift
2321 if test $# -gt 0; then
2322 # We chose a different compiler from the bogus one.
2323 # However, it has the same basename, so the bogon will be chosen
2324 # first if we set CC to just the basename; use the full file name.
2325 shift
2326 set dummy "$ac_dir/$ac_word" "$@"
2327 shift
2328 ac_cv_prog_CC="$@"
2329 fi
2330fi
2331fi
2332fi
2333CC="$ac_cv_prog_CC"
2334if test -n "$CC"; then
2335 echo "$ac_t""$CC" 1>&6
2336else
2337 echo "$ac_t""no" 1>&6
2338fi
2339
2340 if test -z "$CC"; then
2341 case "`uname -s`" in
2342 *win32* | *WIN32*)
2343 # Extract the first word of "cl", so it can be a program name with args.
2344set dummy cl; ac_word=$2
2345echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346echo "configure:2347: checking for $ac_word" >&5
2347if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350 if test -n "$CC"; then
2351 ac_cv_prog_CC="$CC" # Let the user override the test.
2352else
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2354 ac_dummy="$PATH"
2355 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 if test -f $ac_dir/$ac_word -o \
2358 -f $ac_dir/$ac_word$ac_exeext ; then
2359 ac_cv_prog_CC="cl"
2360 break
2361 fi
2362 done
2363 IFS="$ac_save_ifs"
2364fi
2365fi
2366CC="$ac_cv_prog_CC"
2367if test -n "$CC"; then
2368 echo "$ac_t""$CC" 1>&6
2369else
2370 echo "$ac_t""no" 1>&6
2371fi
2372 ;;
2373 esac
2374 fi
2375 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2376fi
2377
2378echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2379echo "configure:2380: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2380
2381ac_ext=c
2382# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2385ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2386cross_compiling=$ac_cv_prog_cc_cross
2387
2388cat > conftest.$ac_ext << EOF
2389
2390#line 2391 "configure"
2391#include "confdefs.h"
2392
2393main(){return(0);}
2394EOF
2395if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396 ac_cv_prog_cc_works=yes
2397 # If we can't run a trivial program, we are probably using a cross compiler.
2398 if (./conftest; exit) 2>/dev/null; then
2399 ac_cv_prog_cc_cross=no
2400 else
2401 ac_cv_prog_cc_cross=yes
2402 fi
2403else
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 ac_cv_prog_cc_works=no
2407fi
2408rm -fr conftest*
2409ac_ext=c
2410# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2413ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2414cross_compiling=$ac_cv_prog_cc_cross
2415
2416echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2417if test $ac_cv_prog_cc_works = no; then
2418 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2419fi
2420echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2421echo "configure:2422: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2422echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2423cross_compiling=$ac_cv_prog_cc_cross
2424
2425echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2426echo "configure:2427: checking whether we are using GNU C" >&5
2427if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 cat > conftest.c <<EOF
2431#ifdef __GNUC__
2432 yes;
2433#endif
2434EOF
2435if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2436 ac_cv_prog_gcc=yes
2437else
2438 ac_cv_prog_gcc=no
2439fi
2440fi
2441
2442echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2443
2444if test $ac_cv_prog_gcc = yes; then
2445 GCC=yes
2446else
2447 GCC=
2448fi
2449
2450ac_test_CFLAGS="${CFLAGS+set}"
2451ac_save_CFLAGS="$CFLAGS"
2452CFLAGS=
2453echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2454echo "configure:2455: checking whether ${CC-cc} accepts -g" >&5
2455if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457else
2458 echo 'void f(){}' > conftest.c
2459if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2460 ac_cv_prog_cc_g=yes
2461else
2462 ac_cv_prog_cc_g=no
2463fi
2464rm -f conftest*
2465
2466fi
2467
2468echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2469if test "$ac_test_CFLAGS" = set; then
2470 CFLAGS="$ac_save_CFLAGS"
2471elif test $ac_cv_prog_cc_g = yes; then
2472 if test "$GCC" = yes; then
2473 CFLAGS="-g -O2"
2474 else
2475 CFLAGS="-g"
2476 fi
2477else
2478 if test "$GCC" = yes; then
2479 CFLAGS="-O2"
2480 else
2481 CFLAGS=
2482 fi
2483fi
2484
2485
2486
2487
2488
2489
2490
2491TARGETDIR="unknown"
2492case "$host" in
2493mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2494i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2495i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2496i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2497i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2498i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
2499i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2500i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2501i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2502sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2503sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2504sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2505sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2506alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
2507ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2508m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2509powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2510powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2511powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
2512powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2513rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2514arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2515esac
2516
2517if test $TARGETDIR = unknown; then
2518 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2519fi
2520
2521
2522
2523if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2524 MIPS_GCC_TRUE=
2525 MIPS_GCC_FALSE='#'
2526else
2527 MIPS_GCC_TRUE='#'
2528 MIPS_GCC_FALSE=
2529fi
2530
2531
2532if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2533 MIPS_SGI_TRUE=
2534 MIPS_SGI_FALSE='#'
2535else
2536 MIPS_SGI_TRUE='#'
2537 MIPS_SGI_FALSE=
2538fi
2539
2540
2541if test x$TARGET = xSPARC; then
2542 SPARC_TRUE=
2543 SPARC_FALSE='#'
2544else
2545 SPARC_TRUE='#'
2546 SPARC_FALSE=
2547fi
2548
2549
2550if test x$TARGET = xX86; then
2551 X86_TRUE=
2552 X86_FALSE='#'
2553else
2554 X86_TRUE='#'
2555 X86_FALSE=
2556fi
2557
2558
2559if test x$TARGET = xX86_WIN32; then
2560 X86_WIN32_TRUE=
2561 X86_WIN32_FALSE='#'
2562else
2563 X86_WIN32_TRUE='#'
2564 X86_WIN32_FALSE=
2565fi
2566
2567
2568if test x$TARGET = xALPHA; then
2569 ALPHA_TRUE=
2570 ALPHA_FALSE='#'
2571else
2572 ALPHA_TRUE='#'
2573 ALPHA_FALSE=
2574fi
2575
2576
2577if test x$TARGET = xIA64; then
2578 IA64_TRUE=
2579 IA64_FALSE='#'
2580else
2581 IA64_TRUE='#'
2582 IA64_FALSE=
2583fi
2584
2585
2586if test x$TARGET = xM68K; then
2587 M68K_TRUE=
2588 M68K_FALSE='#'
2589else
2590 M68K_TRUE='#'
2591 M68K_FALSE=
2592fi
2593
2594
2595if test x$TARGET = xPOWERPC; then
2596 POWERPC_TRUE=
2597 POWERPC_FALSE='#'
2598else
2599 POWERPC_TRUE='#'
2600 POWERPC_FALSE=
2601fi
2602
2603
2604if test x$TARGET = xPOWERPC_AIX; then
2605 POWERPC_AIX_TRUE=
2606 POWERPC_AIX_FALSE='#'
2607else
2608 POWERPC_AIX_TRUE='#'
2609 POWERPC_AIX_FALSE=
2610fi
2611
2612
2613if test x$TARGET = xPOWERPC_DARWIN; then
2614 POWERPC_DARWIN_TRUE=
2615 POWERPC_DARWIN_FALSE='#'
2616else
2617 POWERPC_DARWIN_TRUE='#'
2618 POWERPC_DARWIN_FALSE=
2619fi
2620
2621
2622if test x$TARGET = xARM; then
2623 ARM_TRUE=
2624 ARM_FALSE='#'
2625else
2626 ARM_TRUE='#'
2627 ARM_FALSE=
2628fi
2629
2630echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2631echo "configure:2632: checking how to run the C preprocessor" >&5
2632# On Suns, sometimes $CPP names a directory.
2633if test -n "$CPP" && test -d "$CPP"; then
2634 CPP=
2635fi
2636if test -z "$CPP"; then
2637if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639else
2640 # This must be in double quotes, not single quotes, because CPP may get
2641 # substituted into the Makefile and "${CC-cc}" will confuse make.
2642 CPP="${CC-cc} -E"
2643 # On the NeXT, cc -E runs the code through the compiler's parser,
2644 # not just through cpp.
2645 cat > conftest.$ac_ext <<EOF
2646#include <sys/types.h>
2647#line 2648 "configure"
2648#include "confdefs.h"
2649#include <assert.h>
2650Syntax Error
2651EOF
2652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653{ (eval echo configure:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655if test -z "$ac_err"; then
2656 :
2657else
2658 echo "$ac_err" >&5
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 rm -rf conftest*
2662 CPP="${CC-cc} -E -traditional-cpp"
2663 cat > conftest.$ac_ext <<EOF
2664#include <sys/types.h>
2665#line 2666 "configure"
2666#include "confdefs.h"
2667#include <assert.h>
2668Syntax Error
2669EOF
2670ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2671{ (eval echo configure:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2672ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2673if test -z "$ac_err"; then
2674 :
2675else
2676 echo "$ac_err" >&5
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 CPP="${CC-cc} -nologo -E"
2681 cat > conftest.$ac_ext <<EOF
2682#include <sys/types.h>
2683#line 2684 "configure"
2684#include "confdefs.h"
2685#include <assert.h>
2686Syntax Error
2687EOF
2688ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2689{ (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2690ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2691if test -z "$ac_err"; then
2692 :
2693else
2694 echo "$ac_err" >&5
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 rm -rf conftest*
2698 CPP=/lib/cpp
2699fi
2700rm -f conftest*
2701fi
2702rm -f conftest*
2703fi
2704rm -f conftest*
2705 ac_cv_prog_CPP="$CPP"
2706fi
2707 CPP="$ac_cv_prog_CPP"
2708else
2709 ac_cv_prog_CPP="$CPP"
2710fi
2711echo "$ac_t""$CPP" 1>&6
2712
2713echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2714echo "configure:2715: checking for ANSI C header files" >&5
2715if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717else
2718 cat > conftest.$ac_ext <<EOF
2719#include <sys/types.h>
2720#line 2721 "configure"
2721#include "confdefs.h"
2722#include <stdlib.h>
2723#include <stdarg.h>
2724#include <string.h>
2725#include <float.h>
2726EOF
2727ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728{ (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730if test -z "$ac_err"; then
2731 rm -rf conftest*
2732 ac_cv_header_stdc=yes
2733else
2734 echo "$ac_err" >&5
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 rm -rf conftest*
2738 ac_cv_header_stdc=no
2739fi
2740rm -f conftest*
2741
2742if test $ac_cv_header_stdc = yes; then
2743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2744cat > conftest.$ac_ext <<EOF
2745#line 2746 "configure"
2746#include "confdefs.h"
2747#include <string.h>
2748EOF
2749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2750 egrep "memchr" >/dev/null 2>&1; then
2751 :
2752else
2753 rm -rf conftest*
2754 ac_cv_header_stdc=no
2755fi
2756rm -f conftest*
2757
2758fi
2759
2760if test $ac_cv_header_stdc = yes; then
2761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2762cat > conftest.$ac_ext <<EOF
2763#line 2764 "configure"
2764#include "confdefs.h"
2765#include <stdlib.h>
2766EOF
2767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768 egrep "free" >/dev/null 2>&1; then
2769 :
2770else
2771 rm -rf conftest*
2772 ac_cv_header_stdc=no
2773fi
2774rm -f conftest*
2775
2776fi
2777
2778if test $ac_cv_header_stdc = yes; then
2779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2780if test "$cross_compiling" = yes; then
2781 :
2782else
2783 cat > conftest.$ac_ext <<EOF
2784#line 2785 "configure"
2785#include "confdefs.h"
2786#include <ctype.h>
2787#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2788#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2790int main () { int i; for (i = 0; i < 256; i++)
2791if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2792exit (0); }
2793
2794EOF
2795if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2796then
2797 :
2798else
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 rm -fr conftest*
2802 ac_cv_header_stdc=no
2803fi
2804rm -fr conftest*
2805fi
2806
2807fi
2808fi
2809
2810echo "$ac_t""$ac_cv_header_stdc" 1>&6
2811if test $ac_cv_header_stdc = yes; then
2812 cat >> confdefs.h <<\EOF
2813#define STDC_HEADERS 1
2814EOF
2815
2816fi
2817
2818for ac_func in memcpy
2819do
2820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2821echo "configure:2822: checking for $ac_func" >&5
2822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824else
2825 cat > conftest.$ac_ext <<EOF
2826#line 2827 "configure"
2827#include "confdefs.h"
2828/* System header to define __stub macros and hopefully few prototypes,
2829 which can conflict with char $ac_func(); below. */
2830#include <assert.h>
2831/* Override any gcc2 internal prototype to avoid an error. */
2832/* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834char $ac_func();
2835
2836int main() {
2837
2838/* The GNU C library defines this for functions which it implements
2839 to always fail with ENOSYS. Some functions are actually named
2840 something starting with __ and the normal name is an alias. */
2841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2842choke me
2843#else
2844$ac_func();
2845#endif
2846
2847; return 0; }
2848EOF
2849if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2850 rm -rf conftest*
2851 eval "ac_cv_func_$ac_func=yes"
2852else
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 rm -rf conftest*
2856 eval "ac_cv_func_$ac_func=no"
2857fi
2858rm -f conftest*
2859fi
2860
2861if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2864 cat >> confdefs.h <<EOF
2865#define $ac_tr_func 1
2866EOF
2867
2868else
2869 echo "$ac_t""no" 1>&6
2870fi
2871done
2872
2873# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2874# for constant arguments. Useless!
2875echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2876echo "configure:2877: checking for working alloca.h" >&5
2877if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879else
2880 cat > conftest.$ac_ext <<EOF
2881#line 2882 "configure"
2882#include "confdefs.h"
2883#include <alloca.h>
2884int main() {
2885char *p = alloca(2 * sizeof(int));
2886; return 0; }
2887EOF
2888if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2889 rm -rf conftest*
2890 ac_cv_header_alloca_h=yes
2891else
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 rm -rf conftest*
2895 ac_cv_header_alloca_h=no
2896fi
2897rm -f conftest*
2898fi
2899
2900echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2901if test $ac_cv_header_alloca_h = yes; then
2902 cat >> confdefs.h <<\EOF
2903#define HAVE_ALLOCA_H 1
2904EOF
2905
2906fi
2907
2908echo $ac_n "checking for alloca""... $ac_c" 1>&6
2909echo "configure:2910: checking for alloca" >&5
2910if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912else
2913 cat > conftest.$ac_ext <<EOF
2914#line 2915 "configure"
2915#include "confdefs.h"
2916
2917#ifdef __GNUC__
2918# define alloca __builtin_alloca
2919#else
2920# ifdef _MSC_VER
2921# include <malloc.h>
2922# define alloca _alloca
2923# else
2924# if HAVE_ALLOCA_H
2925# include <alloca.h>
2926# else
2927# ifdef _AIX
2928 #pragma alloca
2929# else
2930# ifndef alloca /* predefined by HP cc +Olibcalls */
2931char *alloca ();
2932# endif
2933# endif
2934# endif
2935# endif
2936#endif
2937
2938int main() {
2939char *p = (char *) alloca(1);
2940; return 0; }
2941EOF
2942if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2943 rm -rf conftest*
2944 ac_cv_func_alloca_works=yes
2945else
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 rm -rf conftest*
2949 ac_cv_func_alloca_works=no
2950fi
2951rm -f conftest*
2952fi
2953
2954echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2955if test $ac_cv_func_alloca_works = yes; then
2956 cat >> confdefs.h <<\EOF
2957#define HAVE_ALLOCA 1
2958EOF
2959
2960fi
2961
2962if test $ac_cv_func_alloca_works = no; then
2963 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2964 # that cause trouble. Some versions do not even contain alloca or
2965 # contain a buggy version. If you still want to use their alloca,
2966 # use ar to extract alloca.o from them instead of compiling alloca.c.
2967 ALLOCA=alloca.${ac_objext}
2968 cat >> confdefs.h <<\EOF
2969#define C_ALLOCA 1
2970EOF
2971
2972
2973echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2974echo "configure:2975: checking whether alloca needs Cray hooks" >&5
2975if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2977else
2978 cat > conftest.$ac_ext <<EOF
2979#line 2980 "configure"
2980#include "confdefs.h"
2981#if defined(CRAY) && ! defined(CRAY2)
2982webecray
2983#else
2984wenotbecray
2985#endif
2986
2987EOF
2988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989 egrep "webecray" >/dev/null 2>&1; then
2990 rm -rf conftest*
2991 ac_cv_os_cray=yes
2992else
2993 rm -rf conftest*
2994 ac_cv_os_cray=no
2995fi
2996rm -f conftest*
2997
2998fi
2999
3000echo "$ac_t""$ac_cv_os_cray" 1>&6
3001if test $ac_cv_os_cray = yes; then
3002for ac_func in _getb67 GETB67 getb67; do
3003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3004echo "configure:3005: checking for $ac_func" >&5
3005if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007else
3008 cat > conftest.$ac_ext <<EOF
3009#line 3010 "configure"
3010#include "confdefs.h"
3011/* System header to define __stub macros and hopefully few prototypes,
3012 which can conflict with char $ac_func(); below. */
3013#include <assert.h>
3014/* Override any gcc2 internal prototype to avoid an error. */
3015/* We use char because int might match the return type of a gcc2
3016 builtin and then its argument prototype would still apply. */
3017char $ac_func();
3018
3019int main() {
3020
3021/* The GNU C library defines this for functions which it implements
3022 to always fail with ENOSYS. Some functions are actually named
3023 something starting with __ and the normal name is an alias. */
3024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3025choke me
3026#else
3027$ac_func();
3028#endif
3029
3030; return 0; }
3031EOF
3032if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3033 rm -rf conftest*
3034 eval "ac_cv_func_$ac_func=yes"
3035else
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 rm -rf conftest*
3039 eval "ac_cv_func_$ac_func=no"
3040fi
3041rm -f conftest*
3042fi
3043
3044if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 cat >> confdefs.h <<EOF
3047#define CRAY_STACKSEG_END $ac_func
3048EOF
3049
3050 break
3051else
3052 echo "$ac_t""no" 1>&6
3053fi
3054
3055done
3056fi
3057
3058echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3059echo "configure:3060: checking stack direction for C alloca" >&5
3060if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062else
3063 if test "$cross_compiling" = yes; then
3064 ac_cv_c_stack_direction=0
3065else
3066 cat > conftest.$ac_ext <<EOF
3067#line 3068 "configure"
3068#include "confdefs.h"
3069find_stack_direction ()
3070{
3071 static char *addr = 0;
3072 auto char dummy;
3073 if (addr == 0)
3074 {
3075 addr = &dummy;
3076 return find_stack_direction ();
3077 }
3078 else
3079 return (&dummy > addr) ? 1 : -1;
3080}
3081main ()
3082{
3083 exit (find_stack_direction() < 0);
3084}
3085EOF
3086if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3087then
3088 ac_cv_c_stack_direction=1
3089else
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 rm -fr conftest*
3093 ac_cv_c_stack_direction=-1
3094fi
3095rm -fr conftest*
3096fi
3097
3098fi
3099
3100echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3101cat >> confdefs.h <<EOF
3102#define STACK_DIRECTION $ac_cv_c_stack_direction
3103EOF
3104
3105fi
3106
3107
3108echo $ac_n "checking size of short""... $ac_c" 1>&6
3109echo "configure:3110: checking size of short" >&5
3110if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112else
3113 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3114 cat > conftest.$ac_ext <<EOF
3115#line 3116 "configure"
3116#include "confdefs.h"
3117#include "confdefs.h"
3118#include <sys/types.h>
3119
3120
3121int main() {
3122switch (0) case 0: case (sizeof (short) == $ac_size):;
3123; return 0; }
3124EOF
3125if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126 rm -rf conftest*
3127 ac_cv_sizeof_short=$ac_size
3128else
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131fi
3132rm -f conftest*
3133 if test x$ac_cv_sizeof_short != x ; then break; fi
3134done
3135
3136fi
3137
3138if test x$ac_cv_sizeof_short = x ; then
3139 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
3140fi
3141echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3142cat >> confdefs.h <<EOF
3143#define SIZEOF_SHORT $ac_cv_sizeof_short
3144EOF
3145
3146
3147echo $ac_n "checking size of int""... $ac_c" 1>&6
3148echo "configure:3149: checking size of int" >&5
3149if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3151else
3152 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3153 cat > conftest.$ac_ext <<EOF
3154#line 3155 "configure"
3155#include "confdefs.h"
3156#include "confdefs.h"
3157#include <sys/types.h>
3158
3159
3160int main() {
3161switch (0) case 0: case (sizeof (int) == $ac_size):;
3162; return 0; }
3163EOF
3164if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165 rm -rf conftest*
3166 ac_cv_sizeof_int=$ac_size
3167else
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170fi
3171rm -f conftest*
3172 if test x$ac_cv_sizeof_int != x ; then break; fi
3173done
3174
3175fi
3176
3177if test x$ac_cv_sizeof_int = x ; then
3178 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
3179fi
3180echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3181cat >> confdefs.h <<EOF
3182#define SIZEOF_INT $ac_cv_sizeof_int
3183EOF
3184
3185
3186echo $ac_n "checking size of long""... $ac_c" 1>&6
3187echo "configure:3188: checking size of long" >&5
3188if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190else
3191 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3192 cat > conftest.$ac_ext <<EOF
3193#line 3194 "configure"
3194#include "confdefs.h"
3195#include "confdefs.h"
3196#include <sys/types.h>
3197
3198
3199int main() {
3200switch (0) case 0: case (sizeof (long) == $ac_size):;
3201; return 0; }
3202EOF
3203if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3204 rm -rf conftest*
3205 ac_cv_sizeof_long=$ac_size
3206else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209fi
3210rm -f conftest*
3211 if test x$ac_cv_sizeof_long != x ; then break; fi
3212done
3213
3214fi
3215
3216if test x$ac_cv_sizeof_long = x ; then
3217 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
3218fi
3219echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3220cat >> confdefs.h <<EOF
3221#define SIZEOF_LONG $ac_cv_sizeof_long
3222EOF
3223
3224
3225echo $ac_n "checking size of long long""... $ac_c" 1>&6
3226echo "configure:3227: checking size of long long" >&5
3227if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3229else
3230 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3231 cat > conftest.$ac_ext <<EOF
3232#line 3233 "configure"
3233#include "confdefs.h"
3234#include "confdefs.h"
3235#include <sys/types.h>
3236
3237
3238int main() {
3239switch (0) case 0: case (sizeof (long long) == $ac_size):;
3240; return 0; }
3241EOF
3242if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243 rm -rf conftest*
3244 ac_cv_sizeof_long_long=$ac_size
3245else
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248fi
3249rm -f conftest*
3250 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3251done
3252
3253fi
3254
3255if test x$ac_cv_sizeof_long_long = x ; then
3256 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
3257fi
3258echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3259cat >> confdefs.h <<EOF
3260#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3261EOF
3262
3263
3264echo $ac_n "checking size of float""... $ac_c" 1>&6
3265echo "configure:3266: checking size of float" >&5
3266if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3268else
3269 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3270 cat > conftest.$ac_ext <<EOF
3271#line 3272 "configure"
3272#include "confdefs.h"
3273#include "confdefs.h"
3274#include <sys/types.h>
3275
3276
3277int main() {
3278switch (0) case 0: case (sizeof (float) == $ac_size):;
3279; return 0; }
3280EOF
3281if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282 rm -rf conftest*
3283 ac_cv_sizeof_float=$ac_size
3284else
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287fi
3288rm -f conftest*
3289 if test x$ac_cv_sizeof_float != x ; then break; fi
3290done
3291
3292fi
3293
3294if test x$ac_cv_sizeof_float = x ; then
3295 { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
3296fi
3297echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3298cat >> confdefs.h <<EOF
3299#define SIZEOF_FLOAT $ac_cv_sizeof_float
3300EOF
3301
3302
3303echo $ac_n "checking size of double""... $ac_c" 1>&6
3304echo "configure:3305: checking size of double" >&5
3305if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3307else
3308 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3309 cat > conftest.$ac_ext <<EOF
3310#line 3311 "configure"
3311#include "confdefs.h"
3312#include "confdefs.h"
3313#include <sys/types.h>
3314
3315
3316int main() {
3317switch (0) case 0: case (sizeof (double) == $ac_size):;
3318; return 0; }
3319EOF
3320if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 rm -rf conftest*
3322 ac_cv_sizeof_double=$ac_size
3323else
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326fi
3327rm -f conftest*
3328 if test x$ac_cv_sizeof_double != x ; then break; fi
3329done
3330
3331fi
3332
3333if test x$ac_cv_sizeof_double = x ; then
3334 { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
3335fi
3336echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3337cat >> confdefs.h <<EOF
3338#define SIZEOF_DOUBLE $ac_cv_sizeof_double
3339EOF
3340
3341
3342echo $ac_n "checking size of long double""... $ac_c" 1>&6
3343echo "configure:3344: checking size of long double" >&5
3344if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3346else
3347 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3348 cat > conftest.$ac_ext <<EOF
3349#line 3350 "configure"
3350#include "confdefs.h"
3351#include "confdefs.h"
3352#include <sys/types.h>
3353
3354
3355int main() {
3356switch (0) case 0: case (sizeof (long double) == $ac_size):;
3357; return 0; }
3358EOF
3359if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 rm -rf conftest*
3361 ac_cv_sizeof_long_double=$ac_size
3362else
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365fi
3366rm -f conftest*
3367 if test x$ac_cv_sizeof_long_double != x ; then break; fi
3368done
3369
3370fi
3371
3372if test x$ac_cv_sizeof_long_double = x ; then
3373 { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
3374fi
3375echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3376cat >> confdefs.h <<EOF
3377#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3378EOF
3379
3380
3381
3382echo $ac_n "checking size of void *""... $ac_c" 1>&6
3383echo "configure:3384: checking size of void *" >&5
3384if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3386else
3387 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3388 cat > conftest.$ac_ext <<EOF
3389#line 3390 "configure"
3390#include "confdefs.h"
3391#include "confdefs.h"
3392#include <sys/types.h>
3393
3394
3395int main() {
3396switch (0) case 0: case (sizeof (void *) == $ac_size):;
3397; return 0; }
3398EOF
3399if { (eval echo configure:3400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3400 rm -rf conftest*
3401 ac_cv_sizeof_void_p=$ac_size
3402else
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405fi
3406rm -f conftest*
3407 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3408done
3409
3410fi
3411
3412if test x$ac_cv_sizeof_void_p = x ; then
3413 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
3414fi
3415echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3416cat >> confdefs.h <<EOF
3417#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3418EOF
3419
3420
3421echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3422echo "configure:3423: checking whether byte ordering is bigendian" >&5
3423if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425else
3426 ac_cv_c_bigendian=unknown
3427# See if sys/param.h defines the BYTE_ORDER macro.
3428cat > conftest.$ac_ext <<EOF
3429#line 3430 "configure"
3430#include "confdefs.h"
3431#include <sys/types.h>
3432#include <sys/param.h>
3433int main() {
3434
3435#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3436 bogus endian macros
3437#endif
3438; return 0; }
3439EOF
3440if { (eval echo configure:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441 rm -rf conftest*
3442 # It does; now see whether it defined to BIG_ENDIAN or not.
3443cat > conftest.$ac_ext <<EOF
3444#line 3445 "configure"
3445#include "confdefs.h"
3446#include <sys/types.h>
3447#include <sys/param.h>
3448int main() {
3449
3450#if BYTE_ORDER != BIG_ENDIAN
3451 not big endian
3452#endif
3453; return 0; }
3454EOF
3455if { (eval echo configure:3456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3456 rm -rf conftest*
3457 ac_cv_c_bigendian=yes
3458else
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 rm -rf conftest*
3462 ac_cv_c_bigendian=no
3463fi
3464rm -f conftest*
3465else
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468fi
3469rm -f conftest*
3470if test $ac_cv_c_bigendian = unknown; then
3471if test "$cross_compiling" = yes; then
3472 echo $ac_n "cross-compiling... " 2>&6
3473else
3474 cat > conftest.$ac_ext <<EOF
3475#line 3476 "configure"
3476#include "confdefs.h"
3477main () {
3478 /* Are we little or big endian? From Harbison&Steele. */
3479 union
3480 {
3481 long l;
3482 char c[sizeof (long)];
3483 } u;
3484 u.l = 1;
3485 exit (u.c[sizeof (long) - 1] == 1);
3486}
3487EOF
3488if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3489then
3490 ac_cv_c_bigendian=no
3491else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 rm -fr conftest*
3495 ac_cv_c_bigendian=yes
3496fi
3497rm -fr conftest*
3498fi
3499
3500fi
3501fi
3502
3503echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3504if test $ac_cv_c_bigendian = unknown; then
3505echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3506echo "configure:3507: checking to probe for byte ordering" >&5
3507
3508cat >conftest.c <<EOF
3509short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3510short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3511void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3512short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3513short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3514void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3515int main() { _ascii (); _ebcdic (); return 0; }
3516EOF
3517 if test -f conftest.c ; then
3518 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3519 if test `grep -l BIGenDianSyS conftest.o` ; then
3520 echo $ac_n ' big endian probe OK, ' 1>&6
3521 ac_cv_c_bigendian=yes
3522 fi
3523 if test `grep -l LiTTleEnDian conftest.o` ; then
3524 echo $ac_n ' little endian probe OK, ' 1>&6
3525 if test $ac_cv_c_bigendian = yes ; then
3526 ac_cv_c_bigendian=unknown;
3527 else
3528 ac_cv_c_bigendian=no
3529 fi
3530 fi
3531 echo $ac_n 'guessing bigendian ... ' >&6
3532 fi
3533 fi
3534echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3535fi
3536if test $ac_cv_c_bigendian = yes; then
3537 cat >> confdefs.h <<\EOF
3538#define WORDS_BIGENDIAN 1
3539EOF
3540
3541 BYTEORDER=4321
3542else
3543 BYTEORDER=1234
3544fi
3545cat >> confdefs.h <<EOF
3546#define BYTEORDER $BYTEORDER
3547EOF
3548
3549if test $ac_cv_c_bigendian = unknown; then
3550 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3551fi
3552
3553
3554if test x$TARGET = xSPARC; then
3555 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
3556echo "configure:3557: checking assembler and linker support unaligned pc related relocs" >&5
3557if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3559else
3560
3561 save_CFLAGS="$CFLAGS"
3562 save_LDFLAGS="$LDFLAGS"
3563 CFLAGS="$CFLAGS -fpic"
3564 LDFLAGS="$LDFLAGS -shared"
3565 cat > conftest.$ac_ext <<EOF
3566#line 3567 "configure"
3567#include "confdefs.h"
3568asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3569int main() {
3570
3571; return 0; }
3572EOF
3573if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 rm -rf conftest*
3575 libffi_cv_as_sparc_ua_pcrel=yes
3576else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 libffi_cv_as_sparc_ua_pcrel=no
3581fi
3582rm -f conftest*
3583 CFLAGS="$save_CFLAGS"
3584 LDFLAGS="$save_LDFLAGS"
3585fi
3586
3587echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3588 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3589 cat >> confdefs.h <<\EOF
3590#define HAVE_AS_SPARC_UA_PCREL 1
3591EOF
3592
3593 fi
3594fi
3595
3596
3597
3598
3599
3600
3601# Check whether --enable-debug or --disable-debug was given.
3602if test "${enable_debug+set}" = set; then
3603 enableval="$enable_debug"
3604 if test "$enable_debug" = "yes"; then
3605 cat >> confdefs.h <<\EOF
3606#define FFI_DEBUG 1
3607EOF
3608
3609 fi
3610fi
3611
3612
3613# Check whether --enable-structs or --disable-structs was given.
3614if test "${enable_structs+set}" = set; then
3615 enableval="$enable_structs"
3616 if test "$enable_structs" = "no"; then
3617 cat >> confdefs.h <<\EOF
3618#define FFI_NO_STRUCTS 1
3619EOF
3620
3621 fi
3622fi
3623
3624
3625# Check whether --enable-raw-api or --disable-raw-api was given.
3626if test "${enable_raw_api+set}" = set; then
3627 enableval="$enable_raw_api"
3628 if test "$enable_raw_api" = "no"; then
3629 cat >> confdefs.h <<\EOF
3630#define FFI_NO_RAW_API 1
3631EOF
3632
3633 fi
3634fi
3635
3636
3637# Check whether --enable-purify-safety or --disable-purify-safety was given.
3638if test "${enable_purify_safety+set}" = set; then
3639 enableval="$enable_purify_safety"
3640 if test "$enable_purify_safety" = "yes"; then
3641 cat >> confdefs.h <<\EOF
3642#define USING_PURIFY 1
3643EOF
3644
3645 fi
3646fi
3647
3648
3649if test -n "$with_cross_host" &&
3650 test x"$with_cross_host" != x"no"; then
3651 toolexecdir='$(exec_prefix)/$(target_alias)'
3652 toolexeclibdir='$(toolexecdir)/lib'
3653else
3654 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3655 toolexeclibdir='$(libdir)'
3656fi
3657toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory`
3658
3659
3660
3661if test "${multilib}" = "yes"; then
3662 multilib_arg="--enable-multilib"
3663else
3664 multilib_arg=
3665fi
3666
3667trap '' 1 2 15
3668cat > confcache <<\EOF
3669# This file is a shell script that caches the results of configure
3670# tests run on this system so they can be shared between configure
3671# scripts and configure runs. It is not useful on other systems.
3672# If it contains results you don't want to keep, you may remove or edit it.
3673#
3674# By default, configure uses ./config.cache as the cache file,
3675# creating it if it does not exist already. You can give configure
3676# the --cache-file=FILE option to use a different cache file; that is
3677# what configure does when it calls configure scripts in
3678# subdirectories, so they share the cache.
3679# Giving --cache-file=/dev/null disables caching, for debugging configure.
3680# config.status only pays attention to the cache file if you give it the
3681# --recheck option to rerun configure.
3682#
3683EOF
3684# The following way of writing the cache mishandles newlines in values,
3685# but we know of no workaround that is simple, portable, and efficient.
3686# So, don't put newlines in cache variables' values.
3687# Ultrix sh set writes to stderr and can't be redirected directly,
3688# and sets the high bit in the cache file unless we assign to the vars.
3689(set) 2>&1 |
3690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3691 *ac_space=\ *)
3692 # `set' does not quote correctly, so add quotes (double-quote substitution
3693 # turns \\\\ into \\, and sed turns \\ into \).
3694 sed -n \
3695 -e "s/'/'\\\\''/g" \
3696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3697 ;;
3698 *)
3699 # `set' quotes correctly as required by POSIX, so do not add quotes.
3700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3701 ;;
3702 esac >> confcache
3703if cmp -s $cache_file confcache; then
3704 :
3705else
3706 if test -w $cache_file; then
3707 echo "updating cache $cache_file"
3708 cat confcache > $cache_file
3709 else
3710 echo "not updating unwritable cache $cache_file"
3711 fi
3712fi
3713rm -f confcache
3714
3715trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3716
3717test "x$prefix" = xNONE && prefix=$ac_default_prefix
3718# Let make expand exec_prefix.
3719test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3720
3721# Any assignment to VPATH causes Sun make to only execute
3722# the first set of double-colon rules, so remove it if not needed.
3723# If there is a colon in the path, we need to keep it.
3724if test "x$srcdir" = x.; then
3725 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3726fi
3727
3728trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3729
3730DEFS=-DHAVE_CONFIG_H
3731
3732# Without the "./", some shells look in PATH for config.status.
3733: ${CONFIG_STATUS=./config.status}
3734
3735echo creating $CONFIG_STATUS
3736rm -f $CONFIG_STATUS
3737cat > $CONFIG_STATUS <<EOF
3738#! /bin/sh
3739# Generated automatically by configure.
3740# Run this file to recreate the current configuration.
3741# This directory was configured as follows,
3742EOF
3743echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
3744cat >> $CONFIG_STATUS <<EOF
3745# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3746#
3747# $0 $ac_configure_args
3748#
3749# Compiler output produced by configure, useful for debugging
3750# configure, is in ./config.log if it exists.
3751
3752ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3753for ac_option
3754do
3755 case "\$ac_option" in
3756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3760 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3761 exit 0 ;;
3762 -help | --help | --hel | --he | --h)
3763 echo "\$ac_cs_usage"; exit 0 ;;
3764 *) echo "\$ac_cs_usage"; exit 1 ;;
3765 esac
3766done
3767
3768ac_given_srcdir=$srcdir
3769ac_given_INSTALL="$INSTALL"
3770PATHIFS="$PATH_IFS"
3771
3772trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3773EOF
3774cat >> $CONFIG_STATUS <<EOF
3775
3776# Protect against being on the right side of a sed subst in config.status.
3777sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3778 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3779$ac_vpsub
3780$extrasub
3781s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
3782s%@SHELL@%$SHELL%g
3783s%@CFLAGS@%$CFLAGS%g
3784s%@CPPFLAGS@%$CPPFLAGS%g
3785s%@CXXFLAGS@%$CXXFLAGS%g
3786s%@FFLAGS@%$FFLAGS%g
3787s%@DEFS@%$DEFS%g
3788s%@LDFLAGS@%$LDFLAGS%g
3789s%@LIBS@%$LIBS%g
3790s%@exec_prefix@%$exec_prefix%g
3791s%@prefix@%$prefix%g
3792s%@program_transform_name@%$program_transform_name%g
3793s%@bindir@%$bindir%g
3794s%@sbindir@%$sbindir%g
3795s%@libexecdir@%$libexecdir%g
3796s%@datadir@%$datadir%g
3797s%@sysconfdir@%$sysconfdir%g
3798s%@sharedstatedir@%$sharedstatedir%g
3799s%@localstatedir@%$localstatedir%g
3800s%@libdir@%$libdir%g
3801s%@includedir@%$includedir%g
3802s%@oldincludedir@%$oldincludedir%g
3803s%@infodir@%$infodir%g
3804s%@mandir@%$mandir%g
3805s%@PATH_IFS@%$PATH_IFS%g
3806s%@EXEEXT@%$EXEEXT%g
3807s%@libffi_basedir@%$libffi_basedir%g
3808s%@host@%$host%g
3809s%@host_alias@%$host_alias%g
3810s%@host_cpu@%$host_cpu%g
3811s%@host_vendor@%$host_vendor%g
3812s%@host_os@%$host_os%g
3813s%@build@%$build%g
3814s%@build_alias@%$build_alias%g
3815s%@build_cpu@%$build_cpu%g
3816s%@build_vendor@%$build_vendor%g
3817s%@build_os@%$build_os%g
3818s%@CC@%$CC%g
3819s%@LN_S@%$LN_S%g
3820s%@OBJEXT@%$OBJEXT%g
3821s%@RANLIB@%$RANLIB%g
3822s%@STRIP@%$STRIP%g
3823s%@LIBTOOL@%$LIBTOOL%g
3824s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3825s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3826s%@INSTALL_DATA@%$INSTALL_DATA%g
3827s%@PACKAGE@%$PACKAGE%g
3828s%@VERSION@%$VERSION%g
3829s%@ACLOCAL@%$ACLOCAL%g
3830s%@AUTOCONF@%$AUTOCONF%g
3831s%@AUTOMAKE@%$AUTOMAKE%g
3832s%@AUTOHEADER@%$AUTOHEADER%g
3833s%@MAKEINFO@%$MAKEINFO%g
3834s%@SET_MAKE@%$SET_MAKE%g
3835s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3836s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3837s%@MAINT@%$MAINT%g
3838s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3839s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3840s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3841s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3842s%@SPARC_TRUE@%$SPARC_TRUE%g
3843s%@SPARC_FALSE@%$SPARC_FALSE%g
3844s%@X86_TRUE@%$X86_TRUE%g
3845s%@X86_FALSE@%$X86_FALSE%g
3846s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3847s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3848s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3849s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3850s%@IA64_TRUE@%$IA64_TRUE%g
3851s%@IA64_FALSE@%$IA64_FALSE%g
3852s%@M68K_TRUE@%$M68K_TRUE%g
3853s%@M68K_FALSE@%$M68K_FALSE%g
3854s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3855s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3856s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3857s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3858s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3859s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3860s%@ARM_TRUE@%$ARM_TRUE%g
3861s%@ARM_FALSE@%$ARM_FALSE%g
3862s%@CPP@%$CPP%g
3863s%@ALLOCA@%$ALLOCA%g
3864s%@TARGET@%$TARGET%g
3865s%@TARGETDIR@%$TARGETDIR%g
3866s%@toolexecdir@%$toolexecdir%g
3867s%@toolexeclibdir@%$toolexeclibdir%g
3868
3869CEOF
3870EOF
3871
3872cat >> $CONFIG_STATUS <<\EOF
3873
3874# Split the substitutions into bite-sized pieces for seds with
3875# small command number limits, like on Digital OSF/1 and HP-UX.
3876ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3877ac_file=1 # Number of current file.
3878ac_beg=1 # First line for current file.
3879ac_end=$ac_max_sed_cmds # Line after last line for current file.
3880ac_more_lines=:
3881ac_sed_cmds=""
3882while $ac_more_lines; do
3883 if test $ac_beg -gt 1; then
3884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3885 else
3886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3887 fi
3888 if test ! -s conftest.s$ac_file; then
3889 ac_more_lines=false
3890 rm -f conftest.s$ac_file
3891 else
3892 if test -z "$ac_sed_cmds"; then
3893 ac_sed_cmds="sed -f conftest.s$ac_file"
3894 else
3895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3896 fi
3897 ac_file=`expr $ac_file + 1`
3898 ac_beg=$ac_end
3899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3900 fi
3901done
3902if test -z "$ac_sed_cmds"; then
3903 ac_sed_cmds=cat
3904fi
3905EOF
3906
3907cat >> $CONFIG_STATUS <<EOF
3908
3909CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3910EOF
3911cat >> $CONFIG_STATUS <<\EOF
3912for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3914 case "$ac_file" in
3915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3917 *) ac_file_in="${ac_file}.in" ;;
3918 esac
3919
3920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3921
3922 # Remove last slash and all that follows it. Not all systems have dirname.
3923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3925 # The file is in a subdirectory.
3926 test ! -d "$ac_dir" && mkdir "$ac_dir"
3927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3928 # A "../" for each directory in $ac_dir_suffix.
3929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3930 else
3931 ac_dir_suffix= ac_dots=
3932 fi
3933
3934 case "$ac_given_srcdir" in
3935 .) srcdir=.
3936 if test -z "$ac_dots"; then top_srcdir=.
3937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3938 [/\\]* | [a-zA-Z]:*)
3939 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3940 *) # Relative path.
3941 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3942 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3943 esac
3944
3945 case "$ac_given_INSTALL" in
3946 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
3947 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3948 esac
3949
3950 echo creating "$ac_file"
3951 rm -f "$ac_file"
3952 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3953 case "$ac_file" in
3954 *Makefile*) ac_comsub="1i\\
3955# $configure_input" ;;
3956 *) ac_comsub= ;;
3957 esac
3958
3959 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
3960 sed -e "$ac_comsub
3961s%@configure_input@%$configure_input%g
3962s%@srcdir@%$srcdir%g
3963s%@top_srcdir@%$top_srcdir%g
3964s%@INSTALL@%$INSTALL%g
3965" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3966fi; done
3967rm -f conftest.s*
3968
3969# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3970# NAME is the cpp macro being defined and VALUE is the value it is being given.
3971#
3972# ac_d sets the value in "#define NAME VALUE" lines.
3973ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3974ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3975ac_dC='\3'
3976ac_dD='%g'
3977# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3978ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3979ac_uB='\([ ]\)%\1#\2define\3'
3980ac_uC=' '
3981ac_uD='\4%g'
3982# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3983ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3984ac_eB='$%\1#\2define\3'
3985ac_eC=' '
3986ac_eD='%g'
3987
3988if test "${CONFIG_HEADERS+set}" != set; then
3989EOF
3990cat >> $CONFIG_STATUS <<EOF
3991 CONFIG_HEADERS="fficonfig.h"
3992EOF
3993cat >> $CONFIG_STATUS <<\EOF
3994fi
3995for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3997 case "$ac_file" in
3998 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3999 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4000 *) ac_file_in="${ac_file}.in" ;;
4001 esac
4002
4003 echo creating $ac_file
4004
4005 rm -f conftest.frag conftest.in conftest.out
4006# kso the other way around might work better with drive letters and such.
4007# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4008 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
4009 cat $ac_file_inputs > conftest.in
4010
4011EOF
4012
4013# Transform confdefs.h into a sed script conftest.vals that substitutes
4014# the proper values into config.h.in to produce config.h. And first:
4015# Protect against being on the right side of a sed subst in config.status.
4016# Protect against being in an unquoted here document in config.status.
4017rm -f conftest.vals
4018cat > conftest.hdr <<\EOF
4019s/[\\&%]/\\&/g
4020s%[\\$`]%\\&%g
4021s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4022s%ac_d%ac_u%gp
4023s%ac_u%ac_e%gp
4024EOF
4025sed -n -f conftest.hdr confdefs.h > conftest.vals
4026rm -f conftest.hdr
4027
4028# This sed command replaces #undef with comments. This is necessary, for
4029# example, in the case of _POSIX_SOURCE, which is predefined and required
4030# on some systems where configure will not decide to define it.
4031cat >> conftest.vals <<\EOF
4032s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4033EOF
4034
4035# Break up conftest.vals because some shells have a limit on
4036# the size of here documents, and old seds have small limits too.
4037
4038rm -f conftest.tail
4039while :
4040do
4041 ac_lines=`grep -c . conftest.vals`
4042 # grep -c gives empty output for an empty file on some AIX systems.
4043 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4044 # Write a limited-size here document to conftest.frag.
4045 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4046 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4047 echo 'CEOF
4048 sed -f conftest.frag conftest.in > conftest.out
4049 rm -f conftest.in
4050 mv conftest.out conftest.in
4051' >> $CONFIG_STATUS
4052 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4053 rm -f conftest.vals
4054 mv conftest.tail conftest.vals
4055done
4056rm -f conftest.vals
4057
4058cat >> $CONFIG_STATUS <<\EOF
4059 rm -f conftest.frag conftest.h
4060 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4061 cat conftest.in >> conftest.h
4062 rm -f conftest.in
4063 if cmp -s $ac_file conftest.h 2>/dev/null; then
4064 echo "$ac_file is unchanged"
4065 rm -f conftest.h
4066 else
4067 # Remove last slash and all that follows it. Not all systems have dirname.
4068 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4069 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4070 # The file is in a subdirectory.
4071 test ! -d "$ac_dir" && mkdir "$ac_dir"
4072 fi
4073 rm -f $ac_file
4074 mv conftest.h $ac_file
4075 fi
4076fi; done
4077
4078EOF
4079cat >> $CONFIG_STATUS <<EOF
4080
4081srcdir=${srcdir}
4082host=${host}
4083target=${target}
4084with_multisubdir=${with_multisubdir}
4085ac_configure_args="${multilib_arg} ${ac_configure_args}"
4086CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4087libffi_basedir=${libffi_basedir}
4088CC="${CC}"
4089DEFS="$DEFS"
4090test ! -d include && mkdir include
4091test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
4092if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
4093 echo fficonfig.h unchanged
4094else
4095 echo Moving fficonfig.h to include/fficonfig.h
4096 cp fficonfig.h include/fficonfig.h
4097fi
4098
4099EOF
4100cat >> $CONFIG_STATUS <<\EOF
4101test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4102
4103if test -n "$CONFIG_FILES"; then
4104 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
4105 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
4106fi
4107
4108exit 0
4109EOF
4110chmod +x $CONFIG_STATUS
4111rm -fr confdefs* $ac_clean_files
4112test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4113
4114
4115# Make target subdirectories if required.
4116test -d src || mkdir src
4117test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}
Note: See TracBrowser for help on using the repository browser.