OSDN Git Service

* c-tree.h (c_sizeof_nowarn): Remove.
[pf3gnuchains/gcc-fork.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
275
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CCAS_set=${CCAS+set}
755 ac_env_CCAS_value=$CCAS
756 ac_cv_env_CCAS_set=${CCAS+set}
757 ac_cv_env_CCAS_value=$CCAS
758 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 Program names:
832   --program-prefix=PREFIX            prepend PREFIX to installed program names
833   --program-suffix=SUFFIX            append SUFFIX to installed program names
834   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libffi 2.1:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-multilib       build many library versions (default)
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --enable-shared=PKGS  build shared libraries default=yes
856   --enable-static=PKGS  build static libraries default=yes
857   --enable-fast-install=PKGS  optimize for fast installation default=yes
858   --disable-libtool-lock  avoid locking (might break parallel builds)
859   --enable-maintainer-mode  enable make rules and dependencies not useful
860                           (and sometimes confusing) to the casual installer
861   --enable-debug          debugging mode
862   --disable-structs       omit code for struct support
863   --disable-raw-api       make the raw api unavailable
864   --enable-purify-safety  purify-safe mode
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871
872 Some influential environment variables:
873   CC          C compiler command
874   CFLAGS      C compiler flags
875   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
876               nonstandard directory <lib dir>
877   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
878               headers in a nonstandard directory <include dir>
879   CCAS        assembler compiler command (defaults to CC)
880   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891   # If there are subdirs, report their specific --help.
892   ac_popdir=`pwd`
893   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894     test -d $ac_dir || continue
895     ac_builddir=.
896
897 if test "$ac_dir" != .; then
898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899   # A "../" for each directory in $ac_dir_suffix.
900   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902   ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906   .)  # No --srcdir option.  We are building in place.
907     ac_srcdir=.
908     if test -z "$ac_top_builddir"; then
909        ac_top_srcdir=.
910     else
911        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912     fi ;;
913   [\\/]* | ?:[\\/]* )  # Absolute path.
914     ac_srcdir=$srcdir$ac_dir_suffix;
915     ac_top_srcdir=$srcdir ;;
916   *) # Relative path.
917     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918     ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926   case "$ac_dir" in
927   .) ac_abs_builddir=`pwd`;;
928   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929   *) ac_abs_builddir=`pwd`/"$ac_dir";;
930   esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935   case ${ac_top_builddir}. in
936   .) ac_abs_top_builddir=$ac_abs_builddir;;
937   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944   case $ac_srcdir in
945   .) ac_abs_srcdir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953   case $ac_top_srcdir in
954   .) ac_abs_top_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957   esac;;
958 esac
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd "$ac_popdir"
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982 libffi configure 2.1
983 generated by GNU Autoconf 2.59
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332           ac_config_headers="$ac_config_headers fficonfig.h"
1333
1334
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if test "${enable_multilib+set}" = set; then
1338   enableval="$enable_multilib"
1339   case "$enableval" in
1340   yes) multilib=yes ;;
1341   no)  multilib=no ;;
1342   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344    { (exit 1); exit 1; }; } ;;
1345  esac
1346 else
1347   multilib=yes
1348 fi;
1349
1350 # We may get other options which we leave undocumented:
1351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1352 # See config-ml.in if you want the gory details.
1353
1354 if test "$srcdir" = "."; then
1355   if test "$with_target_subdir" != "."; then
1356     multi_basedir="$srcdir/$with_multisrctop../.."
1357   else
1358     multi_basedir="$srcdir/$with_multisrctop.."
1359   fi
1360 else
1361   multi_basedir="$srcdir/.."
1362 fi
1363
1364
1365           ac_config_commands="$ac_config_commands default-1"
1366
1367
1368 ac_aux_dir=
1369 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1370   if test -f $ac_dir/install-sh; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/install-sh -c"
1373     break
1374   elif test -f $ac_dir/install.sh; then
1375     ac_aux_dir=$ac_dir
1376     ac_install_sh="$ac_aux_dir/install.sh -c"
1377     break
1378   elif test -f $ac_dir/shtool; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/shtool install -c"
1381     break
1382   fi
1383 done
1384 if test -z "$ac_aux_dir"; then
1385   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392
1393 # Make sure we can run config.sub.
1394 $ac_config_sub sun4 >/dev/null 2>&1 ||
1395   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397    { (exit 1); exit 1; }; }
1398
1399 echo "$as_me:$LINENO: checking build system type" >&5
1400 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401 if test "${ac_cv_build+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   ac_cv_build_alias=$build_alias
1405 test -z "$ac_cv_build_alias" &&
1406   ac_cv_build_alias=`$ac_config_guess`
1407 test -z "$ac_cv_build_alias" &&
1408   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410    { (exit 1); exit 1; }; }
1411 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414    { (exit 1); exit 1; }; }
1415
1416 fi
1417 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418 echo "${ECHO_T}$ac_cv_build" >&6
1419 build=$ac_cv_build
1420 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425 echo "$as_me:$LINENO: checking host system type" >&5
1426 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427 if test "${ac_cv_host+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   ac_cv_host_alias=$host_alias
1431 test -z "$ac_cv_host_alias" &&
1432   ac_cv_host_alias=$ac_cv_build_alias
1433 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436    { (exit 1); exit 1; }; }
1437
1438 fi
1439 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440 echo "${ECHO_T}$ac_cv_host" >&6
1441 host=$ac_cv_host
1442 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447 echo "$as_me:$LINENO: checking target system type" >&5
1448 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449 if test "${ac_cv_target+set}" = set; then
1450   echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452   ac_cv_target_alias=$target_alias
1453 test "x$ac_cv_target_alias" = "x" &&
1454   ac_cv_target_alias=$ac_cv_host_alias
1455 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458    { (exit 1); exit 1; }; }
1459
1460 fi
1461 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462 echo "${ECHO_T}$ac_cv_target" >&6
1463 target=$ac_cv_target
1464 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469 # The aliases save the names the user supplied, while $host etc.
1470 # will get canonicalized.
1471 test -n "$target_alias" &&
1472   test "$program_prefix$program_suffix$program_transform_name" = \
1473     NONENONEs,x,x, &&
1474   program_prefix=${target_alias}-
1475 target_alias=${target_alias-$host_alias}
1476
1477 am__api_version="1.8"
1478 # Find a good install program.  We prefer a C program (faster),
1479 # so one script is as good as another.  But avoid the broken or
1480 # incompatible versions:
1481 # SysV /etc/install, /usr/sbin/install
1482 # SunOS /usr/etc/install
1483 # IRIX /sbin/install
1484 # AIX /bin/install
1485 # AmigaOS /C/install, which installs bootblocks on floppy discs
1486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1489 # OS/2's system install, which has a completely different semantic
1490 # ./install, which can be erroneously created by make from ./install.sh.
1491 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1492 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1493 if test -z "$INSTALL"; then
1494 if test "${ac_cv_path_install+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1499 do
1500   IFS=$as_save_IFS
1501   test -z "$as_dir" && as_dir=.
1502   # Account for people who put trailing slashes in PATH elements.
1503 case $as_dir/ in
1504   ./ | .// | /cC/* | \
1505   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1506   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1507   /usr/ucb/* ) ;;
1508   *)
1509     # OSF1 and SCO ODT 3.0 have their own names for install.
1510     # Don't use installbsd from OSF since it installs stuff as root
1511     # by default.
1512     for ac_prog in ginstall scoinst install; do
1513       for ac_exec_ext in '' $ac_executable_extensions; do
1514         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1515           if test $ac_prog = install &&
1516             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1517             # AIX install.  It has an incompatible calling convention.
1518             :
1519           elif test $ac_prog = install &&
1520             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1521             # program-specific install script used by HP pwplus--don't use.
1522             :
1523           else
1524             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1525             break 3
1526           fi
1527         fi
1528       done
1529     done
1530     ;;
1531 esac
1532 done
1533
1534
1535 fi
1536   if test "${ac_cv_path_install+set}" = set; then
1537     INSTALL=$ac_cv_path_install
1538   else
1539     # As a last resort, use the slow shell script.  We don't cache a
1540     # path for INSTALL within a source directory, because that will
1541     # break other packages using the cache if that directory is
1542     # removed, or if the path is relative.
1543     INSTALL=$ac_install_sh
1544   fi
1545 fi
1546 echo "$as_me:$LINENO: result: $INSTALL" >&5
1547 echo "${ECHO_T}$INSTALL" >&6
1548
1549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1550 # It thinks the first close brace ends the variable substitution.
1551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1552
1553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1554
1555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1556
1557 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1558 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1559 # Just in case
1560 sleep 1
1561 echo timestamp > conftest.file
1562 # Do `set' in a subshell so we don't clobber the current shell's
1563 # arguments.  Must try -L first in case configure is actually a
1564 # symlink; some systems play weird games with the mod time of symlinks
1565 # (eg FreeBSD returns the mod time of the symlink's containing
1566 # directory).
1567 if (
1568    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1569    if test "$*" = "X"; then
1570       # -L didn't work.
1571       set X `ls -t $srcdir/configure conftest.file`
1572    fi
1573    rm -f conftest.file
1574    if test "$*" != "X $srcdir/configure conftest.file" \
1575       && test "$*" != "X conftest.file $srcdir/configure"; then
1576
1577       # If neither matched, then we have a broken ls.  This can happen
1578       # if, for instance, CONFIG_SHELL is bash and it inherits a
1579       # broken ls alias from the environment.  This has actually
1580       # happened.  Such a system could not be considered "sane".
1581       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1582 alias in your environment" >&5
1583 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1584 alias in your environment" >&2;}
1585    { (exit 1); exit 1; }; }
1586    fi
1587
1588    test "$2" = conftest.file
1589    )
1590 then
1591    # Ok.
1592    :
1593 else
1594    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1595 Check your system clock" >&5
1596 echo "$as_me: error: newly created file is older than distributed files!
1597 Check your system clock" >&2;}
1598    { (exit 1); exit 1; }; }
1599 fi
1600 echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1602 test "$program_prefix" != NONE &&
1603   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1604 # Use a double $ so make ignores it.
1605 test "$program_suffix" != NONE &&
1606   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1607 # Double any \ or $.  echo might interpret backslashes.
1608 # By default was `s,x,x', remove it if useless.
1609 cat <<\_ACEOF >conftest.sed
1610 s/[\\$]/&&/g;s/;s,x,x,$//
1611 _ACEOF
1612 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1613 rm conftest.sed
1614
1615 # expand $ac_aux_dir to an absolute path
1616 am_aux_dir=`cd $ac_aux_dir && pwd`
1617
1618 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1619 # Use eval to expand $SHELL
1620 if eval "$MISSING --run true"; then
1621   am_missing_run="$MISSING --run "
1622 else
1623   am_missing_run=
1624   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1625 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1626 fi
1627
1628 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1629   # Keeping the `.' argument allows $(mkdir_p) to be used without
1630   # argument.  Indeed, we sometimes output rules like
1631   #   $(mkdir_p) $(somedir)
1632   # where $(somedir) is conditionally defined.
1633   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1634   # expensive solution, as it forces Make to start a sub-shell.)
1635   mkdir_p='mkdir -p -- .'
1636 else
1637   # On NextStep and OpenStep, the `mkdir' command does not
1638   # recognize any option.  It will interpret all options as
1639   # directories to create, and then abort because `.' already
1640   # exists.
1641   for d in ./-p ./--version;
1642   do
1643     test -d $d && rmdir $d
1644   done
1645   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1646   if test -f "$ac_aux_dir/mkinstalldirs"; then
1647     mkdir_p='$(mkinstalldirs)'
1648   else
1649     mkdir_p='$(install_sh) -d'
1650   fi
1651 fi
1652
1653 for ac_prog in gawk mawk nawk awk
1654 do
1655   # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_AWK+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   if test -n "$AWK"; then
1663   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   for ac_exec_ext in '' $ac_executable_extensions; do
1671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672     ac_cv_prog_AWK="$ac_prog"
1673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674     break 2
1675   fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 AWK=$ac_cv_prog_AWK
1682 if test -n "$AWK"; then
1683   echo "$as_me:$LINENO: result: $AWK" >&5
1684 echo "${ECHO_T}$AWK" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690   test -n "$AWK" && break
1691 done
1692
1693 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1694 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1695 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1696 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   cat >conftest.make <<\_ACEOF
1700 all:
1701         @echo 'ac_maketemp="$(MAKE)"'
1702 _ACEOF
1703 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1704 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1705 if test -n "$ac_maketemp"; then
1706   eval ac_cv_prog_make_${ac_make}_set=yes
1707 else
1708   eval ac_cv_prog_make_${ac_make}_set=no
1709 fi
1710 rm -f conftest.make
1711 fi
1712 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1713   echo "$as_me:$LINENO: result: yes" >&5
1714 echo "${ECHO_T}yes" >&6
1715   SET_MAKE=
1716 else
1717   echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719   SET_MAKE="MAKE=${MAKE-make}"
1720 fi
1721
1722 rm -rf .tst 2>/dev/null
1723 mkdir .tst 2>/dev/null
1724 if test -d .tst; then
1725   am__leading_dot=.
1726 else
1727   am__leading_dot=_
1728 fi
1729 rmdir .tst 2>/dev/null
1730
1731 # test to see if srcdir already configured
1732 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1733    test -f $srcdir/config.status; then
1734   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1735 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1736    { (exit 1); exit 1; }; }
1737 fi
1738
1739 # test whether we have cygpath
1740 if test -z "$CYGPATH_W"; then
1741   if (cygpath --version) >/dev/null 2>/dev/null; then
1742     CYGPATH_W='cygpath -w'
1743   else
1744     CYGPATH_W=echo
1745   fi
1746 fi
1747
1748
1749 # Define the identity of the package.
1750  PACKAGE='libffi'
1751  VERSION='2.1'
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE "$PACKAGE"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define VERSION "$VERSION"
1761 _ACEOF
1762
1763 # Some tools Automake needs.
1764
1765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1766
1767
1768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1769
1770
1771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1772
1773
1774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1775
1776
1777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1778
1779
1780 AMTAR=${AMTAR-"${am_missing_run}tar"}
1781
1782 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1783
1784 # Installed binaries are usually stripped using `strip' when the user
1785 # run `make install-strip'.  However `strip' might not be the right
1786 # tool to use in cross-compilation environments, therefore Automake
1787 # will honor the `STRIP' environment variable to overrule this program.
1788 if test "$cross_compiling" != no; then
1789   if test -n "$ac_tool_prefix"; then
1790   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}strip; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_STRIP+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   if test -n "$STRIP"; then
1798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803   IFS=$as_save_IFS
1804   test -z "$as_dir" && as_dir=.
1805   for ac_exec_ext in '' $ac_executable_extensions; do
1806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809     break 2
1810   fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 STRIP=$ac_cv_prog_STRIP
1817 if test -n "$STRIP"; then
1818   echo "$as_me:$LINENO: result: $STRIP" >&5
1819 echo "${ECHO_T}$STRIP" >&6
1820 else
1821   echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 fi
1826 if test -z "$ac_cv_prog_STRIP"; then
1827   ac_ct_STRIP=$STRIP
1828   # Extract the first word of "strip", so it can be a program name with args.
1829 set dummy strip; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$ac_ct_STRIP"; then
1836   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841   IFS=$as_save_IFS
1842   test -z "$as_dir" && as_dir=.
1843   for ac_exec_ext in '' $ac_executable_extensions; do
1844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_ac_ct_STRIP="strip"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1853 fi
1854 fi
1855 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1856 if test -n "$ac_ct_STRIP"; then
1857   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1858 echo "${ECHO_T}$ac_ct_STRIP" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864   STRIP=$ac_ct_STRIP
1865 else
1866   STRIP="$ac_cv_prog_STRIP"
1867 fi
1868
1869 fi
1870 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1871
1872 # We need awk for the "check" target.  The system "awk" is bad on
1873 # some platforms.
1874
1875
1876
1877
1878 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1879 # We must force CC to /not/ be precious variables; otherwise
1880 # the wrong, non-multilib-adjusted value will be used in multilibs.
1881 # As a side effect, we have to subst CFLAGS ourselves.
1882
1883
1884
1885 ac_ext=c
1886 ac_cpp='$CPP $CPPFLAGS'
1887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 if test -n "$ac_tool_prefix"; then
1891   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   if test -n "$CC"; then
1899   ac_cv_prog_CC="$CC" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 fi
1916 fi
1917 CC=$ac_cv_prog_CC
1918 if test -n "$CC"; then
1919   echo "$as_me:$LINENO: result: $CC" >&5
1920 echo "${ECHO_T}$CC" >&6
1921 else
1922   echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 fi
1925
1926 fi
1927 if test -z "$ac_cv_prog_CC"; then
1928   ac_ct_CC=$CC
1929   # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$ac_ct_CC"; then
1937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     ac_cv_prog_ac_ct_CC="gcc"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952
1953 fi
1954 fi
1955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956 if test -n "$ac_ct_CC"; then
1957   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958 echo "${ECHO_T}$ac_ct_CC" >&6
1959 else
1960   echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964   CC=$ac_ct_CC
1965 else
1966   CC="$ac_cv_prog_CC"
1967 fi
1968
1969 if test -z "$CC"; then
1970   if test -n "$ac_tool_prefix"; then
1971   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}cc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988     ac_cv_prog_CC="${ac_tool_prefix}cc"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6
2001 else
2002   echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006 fi
2007 if test -z "$ac_cv_prog_CC"; then
2008   ac_ct_CC=$CC
2009   # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$ac_ct_CC"; then
2017   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_ac_ct_CC="cc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044   CC=$ac_ct_CC
2045 else
2046   CC="$ac_cv_prog_CC"
2047 fi
2048
2049 fi
2050 if test -z "$CC"; then
2051   # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061   ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070        ac_prog_rejected=yes
2071        continue
2072      fi
2073     ac_cv_prog_CC="cc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 if test $ac_prog_rejected = yes; then
2081   # We found a bogon in the path, so make sure we never use it.
2082   set dummy $ac_cv_prog_CC
2083   shift
2084   if test $# != 0; then
2085     # We chose a different compiler from the bogus one.
2086     # However, it has the same basename, so the bogon will be chosen
2087     # first if we set CC to just the basename; use the full file name.
2088     shift
2089     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090   fi
2091 fi
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103 fi
2104 if test -z "$CC"; then
2105   if test -n "$ac_tool_prefix"; then
2106   for ac_prog in cl
2107   do
2108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2138 else
2139   echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2141 fi
2142
2143     test -n "$CC" && break
2144   done
2145 fi
2146 if test -z "$CC"; then
2147   ac_ct_CC=$CC
2148   for ac_prog in cl
2149 do
2150   # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$ac_ct_CC"; then
2158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167     ac_cv_prog_ac_ct_CC="$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2180 else
2181   echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185   test -n "$ac_ct_CC" && break
2186 done
2187
2188   CC=$ac_ct_CC
2189 fi
2190
2191 fi
2192
2193
2194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&2;}
2198    { (exit 1); exit 1; }; }
2199
2200 # Provide some information about the compiler.
2201 echo "$as_me:$LINENO:" \
2202      "checking for C compiler version" >&5
2203 ac_compiler=`set X $ac_compile; echo $2`
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2205   (eval $ac_compiler --version </dev/null >&5) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }
2209 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2210   (eval $ac_compiler -v </dev/null >&5) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }
2214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2215   (eval $ac_compiler -V </dev/null >&5) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }
2219
2220 cat >conftest.$ac_ext <<_ACEOF
2221 /* confdefs.h.  */
2222 _ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h.  */
2226
2227 int
2228 main ()
2229 {
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 ac_clean_files_save=$ac_clean_files
2236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2237 # Try to create an executable without -o first, disregard a.out.
2238 # It will help us diagnose broken compilers, and finding out an intuition
2239 # of exeext.
2240 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2244   (eval $ac_link_default) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   # Find the output, starting from the most likely.  This scheme is
2249 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2250 # resort.
2251
2252 # Be careful to initialize this variable, since it used to be cached.
2253 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2254 ac_cv_exeext=
2255 # b.out is created by i960 compilers.
2256 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2257 do
2258   test -f "$ac_file" || continue
2259   case $ac_file in
2260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2261         ;;
2262     conftest.$ac_ext )
2263         # This is the source file.
2264         ;;
2265     [ab].out )
2266         # We found the default executable, but exeext='' is most
2267         # certainly right.
2268         break;;
2269     *.* )
2270         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271         # FIXME: I believe we export ac_cv_exeext for Libtool,
2272         # but it would be cool to find out if it's true.  Does anybody
2273         # maintain Libtool? --akim.
2274         export ac_cv_exeext
2275         break;;
2276     * )
2277         break;;
2278   esac
2279 done
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: C compiler cannot create executables
2287 See \`config.log' for more details." >&2;}
2288    { (exit 77); exit 77; }; }
2289 fi
2290
2291 ac_exeext=$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_file" >&5
2293 echo "${ECHO_T}$ac_file" >&6
2294
2295 # Check the compiler produces executables we can run.  If not, either
2296 # the compiler is broken, or we cross compile.
2297 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2300 # If not cross compiling, check that we can run a simple program.
2301 if test "$cross_compiling" != yes; then
2302   if { ac_try='./$ac_file'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308     cross_compiling=no
2309   else
2310     if test "$cross_compiling" = maybe; then
2311         cross_compiling=yes
2312     else
2313         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2314 If you meant to cross compile, use \`--host'.
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot run C compiled programs.
2317 If you meant to cross compile, use \`--host'.
2318 See \`config.log' for more details." >&2;}
2319    { (exit 1); exit 1; }; }
2320     fi
2321   fi
2322 fi
2323 echo "$as_me:$LINENO: result: yes" >&5
2324 echo "${ECHO_T}yes" >&6
2325
2326 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2327 ac_clean_files=$ac_clean_files_save
2328 # Check the compiler produces executables we can run.  If not, either
2329 # the compiler is broken, or we cross compile.
2330 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2331 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2332 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2333 echo "${ECHO_T}$cross_compiling" >&6
2334
2335 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2336 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2338   (eval $ac_link) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; then
2342   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2343 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2344 # work properly (i.e., refer to `conftest.exe'), while it won't with
2345 # `rm'.
2346 for ac_file in conftest.exe conftest conftest.*; do
2347   test -f "$ac_file" || continue
2348   case $ac_file in
2349     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2350     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351           export ac_cv_exeext
2352           break;;
2353     * ) break;;
2354   esac
2355 done
2356 else
2357   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2360 See \`config.log' for more details." >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364 rm -f conftest$ac_cv_exeext
2365 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2366 echo "${ECHO_T}$ac_cv_exeext" >&6
2367
2368 rm -f conftest.$ac_ext
2369 EXEEXT=$ac_cv_exeext
2370 ac_exeext=$EXEEXT
2371 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2372 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2373 if test "${ac_cv_objext+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.o conftest.obj
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393   (eval $ac_compile) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; then
2397   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2401        break;;
2402   esac
2403 done
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2411 See \`config.log' for more details." >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414
2415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416 fi
2417 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418 echo "${ECHO_T}$ac_cv_objext" >&6
2419 OBJEXT=$ac_cv_objext
2420 ac_objext=$OBJEXT
2421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436 #ifndef __GNUC__
2437        choke me
2438 #endif
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446   (eval $ac_compile) 2>conftest.er1
2447   ac_status=$?
2448   grep -v '^ *+' conftest.er1 >conftest.err
2449   rm -f conftest.er1
2450   cat conftest.err >&5
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); } &&
2453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; } &&
2459          { ac_try='test -s conftest.$ac_objext'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465   ac_compiler_gnu=yes
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 ac_compiler_gnu=no
2471 fi
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2474
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2477 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2478 GCC=`test $ac_compiler_gnu = yes && echo yes`
2479 ac_test_CFLAGS=${CFLAGS+set}
2480 ac_save_CFLAGS=$CFLAGS
2481 CFLAGS="-g"
2482 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2483 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_g+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504   (eval $ac_compile) 2>conftest.er1
2505   ac_status=$?
2506   grep -v '^ *+' conftest.er1 >conftest.err
2507   rm -f conftest.er1
2508   cat conftest.err >&5
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } &&
2511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; }; then
2523   ac_cv_prog_cc_g=yes
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 ac_cv_prog_cc_g=no
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 fi
2532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2533 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2534 if test "$ac_test_CFLAGS" = set; then
2535   CFLAGS=$ac_save_CFLAGS
2536 elif test $ac_cv_prog_cc_g = yes; then
2537   if test "$GCC" = yes; then
2538     CFLAGS="-g -O2"
2539   else
2540     CFLAGS="-g"
2541   fi
2542 else
2543   if test "$GCC" = yes; then
2544     CFLAGS="-O2"
2545   else
2546     CFLAGS=
2547   fi
2548 fi
2549 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   ac_cv_prog_cc_stdc=no
2555 ac_save_CC=$CC
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 #include <stdarg.h>
2563 #include <stdio.h>
2564 #include <sys/types.h>
2565 #include <sys/stat.h>
2566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2567 struct buf { int x; };
2568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2569 static char *e (p, i)
2570      char **p;
2571      int i;
2572 {
2573   return p[i];
2574 }
2575 static char *f (char * (*g) (char **, int), char **p, ...)
2576 {
2577   char *s;
2578   va_list v;
2579   va_start (v,p);
2580   s = g (p, va_arg (v,int));
2581   va_end (v);
2582   return s;
2583 }
2584
2585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2586    function prototypes and stuff, but not '\xHH' hex character constants.
2587    These don't provoke an error unfortunately, instead are silently treated
2588    as 'x'.  The following induces an error, until -std1 is added to get
2589    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2590    array size at least.  It's necessary to write '\x00'==0 to get something
2591    that's true only with -std1.  */
2592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2593
2594 int test (int i, double x);
2595 struct s1 {int (*f) (int a);};
2596 struct s2 {int (*f) (double a);};
2597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2598 int argc;
2599 char **argv;
2600 int
2601 main ()
2602 {
2603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 # Don't try gcc -ansi; that turns off useful extensions and
2609 # breaks some systems' header files.
2610 # AIX                   -qlanglvl=ansi
2611 # Ultrix and OSF/1      -std1
2612 # HP-UX 10.20 and later -Ae
2613 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2614 # SVR4                  -Xc -D__EXTENSIONS__
2615 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2616 do
2617   CC="$ac_save_CC $ac_arg"
2618   rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_cv_prog_cc_stdc=$ac_arg
2640 break
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.err conftest.$ac_objext
2647 done
2648 rm -f conftest.$ac_ext conftest.$ac_objext
2649 CC=$ac_save_CC
2650
2651 fi
2652
2653 case "x$ac_cv_prog_cc_stdc" in
2654   x|xno)
2655     echo "$as_me:$LINENO: result: none needed" >&5
2656 echo "${ECHO_T}none needed" >&6 ;;
2657   *)
2658     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2660     CC="$CC $ac_cv_prog_cc_stdc" ;;
2661 esac
2662
2663 # Some people use a C++ compiler to compile C.  Since we use `exit',
2664 # in C++ we need to declare it.  In case someone uses the same compiler
2665 # for both compiling C and C++ we need to have the C++ compiler decide
2666 # the declaration of exit, since it's the most demanding environment.
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #ifndef __cplusplus
2669   choke me
2670 #endif
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>conftest.er1
2675   ac_status=$?
2676   grep -v '^ *+' conftest.er1 >conftest.err
2677   rm -f conftest.er1
2678   cat conftest.err >&5
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; } &&
2687          { ac_try='test -s conftest.$ac_objext'
2688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; }; then
2693   for ac_declaration in \
2694    '' \
2695    'extern "C" void std::exit (int) throw (); using std::exit;' \
2696    'extern "C" void std::exit (int); using std::exit;' \
2697    'extern "C" void exit (int) throw ();' \
2698    'extern "C" void exit (int);' \
2699    'void exit (int);'
2700 do
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707 $ac_declaration
2708 #include <stdlib.h>
2709 int
2710 main ()
2711 {
2712 exit (42);
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746   cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 $ac_declaration
2753 int
2754 main ()
2755 {
2756 exit (42);
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; } &&
2776          { ac_try='test -s conftest.$ac_objext'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782   break
2783 else
2784   echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 done
2790 rm -f conftest*
2791 if test -n "$ac_declaration"; then
2792   echo '#ifdef __cplusplus' >>confdefs.h
2793   echo $ac_declaration      >>confdefs.h
2794   echo '#endif'             >>confdefs.h
2795 fi
2796
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 DEPDIR="${am__leading_dot}deps"
2809
2810           ac_config_commands="$ac_config_commands depfiles"
2811
2812
2813 am_make=${MAKE-make}
2814 cat > confinc << 'END'
2815 am__doit:
2816         @echo done
2817 .PHONY: am__doit
2818 END
2819 # If we don't find an include directive, just comment out the code.
2820 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2821 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2822 am__include="#"
2823 am__quote=
2824 _am_result=none
2825 # First try GNU make style include.
2826 echo "include confinc" > confmf
2827 # We grep out `Entering directory' and `Leaving directory'
2828 # messages which can occur if `w' ends up in MAKEFLAGS.
2829 # In particular we don't look at `^make:' because GNU make might
2830 # be invoked under some other name (usually "gmake"), in which
2831 # case it prints its new name instead of `make'.
2832 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2833    am__include=include
2834    am__quote=
2835    _am_result=GNU
2836 fi
2837 # Now try BSD make style include.
2838 if test "$am__include" = "#"; then
2839    echo '.include "confinc"' > confmf
2840    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2841       am__include=.include
2842       am__quote="\""
2843       _am_result=BSD
2844    fi
2845 fi
2846
2847
2848 echo "$as_me:$LINENO: result: $_am_result" >&5
2849 echo "${ECHO_T}$_am_result" >&6
2850 rm -f confinc confmf
2851
2852 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2853 if test "${enable_dependency_tracking+set}" = set; then
2854   enableval="$enable_dependency_tracking"
2855
2856 fi;
2857 if test "x$enable_dependency_tracking" != xno; then
2858   am_depcomp="$ac_aux_dir/depcomp"
2859   AMDEPBACKSLASH='\'
2860 fi
2861
2862
2863 if test "x$enable_dependency_tracking" != xno; then
2864   AMDEP_TRUE=
2865   AMDEP_FALSE='#'
2866 else
2867   AMDEP_TRUE='#'
2868   AMDEP_FALSE=
2869 fi
2870
2871
2872
2873
2874 depcc="$CC"   am_compiler_list=
2875
2876 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2877 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2878 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2882   # We make a subdir and do the tests there.  Otherwise we can end up
2883   # making bogus files that we don't know about and never remove.  For
2884   # instance it was reported that on HP-UX the gcc test will end up
2885   # making a dummy file named `D' -- because `-MD' means `put the output
2886   # in D'.
2887   mkdir conftest.dir
2888   # Copy depcomp to subdir because otherwise we won't find it if we're
2889   # using a relative directory.
2890   cp "$am_depcomp" conftest.dir
2891   cd conftest.dir
2892   # We will build objects and dependencies in a subdirectory because
2893   # it helps to detect inapplicable dependency modes.  For instance
2894   # both Tru64's cc and ICC support -MD to output dependencies as a
2895   # side effect of compilation, but ICC will put the dependencies in
2896   # the current directory while Tru64 will put them in the object
2897   # directory.
2898   mkdir sub
2899
2900   am_cv_CC_dependencies_compiler_type=none
2901   if test "$am_compiler_list" = ""; then
2902      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2903   fi
2904   for depmode in $am_compiler_list; do
2905     # Setup a source with many dependencies, because some compilers
2906     # like to wrap large dependency lists on column 80 (with \), and
2907     # we should not choose a depcomp mode which is confused by this.
2908     #
2909     # We need to recreate these files for each test, as the compiler may
2910     # overwrite some of them when testing with obscure command lines.
2911     # This happens at least with the AIX C compiler.
2912     : > sub/conftest.c
2913     for i in 1 2 3 4 5 6; do
2914       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2915       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2916       # Solaris 8's {/usr,}/bin/sh.
2917       touch sub/conftst$i.h
2918     done
2919     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2920
2921     case $depmode in
2922     nosideeffect)
2923       # after this tag, mechanisms are not by side-effect, so they'll
2924       # only be used when explicitly requested
2925       if test "x$enable_dependency_tracking" = xyes; then
2926         continue
2927       else
2928         break
2929       fi
2930       ;;
2931     none) break ;;
2932     esac
2933     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2934     # mode.  It turns out that the SunPro C++ compiler does not properly
2935     # handle `-M -o', and we need to detect this.
2936     if depmode=$depmode \
2937        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2938        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2939        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2940          >/dev/null 2>conftest.err &&
2941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2942        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2944       # icc doesn't choke on unknown options, it will just issue warnings
2945       # or remarks (even with -Werror).  So we grep stderr for any message
2946       # that says an option was ignored or not supported.
2947       # When given -MP, icc 7.0 and 7.1 complain thusly:
2948       #   icc: Command line warning: ignoring option '-M'; no argument required
2949       # The diagnosis changed in icc 8.0:
2950       #   icc: Command line remark: option '-MP' not supported
2951       if (grep 'ignoring option' conftest.err ||
2952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2953         am_cv_CC_dependencies_compiler_type=$depmode
2954         break
2955       fi
2956     fi
2957   done
2958
2959   cd ..
2960   rm -rf conftest.dir
2961 else
2962   am_cv_CC_dependencies_compiler_type=none
2963 fi
2964
2965 fi
2966 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2967 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2969
2970
2971
2972 if
2973   test "x$enable_dependency_tracking" != xno \
2974   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2975   am__fastdepCC_TRUE=
2976   am__fastdepCC_FALSE='#'
2977 else
2978   am__fastdepCC_TRUE='#'
2979   am__fastdepCC_FALSE=
2980 fi
2981
2982
2983
2984
2985
2986
2987 # By default we simply use the C compiler to build assembly code.
2988
2989 test "${CCAS+set}" = set || CCAS=$CC
2990 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2991
2992
2993
2994 if test "x$CC" != xcc; then
2995   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2996 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2997 else
2998   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2999 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3000 fi
3001 set dummy $CC; ac_cc=`echo $2 |
3002                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3003 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 # Make sure it works both with $CC and with simple cc.
3022 # We do the test twice because some compilers refuse to overwrite an
3023 # existing .o file with -o, though they will create one.
3024 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3025 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); };
3035 then
3036   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3037   if test "x$CC" != xcc; then
3038     # Test first that cc exists at all.
3039     if { ac_try='cc -c conftest.$ac_ext >&5'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3046       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); };
3056       then
3057         # cc works too.
3058         :
3059       else
3060         # cc exists but doesn't like -o.
3061         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3062       fi
3063     fi
3064   fi
3065 else
3066   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3067 fi
3068 rm -f conftest*
3069
3070 fi
3071 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3072   echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6
3074 else
3075   echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3077
3078 cat >>confdefs.h <<\_ACEOF
3079 #define NO_MINUS_C_MINUS_O 1
3080 _ACEOF
3081
3082 fi
3083
3084 # FIXME: we rely on the cache variable name because
3085 # there is no other way.
3086 set dummy $CC
3087 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3088 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3089    # Losing compiler, so override with the script.
3090    # FIXME: It is wrong to rewrite CC.
3091    # But if we don't then we get into trouble of one sort or another.
3092    # A longer-term fix would be to have automake use am__CC in this case,
3093    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3094    CC="$am_aux_dir/compile $CC"
3095 fi
3096
3097 # Check whether --enable-shared or --disable-shared was given.
3098 if test "${enable_shared+set}" = set; then
3099   enableval="$enable_shared"
3100   p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_shared=yes ;;
3103 no) enable_shared=no ;;
3104 *)
3105   enable_shared=no
3106   # Look at the argument we got.  We use all the common list separators.
3107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108   for pkg in $enableval; do
3109     if test "X$pkg" = "X$p"; then
3110       enable_shared=yes
3111     fi
3112   done
3113   IFS="$ac_save_ifs"
3114   ;;
3115 esac
3116 else
3117   enable_shared=yes
3118 fi;
3119 # Check whether --enable-static or --disable-static was given.
3120 if test "${enable_static+set}" = set; then
3121   enableval="$enable_static"
3122   p=${PACKAGE-default}
3123 case $enableval in
3124 yes) enable_static=yes ;;
3125 no) enable_static=no ;;
3126 *)
3127   enable_static=no
3128   # Look at the argument we got.  We use all the common list separators.
3129   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130   for pkg in $enableval; do
3131     if test "X$pkg" = "X$p"; then
3132       enable_static=yes
3133     fi
3134   done
3135   IFS="$ac_save_ifs"
3136   ;;
3137 esac
3138 else
3139   enable_static=yes
3140 fi;
3141 # Check whether --enable-fast-install or --disable-fast-install was given.
3142 if test "${enable_fast_install+set}" = set; then
3143   enableval="$enable_fast_install"
3144   p=${PACKAGE-default}
3145 case $enableval in
3146 yes) enable_fast_install=yes ;;
3147 no) enable_fast_install=no ;;
3148 *)
3149   enable_fast_install=no
3150   # Look at the argument we got.  We use all the common list separators.
3151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3152   for pkg in $enableval; do
3153     if test "X$pkg" = "X$p"; then
3154       enable_fast_install=yes
3155     fi
3156   done
3157   IFS="$ac_save_ifs"
3158   ;;
3159 esac
3160 else
3161   enable_fast_install=yes
3162 fi;
3163
3164 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3165 if test "${with_gnu_ld+set}" = set; then
3166   withval="$with_gnu_ld"
3167   test "$withval" = no || with_gnu_ld=yes
3168 else
3169   with_gnu_ld=no
3170 fi;
3171 ac_prog=ld
3172 if test "$GCC" = yes; then
3173   # Check if gcc -print-prog-name=ld gives a path.
3174   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3175 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3176   case $host in
3177   *-*-mingw*)
3178     # gcc leaves a trailing carriage return which upsets mingw
3179     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3180   *)
3181     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3182   esac
3183   case $ac_prog in
3184     # Accept absolute paths.
3185     [\\/]* | [A-Za-z]:[\\/]*)
3186       re_direlt='/[^/][^/]*/\.\./'
3187       # Canonicalize the path of ld
3188       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3189       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3190         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3191       done
3192       test -z "$LD" && LD="$ac_prog"
3193       ;;
3194   "")
3195     # If it fails, then pretend we aren't using GCC.
3196     ac_prog=ld
3197     ;;
3198   *)
3199     # If it is relative, then search for the first ld in PATH.
3200     with_gnu_ld=unknown
3201     ;;
3202   esac
3203 elif test "$with_gnu_ld" = yes; then
3204   echo "$as_me:$LINENO: checking for GNU ld" >&5
3205 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3206 else
3207   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3208 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3209 fi
3210 if test "${lt_cv_path_LD+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   if test -z "$LD"; then
3214   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3215   for ac_dir in $PATH; do
3216     test -z "$ac_dir" && ac_dir=.
3217     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3218       lt_cv_path_LD="$ac_dir/$ac_prog"
3219       # Check to see if the program is GNU ld.  I'd rather use --version,
3220       # but apparently some GNU ld's only accept -v.
3221       # Break only if it was the GNU/non-GNU ld that we prefer.
3222       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3223         test "$with_gnu_ld" != no && break
3224       else
3225         test "$with_gnu_ld" != yes && break
3226       fi
3227     fi
3228   done
3229   IFS="$ac_save_ifs"
3230 else
3231   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3232 fi
3233 fi
3234
3235 LD="$lt_cv_path_LD"
3236 if test -n "$LD"; then
3237   echo "$as_me:$LINENO: result: $LD" >&5
3238 echo "${ECHO_T}$LD" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3244 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3245    { (exit 1); exit 1; }; }
3246 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3247 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3248 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3252 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3253   lt_cv_prog_gnu_ld=yes
3254 else
3255   lt_cv_prog_gnu_ld=no
3256 fi
3257 fi
3258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3260 with_gnu_ld=$lt_cv_prog_gnu_ld
3261
3262
3263 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3264 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3265 if test "${lt_cv_ld_reload_flag+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   lt_cv_ld_reload_flag='-r'
3269 fi
3270 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3271 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3272 reload_flag=$lt_cv_ld_reload_flag
3273 test -n "$reload_flag" && reload_flag=" $reload_flag"
3274
3275 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3276 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3277 if test "${lt_cv_path_NM+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   if test -n "$NM"; then
3281   # Let the user override the test.
3282   lt_cv_path_NM="$NM"
3283 else
3284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3285   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3286     test -z "$ac_dir" && ac_dir=.
3287     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3288     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3289       # Check to see if the nm accepts a BSD-compat flag.
3290       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3291       #   nm: unknown option "B" ignored
3292       # Tru64's nm complains that /dev/null is an invalid object file
3293       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3294         lt_cv_path_NM="$tmp_nm -B"
3295         break
3296       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3297         lt_cv_path_NM="$tmp_nm -p"
3298         break
3299       else
3300         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3301         continue # so that we can try to find one that supports BSD flags
3302       fi
3303     fi
3304   done
3305   IFS="$ac_save_ifs"
3306   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3307 fi
3308 fi
3309
3310 NM="$lt_cv_path_NM"
3311 echo "$as_me:$LINENO: result: $NM" >&5
3312 echo "${ECHO_T}$NM" >&6
3313
3314 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3315 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3316 LN_S=$as_ln_s
3317 if test "$LN_S" = "ln -s"; then
3318   echo "$as_me:$LINENO: result: yes" >&5
3319 echo "${ECHO_T}yes" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3322 echo "${ECHO_T}no, using $LN_S" >&6
3323 fi
3324
3325 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3326 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3327 if test "${lt_cv_deplibs_check_method+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   lt_cv_file_magic_cmd='$MAGIC_CMD'
3331 lt_cv_file_magic_test_file=
3332 lt_cv_deplibs_check_method='unknown'
3333 # Need to set the preceding variable on all platforms that support
3334 # interlibrary dependencies.
3335 # 'none' -- dependencies not supported.
3336 # `unknown' -- same as none, but documents that we really don't know.
3337 # 'pass_all' -- all dependencies passed with no checks.
3338 # 'test_compile' -- check by making test program.
3339 # 'file_magic [regex]' -- check by looking for files in library path
3340 # which responds to the $file_magic_cmd with a given egrep regex.
3341 # If you have `file' or equivalent on your system and you're not sure
3342 # whether `pass_all' will *always* work, you probably want this one.
3343
3344 case $host_os in
3345 aix*)
3346   lt_cv_deplibs_check_method=pass_all
3347   ;;
3348
3349 beos*)
3350   lt_cv_deplibs_check_method=pass_all
3351   ;;
3352
3353 bsdi4*)
3354   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3355   lt_cv_file_magic_cmd='/usr/bin/file -L'
3356   lt_cv_file_magic_test_file=/shlib/libc.so
3357   ;;
3358
3359 cygwin* | mingw* |pw32*)
3360   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3361   lt_cv_file_magic_cmd='$OBJDUMP -f'
3362   ;;
3363
3364 darwin* | rhapsody*)
3365   # this will be overwritten by pass_all, but leave it in just in case
3366   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3367   lt_cv_file_magic_cmd='/usr/bin/file -L'
3368   case "$host_os" in
3369   rhapsody* | darwin1.012)
3370     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3371     ;;
3372   *) # Darwin 1.3 on
3373     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3374     ;;
3375   esac
3376   lt_cv_deplibs_check_method=pass_all
3377   ;;
3378
3379 freebsd* | kfreebsd*-gnu)
3380   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3381     case $host_cpu in
3382     i*86 )
3383       # Not sure whether the presence of OpenBSD here was a mistake.
3384       # Let's accept both of them until this is cleared up.
3385       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3386       lt_cv_file_magic_cmd=/usr/bin/file
3387       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3388       ;;
3389     esac
3390   else
3391     lt_cv_deplibs_check_method=pass_all
3392   fi
3393   ;;
3394
3395 gnu*)
3396   lt_cv_deplibs_check_method=pass_all
3397   ;;
3398
3399 hpux10.20*|hpux11*)
3400   case $host_cpu in
3401   hppa*)
3402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3403     lt_cv_file_magic_cmd=/usr/bin/file
3404     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3405     ;;
3406   ia64*)
3407     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3408     lt_cv_file_magic_cmd=/usr/bin/file
3409     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3410     ;;
3411   esac
3412   ;;
3413
3414 irix5* | irix6*)
3415   case $host_os in
3416   irix5*)
3417     # this will be overridden with pass_all, but let us keep it just in case
3418     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3419     ;;
3420   *)
3421     case $LD in
3422     *-32|*"-32 ") libmagic=32-bit;;
3423     *-n32|*"-n32 ") libmagic=N32;;
3424     *-64|*"-64 ") libmagic=64-bit;;
3425     *) libmagic=never-match;;
3426     esac
3427     # this will be overridden with pass_all, but let us keep it just in case
3428     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3429     ;;
3430   esac
3431   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3432   lt_cv_deplibs_check_method=pass_all
3433   ;;
3434
3435 # This must be Linux ELF.
3436 linux-gnu*)
3437   case $host_cpu in
3438   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3439     lt_cv_deplibs_check_method=pass_all ;;
3440   *)
3441     # glibc up to 2.1.1 does not perform some relocations on ARM
3442     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3443   esac
3444   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3445   ;;
3446
3447 netbsd* | knetbsd*-gnu)
3448   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3449     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3450   else
3451     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3452   fi
3453   ;;
3454
3455 newsos6)
3456   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3457   lt_cv_file_magic_cmd=/usr/bin/file
3458   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3459   ;;
3460
3461 osf3* | osf4* | osf5*)
3462   # this will be overridden with pass_all, but let us keep it just in case
3463   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3464   lt_cv_file_magic_test_file=/shlib/libc.so
3465   lt_cv_deplibs_check_method=pass_all
3466   ;;
3467
3468 sco3.2v5*)
3469   lt_cv_deplibs_check_method=pass_all
3470   ;;
3471
3472 solaris*)
3473   lt_cv_deplibs_check_method=pass_all
3474   lt_cv_file_magic_test_file=/lib/libc.so
3475   ;;
3476
3477 sysv5uw[78]* | sysv4*uw2*)
3478   lt_cv_deplibs_check_method=pass_all
3479   ;;
3480
3481 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3482   case $host_vendor in
3483   ncr)
3484     lt_cv_deplibs_check_method=pass_all
3485     ;;
3486   motorola)
3487     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]'
3488     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3489     ;;
3490   esac
3491   ;;
3492 esac
3493
3494 fi
3495 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3496 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3497 file_magic_cmd=$lt_cv_file_magic_cmd
3498 deplibs_check_method=$lt_cv_deplibs_check_method
3499
3500
3501
3502
3503
3504 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3505
3506 # Only perform the check for file, if the check method requires it
3507 case $deplibs_check_method in
3508 file_magic*)
3509   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3510     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3511 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3512 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $MAGIC_CMD in
3516   /*)
3517   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3518   ;;
3519   ?:/*)
3520   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3521   ;;
3522   *)
3523   ac_save_MAGIC_CMD="$MAGIC_CMD"
3524   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3525   ac_dummy="/usr/bin:$PATH"
3526   for ac_dir in $ac_dummy; do
3527     test -z "$ac_dir" && ac_dir=.
3528     if test -f $ac_dir/${ac_tool_prefix}file; then
3529       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3530       if test -n "$file_magic_test_file"; then
3531         case $deplibs_check_method in
3532         "file_magic "*)
3533           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3534           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3535           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3536             egrep "$file_magic_regex" > /dev/null; then
3537             :
3538           else
3539             cat <<EOF 1>&2
3540
3541 *** Warning: the command libtool uses to detect shared libraries,
3542 *** $file_magic_cmd, produces output that libtool cannot recognize.
3543 *** The result is that libtool may fail to recognize shared libraries
3544 *** as such.  This will affect the creation of libtool libraries that
3545 *** depend on shared libraries, but programs linked with such libtool
3546 *** libraries will work regardless of this problem.  Nevertheless, you
3547 *** may want to report the problem to your system manager and/or to
3548 *** bug-libtool@gnu.org
3549
3550 EOF
3551           fi ;;
3552         esac
3553       fi
3554       break
3555     fi
3556   done
3557   IFS="$ac_save_ifs"
3558   MAGIC_CMD="$ac_save_MAGIC_CMD"
3559   ;;
3560 esac
3561 fi
3562
3563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3564 if test -n "$MAGIC_CMD"; then
3565   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3566 echo "${ECHO_T}$MAGIC_CMD" >&6
3567 else
3568   echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3570 fi
3571
3572 if test -z "$lt_cv_path_MAGIC_CMD"; then
3573   if test -n "$ac_tool_prefix"; then
3574     echo "$as_me:$LINENO: checking for file" >&5
3575 echo $ECHO_N "checking for file... $ECHO_C" >&6
3576 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   case $MAGIC_CMD in
3580   /*)
3581   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3582   ;;
3583   ?:/*)
3584   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3585   ;;
3586   *)
3587   ac_save_MAGIC_CMD="$MAGIC_CMD"
3588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3589   ac_dummy="/usr/bin:$PATH"
3590   for ac_dir in $ac_dummy; do
3591     test -z "$ac_dir" && ac_dir=.
3592     if test -f $ac_dir/file; then
3593       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3594       if test -n "$file_magic_test_file"; then
3595         case $deplibs_check_method in
3596         "file_magic "*)
3597           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3598           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3599           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3600             egrep "$file_magic_regex" > /dev/null; then
3601             :
3602           else
3603             cat <<EOF 1>&2
3604
3605 *** Warning: the command libtool uses to detect shared libraries,
3606 *** $file_magic_cmd, produces output that libtool cannot recognize.
3607 *** The result is that libtool may fail to recognize shared libraries
3608 *** as such.  This will affect the creation of libtool libraries that
3609 *** depend on shared libraries, but programs linked with such libtool
3610 *** libraries will work regardless of this problem.  Nevertheless, you
3611 *** may want to report the problem to your system manager and/or to
3612 *** bug-libtool@gnu.org
3613
3614 EOF
3615           fi ;;
3616         esac
3617       fi
3618       break
3619     fi
3620   done
3621   IFS="$ac_save_ifs"
3622   MAGIC_CMD="$ac_save_MAGIC_CMD"
3623   ;;
3624 esac
3625 fi
3626
3627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3628 if test -n "$MAGIC_CMD"; then
3629   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3630 echo "${ECHO_T}$MAGIC_CMD" >&6
3631 else
3632   echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3634 fi
3635
3636   else
3637     MAGIC_CMD=:
3638   fi
3639 fi
3640
3641   fi
3642   ;;
3643 esac
3644
3645 if test -n "$ac_tool_prefix"; then
3646   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_RANLIB+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   if test -n "$RANLIB"; then
3654   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661   for ac_exec_ext in '' $ac_executable_extensions; do
3662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668 done
3669
3670 fi
3671 fi
3672 RANLIB=$ac_cv_prog_RANLIB
3673 if test -n "$RANLIB"; then
3674   echo "$as_me:$LINENO: result: $RANLIB" >&5
3675 echo "${ECHO_T}$RANLIB" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 fi
3682 if test -z "$ac_cv_prog_RANLIB"; then
3683   ac_ct_RANLIB=$RANLIB
3684   # Extract the first word of "ranlib", so it can be a program name with args.
3685 set dummy ranlib; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   if test -n "$ac_ct_RANLIB"; then
3692   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   for ac_exec_ext in '' $ac_executable_extensions; do
3700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701     ac_cv_prog_ac_ct_RANLIB="ranlib"
3702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703     break 2
3704   fi
3705 done
3706 done
3707
3708   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3709 fi
3710 fi
3711 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3712 if test -n "$ac_ct_RANLIB"; then
3713   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3714 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3715 else
3716   echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3718 fi
3719
3720   RANLIB=$ac_ct_RANLIB
3721 else
3722   RANLIB="$ac_cv_prog_RANLIB"
3723 fi
3724
3725 if test -n "$ac_tool_prefix"; then
3726   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}strip; ac_word=$2
3728 echo "$as_me:$LINENO: checking for $ac_word" >&5
3729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3730 if test "${ac_cv_prog_STRIP+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   if test -n "$STRIP"; then
3734   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741   for ac_exec_ext in '' $ac_executable_extensions; do
3742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3743     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745     break 2
3746   fi
3747 done
3748 done
3749
3750 fi
3751 fi
3752 STRIP=$ac_cv_prog_STRIP
3753 if test -n "$STRIP"; then
3754   echo "$as_me:$LINENO: result: $STRIP" >&5
3755 echo "${ECHO_T}$STRIP" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 fi
3762 if test -z "$ac_cv_prog_STRIP"; then
3763   ac_ct_STRIP=$STRIP
3764   # Extract the first word of "strip", so it can be a program name with args.
3765 set dummy strip; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   if test -n "$ac_ct_STRIP"; then
3772   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779   for ac_exec_ext in '' $ac_executable_extensions; do
3780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781     ac_cv_prog_ac_ct_STRIP="strip"
3782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783     break 2
3784   fi
3785 done
3786 done
3787
3788   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3789 fi
3790 fi
3791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3792 if test -n "$ac_ct_STRIP"; then
3793   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3794 echo "${ECHO_T}$ac_ct_STRIP" >&6
3795 else
3796   echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3798 fi
3799
3800   STRIP=$ac_ct_STRIP
3801 else
3802   STRIP="$ac_cv_prog_STRIP"
3803 fi
3804
3805
3806 # Check for any special flags to pass to ltconfig.
3807 libtool_flags="--cache-file=$cache_file"
3808 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3809 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3810 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3811 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3812 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3813
3814
3815 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3816 if test "${enable_libtool_lock+set}" = set; then
3817   enableval="$enable_libtool_lock"
3818
3819 fi;
3820 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3821 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3822
3823
3824 # Check whether --with-pic or --without-pic was given.
3825 if test "${with_pic+set}" = set; then
3826   withval="$with_pic"
3827   pic_mode="$withval"
3828 else
3829   pic_mode=default
3830 fi;
3831 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3832 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3833
3834 # Some flags need to be propagated to the compiler or linker for good
3835 # libtool support.
3836 case $host in
3837 *-*-irix6*)
3838   # Find out which ABI we are using.
3839   echo '#line 3839 "configure"' > conftest.$ac_ext
3840   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841   (eval $ac_compile) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; then
3845    if test "$lt_cv_prog_gnu_ld" = yes; then
3846     case `/usr/bin/file conftest.$ac_objext` in
3847     *32-bit*)
3848       LD="${LD-ld} -melf32bsmip"
3849       ;;
3850     *N32*)
3851       LD="${LD-ld} -melf32bmipn32"
3852       ;;
3853     *64-bit*)
3854       LD="${LD-ld} -melf64bmip"
3855       ;;
3856     esac
3857    else
3858     case `/usr/bin/file conftest.$ac_objext` in
3859     *32-bit*)
3860       LD="${LD-ld} -32"
3861       ;;
3862     *N32*)
3863       LD="${LD-ld} -n32"
3864       ;;
3865     *64-bit*)
3866       LD="${LD-ld} -64"
3867       ;;
3868     esac
3869    fi
3870   fi
3871   rm -rf conftest*
3872   ;;
3873
3874 ia64-*-hpux*)
3875   # Find out which ABI we are using.
3876   echo 'int i;' > conftest.$ac_ext
3877   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878   (eval $ac_compile) 2>&5
3879   ac_status=$?
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); }; then
3882     case "`/usr/bin/file conftest.o`" in
3883     *ELF-32*)
3884       HPUX_IA64_MODE="32"
3885       ;;
3886     *ELF-64*)
3887       HPUX_IA64_MODE="64"
3888       ;;
3889     esac
3890   fi
3891   rm -rf conftest*
3892   ;;
3893
3894 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3895   # Find out which ABI we are using.
3896   echo 'int i;' > conftest.$ac_ext
3897   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898   (eval $ac_compile) 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; then
3902     case "`/usr/bin/file conftest.o`" in
3903     *32-bit*)
3904       case $host in
3905         x86_64-*linux*)
3906           LD="${LD-ld} -m elf_i386"
3907           ;;
3908         ppc64-*linux*|powerpc64-*linux*)
3909           LD="${LD-ld} -m elf32ppclinux"
3910           ;;
3911         s390x-*linux*)
3912           LD="${LD-ld} -m elf_s390"
3913           ;;
3914         sparc64-*linux*)
3915           LD="${LD-ld} -m elf32_sparc"
3916           ;;
3917       esac
3918       ;;
3919     *64-bit*)
3920       case $host in
3921         x86_64-*linux*)
3922           LD="${LD-ld} -m elf_x86_64"
3923           ;;
3924         ppc*-*linux*|powerpc*-*linux*)
3925           LD="${LD-ld} -m elf64ppc"
3926           ;;
3927         s390*-*linux*)
3928           LD="${LD-ld} -m elf64_s390"
3929           ;;
3930         sparc*-*linux*)
3931           LD="${LD-ld} -m elf64_sparc"
3932           ;;
3933       esac
3934       ;;
3935     esac
3936   fi
3937   rm -rf conftest*
3938   ;;
3939
3940 *-*-sco3.2v5*)
3941   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3942   SAVE_CFLAGS="$CFLAGS"
3943   CFLAGS="$CFLAGS -belf"
3944   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3945 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3946 if test "${lt_cv_cc_needs_belf+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949
3950
3951      ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957      cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.$ac_objext conftest$ac_exeext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974   (eval $ac_link) 2>conftest.er1
3975   ac_status=$?
3976   grep -v '^ *+' conftest.er1 >conftest.err
3977   rm -f conftest.er1
3978   cat conftest.err >&5
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } &&
3981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; } &&
3987          { ac_try='test -s conftest$ac_exeext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   lt_cv_cc_needs_belf=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 lt_cv_cc_needs_belf=no
3999 fi
4000 rm -f conftest.err conftest.$ac_objext \
4001       conftest$ac_exeext conftest.$ac_ext
4002      ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008 fi
4009 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4010 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4011   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4012     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4013     CFLAGS="$SAVE_CFLAGS"
4014   fi
4015   ;;
4016
4017
4018 esac
4019
4020
4021 # Save cache, so that ltconfig can load it
4022 cat >confcache <<\_ACEOF
4023 # This file is a shell script that caches the results of configure
4024 # tests run on this system so they can be shared between configure
4025 # scripts and configure runs, see configure's option --config-cache.
4026 # It is not useful on other systems.  If it contains results you don't
4027 # want to keep, you may remove or edit it.
4028 #
4029 # config.status only pays attention to the cache file if you give it
4030 # the --recheck option to rerun configure.
4031 #
4032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4034 # following values.
4035
4036 _ACEOF
4037
4038 # The following way of writing the cache mishandles newlines in values,
4039 # but we know of no workaround that is simple, portable, and efficient.
4040 # So, don't put newlines in cache variables' values.
4041 # Ultrix sh set writes to stderr and can't be redirected directly,
4042 # and sets the high bit in the cache file unless we assign to the vars.
4043 {
4044   (set) 2>&1 |
4045     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4046     *ac_space=\ *)
4047       # `set' does not quote correctly, so add quotes (double-quote
4048       # substitution turns \\\\ into \\, and sed turns \\ into \).
4049       sed -n \
4050         "s/'/'\\\\''/g;
4051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4052       ;;
4053     *)
4054       # `set' quotes correctly as required by POSIX, so do not add quotes.
4055       sed -n \
4056         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4057       ;;
4058     esac;
4059 } |
4060   sed '
4061      t clear
4062      : clear
4063      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4064      t end
4065      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4066      : end' >>confcache
4067 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4068   if test -w $cache_file; then
4069     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4070     cat confcache >$cache_file
4071   else
4072     echo "not updating unwritable cache $cache_file"
4073   fi
4074 fi
4075 rm -f confcache
4076
4077 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4078 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4079 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4080 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4081 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4082 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4083 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4084 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4085 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4086 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4087 echo "$as_me: error: libtool configure failed" >&2;}
4088    { (exit 1); exit 1; }; }
4089
4090 # Reload cache, that may have been modified by ltconfig
4091 if test -r "$cache_file"; then
4092   # Some versions of bash will fail to source /dev/null (special
4093   # files actually), so we avoid doing that.
4094   if test -f "$cache_file"; then
4095     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4096 echo "$as_me: loading cache $cache_file" >&6;}
4097     case $cache_file in
4098       [\\/]* | ?:[\\/]* ) . $cache_file;;
4099       *)                      . ./$cache_file;;
4100     esac
4101   fi
4102 else
4103   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4104 echo "$as_me: creating cache $cache_file" >&6;}
4105   >$cache_file
4106 fi
4107
4108
4109 # This can be used to rebuild libtool when needed
4110 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4111
4112 # Always use our own libtool.
4113 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4114
4115 # Redirect the config.log output again, so that the ltconfig log is not
4116 # clobbered by the next message.
4117 exec 5>>./config.log
4118
4119
4120
4121
4122
4123
4124
4125 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4126 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4127     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4128 if test "${enable_maintainer_mode+set}" = set; then
4129   enableval="$enable_maintainer_mode"
4130   USE_MAINTAINER_MODE=$enableval
4131 else
4132   USE_MAINTAINER_MODE=no
4133 fi;
4134   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4135 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4136
4137
4138 if test $USE_MAINTAINER_MODE = yes; then
4139   MAINTAINER_MODE_TRUE=
4140   MAINTAINER_MODE_FALSE='#'
4141 else
4142   MAINTAINER_MODE_TRUE='#'
4143   MAINTAINER_MODE_FALSE=
4144 fi
4145
4146   MAINT=$MAINTAINER_MODE_TRUE
4147
4148
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4156 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4159   CPP=
4160 fi
4161 if test -z "$CPP"; then
4162   if test "${ac_cv_prog_CPP+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165       # Double quotes because CPP needs to be expanded
4166     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4167     do
4168       ac_preproc_ok=false
4169 for ac_c_preproc_warn_flag in '' yes
4170 do
4171   # Use a header file that comes with gcc, so configuring glibc
4172   # with a fresh cross-compiler works.
4173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174   # <limits.h> exists even on freestanding compilers.
4175   # On the NeXT, cc -E runs the code through the compiler's parser,
4176   # not just through cpp. "Syntax error" is here to catch this case.
4177   cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183 #ifdef __STDC__
4184 # include <limits.h>
4185 #else
4186 # include <assert.h>
4187 #endif
4188                      Syntax error
4189 _ACEOF
4190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4192   ac_status=$?
4193   grep -v '^ *+' conftest.er1 >conftest.err
4194   rm -f conftest.er1
4195   cat conftest.err >&5
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } >/dev/null; then
4198   if test -s conftest.err; then
4199     ac_cpp_err=$ac_c_preproc_warn_flag
4200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4201   else
4202     ac_cpp_err=
4203   fi
4204 else
4205   ac_cpp_err=yes
4206 fi
4207 if test -z "$ac_cpp_err"; then
4208   :
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213   # Broken: fails on valid input.
4214 continue
4215 fi
4216 rm -f conftest.err conftest.$ac_ext
4217
4218   # OK, works on sane cases.  Now check whether non-existent headers
4219   # can be detected and how.
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #include <ac_nonexistent.h>
4227 _ACEOF
4228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } >/dev/null; then
4236   if test -s conftest.err; then
4237     ac_cpp_err=$ac_c_preproc_warn_flag
4238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4239   else
4240     ac_cpp_err=
4241   fi
4242 else
4243   ac_cpp_err=yes
4244 fi
4245 if test -z "$ac_cpp_err"; then
4246   # Broken: success on invalid input.
4247 continue
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252   # Passes both tests.
4253 ac_preproc_ok=:
4254 break
4255 fi
4256 rm -f conftest.err conftest.$ac_ext
4257
4258 done
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then
4262   break
4263 fi
4264
4265     done
4266     ac_cv_prog_CPP=$CPP
4267
4268 fi
4269   CPP=$ac_cv_prog_CPP
4270 else
4271   ac_cv_prog_CPP=$CPP
4272 fi
4273 echo "$as_me:$LINENO: result: $CPP" >&5
4274 echo "${ECHO_T}$CPP" >&6
4275 ac_preproc_ok=false
4276 for ac_c_preproc_warn_flag in '' yes
4277 do
4278   # Use a header file that comes with gcc, so configuring glibc
4279   # with a fresh cross-compiler works.
4280   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281   # <limits.h> exists even on freestanding compilers.
4282   # On the NeXT, cc -E runs the code through the compiler's parser,
4283   # not just through cpp. "Syntax error" is here to catch this case.
4284   cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295                      Syntax error
4296 _ACEOF
4297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } >/dev/null; then
4305   if test -s conftest.err; then
4306     ac_cpp_err=$ac_c_preproc_warn_flag
4307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4308   else
4309     ac_cpp_err=
4310   fi
4311 else
4312   ac_cpp_err=yes
4313 fi
4314 if test -z "$ac_cpp_err"; then
4315   :
4316 else
4317   echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320   # Broken: fails on valid input.
4321 continue
4322 fi
4323 rm -f conftest.err conftest.$ac_ext
4324
4325   # OK, works on sane cases.  Now check whether non-existent headers
4326   # can be detected and how.
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 #include <ac_nonexistent.h>
4334 _ACEOF
4335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } >/dev/null; then
4343   if test -s conftest.err; then
4344     ac_cpp_err=$ac_c_preproc_warn_flag
4345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4346   else
4347     ac_cpp_err=
4348   fi
4349 else
4350   ac_cpp_err=yes
4351 fi
4352 if test -z "$ac_cpp_err"; then
4353   # Broken: success on invalid input.
4354 continue
4355 else
4356   echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359   # Passes both tests.
4360 ac_preproc_ok=:
4361 break
4362 fi
4363 rm -f conftest.err conftest.$ac_ext
4364
4365 done
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then
4369   :
4370 else
4371   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details." >&5
4373 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log' for more details." >&2;}
4375    { (exit 1); exit 1; }; }
4376 fi
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384
4385 echo "$as_me:$LINENO: checking for egrep" >&5
4386 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4387 if test "${ac_cv_prog_egrep+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4391     then ac_cv_prog_egrep='grep -E'
4392     else ac_cv_prog_egrep='egrep'
4393     fi
4394 fi
4395 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4396 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4397  EGREP=$ac_cv_prog_egrep
4398
4399
4400 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4402 if test "${ac_cv_header_stdc+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #include <stdlib.h>
4412 #include <stdarg.h>
4413 #include <string.h>
4414 #include <float.h>
4415
4416 int
4417 main ()
4418 {
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426   (eval $ac_compile) 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435   (eval $ac_try) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; } &&
4439          { ac_try='test -s conftest.$ac_objext'
4440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441   (eval $ac_try) 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); }; }; then
4445   ac_cv_header_stdc=yes
4446 else
4447   echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450 ac_cv_header_stdc=no
4451 fi
4452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4453
4454 if test $ac_cv_header_stdc = yes; then
4455   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4456   cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 #include <string.h>
4463
4464 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466   $EGREP "memchr" >/dev/null 2>&1; then
4467   :
4468 else
4469   ac_cv_header_stdc=no
4470 fi
4471 rm -f conftest*
4472
4473 fi
4474
4475 if test $ac_cv_header_stdc = yes; then
4476   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 #include <stdlib.h>
4484
4485 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487   $EGREP "free" >/dev/null 2>&1; then
4488   :
4489 else
4490   ac_cv_header_stdc=no
4491 fi
4492 rm -f conftest*
4493
4494 fi
4495
4496 if test $ac_cv_header_stdc = yes; then
4497   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498   if test "$cross_compiling" = yes; then
4499   :
4500 else
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <ctype.h>
4508 #if ((' ' & 0x0FF) == 0x020)
4509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4511 #else
4512 # define ISLOWER(c) \
4513                    (('a' <= (c) && (c) <= 'i') \
4514                      || ('j' <= (c) && (c) <= 'r') \
4515                      || ('s' <= (c) && (c) <= 'z'))
4516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4517 #endif
4518
4519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4520 int
4521 main ()
4522 {
4523   int i;
4524   for (i = 0; i < 256; i++)
4525     if (XOR (islower (i), ISLOWER (i))
4526         || toupper (i) != TOUPPER (i))
4527       exit(2);
4528   exit (0);
4529 }
4530 _ACEOF
4531 rm -f conftest$ac_exeext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533   (eval $ac_link) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538   (eval $ac_try) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; }; then
4542   :
4543 else
4544   echo "$as_me: program exited with status $ac_status" >&5
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 ( exit $ac_status )
4549 ac_cv_header_stdc=no
4550 fi
4551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4552 fi
4553 fi
4554 fi
4555 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4556 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4557 if test $ac_cv_header_stdc = yes; then
4558
4559 cat >>confdefs.h <<\_ACEOF
4560 #define STDC_HEADERS 1
4561 _ACEOF
4562
4563 fi
4564
4565 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4576                   inttypes.h stdint.h unistd.h
4577 do
4578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590 $ac_includes_default
4591
4592 #include <$ac_header>
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596   (eval $ac_compile) 2>conftest.er1
4597   ac_status=$?
4598   grep -v '^ *+' conftest.er1 >conftest.err
4599   rm -f conftest.er1
4600   cat conftest.err >&5
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; } &&
4609          { ac_try='test -s conftest.$ac_objext'
4610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611   (eval $ac_try) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; }; then
4615   eval "$as_ac_Header=yes"
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 eval "$as_ac_Header=no"
4621 fi
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4627   cat >>confdefs.h <<_ACEOF
4628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629 _ACEOF
4630
4631 fi
4632
4633 done
4634
4635
4636
4637 for ac_header in sys/mman.h
4638 do
4639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641   echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 fi
4646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4648 else
4649   # Is the header compilable?
4650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658 $ac_includes_default
4659 #include <$ac_header>
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663   (eval $ac_compile) 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_header_compiler=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_header_compiler=no
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691 echo "${ECHO_T}$ac_header_compiler" >&6
4692
4693 # Is the header present?
4694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 #include <$ac_header>
4703 _ACEOF
4704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4706   ac_status=$?
4707   grep -v '^ *+' conftest.er1 >conftest.err
4708   rm -f conftest.er1
4709   cat conftest.err >&5
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } >/dev/null; then
4712   if test -s conftest.err; then
4713     ac_cpp_err=$ac_c_preproc_warn_flag
4714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4715   else
4716     ac_cpp_err=
4717   fi
4718 else
4719   ac_cpp_err=yes
4720 fi
4721 if test -z "$ac_cpp_err"; then
4722   ac_header_preproc=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727   ac_header_preproc=no
4728 fi
4729 rm -f conftest.err conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4731 echo "${ECHO_T}$ac_header_preproc" >&6
4732
4733 # So?  What about this header?
4734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4735   yes:no: )
4736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4740     ac_header_preproc=yes
4741     ;;
4742   no:yes:* )
4743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4755     (
4756       cat <<\_ASBOX
4757 ## ------------------------------------------- ##
4758 ## Report this to http://gcc.gnu.org/bugs.html ##
4759 ## ------------------------------------------- ##
4760 _ASBOX
4761     ) |
4762       sed "s/^/$as_me: WARNING:     /" >&2
4763     ;;
4764 esac
4765 echo "$as_me:$LINENO: checking for $ac_header" >&5
4766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   eval "$as_ac_Header=\$ac_header_preproc"
4771 fi
4772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774
4775 fi
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777   cat >>confdefs.h <<_ACEOF
4778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782
4783 done
4784
4785
4786 for ac_func in mmap
4787 do
4788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4789 echo "$as_me:$LINENO: checking for $ac_func" >&5
4790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_var+set}\" = set"; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4802 #define $ac_func innocuous_$ac_func
4803
4804 /* System header to define __stub macros and hopefully few prototypes,
4805     which can conflict with char $ac_func (); below.
4806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807     <limits.h> exists even on freestanding compilers.  */
4808
4809 #ifdef __STDC__
4810 # include <limits.h>
4811 #else
4812 # include <assert.h>
4813 #endif
4814
4815 #undef $ac_func
4816
4817 /* Override any gcc2 internal prototype to avoid an error.  */
4818 #ifdef __cplusplus
4819 extern "C"
4820 {
4821 #endif
4822 /* We use char because int might match the return type of a gcc2
4823    builtin and then its argument prototype would still apply.  */
4824 char $ac_func ();
4825 /* The GNU C library defines this for functions which it implements
4826     to always fail with ENOSYS.  Some functions are actually named
4827     something starting with __ and the normal name is an alias.  */
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4829 choke me
4830 #else
4831 char (*f) () = $ac_func;
4832 #endif
4833 #ifdef __cplusplus
4834 }
4835 #endif
4836
4837 int
4838 main ()
4839 {
4840 return f != $ac_func;
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 rm -f conftest.$ac_objext conftest$ac_exeext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4847   (eval $ac_link) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } &&
4854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; } &&
4860          { ac_try='test -s conftest$ac_exeext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   eval "$as_ac_var=yes"
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 eval "$as_ac_var=no"
4872 fi
4873 rm -f conftest.err conftest.$ac_objext \
4874       conftest$ac_exeext conftest.$ac_ext
4875 fi
4876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4878 if test `eval echo '${'$as_ac_var'}'` = yes; then
4879   cat >>confdefs.h <<_ACEOF
4880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4881 _ACEOF
4882
4883 fi
4884 done
4885
4886
4887 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4888   echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4889 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4890 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 fi
4893 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4894 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4895 else
4896   # Is the header compilable?
4897 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4898 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 $ac_includes_default
4906 #include <sys/mman.h>
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910   (eval $ac_compile) 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; } &&
4923          { ac_try='test -s conftest.$ac_objext'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; }; then
4929   ac_header_compiler=yes
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 ac_header_compiler=no
4935 fi
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4938 echo "${ECHO_T}$ac_header_compiler" >&6
4939
4940 # Is the header present?
4941 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4942 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <sys/mman.h>
4950 _ACEOF
4951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } >/dev/null; then
4959   if test -s conftest.err; then
4960     ac_cpp_err=$ac_c_preproc_warn_flag
4961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4962   else
4963     ac_cpp_err=
4964   fi
4965 else
4966   ac_cpp_err=yes
4967 fi
4968 if test -z "$ac_cpp_err"; then
4969   ac_header_preproc=yes
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974   ac_header_preproc=no
4975 fi
4976 rm -f conftest.err conftest.$ac_ext
4977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4978 echo "${ECHO_T}$ac_header_preproc" >&6
4979
4980 # So?  What about this header?
4981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4982   yes:no: )
4983     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4984 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4985     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4986 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4987     ac_header_preproc=yes
4988     ;;
4989   no:yes:* )
4990     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
4991 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
4992     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
4993 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
4994     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
4995 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
4996     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
4997 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4998     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
4999 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5000     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5001 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5002     (
5003       cat <<\_ASBOX
5004 ## ------------------------------------------- ##
5005 ## Report this to http://gcc.gnu.org/bugs.html ##
5006 ## ------------------------------------------- ##
5007 _ASBOX
5008     ) |
5009       sed "s/^/$as_me: WARNING:     /" >&2
5010     ;;
5011 esac
5012 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5013 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5014 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   ac_cv_header_sys_mman_h=$ac_header_preproc
5018 fi
5019 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5020 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5021
5022 fi
5023 if test $ac_cv_header_sys_mman_h = yes; then
5024   libffi_header_sys_mman_h=yes
5025 else
5026   libffi_header_sys_mman_h=no
5027 fi
5028
5029
5030 echo "$as_me:$LINENO: checking for mmap" >&5
5031 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5032 if test "${ac_cv_func_mmap+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5043 #define mmap innocuous_mmap
5044
5045 /* System header to define __stub macros and hopefully few prototypes,
5046     which can conflict with char mmap (); below.
5047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048     <limits.h> exists even on freestanding compilers.  */
5049
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055
5056 #undef mmap
5057
5058 /* Override any gcc2 internal prototype to avoid an error.  */
5059 #ifdef __cplusplus
5060 extern "C"
5061 {
5062 #endif
5063 /* We use char because int might match the return type of a gcc2
5064    builtin and then its argument prototype would still apply.  */
5065 char mmap ();
5066 /* The GNU C library defines this for functions which it implements
5067     to always fail with ENOSYS.  Some functions are actually named
5068     something starting with __ and the normal name is an alias.  */
5069 #if defined (__stub_mmap) || defined (__stub___mmap)
5070 choke me
5071 #else
5072 char (*f) () = mmap;
5073 #endif
5074 #ifdef __cplusplus
5075 }
5076 #endif
5077
5078 int
5079 main ()
5080 {
5081 return f != mmap;
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088   (eval $ac_link) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest$ac_exeext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_cv_func_mmap=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_cv_func_mmap=no
5113 fi
5114 rm -f conftest.err conftest.$ac_objext \
5115       conftest$ac_exeext conftest.$ac_ext
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5118 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5119 if test $ac_cv_func_mmap = yes; then
5120   libffi_func_mmap=yes
5121 else
5122   libffi_func_mmap=no
5123 fi
5124
5125 if test "$libffi_header_sys_mman_h" != yes \
5126  || test "$libffi_func_mmap" != yes; then
5127    ac_cv_func_mmap_file=no
5128    ac_cv_func_mmap_dev_zero=no
5129    ac_cv_func_mmap_anon=no
5130 else
5131    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5132 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5133 if test "${ac_cv_func_mmap_file+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   # Add a system to this blacklist if
5137    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5138    # memory area containing the same data that you'd get if you applied
5139    # read() to the same fd.  The only system known to have a problem here
5140    # is VMS, where text files have record structure.
5141    case "$host_os" in
5142      vms* | ultrix*)
5143         ac_cv_func_mmap_file=no ;;
5144      *)
5145         ac_cv_func_mmap_file=yes;;
5146    esac
5147 fi
5148 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5149 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5150    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5151 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5152 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   # Add a system to this blacklist if it has mmap() but /dev/zero
5156    # does not exist, or if mmapping /dev/zero does not give anonymous
5157    # zeroed pages with both the following properties:
5158    # 1. If you map N consecutive pages in with one call, and then
5159    #    unmap any subset of those pages, the pages that were not
5160    #    explicitly unmapped remain accessible.
5161    # 2. If you map two adjacent blocks of memory and then unmap them
5162    #    both at once, they must both go away.
5163    # Systems known to be in this category are Windows (all variants),
5164    # VMS, and Darwin.
5165    case "$host_os" in
5166      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5167         ac_cv_func_mmap_dev_zero=no ;;
5168      *)
5169         ac_cv_func_mmap_dev_zero=yes;;
5170    esac
5171 fi
5172 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5173 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5174
5175    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5176    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5177 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5178 if test "${ac_cv_decl_map_anon+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 #include <sys/types.h>
5188 #include <sys/mman.h>
5189 #include <unistd.h>
5190
5191 #ifndef MAP_ANONYMOUS
5192 #define MAP_ANONYMOUS MAP_ANON
5193 #endif
5194
5195 int
5196 main ()
5197 {
5198 int n = MAP_ANONYMOUS;
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205   (eval $ac_compile) 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; } &&
5218          { ac_try='test -s conftest.$ac_objext'
5219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220   (eval $ac_try) 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); }; }; then
5224   ac_cv_decl_map_anon=yes
5225 else
5226   echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229 ac_cv_decl_map_anon=no
5230 fi
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5234 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5235
5236    if test $ac_cv_decl_map_anon = no; then
5237      ac_cv_func_mmap_anon=no
5238    else
5239      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5240 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5241 if test "${ac_cv_func_mmap_anon+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   # Add a system to this blacklist if it has mmap() and MAP_ANON or
5245    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5246    # doesn't give anonymous zeroed pages with the same properties listed
5247    # above for use of /dev/zero.
5248    # Systems known to be in this category are Windows, VMS, and SCO Unix.
5249    case "$host_os" in
5250      vms* | cygwin* | pe | mingw* | sco* | udk* )
5251         ac_cv_func_mmap_anon=no ;;
5252      *)
5253         ac_cv_func_mmap_anon=yes;;
5254    esac
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5257 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5258    fi
5259 fi
5260
5261 if test $ac_cv_func_mmap_file = yes; then
5262
5263 cat >>confdefs.h <<\_ACEOF
5264 #define HAVE_MMAP_FILE 1
5265 _ACEOF
5266
5267 fi
5268 if test $ac_cv_func_mmap_dev_zero = yes; then
5269
5270 cat >>confdefs.h <<\_ACEOF
5271 #define HAVE_MMAP_DEV_ZERO 1
5272 _ACEOF
5273
5274 fi
5275 if test $ac_cv_func_mmap_anon = yes; then
5276
5277 cat >>confdefs.h <<\_ACEOF
5278 #define HAVE_MMAP_ANON 1
5279 _ACEOF
5280
5281 fi
5282
5283
5284
5285
5286 if test -d $srcdir/testsuite; then
5287   TESTSUBDIR_TRUE=
5288   TESTSUBDIR_FALSE='#'
5289 else
5290   TESTSUBDIR_TRUE='#'
5291   TESTSUBDIR_FALSE=
5292 fi
5293
5294
5295 TARGETDIR="unknown"
5296 case "$host" in
5297 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5298 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5299 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5300 i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5301 i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5302 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5303 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5304 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5305 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5306 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5307 sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5308 sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5309 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
5310 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5311 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5312 mips64*-*);;
5313 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5314 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5315 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5316 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5317 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5318 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5319 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5320 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5321 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5322 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5323 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5324 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5325 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5326 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5327 hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
5328 esac
5329
5330
5331
5332 if test $TARGETDIR = unknown; then
5333   { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5334 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5335    { (exit 1); exit 1; }; }
5336 fi
5337
5338
5339
5340 if test x$TARGET = xMIPS_IRIX; then
5341   MIPS_IRIX_TRUE=
5342   MIPS_IRIX_FALSE='#'
5343 else
5344   MIPS_IRIX_TRUE='#'
5345   MIPS_IRIX_FALSE=
5346 fi
5347
5348
5349
5350 if test x$TARGET = xMIPS_LINUX; then
5351   MIPS_LINUX_TRUE=
5352   MIPS_LINUX_FALSE='#'
5353 else
5354   MIPS_LINUX_TRUE='#'
5355   MIPS_LINUX_FALSE=
5356 fi
5357
5358
5359
5360 if test x$TARGET = xSPARC; then
5361   SPARC_TRUE=
5362   SPARC_FALSE='#'
5363 else
5364   SPARC_TRUE='#'
5365   SPARC_FALSE=
5366 fi
5367
5368
5369
5370 if test x$TARGET = xX86; then
5371   X86_TRUE=
5372   X86_FALSE='#'
5373 else
5374   X86_TRUE='#'
5375   X86_FALSE=
5376 fi
5377
5378
5379
5380 if test x$TARGET = xX86_WIN32; then
5381   X86_WIN32_TRUE=
5382   X86_WIN32_FALSE='#'
5383 else
5384   X86_WIN32_TRUE='#'
5385   X86_WIN32_FALSE=
5386 fi
5387
5388
5389
5390 if test x$TARGET = xALPHA; then
5391   ALPHA_TRUE=
5392   ALPHA_FALSE='#'
5393 else
5394   ALPHA_TRUE='#'
5395   ALPHA_FALSE=
5396 fi
5397
5398
5399
5400 if test x$TARGET = xIA64; then
5401   IA64_TRUE=
5402   IA64_FALSE='#'
5403 else
5404   IA64_TRUE='#'
5405   IA64_FALSE=
5406 fi
5407
5408
5409
5410 if test x$TARGET = xM68K; then
5411   M68K_TRUE=
5412   M68K_FALSE='#'
5413 else
5414   M68K_TRUE='#'
5415   M68K_FALSE=
5416 fi
5417
5418
5419
5420 if test x$TARGET = xPOWERPC; then
5421   POWERPC_TRUE=
5422   POWERPC_FALSE='#'
5423 else
5424   POWERPC_TRUE='#'
5425   POWERPC_FALSE=
5426 fi
5427
5428
5429
5430 if test x$TARGET = xPOWERPC_AIX; then
5431   POWERPC_AIX_TRUE=
5432   POWERPC_AIX_FALSE='#'
5433 else
5434   POWERPC_AIX_TRUE='#'
5435   POWERPC_AIX_FALSE=
5436 fi
5437
5438
5439
5440 if test x$TARGET = xPOWERPC_DARWIN; then
5441   POWERPC_DARWIN_TRUE=
5442   POWERPC_DARWIN_FALSE='#'
5443 else
5444   POWERPC_DARWIN_TRUE='#'
5445   POWERPC_DARWIN_FALSE=
5446 fi
5447
5448
5449
5450 if test x$TARGET = xARM; then
5451   ARM_TRUE=
5452   ARM_FALSE='#'
5453 else
5454   ARM_TRUE='#'
5455   ARM_FALSE=
5456 fi
5457
5458
5459
5460 if test x$TARGET = xS390; then
5461   S390_TRUE=
5462   S390_FALSE='#'
5463 else
5464   S390_TRUE='#'
5465   S390_FALSE=
5466 fi
5467
5468
5469
5470 if test x$TARGET = xX86_64; then
5471   X86_64_TRUE=
5472   X86_64_FALSE='#'
5473 else
5474   X86_64_TRUE='#'
5475   X86_64_FALSE=
5476 fi
5477
5478
5479
5480 if test x$TARGET = xSH; then
5481   SH_TRUE=
5482   SH_FALSE='#'
5483 else
5484   SH_TRUE='#'
5485   SH_FALSE=
5486 fi
5487
5488
5489
5490 if test x$TARGET = xSH64; then
5491   SH64_TRUE=
5492   SH64_FALSE='#'
5493 else
5494   SH64_TRUE='#'
5495   SH64_FALSE=
5496 fi
5497
5498
5499
5500 if test x$TARGET = xPA; then
5501   PA_TRUE=
5502   PA_FALSE='#'
5503 else
5504   PA_TRUE='#'
5505   PA_FALSE=
5506 fi
5507
5508
5509 case x$TARGET in
5510   xMIPS*) TARGET=MIPS ;;
5511   *) ;;
5512 esac
5513
5514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5516 if test "${ac_cv_header_stdc+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <stdlib.h>
5526 #include <stdarg.h>
5527 #include <string.h>
5528 #include <float.h>
5529
5530 int
5531 main ()
5532 {
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540   (eval $ac_compile) 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; } &&
5553          { ac_try='test -s conftest.$ac_objext'
5554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555   (eval $ac_try) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   ac_cv_header_stdc=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567
5568 if test $ac_cv_header_stdc = yes; then
5569   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5570   cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h.  */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h.  */
5576 #include <string.h>
5577
5578 _ACEOF
5579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5580   $EGREP "memchr" >/dev/null 2>&1; then
5581   :
5582 else
5583   ac_cv_header_stdc=no
5584 fi
5585 rm -f conftest*
5586
5587 fi
5588
5589 if test $ac_cv_header_stdc = yes; then
5590   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 #include <stdlib.h>
5598
5599 _ACEOF
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601   $EGREP "free" >/dev/null 2>&1; then
5602   :
5603 else
5604   ac_cv_header_stdc=no
5605 fi
5606 rm -f conftest*
5607
5608 fi
5609
5610 if test $ac_cv_header_stdc = yes; then
5611   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5612   if test "$cross_compiling" = yes; then
5613   :
5614 else
5615   cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <ctype.h>
5622 #if ((' ' & 0x0FF) == 0x020)
5623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5625 #else
5626 # define ISLOWER(c) \
5627                    (('a' <= (c) && (c) <= 'i') \
5628                      || ('j' <= (c) && (c) <= 'r') \
5629                      || ('s' <= (c) && (c) <= 'z'))
5630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5631 #endif
5632
5633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5634 int
5635 main ()
5636 {
5637   int i;
5638   for (i = 0; i < 256; i++)
5639     if (XOR (islower (i), ISLOWER (i))
5640         || toupper (i) != TOUPPER (i))
5641       exit(2);
5642   exit (0);
5643 }
5644 _ACEOF
5645 rm -f conftest$ac_exeext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647   (eval $ac_link) 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652   (eval $ac_try) 2>&5
5653   ac_status=$?
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); }; }; then
5656   :
5657 else
5658   echo "$as_me: program exited with status $ac_status" >&5
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 ( exit $ac_status )
5663 ac_cv_header_stdc=no
5664 fi
5665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5666 fi
5667 fi
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5671 if test $ac_cv_header_stdc = yes; then
5672
5673 cat >>confdefs.h <<\_ACEOF
5674 #define STDC_HEADERS 1
5675 _ACEOF
5676
5677 fi
5678
5679
5680 for ac_func in memcpy
5681 do
5682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5683 echo "$as_me:$LINENO: checking for $ac_func" >&5
5684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5685 if eval "test \"\${$as_ac_var+set}\" = set"; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5696 #define $ac_func innocuous_$ac_func
5697
5698 /* System header to define __stub macros and hopefully few prototypes,
5699     which can conflict with char $ac_func (); below.
5700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5701     <limits.h> exists even on freestanding compilers.  */
5702
5703 #ifdef __STDC__
5704 # include <limits.h>
5705 #else
5706 # include <assert.h>
5707 #endif
5708
5709 #undef $ac_func
5710
5711 /* Override any gcc2 internal prototype to avoid an error.  */
5712 #ifdef __cplusplus
5713 extern "C"
5714 {
5715 #endif
5716 /* We use char because int might match the return type of a gcc2
5717    builtin and then its argument prototype would still apply.  */
5718 char $ac_func ();
5719 /* The GNU C library defines this for functions which it implements
5720     to always fail with ENOSYS.  Some functions are actually named
5721     something starting with __ and the normal name is an alias.  */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5723 choke me
5724 #else
5725 char (*f) () = $ac_func;
5726 #endif
5727 #ifdef __cplusplus
5728 }
5729 #endif
5730
5731 int
5732 main ()
5733 {
5734 return f != $ac_func;
5735   ;
5736   return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741   (eval $ac_link) 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; } &&
5754          { ac_try='test -s conftest$ac_exeext'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; }; then
5760   eval "$as_ac_var=yes"
5761 else
5762   echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 eval "$as_ac_var=no"
5766 fi
5767 rm -f conftest.err conftest.$ac_objext \
5768       conftest$ac_exeext conftest.$ac_ext
5769 fi
5770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5772 if test `eval echo '${'$as_ac_var'}'` = yes; then
5773   cat >>confdefs.h <<_ACEOF
5774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5775 _ACEOF
5776
5777 fi
5778 done
5779
5780 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5781 # for constant arguments.  Useless!
5782 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5783 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5784 if test "${ac_cv_working_alloca_h+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <alloca.h>
5794 int
5795 main ()
5796 {
5797 char *p = (char *) alloca (2 * sizeof (int));
5798   ;
5799   return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804   (eval $ac_link) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest$ac_exeext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_cv_working_alloca_h=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_cv_working_alloca_h=no
5829 fi
5830 rm -f conftest.err conftest.$ac_objext \
5831       conftest$ac_exeext conftest.$ac_ext
5832 fi
5833 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5834 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5835 if test $ac_cv_working_alloca_h = yes; then
5836
5837 cat >>confdefs.h <<\_ACEOF
5838 #define HAVE_ALLOCA_H 1
5839 _ACEOF
5840
5841 fi
5842
5843 echo "$as_me:$LINENO: checking for alloca" >&5
5844 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5845 if test "${ac_cv_func_alloca_works+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 #ifdef __GNUC__
5855 # define alloca __builtin_alloca
5856 #else
5857 # ifdef _MSC_VER
5858 #  include <malloc.h>
5859 #  define alloca _alloca
5860 # else
5861 #  if HAVE_ALLOCA_H
5862 #   include <alloca.h>
5863 #  else
5864 #   ifdef _AIX
5865  #pragma alloca
5866 #   else
5867 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5868 char *alloca ();
5869 #    endif
5870 #   endif
5871 #  endif
5872 # endif
5873 #endif
5874
5875 int
5876 main ()
5877 {
5878 char *p = (char *) alloca (1);
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 rm -f conftest.$ac_objext conftest$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885   (eval $ac_link) 2>conftest.er1
5886   ac_status=$?
5887   grep -v '^ *+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894   (eval $ac_try) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_func_alloca_works=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_cv_func_alloca_works=no
5910 fi
5911 rm -f conftest.err conftest.$ac_objext \
5912       conftest$ac_exeext conftest.$ac_ext
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5915 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5916
5917 if test $ac_cv_func_alloca_works = yes; then
5918
5919 cat >>confdefs.h <<\_ACEOF
5920 #define HAVE_ALLOCA 1
5921 _ACEOF
5922
5923 else
5924   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5925 # that cause trouble.  Some versions do not even contain alloca or
5926 # contain a buggy version.  If you still want to use their alloca,
5927 # use ar to extract alloca.o from them instead of compiling alloca.c.
5928
5929 ALLOCA=alloca.$ac_objext
5930
5931 cat >>confdefs.h <<\_ACEOF
5932 #define C_ALLOCA 1
5933 _ACEOF
5934
5935
5936 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5937 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5938 if test "${ac_cv_os_cray+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 #if defined(CRAY) && ! defined(CRAY2)
5948 webecray
5949 #else
5950 wenotbecray
5951 #endif
5952
5953 _ACEOF
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955   $EGREP "webecray" >/dev/null 2>&1; then
5956   ac_cv_os_cray=yes
5957 else
5958   ac_cv_os_cray=no
5959 fi
5960 rm -f conftest*
5961
5962 fi
5963 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5964 echo "${ECHO_T}$ac_cv_os_cray" >&6
5965 if test $ac_cv_os_cray = yes; then
5966   for ac_func in _getb67 GETB67 getb67; do
5967     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5981 #define $ac_func innocuous_$ac_func
5982
5983 /* System header to define __stub macros and hopefully few prototypes,
5984     which can conflict with char $ac_func (); below.
5985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5986     <limits.h> exists even on freestanding compilers.  */
5987
5988 #ifdef __STDC__
5989 # include <limits.h>
5990 #else
5991 # include <assert.h>
5992 #endif
5993
5994 #undef $ac_func
5995
5996 /* Override any gcc2 internal prototype to avoid an error.  */
5997 #ifdef __cplusplus
5998 extern "C"
5999 {
6000 #endif
6001 /* We use char because int might match the return type of a gcc2
6002    builtin and then its argument prototype would still apply.  */
6003 char $ac_func ();
6004 /* The GNU C library defines this for functions which it implements
6005     to always fail with ENOSYS.  Some functions are actually named
6006     something starting with __ and the normal name is an alias.  */
6007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6008 choke me
6009 #else
6010 char (*f) () = $ac_func;
6011 #endif
6012 #ifdef __cplusplus
6013 }
6014 #endif
6015
6016 int
6017 main ()
6018 {
6019 return f != $ac_func;
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026   (eval $ac_link) 2>conftest.er1
6027   ac_status=$?
6028   grep -v '^ *+' conftest.er1 >conftest.err
6029   rm -f conftest.er1
6030   cat conftest.err >&5
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); } &&
6033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest$ac_exeext'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; }; then
6045   eval "$as_ac_var=yes"
6046 else
6047   echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 eval "$as_ac_var=no"
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053       conftest$ac_exeext conftest.$ac_ext
6054 fi
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6057 if test `eval echo '${'$as_ac_var'}'` = yes; then
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define CRAY_STACKSEG_END $ac_func
6061 _ACEOF
6062
6063     break
6064 fi
6065
6066   done
6067 fi
6068
6069 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6070 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6071 if test "${ac_cv_c_stack_direction+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   if test "$cross_compiling" = yes; then
6075   ac_cv_c_stack_direction=0
6076 else
6077   cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 int
6084 find_stack_direction ()
6085 {
6086   static char *addr = 0;
6087   auto char dummy;
6088   if (addr == 0)
6089     {
6090       addr = &dummy;
6091       return find_stack_direction ();
6092     }
6093   else
6094     return (&dummy > addr) ? 1 : -1;
6095 }
6096
6097 int
6098 main ()
6099 {
6100   exit (find_stack_direction () < 0);
6101 }
6102 _ACEOF
6103 rm -f conftest$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105   (eval $ac_link) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_cv_c_stack_direction=1
6115 else
6116   echo "$as_me: program exited with status $ac_status" >&5
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ( exit $ac_status )
6121 ac_cv_c_stack_direction=-1
6122 fi
6123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 fi
6126 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6127 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6128
6129 cat >>confdefs.h <<_ACEOF
6130 #define STACK_DIRECTION $ac_cv_c_stack_direction
6131 _ACEOF
6132
6133
6134 fi
6135
6136
6137 echo "$as_me:$LINENO: checking size of double" >&5
6138 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6139 if test "${ac_cv_sizeof_double+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
6143   cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 #include "confdefs.h"
6150 #include <sys/types.h>
6151
6152
6153 int
6154 main ()
6155 {
6156 switch (0) case 0: case (sizeof (double) == $ac_size):;
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163   (eval $ac_compile) 2>conftest.er1
6164   ac_status=$?
6165   grep -v '^ *+' conftest.er1 >conftest.err
6166   rm -f conftest.er1
6167   cat conftest.err >&5
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } &&
6170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; } &&
6176          { ac_try='test -s conftest.$ac_objext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_sizeof_double=$ac_size
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 fi
6188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189   if test x$ac_cv_sizeof_double != x ; then break; fi
6190 done
6191
6192 fi
6193
6194 if test x$ac_cv_sizeof_double = x ; then
6195   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
6196 echo "$as_me: error: cannot determine a size for double" >&2;}
6197    { (exit 1); exit 1; }; }
6198 fi
6199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6200 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6204 _ACEOF
6205
6206
6207 echo "$as_me:$LINENO: checking size of long double" >&5
6208 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6209 if test "${ac_cv_sizeof_long_double+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include "confdefs.h"
6220 #include <sys/types.h>
6221
6222
6223 int
6224 main ()
6225 {
6226 switch (0) case 0: case (sizeof (long double) == $ac_size):;
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233   (eval $ac_compile) 2>conftest.er1
6234   ac_status=$?
6235   grep -v '^ *+' conftest.er1 >conftest.err
6236   rm -f conftest.er1
6237   cat conftest.err >&5
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } &&
6240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_cv_sizeof_long_double=$ac_size
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259   if test x$ac_cv_sizeof_long_double != x ; then break; fi
6260 done
6261
6262 fi
6263
6264 if test x$ac_cv_sizeof_long_double = x ; then
6265   { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6266 echo "$as_me: error: cannot determine a size for long double" >&2;}
6267    { (exit 1); exit 1; }; }
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6270 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6271
6272 cat >>confdefs.h <<_ACEOF
6273 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6274 _ACEOF
6275
6276
6277
6278 # Also AC_SUBST this variable for ffi.h.
6279 HAVE_LONG_DOUBLE=0
6280 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6281   if test $ac_cv_sizeof_long_double != 0; then
6282     HAVE_LONG_DOUBLE=1
6283
6284 cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_LONG_DOUBLE 1
6286 _ACEOF
6287
6288   fi
6289 fi
6290
6291
6292 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6293 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6294 if test "${ac_cv_c_bigendian+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   ac_cv_c_bigendian=unknown
6298 # See if sys/param.h defines the BYTE_ORDER macro.
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h.  */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h.  */
6305 #include <sys/types.h>
6306 #include <sys/param.h>
6307 int
6308 main ()
6309 {
6310
6311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6312  bogus endian macros
6313 #endif
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; } &&
6333          { ac_try='test -s conftest.$ac_objext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   # It does; now see whether it defined to BIG_ENDIAN or not.
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346 #include <sys/types.h>
6347 #include <sys/param.h>
6348 int
6349 main ()
6350 {
6351
6352 #if BYTE_ORDER != BIG_ENDIAN
6353  not big endian
6354 #endif
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361   (eval $ac_compile) 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; } &&
6374          { ac_try='test -s conftest.$ac_objext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   ac_cv_c_bigendian=yes
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 ac_cv_c_bigendian=no
6386 fi
6387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 fi
6393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394 if test $ac_cv_c_bigendian = unknown; then
6395 if test "$cross_compiling" = yes; then
6396    echo $ac_n "cross-compiling... " 2>&6
6397 else
6398   cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 main () {
6405   /* Are we little or big endian?  From Harbison&Steele.  */
6406   union
6407   {
6408     long l;
6409     char c[sizeof (long)];
6410   } u;
6411   u.l = 1;
6412   exit (u.c[sizeof (long) - 1] == 1);
6413 }
6414 _ACEOF
6415 rm -f conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_c_bigendian=no
6427 else
6428   echo "$as_me: program exited with status $ac_status" >&5
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ( exit $ac_status )
6433 ac_cv_c_bigendian=yes
6434 fi
6435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 fi
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6440 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6441 if test $ac_cv_c_bigendian = unknown; then
6442 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6443 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6444
6445 cat >conftest.c <<EOF
6446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6448 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6451 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6452 int main() { _ascii (); _ebcdic (); return 0; }
6453 EOF
6454  if test -f conftest.c ; then
6455      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6456         if test `grep -l BIGenDianSyS conftest.o` ; then
6457            echo $ac_n ' big endian probe OK, ' 1>&6
6458            ac_cv_c_bigendian=yes
6459         fi
6460         if test `grep -l LiTTleEnDian conftest.o` ; then
6461            echo $ac_n ' little endian probe OK, ' 1>&6
6462            if test $ac_cv_c_bigendian = yes ; then
6463             ac_cv_c_bigendian=unknown;
6464            else
6465             ac_cv_c_bigendian=no
6466            fi
6467         fi
6468         echo $ac_n 'guessing bigendian ...  ' >&6
6469      fi
6470   fi
6471 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6472 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6473 fi
6474 if test $ac_cv_c_bigendian = yes; then
6475
6476 cat >>confdefs.h <<\_ACEOF
6477 #define WORDS_BIGENDIAN 1
6478 _ACEOF
6479
6480
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HOST_WORDS_BIG_ENDIAN 1
6483 _ACEOF
6484
6485   BYTEORDER=4321
6486 else
6487   BYTEORDER=1234
6488 fi
6489
6490 cat >>confdefs.h <<_ACEOF
6491 #define BYTEORDER $BYTEORDER
6492 _ACEOF
6493
6494 if test $ac_cv_c_bigendian = unknown; then
6495   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6496 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6497    { (exit 1); exit 1; }; }
6498 fi
6499
6500
6501 if test x$TARGET = xSPARC; then
6502     echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6503 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6504 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507
6508         save_CFLAGS="$CFLAGS"
6509         save_LDFLAGS="$LDFLAGS"
6510         CFLAGS="$CFLAGS -fpic"
6511         LDFLAGS="$LDFLAGS -shared"
6512         cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
6519 int
6520 main ()
6521 {
6522
6523   ;
6524   return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6529   (eval $ac_link) 2>conftest.er1
6530   ac_status=$?
6531   grep -v '^ *+' conftest.er1 >conftest.err
6532   rm -f conftest.er1
6533   cat conftest.err >&5
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } &&
6536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; } &&
6542          { ac_try='test -s conftest$ac_exeext'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   libffi_cv_as_sparc_ua_pcrel=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 libffi_cv_as_sparc_ua_pcrel=no
6554 fi
6555 rm -f conftest.err conftest.$ac_objext \
6556       conftest$ac_exeext conftest.$ac_ext
6557         CFLAGS="$save_CFLAGS"
6558         LDFLAGS="$save_LDFLAGS"
6559 fi
6560 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6561 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
6562     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
6563
6564 cat >>confdefs.h <<\_ACEOF
6565 #define HAVE_AS_SPARC_UA_PCREL 1
6566 _ACEOF
6567
6568     fi
6569
6570     echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6571 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6572 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575
6576        libffi_cv_as_register_pseudo_op=unknown
6577        # Check if we have .register
6578        cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584 asm (".register %g2, #scratch");
6585 int
6586 main ()
6587 {
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; } &&
6608          { ac_try='test -s conftest.$ac_objext'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; }; then
6614   libffi_cv_as_register_pseudo_op=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 libffi_cv_as_register_pseudo_op=no
6620 fi
6621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622
6623 fi
6624 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6625 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
6626     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
6627
6628 cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6630 _ACEOF
6631
6632     fi
6633 fi
6634
6635 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6636 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6637 if test "${libffi_cv_ro_eh_frame+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640
6641         libffi_cv_ro_eh_frame=no
6642         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6643         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
6644             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
6645                 libffi_cv_ro_eh_frame=yes
6646             elif grep '.section.*eh_frame.*#alloc' conftest.c \
6647                  | grep -v '#write' > /dev/null; then
6648                 libffi_cv_ro_eh_frame=yes
6649             fi
6650         fi
6651         rm -f conftest.*
6652
6653 fi
6654 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6655 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
6656 if test "x$libffi_cv_ro_eh_frame" = xyes; then
6657
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_RO_EH_FRAME 1
6660 _ACEOF
6661
6662
6663 cat >>confdefs.h <<\_ACEOF
6664 #define EH_FRAME_FLAGS "a"
6665 _ACEOF
6666
6667 else
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define EH_FRAME_FLAGS "aw"
6671 _ACEOF
6672
6673 fi
6674
6675
6676
6677
6678
6679
6680 # Check whether --enable-debug or --disable-debug was given.
6681 if test "${enable_debug+set}" = set; then
6682   enableval="$enable_debug"
6683   if test "$enable_debug" = "yes"; then
6684
6685 cat >>confdefs.h <<\_ACEOF
6686 #define FFI_DEBUG 1
6687 _ACEOF
6688
6689   fi
6690 fi;
6691
6692 # Check whether --enable-structs or --disable-structs was given.
6693 if test "${enable_structs+set}" = set; then
6694   enableval="$enable_structs"
6695   if test "$enable_structs" = "no"; then
6696
6697 cat >>confdefs.h <<\_ACEOF
6698 #define FFI_NO_STRUCTS 1
6699 _ACEOF
6700
6701   fi
6702 fi;
6703
6704 # Check whether --enable-raw-api or --disable-raw-api was given.
6705 if test "${enable_raw_api+set}" = set; then
6706   enableval="$enable_raw_api"
6707   if test "$enable_raw_api" = "no"; then
6708
6709 cat >>confdefs.h <<\_ACEOF
6710 #define FFI_NO_RAW_API 1
6711 _ACEOF
6712
6713   fi
6714 fi;
6715
6716 # Check whether --enable-purify-safety or --disable-purify-safety was given.
6717 if test "${enable_purify_safety+set}" = set; then
6718   enableval="$enable_purify_safety"
6719   if test "$enable_purify_safety" = "yes"; then
6720
6721 cat >>confdefs.h <<\_ACEOF
6722 #define USING_PURIFY 1
6723 _ACEOF
6724
6725   fi
6726 fi;
6727
6728 if test -n "$with_cross_host" &&
6729    test x"$with_cross_host" != x"no"; then
6730   toolexecdir='$(exec_prefix)/$(target_alias)'
6731   toolexeclibdir='$(toolexecdir)/lib'
6732 else
6733   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6734   toolexeclibdir='$(libdir)'
6735 fi
6736 multi_os_directory=`$CC -print-multi-os-directory`
6737 case $multi_os_directory in
6738   .) ;; # Avoid trailing /.
6739   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6740 esac
6741
6742
6743
6744 #Figure out where generated headers like ffitarget.h get installed.
6745 gcc_version_trigger=${srcdir}/../gcc/version.c
6746 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
6747 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6748 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6749
6750
6751
6752
6753 if test "${multilib}" = "yes"; then
6754   multilib_arg="--enable-multilib"
6755 else
6756   multilib_arg=
6757 fi
6758
6759           ac_config_commands="$ac_config_commands include"
6760
6761           ac_config_commands="$ac_config_commands src"
6762
6763
6764           ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6765
6766
6767                                         ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6768
6769
6770 cat >confcache <<\_ACEOF
6771 # This file is a shell script that caches the results of configure
6772 # tests run on this system so they can be shared between configure
6773 # scripts and configure runs, see configure's option --config-cache.
6774 # It is not useful on other systems.  If it contains results you don't
6775 # want to keep, you may remove or edit it.
6776 #
6777 # config.status only pays attention to the cache file if you give it
6778 # the --recheck option to rerun configure.
6779 #
6780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6782 # following values.
6783
6784 _ACEOF
6785
6786 # The following way of writing the cache mishandles newlines in values,
6787 # but we know of no workaround that is simple, portable, and efficient.
6788 # So, don't put newlines in cache variables' values.
6789 # Ultrix sh set writes to stderr and can't be redirected directly,
6790 # and sets the high bit in the cache file unless we assign to the vars.
6791 {
6792   (set) 2>&1 |
6793     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6794     *ac_space=\ *)
6795       # `set' does not quote correctly, so add quotes (double-quote
6796       # substitution turns \\\\ into \\, and sed turns \\ into \).
6797       sed -n \
6798         "s/'/'\\\\''/g;
6799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6800       ;;
6801     *)
6802       # `set' quotes correctly as required by POSIX, so do not add quotes.
6803       sed -n \
6804         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6805       ;;
6806     esac;
6807 } |
6808   sed '
6809      t clear
6810      : clear
6811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6812      t end
6813      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6814      : end' >>confcache
6815 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6816   if test -w $cache_file; then
6817     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6818     cat confcache >$cache_file
6819   else
6820     echo "not updating unwritable cache $cache_file"
6821   fi
6822 fi
6823 rm -f confcache
6824
6825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6826 # Let make expand exec_prefix.
6827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6828
6829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6831 # trailing colons and then remove the whole line if VPATH becomes empty
6832 # (actually we leave an empty line to preserve line numbers).
6833 if test "x$srcdir" = x.; then
6834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6835 s/:*\$(srcdir):*/:/;
6836 s/:*\${srcdir}:*/:/;
6837 s/:*@srcdir@:*/:/;
6838 s/^\([^=]*=[     ]*\):*/\1/;
6839 s/:*$//;
6840 s/^[^=]*=[       ]*$//;
6841 }'
6842 fi
6843
6844 DEFS=-DHAVE_CONFIG_H
6845
6846 ac_libobjs=
6847 ac_ltlibobjs=
6848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6849   # 1. Remove the extension, and $U if already installed.
6850   ac_i=`echo "$ac_i" |
6851          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6852   # 2. Add them.
6853   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6854   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6855 done
6856 LIBOBJS=$ac_libobjs
6857
6858 LTLIBOBJS=$ac_ltlibobjs
6859
6860
6861 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6862   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6863 Usually this means the macro was only invoked conditionally." >&5
6864 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6865 Usually this means the macro was only invoked conditionally." >&2;}
6866    { (exit 1); exit 1; }; }
6867 fi
6868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6869   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6870 Usually this means the macro was only invoked conditionally." >&5
6871 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6872 Usually this means the macro was only invoked conditionally." >&2;}
6873    { (exit 1); exit 1; }; }
6874 fi
6875 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6876   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6877 Usually this means the macro was only invoked conditionally." >&5
6878 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6879 Usually this means the macro was only invoked conditionally." >&2;}
6880    { (exit 1); exit 1; }; }
6881 fi
6882 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6883   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6884 Usually this means the macro was only invoked conditionally." >&5
6885 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6886 Usually this means the macro was only invoked conditionally." >&2;}
6887    { (exit 1); exit 1; }; }
6888 fi
6889 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6890   { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6891 Usually this means the macro was only invoked conditionally." >&5
6892 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6893 Usually this means the macro was only invoked conditionally." >&2;}
6894    { (exit 1); exit 1; }; }
6895 fi
6896 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6897   { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6898 Usually this means the macro was only invoked conditionally." >&5
6899 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6900 Usually this means the macro was only invoked conditionally." >&2;}
6901    { (exit 1); exit 1; }; }
6902 fi
6903 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6904   { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6905 Usually this means the macro was only invoked conditionally." >&5
6906 echo "$as_me: error: conditional \"SPARC\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&2;}
6908    { (exit 1); exit 1; }; }
6909 fi
6910 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6911   { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6912 Usually this means the macro was only invoked conditionally." >&5
6913 echo "$as_me: error: conditional \"X86\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&2;}
6915    { (exit 1); exit 1; }; }
6916 fi
6917 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6918   { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6919 Usually this means the macro was only invoked conditionally." >&5
6920 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6921 Usually this means the macro was only invoked conditionally." >&2;}
6922    { (exit 1); exit 1; }; }
6923 fi
6924 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6925   { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6926 Usually this means the macro was only invoked conditionally." >&5
6927 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6928 Usually this means the macro was only invoked conditionally." >&2;}
6929    { (exit 1); exit 1; }; }
6930 fi
6931 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6932   { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6933 Usually this means the macro was only invoked conditionally." >&5
6934 echo "$as_me: error: conditional \"IA64\" was never defined.
6935 Usually this means the macro was only invoked conditionally." >&2;}
6936    { (exit 1); exit 1; }; }
6937 fi
6938 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
6939   { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
6940 Usually this means the macro was only invoked conditionally." >&5
6941 echo "$as_me: error: conditional \"M68K\" was never defined.
6942 Usually this means the macro was only invoked conditionally." >&2;}
6943    { (exit 1); exit 1; }; }
6944 fi
6945 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
6946   { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
6947 Usually this means the macro was only invoked conditionally." >&5
6948 echo "$as_me: error: conditional \"POWERPC\" was never defined.
6949 Usually this means the macro was only invoked conditionally." >&2;}
6950    { (exit 1); exit 1; }; }
6951 fi
6952 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
6953   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
6954 Usually this means the macro was only invoked conditionally." >&5
6955 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
6956 Usually this means the macro was only invoked conditionally." >&2;}
6957    { (exit 1); exit 1; }; }
6958 fi
6959 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6960   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6961 Usually this means the macro was only invoked conditionally." >&5
6962 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6963 Usually this means the macro was only invoked conditionally." >&2;}
6964    { (exit 1); exit 1; }; }
6965 fi
6966 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
6967   { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
6968 Usually this means the macro was only invoked conditionally." >&5
6969 echo "$as_me: error: conditional \"ARM\" was never defined.
6970 Usually this means the macro was only invoked conditionally." >&2;}
6971    { (exit 1); exit 1; }; }
6972 fi
6973 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
6974   { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
6975 Usually this means the macro was only invoked conditionally." >&5
6976 echo "$as_me: error: conditional \"S390\" was never defined.
6977 Usually this means the macro was only invoked conditionally." >&2;}
6978    { (exit 1); exit 1; }; }
6979 fi
6980 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
6981   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
6982 Usually this means the macro was only invoked conditionally." >&5
6983 echo "$as_me: error: conditional \"X86_64\" was never defined.
6984 Usually this means the macro was only invoked conditionally." >&2;}
6985    { (exit 1); exit 1; }; }
6986 fi
6987 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
6988   { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
6989 Usually this means the macro was only invoked conditionally." >&5
6990 echo "$as_me: error: conditional \"SH\" was never defined.
6991 Usually this means the macro was only invoked conditionally." >&2;}
6992    { (exit 1); exit 1; }; }
6993 fi
6994 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
6995   { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
6996 Usually this means the macro was only invoked conditionally." >&5
6997 echo "$as_me: error: conditional \"SH64\" was never defined.
6998 Usually this means the macro was only invoked conditionally." >&2;}
6999    { (exit 1); exit 1; }; }
7000 fi
7001 if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
7002   { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
7003 Usually this means the macro was only invoked conditionally." >&5
7004 echo "$as_me: error: conditional \"PA\" was never defined.
7005 Usually this means the macro was only invoked conditionally." >&2;}
7006    { (exit 1); exit 1; }; }
7007 fi
7008
7009 : ${CONFIG_STATUS=./config.status}
7010 ac_clean_files_save=$ac_clean_files
7011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7014 cat >$CONFIG_STATUS <<_ACEOF
7015 #! $SHELL
7016 # Generated by $as_me.
7017 # Run this file to recreate the current configuration.
7018 # Compiler output produced by configure, useful for debugging
7019 # configure, is in config.log if it exists.
7020
7021 debug=false
7022 ac_cs_recheck=false
7023 ac_cs_silent=false
7024 SHELL=\${CONFIG_SHELL-$SHELL}
7025 _ACEOF
7026
7027 cat >>$CONFIG_STATUS <<\_ACEOF
7028 ## --------------------- ##
7029 ## M4sh Initialization.  ##
7030 ## --------------------- ##
7031
7032 # Be Bourne compatible
7033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7034   emulate sh
7035   NULLCMD=:
7036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7037   # is contrary to our usage.  Disable this feature.
7038   alias -g '${1+"$@"}'='"$@"'
7039 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7040   set -o posix
7041 fi
7042 DUALCASE=1; export DUALCASE # for MKS sh
7043
7044 # Support unset when possible.
7045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7046   as_unset=unset
7047 else
7048   as_unset=false
7049 fi
7050
7051
7052 # Work around bugs in pre-3.0 UWIN ksh.
7053 $as_unset ENV MAIL MAILPATH
7054 PS1='$ '
7055 PS2='> '
7056 PS4='+ '
7057
7058 # NLS nuisances.
7059 for as_var in \
7060   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7061   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7062   LC_TELEPHONE LC_TIME
7063 do
7064   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7065     eval $as_var=C; export $as_var
7066   else
7067     $as_unset $as_var
7068   fi
7069 done
7070
7071 # Required to use basename.
7072 if expr a : '\(a\)' >/dev/null 2>&1; then
7073   as_expr=expr
7074 else
7075   as_expr=false
7076 fi
7077
7078 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7079   as_basename=basename
7080 else
7081   as_basename=false
7082 fi
7083
7084
7085 # Name of the executable.
7086 as_me=`$as_basename "$0" ||
7087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7088          X"$0" : 'X\(//\)$' \| \
7089          X"$0" : 'X\(/\)$' \| \
7090          .     : '\(.\)' 2>/dev/null ||
7091 echo X/"$0" |
7092     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7093           /^X\/\(\/\/\)$/{ s//\1/; q; }
7094           /^X\/\(\/\).*/{ s//\1/; q; }
7095           s/.*/./; q'`
7096
7097
7098 # PATH needs CR, and LINENO needs CR and PATH.
7099 # Avoid depending upon Character Ranges.
7100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7103 as_cr_digits='0123456789'
7104 as_cr_alnum=$as_cr_Letters$as_cr_digits
7105
7106 # The user is always right.
7107 if test "${PATH_SEPARATOR+set}" != set; then
7108   echo "#! /bin/sh" >conf$$.sh
7109   echo  "exit 0"   >>conf$$.sh
7110   chmod +x conf$$.sh
7111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7112     PATH_SEPARATOR=';'
7113   else
7114     PATH_SEPARATOR=:
7115   fi
7116   rm -f conf$$.sh
7117 fi
7118
7119
7120   as_lineno_1=$LINENO
7121   as_lineno_2=$LINENO
7122   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7123   test "x$as_lineno_1" != "x$as_lineno_2" &&
7124   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7125   # Find who we are.  Look in the path if we contain no path at all
7126   # relative or not.
7127   case $0 in
7128     *[\\/]* ) as_myself=$0 ;;
7129     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7135 done
7136
7137        ;;
7138   esac
7139   # We did not find ourselves, most probably we were run as `sh COMMAND'
7140   # in which case we are not to be found in the path.
7141   if test "x$as_myself" = x; then
7142     as_myself=$0
7143   fi
7144   if test ! -f "$as_myself"; then
7145     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7147    { (exit 1); exit 1; }; }
7148   fi
7149   case $CONFIG_SHELL in
7150   '')
7151     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for as_base in sh bash ksh sh5; do
7157          case $as_dir in
7158          /*)
7159            if ("$as_dir/$as_base" -c '
7160   as_lineno_1=$LINENO
7161   as_lineno_2=$LINENO
7162   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7163   test "x$as_lineno_1" != "x$as_lineno_2" &&
7164   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7165              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7166              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7167              CONFIG_SHELL=$as_dir/$as_base
7168              export CONFIG_SHELL
7169              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7170            fi;;
7171          esac
7172        done
7173 done
7174 ;;
7175   esac
7176
7177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7178   # uniformly replaced by the line number.  The first 'sed' inserts a
7179   # line-number line before each line; the second 'sed' does the real
7180   # work.  The second script uses 'N' to pair each line-number line
7181   # with the numbered line, and appends trailing '-' during
7182   # substitution so that $LINENO is not a special case at line end.
7183   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7184   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7185   sed '=' <$as_myself |
7186     sed '
7187       N
7188       s,$,-,
7189       : loop
7190       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7191       t loop
7192       s,-$,,
7193       s,^['$as_cr_digits']*\n,,
7194     ' >$as_me.lineno &&
7195   chmod +x $as_me.lineno ||
7196     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7197 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7198    { (exit 1); exit 1; }; }
7199
7200   # Don't try to exec as it changes $[0], causing all sort of problems
7201   # (the dirname of $[0] is not the place where we might find the
7202   # original and so on.  Autoconf is especially sensible to this).
7203   . ./$as_me.lineno
7204   # Exit status is that of the last command.
7205   exit
7206 }
7207
7208
7209 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7210   *c*,-n*) ECHO_N= ECHO_C='
7211 ' ECHO_T='      ' ;;
7212   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7213   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7214 esac
7215
7216 if expr a : '\(a\)' >/dev/null 2>&1; then
7217   as_expr=expr
7218 else
7219   as_expr=false
7220 fi
7221
7222 rm -f conf$$ conf$$.exe conf$$.file
7223 echo >conf$$.file
7224 if ln -s conf$$.file conf$$ 2>/dev/null; then
7225   # We could just check for DJGPP; but this test a) works b) is more generic
7226   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7227   if test -f conf$$.exe; then
7228     # Don't use ln at all; we don't have any links
7229     as_ln_s='cp -p'
7230   else
7231     as_ln_s='ln -s'
7232   fi
7233 elif ln conf$$.file conf$$ 2>/dev/null; then
7234   as_ln_s=ln
7235 else
7236   as_ln_s='cp -p'
7237 fi
7238 rm -f conf$$ conf$$.exe conf$$.file
7239
7240 if mkdir -p . 2>/dev/null; then
7241   as_mkdir_p=:
7242 else
7243   test -d ./-p && rmdir ./-p
7244   as_mkdir_p=false
7245 fi
7246
7247 as_executable_p="test -f"
7248
7249 # Sed expression to map a string onto a valid CPP name.
7250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7251
7252 # Sed expression to map a string onto a valid variable name.
7253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7254
7255
7256 # IFS
7257 # We need space, tab and new line, in precisely that order.
7258 as_nl='
7259 '
7260 IFS="   $as_nl"
7261
7262 # CDPATH.
7263 $as_unset CDPATH
7264
7265 exec 6>&1
7266
7267 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7268 # report actual input values of CONFIG_FILES etc. instead of their
7269 # values after options handling.  Logging --version etc. is OK.
7270 exec 5>>config.log
7271 {
7272   echo
7273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7274 ## Running $as_me. ##
7275 _ASBOX
7276 } >&5
7277 cat >&5 <<_CSEOF
7278
7279 This file was extended by libffi $as_me 2.1, which was
7280 generated by GNU Autoconf 2.59.  Invocation command line was
7281
7282   CONFIG_FILES    = $CONFIG_FILES
7283   CONFIG_HEADERS  = $CONFIG_HEADERS
7284   CONFIG_LINKS    = $CONFIG_LINKS
7285   CONFIG_COMMANDS = $CONFIG_COMMANDS
7286   $ $0 $@
7287
7288 _CSEOF
7289 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7290 echo >&5
7291 _ACEOF
7292
7293 # Files that config.status was made for.
7294 if test -n "$ac_config_files"; then
7295   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7296 fi
7297
7298 if test -n "$ac_config_headers"; then
7299   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7300 fi
7301
7302 if test -n "$ac_config_links"; then
7303   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7304 fi
7305
7306 if test -n "$ac_config_commands"; then
7307   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7308 fi
7309
7310 cat >>$CONFIG_STATUS <<\_ACEOF
7311
7312 ac_cs_usage="\
7313 \`$as_me' instantiates files from templates according to the
7314 current configuration.
7315
7316 Usage: $0 [OPTIONS] [FILE]...
7317
7318   -h, --help       print this help, then exit
7319   -V, --version    print version number, then exit
7320   -q, --quiet      do not print progress messages
7321   -d, --debug      don't remove temporary files
7322       --recheck    update $as_me by reconfiguring in the same conditions
7323   --file=FILE[:TEMPLATE]
7324                    instantiate the configuration file FILE
7325   --header=FILE[:TEMPLATE]
7326                    instantiate the configuration header FILE
7327
7328 Configuration files:
7329 $config_files
7330
7331 Configuration headers:
7332 $config_headers
7333
7334 Configuration links:
7335 $config_links
7336
7337 Configuration commands:
7338 $config_commands
7339
7340 Report bugs to <bug-autoconf@gnu.org>."
7341 _ACEOF
7342
7343 cat >>$CONFIG_STATUS <<_ACEOF
7344 ac_cs_version="\\
7345 libffi config.status 2.1
7346 configured by $0, generated by GNU Autoconf 2.59,
7347   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7348
7349 Copyright (C) 2003 Free Software Foundation, Inc.
7350 This config.status script is free software; the Free Software Foundation
7351 gives unlimited permission to copy, distribute and modify it."
7352 srcdir=$srcdir
7353 INSTALL="$INSTALL"
7354 _ACEOF
7355
7356 cat >>$CONFIG_STATUS <<\_ACEOF
7357 # If no file are specified by the user, then we need to provide default
7358 # value.  By we need to know if files were specified by the user.
7359 ac_need_defaults=:
7360 while test $# != 0
7361 do
7362   case $1 in
7363   --*=*)
7364     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7365     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7366     ac_shift=:
7367     ;;
7368   -*)
7369     ac_option=$1
7370     ac_optarg=$2
7371     ac_shift=shift
7372     ;;
7373   *) # This is not an option, so the user has probably given explicit
7374      # arguments.
7375      ac_option=$1
7376      ac_need_defaults=false;;
7377   esac
7378
7379   case $ac_option in
7380   # Handling of the options.
7381 _ACEOF
7382 cat >>$CONFIG_STATUS <<\_ACEOF
7383   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7384     ac_cs_recheck=: ;;
7385   --version | --vers* | -V )
7386     echo "$ac_cs_version"; exit 0 ;;
7387   --he | --h)
7388     # Conflict between --help and --header
7389     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7390 Try \`$0 --help' for more information." >&5
7391 echo "$as_me: error: ambiguous option: $1
7392 Try \`$0 --help' for more information." >&2;}
7393    { (exit 1); exit 1; }; };;
7394   --help | --hel | -h )
7395     echo "$ac_cs_usage"; exit 0 ;;
7396   --debug | --d* | -d )
7397     debug=: ;;
7398   --file | --fil | --fi | --f )
7399     $ac_shift
7400     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7401     ac_need_defaults=false;;
7402   --header | --heade | --head | --hea )
7403     $ac_shift
7404     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7405     ac_need_defaults=false;;
7406   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7407   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7408     ac_cs_silent=: ;;
7409
7410   # This is an error.
7411   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7412 Try \`$0 --help' for more information." >&5
7413 echo "$as_me: error: unrecognized option: $1
7414 Try \`$0 --help' for more information." >&2;}
7415    { (exit 1); exit 1; }; } ;;
7416
7417   *) ac_config_targets="$ac_config_targets $1" ;;
7418
7419   esac
7420   shift
7421 done
7422
7423 ac_configure_extra_args=
7424
7425 if $ac_cs_silent; then
7426   exec 6>/dev/null
7427   ac_configure_extra_args="$ac_configure_extra_args --silent"
7428 fi
7429
7430 _ACEOF
7431 cat >>$CONFIG_STATUS <<_ACEOF
7432 if \$ac_cs_recheck; then
7433   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7434   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7435 fi
7436
7437 _ACEOF
7438
7439 cat >>$CONFIG_STATUS <<_ACEOF
7440 #
7441 # INIT-COMMANDS section.
7442 #
7443
7444
7445 srcdir="$srcdir"
7446 host="$host"
7447 target="$target"
7448 with_multisubdir="$with_multisubdir"
7449 with_multisrctop="$with_multisrctop"
7450 with_target_subdir="$with_target_subdir"
7451 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7452 multi_basedir="$multi_basedir"
7453 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7454 CC="$CC"
7455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7456 TARGETDIR="$TARGETDIR"
7457
7458 _ACEOF
7459
7460
7461
7462 cat >>$CONFIG_STATUS <<\_ACEOF
7463 for ac_config_target in $ac_config_targets
7464 do
7465   case "$ac_config_target" in
7466   # Handling of arguments.
7467   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7468   "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
7469   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7470   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7471   "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7472   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7473   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7474   "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
7475   "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
7476   "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
7477   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7479    { (exit 1); exit 1; }; };;
7480   esac
7481 done
7482
7483 # If the user did not use the arguments to specify the items to instantiate,
7484 # then the envvar interface is used.  Set only those that are not.
7485 # We use the long form for the default assignment because of an extremely
7486 # bizarre bug on SunOS 4.1.3.
7487 if $ac_need_defaults; then
7488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7490   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7491   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7492 fi
7493
7494 # Have a temporary directory for convenience.  Make it in the build tree
7495 # simply because there is no reason to put it here, and in addition,
7496 # creating and moving files from /tmp can sometimes cause problems.
7497 # Create a temporary directory, and hook for its removal unless debugging.
7498 $debug ||
7499 {
7500   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7501   trap '{ (exit 1); exit 1; }' 1 2 13 15
7502 }
7503
7504 # Create a (secure) tmp directory for tmp files.
7505
7506 {
7507   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7508   test -n "$tmp" && test -d "$tmp"
7509 }  ||
7510 {
7511   tmp=./confstat$$-$RANDOM
7512   (umask 077 && mkdir $tmp)
7513 } ||
7514 {
7515    echo "$me: cannot create a temporary directory in ." >&2
7516    { (exit 1); exit 1; }
7517 }
7518
7519 _ACEOF
7520
7521 cat >>$CONFIG_STATUS <<_ACEOF
7522
7523 #
7524 # CONFIG_FILES section.
7525 #
7526
7527 # No need to generate the scripts if there are no CONFIG_FILES.
7528 # This happens for instance when ./config.status config.h
7529 if test -n "\$CONFIG_FILES"; then
7530   # Protect against being on the right side of a sed subst in config.status.
7531   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7532    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7533 s,@SHELL@,$SHELL,;t t
7534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7540 s,@exec_prefix@,$exec_prefix,;t t
7541 s,@prefix@,$prefix,;t t
7542 s,@program_transform_name@,$program_transform_name,;t t
7543 s,@bindir@,$bindir,;t t
7544 s,@sbindir@,$sbindir,;t t
7545 s,@libexecdir@,$libexecdir,;t t
7546 s,@datadir@,$datadir,;t t
7547 s,@sysconfdir@,$sysconfdir,;t t
7548 s,@sharedstatedir@,$sharedstatedir,;t t
7549 s,@localstatedir@,$localstatedir,;t t
7550 s,@libdir@,$libdir,;t t
7551 s,@includedir@,$includedir,;t t
7552 s,@oldincludedir@,$oldincludedir,;t t
7553 s,@infodir@,$infodir,;t t
7554 s,@mandir@,$mandir,;t t
7555 s,@build_alias@,$build_alias,;t t
7556 s,@host_alias@,$host_alias,;t t
7557 s,@target_alias@,$target_alias,;t t
7558 s,@DEFS@,$DEFS,;t t
7559 s,@ECHO_C@,$ECHO_C,;t t
7560 s,@ECHO_N@,$ECHO_N,;t t
7561 s,@ECHO_T@,$ECHO_T,;t t
7562 s,@LIBS@,$LIBS,;t t
7563 s,@multi_basedir@,$multi_basedir,;t t
7564 s,@build@,$build,;t t
7565 s,@build_cpu@,$build_cpu,;t t
7566 s,@build_vendor@,$build_vendor,;t t
7567 s,@build_os@,$build_os,;t t
7568 s,@host@,$host,;t t
7569 s,@host_cpu@,$host_cpu,;t t
7570 s,@host_vendor@,$host_vendor,;t t
7571 s,@host_os@,$host_os,;t t
7572 s,@target@,$target,;t t
7573 s,@target_cpu@,$target_cpu,;t t
7574 s,@target_vendor@,$target_vendor,;t t
7575 s,@target_os@,$target_os,;t t
7576 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7577 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7578 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7579 s,@CYGPATH_W@,$CYGPATH_W,;t t
7580 s,@PACKAGE@,$PACKAGE,;t t
7581 s,@VERSION@,$VERSION,;t t
7582 s,@ACLOCAL@,$ACLOCAL,;t t
7583 s,@AUTOCONF@,$AUTOCONF,;t t
7584 s,@AUTOMAKE@,$AUTOMAKE,;t t
7585 s,@AUTOHEADER@,$AUTOHEADER,;t t
7586 s,@MAKEINFO@,$MAKEINFO,;t t
7587 s,@AMTAR@,$AMTAR,;t t
7588 s,@install_sh@,$install_sh,;t t
7589 s,@STRIP@,$STRIP,;t t
7590 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7591 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7592 s,@mkdir_p@,$mkdir_p,;t t
7593 s,@AWK@,$AWK,;t t
7594 s,@SET_MAKE@,$SET_MAKE,;t t
7595 s,@am__leading_dot@,$am__leading_dot,;t t
7596 s,@CC@,$CC,;t t
7597 s,@ac_ct_CC@,$ac_ct_CC,;t t
7598 s,@EXEEXT@,$EXEEXT,;t t
7599 s,@OBJEXT@,$OBJEXT,;t t
7600 s,@DEPDIR@,$DEPDIR,;t t
7601 s,@am__include@,$am__include,;t t
7602 s,@am__quote@,$am__quote,;t t
7603 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7604 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7605 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7606 s,@CCDEPMODE@,$CCDEPMODE,;t t
7607 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7608 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7609 s,@CFLAGS@,$CFLAGS,;t t
7610 s,@CCAS@,$CCAS,;t t
7611 s,@CCASFLAGS@,$CCASFLAGS,;t t
7612 s,@LN_S@,$LN_S,;t t
7613 s,@RANLIB@,$RANLIB,;t t
7614 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7615 s,@LIBTOOL@,$LIBTOOL,;t t
7616 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7617 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7618 s,@MAINT@,$MAINT,;t t
7619 s,@CPP@,$CPP,;t t
7620 s,@CPPFLAGS@,$CPPFLAGS,;t t
7621 s,@EGREP@,$EGREP,;t t
7622 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7623 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7624 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7625 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7626 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7627 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7628 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7629 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7630 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7631 s,@X86_TRUE@,$X86_TRUE,;t t
7632 s,@X86_FALSE@,$X86_FALSE,;t t
7633 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7634 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7635 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7636 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7637 s,@IA64_TRUE@,$IA64_TRUE,;t t
7638 s,@IA64_FALSE@,$IA64_FALSE,;t t
7639 s,@M68K_TRUE@,$M68K_TRUE,;t t
7640 s,@M68K_FALSE@,$M68K_FALSE,;t t
7641 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7642 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7643 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7644 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7645 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7646 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7647 s,@ARM_TRUE@,$ARM_TRUE,;t t
7648 s,@ARM_FALSE@,$ARM_FALSE,;t t
7649 s,@S390_TRUE@,$S390_TRUE,;t t
7650 s,@S390_FALSE@,$S390_FALSE,;t t
7651 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7652 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7653 s,@SH_TRUE@,$SH_TRUE,;t t
7654 s,@SH_FALSE@,$SH_FALSE,;t t
7655 s,@SH64_TRUE@,$SH64_TRUE,;t t
7656 s,@SH64_FALSE@,$SH64_FALSE,;t t
7657 s,@PA_TRUE@,$PA_TRUE,;t t
7658 s,@PA_FALSE@,$PA_FALSE,;t t
7659 s,@ALLOCA@,$ALLOCA,;t t
7660 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7661 s,@TARGET@,$TARGET,;t t
7662 s,@TARGETDIR@,$TARGETDIR,;t t
7663 s,@toolexecdir@,$toolexecdir,;t t
7664 s,@toolexeclibdir@,$toolexeclibdir,;t t
7665 s,@tool_include_dir@,$tool_include_dir,;t t
7666 s,@gcc_version@,$gcc_version,;t t
7667 s,@LIBOBJS@,$LIBOBJS,;t t
7668 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7669 CEOF
7670
7671 _ACEOF
7672
7673   cat >>$CONFIG_STATUS <<\_ACEOF
7674   # Split the substitutions into bite-sized pieces for seds with
7675   # small command number limits, like on Digital OSF/1 and HP-UX.
7676   ac_max_sed_lines=48
7677   ac_sed_frag=1 # Number of current file.
7678   ac_beg=1 # First line for current file.
7679   ac_end=$ac_max_sed_lines # Line after last line for current file.
7680   ac_more_lines=:
7681   ac_sed_cmds=
7682   while $ac_more_lines; do
7683     if test $ac_beg -gt 1; then
7684       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7685     else
7686       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7687     fi
7688     if test ! -s $tmp/subs.frag; then
7689       ac_more_lines=false
7690     else
7691       # The purpose of the label and of the branching condition is to
7692       # speed up the sed processing (if there are no `@' at all, there
7693       # is no need to browse any of the substitutions).
7694       # These are the two extra sed commands mentioned above.
7695       (echo ':t
7696   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7697       if test -z "$ac_sed_cmds"; then
7698         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7699       else
7700         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7701       fi
7702       ac_sed_frag=`expr $ac_sed_frag + 1`
7703       ac_beg=$ac_end
7704       ac_end=`expr $ac_end + $ac_max_sed_lines`
7705     fi
7706   done
7707   if test -z "$ac_sed_cmds"; then
7708     ac_sed_cmds=cat
7709   fi
7710 fi # test -n "$CONFIG_FILES"
7711
7712 _ACEOF
7713 cat >>$CONFIG_STATUS <<\_ACEOF
7714 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7715   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7716   case $ac_file in
7717   - | *:- | *:-:* ) # input from stdin
7718         cat >$tmp/stdin
7719         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7720         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7721   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7722         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7723   * )   ac_file_in=$ac_file.in ;;
7724   esac
7725
7726   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7727   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7729          X"$ac_file" : 'X\(//\)[^/]' \| \
7730          X"$ac_file" : 'X\(//\)$' \| \
7731          X"$ac_file" : 'X\(/\)' \| \
7732          .     : '\(.\)' 2>/dev/null ||
7733 echo X"$ac_file" |
7734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7735           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7736           /^X\(\/\/\)$/{ s//\1/; q; }
7737           /^X\(\/\).*/{ s//\1/; q; }
7738           s/.*/./; q'`
7739   { if $as_mkdir_p; then
7740     mkdir -p "$ac_dir"
7741   else
7742     as_dir="$ac_dir"
7743     as_dirs=
7744     while test ! -d "$as_dir"; do
7745       as_dirs="$as_dir $as_dirs"
7746       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7748          X"$as_dir" : 'X\(//\)[^/]' \| \
7749          X"$as_dir" : 'X\(//\)$' \| \
7750          X"$as_dir" : 'X\(/\)' \| \
7751          .     : '\(.\)' 2>/dev/null ||
7752 echo X"$as_dir" |
7753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7754           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7755           /^X\(\/\/\)$/{ s//\1/; q; }
7756           /^X\(\/\).*/{ s//\1/; q; }
7757           s/.*/./; q'`
7758     done
7759     test ! -n "$as_dirs" || mkdir $as_dirs
7760   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7761 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7762    { (exit 1); exit 1; }; }; }
7763
7764   ac_builddir=.
7765
7766 if test "$ac_dir" != .; then
7767   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7768   # A "../" for each directory in $ac_dir_suffix.
7769   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7770 else
7771   ac_dir_suffix= ac_top_builddir=
7772 fi
7773
7774 case $srcdir in
7775   .)  # No --srcdir option.  We are building in place.
7776     ac_srcdir=.
7777     if test -z "$ac_top_builddir"; then
7778        ac_top_srcdir=.
7779     else
7780        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7781     fi ;;
7782   [\\/]* | ?:[\\/]* )  # Absolute path.
7783     ac_srcdir=$srcdir$ac_dir_suffix;
7784     ac_top_srcdir=$srcdir ;;
7785   *) # Relative path.
7786     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7787     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7788 esac
7789
7790 # Do not use `cd foo && pwd` to compute absolute paths, because
7791 # the directories may not exist.
7792 case `pwd` in
7793 .) ac_abs_builddir="$ac_dir";;
7794 *)
7795   case "$ac_dir" in
7796   .) ac_abs_builddir=`pwd`;;
7797   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7798   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7799   esac;;
7800 esac
7801 case $ac_abs_builddir in
7802 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7803 *)
7804   case ${ac_top_builddir}. in
7805   .) ac_abs_top_builddir=$ac_abs_builddir;;
7806   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7807   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7808   esac;;
7809 esac
7810 case $ac_abs_builddir in
7811 .) ac_abs_srcdir=$ac_srcdir;;
7812 *)
7813   case $ac_srcdir in
7814   .) ac_abs_srcdir=$ac_abs_builddir;;
7815   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7816   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7817   esac;;
7818 esac
7819 case $ac_abs_builddir in
7820 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7821 *)
7822   case $ac_top_srcdir in
7823   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7824   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7825   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7826   esac;;
7827 esac
7828
7829
7830   case $INSTALL in
7831   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7832   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7833   esac
7834
7835   # Let's still pretend it is `configure' which instantiates (i.e., don't
7836   # use $as_me), people would be surprised to read:
7837   #    /* config.h.  Generated by config.status.  */
7838   if test x"$ac_file" = x-; then
7839     configure_input=
7840   else
7841     configure_input="$ac_file.  "
7842   fi
7843   configure_input=$configure_input"Generated from `echo $ac_file_in |
7844                                      sed 's,.*/,,'` by configure."
7845
7846   # First look for the input files in the build tree, otherwise in the
7847   # src tree.
7848   ac_file_inputs=`IFS=:
7849     for f in $ac_file_in; do
7850       case $f in
7851       -) echo $tmp/stdin ;;
7852       [\\/$]*)
7853          # Absolute (can't be DOS-style, as IFS=:)
7854          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7855 echo "$as_me: error: cannot find input file: $f" >&2;}
7856    { (exit 1); exit 1; }; }
7857          echo "$f";;
7858       *) # Relative
7859          if test -f "$f"; then
7860            # Build tree
7861            echo "$f"
7862          elif test -f "$srcdir/$f"; then
7863            # Source tree
7864            echo "$srcdir/$f"
7865          else
7866            # /dev/null tree
7867            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7868 echo "$as_me: error: cannot find input file: $f" >&2;}
7869    { (exit 1); exit 1; }; }
7870          fi;;
7871       esac
7872     done` || { (exit 1); exit 1; }
7873
7874   if test x"$ac_file" != x-; then
7875     { echo "$as_me:$LINENO: creating $ac_file" >&5
7876 echo "$as_me: creating $ac_file" >&6;}
7877     rm -f "$ac_file"
7878   fi
7879 _ACEOF
7880 cat >>$CONFIG_STATUS <<_ACEOF
7881   sed "$ac_vpsub
7882 $extrasub
7883 _ACEOF
7884 cat >>$CONFIG_STATUS <<\_ACEOF
7885 :t
7886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7887 s,@configure_input@,$configure_input,;t t
7888 s,@srcdir@,$ac_srcdir,;t t
7889 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7890 s,@top_srcdir@,$ac_top_srcdir,;t t
7891 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7892 s,@builddir@,$ac_builddir,;t t
7893 s,@abs_builddir@,$ac_abs_builddir,;t t
7894 s,@top_builddir@,$ac_top_builddir,;t t
7895 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7896 s,@INSTALL@,$ac_INSTALL,;t t
7897 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7898   rm -f $tmp/stdin
7899   if test x"$ac_file" != x-; then
7900     mv $tmp/out $ac_file
7901   else
7902     cat $tmp/out
7903     rm -f $tmp/out
7904   fi
7905
7906 done
7907 _ACEOF
7908 cat >>$CONFIG_STATUS <<\_ACEOF
7909
7910 #
7911 # CONFIG_HEADER section.
7912 #
7913
7914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7916 #
7917 # ac_d sets the value in "#define NAME VALUE" lines.
7918 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7919 ac_dB='[         ].*$,\1#\2'
7920 ac_dC=' '
7921 ac_dD=',;t'
7922 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7923 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7924 ac_uB='$,\1#\2define\3'
7925 ac_uC=' '
7926 ac_uD=',;t'
7927
7928 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7929   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7930   case $ac_file in
7931   - | *:- | *:-:* ) # input from stdin
7932         cat >$tmp/stdin
7933         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7934         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7935   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7936         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7937   * )   ac_file_in=$ac_file.in ;;
7938   esac
7939
7940   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7941 echo "$as_me: creating $ac_file" >&6;}
7942
7943   # First look for the input files in the build tree, otherwise in the
7944   # src tree.
7945   ac_file_inputs=`IFS=:
7946     for f in $ac_file_in; do
7947       case $f in
7948       -) echo $tmp/stdin ;;
7949       [\\/$]*)
7950          # Absolute (can't be DOS-style, as IFS=:)
7951          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7952 echo "$as_me: error: cannot find input file: $f" >&2;}
7953    { (exit 1); exit 1; }; }
7954          # Do quote $f, to prevent DOS paths from being IFS'd.
7955          echo "$f";;
7956       *) # Relative
7957          if test -f "$f"; then
7958            # Build tree
7959            echo "$f"
7960          elif test -f "$srcdir/$f"; then
7961            # Source tree
7962            echo "$srcdir/$f"
7963          else
7964            # /dev/null tree
7965            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7966 echo "$as_me: error: cannot find input file: $f" >&2;}
7967    { (exit 1); exit 1; }; }
7968          fi;;
7969       esac
7970     done` || { (exit 1); exit 1; }
7971   # Remove the trailing spaces.
7972   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7973
7974 _ACEOF
7975
7976 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7977 # `conftest.undefs', that substitutes the proper values into
7978 # config.h.in to produce config.h.  The first handles `#define'
7979 # templates, and the second `#undef' templates.
7980 # And first: Protect against being on the right side of a sed subst in
7981 # config.status.  Protect against being in an unquoted here document
7982 # in config.status.
7983 rm -f conftest.defines conftest.undefs
7984 # Using a here document instead of a string reduces the quoting nightmare.
7985 # Putting comments in sed scripts is not portable.
7986 #
7987 # `end' is used to avoid that the second main sed command (meant for
7988 # 0-ary CPP macros) applies to n-ary macro definitions.
7989 # See the Autoconf documentation for `clear'.
7990 cat >confdef2sed.sed <<\_ACEOF
7991 s/[\\&,]/\\&/g
7992 s,[\\$`],\\&,g
7993 t clear
7994 : clear
7995 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7996 t end
7997 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7998 : end
7999 _ACEOF
8000 # If some macros were called several times there might be several times
8001 # the same #defines, which is useless.  Nevertheless, we may not want to
8002 # sort them, since we want the *last* AC-DEFINE to be honored.
8003 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8004 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8005 rm -f confdef2sed.sed
8006
8007 # This sed command replaces #undef with comments.  This is necessary, for
8008 # example, in the case of _POSIX_SOURCE, which is predefined and required
8009 # on some systems where configure will not decide to define it.
8010 cat >>conftest.undefs <<\_ACEOF
8011 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8012 _ACEOF
8013
8014 # Break up conftest.defines because some shells have a limit on the size
8015 # of here documents, and old seds have small limits too (100 cmds).
8016 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8017 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8018 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8019 echo '  :' >>$CONFIG_STATUS
8020 rm -f conftest.tail
8021 while grep . conftest.defines >/dev/null
8022 do
8023   # Write a limited-size here document to $tmp/defines.sed.
8024   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8025   # Speed up: don't consider the non `#define' lines.
8026   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8027   # Work around the forget-to-reset-the-flag bug.
8028   echo 't clr' >>$CONFIG_STATUS
8029   echo ': clr' >>$CONFIG_STATUS
8030   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8031   echo 'CEOF
8032   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8033   rm -f $tmp/in
8034   mv $tmp/out $tmp/in
8035 ' >>$CONFIG_STATUS
8036   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8037   rm -f conftest.defines
8038   mv conftest.tail conftest.defines
8039 done
8040 rm -f conftest.defines
8041 echo '  fi # grep' >>$CONFIG_STATUS
8042 echo >>$CONFIG_STATUS
8043
8044 # Break up conftest.undefs because some shells have a limit on the size
8045 # of here documents, and old seds have small limits too (100 cmds).
8046 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8047 rm -f conftest.tail
8048 while grep . conftest.undefs >/dev/null
8049 do
8050   # Write a limited-size here document to $tmp/undefs.sed.
8051   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8052   # Speed up: don't consider the non `#undef'
8053   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8054   # Work around the forget-to-reset-the-flag bug.
8055   echo 't clr' >>$CONFIG_STATUS
8056   echo ': clr' >>$CONFIG_STATUS
8057   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8058   echo 'CEOF
8059   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8060   rm -f $tmp/in
8061   mv $tmp/out $tmp/in
8062 ' >>$CONFIG_STATUS
8063   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8064   rm -f conftest.undefs
8065   mv conftest.tail conftest.undefs
8066 done
8067 rm -f conftest.undefs
8068
8069 cat >>$CONFIG_STATUS <<\_ACEOF
8070   # Let's still pretend it is `configure' which instantiates (i.e., don't
8071   # use $as_me), people would be surprised to read:
8072   #    /* config.h.  Generated by config.status.  */
8073   if test x"$ac_file" = x-; then
8074     echo "/* Generated by configure.  */" >$tmp/config.h
8075   else
8076     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8077   fi
8078   cat $tmp/in >>$tmp/config.h
8079   rm -f $tmp/in
8080   if test x"$ac_file" != x-; then
8081     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8082       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8083 echo "$as_me: $ac_file is unchanged" >&6;}
8084     else
8085       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8087          X"$ac_file" : 'X\(//\)[^/]' \| \
8088          X"$ac_file" : 'X\(//\)$' \| \
8089          X"$ac_file" : 'X\(/\)' \| \
8090          .     : '\(.\)' 2>/dev/null ||
8091 echo X"$ac_file" |
8092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8094           /^X\(\/\/\)$/{ s//\1/; q; }
8095           /^X\(\/\).*/{ s//\1/; q; }
8096           s/.*/./; q'`
8097       { if $as_mkdir_p; then
8098     mkdir -p "$ac_dir"
8099   else
8100     as_dir="$ac_dir"
8101     as_dirs=
8102     while test ! -d "$as_dir"; do
8103       as_dirs="$as_dir $as_dirs"
8104       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8106          X"$as_dir" : 'X\(//\)[^/]' \| \
8107          X"$as_dir" : 'X\(//\)$' \| \
8108          X"$as_dir" : 'X\(/\)' \| \
8109          .     : '\(.\)' 2>/dev/null ||
8110 echo X"$as_dir" |
8111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8113           /^X\(\/\/\)$/{ s//\1/; q; }
8114           /^X\(\/\).*/{ s//\1/; q; }
8115           s/.*/./; q'`
8116     done
8117     test ! -n "$as_dirs" || mkdir $as_dirs
8118   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8120    { (exit 1); exit 1; }; }; }
8121
8122       rm -f $ac_file
8123       mv $tmp/config.h $ac_file
8124     fi
8125   else
8126     cat $tmp/config.h
8127     rm -f $tmp/config.h
8128   fi
8129 # Compute $ac_file's index in $config_headers.
8130 _am_stamp_count=1
8131 for _am_header in $config_headers :; do
8132   case $_am_header in
8133     $ac_file | $ac_file:* )
8134       break ;;
8135     * )
8136       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8137   esac
8138 done
8139 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8140 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8141          X$ac_file : 'X\(//\)[^/]' \| \
8142          X$ac_file : 'X\(//\)$' \| \
8143          X$ac_file : 'X\(/\)' \| \
8144          .     : '\(.\)' 2>/dev/null ||
8145 echo X$ac_file |
8146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8148           /^X\(\/\/\)$/{ s//\1/; q; }
8149           /^X\(\/\).*/{ s//\1/; q; }
8150           s/.*/./; q'`/stamp-h$_am_stamp_count
8151 done
8152 _ACEOF
8153 cat >>$CONFIG_STATUS <<\_ACEOF
8154
8155 #
8156 # CONFIG_LINKS section.
8157 #
8158
8159 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8160   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8161   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8162
8163   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8164 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8165
8166   if test ! -r $srcdir/$ac_source; then
8167     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8168 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8169    { (exit 1); exit 1; }; }
8170   fi
8171   rm -f $ac_dest
8172
8173   # Make relative symlinks.
8174   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8175 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8176          X"$ac_dest" : 'X\(//\)[^/]' \| \
8177          X"$ac_dest" : 'X\(//\)$' \| \
8178          X"$ac_dest" : 'X\(/\)' \| \
8179          .     : '\(.\)' 2>/dev/null ||
8180 echo X"$ac_dest" |
8181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8183           /^X\(\/\/\)$/{ s//\1/; q; }
8184           /^X\(\/\).*/{ s//\1/; q; }
8185           s/.*/./; q'`
8186   { if $as_mkdir_p; then
8187     mkdir -p "$ac_dest_dir"
8188   else
8189     as_dir="$ac_dest_dir"
8190     as_dirs=
8191     while test ! -d "$as_dir"; do
8192       as_dirs="$as_dir $as_dirs"
8193       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8195          X"$as_dir" : 'X\(//\)[^/]' \| \
8196          X"$as_dir" : 'X\(//\)$' \| \
8197          X"$as_dir" : 'X\(/\)' \| \
8198          .     : '\(.\)' 2>/dev/null ||
8199 echo X"$as_dir" |
8200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8202           /^X\(\/\/\)$/{ s//\1/; q; }
8203           /^X\(\/\).*/{ s//\1/; q; }
8204           s/.*/./; q'`
8205     done
8206     test ! -n "$as_dirs" || mkdir $as_dirs
8207   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8208 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8209    { (exit 1); exit 1; }; }; }
8210
8211   ac_builddir=.
8212
8213 if test "$ac_dest_dir" != .; then
8214   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8215   # A "../" for each directory in $ac_dir_suffix.
8216   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8217 else
8218   ac_dir_suffix= ac_top_builddir=
8219 fi
8220
8221 case $srcdir in
8222   .)  # No --srcdir option.  We are building in place.
8223     ac_srcdir=.
8224     if test -z "$ac_top_builddir"; then
8225        ac_top_srcdir=.
8226     else
8227        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8228     fi ;;
8229   [\\/]* | ?:[\\/]* )  # Absolute path.
8230     ac_srcdir=$srcdir$ac_dir_suffix;
8231     ac_top_srcdir=$srcdir ;;
8232   *) # Relative path.
8233     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8234     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8235 esac
8236
8237 # Do not use `cd foo && pwd` to compute absolute paths, because
8238 # the directories may not exist.
8239 case `pwd` in
8240 .) ac_abs_builddir="$ac_dest_dir";;
8241 *)
8242   case "$ac_dest_dir" in
8243   .) ac_abs_builddir=`pwd`;;
8244   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8245   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8246   esac;;
8247 esac
8248 case $ac_abs_builddir in
8249 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8250 *)
8251   case ${ac_top_builddir}. in
8252   .) ac_abs_top_builddir=$ac_abs_builddir;;
8253   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8254   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8255   esac;;
8256 esac
8257 case $ac_abs_builddir in
8258 .) ac_abs_srcdir=$ac_srcdir;;
8259 *)
8260   case $ac_srcdir in
8261   .) ac_abs_srcdir=$ac_abs_builddir;;
8262   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8263   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8264   esac;;
8265 esac
8266 case $ac_abs_builddir in
8267 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8268 *)
8269   case $ac_top_srcdir in
8270   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8271   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8272   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8273   esac;;
8274 esac
8275
8276
8277   case $srcdir in
8278   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8279       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8280   esac
8281
8282   # Try a symlink, then a hard link, then a copy.
8283   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8284     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8285     cp -p $srcdir/$ac_source $ac_dest ||
8286     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8287 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8288    { (exit 1); exit 1; }; }
8289 done
8290 _ACEOF
8291 cat >>$CONFIG_STATUS <<\_ACEOF
8292
8293 #
8294 # CONFIG_COMMANDS section.
8295 #
8296 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8297   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8298   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8299   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8300 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8301          X"$ac_dest" : 'X\(//\)[^/]' \| \
8302          X"$ac_dest" : 'X\(//\)$' \| \
8303          X"$ac_dest" : 'X\(/\)' \| \
8304          .     : '\(.\)' 2>/dev/null ||
8305 echo X"$ac_dest" |
8306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8308           /^X\(\/\/\)$/{ s//\1/; q; }
8309           /^X\(\/\).*/{ s//\1/; q; }
8310           s/.*/./; q'`
8311   { if $as_mkdir_p; then
8312     mkdir -p "$ac_dir"
8313   else
8314     as_dir="$ac_dir"
8315     as_dirs=
8316     while test ! -d "$as_dir"; do
8317       as_dirs="$as_dir $as_dirs"
8318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8320          X"$as_dir" : 'X\(//\)[^/]' \| \
8321          X"$as_dir" : 'X\(//\)$' \| \
8322          X"$as_dir" : 'X\(/\)' \| \
8323          .     : '\(.\)' 2>/dev/null ||
8324 echo X"$as_dir" |
8325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8327           /^X\(\/\/\)$/{ s//\1/; q; }
8328           /^X\(\/\).*/{ s//\1/; q; }
8329           s/.*/./; q'`
8330     done
8331     test ! -n "$as_dirs" || mkdir $as_dirs
8332   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8334    { (exit 1); exit 1; }; }; }
8335
8336   ac_builddir=.
8337
8338 if test "$ac_dir" != .; then
8339   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8340   # A "../" for each directory in $ac_dir_suffix.
8341   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8342 else
8343   ac_dir_suffix= ac_top_builddir=
8344 fi
8345
8346 case $srcdir in
8347   .)  # No --srcdir option.  We are building in place.
8348     ac_srcdir=.
8349     if test -z "$ac_top_builddir"; then
8350        ac_top_srcdir=.
8351     else
8352        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8353     fi ;;
8354   [\\/]* | ?:[\\/]* )  # Absolute path.
8355     ac_srcdir=$srcdir$ac_dir_suffix;
8356     ac_top_srcdir=$srcdir ;;
8357   *) # Relative path.
8358     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8359     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8360 esac
8361
8362 # Do not use `cd foo && pwd` to compute absolute paths, because
8363 # the directories may not exist.
8364 case `pwd` in
8365 .) ac_abs_builddir="$ac_dir";;
8366 *)
8367   case "$ac_dir" in
8368   .) ac_abs_builddir=`pwd`;;
8369   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8370   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8371   esac;;
8372 esac
8373 case $ac_abs_builddir in
8374 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8375 *)
8376   case ${ac_top_builddir}. in
8377   .) ac_abs_top_builddir=$ac_abs_builddir;;
8378   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8379   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8380   esac;;
8381 esac
8382 case $ac_abs_builddir in
8383 .) ac_abs_srcdir=$ac_srcdir;;
8384 *)
8385   case $ac_srcdir in
8386   .) ac_abs_srcdir=$ac_abs_builddir;;
8387   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8388   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8389   esac;;
8390 esac
8391 case $ac_abs_builddir in
8392 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8393 *)
8394   case $ac_top_srcdir in
8395   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8396   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8397   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8398   esac;;
8399 esac
8400
8401
8402   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8403 echo "$as_me: executing $ac_dest commands" >&6;}
8404   case $ac_dest in
8405     default-1 )
8406 # Only add multilib support code if we just rebuilt the top-level
8407 # Makefile.
8408 case " $CONFIG_FILES " in
8409  *" Makefile "*)
8410    ac_file=Makefile . ${multi_basedir}/config-ml.in
8411    ;;
8412 esac ;;
8413     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8414   # Strip MF so we end up with the name of the file.
8415   mf=`echo "$mf" | sed -e 's/:.*$//'`
8416   # Check whether this is an Automake generated Makefile or not.
8417   # We used to match only the files named `Makefile.in', but
8418   # some people rename them; so instead we look at the file content.
8419   # Grep'ing the first line is not enough: some people post-process
8420   # each Makefile.in and add a new line on top of each file to say so.
8421   # So let's grep whole file.
8422   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8423     dirpart=`(dirname "$mf") 2>/dev/null ||
8424 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8425          X"$mf" : 'X\(//\)[^/]' \| \
8426          X"$mf" : 'X\(//\)$' \| \
8427          X"$mf" : 'X\(/\)' \| \
8428          .     : '\(.\)' 2>/dev/null ||
8429 echo X"$mf" |
8430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8431           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8432           /^X\(\/\/\)$/{ s//\1/; q; }
8433           /^X\(\/\).*/{ s//\1/; q; }
8434           s/.*/./; q'`
8435   else
8436     continue
8437   fi
8438   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8439   # Extract the definition of DEP_FILES from the Makefile without
8440   # running `make'.
8441   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8442   test -z "$DEPDIR" && continue
8443   # When using ansi2knr, U may be empty or an underscore; expand it
8444   U=`sed -n 's/^U = //p' < "$mf"`
8445   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8446   # We invoke sed twice because it is the simplest approach to
8447   # changing $(DEPDIR) to its actual value in the expansion.
8448   for file in `sed -n '
8449     /^DEP_FILES = .*\\\\$/ {
8450       s/^DEP_FILES = //
8451       :loop
8452         s/\\\\$//
8453         p
8454         n
8455         /\\\\$/ b loop
8456       p
8457     }
8458     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8459        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8460     # Make sure the directory exists.
8461     test -f "$dirpart/$file" && continue
8462     fdir=`(dirname "$file") 2>/dev/null ||
8463 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8464          X"$file" : 'X\(//\)[^/]' \| \
8465          X"$file" : 'X\(//\)$' \| \
8466          X"$file" : 'X\(/\)' \| \
8467          .     : '\(.\)' 2>/dev/null ||
8468 echo X"$file" |
8469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8471           /^X\(\/\/\)$/{ s//\1/; q; }
8472           /^X\(\/\).*/{ s//\1/; q; }
8473           s/.*/./; q'`
8474     { if $as_mkdir_p; then
8475     mkdir -p $dirpart/$fdir
8476   else
8477     as_dir=$dirpart/$fdir
8478     as_dirs=
8479     while test ! -d "$as_dir"; do
8480       as_dirs="$as_dir $as_dirs"
8481       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8483          X"$as_dir" : 'X\(//\)[^/]' \| \
8484          X"$as_dir" : 'X\(//\)$' \| \
8485          X"$as_dir" : 'X\(/\)' \| \
8486          .     : '\(.\)' 2>/dev/null ||
8487 echo X"$as_dir" |
8488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8490           /^X\(\/\/\)$/{ s//\1/; q; }
8491           /^X\(\/\).*/{ s//\1/; q; }
8492           s/.*/./; q'`
8493     done
8494     test ! -n "$as_dirs" || mkdir $as_dirs
8495   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8496 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8497    { (exit 1); exit 1; }; }; }
8498
8499     # echo "creating $dirpart/$file"
8500     echo '# dummy' > "$dirpart/$file"
8501   done
8502 done
8503  ;;
8504     include ) test -d include || mkdir include ;;
8505     src )
8506 test -d src || mkdir src
8507 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
8508  ;;
8509   esac
8510 done
8511 _ACEOF
8512
8513 cat >>$CONFIG_STATUS <<\_ACEOF
8514
8515 { (exit 0); exit 0; }
8516 _ACEOF
8517 chmod +x $CONFIG_STATUS
8518 ac_clean_files=$ac_clean_files_save
8519
8520
8521 # configure is writing to config.log, and then calls config.status.
8522 # config.status does its own redirection, appending to config.log.
8523 # Unfortunately, on DOS this fails, as config.log is still kept open
8524 # by configure, so config.status won't be able to write to it; its
8525 # output is simply discarded.  So we exec the FD to /dev/null,
8526 # effectively closing config.log, so it can be properly (re)opened and
8527 # appended to by config.status.  When coming back to configure, we
8528 # need to make the FD available again.
8529 if test "$no_create" != yes; then
8530   ac_cs_success=:
8531   ac_config_status_args=
8532   test "$silent" = yes &&
8533     ac_config_status_args="$ac_config_status_args --quiet"
8534   exec 5>/dev/null
8535   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8536   exec 5>>config.log
8537   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8538   # would make configure fail if this is the last instruction.
8539   $ac_cs_success || { (exit 1); exit 1; }
8540 fi
8541