* ltmain.sh: Update from ToT Libtool.
[platform/upstream/linaro-gcc.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
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$lt_ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $ECHO works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<_LT_EOF
276 $*
277 _LT_EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$lt_ECHO"; then
286   if test "X${echo_test_string+set}" != Xset; then
287     # find a string as large as possible, as long as the shell can cope with it
288     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292       then
293         break
294       fi
295     done
296   fi
297
298   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300      test "X$echo_testing_string" = "X$echo_test_string"; then
301     :
302   else
303     # The Solaris, AIX, and Digital Unix default echo programs unquote
304     # backslashes.  This makes it impossible to quote backslashes using
305     #   echo "$something" | sed 's/\\/\\\\/g'
306     #
307     # So, first we look for a working echo in the user's PATH.
308
309     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310     for dir in $PATH /usr/ucb; do
311       IFS="$lt_save_ifs"
312       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315          test "X$echo_testing_string" = "X$echo_test_string"; then
316         ECHO="$dir/echo"
317         break
318       fi
319     done
320     IFS="$lt_save_ifs"
321
322     if test "X$ECHO" = Xecho; then
323       # We didn't find a better echo, so look for alternatives.
324       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326          test "X$echo_testing_string" = "X$echo_test_string"; then
327         # This shell has a builtin print -r that does the trick.
328         ECHO='print -r'
329       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330            test "X$CONFIG_SHELL" != X/bin/ksh; then
331         # If we have ksh, try running configure again with it.
332         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333         export ORIGINAL_CONFIG_SHELL
334         CONFIG_SHELL=/bin/ksh
335         export CONFIG_SHELL
336         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337       else
338         # Try using printf.
339         ECHO='printf %s\n'
340         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342            test "X$echo_testing_string" = "X$echo_test_string"; then
343           # Cool, printf works
344           :
345         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346              test "X$echo_testing_string" = 'X\t' &&
347              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348              test "X$echo_testing_string" = "X$echo_test_string"; then
349           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350           export CONFIG_SHELL
351           SHELL="$CONFIG_SHELL"
352           export SHELL
353           ECHO="$CONFIG_SHELL $0 --fallback-echo"
354         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355              test "X$echo_testing_string" = 'X\t' &&
356              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357              test "X$echo_testing_string" = "X$echo_test_string"; then
358           ECHO="$CONFIG_SHELL $0 --fallback-echo"
359         else
360           # maybe with a smaller string...
361           prev=:
362
363           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365             then
366               break
367             fi
368             prev="$cmd"
369           done
370
371           if test "$prev" != 'sed 50q "$0"'; then
372             echo_test_string=`eval $prev`
373             export echo_test_string
374             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375           else
376             # Oops.  We lost completely, so just stick with echo.
377             ECHO=echo
378           fi
379         fi
380       fi
381     fi
382   fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 # Name of the host.
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399
400 exec 6>&1
401
402 #
403 # Initializations.
404 #
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
411 SHELL=${CONFIG_SHELL-/bin/sh}
412
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete.  It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
417
418 # Identity of this package.
419 PACKAGE_NAME='libffi'
420 PACKAGE_TARNAME='libffi'
421 PACKAGE_VERSION='2.1'
422 PACKAGE_STRING='libffi 2.1'
423 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
424
425 # Factoring default headers for most tests.
426 ac_includes_default="\
427 #include <stdio.h>
428 #if HAVE_SYS_TYPES_H
429 # include <sys/types.h>
430 #endif
431 #if HAVE_SYS_STAT_H
432 # include <sys/stat.h>
433 #endif
434 #if STDC_HEADERS
435 # include <stdlib.h>
436 # include <stddef.h>
437 #else
438 # if HAVE_STDLIB_H
439 #  include <stdlib.h>
440 # endif
441 #endif
442 #if HAVE_STRING_H
443 # if !STDC_HEADERS && HAVE_MEMORY_H
444 #  include <memory.h>
445 # endif
446 # include <string.h>
447 #endif
448 #if HAVE_STRINGS_H
449 # include <strings.h>
450 #endif
451 #if HAVE_INTTYPES_H
452 # include <inttypes.h>
453 #else
454 # if HAVE_STDINT_H
455 #  include <stdint.h>
456 # endif
457 #endif
458 #if HAVE_UNISTD_H
459 # include <unistd.h>
460 #endif"
461
462 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 X86_DARWIN_TRUE X86_DARWIN_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CCAS_set=${CCAS+set}
904 ac_env_CCAS_value=$CCAS
905 ac_cv_env_CCAS_set=${CCAS+set}
906 ac_cv_env_CCAS_value=$CCAS
907 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908 ac_env_CCASFLAGS_value=$CCASFLAGS
909 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919
920 #
921 # Report the --help message.
922 #
923 if test "$ac_init_help" = "long"; then
924   # Omit some internal or obsolete options to make the list less imposing.
925   # This message is too long to be a string in the A/UX 3.1 sh.
926   cat <<_ACEOF
927 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
928
929 Usage: $0 [OPTION]... [VAR=VALUE]...
930
931 To assign environment variables (e.g., CC, CFLAGS...), specify them as
932 VAR=VALUE.  See below for descriptions of some of the useful variables.
933
934 Defaults for the options are specified in brackets.
935
936 Configuration:
937   -h, --help              display this help and exit
938       --help=short        display options specific to this package
939       --help=recursive    display the short help of all the included packages
940   -V, --version           display version information and exit
941   -q, --quiet, --silent   do not print \`checking...' messages
942       --cache-file=FILE   cache test results in FILE [disabled]
943   -C, --config-cache      alias for \`--cache-file=config.cache'
944   -n, --no-create         do not create output files
945       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
946
947 _ACEOF
948
949   cat <<_ACEOF
950 Installation directories:
951   --prefix=PREFIX         install architecture-independent files in PREFIX
952                           [$ac_default_prefix]
953   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
954                           [PREFIX]
955
956 By default, \`make install' will install all the files in
957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
959 for instance \`--prefix=\$HOME'.
960
961 For better control, use the options below.
962
963 Fine tuning of the installation directories:
964   --bindir=DIR           user executables [EPREFIX/bin]
965   --sbindir=DIR          system admin executables [EPREFIX/sbin]
966   --libexecdir=DIR       program executables [EPREFIX/libexec]
967   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
968   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
969   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
970   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
971   --libdir=DIR           object code libraries [EPREFIX/lib]
972   --includedir=DIR       C header files [PREFIX/include]
973   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
974   --infodir=DIR          info documentation [PREFIX/info]
975   --mandir=DIR           man documentation [PREFIX/man]
976 _ACEOF
977
978   cat <<\_ACEOF
979
980 Program names:
981   --program-prefix=PREFIX            prepend PREFIX to installed program names
982   --program-suffix=SUFFIX            append SUFFIX to installed program names
983   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
984
985 System types:
986   --build=BUILD     configure for building on BUILD [guessed]
987   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
988   --target=TARGET   configure for building compilers for TARGET [HOST]
989 _ACEOF
990 fi
991
992 if test -n "$ac_init_help"; then
993   case $ac_init_help in
994      short | recursive ) echo "Configuration of libffi 2.1:";;
995    esac
996   cat <<\_ACEOF
997
998 Optional Features:
999   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1000   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1001   --enable-multilib       build many library versions (default)
1002   --disable-dependency-tracking  speeds up one-time build
1003   --enable-dependency-tracking   do not reject slow dependency extractors
1004   --enable-shared[=PKGS]
1005                           build shared libraries [default=yes]
1006   --enable-static[=PKGS]
1007                           build static libraries [default=yes]
1008   --enable-fast-install[=PKGS]
1009                           optimize for fast installation [default=yes]
1010   --disable-libtool-lock  avoid locking (might break parallel builds)
1011   --enable-maintainer-mode  enable make rules and dependencies not useful
1012                           (and sometimes confusing) to the casual installer
1013   --enable-debug          debugging mode
1014   --disable-structs       omit code for struct support
1015   --disable-raw-api       make the raw api unavailable
1016   --enable-purify-safety  purify-safe mode
1017
1018 Optional Packages:
1019   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1020   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1021   --with-pic              try to use only PIC/non-PIC objects [default=use
1022                           both]
1023   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1024
1025 Some influential environment variables:
1026   CC          C compiler command
1027   CFLAGS      C compiler flags
1028   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1029               nonstandard directory <lib dir>
1030   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031               headers in a nonstandard directory <include dir>
1032   CCAS        assembler compiler command (defaults to CC)
1033   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1034   CPP         C preprocessor
1035
1036 Use these variables to override the choices made by `configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1038
1039 Report bugs to <http://gcc.gnu.org/bugs.html>.
1040 _ACEOF
1041 fi
1042
1043 if test "$ac_init_help" = "recursive"; then
1044   # If there are subdirs, report their specific --help.
1045   ac_popdir=`pwd`
1046   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047     test -d $ac_dir || continue
1048     ac_builddir=.
1049
1050 if test "$ac_dir" != .; then
1051   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052   # A "../" for each directory in $ac_dir_suffix.
1053   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055   ac_dir_suffix= ac_top_builddir=
1056 fi
1057
1058 case $srcdir in
1059   .)  # No --srcdir option.  We are building in place.
1060     ac_srcdir=.
1061     if test -z "$ac_top_builddir"; then
1062        ac_top_srcdir=.
1063     else
1064        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065     fi ;;
1066   [\\/]* | ?:[\\/]* )  # Absolute path.
1067     ac_srcdir=$srcdir$ac_dir_suffix;
1068     ac_top_srcdir=$srcdir ;;
1069   *) # Relative path.
1070     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1073
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1078 *)
1079   case "$ac_dir" in
1080   .) ac_abs_builddir=`pwd`;;
1081   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083   esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *)
1088   case ${ac_top_builddir}. in
1089   .) ac_abs_top_builddir=$ac_abs_builddir;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1096 *)
1097   case $ac_srcdir in
1098   .) ac_abs_srcdir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *)
1106   case $ac_top_srcdir in
1107   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110   esac;;
1111 esac
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135 libffi configure 2.1
1136 generated by GNU Autoconf 2.59
1137
1138 Copyright (C) 2003 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by libffi $as_me 2.1, which was
1150 generated by GNU Autoconf 2.59.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485           ac_config_headers="$ac_config_headers fficonfig.h"
1486
1487
1488 # Default to --enable-multilib
1489 # Check whether --enable-multilib or --disable-multilib was given.
1490 if test "${enable_multilib+set}" = set; then
1491   enableval="$enable_multilib"
1492   case "$enableval" in
1493   yes) multilib=yes ;;
1494   no)  multilib=no ;;
1495   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1496 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1497    { (exit 1); exit 1; }; } ;;
1498  esac
1499 else
1500   multilib=yes
1501 fi;
1502
1503 # We may get other options which we leave undocumented:
1504 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1505 # See config-ml.in if you want the gory details.
1506
1507 if test "$srcdir" = "."; then
1508   if test "$with_target_subdir" != "."; then
1509     multi_basedir="$srcdir/$with_multisrctop../.."
1510   else
1511     multi_basedir="$srcdir/$with_multisrctop.."
1512   fi
1513 else
1514   multi_basedir="$srcdir/.."
1515 fi
1516
1517
1518 # Even if the default multilib is not a cross compilation,
1519 # it may be that some of the other multilibs are.
1520 if test $cross_compiling = no && test $multilib = yes \
1521    && test "x${with_multisubdir}" != x ; then
1522    cross_compiling=maybe
1523 fi
1524
1525           ac_config_commands="$ac_config_commands default-1"
1526
1527
1528 ac_aux_dir=
1529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530   if test -f $ac_dir/install-sh; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/install-sh -c"
1533     break
1534   elif test -f $ac_dir/install.sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install.sh -c"
1537     break
1538   elif test -f $ac_dir/shtool; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/shtool install -c"
1541     break
1542   fi
1543 done
1544 if test -z "$ac_aux_dir"; then
1545   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547    { (exit 1); exit 1; }; }
1548 fi
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
1553 # Make sure we can run config.sub.
1554 $ac_config_sub sun4 >/dev/null 2>&1 ||
1555   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557    { (exit 1); exit 1; }; }
1558
1559 echo "$as_me:$LINENO: checking build system type" >&5
1560 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561 if test "${ac_cv_build+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_build_alias=$build_alias
1565 test -z "$ac_cv_build_alias" &&
1566   ac_cv_build_alias=`$ac_config_guess`
1567 test -z "$ac_cv_build_alias" &&
1568   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570    { (exit 1); exit 1; }; }
1571 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578 echo "${ECHO_T}$ac_cv_build" >&6
1579 build=$ac_cv_build
1580 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585 echo "$as_me:$LINENO: checking host system type" >&5
1586 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587 if test "${ac_cv_host+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   ac_cv_host_alias=$host_alias
1591 test -z "$ac_cv_host_alias" &&
1592   ac_cv_host_alias=$ac_cv_build_alias
1593 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596    { (exit 1); exit 1; }; }
1597
1598 fi
1599 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600 echo "${ECHO_T}$ac_cv_host" >&6
1601 host=$ac_cv_host
1602 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607 echo "$as_me:$LINENO: checking target system type" >&5
1608 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609 if test "${ac_cv_target+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   ac_cv_target_alias=$target_alias
1613 test "x$ac_cv_target_alias" = "x" &&
1614   ac_cv_target_alias=$ac_cv_host_alias
1615 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618    { (exit 1); exit 1; }; }
1619
1620 fi
1621 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622 echo "${ECHO_T}$ac_cv_target" >&6
1623 target=$ac_cv_target
1624 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629 # The aliases save the names the user supplied, while $host etc.
1630 # will get canonicalized.
1631 test -n "$target_alias" &&
1632   test "$program_prefix$program_suffix$program_transform_name" = \
1633     NONENONEs,x,x, &&
1634   program_prefix=${target_alias}-
1635 target_alias=${target_alias-$host_alias}
1636
1637 . ${srcdir}/configure.host
1638
1639 am__api_version="1.9"
1640 # Find a good install program.  We prefer a C program (faster),
1641 # so one script is as good as another.  But avoid the broken or
1642 # incompatible versions:
1643 # SysV /etc/install, /usr/sbin/install
1644 # SunOS /usr/etc/install
1645 # IRIX /sbin/install
1646 # AIX /bin/install
1647 # AmigaOS /C/install, which installs bootblocks on floppy discs
1648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651 # OS/2's system install, which has a completely different semantic
1652 # ./install, which can be erroneously created by make from ./install.sh.
1653 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1655 if test -z "$INSTALL"; then
1656 if test "${ac_cv_path_install+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   # Account for people who put trailing slashes in PATH elements.
1665 case $as_dir/ in
1666   ./ | .// | /cC/* | \
1667   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1668   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1669   /usr/ucb/* ) ;;
1670   *)
1671     # OSF1 and SCO ODT 3.0 have their own names for install.
1672     # Don't use installbsd from OSF since it installs stuff as root
1673     # by default.
1674     for ac_prog in ginstall scoinst install; do
1675       for ac_exec_ext in '' $ac_executable_extensions; do
1676         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1677           if test $ac_prog = install &&
1678             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679             # AIX install.  It has an incompatible calling convention.
1680             :
1681           elif test $ac_prog = install &&
1682             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683             # program-specific install script used by HP pwplus--don't use.
1684             :
1685           else
1686             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1687             break 3
1688           fi
1689         fi
1690       done
1691     done
1692     ;;
1693 esac
1694 done
1695
1696
1697 fi
1698   if test "${ac_cv_path_install+set}" = set; then
1699     INSTALL=$ac_cv_path_install
1700   else
1701     # As a last resort, use the slow shell script.  We don't cache a
1702     # path for INSTALL within a source directory, because that will
1703     # break other packages using the cache if that directory is
1704     # removed, or if the path is relative.
1705     INSTALL=$ac_install_sh
1706   fi
1707 fi
1708 echo "$as_me:$LINENO: result: $INSTALL" >&5
1709 echo "${ECHO_T}$INSTALL" >&6
1710
1711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1712 # It thinks the first close brace ends the variable substitution.
1713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1714
1715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1716
1717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1718
1719 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1720 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1721 # Just in case
1722 sleep 1
1723 echo timestamp > conftest.file
1724 # Do `set' in a subshell so we don't clobber the current shell's
1725 # arguments.  Must try -L first in case configure is actually a
1726 # symlink; some systems play weird games with the mod time of symlinks
1727 # (eg FreeBSD returns the mod time of the symlink's containing
1728 # directory).
1729 if (
1730    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1731    if test "$*" = "X"; then
1732       # -L didn't work.
1733       set X `ls -t $srcdir/configure conftest.file`
1734    fi
1735    rm -f conftest.file
1736    if test "$*" != "X $srcdir/configure conftest.file" \
1737       && test "$*" != "X conftest.file $srcdir/configure"; then
1738
1739       # If neither matched, then we have a broken ls.  This can happen
1740       # if, for instance, CONFIG_SHELL is bash and it inherits a
1741       # broken ls alias from the environment.  This has actually
1742       # happened.  Such a system could not be considered "sane".
1743       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1744 alias in your environment" >&5
1745 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1746 alias in your environment" >&2;}
1747    { (exit 1); exit 1; }; }
1748    fi
1749
1750    test "$2" = conftest.file
1751    )
1752 then
1753    # Ok.
1754    :
1755 else
1756    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1757 Check your system clock" >&5
1758 echo "$as_me: error: newly created file is older than distributed files!
1759 Check your system clock" >&2;}
1760    { (exit 1); exit 1; }; }
1761 fi
1762 echo "$as_me:$LINENO: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1764 test "$program_prefix" != NONE &&
1765   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766 # Use a double $ so make ignores it.
1767 test "$program_suffix" != NONE &&
1768   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769 # Double any \ or $.  echo might interpret backslashes.
1770 # By default was `s,x,x', remove it if useless.
1771 cat <<\_ACEOF >conftest.sed
1772 s/[\\$]/&&/g;s/;s,x,x,$//
1773 _ACEOF
1774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1775 rm conftest.sed
1776
1777 # expand $ac_aux_dir to an absolute path
1778 am_aux_dir=`cd $ac_aux_dir && pwd`
1779
1780 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1781 # Use eval to expand $SHELL
1782 if eval "$MISSING --run true"; then
1783   am_missing_run="$MISSING --run "
1784 else
1785   am_missing_run=
1786   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1787 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1788 fi
1789
1790 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1791   # We used to keeping the `.' as first argument, in order to
1792   # allow $(mkdir_p) to be used without argument.  As in
1793   #   $(mkdir_p) $(somedir)
1794   # where $(somedir) is conditionally defined.  However this is wrong
1795   # for two reasons:
1796   #  1. if the package is installed by a user who cannot write `.'
1797   #     make install will fail,
1798   #  2. the above comment should most certainly read
1799   #     $(mkdir_p) $(DESTDIR)$(somedir)
1800   #     so it does not work when $(somedir) is undefined and
1801   #     $(DESTDIR) is not.
1802   #  To support the latter case, we have to write
1803   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1804   #  so the `.' trick is pointless.
1805   mkdir_p='mkdir -p --'
1806 else
1807   # On NextStep and OpenStep, the `mkdir' command does not
1808   # recognize any option.  It will interpret all options as
1809   # directories to create, and then abort because `.' already
1810   # exists.
1811   for d in ./-p ./--version;
1812   do
1813     test -d $d && rmdir $d
1814   done
1815   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1816   if test -f "$ac_aux_dir/mkinstalldirs"; then
1817     mkdir_p='$(mkinstalldirs)'
1818   else
1819     mkdir_p='$(install_sh) -d'
1820   fi
1821 fi
1822
1823 for ac_prog in gawk mawk nawk awk
1824 do
1825   # Extract the first word of "$ac_prog", so it can be a program name with args.
1826 set dummy $ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_AWK+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$AWK"; then
1833   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838   IFS=$as_save_IFS
1839   test -z "$as_dir" && as_dir=.
1840   for ac_exec_ext in '' $ac_executable_extensions; do
1841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_AWK="$ac_prog"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845   fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 AWK=$ac_cv_prog_AWK
1852 if test -n "$AWK"; then
1853   echo "$as_me:$LINENO: result: $AWK" >&5
1854 echo "${ECHO_T}$AWK" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860   test -n "$AWK" && break
1861 done
1862
1863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   cat >conftest.make <<\_ACEOF
1870 all:
1871         @echo 'ac_maketemp="$(MAKE)"'
1872 _ACEOF
1873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1875 if test -n "$ac_maketemp"; then
1876   eval ac_cv_prog_make_${ac_make}_set=yes
1877 else
1878   eval ac_cv_prog_make_${ac_make}_set=no
1879 fi
1880 rm -f conftest.make
1881 fi
1882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883   echo "$as_me:$LINENO: result: yes" >&5
1884 echo "${ECHO_T}yes" >&6
1885   SET_MAKE=
1886 else
1887   echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1889   SET_MAKE="MAKE=${MAKE-make}"
1890 fi
1891
1892 rm -rf .tst 2>/dev/null
1893 mkdir .tst 2>/dev/null
1894 if test -d .tst; then
1895   am__leading_dot=.
1896 else
1897   am__leading_dot=_
1898 fi
1899 rmdir .tst 2>/dev/null
1900
1901 # test to see if srcdir already configured
1902 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1903    test -f $srcdir/config.status; then
1904   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1905 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1906    { (exit 1); exit 1; }; }
1907 fi
1908
1909 # test whether we have cygpath
1910 if test -z "$CYGPATH_W"; then
1911   if (cygpath --version) >/dev/null 2>/dev/null; then
1912     CYGPATH_W='cygpath -w'
1913   else
1914     CYGPATH_W=echo
1915   fi
1916 fi
1917
1918
1919 # Define the identity of the package.
1920  PACKAGE='libffi'
1921  VERSION='2.1'
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE "$PACKAGE"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define VERSION "$VERSION"
1931 _ACEOF
1932
1933 # Some tools Automake needs.
1934
1935 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1936
1937
1938 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1939
1940
1941 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1942
1943
1944 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1945
1946
1947 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1948
1949 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1950
1951 # Installed binaries are usually stripped using `strip' when the user
1952 # run `make install-strip'.  However `strip' might not be the right
1953 # tool to use in cross-compilation environments, therefore Automake
1954 # will honor the `STRIP' environment variable to overrule this program.
1955 if test "$cross_compiling" != no; then
1956   if test -n "$ac_tool_prefix"; then
1957   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}strip; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_STRIP+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$STRIP"; then
1965   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 STRIP=$ac_cv_prog_STRIP
1984 if test -n "$STRIP"; then
1985   echo "$as_me:$LINENO: result: $STRIP" >&5
1986 echo "${ECHO_T}$STRIP" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992 fi
1993 if test -z "$ac_cv_prog_STRIP"; then
1994   ac_ct_STRIP=$STRIP
1995   # Extract the first word of "strip", so it can be a program name with args.
1996 set dummy strip; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_STRIP"; then
2003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     ac_cv_prog_ac_ct_STRIP="strip"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2020 fi
2021 fi
2022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2023 if test -n "$ac_ct_STRIP"; then
2024   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2025 echo "${ECHO_T}$ac_ct_STRIP" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031   STRIP=$ac_ct_STRIP
2032 else
2033   STRIP="$ac_cv_prog_STRIP"
2034 fi
2035
2036 fi
2037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2038
2039 # We need awk for the "check" target.  The system "awk" is bad on
2040 # some platforms.
2041 # Always define AMTAR for backward compatibility.
2042
2043 AMTAR=${AMTAR-"${am_missing_run}tar"}
2044
2045 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2046
2047
2048
2049
2050
2051
2052 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2053 # We must force CC to /not/ be precious variables; otherwise
2054 # the wrong, non-multilib-adjusted value will be used in multilibs.
2055 # As a side effect, we have to subst CFLAGS ourselves.
2056
2057
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$CC"; then
2073   ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088
2089 fi
2090 fi
2091 CC=$ac_cv_prog_CC
2092 if test -n "$CC"; then
2093   echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6
2095 else
2096   echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2098 fi
2099
2100 fi
2101 if test -z "$ac_cv_prog_CC"; then
2102   ac_ct_CC=$CC
2103   # Extract the first word of "gcc", so it can be a program name with args.
2104 set dummy gcc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   if test -n "$ac_ct_CC"; then
2111   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116   IFS=$as_save_IFS
2117   test -z "$as_dir" && as_dir=.
2118   for ac_exec_ext in '' $ac_executable_extensions; do
2119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120     ac_cv_prog_ac_ct_CC="gcc"
2121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122     break 2
2123   fi
2124 done
2125 done
2126
2127 fi
2128 fi
2129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130 if test -n "$ac_ct_CC"; then
2131   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132 echo "${ECHO_T}$ac_ct_CC" >&6
2133 else
2134   echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2136 fi
2137
2138   CC=$ac_ct_CC
2139 else
2140   CC="$ac_cv_prog_CC"
2141 fi
2142
2143 if test -z "$CC"; then
2144   if test -n "$ac_tool_prefix"; then
2145   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2146 set dummy ${ac_tool_prefix}cc; ac_word=$2
2147 echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$CC"; then
2153   ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162     ac_cv_prog_CC="${ac_tool_prefix}cc"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173   echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2175 else
2176   echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2178 fi
2179
2180 fi
2181 if test -z "$ac_cv_prog_CC"; then
2182   ac_ct_CC=$CC
2183   # Extract the first word of "cc", so it can be a program name with args.
2184 set dummy cc; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test -n "$ac_ct_CC"; then
2191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200     ac_cv_prog_ac_ct_CC="cc"
2201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202     break 2
2203   fi
2204 done
2205 done
2206
2207 fi
2208 fi
2209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210 if test -n "$ac_ct_CC"; then
2211   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212 echo "${ECHO_T}$ac_ct_CC" >&6
2213 else
2214   echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2216 fi
2217
2218   CC=$ac_ct_CC
2219 else
2220   CC="$ac_cv_prog_CC"
2221 fi
2222
2223 fi
2224 if test -z "$CC"; then
2225   # Extract the first word of "cc", so it can be a program name with args.
2226 set dummy cc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$CC"; then
2233   ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235   ac_prog_rejected=no
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2244        ac_prog_rejected=yes
2245        continue
2246      fi
2247     ac_cv_prog_CC="cc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 if test $ac_prog_rejected = yes; then
2255   # We found a bogon in the path, so make sure we never use it.
2256   set dummy $ac_cv_prog_CC
2257   shift
2258   if test $# != 0; then
2259     # We chose a different compiler from the bogus one.
2260     # However, it has the same basename, so the bogon will be chosen
2261     # first if we set CC to just the basename; use the full file name.
2262     shift
2263     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2264   fi
2265 fi
2266 fi
2267 fi
2268 CC=$ac_cv_prog_CC
2269 if test -n "$CC"; then
2270   echo "$as_me:$LINENO: result: $CC" >&5
2271 echo "${ECHO_T}$CC" >&6
2272 else
2273   echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6
2275 fi
2276
2277 fi
2278 if test -z "$CC"; then
2279   if test -n "$ac_tool_prefix"; then
2280   for ac_prog in cl
2281   do
2282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2284 echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2286 if test "${ac_cv_prog_CC+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   if test -n "$CC"; then
2290   ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297   for ac_exec_ext in '' $ac_executable_extensions; do
2298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304 done
2305
2306 fi
2307 fi
2308 CC=$ac_cv_prog_CC
2309 if test -n "$CC"; then
2310   echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6
2312 else
2313   echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6
2315 fi
2316
2317     test -n "$CC" && break
2318   done
2319 fi
2320 if test -z "$CC"; then
2321   ac_ct_CC=$CC
2322   for ac_prog in cl
2323 do
2324   # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   if test -n "$ac_ct_CC"; then
2332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
2338   test -z "$as_dir" && as_dir=.
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341     ac_cv_prog_ac_ct_CC="$ac_prog"
2342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343     break 2
2344   fi
2345 done
2346 done
2347
2348 fi
2349 fi
2350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351 if test -n "$ac_ct_CC"; then
2352   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2353 echo "${ECHO_T}$ac_ct_CC" >&6
2354 else
2355   echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6
2357 fi
2358
2359   test -n "$ac_ct_CC" && break
2360 done
2361
2362   CC=$ac_ct_CC
2363 fi
2364
2365 fi
2366
2367
2368 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&5
2370 echo "$as_me: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details." >&2;}
2372    { (exit 1); exit 1; }; }
2373
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO:" \
2376      "checking for C compiler version" >&5
2377 ac_compiler=`set X $ac_compile; echo $2`
2378 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2379   (eval $ac_compiler --version </dev/null >&5) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }
2383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2384   (eval $ac_compiler -v </dev/null >&5) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }
2388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2389   (eval $ac_compiler -V </dev/null >&5) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }
2393
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 ac_clean_files_save=$ac_clean_files
2410 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2411 # Try to create an executable without -o first, disregard a.out.
2412 # It will help us diagnose broken compilers, and finding out an intuition
2413 # of exeext.
2414 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2415 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2416 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2417 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2418   (eval $ac_link_default) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; then
2422   # Find the output, starting from the most likely.  This scheme is
2423 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2424 # resort.
2425
2426 # Be careful to initialize this variable, since it used to be cached.
2427 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2428 ac_cv_exeext=
2429 # b.out is created by i960 compilers.
2430 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2431 do
2432   test -f "$ac_file" || continue
2433   case $ac_file in
2434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2435         ;;
2436     conftest.$ac_ext )
2437         # This is the source file.
2438         ;;
2439     [ab].out )
2440         # We found the default executable, but exeext='' is most
2441         # certainly right.
2442         break;;
2443     *.* )
2444         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445         # FIXME: I believe we export ac_cv_exeext for Libtool,
2446         # but it would be cool to find out if it's true.  Does anybody
2447         # maintain Libtool? --akim.
2448         export ac_cv_exeext
2449         break;;
2450     * )
2451         break;;
2452   esac
2453 done
2454 else
2455   echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457
2458 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2459 See \`config.log' for more details." >&5
2460 echo "$as_me: error: C compiler cannot create executables
2461 See \`config.log' for more details." >&2;}
2462    { (exit 77); exit 77; }; }
2463 fi
2464
2465 ac_exeext=$ac_cv_exeext
2466 echo "$as_me:$LINENO: result: $ac_file" >&5
2467 echo "${ECHO_T}$ac_file" >&6
2468
2469 # Check the compiler produces executables we can run.  If not, either
2470 # the compiler is broken, or we cross compile.
2471 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2472 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2473 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2474 # If not cross compiling, check that we can run a simple program.
2475 if test "$cross_compiling" != yes; then
2476   if { ac_try='./$ac_file'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; }; then
2482     cross_compiling=no
2483   else
2484     if test "$cross_compiling" = maybe; then
2485         cross_compiling=yes
2486     else
2487         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&5
2490 echo "$as_me: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&2;}
2493    { (exit 1); exit 1; }; }
2494     fi
2495   fi
2496 fi
2497 echo "$as_me:$LINENO: result: yes" >&5
2498 echo "${ECHO_T}yes" >&6
2499
2500 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2501 ac_clean_files=$ac_clean_files_save
2502 # Check the compiler produces executables we can run.  If not, either
2503 # the compiler is broken, or we cross compile.
2504 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2506 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2507 echo "${ECHO_T}$cross_compiling" >&6
2508
2509 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2512   (eval $ac_link) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; then
2516   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2518 # work properly (i.e., refer to `conftest.exe'), while it won't with
2519 # `rm'.
2520 for ac_file in conftest.exe conftest conftest.*; do
2521   test -f "$ac_file" || continue
2522   case $ac_file in
2523     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2524     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525           export ac_cv_exeext
2526           break;;
2527     * ) break;;
2528   esac
2529 done
2530 else
2531   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2532 See \`config.log' for more details." >&5
2533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2534 See \`config.log' for more details." >&2;}
2535    { (exit 1); exit 1; }; }
2536 fi
2537
2538 rm -f conftest$ac_cv_exeext
2539 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2540 echo "${ECHO_T}$ac_cv_exeext" >&6
2541
2542 rm -f conftest.$ac_ext
2543 EXEEXT=$ac_cv_exeext
2544 ac_exeext=$EXEEXT
2545 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2547 if test "${ac_cv_objext+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.o conftest.obj
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; then
2571   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572   case $ac_file in
2573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2574     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575        break;;
2576   esac
2577 done
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&2;}
2586    { (exit 1); exit 1; }; }
2587 fi
2588
2589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2592 echo "${ECHO_T}$ac_cv_objext" >&6
2593 OBJEXT=$ac_cv_objext
2594 ac_objext=$OBJEXT
2595 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2596 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2597 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610 #ifndef __GNUC__
2611        choke me
2612 #endif
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
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"
2628                          || test ! -s conftest.err'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; } &&
2634          { ac_try='test -s conftest.$ac_objext'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; }; then
2640   ac_compiler_gnu=yes
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 ac_compiler_gnu=no
2646 fi
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649
2650 fi
2651 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2652 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2653 GCC=`test $ac_compiler_gnu = yes && echo yes`
2654 ac_test_CFLAGS=${CFLAGS+set}
2655 ac_save_CFLAGS=$CFLAGS
2656 CFLAGS="-g"
2657 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2658 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2659 if test "${ac_cv_prog_cc_g+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668
2669 int
2670 main ()
2671 {
2672
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679   (eval $ac_compile) 2>conftest.er1
2680   ac_status=$?
2681   grep -v '^ *+' conftest.er1 >conftest.err
2682   rm -f conftest.er1
2683   cat conftest.err >&5
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); } &&
2686          { ac_try='test -z "$ac_c_werror_flag"
2687                          || test ! -s conftest.err'
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); }; } &&
2693          { ac_try='test -s conftest.$ac_objext'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; }; then
2699   ac_cv_prog_cc_g=yes
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 ac_cv_prog_cc_g=no
2705 fi
2706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2710 if test "$ac_test_CFLAGS" = set; then
2711   CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713   if test "$GCC" = yes; then
2714     CFLAGS="-g -O2"
2715   else
2716     CFLAGS="-g"
2717   fi
2718 else
2719   if test "$GCC" = yes; then
2720     CFLAGS="-O2"
2721   else
2722     CFLAGS=
2723   fi
2724 fi
2725 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2726 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2727 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_cv_prog_cc_stdc=no
2731 ac_save_CC=$CC
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2762    function prototypes and stuff, but not '\xHH' hex character constants.
2763    These don't provoke an error unfortunately, instead are silently treated
2764    as 'x'.  The following induces an error, until -std1 is added to get
2765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2766    array size at least.  It's necessary to write '\x00'==0 to get something
2767    that's true only with -std1.  */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770 int test (int i, double x);
2771 struct s1 {int (*f) (int a);};
2772 struct s2 {int (*f) (double a);};
2773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774 int argc;
2775 char **argv;
2776 int
2777 main ()
2778 {
2779 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 # Don't try gcc -ansi; that turns off useful extensions and
2785 # breaks some systems' header files.
2786 # AIX                   -qlanglvl=ansi
2787 # Ultrix and OSF/1      -std1
2788 # HP-UX 10.20 and later -Ae
2789 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2790 # SVR4                  -Xc -D__EXTENSIONS__
2791 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 do
2793   CC="$ac_save_CC $ac_arg"
2794   rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          { ac_try='test -z "$ac_c_werror_flag"
2804                          || test ! -s conftest.err'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; } &&
2810          { ac_try='test -s conftest.$ac_objext'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816   ac_cv_prog_cc_stdc=$ac_arg
2817 break
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 fi
2823 rm -f conftest.err conftest.$ac_objext
2824 done
2825 rm -f conftest.$ac_ext conftest.$ac_objext
2826 CC=$ac_save_CC
2827
2828 fi
2829
2830 case "x$ac_cv_prog_cc_stdc" in
2831   x|xno)
2832     echo "$as_me:$LINENO: result: none needed" >&5
2833 echo "${ECHO_T}none needed" >&6 ;;
2834   *)
2835     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2837     CC="$CC $ac_cv_prog_cc_stdc" ;;
2838 esac
2839
2840 # Some people use a C++ compiler to compile C.  Since we use `exit',
2841 # in C++ we need to declare it.  In case someone uses the same compiler
2842 # for both compiling C and C++ we need to have the C++ compiler decide
2843 # the declaration of exit, since it's the most demanding environment.
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #ifndef __cplusplus
2846   choke me
2847 #endif
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851   (eval $ac_compile) 2>conftest.er1
2852   ac_status=$?
2853   grep -v '^ *+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } &&
2858          { ac_try='test -z "$ac_c_werror_flag"
2859                          || test ! -s conftest.err'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; } &&
2865          { ac_try='test -s conftest.$ac_objext'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; }; then
2871   for ac_declaration in \
2872    '' \
2873    'extern "C" void std::exit (int) throw (); using std::exit;' \
2874    'extern "C" void std::exit (int); using std::exit;' \
2875    'extern "C" void exit (int) throw ();' \
2876    'extern "C" void exit (int);' \
2877    'void exit (int);'
2878 do
2879   cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885 $ac_declaration
2886 #include <stdlib.h>
2887 int
2888 main ()
2889 {
2890 exit (42);
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"
2905                          || test ! -s conftest.err'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   :
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 $ac_declaration
2932 int
2933 main ()
2934 {
2935 exit (42);
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_c_werror_flag"
2950                          || test ! -s conftest.err'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; } &&
2956          { ac_try='test -s conftest.$ac_objext'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; }; then
2962   break
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 fi
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969 done
2970 rm -f conftest*
2971 if test -n "$ac_declaration"; then
2972   echo '#ifdef __cplusplus' >>confdefs.h
2973   echo $ac_declaration      >>confdefs.h
2974   echo '#endif'             >>confdefs.h
2975 fi
2976
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 fi
2982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 DEPDIR="${am__leading_dot}deps"
2989
2990           ac_config_commands="$ac_config_commands depfiles"
2991
2992
2993 am_make=${MAKE-make}
2994 cat > confinc << 'END'
2995 am__doit:
2996         @echo done
2997 .PHONY: am__doit
2998 END
2999 # If we don't find an include directive, just comment out the code.
3000 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3001 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3002 am__include="#"
3003 am__quote=
3004 _am_result=none
3005 # First try GNU make style include.
3006 echo "include confinc" > confmf
3007 # We grep out `Entering directory' and `Leaving directory'
3008 # messages which can occur if `w' ends up in MAKEFLAGS.
3009 # In particular we don't look at `^make:' because GNU make might
3010 # be invoked under some other name (usually "gmake"), in which
3011 # case it prints its new name instead of `make'.
3012 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3013    am__include=include
3014    am__quote=
3015    _am_result=GNU
3016 fi
3017 # Now try BSD make style include.
3018 if test "$am__include" = "#"; then
3019    echo '.include "confinc"' > confmf
3020    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3021       am__include=.include
3022       am__quote="\""
3023       _am_result=BSD
3024    fi
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: result: $_am_result" >&5
3029 echo "${ECHO_T}$_am_result" >&6
3030 rm -f confinc confmf
3031
3032 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3033 if test "${enable_dependency_tracking+set}" = set; then
3034   enableval="$enable_dependency_tracking"
3035
3036 fi;
3037 if test "x$enable_dependency_tracking" != xno; then
3038   am_depcomp="$ac_aux_dir/depcomp"
3039   AMDEPBACKSLASH='\'
3040 fi
3041
3042
3043 if test "x$enable_dependency_tracking" != xno; then
3044   AMDEP_TRUE=
3045   AMDEP_FALSE='#'
3046 else
3047   AMDEP_TRUE='#'
3048   AMDEP_FALSE=
3049 fi
3050
3051
3052
3053
3054 depcc="$CC"   am_compiler_list=
3055
3056 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3057 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3058 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3062   # We make a subdir and do the tests there.  Otherwise we can end up
3063   # making bogus files that we don't know about and never remove.  For
3064   # instance it was reported that on HP-UX the gcc test will end up
3065   # making a dummy file named `D' -- because `-MD' means `put the output
3066   # in D'.
3067   mkdir conftest.dir
3068   # Copy depcomp to subdir because otherwise we won't find it if we're
3069   # using a relative directory.
3070   cp "$am_depcomp" conftest.dir
3071   cd conftest.dir
3072   # We will build objects and dependencies in a subdirectory because
3073   # it helps to detect inapplicable dependency modes.  For instance
3074   # both Tru64's cc and ICC support -MD to output dependencies as a
3075   # side effect of compilation, but ICC will put the dependencies in
3076   # the current directory while Tru64 will put them in the object
3077   # directory.
3078   mkdir sub
3079
3080   am_cv_CC_dependencies_compiler_type=none
3081   if test "$am_compiler_list" = ""; then
3082      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3083   fi
3084   for depmode in $am_compiler_list; do
3085     # Setup a source with many dependencies, because some compilers
3086     # like to wrap large dependency lists on column 80 (with \), and
3087     # we should not choose a depcomp mode which is confused by this.
3088     #
3089     # We need to recreate these files for each test, as the compiler may
3090     # overwrite some of them when testing with obscure command lines.
3091     # This happens at least with the AIX C compiler.
3092     : > sub/conftest.c
3093     for i in 1 2 3 4 5 6; do
3094       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3095       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3096       # Solaris 8's {/usr,}/bin/sh.
3097       touch sub/conftst$i.h
3098     done
3099     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3100
3101     case $depmode in
3102     nosideeffect)
3103       # after this tag, mechanisms are not by side-effect, so they'll
3104       # only be used when explicitly requested
3105       if test "x$enable_dependency_tracking" = xyes; then
3106         continue
3107       else
3108         break
3109       fi
3110       ;;
3111     none) break ;;
3112     esac
3113     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3114     # mode.  It turns out that the SunPro C++ compiler does not properly
3115     # handle `-M -o', and we need to detect this.
3116     if depmode=$depmode \
3117        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3118        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3119        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3120          >/dev/null 2>conftest.err &&
3121        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3122        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3123        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3124       # icc doesn't choke on unknown options, it will just issue warnings
3125       # or remarks (even with -Werror).  So we grep stderr for any message
3126       # that says an option was ignored or not supported.
3127       # When given -MP, icc 7.0 and 7.1 complain thusly:
3128       #   icc: Command line warning: ignoring option '-M'; no argument required
3129       # The diagnosis changed in icc 8.0:
3130       #   icc: Command line remark: option '-MP' not supported
3131       if (grep 'ignoring option' conftest.err ||
3132           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3133         am_cv_CC_dependencies_compiler_type=$depmode
3134         break
3135       fi
3136     fi
3137   done
3138
3139   cd ..
3140   rm -rf conftest.dir
3141 else
3142   am_cv_CC_dependencies_compiler_type=none
3143 fi
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3147 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3148 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3149
3150
3151
3152 if
3153   test "x$enable_dependency_tracking" != xno \
3154   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3155   am__fastdepCC_TRUE=
3156   am__fastdepCC_FALSE='#'
3157 else
3158   am__fastdepCC_TRUE='#'
3159   am__fastdepCC_FALSE=
3160 fi
3161
3162
3163
3164
3165
3166
3167 # By default we simply use the C compiler to build assembly code.
3168
3169 test "${CCAS+set}" = set || CCAS=$CC
3170 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3171
3172
3173
3174 if test "x$CC" != xcc; then
3175   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3176 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3177 else
3178   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3179 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3180 fi
3181 set dummy $CC; ac_cc=`echo $2 |
3182                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3183 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 # Make sure it works both with $CC and with simple cc.
3202 # We do the test twice because some compilers refuse to overwrite an
3203 # existing .o file with -o, though they will create one.
3204 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3205 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206   (eval $ac_try) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } &&
3210    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211   (eval $ac_try) 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); };
3215 then
3216   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3217   if test "x$CC" != xcc; then
3218     # Test first that cc exists at all.
3219     if { ac_try='cc -c conftest.$ac_ext >&5'
3220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221   (eval $ac_try) 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; }; then
3225       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3226       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } &&
3231          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); };
3236       then
3237         # cc works too.
3238         :
3239       else
3240         # cc exists but doesn't like -o.
3241         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3242       fi
3243     fi
3244   fi
3245 else
3246   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3247 fi
3248 rm -f conftest*
3249
3250 fi
3251 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3252   echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257
3258 cat >>confdefs.h <<\_ACEOF
3259 #define NO_MINUS_C_MINUS_O 1
3260 _ACEOF
3261
3262 fi
3263
3264 # FIXME: we rely on the cache variable name because
3265 # there is no other way.
3266 set dummy $CC
3267 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3268 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3269    # Losing compiler, so override with the script.
3270    # FIXME: It is wrong to rewrite CC.
3271    # But if we don't then we get into trouble of one sort or another.
3272    # A longer-term fix would be to have automake use am__CC in this case,
3273    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3274    CC="$am_aux_dir/compile $CC"
3275 fi
3276
3277
3278
3279 macro_version='2.1a'
3280 macro_revision='1.2435'
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293 ltmain="$ac_aux_dir/ltmain.sh"
3294
3295 # Set options
3296
3297 enable_dlopen=no
3298
3299
3300 enable_win32_dll=no
3301
3302
3303 # Check whether --enable-shared or --disable-shared was given.
3304 if test "${enable_shared+set}" = set; then
3305   enableval="$enable_shared"
3306   p=${PACKAGE-default}
3307     case $enableval in
3308     yes) enable_shared=yes ;;
3309     no) enable_shared=no ;;
3310     *)
3311       enable_shared=no
3312       # Look at the argument we got.  We use all the common list separators.
3313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3314       for pkg in $enableval; do
3315         IFS="$lt_save_ifs"
3316         if test "X$pkg" = "X$p"; then
3317           enable_shared=yes
3318         fi
3319       done
3320       IFS="$lt_save_ifs"
3321       ;;
3322     esac
3323 else
3324   enable_shared=yes
3325 fi;
3326
3327
3328
3329
3330
3331
3332
3333
3334 # Check whether --enable-static or --disable-static was given.
3335 if test "${enable_static+set}" = set; then
3336   enableval="$enable_static"
3337   p=${PACKAGE-default}
3338     case $enableval in
3339     yes) enable_static=yes ;;
3340     no) enable_static=no ;;
3341     *)
3342      enable_static=no
3343       # Look at the argument we got.  We use all the common list separators.
3344       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345       for pkg in $enableval; do
3346         IFS="$lt_save_ifs"
3347         if test "X$pkg" = "X$p"; then
3348           enable_static=yes
3349         fi
3350       done
3351       IFS="$lt_save_ifs"
3352       ;;
3353     esac
3354 else
3355   enable_static=yes
3356 fi;
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366 # Check whether --with-pic or --without-pic was given.
3367 if test "${with_pic+set}" = set; then
3368   withval="$with_pic"
3369   pic_mode="$withval"
3370 else
3371   pic_mode=default
3372 fi;
3373
3374 test -z "$pic_mode" && pic_mode=default
3375
3376
3377
3378
3379
3380
3381
3382 # Check whether --enable-fast-install or --disable-fast-install was given.
3383 if test "${enable_fast_install+set}" = set; then
3384   enableval="$enable_fast_install"
3385   p=${PACKAGE-default}
3386     case $enableval in
3387     yes) enable_fast_install=yes ;;
3388     no) enable_fast_install=no ;;
3389     *)
3390       enable_fast_install=no
3391       # Look at the argument we got.  We use all the common list separators.
3392       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3393       for pkg in $enableval; do
3394         IFS="$lt_save_ifs"
3395         if test "X$pkg" = "X$p"; then
3396           enable_fast_install=yes
3397         fi
3398       done
3399       IFS="$lt_save_ifs"
3400       ;;
3401     esac
3402 else
3403   enable_fast_install=yes
3404 fi;
3405
3406
3407
3408
3409
3410
3411
3412
3413 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3414 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3415 if test "${lt_cv_path_SED+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   # Loop through the user's path and test for sed and gsed.
3419 # Then use that list of sed's as ones to test for truncation.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425   for lt_ac_prog in sed gsed; do
3426     for ac_exec_ext in '' $ac_executable_extensions; do
3427       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3428         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3429       fi
3430     done
3431   done
3432 done
3433 IFS=$as_save_IFS
3434 lt_ac_max=0
3435 lt_ac_count=0
3436 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3437 # along with /bin/sed that truncates output.
3438 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3439   test ! -f $lt_ac_sed && continue
3440   cat /dev/null > conftest.in
3441   lt_ac_count=0
3442   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3443   # Check for GNU sed and select it if it is found.
3444   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3445     lt_cv_path_SED=$lt_ac_sed
3446     break
3447   fi
3448   while true; do
3449     cat conftest.in conftest.in >conftest.tmp
3450     mv conftest.tmp conftest.in
3451     cp conftest.in conftest.nl
3452     echo >>conftest.nl
3453     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3454     cmp -s conftest.out conftest.nl || break
3455     # 10000 chars as input seems more than enough
3456     test $lt_ac_count -gt 10 && break
3457     lt_ac_count=`expr $lt_ac_count + 1`
3458     if test $lt_ac_count -gt $lt_ac_max; then
3459       lt_ac_max=$lt_ac_count
3460       lt_cv_path_SED=$lt_ac_sed
3461     fi
3462   done
3463 done
3464
3465 fi
3466
3467 SED=$lt_cv_path_SED
3468
3469 echo "$as_me:$LINENO: result: $SED" >&5
3470 echo "${ECHO_T}$SED" >&6
3471
3472 test -z "$SED" && SED=sed
3473 Xsed="$SED -e 1s/^X//"
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485 echo "$as_me:$LINENO: checking for egrep" >&5
3486 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3487 if test "${ac_cv_prog_egrep+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3491     then ac_cv_prog_egrep='grep -E'
3492     else ac_cv_prog_egrep='egrep'
3493     fi
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3496 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3497  EGREP=$ac_cv_prog_egrep
3498
3499
3500 echo "$as_me:$LINENO: checking for fgrep" >&5
3501 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3502 if test "${ac_cv_prog_fgrep+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3506     then ac_cv_prog_fgrep='grep -F'
3507     else ac_cv_prog_fgrep='fgrep'
3508     fi
3509 fi
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3511 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3512  FGREP=$ac_cv_prog_fgrep
3513
3514
3515 test -z "$GREP" && GREP=grep
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3536 if test "${with_gnu_ld+set}" = set; then
3537   withval="$with_gnu_ld"
3538   test "$withval" = no || with_gnu_ld=yes
3539 else
3540   with_gnu_ld=no
3541 fi;
3542 ac_prog=ld
3543 if test "$GCC" = yes; then
3544   # Check if gcc -print-prog-name=ld gives a path.
3545   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3546 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3547   case $host in
3548   *-*-mingw*)
3549     # gcc leaves a trailing carriage return which upsets mingw
3550     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3551   *)
3552     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3553   esac
3554   case $ac_prog in
3555     # Accept absolute paths.
3556     [\\/]* | ?:[\\/]*)
3557       re_direlt='/[^/][^/]*/\.\./'
3558       # Canonicalize the pathname of ld
3559       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3560       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3561         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3562       done
3563       test -z "$LD" && LD="$ac_prog"
3564       ;;
3565   "")
3566     # If it fails, then pretend we aren't using GCC.
3567     ac_prog=ld
3568     ;;
3569   *)
3570     # If it is relative, then search for the first ld in PATH.
3571     with_gnu_ld=unknown
3572     ;;
3573   esac
3574 elif test "$with_gnu_ld" = yes; then
3575   echo "$as_me:$LINENO: checking for GNU ld" >&5
3576 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3577 else
3578   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3579 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3580 fi
3581 if test "${lt_cv_path_LD+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -z "$LD"; then
3585   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3586   for ac_dir in $PATH; do
3587     IFS="$lt_save_ifs"
3588     test -z "$ac_dir" && ac_dir=.
3589     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3590       lt_cv_path_LD="$ac_dir/$ac_prog"
3591       # Check to see if the program is GNU ld.  I'd rather use --version,
3592       # but apparently some variants of GNU ld only accept -v.
3593       # Break only if it was the GNU/non-GNU ld that we prefer.
3594       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3595       *GNU* | *'with BFD'*)
3596         test "$with_gnu_ld" != no && break
3597         ;;
3598       *)
3599         test "$with_gnu_ld" != yes && break
3600         ;;
3601       esac
3602     fi
3603   done
3604   IFS="$lt_save_ifs"
3605 else
3606   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3607 fi
3608 fi
3609
3610 LD="$lt_cv_path_LD"
3611 if test -n "$LD"; then
3612   echo "$as_me:$LINENO: result: $LD" >&5
3613 echo "${ECHO_T}$LD" >&6
3614 else
3615   echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3617 fi
3618 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3619 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3620    { (exit 1); exit 1; }; }
3621 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3622 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3623 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3627 case `$LD -v 2>&1 </dev/null` in
3628 *GNU* | *'with BFD'*)
3629   lt_cv_prog_gnu_ld=yes
3630   ;;
3631 *)
3632   lt_cv_prog_gnu_ld=no
3633   ;;
3634 esac
3635 fi
3636 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3637 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3638 with_gnu_ld=$lt_cv_prog_gnu_ld
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3650 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3651 if test "${lt_cv_path_NM+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   if test -n "$NM"; then
3655   # Let the user override the test.
3656   lt_cv_path_NM="$NM"
3657 else
3658   lt_nm_to_check="${ac_tool_prefix}nm"
3659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3660     lt_nm_to_check="$lt_nm_to_check nm"
3661   fi
3662   for lt_tmp_nm in $lt_nm_to_check; do
3663     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3665       IFS="$lt_save_ifs"
3666       test -z "$ac_dir" && ac_dir=.
3667       tmp_nm="$ac_dir/$lt_tmp_nm"
3668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3669         # Check to see if the nm accepts a BSD-compat flag.
3670         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3671         #   nm: unknown option "B" ignored
3672         # Tru64's nm complains that /dev/null is an invalid object file
3673         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3674         */dev/null* | *'Invalid file or object type'*)
3675           lt_cv_path_NM="$tmp_nm -B"
3676           break
3677           ;;
3678         *)
3679           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3680           */dev/null*)
3681             lt_cv_path_NM="$tmp_nm -p"
3682             break
3683             ;;
3684           *)
3685             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3686             continue # so that we can try to find one that supports BSD flags
3687             ;;
3688           esac
3689           ;;
3690         esac
3691       fi
3692     done
3693     IFS="$lt_save_ifs"
3694   done
3695   : ${lt_cv_path_NM=no}
3696 fi
3697 fi
3698 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3699 echo "${ECHO_T}$lt_cv_path_NM" >&6
3700 if test "$lt_cv_path_NM" != "no"; then
3701   NM="$lt_cv_path_NM"
3702 else
3703   # Didn't find any BSD compatible name lister, look for dumpbin.
3704   if test -n "$ac_tool_prefix"; then
3705   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3706   do
3707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   if test -n "$DUMPBIN"; then
3715   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730
3731 fi
3732 fi
3733 DUMPBIN=$ac_cv_prog_DUMPBIN
3734 if test -n "$DUMPBIN"; then
3735   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3736 echo "${ECHO_T}$DUMPBIN" >&6
3737 else
3738   echo "$as_me:$LINENO: result: no" >&5
3739 echo "${ECHO_T}no" >&6
3740 fi
3741
3742     test -n "$DUMPBIN" && break
3743   done
3744 fi
3745 if test -z "$DUMPBIN"; then
3746   ac_ct_DUMPBIN=$DUMPBIN
3747   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3748 do
3749   # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   if test -n "$ac_ct_DUMPBIN"; then
3757   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764   for ac_exec_ext in '' $ac_executable_extensions; do
3765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771 done
3772
3773 fi
3774 fi
3775 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3776 if test -n "$ac_ct_DUMPBIN"; then
3777   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3778 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783
3784   test -n "$ac_ct_DUMPBIN" && break
3785 done
3786 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3787
3788   DUMPBIN=$ac_ct_DUMPBIN
3789 fi
3790
3791
3792   if test "$DUMPBIN" != ":"; then
3793     NM="$DUMPBIN"
3794   fi
3795 fi
3796 test -z "$NM" && NM=nm
3797
3798
3799
3800
3801
3802
3803 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3804 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3805 if test "${lt_cv_nm_interface+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   lt_cv_nm_interface="BSD nm"
3809   echo "int some_variable = 0;" > conftest.$ac_ext
3810   (eval echo "\"\$as_me:3810: $ac_compile\"" >&5)
3811   (eval "$ac_compile" 2>conftest.err)
3812   cat conftest.err >&5
3813   (eval echo "\"\$as_me:3813: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3814   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3815   cat conftest.err >&5
3816   (eval echo "\"\$as_me:3816: output\"" >&5)
3817   cat conftest.out >&5
3818   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3819     lt_cv_nm_interface="MS dumpbin"
3820   fi
3821   rm -f conftest*
3822 fi
3823 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3824 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3825
3826 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3827 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3828 LN_S=$as_ln_s
3829 if test "$LN_S" = "ln -s"; then
3830   echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3834 echo "${ECHO_T}no, using $LN_S" >&6
3835 fi
3836
3837 # find the maximum length of command line arguments
3838 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3839 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3840 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843     i=0
3844   teststring="ABCD"
3845
3846   case $build_os in
3847   msdosdjgpp*)
3848     # On DJGPP, this test can blow up pretty badly due to problems in libc
3849     # (any single argument exceeding 2000 bytes causes a buffer overrun
3850     # during glob expansion).  Even if it were fixed, the result of this
3851     # check would be larger than it should be.
3852     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3853     ;;
3854
3855   gnu*)
3856     # Under GNU Hurd, this test is not required because there is
3857     # no limit to the length of command line arguments.
3858     # Libtool will interpret -1 as no limit whatsoever
3859     lt_cv_sys_max_cmd_len=-1;
3860     ;;
3861
3862   cygwin* | mingw*)
3863     # On Win9x/ME, this test blows up -- it succeeds, but takes
3864     # about 5 minutes as the teststring grows exponentially.
3865     # Worse, since 9x/ME are not pre-emptively multitasking,
3866     # you end up with a "frozen" computer, even though with patience
3867     # the test eventually succeeds (with a max line length of 256k).
3868     # Instead, let's just punt: use the minimum linelength reported by
3869     # all of the supported platforms: 8192 (on NT/2K/XP).
3870     lt_cv_sys_max_cmd_len=8192;
3871     ;;
3872
3873   amigaos*)
3874     # On AmigaOS with pdksh, this test takes hours, literally.
3875     # So we just punt and use a minimum line length of 8192.
3876     lt_cv_sys_max_cmd_len=8192;
3877     ;;
3878
3879   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3880     # This has been around since 386BSD, at least.  Likely further.
3881     if test -x /sbin/sysctl; then
3882       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3883     elif test -x /usr/sbin/sysctl; then
3884       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3885     else
3886       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3887     fi
3888     # And add a safety zone
3889     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3890     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3891     ;;
3892
3893   interix*)
3894     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3895     lt_cv_sys_max_cmd_len=196608
3896     ;;
3897
3898   osf*)
3899     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3900     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3901     # nice to cause kernel panics so lets avoid the loop below.
3902     # First set a reasonable default.
3903     lt_cv_sys_max_cmd_len=16384
3904     #
3905     if test -x /sbin/sysconfig; then
3906       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3907         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3908       esac
3909     fi
3910     ;;
3911   sco3.2v5*)
3912     lt_cv_sys_max_cmd_len=102400
3913     ;;
3914   sysv5* | sco5v6* | sysv4.2uw2*)
3915     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3916     if test -n "$kargmax"; then
3917       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3918     else
3919       lt_cv_sys_max_cmd_len=32768
3920     fi
3921     ;;
3922   *)
3923     # Make teststring a little bigger before we do anything with it.
3924     # a 1K string should be a reasonable start.
3925     for i in 1 2 3 4 5 6 7 8 ; do
3926       teststring=$teststring$teststring
3927     done
3928     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3929     # If test is not a shell built-in, we'll probably end up computing a
3930     # maximum length that is only half of the actual maximum length, but
3931     # we can't tell.
3932     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3933                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3934             test $i != 17 # 1/2 MB should be enough
3935     do
3936       i=`expr $i + 1`
3937       teststring=$teststring$teststring
3938     done
3939     # Only check the string length outside the loop.
3940     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3941     teststring=
3942     # Add a significant safety factor because C++ compilers can tack on massive
3943     # amounts of additional arguments before passing them to the linker.
3944     # It appears as though 1/2 is a usable value.
3945     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3946     ;;
3947   esac
3948
3949 fi
3950
3951 if test -n $lt_cv_sys_max_cmd_len ; then
3952   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3953 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3954 else
3955   echo "$as_me:$LINENO: result: none" >&5
3956 echo "${ECHO_T}none" >&6
3957 fi
3958 max_cmd_len=$lt_cv_sys_max_cmd_len
3959
3960
3961
3962
3963
3964
3965
3966 : ${CP="cp -f"}
3967 : ${MV="mv -f"}
3968 : ${RM="rm -f"}
3969
3970 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3971 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3972 # Try some XSI features
3973 xsi_shell=no
3974 ( _lt_dummy="a/b/c"
3975   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3976       = c,a/b,, ) >/dev/null 2>&1 \
3977   && xsi_shell=yes
3978 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3979 echo "${ECHO_T}$xsi_shell" >&6
3980
3981
3982 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3983 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3984 lt_shell_append=no
3985 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3986     >/dev/null 2>&1 \
3987   && lt_shell_append=yes
3988 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3989 echo "${ECHO_T}$lt_shell_append" >&6
3990
3991
3992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3993   lt_unset=unset
3994 else
3995   lt_unset=false
3996 fi
3997
3998
3999
4000
4001
4002 # test EBCDIC or ASCII
4003 case `echo X|tr X '\101'` in
4004  A) # ASCII based system
4005     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4006   lt_SP2NL='tr \040 \012'
4007   lt_NL2SP='tr \015\012 \040\040'
4008   ;;
4009  *) # EBCDIC based system
4010   lt_SP2NL='tr \100 \n'
4011   lt_NL2SP='tr \r\n \100\100'
4012   ;;
4013 esac
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4024 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4025 if test "${lt_cv_ld_reload_flag+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   lt_cv_ld_reload_flag='-r'
4029 fi
4030 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4031 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4032 reload_flag=$lt_cv_ld_reload_flag
4033 case $reload_flag in
4034 "" | " "*) ;;
4035 *) reload_flag=" $reload_flag" ;;
4036 esac
4037 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4038 case $host_os in
4039   darwin*)
4040     if test "$GCC" = yes; then
4041       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4042     else
4043       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4044     fi
4045     ;;
4046 esac
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4058 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4059 if test "${lt_cv_deplibs_check_method+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   lt_cv_file_magic_cmd='$MAGIC_CMD'
4063 lt_cv_file_magic_test_file=
4064 lt_cv_deplibs_check_method='unknown'
4065 # Need to set the preceding variable on all platforms that support
4066 # interlibrary dependencies.
4067 # 'none' -- dependencies not supported.
4068 # `unknown' -- same as none, but documents that we really don't know.
4069 # 'pass_all' -- all dependencies passed with no checks.
4070 # 'test_compile' -- check by making test program.
4071 # 'file_magic [[regex]]' -- check by looking for files in library path
4072 # which responds to the $file_magic_cmd with a given extended regex.
4073 # If you have `file' or equivalent on your system and you're not sure
4074 # whether `pass_all' will *always* work, you probably want this one.
4075
4076 case $host_os in
4077 aix4* | aix5*)
4078   lt_cv_deplibs_check_method=pass_all
4079   ;;
4080
4081 beos*)
4082   lt_cv_deplibs_check_method=pass_all
4083   ;;
4084
4085 bsdi[45]*)
4086   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4087   lt_cv_file_magic_cmd='/usr/bin/file -L'
4088   lt_cv_file_magic_test_file=/shlib/libc.so
4089   ;;
4090
4091 cygwin*)
4092   # func_win32_libid is a shell function defined in ltmain.sh
4093   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4094   lt_cv_file_magic_cmd='func_win32_libid'
4095   ;;
4096
4097 mingw* | pw32*)
4098   # Base MSYS/MinGW do not provide the 'file' command needed by
4099   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4100   # unless we find 'file', for example because we are cross-compiling.
4101   if ( file / ) >/dev/null 2>&1; then
4102     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4103     lt_cv_file_magic_cmd='func_win32_libid'
4104   else
4105     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4106     lt_cv_file_magic_cmd='$OBJDUMP -f'
4107   fi
4108   ;;
4109
4110 darwin* | rhapsody*)
4111   lt_cv_deplibs_check_method=pass_all
4112   ;;
4113
4114 freebsd* | dragonfly*)
4115   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4116     case $host_cpu in
4117     i*86 )
4118       # Not sure whether the presence of OpenBSD here was a mistake.
4119       # Let's accept both of them until this is cleared up.
4120       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4121       lt_cv_file_magic_cmd=/usr/bin/file
4122       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4123       ;;
4124     esac
4125   else
4126     lt_cv_deplibs_check_method=pass_all
4127   fi
4128   ;;
4129
4130 gnu*)
4131   lt_cv_deplibs_check_method=pass_all
4132   ;;
4133
4134 hpux10.20* | hpux11*)
4135   lt_cv_file_magic_cmd=/usr/bin/file
4136   case $host_cpu in
4137   ia64*)
4138     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4139     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4140     ;;
4141   hppa*64*)
4142     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4143     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4144     ;;
4145   *)
4146     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4147     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4148     ;;
4149   esac
4150   ;;
4151
4152 interix[3-9]*)
4153   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4154   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4155   ;;
4156
4157 irix5* | irix6* | nonstopux*)
4158   case $LD in
4159   *-32|*"-32 ") libmagic=32-bit;;
4160   *-n32|*"-n32 ") libmagic=N32;;
4161   *-64|*"-64 ") libmagic=64-bit;;
4162   *) libmagic=never-match;;
4163   esac
4164   lt_cv_deplibs_check_method=pass_all
4165   ;;
4166
4167 # This must be Linux ELF.
4168 linux* | k*bsd*-gnu)
4169   lt_cv_deplibs_check_method=pass_all
4170   ;;
4171
4172 netbsd*)
4173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4175   else
4176     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4177   fi
4178   ;;
4179
4180 newos6*)
4181   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4182   lt_cv_file_magic_cmd=/usr/bin/file
4183   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4184   ;;
4185
4186 *nto* | *qnx*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 openbsd*)
4191   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4193   else
4194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4195   fi
4196   ;;
4197
4198 osf3* | osf4* | osf5*)
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4201
4202 rdos*)
4203   lt_cv_deplibs_check_method=pass_all
4204   ;;
4205
4206 solaris*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4211   lt_cv_deplibs_check_method=pass_all
4212   ;;
4213
4214 sysv4 | sysv4.3*)
4215   case $host_vendor in
4216   motorola)
4217     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]'
4218     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4219     ;;
4220   ncr)
4221     lt_cv_deplibs_check_method=pass_all
4222     ;;
4223   sequent)
4224     lt_cv_file_magic_cmd='/bin/file'
4225     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4226     ;;
4227   sni)
4228     lt_cv_file_magic_cmd='/bin/file'
4229     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4230     lt_cv_file_magic_test_file=/lib/libc.so
4231     ;;
4232   siemens)
4233     lt_cv_deplibs_check_method=pass_all
4234     ;;
4235   pc)
4236     lt_cv_deplibs_check_method=pass_all
4237     ;;
4238   esac
4239   ;;
4240
4241 tpf*)
4242   lt_cv_deplibs_check_method=pass_all
4243   ;;
4244 esac
4245
4246 fi
4247 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4248 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4249 file_magic_cmd=$lt_cv_file_magic_cmd
4250 deplibs_check_method=$lt_cv_deplibs_check_method
4251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264 if test -n "$ac_tool_prefix"; then
4265   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ar; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_AR+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   if test -n "$AR"; then
4273   ac_cv_prog_AR="$AR" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280   for ac_exec_ext in '' $ac_executable_extensions; do
4281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282     ac_cv_prog_AR="${ac_tool_prefix}ar"
4283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287 done
4288
4289 fi
4290 fi
4291 AR=$ac_cv_prog_AR
4292 if test -n "$AR"; then
4293   echo "$as_me:$LINENO: result: $AR" >&5
4294 echo "${ECHO_T}$AR" >&6
4295 else
4296   echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298 fi
4299
4300 fi
4301 if test -z "$ac_cv_prog_AR"; then
4302   ac_ct_AR=$AR
4303   # Extract the first word of "ar", so it can be a program name with args.
4304 set dummy ar; ac_word=$2
4305 echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   if test -n "$ac_ct_AR"; then
4311   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318   for ac_exec_ext in '' $ac_executable_extensions; do
4319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320     ac_cv_prog_ac_ct_AR="ar"
4321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325 done
4326
4327   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4328 fi
4329 fi
4330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4331 if test -n "$ac_ct_AR"; then
4332   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4333 echo "${ECHO_T}$ac_ct_AR" >&6
4334 else
4335   echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4337 fi
4338
4339   AR=$ac_ct_AR
4340 else
4341   AR="$ac_cv_prog_AR"
4342 fi
4343
4344 test -z "$AR" && AR=ar
4345 test -z "$AR_FLAGS" && AR_FLAGS=cru
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357 if test -n "$ac_tool_prefix"; then
4358   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}strip; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_STRIP+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$STRIP"; then
4366   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381
4382 fi
4383 fi
4384 STRIP=$ac_cv_prog_STRIP
4385 if test -n "$STRIP"; then
4386   echo "$as_me:$LINENO: result: $STRIP" >&5
4387 echo "${ECHO_T}$STRIP" >&6
4388 else
4389   echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391 fi
4392
4393 fi
4394 if test -z "$ac_cv_prog_STRIP"; then
4395   ac_ct_STRIP=$STRIP
4396   # Extract the first word of "strip", so it can be a program name with args.
4397 set dummy strip; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$ac_ct_STRIP"; then
4404   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_prog_ac_ct_STRIP="strip"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4421 fi
4422 fi
4423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4424 if test -n "$ac_ct_STRIP"; then
4425   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4426 echo "${ECHO_T}$ac_ct_STRIP" >&6
4427 else
4428   echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4430 fi
4431
4432   STRIP=$ac_ct_STRIP
4433 else
4434   STRIP="$ac_cv_prog_STRIP"
4435 fi
4436
4437 test -z "$STRIP" && STRIP=:
4438
4439
4440
4441
4442
4443
4444 if test -n "$ac_tool_prefix"; then
4445   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_prog_RANLIB+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$RANLIB"; then
4453   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468
4469 fi
4470 fi
4471 RANLIB=$ac_cv_prog_RANLIB
4472 if test -n "$RANLIB"; then
4473   echo "$as_me:$LINENO: result: $RANLIB" >&5
4474 echo "${ECHO_T}$RANLIB" >&6
4475 else
4476   echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4478 fi
4479
4480 fi
4481 if test -z "$ac_cv_prog_RANLIB"; then
4482   ac_ct_RANLIB=$RANLIB
4483   # Extract the first word of "ranlib", so it can be a program name with args.
4484 set dummy ranlib; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   if test -n "$ac_ct_RANLIB"; then
4491   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498   for ac_exec_ext in '' $ac_executable_extensions; do
4499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500     ac_cv_prog_ac_ct_RANLIB="ranlib"
4501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502     break 2
4503   fi
4504 done
4505 done
4506
4507   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4508 fi
4509 fi
4510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4511 if test -n "$ac_ct_RANLIB"; then
4512   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4513 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4514 else
4515   echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4517 fi
4518
4519   RANLIB=$ac_ct_RANLIB
4520 else
4521   RANLIB="$ac_cv_prog_RANLIB"
4522 fi
4523
4524 test -z "$RANLIB" && RANLIB=:
4525
4526
4527
4528
4529
4530
4531 # Determine commands to create old-style static archives.
4532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4533 old_postinstall_cmds='chmod 644 $oldlib'
4534 old_postuninstall_cmds=
4535
4536 if test -n "$RANLIB"; then
4537   case $host_os in
4538   openbsd*)
4539     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4540     ;;
4541   *)
4542     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4543     ;;
4544   esac
4545   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4546 fi
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 # If no C compiler was specified, use CC.
4582 LTCC=${LTCC-"$CC"}
4583
4584 # If no C compiler flags were specified, use CFLAGS.
4585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4586
4587 # Allow CC to be a program name with arguments.
4588 compiler=$CC
4589
4590
4591 # Check for command to grab the raw symbol name followed by C symbol from nm.
4592 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4593 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597
4598 # These are sane defaults that work on at least a few old systems.
4599 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4600
4601 # Character class describing NM global symbol codes.
4602 symcode='[BCDEGRST]'
4603
4604 # Regexp to match symbols that can be accessed directly from C.
4605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4606
4607 # Define system-specific variables.
4608 case $host_os in
4609 aix*)
4610   symcode='[BCDT]'
4611   ;;
4612 cygwin* | mingw* | pw32*)
4613   symcode='[ABCDGISTW]'
4614   ;;
4615 hpux*)
4616   if test "$host_cpu" = ia64; then
4617     symcode='[ABCDEGRST]'
4618   fi
4619   ;;
4620 irix* | nonstopux*)
4621   symcode='[BCDEGRST]'
4622   ;;
4623 osf*)
4624   symcode='[BCDEGQRST]'
4625   ;;
4626 solaris*)
4627   symcode='[BDRT]'
4628   ;;
4629 sco3.2v5*)
4630   symcode='[DT]'
4631   ;;
4632 sysv4.2uw2*)
4633   symcode='[DT]'
4634   ;;
4635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4636   symcode='[ABDT]'
4637   ;;
4638 sysv4)
4639   symcode='[DFNSTU]'
4640   ;;
4641 esac
4642
4643 # If we're using GNU nm, then use its standard symbol codes.
4644 case `$NM -V 2>&1` in
4645 *GNU* | *'with BFD'*)
4646   symcode='[ABCDGIRSTW]' ;;
4647 esac
4648
4649 # Transform an extracted symbol line into a proper C declaration.
4650 # Some systems (esp. on ia64) link data and code symbols differently,
4651 # so use this general approach.
4652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4653
4654 # Transform an extracted symbol line into symbol name and symbol address
4655 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4656
4657 # Handle CRLF in mingw tool chain
4658 opt_cr=
4659 case $build_os in
4660 mingw*)
4661   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4662   ;;
4663 esac
4664
4665 # Try without a prefix underscore, then with it.
4666 for ac_symprfx in "" "_"; do
4667
4668   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4669   symxfrm="\\1 $ac_symprfx\\2 \\2"
4670
4671   # Write the raw and C identifiers.
4672   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4673     # Fake it for dumpbin and say T for any non-static function
4674     # and D for any global variable.
4675     # Also find C++ and __fastcall symbols from MSVC++,
4676     # which start with @ or ?.
4677     lt_cv_sys_global_symbol_pipe="$AWK '"\
4678 "     {last_section=section; section=\$ 3};"\
4679 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4680 "     \$ 0!~/External *\|/{next};"\
4681 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4682 "     {if(hide[section]) next};"\
4683 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4684 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4685 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4686 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4687 "     ' prfx=^$ac_symprfx"
4688   else
4689     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4690   fi
4691
4692   # Check to see that the pipe works correctly.
4693   pipe_works=no
4694
4695   rm -f conftest*
4696   cat > conftest.$ac_ext <<_LT_EOF
4697 #ifdef __cplusplus
4698 extern "C" {
4699 #endif
4700 char nm_test_var;
4701 void nm_test_func(void);
4702 void nm_test_func(void){}
4703 #ifdef __cplusplus
4704 }
4705 #endif
4706 int main(){nm_test_var='a';nm_test_func();return(0);}
4707 _LT_EOF
4708
4709   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710   (eval $ac_compile) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; then
4714     # Now try to grab the symbols.
4715     nlist=conftest.nm
4716     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4717   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } && test -s "$nlist"; then
4721       # Try sorting and uniquifying the output.
4722       if sort "$nlist" | uniq > "$nlist"T; then
4723         mv -f "$nlist"T "$nlist"
4724       else
4725         rm -f "$nlist"T
4726       fi
4727
4728       # Make sure that we snagged all the symbols we need.
4729       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4730         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4731           cat <<_LT_EOF > conftest.$ac_ext
4732 #ifdef __cplusplus
4733 extern "C" {
4734 #endif
4735
4736 _LT_EOF
4737           # Now generate the symbol file.
4738           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4739
4740           cat <<_LT_EOF >> conftest.$ac_ext
4741
4742 /* The mapping between symbol names and symbols.  */
4743 const struct {
4744   const char *name;
4745   void       *address;
4746 }
4747 lt__PROGRAM__LTX_preloaded_symbols[] =
4748 {
4749   { "@PROGRAM@", (void *) 0 },
4750 _LT_EOF
4751           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4752           cat <<\_LT_EOF >> conftest.$ac_ext
4753   {0, (void *) 0}
4754 };
4755
4756 /* This works around a problem in FreeBSD linker */
4757 #ifdef FREEBSD_WORKAROUND
4758 static const void *lt_preloaded_setup() {
4759   return lt__PROGRAM__LTX_preloaded_symbols;
4760 }
4761 #endif
4762
4763 #ifdef __cplusplus
4764 }
4765 #endif
4766 _LT_EOF
4767           # Now try linking the two files.
4768           mv conftest.$ac_objext conftstm.$ac_objext
4769           lt_save_LIBS="$LIBS"
4770           lt_save_CFLAGS="$CFLAGS"
4771           LIBS="conftstm.$ac_objext"
4772           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4773           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774   (eval $ac_link) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4778             pipe_works=yes
4779           fi
4780           LIBS="$lt_save_LIBS"
4781           CFLAGS="$lt_save_CFLAGS"
4782         else
4783           echo "cannot find nm_test_func in $nlist" >&5
4784         fi
4785       else
4786         echo "cannot find nm_test_var in $nlist" >&5
4787       fi
4788     else
4789       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4790     fi
4791   else
4792     echo "$progname: failed program was:" >&5
4793     cat conftest.$ac_ext >&5
4794   fi
4795   rm -f conftest* conftst*
4796
4797   # Do not use the global_symbol_pipe unless it works.
4798   if test "$pipe_works" = yes; then
4799     break
4800   else
4801     lt_cv_sys_global_symbol_pipe=
4802   fi
4803 done
4804
4805 fi
4806
4807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4808   lt_cv_sys_global_symbol_to_cdecl=
4809 fi
4810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4811   echo "$as_me:$LINENO: result: failed" >&5
4812 echo "${ECHO_T}failed" >&6
4813 else
4814   echo "$as_me:$LINENO: result: ok" >&5
4815 echo "${ECHO_T}ok" >&6
4816 fi
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4836 if test "${enable_libtool_lock+set}" = set; then
4837   enableval="$enable_libtool_lock"
4838
4839 fi;
4840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4841
4842 # Some flags need to be propagated to the compiler or linker for good
4843 # libtool support.
4844 case $host in
4845 ia64-*-hpux*)
4846   # Find out which ABI we are using.
4847   echo 'int i;' > conftest.$ac_ext
4848   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849   (eval $ac_compile) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; then
4853     case `/usr/bin/file conftest.$ac_objext` in
4854       *ELF-32*)
4855         HPUX_IA64_MODE="32"
4856         ;;
4857       *ELF-64*)
4858         HPUX_IA64_MODE="64"
4859         ;;
4860     esac
4861   fi
4862   rm -rf conftest*
4863   ;;
4864 *-*-irix6*)
4865   # Find out which ABI we are using.
4866   echo '#line 4866 "configure"' > conftest.$ac_ext
4867   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; then
4872     if test "$lt_cv_prog_gnu_ld" = yes; then
4873       case `/usr/bin/file conftest.$ac_objext` in
4874         *32-bit*)
4875           LD="${LD-ld} -melf32bsmip"
4876           ;;
4877         *N32*)
4878           LD="${LD-ld} -melf32bmipn32"
4879           ;;
4880         *64-bit*)
4881           LD="${LD-ld} -melf64bmip"
4882         ;;
4883       esac
4884     else
4885       case `/usr/bin/file conftest.$ac_objext` in
4886         *32-bit*)
4887           LD="${LD-ld} -32"
4888           ;;
4889         *N32*)
4890           LD="${LD-ld} -n32"
4891           ;;
4892         *64-bit*)
4893           LD="${LD-ld} -64"
4894           ;;
4895       esac
4896     fi
4897   fi
4898   rm -rf conftest*
4899   ;;
4900
4901 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4902 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4903   # Find out which ABI we are using.
4904   echo 'int i;' > conftest.$ac_ext
4905   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906   (eval $ac_compile) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; then
4910     case `/usr/bin/file conftest.o` in
4911       *32-bit*)
4912         case $host in
4913           x86_64-*kfreebsd*-gnu)
4914             LD="${LD-ld} -m elf_i386_fbsd"
4915             ;;
4916           x86_64-*linux*)
4917             LD="${LD-ld} -m elf_i386"
4918             ;;
4919           ppc64-*linux*|powerpc64-*linux*)
4920             LD="${LD-ld} -m elf32ppclinux"
4921             ;;
4922           s390x-*linux*)
4923             LD="${LD-ld} -m elf_s390"
4924             ;;
4925           sparc64-*linux*)
4926             LD="${LD-ld} -m elf32_sparc"
4927             ;;
4928         esac
4929         ;;
4930       *64-bit*)
4931         case $host in
4932           x86_64-*kfreebsd*-gnu)
4933             LD="${LD-ld} -m elf_x86_64_fbsd"
4934             ;;
4935           x86_64-*linux*)
4936             LD="${LD-ld} -m elf_x86_64"
4937             ;;
4938           ppc*-*linux*|powerpc*-*linux*)
4939             LD="${LD-ld} -m elf64ppc"
4940             ;;
4941           s390*-*linux*|s390*-*tpf*)
4942             LD="${LD-ld} -m elf64_s390"
4943             ;;
4944           sparc*-*linux*)
4945             LD="${LD-ld} -m elf64_sparc"
4946             ;;
4947         esac
4948         ;;
4949     esac
4950   fi
4951   rm -rf conftest*
4952   ;;
4953
4954 *-*-sco3.2v5*)
4955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4956   SAVE_CFLAGS="$CFLAGS"
4957   CFLAGS="$CFLAGS -belf"
4958   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4959 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4960 if test "${lt_cv_cc_needs_belf+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969      cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h.  */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h.  */
4975
4976 int
4977 main ()
4978 {
4979
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986   (eval $ac_link) 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } &&
4993          { ac_try='test -z "$ac_c_werror_flag"
4994                          || test ! -s conftest.err'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; } &&
5000          { ac_try='test -s conftest$ac_exeext'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }; then
5006   lt_cv_cc_needs_belf=yes
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 lt_cv_cc_needs_belf=no
5012 fi
5013 rm -f conftest.err conftest.$ac_objext \
5014       conftest$ac_exeext conftest.$ac_ext
5015      ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021 fi
5022 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5023 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5024   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5025     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5026     CFLAGS="$SAVE_CFLAGS"
5027   fi
5028   ;;
5029 sparc*-*solaris*)
5030   # Find out which ABI we are using.
5031   echo 'int i;' > conftest.$ac_ext
5032   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033   (eval $ac_compile) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; then
5037     case `/usr/bin/file conftest.o` in
5038     *64-bit*)
5039       case $lt_cv_prog_gnu_ld in
5040       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5041       *)    LD="${LD-ld} -64" ;;
5042       esac
5043       ;;
5044     esac
5045   fi
5046   rm -rf conftest*
5047   ;;
5048 esac
5049
5050 need_locks="$enable_libtool_lock"
5051
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5059 # On Suns, sometimes $CPP names a directory.
5060 if test -n "$CPP" && test -d "$CPP"; then
5061   CPP=
5062 fi
5063 if test -z "$CPP"; then
5064   if test "${ac_cv_prog_CPP+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067       # Double quotes because CPP needs to be expanded
5068     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5069     do
5070       ac_preproc_ok=false
5071 for ac_c_preproc_warn_flag in '' yes
5072 do
5073   # Use a header file that comes with gcc, so configuring glibc
5074   # with a fresh cross-compiler works.
5075   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5076   # <limits.h> exists even on freestanding compilers.
5077   # On the NeXT, cc -E runs the code through the compiler's parser,
5078   # not just through cpp. "Syntax error" is here to catch this case.
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #ifdef __STDC__
5086 # include <limits.h>
5087 #else
5088 # include <assert.h>
5089 #endif
5090                      Syntax error
5091 _ACEOF
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094   ac_status=$?
5095   grep -v '^ *+' conftest.er1 >conftest.err
5096   rm -f conftest.er1
5097   cat conftest.err >&5
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } >/dev/null; then
5100   if test -s conftest.err; then
5101     ac_cpp_err=$ac_c_preproc_warn_flag
5102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5103   else
5104     ac_cpp_err=
5105   fi
5106 else
5107   ac_cpp_err=yes
5108 fi
5109 if test -z "$ac_cpp_err"; then
5110   :
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115   # Broken: fails on valid input.
5116 continue
5117 fi
5118 rm -f conftest.err conftest.$ac_ext
5119
5120   # OK, works on sane cases.  Now check whether non-existent headers
5121   # can be detected and how.
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #include <ac_nonexistent.h>
5129 _ACEOF
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5132   ac_status=$?
5133   grep -v '^ *+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } >/dev/null; then
5138   if test -s conftest.err; then
5139     ac_cpp_err=$ac_c_preproc_warn_flag
5140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5141   else
5142     ac_cpp_err=
5143   fi
5144 else
5145   ac_cpp_err=yes
5146 fi
5147 if test -z "$ac_cpp_err"; then
5148   # Broken: success on invalid input.
5149 continue
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154   # Passes both tests.
5155 ac_preproc_ok=:
5156 break
5157 fi
5158 rm -f conftest.err conftest.$ac_ext
5159
5160 done
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162 rm -f conftest.err conftest.$ac_ext
5163 if $ac_preproc_ok; then
5164   break
5165 fi
5166
5167     done
5168     ac_cv_prog_CPP=$CPP
5169
5170 fi
5171   CPP=$ac_cv_prog_CPP
5172 else
5173   ac_cv_prog_CPP=$CPP
5174 fi
5175 echo "$as_me:$LINENO: result: $CPP" >&5
5176 echo "${ECHO_T}$CPP" >&6
5177 ac_preproc_ok=false
5178 for ac_c_preproc_warn_flag in '' yes
5179 do
5180   # Use a header file that comes with gcc, so configuring glibc
5181   # with a fresh cross-compiler works.
5182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5183   # <limits.h> exists even on freestanding compilers.
5184   # On the NeXT, cc -E runs the code through the compiler's parser,
5185   # not just through cpp. "Syntax error" is here to catch this case.
5186   cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192 #ifdef __STDC__
5193 # include <limits.h>
5194 #else
5195 # include <assert.h>
5196 #endif
5197                      Syntax error
5198 _ACEOF
5199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } >/dev/null; then
5207   if test -s conftest.err; then
5208     ac_cpp_err=$ac_c_preproc_warn_flag
5209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210   else
5211     ac_cpp_err=
5212   fi
5213 else
5214   ac_cpp_err=yes
5215 fi
5216 if test -z "$ac_cpp_err"; then
5217   :
5218 else
5219   echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5221
5222   # Broken: fails on valid input.
5223 continue
5224 fi
5225 rm -f conftest.err conftest.$ac_ext
5226
5227   # OK, works on sane cases.  Now check whether non-existent headers
5228   # can be detected and how.
5229   cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h.  */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h.  */
5235 #include <ac_nonexistent.h>
5236 _ACEOF
5237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5239   ac_status=$?
5240   grep -v '^ *+' conftest.er1 >conftest.err
5241   rm -f conftest.er1
5242   cat conftest.err >&5
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } >/dev/null; then
5245   if test -s conftest.err; then
5246     ac_cpp_err=$ac_c_preproc_warn_flag
5247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5248   else
5249     ac_cpp_err=
5250   fi
5251 else
5252   ac_cpp_err=yes
5253 fi
5254 if test -z "$ac_cpp_err"; then
5255   # Broken: success on invalid input.
5256 continue
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261   # Passes both tests.
5262 ac_preproc_ok=:
5263 break
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266
5267 done
5268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5269 rm -f conftest.err conftest.$ac_ext
5270 if $ac_preproc_ok; then
5271   :
5272 else
5273   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5276 See \`config.log' for more details." >&2;}
5277    { (exit 1); exit 1; }; }
5278 fi
5279
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285
5286
5287 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5288 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5289 if test "${ac_cv_header_stdc+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 #include <stdlib.h>
5299 #include <stdarg.h>
5300 #include <string.h>
5301 #include <float.h>
5302
5303 int
5304 main ()
5305 {
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313   (eval $ac_compile) 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } &&
5320          { ac_try='test -z "$ac_c_werror_flag"
5321                          || test ! -s conftest.err'
5322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323   (eval $ac_try) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; } &&
5327          { ac_try='test -s conftest.$ac_objext'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; }; then
5333   ac_cv_header_stdc=yes
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 ac_cv_header_stdc=no
5339 fi
5340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5341
5342 if test $ac_cv_header_stdc = yes; then
5343   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5344   cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350 #include <string.h>
5351
5352 _ACEOF
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354   $EGREP "memchr" >/dev/null 2>&1; then
5355   :
5356 else
5357   ac_cv_header_stdc=no
5358 fi
5359 rm -f conftest*
5360
5361 fi
5362
5363 if test $ac_cv_header_stdc = yes; then
5364   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5365   cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371 #include <stdlib.h>
5372
5373 _ACEOF
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375   $EGREP "free" >/dev/null 2>&1; then
5376   :
5377 else
5378   ac_cv_header_stdc=no
5379 fi
5380 rm -f conftest*
5381
5382 fi
5383
5384 if test $ac_cv_header_stdc = yes; then
5385   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5386   if test "$cross_compiling" = yes; then
5387   :
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 #include <ctype.h>
5396 #if ((' ' & 0x0FF) == 0x020)
5397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5399 #else
5400 # define ISLOWER(c) \
5401                    (('a' <= (c) && (c) <= 'i') \
5402                      || ('j' <= (c) && (c) <= 'r') \
5403                      || ('s' <= (c) && (c) <= 'z'))
5404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5405 #endif
5406
5407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5408 int
5409 main ()
5410 {
5411   int i;
5412   for (i = 0; i < 256; i++)
5413     if (XOR (islower (i), ISLOWER (i))
5414         || toupper (i) != TOUPPER (i))
5415       exit(2);
5416   exit (0);
5417 }
5418 _ACEOF
5419 rm -f conftest$ac_exeext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5421   (eval $ac_link) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426   (eval $ac_try) 2>&5
5427   ac_status=$?
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); }; }; then
5430   :
5431 else
5432   echo "$as_me: program exited with status $ac_status" >&5
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ( exit $ac_status )
5437 ac_cv_header_stdc=no
5438 fi
5439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 fi
5442 fi
5443 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5444 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5445 if test $ac_cv_header_stdc = yes; then
5446
5447 cat >>confdefs.h <<\_ACEOF
5448 #define STDC_HEADERS 1
5449 _ACEOF
5450
5451 fi
5452
5453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5464                   inttypes.h stdint.h unistd.h
5465 do
5466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 echo "$as_me:$LINENO: checking for $ac_header" >&5
5468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 $ac_includes_default
5479
5480 #include <$ac_header>
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484   (eval $ac_compile) 2>conftest.er1
5485   ac_status=$?
5486   grep -v '^ *+' conftest.er1 >conftest.err
5487   rm -f conftest.er1
5488   cat conftest.err >&5
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -z "$ac_c_werror_flag"
5492                          || test ! -s conftest.err'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; } &&
5498          { ac_try='test -s conftest.$ac_objext'
5499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   eval "$as_ac_Header=yes"
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 eval "$as_ac_Header=no"
5510 fi
5511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5516   cat >>confdefs.h <<_ACEOF
5517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5518 _ACEOF
5519
5520 fi
5521
5522 done
5523
5524
5525
5526 for ac_header in dlfcn.h
5527 do
5528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5529 echo "$as_me:$LINENO: checking for $ac_header" >&5
5530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h.  */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h.  */
5540 $ac_includes_default
5541
5542 #include <$ac_header>
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546   (eval $ac_compile) 2>conftest.er1
5547   ac_status=$?
5548   grep -v '^ *+' conftest.er1 >conftest.err
5549   rm -f conftest.er1
5550   cat conftest.err >&5
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); } &&
5553          { ac_try='test -z "$ac_c_werror_flag"
5554                          || test ! -s conftest.err'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; } &&
5560          { ac_try='test -s conftest.$ac_objext'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566   eval "$as_ac_Header=yes"
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 eval "$as_ac_Header=no"
5572 fi
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5578   cat >>confdefs.h <<_ACEOF
5579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5580 _ACEOF
5581
5582 fi
5583
5584 done
5585
5586
5587
5588 # This can be used to rebuild libtool when needed
5589 LIBTOOL_DEPS="$ltmain"
5590
5591 # Always use our own libtool.
5592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 test -z "$LN_S" && LN_S="ln -s"
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 if test -n "${ZSH_VERSION+set}" ; then
5634    setopt NO_GLOB_SUBST
5635 fi
5636
5637 echo "$as_me:$LINENO: checking for objdir" >&5
5638 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5639 if test "${lt_cv_objdir+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   rm -f .libs 2>/dev/null
5643 mkdir .libs 2>/dev/null
5644 if test -d .libs; then
5645   lt_cv_objdir=.libs
5646 else
5647   # MS-DOS does not allow filenames that begin with a dot.
5648   lt_cv_objdir=_libs
5649 fi
5650 rmdir .libs 2>/dev/null
5651 fi
5652 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5653 echo "${ECHO_T}$lt_cv_objdir" >&6
5654 objdir=$lt_cv_objdir
5655
5656
5657
5658
5659
5660 cat >>confdefs.h <<_ACEOF
5661 #define LT_OBJDIR "$lt_cv_objdir/"
5662 _ACEOF
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 case $host_os in
5681 aix3*)
5682   # AIX sometimes has problems with the GCC collect2 program.  For some
5683   # reason, if we set the COLLECT_NAMES environment variable, the problems
5684   # vanish in a puff of smoke.
5685   if test "X${COLLECT_NAMES+set}" != Xset; then
5686     COLLECT_NAMES=
5687     export COLLECT_NAMES
5688   fi
5689   ;;
5690 esac
5691
5692 # Sed substitution that helps us do robust quoting.  It backslashifies
5693 # metacharacters that are still active within double-quoted strings.
5694 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5695
5696 # Same as above, but do not quote variable references.
5697 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5698
5699 # Sed substitution to delay expansion of an escaped shell variable in a
5700 # double_quote_subst'ed string.
5701 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5702
5703 # Sed substitution to delay expansion of an escaped single quote.
5704 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5705
5706 # Sed substitution to avoid accidental globbing in evaled expressions
5707 no_glob_subst='s/\*/\\\*/g'
5708
5709 # Global variables:
5710 ofile=libtool
5711 can_build_shared=yes
5712
5713 # All known linkers require a `.a' archive for static linking (except MSVC,
5714 # which needs '.lib').
5715 libext=a
5716
5717 with_gnu_ld="$lt_cv_prog_gnu_ld"
5718
5719 old_CC="$CC"
5720 old_CFLAGS="$CFLAGS"
5721
5722 # Set sane defaults for various variables
5723 test -z "$CC" && CC=cc
5724 test -z "$LTCC" && LTCC=$CC
5725 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5726 test -z "$LD" && LD=ld
5727 test -z "$ac_objext" && ac_objext=o
5728
5729 for cc_temp in $compiler""; do
5730   case $cc_temp in
5731     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5732     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5733     \-*) ;;
5734     *) break;;
5735   esac
5736 done
5737 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5738
5739
5740 # Only perform the check for file, if the check method requires it
5741 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5742 case $deplibs_check_method in
5743 file_magic*)
5744   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5745     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5746 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   case $MAGIC_CMD in
5751 [\\/*] |  ?:[\\/]*)
5752   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5753   ;;
5754 *)
5755   lt_save_MAGIC_CMD="$MAGIC_CMD"
5756   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5758   for ac_dir in $ac_dummy; do
5759     IFS="$lt_save_ifs"
5760     test -z "$ac_dir" && ac_dir=.
5761     if test -f $ac_dir/${ac_tool_prefix}file; then
5762       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5763       if test -n "$file_magic_test_file"; then
5764         case $deplibs_check_method in
5765         "file_magic "*)
5766           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5767           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5768           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5769             $EGREP "$file_magic_regex" > /dev/null; then
5770             :
5771           else
5772             cat <<_LT_EOF 1>&2
5773
5774 *** Warning: the command libtool uses to detect shared libraries,
5775 *** $file_magic_cmd, produces output that libtool cannot recognize.
5776 *** The result is that libtool may fail to recognize shared libraries
5777 *** as such.  This will affect the creation of libtool libraries that
5778 *** depend on shared libraries, but programs linked with such libtool
5779 *** libraries will work regardless of this problem.  Nevertheless, you
5780 *** may want to report the problem to your system manager and/or to
5781 *** bug-libtool@gnu.org
5782
5783 _LT_EOF
5784           fi ;;
5785         esac
5786       fi
5787       break
5788     fi
5789   done
5790   IFS="$lt_save_ifs"
5791   MAGIC_CMD="$lt_save_MAGIC_CMD"
5792   ;;
5793 esac
5794 fi
5795
5796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5797 if test -n "$MAGIC_CMD"; then
5798   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5799 echo "${ECHO_T}$MAGIC_CMD" >&6
5800 else
5801   echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5803 fi
5804
5805
5806
5807
5808
5809 if test -z "$lt_cv_path_MAGIC_CMD"; then
5810   if test -n "$ac_tool_prefix"; then
5811     echo "$as_me:$LINENO: checking for file" >&5
5812 echo $ECHO_N "checking for file... $ECHO_C" >&6
5813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   case $MAGIC_CMD in
5817 [\\/*] |  ?:[\\/]*)
5818   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5819   ;;
5820 *)
5821   lt_save_MAGIC_CMD="$MAGIC_CMD"
5822   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5824   for ac_dir in $ac_dummy; do
5825     IFS="$lt_save_ifs"
5826     test -z "$ac_dir" && ac_dir=.
5827     if test -f $ac_dir/file; then
5828       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5829       if test -n "$file_magic_test_file"; then
5830         case $deplibs_check_method in
5831         "file_magic "*)
5832           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5833           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5834           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5835             $EGREP "$file_magic_regex" > /dev/null; then
5836             :
5837           else
5838             cat <<_LT_EOF 1>&2
5839
5840 *** Warning: the command libtool uses to detect shared libraries,
5841 *** $file_magic_cmd, produces output that libtool cannot recognize.
5842 *** The result is that libtool may fail to recognize shared libraries
5843 *** as such.  This will affect the creation of libtool libraries that
5844 *** depend on shared libraries, but programs linked with such libtool
5845 *** libraries will work regardless of this problem.  Nevertheless, you
5846 *** may want to report the problem to your system manager and/or to
5847 *** bug-libtool@gnu.org
5848
5849 _LT_EOF
5850           fi ;;
5851         esac
5852       fi
5853       break
5854     fi
5855   done
5856   IFS="$lt_save_ifs"
5857   MAGIC_CMD="$lt_save_MAGIC_CMD"
5858   ;;
5859 esac
5860 fi
5861
5862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5863 if test -n "$MAGIC_CMD"; then
5864   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5865 echo "${ECHO_T}$MAGIC_CMD" >&6
5866 else
5867   echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871
5872   else
5873     MAGIC_CMD=:
5874   fi
5875 fi
5876
5877   fi
5878   ;;
5879 esac
5880
5881 # Use C for the default configuration in the libtool script
5882
5883 lt_save_CC="$CC"
5884 ac_ext=c
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890
5891 # Source file extension for C test sources.
5892 ac_ext=c
5893
5894 # Object file extension for compiled C test sources.
5895 objext=o
5896 objext=$objext
5897
5898 # Code to be used in simple compile tests
5899 lt_simple_compile_test_code="int some_variable = 0;"
5900
5901 # Code to be used in simple link tests
5902 lt_simple_link_test_code='int main(){return(0);}'
5903
5904
5905
5906
5907
5908
5909
5910 # If no C compiler was specified, use CC.
5911 LTCC=${LTCC-"$CC"}
5912
5913 # If no C compiler flags were specified, use CFLAGS.
5914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5915
5916 # Allow CC to be a program name with arguments.
5917 compiler=$CC
5918
5919 # Save the default compiler, since it gets overwritten when the other
5920 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5921 compiler_DEFAULT=$CC
5922
5923 # save warnings/boilerplate of simple test code
5924 ac_outfile=conftest.$ac_objext
5925 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5927 _lt_compiler_boilerplate=`cat conftest.err`
5928 $RM conftest*
5929
5930 ac_outfile=conftest.$ac_objext
5931 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5933 _lt_linker_boilerplate=`cat conftest.err`
5934 $RM conftest*
5935
5936
5937 ## CAVEAT EMPTOR:
5938 ## There is no encapsulation within the following macros, do not change
5939 ## the running order or otherwise move them around unless you know exactly
5940 ## what you are doing...
5941 if test -n "$compiler"; then
5942
5943 lt_prog_compiler_no_builtin_flag=
5944
5945 if test "$GCC" = yes; then
5946   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5947
5948   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5949 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5950 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   lt_cv_prog_compiler_rtti_exceptions=no
5954    ac_outfile=conftest.$ac_objext
5955    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5956    lt_compiler_flag="-fno-rtti -fno-exceptions"
5957    # Insert the option either (1) after the last *FLAGS variable, or
5958    # (2) before a word containing "conftest.", or (3) at the end.
5959    # Note that $ac_compile itself does not contain backslashes and begins
5960    # with a dollar sign (not a hyphen), so the echo should work correctly.
5961    # The option is referenced via a variable to avoid confusing sed.
5962    lt_compile=`echo "$ac_compile" | $SED \
5963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5965    -e 's:$: $lt_compiler_flag:'`
5966    (eval echo "\"\$as_me:5966: $lt_compile\"" >&5)
5967    (eval "$lt_compile" 2>conftest.err)
5968    ac_status=$?
5969    cat conftest.err >&5
5970    echo "$as_me:5970: \$? = $ac_status" >&5
5971    if (exit $ac_status) && test -s "$ac_outfile"; then
5972      # The compiler can only warn and ignore the option if not recognized
5973      # So say no if there are warnings other than the usual output.
5974      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5975      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5976      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5977        lt_cv_prog_compiler_rtti_exceptions=yes
5978      fi
5979    fi
5980    $RM conftest*
5981
5982 fi
5983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5984 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5985
5986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5987     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5988 else
5989     :
5990 fi
5991
5992 fi
5993
5994
5995
5996
5997
5998
5999   lt_prog_compiler_wl=
6000 lt_prog_compiler_pic=
6001 lt_prog_compiler_static=
6002
6003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6005
6006   if test "$GCC" = yes; then
6007     lt_prog_compiler_wl='-Wl,'
6008     lt_prog_compiler_static='-static'
6009
6010     case $host_os in
6011       aix*)
6012       # All AIX code is PIC.
6013       if test "$host_cpu" = ia64; then
6014         # AIX 5 now supports IA64 processor
6015         lt_prog_compiler_static='-Bstatic'
6016       fi
6017       ;;
6018
6019     amigaos*)
6020       if test "$host_cpu" = m68k; then
6021         # FIXME: we need at least 68020 code to build shared libraries, but
6022         # adding the `-m68020' flag to GCC prevents building anything better,
6023         # like `-m68040'.
6024         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6025       fi
6026       ;;
6027
6028     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6029       # PIC is the default for these OSes.
6030       ;;
6031
6032     mingw* | cygwin* | pw32* | os2*)
6033       # This hack is so that the source file can tell whether it is being
6034       # built for inclusion in a dll (and should export symbols for example).
6035       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6036       # (--disable-auto-import) libraries
6037       lt_prog_compiler_pic='-DDLL_EXPORT'
6038       ;;
6039
6040     darwin* | rhapsody*)
6041       # PIC is the default on this platform
6042       # Common symbols not allowed in MH_DYLIB files
6043       lt_prog_compiler_pic='-fno-common'
6044       ;;
6045
6046     hpux*)
6047       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6048       # not for PA HP-UX.
6049       case $host_cpu in
6050       hppa*64*|ia64*)
6051         # +Z the default
6052         ;;
6053       *)
6054         lt_prog_compiler_pic='-fPIC'
6055         ;;
6056       esac
6057       ;;
6058
6059     interix[3-9]*)
6060       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6061       # Instead, we relocate shared libraries at runtime.
6062       ;;
6063
6064     msdosdjgpp*)
6065       # Just because we use GCC doesn't mean we suddenly get shared libraries
6066       # on systems that don't support them.
6067       lt_prog_compiler_can_build_shared=no
6068       enable_shared=no
6069       ;;
6070
6071     *nto* | *qnx*)
6072       # QNX uses GNU C++, but need to define -shared option too, otherwise
6073       # it will coredump.
6074       lt_prog_compiler_pic='-fPIC -shared'
6075       ;;
6076
6077     sysv4*MP*)
6078       if test -d /usr/nec; then
6079         lt_prog_compiler_pic=-Kconform_pic
6080       fi
6081       ;;
6082
6083     *)
6084       lt_prog_compiler_pic='-fPIC'
6085       ;;
6086     esac
6087   else
6088     # PORTME Check for flag to pass linker flags through the system compiler.
6089     case $host_os in
6090     aix*)
6091       lt_prog_compiler_wl='-Wl,'
6092       if test "$host_cpu" = ia64; then
6093         # AIX 5 now supports IA64 processor
6094         lt_prog_compiler_static='-Bstatic'
6095       else
6096         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6097       fi
6098       ;;
6099     darwin*)
6100       # PIC is the default on this platform
6101       # Common symbols not allowed in MH_DYLIB files
6102       case $cc_basename in
6103       xlc*)
6104         lt_prog_compiler_pic='-qnocommon'
6105         lt_prog_compiler_wl='-Wl,'
6106         ;;
6107       esac
6108       ;;
6109
6110     mingw* | cygwin* | pw32* | os2*)
6111       # This hack is so that the source file can tell whether it is being
6112       # built for inclusion in a dll (and should export symbols for example).
6113       lt_prog_compiler_pic='-DDLL_EXPORT'
6114       ;;
6115
6116     hpux9* | hpux10* | hpux11*)
6117       lt_prog_compiler_wl='-Wl,'
6118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6119       # not for PA HP-UX.
6120       case $host_cpu in
6121       hppa*64*|ia64*)
6122         # +Z the default
6123         ;;
6124       *)
6125         lt_prog_compiler_pic='+Z'
6126         ;;
6127       esac
6128       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6129       lt_prog_compiler_static='${wl}-a ${wl}archive'
6130       ;;
6131
6132     irix5* | irix6* | nonstopux*)
6133       lt_prog_compiler_wl='-Wl,'
6134       # PIC (with -KPIC) is the default.
6135       lt_prog_compiler_static='-non_shared'
6136       ;;
6137
6138     linux* | k*bsd*-gnu)
6139       case $cc_basename in
6140       icc* | ecc*)
6141         lt_prog_compiler_wl='-Wl,'
6142         lt_prog_compiler_pic='-KPIC'
6143         lt_prog_compiler_static='-static'
6144         ;;
6145       pgcc* | pgf77* | pgf90* | pgf95*)
6146         # Portland Group compilers (*not* the Pentium gcc compiler,
6147         # which looks to be a dead project)
6148         lt_prog_compiler_wl='-Wl,'
6149         lt_prog_compiler_pic='-fpic'
6150         lt_prog_compiler_static='-Bstatic'
6151         ;;
6152       ccc*)
6153         lt_prog_compiler_wl='-Wl,'
6154         # All Alpha code is PIC.
6155         lt_prog_compiler_static='-non_shared'
6156         ;;
6157       *)
6158         case `$CC -V 2>&1 | sed 5q` in
6159         *Sun\ C*)
6160           # Sun C 5.9
6161           lt_prog_compiler_pic='-KPIC'
6162           lt_prog_compiler_static='-Bstatic'
6163           lt_prog_compiler_wl='-Wl,'
6164           ;;
6165         *Sun\ F*)
6166           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6167           lt_prog_compiler_pic='-KPIC'
6168           lt_prog_compiler_static='-Bstatic'
6169           lt_prog_compiler_wl=''
6170           ;;
6171         esac
6172         ;;
6173       esac
6174       ;;
6175
6176     newsos6)
6177       lt_prog_compiler_pic='-KPIC'
6178       lt_prog_compiler_static='-Bstatic'
6179       ;;
6180
6181     *nto* | *qnx*)
6182       # QNX uses GNU C++, but need to define -shared option too, otherwise
6183       # it will coredump.
6184       lt_prog_compiler_pic='-fPIC -shared'
6185       ;;
6186
6187     osf3* | osf4* | osf5*)
6188       lt_prog_compiler_wl='-Wl,'
6189       # All OSF/1 code is PIC.
6190       lt_prog_compiler_static='-non_shared'
6191       ;;
6192
6193     rdos*)
6194       lt_prog_compiler_static='-non_shared'
6195       ;;
6196
6197     solaris*)
6198       lt_prog_compiler_pic='-KPIC'
6199       lt_prog_compiler_static='-Bstatic'
6200       case $cc_basename in
6201       f77* | f90* | f95*)
6202         lt_prog_compiler_wl='-Qoption ld ';;
6203       *)
6204         lt_prog_compiler_wl='-Wl,';;
6205       esac
6206       ;;
6207
6208     sunos4*)
6209       lt_prog_compiler_wl='-Qoption ld '
6210       lt_prog_compiler_pic='-PIC'
6211       lt_prog_compiler_static='-Bstatic'
6212       ;;
6213
6214     sysv4 | sysv4.2uw2* | sysv4.3*)
6215       lt_prog_compiler_wl='-Wl,'
6216       lt_prog_compiler_pic='-KPIC'
6217       lt_prog_compiler_static='-Bstatic'
6218       ;;
6219
6220     sysv4*MP*)
6221       if test -d /usr/nec ;then
6222         lt_prog_compiler_pic='-Kconform_pic'
6223         lt_prog_compiler_static='-Bstatic'
6224       fi
6225       ;;
6226
6227     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6228       lt_prog_compiler_wl='-Wl,'
6229       lt_prog_compiler_pic='-KPIC'
6230       lt_prog_compiler_static='-Bstatic'
6231       ;;
6232
6233     unicos*)
6234       lt_prog_compiler_wl='-Wl,'
6235       lt_prog_compiler_can_build_shared=no
6236       ;;
6237
6238     uts4*)
6239       lt_prog_compiler_pic='-pic'
6240       lt_prog_compiler_static='-Bstatic'
6241       ;;
6242
6243     *)
6244       lt_prog_compiler_can_build_shared=no
6245       ;;
6246     esac
6247   fi
6248
6249 case $host_os in
6250   # For platforms which do not support PIC, -DPIC is meaningless:
6251   *djgpp*)
6252     lt_prog_compiler_pic=
6253     ;;
6254   *)
6255     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6256     ;;
6257 esac
6258 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6259 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6260
6261
6262
6263
6264
6265
6266 #
6267 # Check to make sure the PIC flag actually works.
6268 #
6269 if test -n "$lt_prog_compiler_pic"; then
6270   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6271 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6272 if test "${lt_prog_compiler_pic_works+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   lt_prog_compiler_pic_works=no
6276    ac_outfile=conftest.$ac_objext
6277    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6278    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6279    # Insert the option either (1) after the last *FLAGS variable, or
6280    # (2) before a word containing "conftest.", or (3) at the end.
6281    # Note that $ac_compile itself does not contain backslashes and begins
6282    # with a dollar sign (not a hyphen), so the echo should work correctly.
6283    # The option is referenced via a variable to avoid confusing sed.
6284    lt_compile=`echo "$ac_compile" | $SED \
6285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6287    -e 's:$: $lt_compiler_flag:'`
6288    (eval echo "\"\$as_me:6288: $lt_compile\"" >&5)
6289    (eval "$lt_compile" 2>conftest.err)
6290    ac_status=$?
6291    cat conftest.err >&5
6292    echo "$as_me:6292: \$? = $ac_status" >&5
6293    if (exit $ac_status) && test -s "$ac_outfile"; then
6294      # The compiler can only warn and ignore the option if not recognized
6295      # So say no if there are warnings other than the usual output.
6296      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6297      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6298      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6299        lt_prog_compiler_pic_works=yes
6300      fi
6301    fi
6302    $RM conftest*
6303
6304 fi
6305 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6306 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6307
6308 if test x"$lt_prog_compiler_pic_works" = xyes; then
6309     case $lt_prog_compiler_pic in
6310      "" | " "*) ;;
6311      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6312      esac
6313 else
6314     lt_prog_compiler_pic=
6315      lt_prog_compiler_can_build_shared=no
6316 fi
6317
6318 fi
6319
6320
6321
6322
6323
6324
6325 #
6326 # Check to make sure the static flag actually works.
6327 #
6328 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6329 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6330 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6331 if test "${lt_prog_compiler_static_works+set}" = set; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   lt_prog_compiler_static_works=no
6335    save_LDFLAGS="$LDFLAGS"
6336    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6337    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6338    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6339      # The linker can only warn and ignore the option if not recognized
6340      # So say no if there are warnings
6341      if test -s conftest.err; then
6342        # Append any errors to the config.log.
6343        cat conftest.err 1>&5
6344        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6345        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6346        if diff conftest.exp conftest.er2 >/dev/null; then
6347          lt_prog_compiler_static_works=yes
6348        fi
6349      else
6350        lt_prog_compiler_static_works=yes
6351      fi
6352    fi
6353    $RM conftest*
6354    LDFLAGS="$save_LDFLAGS"
6355
6356 fi
6357 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6358 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6359
6360 if test x"$lt_prog_compiler_static_works" = xyes; then
6361     :
6362 else
6363     lt_prog_compiler_static=
6364 fi
6365
6366
6367
6368
6369
6370
6371
6372   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6374 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   lt_cv_prog_compiler_c_o=no
6378    $RM -r conftest 2>/dev/null
6379    mkdir conftest
6380    cd conftest
6381    mkdir out
6382    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6383
6384    lt_compiler_flag="-o out/conftest2.$ac_objext"
6385    # Insert the option either (1) after the last *FLAGS variable, or
6386    # (2) before a word containing "conftest.", or (3) at the end.
6387    # Note that $ac_compile itself does not contain backslashes and begins
6388    # with a dollar sign (not a hyphen), so the echo should work correctly.
6389    lt_compile=`echo "$ac_compile" | $SED \
6390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6392    -e 's:$: $lt_compiler_flag:'`
6393    (eval echo "\"\$as_me:6393: $lt_compile\"" >&5)
6394    (eval "$lt_compile" 2>out/conftest.err)
6395    ac_status=$?
6396    cat out/conftest.err >&5
6397    echo "$as_me:6397: \$? = $ac_status" >&5
6398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6399    then
6400      # The compiler can only warn and ignore the option if not recognized
6401      # So say no if there are warnings
6402      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6405        lt_cv_prog_compiler_c_o=yes
6406      fi
6407    fi
6408    chmod u+w . 2>&5
6409    $RM conftest*
6410    # SGI C++ compiler will create directory out/ii_files/ for
6411    # template instantiation
6412    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6413    $RM out/* && rmdir out
6414    cd ..
6415    $RM -r conftest
6416    $RM conftest*
6417
6418 fi
6419 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6421
6422
6423
6424
6425
6426
6427   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6428 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6429 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   lt_cv_prog_compiler_c_o=no
6433    $RM -r conftest 2>/dev/null
6434    mkdir conftest
6435    cd conftest
6436    mkdir out
6437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6438
6439    lt_compiler_flag="-o out/conftest2.$ac_objext"
6440    # Insert the option either (1) after the last *FLAGS variable, or
6441    # (2) before a word containing "conftest.", or (3) at the end.
6442    # Note that $ac_compile itself does not contain backslashes and begins
6443    # with a dollar sign (not a hyphen), so the echo should work correctly.
6444    lt_compile=`echo "$ac_compile" | $SED \
6445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6447    -e 's:$: $lt_compiler_flag:'`
6448    (eval echo "\"\$as_me:6448: $lt_compile\"" >&5)
6449    (eval "$lt_compile" 2>out/conftest.err)
6450    ac_status=$?
6451    cat out/conftest.err >&5
6452    echo "$as_me:6452: \$? = $ac_status" >&5
6453    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6454    then
6455      # The compiler can only warn and ignore the option if not recognized
6456      # So say no if there are warnings
6457      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6458      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6459      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6460        lt_cv_prog_compiler_c_o=yes
6461      fi
6462    fi
6463    chmod u+w . 2>&5
6464    $RM conftest*
6465    # SGI C++ compiler will create directory out/ii_files/ for
6466    # template instantiation
6467    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6468    $RM out/* && rmdir out
6469    cd ..
6470    $RM -r conftest
6471    $RM conftest*
6472
6473 fi
6474 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6475 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6476
6477
6478
6479
6480 hard_links="nottested"
6481 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6482   # do not overwrite the value of need_locks provided by the user
6483   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6485   hard_links=yes
6486   $RM conftest*
6487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6488   touch conftest.a
6489   ln conftest.a conftest.b 2>&5 || hard_links=no
6490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6491   echo "$as_me:$LINENO: result: $hard_links" >&5
6492 echo "${ECHO_T}$hard_links" >&6
6493   if test "$hard_links" = no; then
6494     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6496     need_locks=warn
6497   fi
6498 else
6499   need_locks=no
6500 fi
6501
6502
6503
6504
6505
6506
6507   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6509
6510   runpath_var=
6511   allow_undefined_flag=
6512   always_export_symbols=no
6513   archive_cmds=
6514   archive_expsym_cmds=
6515   compiler_needs_object=no
6516   enable_shared_with_static_runtimes=no
6517   export_dynamic_flag_spec=
6518   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6519   hardcode_automatic=no
6520   hardcode_direct=no
6521   hardcode_direct_absolute=no
6522   hardcode_libdir_flag_spec=
6523   hardcode_libdir_flag_spec_ld=
6524   hardcode_libdir_separator=
6525   hardcode_minus_L=no
6526   hardcode_shlibpath_var=unsupported
6527   inherit_rpath=no
6528   link_all_deplibs=unknown
6529   module_cmds=
6530   module_expsym_cmds=
6531   old_archive_from_new_cmds=
6532   old_archive_from_expsyms_cmds=
6533   thread_safe_flag_spec=
6534   whole_archive_flag_spec=
6535   # include_expsyms should be a list of space-separated symbols to be *always*
6536   # included in the symbol list
6537   include_expsyms=
6538   # exclude_expsyms can be an extended regexp of symbols to exclude
6539   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6540   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6541   # as well as any symbol that contains `d'.
6542   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6543   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6544   # platforms (ab)use it in PIC code, but their linkers get confused if
6545   # the symbol is explicitly referenced.  Since portable code cannot
6546   # rely on this symbol name, it's probably fine to never include it in
6547   # preloaded symbol tables.
6548   extract_expsyms_cmds=
6549
6550   case $host_os in
6551   cygwin* | mingw* | pw32*)
6552     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6553     # When not using gcc, we currently assume that we are using
6554     # Microsoft Visual C++.
6555     if test "$GCC" != yes; then
6556       with_gnu_ld=no
6557     fi
6558     ;;
6559   interix*)
6560     # we just hope/assume this is gcc and not c89 (= MSVC++)
6561     with_gnu_ld=yes
6562     ;;
6563   openbsd*)
6564     with_gnu_ld=no
6565     ;;
6566   esac
6567
6568   ld_shlibs=yes
6569   if test "$with_gnu_ld" = yes; then
6570     # If archive_cmds runs LD, not CC, wlarc should be empty
6571     wlarc='${wl}'
6572
6573     # Set some defaults for GNU ld with shared library support. These
6574     # are reset later if shared libraries are not supported. Putting them
6575     # here allows them to be overridden if necessary.
6576     runpath_var=LD_RUN_PATH
6577     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6578     export_dynamic_flag_spec='${wl}--export-dynamic'
6579     # ancient GNU ld didn't support --whole-archive et. al.
6580     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6581       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6582     else
6583       whole_archive_flag_spec=
6584     fi
6585     supports_anon_versioning=no
6586     case `$LD -v 2>&1` in
6587       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6588       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6589       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6590       *\ 2.11.*) ;; # other 2.11 versions
6591       *) supports_anon_versioning=yes ;;
6592     esac
6593
6594     # See if GNU ld supports shared libraries.
6595     case $host_os in
6596     aix3* | aix4* | aix5*)
6597       # On AIX/PPC, the GNU linker is very broken
6598       if test "$host_cpu" != ia64; then
6599         ld_shlibs=no
6600         cat <<_LT_EOF 1>&2
6601
6602 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6603 *** to be unable to reliably create shared libraries on AIX.
6604 *** Therefore, libtool is disabling shared libraries support.  If you
6605 *** really care for shared libraries, you may want to modify your PATH
6606 *** so that a non-GNU linker is found, and then restart.
6607
6608 _LT_EOF
6609       fi
6610       ;;
6611
6612     amigaos*)
6613       if test "$host_cpu" = m68k; then
6614         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6615         hardcode_libdir_flag_spec='-L$libdir'
6616         hardcode_minus_L=yes
6617       fi
6618
6619       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6620       # that the semantics of dynamic libraries on AmigaOS, at least up
6621       # to version 4, is to share data among multiple programs linked
6622       # with the same dynamic library.  Since this doesn't match the
6623       # behavior of shared libraries on other platforms, we can't use
6624       # them.
6625       ld_shlibs=no
6626       ;;
6627
6628     beos*)
6629       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6630         allow_undefined_flag=unsupported
6631         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6632         # support --undefined.  This deserves some investigation.  FIXME
6633         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6634       else
6635         ld_shlibs=no
6636       fi
6637       ;;
6638
6639     cygwin* | mingw* | pw32*)
6640       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6641       # as there is no search path for DLLs.
6642       hardcode_libdir_flag_spec='-L$libdir'
6643       allow_undefined_flag=unsupported
6644       always_export_symbols=no
6645       enable_shared_with_static_runtimes=yes
6646       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6647
6648       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6649         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6650         # If the export-symbols file already is a .def file (1st line
6651         # is EXPORTS), use it as is; otherwise, prepend...
6652         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6653           cp $export_symbols $output_objdir/$soname.def;
6654         else
6655           echo EXPORTS > $output_objdir/$soname.def;
6656           cat $export_symbols >> $output_objdir/$soname.def;
6657         fi~
6658         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6659       else
6660         ld_shlibs=no
6661       fi
6662       ;;
6663
6664     interix[3-9]*)
6665       hardcode_direct=no
6666       hardcode_shlibpath_var=no
6667       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6668       export_dynamic_flag_spec='${wl}-E'
6669       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6670       # Instead, shared libraries are loaded at an image base (0x10000000 by
6671       # default) and relocated if they conflict, which is a slow very memory
6672       # consuming and fragmenting process.  To avoid this, we pick a random,
6673       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6674       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6675       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6676       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6677       ;;
6678
6679     gnu* | linux* | tpf* | k*bsd*-gnu)
6680       tmp_diet=no
6681       if test "$host_os" = linux-dietlibc; then
6682         case $cc_basename in
6683           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6684         esac
6685       fi
6686       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6687          && test "$tmp_diet" = no
6688       then
6689         tmp_addflag=
6690         case $cc_basename,$host_cpu in
6691         pgcc*)                          # Portland Group C compiler
6692           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6693           tmp_addflag=' $pic_flag'
6694           ;;
6695         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6696           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6697           tmp_addflag=' $pic_flag -Mnomain' ;;
6698         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6699           tmp_addflag=' -i_dynamic' ;;
6700         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6701           tmp_addflag=' -i_dynamic -nofor_main' ;;
6702         ifc* | ifort*)                  # Intel Fortran compiler
6703           tmp_addflag=' -nofor_main' ;;
6704         esac
6705         case `$CC -V 2>&1 | sed 5q` in
6706         *Sun\ C*)                       # Sun C 5.9
6707           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6708           compiler_needs_object=yes
6709           tmp_sharedflag='-G' ;;
6710         *Sun\ F*)                       # Sun Fortran 8.3
6711           tmp_sharedflag='-G' ;;
6712         *)
6713           tmp_sharedflag='-shared' ;;
6714         esac
6715         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6716
6717         if test "x$supports_anon_versioning" = xyes; then
6718           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6719             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6720             echo "local: *; };" >> $output_objdir/$libname.ver~
6721             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6722         fi
6723       else
6724         ld_shlibs=no
6725       fi
6726       ;;
6727
6728     netbsd*)
6729       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6730         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6731         wlarc=
6732       else
6733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6735       fi
6736       ;;
6737
6738     solaris*)
6739       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6740         ld_shlibs=no
6741         cat <<_LT_EOF 1>&2
6742
6743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6744 *** create shared libraries on Solaris systems.  Therefore, libtool
6745 *** is disabling shared libraries support.  We urge you to upgrade GNU
6746 *** binutils to release 2.9.1 or newer.  Another option is to modify
6747 *** your PATH or compiler configuration so that the native linker is
6748 *** used, and then restart.
6749
6750 _LT_EOF
6751       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754       else
6755         ld_shlibs=no
6756       fi
6757       ;;
6758
6759     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6760       case `$LD -v 2>&1` in
6761         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6762         ld_shlibs=no
6763         cat <<_LT_EOF 1>&2
6764
6765 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6766 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6767 *** is disabling shared libraries support.  We urge you to upgrade GNU
6768 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6769 *** your PATH or compiler configuration so that the native linker is
6770 *** used, and then restart.
6771
6772 _LT_EOF
6773         ;;
6774         *)
6775           # For security reasons, it is highly recommended that you always
6776           # use absolute paths for naming shared libraries, and exclude the
6777           # DT_RUNPATH tag from executables and libraries.  But doing so
6778           # requires that you compile everything twice, which is a pain.
6779           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6780             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6781             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6783           else
6784             ld_shlibs=no
6785           fi
6786         ;;
6787       esac
6788       ;;
6789
6790     sunos4*)
6791       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6792       wlarc=
6793       hardcode_direct=yes
6794       hardcode_shlibpath_var=no
6795       ;;
6796
6797     *)
6798       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6799         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6801       else
6802         ld_shlibs=no
6803       fi
6804       ;;
6805     esac
6806
6807     if test "$ld_shlibs" = no; then
6808       runpath_var=
6809       hardcode_libdir_flag_spec=
6810       export_dynamic_flag_spec=
6811       whole_archive_flag_spec=
6812     fi
6813   else
6814     # PORTME fill in a description of your system's linker (not GNU ld)
6815     case $host_os in
6816     aix3*)
6817       allow_undefined_flag=unsupported
6818       always_export_symbols=yes
6819       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6820       # Note: this linker hardcodes the directories in LIBPATH if there
6821       # are no directories specified by -L.
6822       hardcode_minus_L=yes
6823       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6824         # Neither direct hardcoding nor static linking is supported with a
6825         # broken collect2.
6826         hardcode_direct=unsupported
6827       fi
6828       ;;
6829
6830     aix4* | aix5*)
6831       if test "$host_cpu" = ia64; then
6832         # On IA64, the linker does run time linking by default, so we don't
6833         # have to do anything special.
6834         aix_use_runtimelinking=no
6835         exp_sym_flag='-Bexport'
6836         no_entry_flag=""
6837       else
6838         # If we're using GNU nm, then we don't want the "-C" option.
6839         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6840         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6841           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6842         else
6843           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6844         fi
6845         aix_use_runtimelinking=no
6846
6847         # Test if we are trying to use run time linking or normal
6848         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6849         # need to do runtime linking.
6850         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6851           for ld_flag in $LDFLAGS; do
6852           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6853             aix_use_runtimelinking=yes
6854             break
6855           fi
6856           done
6857           ;;
6858         esac
6859
6860         exp_sym_flag='-bexport'
6861         no_entry_flag='-bnoentry'
6862       fi
6863
6864       # When large executables or shared objects are built, AIX ld can
6865       # have problems creating the table of contents.  If linking a library
6866       # or program results in "error TOC overflow" add -mminimal-toc to
6867       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6868       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6869
6870       archive_cmds=''
6871       hardcode_direct=yes
6872       hardcode_direct_absolute=yes
6873       hardcode_libdir_separator=':'
6874       link_all_deplibs=yes
6875       file_list_spec='${wl}-f,'
6876
6877       if test "$GCC" = yes; then
6878         case $host_os in aix4.[012]|aix4.[012].*)
6879         # We only want to do this on AIX 4.2 and lower, the check
6880         # below for broken collect2 doesn't work under 4.3+
6881           collect2name=`${CC} -print-prog-name=collect2`
6882           if test -f "$collect2name" &&
6883            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6884           then
6885           # We have reworked collect2
6886           :
6887           else
6888           # We have old collect2
6889           hardcode_direct=unsupported
6890           # It fails to find uninstalled libraries when the uninstalled
6891           # path is not listed in the libpath.  Setting hardcode_minus_L
6892           # to unsupported forces relinking
6893           hardcode_minus_L=yes
6894           hardcode_libdir_flag_spec='-L$libdir'
6895           hardcode_libdir_separator=
6896           fi
6897           ;;
6898         esac
6899         shared_flag='-shared'
6900         if test "$aix_use_runtimelinking" = yes; then
6901           shared_flag="$shared_flag "'${wl}-G'
6902         fi
6903       else
6904         # not using gcc
6905         if test "$host_cpu" = ia64; then
6906         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6907         # chokes on -Wl,-G. The following line is correct:
6908           shared_flag='-G'
6909         else
6910           if test "$aix_use_runtimelinking" = yes; then
6911             shared_flag='${wl}-G'
6912           else
6913             shared_flag='${wl}-bM:SRE'
6914           fi
6915         fi
6916       fi
6917
6918       # It seems that -bexpall does not export symbols beginning with
6919       # underscore (_), so it is better to generate a list of symbols to export.
6920       always_export_symbols=yes
6921       if test "$aix_use_runtimelinking" = yes; then
6922         # Warning - without using the other runtime loading flags (-brtl),
6923         # -berok will link without error, but may produce a broken library.
6924         allow_undefined_flag='-berok'
6925         # Determine the default libpath from the value encoded in an
6926         # empty executable.
6927         cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933
6934 int
6935 main ()
6936 {
6937
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } &&
6951          { ac_try='test -z "$ac_c_werror_flag"
6952                          || test ! -s conftest.err'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; } &&
6958          { ac_try='test -s conftest$ac_exeext'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; }; then
6964
6965 lt_aix_libpath_sed='
6966     /Import File Strings/,/^$/ {
6967         /^0/ {
6968             s/^0  *\(.*\)$/\1/
6969             p
6970         }
6971     }'
6972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6973 # Check for a 64-bit object if we didn't find anything.
6974 if test -z "$aix_libpath"; then
6975   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6976 fi
6977 else
6978   echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6980
6981 fi
6982 rm -f conftest.err conftest.$ac_objext \
6983       conftest$ac_exeext conftest.$ac_ext
6984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6985
6986         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6987         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6988       else
6989         if test "$host_cpu" = ia64; then
6990           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6991           allow_undefined_flag="-z nodefs"
6992           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6993         else
6994          # Determine the default libpath from the value encoded in an
6995          # empty executable.
6996          cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002
7003 int
7004 main ()
7005 {
7006
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013   (eval $ac_link) 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -z "$ac_c_werror_flag"
7021                          || test ! -s conftest.err'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; } &&
7027          { ac_try='test -s conftest$ac_exeext'
7028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029   (eval $ac_try) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }; }; then
7033
7034 lt_aix_libpath_sed='
7035     /Import File Strings/,/^$/ {
7036         /^0/ {
7037             s/^0  *\(.*\)$/\1/
7038             p
7039         }
7040     }'
7041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7042 # Check for a 64-bit object if we didn't find anything.
7043 if test -z "$aix_libpath"; then
7044   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7045 fi
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 fi
7051 rm -f conftest.err conftest.$ac_objext \
7052       conftest$ac_exeext conftest.$ac_ext
7053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7054
7055          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7056           # Warning - without using the other run time loading flags,
7057           # -berok will link without error, but may produce a broken library.
7058           no_undefined_flag=' ${wl}-bernotok'
7059           allow_undefined_flag=' ${wl}-berok'
7060           # Exported symbols can be pulled into shared objects from archives
7061           whole_archive_flag_spec='$convenience'
7062           archive_cmds_need_lc=yes
7063           # This is similar to how AIX traditionally builds its shared libraries.
7064           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7065         fi
7066       fi
7067       ;;
7068
7069     amigaos*)
7070       if test "$host_cpu" = m68k; then
7071         archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7072         hardcode_libdir_flag_spec='-L$libdir'
7073         hardcode_minus_L=yes
7074       fi
7075       # see comment about different semantics on the GNU ld section
7076       ld_shlibs=no
7077       ;;
7078
7079     bsdi[45]*)
7080       export_dynamic_flag_spec=-rdynamic
7081       ;;
7082
7083     cygwin* | mingw* | pw32*)
7084       # When not using gcc, we currently assume that we are using
7085       # Microsoft Visual C++.
7086       # hardcode_libdir_flag_spec is actually meaningless, as there is
7087       # no search path for DLLs.
7088       hardcode_libdir_flag_spec=' '
7089       allow_undefined_flag=unsupported
7090       # Tell ltmain to make .lib files, not .a files.
7091       libext=lib
7092       # Tell ltmain to make .dll files, not .so files.
7093       shrext_cmds=".dll"
7094       # FIXME: Setting linknames here is a bad hack.
7095       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7096       # The linker will automatically build a .lib file if we build a DLL.
7097       old_archive_from_new_cmds='true'
7098       # FIXME: Should let the user specify the lib program.
7099       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7100       fix_srcfile_path='`cygpath -w "$srcfile"`'
7101       enable_shared_with_static_runtimes=yes
7102       ;;
7103
7104     darwin* | rhapsody*)
7105       case $host_os in
7106       rhapsody* | darwin1.[012])
7107         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7108         ;;
7109       *) # Darwin 1.3 on
7110         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7111         10.[012])
7112           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7113           ;;
7114         10.*)
7115           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7116           ;;
7117         esac
7118         ;;
7119       esac
7120       archive_cmds_need_lc=no
7121       hardcode_direct=no
7122       hardcode_automatic=yes
7123       hardcode_shlibpath_var=unsupported
7124       whole_archive_flag_spec=''
7125       link_all_deplibs=yes
7126       if test "$GCC" = yes ; then
7127         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   lt_cv_apple_cc_single_mod=no
7131         if test -z "${LT_MULTI_MODULE}"; then
7132           # By default we will add the -single_module flag. You can override
7133           # by either setting the environment variable LT_MULTI_MODULE
7134           # non-empty at configure time, or by adding -multi-module to the
7135           # link flags.
7136           echo "int foo(void){return 1;}" > conftest.c
7137           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138               -dynamiclib ${wl}-single_module conftest.c
7139           if test -f libconftest.dylib; then
7140               lt_cv_apple_cc_single_mod=yes
7141               rm libconftest.dylib
7142           fi
7143           rm conftest.$ac_ext
7144         fi
7145 fi
7146
7147         output_verbose_link_cmd=echo
7148         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7149           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7150           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7151         else
7152           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7154         fi
7155         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7156         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7157       else
7158         case $cc_basename in
7159         xlc*)
7160           output_verbose_link_cmd=echo
7161           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7162           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7163           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7164           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7165           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7166           ;;
7167         *)
7168           ld_shlibs=no
7169           ;;
7170         esac
7171       fi
7172       ;;
7173
7174     dgux*)
7175       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7176       hardcode_libdir_flag_spec='-L$libdir'
7177       hardcode_shlibpath_var=no
7178       ;;
7179
7180     freebsd1*)
7181       ld_shlibs=no
7182       ;;
7183
7184     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7185     # support.  Future versions do this automatically, but an explicit c++rt0.o
7186     # does not break anything, and helps significantly (at the cost of a little
7187     # extra space).
7188     freebsd2.2*)
7189       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7190       hardcode_libdir_flag_spec='-R$libdir'
7191       hardcode_direct=yes
7192       hardcode_shlibpath_var=no
7193       ;;
7194
7195     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7196     freebsd2*)
7197       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7198       hardcode_direct=yes
7199       hardcode_minus_L=yes
7200       hardcode_shlibpath_var=no
7201       ;;
7202
7203     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7204     freebsd* | dragonfly*)
7205       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7206       hardcode_libdir_flag_spec='-R$libdir'
7207       hardcode_direct=yes
7208       hardcode_shlibpath_var=no
7209       ;;
7210
7211     hpux9*)
7212       if test "$GCC" = yes; then
7213         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7214       else
7215         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7216       fi
7217       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7218       hardcode_libdir_separator=:
7219       hardcode_direct=yes
7220
7221       # hardcode_minus_L: Not really in the search PATH,
7222       # but as the default location of the library.
7223       hardcode_minus_L=yes
7224       export_dynamic_flag_spec='${wl}-E'
7225       ;;
7226
7227     hpux10*)
7228       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7229         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7230       else
7231         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7232       fi
7233       if test "$with_gnu_ld" = no; then
7234         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235         hardcode_libdir_flag_spec_ld='+b $libdir'
7236         hardcode_libdir_separator=:
7237         hardcode_direct=yes
7238         hardcode_direct_absolute=yes
7239         export_dynamic_flag_spec='${wl}-E'
7240         # hardcode_minus_L: Not really in the search PATH,
7241         # but as the default location of the library.
7242         hardcode_minus_L=yes
7243       fi
7244       ;;
7245
7246     hpux11*)
7247       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7248         case $host_cpu in
7249         hppa*64*)
7250           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7251           ;;
7252         ia64*)
7253           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7254           ;;
7255         *)
7256           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7257           ;;
7258         esac
7259       else
7260         case $host_cpu in
7261         hppa*64*)
7262           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7263           ;;
7264         ia64*)
7265           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7266           ;;
7267         *)
7268           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7269           ;;
7270         esac
7271       fi
7272       if test "$with_gnu_ld" = no; then
7273         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7274         hardcode_libdir_separator=:
7275
7276         case $host_cpu in
7277         hppa*64*|ia64*)
7278           hardcode_direct=no
7279           hardcode_shlibpath_var=no
7280           ;;
7281         *)
7282           hardcode_direct=yes
7283           hardcode_direct_absolute=yes
7284           export_dynamic_flag_spec='${wl}-E'
7285
7286           # hardcode_minus_L: Not really in the search PATH,
7287           # but as the default location of the library.
7288           hardcode_minus_L=yes
7289           ;;
7290         esac
7291       fi
7292       ;;
7293
7294     irix5* | irix6* | nonstopux*)
7295       if test "$GCC" = yes; then
7296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7297         # Try to use the -exported_symbol ld option, if it does not
7298         # work, assume that -exports_file does not work either and
7299         # implicitly export all symbols.
7300         save_LDFLAGS="$LDFLAGS"
7301         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7302         cat >conftest.$ac_ext <<_ACEOF
7303 int foo(void) {}
7304 _ACEOF
7305 rm -f conftest.$ac_objext conftest$ac_exeext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7307   (eval $ac_link) 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } &&
7314          { ac_try='test -z "$ac_c_werror_flag"
7315                          || test ! -s conftest.err'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; } &&
7321          { ac_try='test -s conftest$ac_exeext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7328
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 fi
7334 rm -f conftest.err conftest.$ac_objext \
7335       conftest$ac_exeext conftest.$ac_ext
7336         LDFLAGS="$save_LDFLAGS"
7337       else
7338         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7339         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7340       fi
7341       archive_cmds_need_lc='no'
7342       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7343       hardcode_libdir_separator=:
7344       inherit_rpath=yes
7345       link_all_deplibs=yes
7346       ;;
7347
7348     netbsd*)
7349       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7350         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7351       else
7352         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7353       fi
7354       hardcode_libdir_flag_spec='-R$libdir'
7355       hardcode_direct=yes
7356       hardcode_shlibpath_var=no
7357       ;;
7358
7359     newsos6)
7360       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361       hardcode_direct=yes
7362       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7363       hardcode_libdir_separator=:
7364       hardcode_shlibpath_var=no
7365       ;;
7366
7367     *nto* | *qnx*)
7368       ;;
7369
7370     openbsd*)
7371       hardcode_direct=yes
7372       hardcode_shlibpath_var=no
7373       hardcode_direct_absolute=yes
7374       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7375         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7376         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7377         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7378         export_dynamic_flag_spec='${wl}-E'
7379       else
7380         case $host_os in
7381         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7382           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7383           hardcode_libdir_flag_spec='-R$libdir'
7384           ;;
7385         *)
7386           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7387           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7388           ;;
7389         esac
7390       fi
7391       ;;
7392
7393     os2*)
7394       hardcode_libdir_flag_spec='-L$libdir'
7395       hardcode_minus_L=yes
7396       allow_undefined_flag=unsupported
7397       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7398       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7399       ;;
7400
7401     osf3*)
7402       if test "$GCC" = yes; then
7403         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7404         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7405       else
7406         allow_undefined_flag=' -expect_unresolved \*'
7407         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7408       fi
7409       archive_cmds_need_lc='no'
7410       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7411       hardcode_libdir_separator=:
7412       ;;
7413
7414     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7415       if test "$GCC" = yes; then
7416         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7417         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7418         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7419       else
7420         allow_undefined_flag=' -expect_unresolved \*'
7421         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7422         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7423         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7424
7425         # Both c and cxx compiler support -rpath directly
7426         hardcode_libdir_flag_spec='-rpath $libdir'
7427       fi
7428       archive_cmds_need_lc='no'
7429       hardcode_libdir_separator=:
7430       ;;
7431
7432     solaris*)
7433       no_undefined_flag=' -z defs'
7434       if test "$GCC" = yes; then
7435         wlarc='${wl}'
7436         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7437         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7438           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7439       else
7440         case `$CC -V 2>&1` in
7441         *"Compilers 5.0"*)
7442           wlarc=''
7443           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7445           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7446           ;;
7447         *)
7448           wlarc='${wl}'
7449           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7450           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7451           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7452           ;;
7453         esac
7454       fi
7455       hardcode_libdir_flag_spec='-R$libdir'
7456       hardcode_shlibpath_var=no
7457       case $host_os in
7458       solaris2.[0-5] | solaris2.[0-5].*) ;;
7459       *)
7460         # The compiler driver will combine and reorder linker options,
7461         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7462         # but is careful enough not to reorder.
7463         # Supported since Solaris 2.6 (maybe 2.5.1?)
7464         if test "$GCC" = yes; then
7465           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7466         else
7467           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7468         fi
7469         ;;
7470       esac
7471       link_all_deplibs=yes
7472       ;;
7473
7474     sunos4*)
7475       if test "x$host_vendor" = xsequent; then
7476         # Use $CC to link under sequent, because it throws in some extra .o
7477         # files that make .init and .fini sections work.
7478         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7479       else
7480         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7481       fi
7482       hardcode_libdir_flag_spec='-L$libdir'
7483       hardcode_direct=yes
7484       hardcode_minus_L=yes
7485       hardcode_shlibpath_var=no
7486       ;;
7487
7488     sysv4)
7489       case $host_vendor in
7490         sni)
7491           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7492           hardcode_direct=yes # is this really true???
7493         ;;
7494         siemens)
7495           ## LD is ld it makes a PLAMLIB
7496           ## CC just makes a GrossModule.
7497           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7498           reload_cmds='$CC -r -o $output$reload_objs'
7499           hardcode_direct=no
7500         ;;
7501         motorola)
7502           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7503           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7504         ;;
7505       esac
7506       runpath_var='LD_RUN_PATH'
7507       hardcode_shlibpath_var=no
7508       ;;
7509
7510     sysv4.3*)
7511       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512       hardcode_shlibpath_var=no
7513       export_dynamic_flag_spec='-Bexport'
7514       ;;
7515
7516     sysv4*MP*)
7517       if test -d /usr/nec; then
7518         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519         hardcode_shlibpath_var=no
7520         runpath_var=LD_RUN_PATH
7521         hardcode_runpath_var=yes
7522         ld_shlibs=yes
7523       fi
7524       ;;
7525
7526     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7527       no_undefined_flag='${wl}-z,text'
7528       archive_cmds_need_lc=no
7529       hardcode_shlibpath_var=no
7530       runpath_var='LD_RUN_PATH'
7531
7532       if test "$GCC" = yes; then
7533         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7534         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7535       else
7536         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7537         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7538       fi
7539       ;;
7540
7541     sysv5* | sco3.2v5* | sco5v6*)
7542       # Note: We can NOT use -z defs as we might desire, because we do not
7543       # link with -lc, and that would cause any symbols used from libc to
7544       # always be unresolved, which means just about no library would
7545       # ever link correctly.  If we're not using GNU ld we use -z text
7546       # though, which does catch some bad symbols but isn't as heavy-handed
7547       # as -z defs.
7548       no_undefined_flag='${wl}-z,text'
7549       allow_undefined_flag='${wl}-z,nodefs'
7550       archive_cmds_need_lc=no
7551       hardcode_shlibpath_var=no
7552       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7553       hardcode_libdir_separator=':'
7554       link_all_deplibs=yes
7555       export_dynamic_flag_spec='${wl}-Bexport'
7556       runpath_var='LD_RUN_PATH'
7557
7558       if test "$GCC" = yes; then
7559         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7560         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7561       else
7562         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7563         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7564       fi
7565       ;;
7566
7567     uts4*)
7568       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7569       hardcode_libdir_flag_spec='-L$libdir'
7570       hardcode_shlibpath_var=no
7571       ;;
7572
7573     *)
7574       ld_shlibs=no
7575       ;;
7576     esac
7577
7578     if test x$host_vendor = xsni; then
7579       case $host in
7580       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7581         export_dynamic_flag_spec='${wl}-Blargedynsym'
7582         ;;
7583       esac
7584     fi
7585   fi
7586
7587 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7588 echo "${ECHO_T}$ld_shlibs" >&6
7589 test "$ld_shlibs" = no && can_build_shared=no
7590
7591 with_gnu_ld=$with_gnu_ld
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 #
7608 # Do we need to explicitly link libc?
7609 #
7610 case "x$archive_cmds_need_lc" in
7611 x|xyes)
7612   # Assume -lc should be added
7613   archive_cmds_need_lc=yes
7614
7615   if test "$enable_shared" = yes && test "$GCC" = yes; then
7616     case $archive_cmds in
7617     *'~'*)
7618       # FIXME: we may have to deal with multi-command sequences.
7619       ;;
7620     '$CC '*)
7621       # Test whether the compiler implicitly links with -lc since on some
7622       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7623       # to ld, don't add -lc before -lgcc.
7624       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7625 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7626       $RM conftest*
7627       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7628
7629       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630   (eval $ac_compile) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } 2>conftest.err; then
7634         soname=conftest
7635         lib=conftest
7636         libobjs=conftest.$ac_objext
7637         deplibs=
7638         wl=$lt_prog_compiler_wl
7639         pic_flag=$lt_prog_compiler_pic
7640         compiler_flags=-v
7641         linker_flags=-v
7642         verstring=
7643         output_objdir=.
7644         libname=conftest
7645         lt_save_allow_undefined_flag=$allow_undefined_flag
7646         allow_undefined_flag=
7647         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7648   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }
7652         then
7653           archive_cmds_need_lc=no
7654         else
7655           archive_cmds_need_lc=yes
7656         fi
7657         allow_undefined_flag=$lt_save_allow_undefined_flag
7658       else
7659         cat conftest.err 1>&5
7660       fi
7661       $RM conftest*
7662       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7663 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7664       ;;
7665     esac
7666   fi
7667   ;;
7668 esac
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7827 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7828 withGCC=$GCC
7829 if test "$withGCC" = yes; then
7830   case $host_os in
7831     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7832     *) lt_awk_arg="/^libraries:/" ;;
7833   esac
7834   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7835   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7836     # if the path contains ";" then we assume it to be the separator
7837     # otherwise default to the standard path separator (i.e. ":") - it is
7838     # assumed that no part of a normal pathname contains ";" but that should
7839     # okay in the real world where ";" in dirpaths is itself problematic.
7840     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7841   else
7842     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7843   fi
7844   # Ok, now we have the path, separated by spaces, we can step through it
7845   # and add multilib dir if necessary.
7846   lt_tmp_lt_search_path_spec=
7847   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7848   for lt_sys_path in $lt_search_path_spec; do
7849     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7850       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7851     else
7852       test -d "$lt_sys_path" && \
7853         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7854     fi
7855   done
7856   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7857 BEGIN {RS=" "; FS="/|\n";} {
7858   lt_foo="";
7859   lt_count=0;
7860   for (lt_i = NF; lt_i > 0; lt_i--) {
7861     if ($lt_i != "" && $lt_i != ".") {
7862       if ($lt_i == "..") {
7863         lt_count++;
7864       } else {
7865         if (lt_count == 0) {
7866           lt_foo="/" $lt_i lt_foo;
7867         } else {
7868           lt_count--;
7869         }
7870       }
7871     }
7872   }
7873   if (lt_foo != "") { lt_freq[lt_foo]++; }
7874   if (lt_freq[lt_foo] == 1) { print lt_foo; }
7875 }'`
7876   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7877 else
7878   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7879 fi
7880 library_names_spec=
7881 libname_spec='lib$name'
7882 soname_spec=
7883 shrext_cmds=".so"
7884 postinstall_cmds=
7885 postuninstall_cmds=
7886 finish_cmds=
7887 finish_eval=
7888 shlibpath_var=
7889 shlibpath_overrides_runpath=unknown
7890 version_type=none
7891 dynamic_linker="$host_os ld.so"
7892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7893 need_lib_prefix=unknown
7894 hardcode_into_libs=no
7895
7896 # when you set need_version to no, make sure it does not cause -set_version
7897 # flags to be left without arguments
7898 need_version=unknown
7899
7900 case $host_os in
7901 aix3*)
7902   version_type=linux
7903   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7904   shlibpath_var=LIBPATH
7905
7906   # AIX 3 has no versioning support, so we append a major version to the name.
7907   soname_spec='${libname}${release}${shared_ext}$major'
7908   ;;
7909
7910 aix4* | aix5*)
7911   version_type=linux
7912   need_lib_prefix=no
7913   need_version=no
7914   hardcode_into_libs=yes
7915   if test "$host_cpu" = ia64; then
7916     # AIX 5 supports IA64
7917     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7918     shlibpath_var=LD_LIBRARY_PATH
7919   else
7920     # With GCC up to 2.95.x, collect2 would create an import file
7921     # for dependence libraries.  The import file would start with
7922     # the line `#! .'.  This would cause the generated library to
7923     # depend on `.', always an invalid library.  This was fixed in
7924     # development snapshots of GCC prior to 3.0.
7925     case $host_os in
7926       aix4 | aix4.[01] | aix4.[01].*)
7927       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7928            echo ' yes '
7929            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7930         :
7931       else
7932         can_build_shared=no
7933       fi
7934       ;;
7935     esac
7936     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7937     # soname into executable. Probably we can add versioning support to
7938     # collect2, so additional links can be useful in future.
7939     if test "$aix_use_runtimelinking" = yes; then
7940       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7941       # instead of lib<name>.a to let people know that these are not
7942       # typical AIX shared libraries.
7943       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7944     else
7945       # We preserve .a as extension for shared libraries through AIX4.2
7946       # and later when we are not doing run time linking.
7947       library_names_spec='${libname}${release}.a $libname.a'
7948       soname_spec='${libname}${release}${shared_ext}$major'
7949     fi
7950     shlibpath_var=LIBPATH
7951   fi
7952   ;;
7953
7954 amigaos*)
7955   if test "$host_cpu" = m68k; then
7956     library_names_spec='$libname.ixlibrary $libname.a'
7957     # Create ${libname}_ixlibrary.a entries in /sys/libs.
7958     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7959   else
7960     dynamic_linker=no
7961   fi
7962   ;;
7963
7964 beos*)
7965   library_names_spec='${libname}${shared_ext}'
7966   dynamic_linker="$host_os ld.so"
7967   shlibpath_var=LIBRARY_PATH
7968   ;;
7969
7970 bsdi[45]*)
7971   version_type=linux
7972   need_version=no
7973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7974   soname_spec='${libname}${release}${shared_ext}$major'
7975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7976   shlibpath_var=LD_LIBRARY_PATH
7977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7979   # the default ld.so.conf also contains /usr/contrib/lib and
7980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7981   # libtool to hard-code these into programs
7982   ;;
7983
7984 cygwin* | mingw* | pw32*)
7985   version_type=windows
7986   shrext_cmds=".dll"
7987   need_version=no
7988   need_lib_prefix=no
7989
7990   case $withGCC,$host_os in
7991   yes,cygwin* | yes,mingw* | yes,pw32*)
7992     library_names_spec='$libname.dll.a'
7993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7994     postinstall_cmds='base_file=`basename \${file}`~
7995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7996       dldir=$destdir/`dirname \$dlpath`~
7997       test -d \$dldir || mkdir -p \$dldir~
7998       $install_prog $dir/$dlname \$dldir/$dlname~
7999       chmod a+x \$dldir/$dlname~
8000       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8001         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8002       fi'
8003     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8004       dlpath=$dir/\$dldll~
8005        $RM \$dlpath'
8006     shlibpath_overrides_runpath=yes
8007
8008     case $host_os in
8009     cygwin*)
8010       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8011       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8013       ;;
8014     mingw*)
8015       # MinGW DLLs use traditional 'lib' prefix
8016       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8017       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8018       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8019         # It is most probably a Windows format PATH printed by
8020         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8021         # path with ; separators, and with drive letters. We can handle the
8022         # drive letters (cygwin fileutils understands them), so leave them,
8023         # especially as we might pass files found there to a mingw objdump,
8024         # which wouldn't understand a cygwinified path. Ahh.
8025         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8026       else
8027         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8028       fi
8029       ;;
8030     pw32*)
8031       # pw32 DLLs use 'pw' prefix rather than 'lib'
8032       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8033       ;;
8034     esac
8035     ;;
8036
8037   *)
8038     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8039     ;;
8040   esac
8041   dynamic_linker='Win32 ld.exe'
8042   # FIXME: first we should search . and the directory the executable is in
8043   shlibpath_var=PATH
8044   ;;
8045
8046 darwin* | rhapsody*)
8047   dynamic_linker="$host_os dyld"
8048   version_type=darwin
8049   need_lib_prefix=no
8050   need_version=no
8051   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8052   soname_spec='${libname}${release}${major}$shared_ext'
8053   shlibpath_overrides_runpath=yes
8054   shlibpath_var=DYLD_LIBRARY_PATH
8055   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8056
8057   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8058   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8059   ;;
8060
8061 dgux*)
8062   version_type=linux
8063   need_lib_prefix=no
8064   need_version=no
8065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8066   soname_spec='${libname}${release}${shared_ext}$major'
8067   shlibpath_var=LD_LIBRARY_PATH
8068   ;;
8069
8070 freebsd1*)
8071   dynamic_linker=no
8072   ;;
8073
8074 freebsd* | dragonfly*)
8075   # DragonFly does not have aout.  When/if they implement a new
8076   # versioning mechanism, adjust this.
8077   if test -x /usr/bin/objformat; then
8078     objformat=`/usr/bin/objformat`
8079   else
8080     case $host_os in
8081     freebsd[123]*) objformat=aout ;;
8082     *) objformat=elf ;;
8083     esac
8084   fi
8085   version_type=freebsd-$objformat
8086   case $version_type in
8087     freebsd-elf*)
8088       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8089       need_version=no
8090       need_lib_prefix=no
8091       ;;
8092     freebsd-*)
8093       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8094       need_version=yes
8095       ;;
8096   esac
8097   shlibpath_var=LD_LIBRARY_PATH
8098   case $host_os in
8099   freebsd2*)
8100     shlibpath_overrides_runpath=yes
8101     ;;
8102   freebsd3.[01]* | freebsdelf3.[01]*)
8103     shlibpath_overrides_runpath=yes
8104     hardcode_into_libs=yes
8105     ;;
8106   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8107   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8108     shlibpath_overrides_runpath=no
8109     hardcode_into_libs=yes
8110     ;;
8111   *) # from 4.6 on, and DragonFly
8112     shlibpath_overrides_runpath=yes
8113     hardcode_into_libs=yes
8114     ;;
8115   esac
8116   ;;
8117
8118 gnu*)
8119   version_type=linux
8120   need_lib_prefix=no
8121   need_version=no
8122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8123   soname_spec='${libname}${release}${shared_ext}$major'
8124   shlibpath_var=LD_LIBRARY_PATH
8125   hardcode_into_libs=yes
8126   ;;
8127
8128 hpux9* | hpux10* | hpux11*)
8129   # Give a soname corresponding to the major version so that dld.sl refuses to
8130   # link against other versions.
8131   version_type=sunos
8132   need_lib_prefix=no
8133   need_version=no
8134   case $host_cpu in
8135   ia64*)
8136     shrext_cmds='.so'
8137     hardcode_into_libs=yes
8138     dynamic_linker="$host_os dld.so"
8139     shlibpath_var=LD_LIBRARY_PATH
8140     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8142     soname_spec='${libname}${release}${shared_ext}$major'
8143     if test "X$HPUX_IA64_MODE" = X32; then
8144       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8145     else
8146       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8147     fi
8148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8149     ;;
8150   hppa*64*)
8151     shrext_cmds='.sl'
8152     hardcode_into_libs=yes
8153     dynamic_linker="$host_os dld.sl"
8154     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157     soname_spec='${libname}${release}${shared_ext}$major'
8158     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8159     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8160     ;;
8161   *)
8162     shrext_cmds='.sl'
8163     dynamic_linker="$host_os dld.sl"
8164     shlibpath_var=SHLIB_PATH
8165     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167     soname_spec='${libname}${release}${shared_ext}$major'
8168     ;;
8169   esac
8170   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8171   postinstall_cmds='chmod 555 $lib'
8172   ;;
8173
8174 interix[3-9]*)
8175   version_type=linux
8176   need_lib_prefix=no
8177   need_version=no
8178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8179   soname_spec='${libname}${release}${shared_ext}$major'
8180   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8181   shlibpath_var=LD_LIBRARY_PATH
8182   shlibpath_overrides_runpath=no
8183   hardcode_into_libs=yes
8184   ;;
8185
8186 irix5* | irix6* | nonstopux*)
8187   case $host_os in
8188     nonstopux*) version_type=nonstopux ;;
8189     *)
8190         if test "$lt_cv_prog_gnu_ld" = yes; then
8191                 version_type=linux
8192         else
8193                 version_type=irix
8194         fi ;;
8195   esac
8196   need_lib_prefix=no
8197   need_version=no
8198   soname_spec='${libname}${release}${shared_ext}$major'
8199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8200   case $host_os in
8201   irix5* | nonstopux*)
8202     libsuff= shlibsuff=
8203     ;;
8204   *)
8205     case $LD in # libtool.m4 will add one of these switches to LD
8206     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8207       libsuff= shlibsuff= libmagic=32-bit;;
8208     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8209       libsuff=32 shlibsuff=N32 libmagic=N32;;
8210     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8211       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8212     *) libsuff= shlibsuff= libmagic=never-match;;
8213     esac
8214     ;;
8215   esac
8216   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8217   shlibpath_overrides_runpath=no
8218   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8219   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8220   hardcode_into_libs=yes
8221   ;;
8222
8223 # No shared lib support for Linux oldld, aout, or coff.
8224 linux*oldld* | linux*aout* | linux*coff*)
8225   dynamic_linker=no
8226   ;;
8227
8228 # This must be Linux ELF.
8229 linux* | k*bsd*-gnu)
8230   version_type=linux
8231   need_lib_prefix=no
8232   need_version=no
8233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234   soname_spec='${libname}${release}${shared_ext}$major'
8235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   shlibpath_overrides_runpath=no
8238   # Some binutils ld are patched to set DT_RUNPATH
8239   save_LDFLAGS=$LDFLAGS
8240   save_libdir=$libdir
8241   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8242        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8243   cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249
8250 int
8251 main ()
8252 {
8253
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260   (eval $ac_link) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"
8268                          || test ! -s conftest.err'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; } &&
8274          { ac_try='test -s conftest$ac_exeext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8281   shlibpath_overrides_runpath=yes
8282 fi
8283
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 fi
8289 rm -f conftest.err conftest.$ac_objext \
8290       conftest$ac_exeext conftest.$ac_ext
8291   LDFLAGS=$save_LDFLAGS
8292   libdir=$save_libdir
8293
8294   # This implies no fast_install, which is unacceptable.
8295   # Some rework will be needed to allow for fast_install
8296   # before this can be enabled.
8297   hardcode_into_libs=yes
8298
8299   # Append ld.so.conf contents to the search path
8300   if test -f /etc/ld.so.conf; then
8301     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8302     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8303   fi
8304
8305   # We used to test for /lib/ld.so.1 and disable shared libraries on
8306   # powerpc, because MkLinux only supported shared libraries with the
8307   # GNU dynamic linker.  Since this was broken with cross compilers,
8308   # most powerpc-linux boxes support dynamic linking these days and
8309   # people can always --disable-shared, the test was removed, and we
8310   # assume the GNU/Linux dynamic linker is in use.
8311   dynamic_linker='GNU/Linux ld.so'
8312   ;;
8313
8314 netbsd*)
8315   version_type=sunos
8316   need_lib_prefix=no
8317   need_version=no
8318   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8321     dynamic_linker='NetBSD (a.out) ld.so'
8322   else
8323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8324     soname_spec='${libname}${release}${shared_ext}$major'
8325     dynamic_linker='NetBSD ld.elf_so'
8326   fi
8327   shlibpath_var=LD_LIBRARY_PATH
8328   shlibpath_overrides_runpath=yes
8329   hardcode_into_libs=yes
8330   ;;
8331
8332 newsos6)
8333   version_type=linux
8334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335   shlibpath_var=LD_LIBRARY_PATH
8336   shlibpath_overrides_runpath=yes
8337   ;;
8338
8339 *nto* | *qnx*)
8340   version_type=qnx
8341   need_lib_prefix=no
8342   need_version=no
8343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344   soname_spec='${libname}${release}${shared_ext}$major'
8345   shlibpath_var=LD_LIBRARY_PATH
8346   shlibpath_overrides_runpath=no
8347   hardcode_into_libs=yes
8348   dynamic_linker='ldqnx.so'
8349   ;;
8350
8351 openbsd*)
8352   version_type=sunos
8353   sys_lib_dlsearch_path_spec="/usr/lib"
8354   need_lib_prefix=no
8355   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8356   case $host_os in
8357     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8358     *)                          need_version=no  ;;
8359   esac
8360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8362   shlibpath_var=LD_LIBRARY_PATH
8363   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364     case $host_os in
8365       openbsd2.[89] | openbsd2.[89].*)
8366         shlibpath_overrides_runpath=no
8367         ;;
8368       *)
8369         shlibpath_overrides_runpath=yes
8370         ;;
8371       esac
8372   else
8373     shlibpath_overrides_runpath=yes
8374   fi
8375   ;;
8376
8377 os2*)
8378   libname_spec='$name'
8379   shrext_cmds=".dll"
8380   need_lib_prefix=no
8381   library_names_spec='$libname${shared_ext} $libname.a'
8382   dynamic_linker='OS/2 ld.exe'
8383   shlibpath_var=LIBPATH
8384   ;;
8385
8386 osf3* | osf4* | osf5*)
8387   version_type=osf
8388   need_lib_prefix=no
8389   need_version=no
8390   soname_spec='${libname}${release}${shared_ext}$major'
8391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392   shlibpath_var=LD_LIBRARY_PATH
8393   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8394   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8395   ;;
8396
8397 rdos*)
8398   dynamic_linker=no
8399   ;;
8400
8401 solaris*)
8402   version_type=linux
8403   need_lib_prefix=no
8404   need_version=no
8405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406   soname_spec='${libname}${release}${shared_ext}$major'
8407   shlibpath_var=LD_LIBRARY_PATH
8408   shlibpath_overrides_runpath=yes
8409   hardcode_into_libs=yes
8410   # ldd complains unless libraries are executable
8411   postinstall_cmds='chmod +x $lib'
8412   ;;
8413
8414 sunos4*)
8415   version_type=sunos
8416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8418   shlibpath_var=LD_LIBRARY_PATH
8419   shlibpath_overrides_runpath=yes
8420   if test "$with_gnu_ld" = yes; then
8421     need_lib_prefix=no
8422   fi
8423   need_version=yes
8424   ;;
8425
8426 sysv4 | sysv4.3*)
8427   version_type=linux
8428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8429   soname_spec='${libname}${release}${shared_ext}$major'
8430   shlibpath_var=LD_LIBRARY_PATH
8431   case $host_vendor in
8432     sni)
8433       shlibpath_overrides_runpath=no
8434       need_lib_prefix=no
8435       runpath_var=LD_RUN_PATH
8436       ;;
8437     siemens)
8438       need_lib_prefix=no
8439       ;;
8440     motorola)
8441       need_lib_prefix=no
8442       need_version=no
8443       shlibpath_overrides_runpath=no
8444       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8445       ;;
8446   esac
8447   ;;
8448
8449 sysv4*MP*)
8450   if test -d /usr/nec ;then
8451     version_type=linux
8452     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453     soname_spec='$libname${shared_ext}.$major'
8454     shlibpath_var=LD_LIBRARY_PATH
8455   fi
8456   ;;
8457
8458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8459   version_type=freebsd-elf
8460   need_lib_prefix=no
8461   need_version=no
8462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8463   soname_spec='${libname}${release}${shared_ext}$major'
8464   shlibpath_var=LD_LIBRARY_PATH
8465   shlibpath_overrides_runpath=yes
8466   hardcode_into_libs=yes
8467   if test "$with_gnu_ld" = yes; then
8468     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8469   else
8470     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8471     case $host_os in
8472       sco3.2v5*)
8473         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8474         ;;
8475     esac
8476   fi
8477   sys_lib_dlsearch_path_spec='/usr/lib'
8478   ;;
8479
8480 tpf*)
8481   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8482   version_type=linux
8483   need_lib_prefix=no
8484   need_version=no
8485   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486   shlibpath_var=LD_LIBRARY_PATH
8487   shlibpath_overrides_runpath=no
8488   hardcode_into_libs=yes
8489   ;;
8490
8491 uts4*)
8492   version_type=linux
8493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494   soname_spec='${libname}${release}${shared_ext}$major'
8495   shlibpath_var=LD_LIBRARY_PATH
8496   ;;
8497
8498 *)
8499   dynamic_linker=no
8500   ;;
8501 esac
8502 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8503 echo "${ECHO_T}$dynamic_linker" >&6
8504 test "$dynamic_linker" = no && can_build_shared=no
8505
8506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8507 if test "$GCC" = yes; then
8508   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8509 fi
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8599 hardcode_action=
8600 if test -n "$hardcode_libdir_flag_spec" ||
8601    test -n "$runpath_var" ||
8602    test "X$hardcode_automatic" = "Xyes" ; then
8603
8604   # We can hardcode non-existent directories.
8605   if test "$hardcode_direct" != no &&
8606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8607      # have to relink, otherwise we might link with an installed library
8608      # when we should be linking with a yet-to-be-installed one
8609      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8610      test "$hardcode_minus_L" != no; then
8611     # Linking always hardcodes the temporary library directory.
8612     hardcode_action=relink
8613   else
8614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8615     hardcode_action=immediate
8616   fi
8617 else
8618   # We cannot hardcode anything, or else we can only hardcode existing
8619   # directories.
8620   hardcode_action=unsupported
8621 fi
8622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8623 echo "${ECHO_T}$hardcode_action" >&6
8624
8625 if test "$hardcode_action" = relink ||
8626    test "$inherit_rpath" = yes; then
8627   # Fast installation is not supported
8628   enable_fast_install=no
8629 elif test "$shlibpath_overrides_runpath" = yes ||
8630      test "$enable_shared" = no; then
8631   # Fast installation is not necessary
8632   enable_fast_install=needless
8633 fi
8634
8635
8636
8637
8638
8639
8640   if test "x$enable_dlopen" != xyes; then
8641   enable_dlopen=unknown
8642   enable_dlopen_self=unknown
8643   enable_dlopen_self_static=unknown
8644 else
8645   lt_cv_dlopen=no
8646   lt_cv_dlopen_libs=
8647
8648   case $host_os in
8649   beos*)
8650     lt_cv_dlopen="load_add_on"
8651     lt_cv_dlopen_libs=
8652     lt_cv_dlopen_self=yes
8653     ;;
8654
8655   mingw* | pw32*)
8656     lt_cv_dlopen="LoadLibrary"
8657     lt_cv_dlopen_libs=
8658     ;;
8659
8660   cygwin*)
8661     lt_cv_dlopen="dlopen"
8662     lt_cv_dlopen_libs=
8663     ;;
8664
8665   darwin*)
8666   # if libdl is installed we need to link against it
8667     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-ldl  $LIBS"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680
8681 /* Override any gcc2 internal prototype to avoid an error.  */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char dlopen ();
8688 int
8689 main ()
8690 {
8691 dlopen ();
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698   (eval $ac_link) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"
8706                          || test ! -s conftest.err'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; } &&
8712          { ac_try='test -s conftest$ac_exeext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_cv_lib_dl_dlopen=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_cv_lib_dl_dlopen=no
8724 fi
8725 rm -f conftest.err conftest.$ac_objext \
8726       conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8728 fi
8729 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8731 if test $ac_cv_lib_dl_dlopen = yes; then
8732   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8733 else
8734
8735     lt_cv_dlopen="dyld"
8736     lt_cv_dlopen_libs=
8737     lt_cv_dlopen_self=yes
8738
8739 fi
8740
8741     ;;
8742
8743   *)
8744     echo "$as_me:$LINENO: checking for shl_load" >&5
8745 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8746 if test "${ac_cv_func_shl_load+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8757 #define shl_load innocuous_shl_load
8758
8759 /* System header to define __stub macros and hopefully few prototypes,
8760     which can conflict with char shl_load (); below.
8761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762     <limits.h> exists even on freestanding compilers.  */
8763
8764 #ifdef __STDC__
8765 # include <limits.h>
8766 #else
8767 # include <assert.h>
8768 #endif
8769
8770 #undef shl_load
8771
8772 /* Override any gcc2 internal prototype to avoid an error.  */
8773 #ifdef __cplusplus
8774 extern "C"
8775 {
8776 #endif
8777 /* We use char because int might match the return type of a gcc2
8778    builtin and then its argument prototype would still apply.  */
8779 char shl_load ();
8780 /* The GNU C library defines this for functions which it implements
8781     to always fail with ENOSYS.  Some functions are actually named
8782     something starting with __ and the normal name is an alias.  */
8783 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8784 choke me
8785 #else
8786 char (*f) () = shl_load;
8787 #endif
8788 #ifdef __cplusplus
8789 }
8790 #endif
8791
8792 int
8793 main ()
8794 {
8795 return f != shl_load;
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802   (eval $ac_link) 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -z "$ac_c_werror_flag"
8810                          || test ! -s conftest.err'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; } &&
8816          { ac_try='test -s conftest$ac_exeext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_func_shl_load=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_cv_func_shl_load=no
8828 fi
8829 rm -f conftest.err conftest.$ac_objext \
8830       conftest$ac_exeext conftest.$ac_ext
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8833 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8834 if test $ac_cv_func_shl_load = yes; then
8835   lt_cv_dlopen="shl_load"
8836 else
8837   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-ldld  $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850
8851 /* Override any gcc2 internal prototype to avoid an error.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 /* We use char because int might match the return type of a gcc2
8856    builtin and then its argument prototype would still apply.  */
8857 char shl_load ();
8858 int
8859 main ()
8860 {
8861 shl_load ();
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868   (eval $ac_link) 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -z "$ac_c_werror_flag"
8876                          || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest$ac_exeext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_lib_dld_shl_load=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 ac_cv_lib_dld_shl_load=no
8894 fi
8895 rm -f conftest.err conftest.$ac_objext \
8896       conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8898 fi
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8901 if test $ac_cv_lib_dld_shl_load = yes; then
8902   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8903 else
8904   echo "$as_me:$LINENO: checking for dlopen" >&5
8905 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8906 if test "${ac_cv_func_dlopen+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8917 #define dlopen innocuous_dlopen
8918
8919 /* System header to define __stub macros and hopefully few prototypes,
8920     which can conflict with char dlopen (); below.
8921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8922     <limits.h> exists even on freestanding compilers.  */
8923
8924 #ifdef __STDC__
8925 # include <limits.h>
8926 #else
8927 # include <assert.h>
8928 #endif
8929
8930 #undef dlopen
8931
8932 /* Override any gcc2 internal prototype to avoid an error.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 {
8936 #endif
8937 /* We use char because int might match the return type of a gcc2
8938    builtin and then its argument prototype would still apply.  */
8939 char dlopen ();
8940 /* The GNU C library defines this for functions which it implements
8941     to always fail with ENOSYS.  Some functions are actually named
8942     something starting with __ and the normal name is an alias.  */
8943 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8944 choke me
8945 #else
8946 char (*f) () = dlopen;
8947 #endif
8948 #ifdef __cplusplus
8949 }
8950 #endif
8951
8952 int
8953 main ()
8954 {
8955 return f != dlopen;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"
8970                          || test ! -s conftest.err'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_func_dlopen=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_func_dlopen=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext \
8990       conftest$ac_exeext conftest.$ac_ext
8991 fi
8992 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8993 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8994 if test $ac_cv_func_dlopen = yes; then
8995   lt_cv_dlopen="dlopen"
8996 else
8997   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8998 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-ldl  $LIBS"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010
9011 /* Override any gcc2 internal prototype to avoid an error.  */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 /* We use char because int might match the return type of a gcc2
9016    builtin and then its argument prototype would still apply.  */
9017 char dlopen ();
9018 int
9019 main ()
9020 {
9021 dlopen ();
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028   (eval $ac_link) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag"
9036                          || test ! -s conftest.err'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; } &&
9042          { ac_try='test -s conftest$ac_exeext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   ac_cv_lib_dl_dlopen=yes
9049 else
9050   echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 ac_cv_lib_dl_dlopen=no
9054 fi
9055 rm -f conftest.err conftest.$ac_objext \
9056       conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9060 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9061 if test $ac_cv_lib_dl_dlopen = yes; then
9062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9063 else
9064   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9065 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9066 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lsvld  $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077
9078 /* Override any gcc2 internal prototype to avoid an error.  */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 /* We use char because int might match the return type of a gcc2
9083    builtin and then its argument prototype would still apply.  */
9084 char dlopen ();
9085 int
9086 main ()
9087 {
9088 dlopen ();
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095   (eval $ac_link) 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } &&
9102          { ac_try='test -z "$ac_c_werror_flag"
9103                          || test ! -s conftest.err'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; } &&
9109          { ac_try='test -s conftest$ac_exeext'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   ac_cv_lib_svld_dlopen=yes
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_cv_lib_svld_dlopen=no
9121 fi
9122 rm -f conftest.err conftest.$ac_objext \
9123       conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9125 fi
9126 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9127 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9128 if test $ac_cv_lib_svld_dlopen = yes; then
9129   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9130 else
9131   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136   ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-ldld  $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144
9145 /* Override any gcc2 internal prototype to avoid an error.  */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 /* We use char because int might match the return type of a gcc2
9150    builtin and then its argument prototype would still apply.  */
9151 char dld_link ();
9152 int
9153 main ()
9154 {
9155 dld_link ();
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162   (eval $ac_link) 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -z "$ac_c_werror_flag"
9170                          || test ! -s conftest.err'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; } &&
9176          { ac_try='test -s conftest$ac_exeext'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; }; then
9182   ac_cv_lib_dld_dld_link=yes
9183 else
9184   echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 ac_cv_lib_dld_dld_link=no
9188 fi
9189 rm -f conftest.err conftest.$ac_objext \
9190       conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9192 fi
9193 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9194 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9195 if test $ac_cv_lib_dld_dld_link = yes; then
9196   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9197 fi
9198
9199
9200 fi
9201
9202
9203 fi
9204
9205
9206 fi
9207
9208
9209 fi
9210
9211
9212 fi
9213
9214     ;;
9215   esac
9216
9217   if test "x$lt_cv_dlopen" != xno; then
9218     enable_dlopen=yes
9219   else
9220     enable_dlopen=no
9221   fi
9222
9223   case $lt_cv_dlopen in
9224   dlopen)
9225     save_CPPFLAGS="$CPPFLAGS"
9226     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9227
9228     save_LDFLAGS="$LDFLAGS"
9229     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9230
9231     save_LIBS="$LIBS"
9232     LIBS="$lt_cv_dlopen_libs $LIBS"
9233
9234     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9235 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9236 if test "${lt_cv_dlopen_self+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239           if test "$cross_compiling" = yes; then :
9240   lt_cv_dlopen_self=cross
9241 else
9242   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9243   lt_status=$lt_dlunknown
9244   cat > conftest.$ac_ext <<_LT_EOF
9245 #line 9245 "configure"
9246 #include "confdefs.h"
9247
9248 #if HAVE_DLFCN_H
9249 #include <dlfcn.h>
9250 #endif
9251
9252 #include <stdio.h>
9253
9254 #ifdef RTLD_GLOBAL
9255 #  define LT_DLGLOBAL           RTLD_GLOBAL
9256 #else
9257 #  ifdef DL_GLOBAL
9258 #    define LT_DLGLOBAL         DL_GLOBAL
9259 #  else
9260 #    define LT_DLGLOBAL         0
9261 #  endif
9262 #endif
9263
9264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9265    find out it does not work in some platform. */
9266 #ifndef LT_DLLAZY_OR_NOW
9267 #  ifdef RTLD_LAZY
9268 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9269 #  else
9270 #    ifdef DL_LAZY
9271 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9272 #    else
9273 #      ifdef RTLD_NOW
9274 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9275 #      else
9276 #        ifdef DL_NOW
9277 #          define LT_DLLAZY_OR_NOW      DL_NOW
9278 #        else
9279 #          define LT_DLLAZY_OR_NOW      0
9280 #        endif
9281 #      endif
9282 #    endif
9283 #  endif
9284 #endif
9285
9286 #ifdef __cplusplus
9287 extern "C" void exit (int);
9288 #endif
9289
9290 void fnord() { int i=42;}
9291 int main ()
9292 {
9293   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9294   int status = $lt_dlunknown;
9295
9296   if (self)
9297     {
9298       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9299       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9300       /* dlclose (self); */
9301     }
9302   else
9303     puts (dlerror ());
9304
9305     exit (status);
9306 }
9307 _LT_EOF
9308   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309   (eval $ac_link) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9313     (./conftest; exit; ) >&5 2>/dev/null
9314     lt_status=$?
9315     case x$lt_status in
9316       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9317       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9318       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9319     esac
9320   else :
9321     # compilation failed
9322     lt_cv_dlopen_self=no
9323   fi
9324 fi
9325 rm -fr conftest*
9326
9327
9328 fi
9329 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9330 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9331
9332     if test "x$lt_cv_dlopen_self" = xyes; then
9333       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9334       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9335 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9336 if test "${lt_cv_dlopen_self_static+set}" = set; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339           if test "$cross_compiling" = yes; then :
9340   lt_cv_dlopen_self_static=cross
9341 else
9342   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9343   lt_status=$lt_dlunknown
9344   cat > conftest.$ac_ext <<_LT_EOF
9345 #line 9345 "configure"
9346 #include "confdefs.h"
9347
9348 #if HAVE_DLFCN_H
9349 #include <dlfcn.h>
9350 #endif
9351
9352 #include <stdio.h>
9353
9354 #ifdef RTLD_GLOBAL
9355 #  define LT_DLGLOBAL           RTLD_GLOBAL
9356 #else
9357 #  ifdef DL_GLOBAL
9358 #    define LT_DLGLOBAL         DL_GLOBAL
9359 #  else
9360 #    define LT_DLGLOBAL         0
9361 #  endif
9362 #endif
9363
9364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9365    find out it does not work in some platform. */
9366 #ifndef LT_DLLAZY_OR_NOW
9367 #  ifdef RTLD_LAZY
9368 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9369 #  else
9370 #    ifdef DL_LAZY
9371 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9372 #    else
9373 #      ifdef RTLD_NOW
9374 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9375 #      else
9376 #        ifdef DL_NOW
9377 #          define LT_DLLAZY_OR_NOW      DL_NOW
9378 #        else
9379 #          define LT_DLLAZY_OR_NOW      0
9380 #        endif
9381 #      endif
9382 #    endif
9383 #  endif
9384 #endif
9385
9386 #ifdef __cplusplus
9387 extern "C" void exit (int);
9388 #endif
9389
9390 void fnord() { int i=42;}
9391 int main ()
9392 {
9393   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9394   int status = $lt_dlunknown;
9395
9396   if (self)
9397     {
9398       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9399       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9400       /* dlclose (self); */
9401     }
9402   else
9403     puts (dlerror ());
9404
9405     exit (status);
9406 }
9407 _LT_EOF
9408   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9413     (./conftest; exit; ) >&5 2>/dev/null
9414     lt_status=$?
9415     case x$lt_status in
9416       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9417       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9418       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9419     esac
9420   else :
9421     # compilation failed
9422     lt_cv_dlopen_self_static=no
9423   fi
9424 fi
9425 rm -fr conftest*
9426
9427
9428 fi
9429 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9430 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9431     fi
9432
9433     CPPFLAGS="$save_CPPFLAGS"
9434     LDFLAGS="$save_LDFLAGS"
9435     LIBS="$save_LIBS"
9436     ;;
9437   esac
9438
9439   case $lt_cv_dlopen_self in
9440   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9441   *) enable_dlopen_self=unknown ;;
9442   esac
9443
9444   case $lt_cv_dlopen_self_static in
9445   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9446   *) enable_dlopen_self_static=unknown ;;
9447   esac
9448 fi
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 striplib=
9467 old_striplib=
9468 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9469 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9470 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9471   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9472   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9473   echo "$as_me:$LINENO: result: yes" >&5
9474 echo "${ECHO_T}yes" >&6
9475 else
9476 # FIXME - insert some real tests, host_os isn't really good enough
9477   case $host_os in
9478   darwin*)
9479     if test -n "$STRIP" ; then
9480       striplib="$STRIP -x"
9481       old_striplib="$STRIP -S"
9482       echo "$as_me:$LINENO: result: yes" >&5
9483 echo "${ECHO_T}yes" >&6
9484     else
9485       echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6
9487     fi
9488     ;;
9489   *)
9490     echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6
9492     ;;
9493   esac
9494 fi
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507   # Report which library types will actually be built
9508   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9509 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9510   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9511 echo "${ECHO_T}$can_build_shared" >&6
9512
9513   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9514 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9515   test "$can_build_shared" = "no" && enable_shared=no
9516
9517   # On AIX, shared libraries and static libraries use the same namespace, and
9518   # are all built from PIC.
9519   case $host_os in
9520   aix3*)
9521     test "$enable_shared" = yes && enable_static=no
9522     if test -n "$RANLIB"; then
9523       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9524       postinstall_cmds='$RANLIB $lib'
9525     fi
9526     ;;
9527
9528   aix4* | aix5*)
9529     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9530       test "$enable_shared" = yes && enable_static=no
9531     fi
9532     ;;
9533   esac
9534   echo "$as_me:$LINENO: result: $enable_shared" >&5
9535 echo "${ECHO_T}$enable_shared" >&6
9536
9537   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9538 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9539   # Make sure either enable_shared or enable_static is yes.
9540   test "$enable_shared" = yes || enable_static=yes
9541   echo "$as_me:$LINENO: result: $enable_static" >&5
9542 echo "${ECHO_T}$enable_static" >&6
9543
9544
9545
9546
9547 fi
9548 ac_ext=c
9549 ac_cpp='$CPP $CPPFLAGS'
9550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553
9554 CC="$lt_save_CC"
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568                   ac_config_commands="$ac_config_commands libtool"
9569
9570
9571
9572
9573 # Only expand once:
9574
9575
9576
9577 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9578 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9579     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9580 if test "${enable_maintainer_mode+set}" = set; then
9581   enableval="$enable_maintainer_mode"
9582   USE_MAINTAINER_MODE=$enableval
9583 else
9584   USE_MAINTAINER_MODE=no
9585 fi;
9586   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9587 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9588
9589
9590 if test $USE_MAINTAINER_MODE = yes; then
9591   MAINTAINER_MODE_TRUE=
9592   MAINTAINER_MODE_FALSE='#'
9593 else
9594   MAINTAINER_MODE_TRUE='#'
9595   MAINTAINER_MODE_FALSE=
9596 fi
9597
9598   MAINT=$MAINTAINER_MODE_TRUE
9599
9600
9601
9602
9603 for ac_header in sys/mman.h
9604 do
9605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607   echo "$as_me:$LINENO: checking for $ac_header" >&5
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 fi
9612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9614 else
9615   # Is the header compilable?
9616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h.  */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h.  */
9624 $ac_includes_default
9625 #include <$ac_header>
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629   (eval $ac_compile) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -z "$ac_c_werror_flag"
9637                          || test ! -s conftest.err'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; } &&
9643          { ac_try='test -s conftest.$ac_objext'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   ac_header_compiler=yes
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_header_compiler=no
9655 fi
9656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658 echo "${ECHO_T}$ac_header_compiler" >&6
9659
9660 # Is the header present?
9661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669 #include <$ac_header>
9670 _ACEOF
9671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } >/dev/null; then
9679   if test -s conftest.err; then
9680     ac_cpp_err=$ac_c_preproc_warn_flag
9681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9682   else
9683     ac_cpp_err=
9684   fi
9685 else
9686   ac_cpp_err=yes
9687 fi
9688 if test -z "$ac_cpp_err"; then
9689   ac_header_preproc=yes
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694   ac_header_preproc=no
9695 fi
9696 rm -f conftest.err conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9698 echo "${ECHO_T}$ac_header_preproc" >&6
9699
9700 # So?  What about this header?
9701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9702   yes:no: )
9703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9707     ac_header_preproc=yes
9708     ;;
9709   no:yes:* )
9710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9722     (
9723       cat <<\_ASBOX
9724 ## ------------------------------------------- ##
9725 ## Report this to http://gcc.gnu.org/bugs.html ##
9726 ## ------------------------------------------- ##
9727 _ASBOX
9728     ) |
9729       sed "s/^/$as_me: WARNING:     /" >&2
9730     ;;
9731 esac
9732 echo "$as_me:$LINENO: checking for $ac_header" >&5
9733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   eval "$as_ac_Header=\$ac_header_preproc"
9738 fi
9739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9741
9742 fi
9743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9744   cat >>confdefs.h <<_ACEOF
9745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9746 _ACEOF
9747
9748 fi
9749
9750 done
9751
9752
9753 for ac_func in mmap
9754 do
9755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9756 echo "$as_me:$LINENO: checking for $ac_func" >&5
9757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9758 if eval "test \"\${$as_ac_var+set}\" = set"; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9769 #define $ac_func innocuous_$ac_func
9770
9771 /* System header to define __stub macros and hopefully few prototypes,
9772     which can conflict with char $ac_func (); below.
9773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9774     <limits.h> exists even on freestanding compilers.  */
9775
9776 #ifdef __STDC__
9777 # include <limits.h>
9778 #else
9779 # include <assert.h>
9780 #endif
9781
9782 #undef $ac_func
9783
9784 /* Override any gcc2 internal prototype to avoid an error.  */
9785 #ifdef __cplusplus
9786 extern "C"
9787 {
9788 #endif
9789 /* We use char because int might match the return type of a gcc2
9790    builtin and then its argument prototype would still apply.  */
9791 char $ac_func ();
9792 /* The GNU C library defines this for functions which it implements
9793     to always fail with ENOSYS.  Some functions are actually named
9794     something starting with __ and the normal name is an alias.  */
9795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 choke me
9797 #else
9798 char (*f) () = $ac_func;
9799 #endif
9800 #ifdef __cplusplus
9801 }
9802 #endif
9803
9804 int
9805 main ()
9806 {
9807 return f != $ac_func;
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   eval "$as_ac_var=yes"
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 eval "$as_ac_var=no"
9840 fi
9841 rm -f conftest.err conftest.$ac_objext \
9842       conftest$ac_exeext conftest.$ac_ext
9843 fi
9844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9846 if test `eval echo '${'$as_ac_var'}'` = yes; then
9847   cat >>confdefs.h <<_ACEOF
9848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9849 _ACEOF
9850
9851 fi
9852 done
9853
9854
9855 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9856   echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9857 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9858 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 fi
9861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9862 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9863 else
9864   # Is the header compilable?
9865 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9866 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 $ac_includes_default
9874 #include <sys/mman.h>
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -z "$ac_c_werror_flag"
9886                          || test ! -s conftest.err'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest.$ac_objext'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_header_compiler=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_header_compiler=no
9904 fi
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9907 echo "${ECHO_T}$ac_header_compiler" >&6
9908
9909 # Is the header present?
9910 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9911 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 #include <sys/mman.h>
9919 _ACEOF
9920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } >/dev/null; then
9928   if test -s conftest.err; then
9929     ac_cpp_err=$ac_c_preproc_warn_flag
9930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9931   else
9932     ac_cpp_err=
9933   fi
9934 else
9935   ac_cpp_err=yes
9936 fi
9937 if test -z "$ac_cpp_err"; then
9938   ac_header_preproc=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943   ac_header_preproc=no
9944 fi
9945 rm -f conftest.err conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9947 echo "${ECHO_T}$ac_header_preproc" >&6
9948
9949 # So?  What about this header?
9950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9951   yes:no: )
9952     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9953 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9954     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9955 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9956     ac_header_preproc=yes
9957     ;;
9958   no:yes:* )
9959     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9960 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
9962 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
9963     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9964 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9965     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
9966 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9968 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9970 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9971     (
9972       cat <<\_ASBOX
9973 ## ------------------------------------------- ##
9974 ## Report this to http://gcc.gnu.org/bugs.html ##
9975 ## ------------------------------------------- ##
9976 _ASBOX
9977     ) |
9978       sed "s/^/$as_me: WARNING:     /" >&2
9979     ;;
9980 esac
9981 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9982 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9983 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   ac_cv_header_sys_mman_h=$ac_header_preproc
9987 fi
9988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9989 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9990
9991 fi
9992 if test $ac_cv_header_sys_mman_h = yes; then
9993   libffi_header_sys_mman_h=yes
9994 else
9995   libffi_header_sys_mman_h=no
9996 fi
9997
9998
9999 echo "$as_me:$LINENO: checking for mmap" >&5
10000 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10001 if test "${ac_cv_func_mmap+set}" = set; then
10002   echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004   cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10012 #define mmap innocuous_mmap
10013
10014 /* System header to define __stub macros and hopefully few prototypes,
10015     which can conflict with char mmap (); below.
10016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10017     <limits.h> exists even on freestanding compilers.  */
10018
10019 #ifdef __STDC__
10020 # include <limits.h>
10021 #else
10022 # include <assert.h>
10023 #endif
10024
10025 #undef mmap
10026
10027 /* Override any gcc2 internal prototype to avoid an error.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 {
10031 #endif
10032 /* We use char because int might match the return type of a gcc2
10033    builtin and then its argument prototype would still apply.  */
10034 char mmap ();
10035 /* The GNU C library defines this for functions which it implements
10036     to always fail with ENOSYS.  Some functions are actually named
10037     something starting with __ and the normal name is an alias.  */
10038 #if defined (__stub_mmap) || defined (__stub___mmap)
10039 choke me
10040 #else
10041 char (*f) () = mmap;
10042 #endif
10043 #ifdef __cplusplus
10044 }
10045 #endif
10046
10047 int
10048 main ()
10049 {
10050 return f != mmap;
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057   (eval $ac_link) 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } &&
10064          { ac_try='test -z "$ac_c_werror_flag"
10065                          || test ! -s conftest.err'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_func_mmap=yes
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 ac_cv_func_mmap=no
10083 fi
10084 rm -f conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10088 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10089 if test $ac_cv_func_mmap = yes; then
10090   libffi_func_mmap=yes
10091 else
10092   libffi_func_mmap=no
10093 fi
10094
10095 if test "$libffi_header_sys_mman_h" != yes \
10096  || test "$libffi_func_mmap" != yes; then
10097    ac_cv_func_mmap_file=no
10098    ac_cv_func_mmap_dev_zero=no
10099    ac_cv_func_mmap_anon=no
10100 else
10101    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10102 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10103 if test "${ac_cv_func_mmap_file+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   # Add a system to this blacklist if
10107    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10108    # memory area containing the same data that you'd get if you applied
10109    # read() to the same fd.  The only system known to have a problem here
10110    # is VMS, where text files have record structure.
10111    case "$host_os" in
10112      vms* | ultrix*)
10113         ac_cv_func_mmap_file=no ;;
10114      *)
10115         ac_cv_func_mmap_file=yes;;
10116    esac
10117 fi
10118 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10119 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10120    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10121 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10122 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   # Add a system to this blacklist if it has mmap() but /dev/zero
10126    # does not exist, or if mmapping /dev/zero does not give anonymous
10127    # zeroed pages with both the following properties:
10128    # 1. If you map N consecutive pages in with one call, and then
10129    #    unmap any subset of those pages, the pages that were not
10130    #    explicitly unmapped remain accessible.
10131    # 2. If you map two adjacent blocks of memory and then unmap them
10132    #    both at once, they must both go away.
10133    # Systems known to be in this category are Windows (all variants),
10134    # VMS, and Darwin.
10135    case "$host_os" in
10136      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10137         ac_cv_func_mmap_dev_zero=no ;;
10138      *)
10139         ac_cv_func_mmap_dev_zero=yes;;
10140    esac
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10143 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10144
10145    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10146    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10147 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10148 if test "${ac_cv_decl_map_anon+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <sys/types.h>
10158 #include <sys/mman.h>
10159 #include <unistd.h>
10160
10161 #ifndef MAP_ANONYMOUS
10162 #define MAP_ANONYMOUS MAP_ANON
10163 #endif
10164
10165 int
10166 main ()
10167 {
10168 int n = MAP_ANONYMOUS;
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175   (eval $ac_compile) 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } &&
10182          { ac_try='test -z "$ac_c_werror_flag"
10183                          || test ! -s conftest.err'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; } &&
10189          { ac_try='test -s conftest.$ac_objext'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_cv_decl_map_anon=yes
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_decl_map_anon=no
10201 fi
10202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10203 fi
10204 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10205 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10206
10207    if test $ac_cv_decl_map_anon = no; then
10208      ac_cv_func_mmap_anon=no
10209    else
10210      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10211 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10212 if test "${ac_cv_func_mmap_anon+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10216    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10217    # doesn't give anonymous zeroed pages with the same properties listed
10218    # above for use of /dev/zero.
10219    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10220    case "$host_os" in
10221      vms* | cygwin* | pe | mingw* | sco* | udk* )
10222         ac_cv_func_mmap_anon=no ;;
10223      *)
10224         ac_cv_func_mmap_anon=yes;;
10225    esac
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10228 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10229    fi
10230 fi
10231
10232 if test $ac_cv_func_mmap_file = yes; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_MMAP_FILE 1
10236 _ACEOF
10237
10238 fi
10239 if test $ac_cv_func_mmap_dev_zero = yes; then
10240
10241 cat >>confdefs.h <<\_ACEOF
10242 #define HAVE_MMAP_DEV_ZERO 1
10243 _ACEOF
10244
10245 fi
10246 if test $ac_cv_func_mmap_anon = yes; then
10247
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_MMAP_ANON 1
10250 _ACEOF
10251
10252 fi
10253
10254
10255
10256
10257 if test -d $srcdir/testsuite; then
10258   TESTSUBDIR_TRUE=
10259   TESTSUBDIR_FALSE='#'
10260 else
10261   TESTSUBDIR_TRUE='#'
10262   TESTSUBDIR_FALSE=
10263 fi
10264
10265
10266 TARGETDIR="unknown"
10267 case "$host" in
10268   alpha*-*-*)
10269         TARGET=ALPHA; TARGETDIR=alpha;
10270         # Support 128-bit long double, changable via command-line switch.
10271         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
10272         ;;
10273
10274   arm*-*-*)
10275         TARGET=ARM; TARGETDIR=arm
10276         ;;
10277
10278   cris-*-*)
10279         TARGET=LIBFFI_CRIS; TARGETDIR=cris
10280         ;;
10281
10282   frv-*-*)
10283         TARGET=FRV; TARGETDIR=frv
10284         ;;
10285
10286   hppa*-*-linux* | parisc*-*-linux*)
10287         TARGET=PA_LINUX; TARGETDIR=pa
10288         ;;
10289   hppa*64-*-hpux*)
10290         TARGET=PA64_HPUX; TARGETDIR=pa
10291         ;;
10292   hppa*-*-hpux*)
10293         TARGET=PA_HPUX; TARGETDIR=pa
10294         ;;
10295
10296   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
10297         TARGET=X86_WIN32; TARGETDIR=x86
10298         ;;
10299   i?86-*-darwin*)
10300         TARGET=X86_DARWIN; TARGETDIR=x86
10301         ;;
10302   i?86-*-*)
10303         TARGET=X86; TARGETDIR=x86
10304         ;;
10305
10306   ia64*-*-*)
10307         TARGET=IA64; TARGETDIR=ia64
10308         ;;
10309
10310   m32r*-*-*)
10311         TARGET=M32R; TARGETDIR=m32r
10312         ;;
10313
10314   m68k-*-*)
10315         TARGET=M68K; TARGETDIR=m68k
10316         ;;
10317
10318   mips64*-*)
10319         ;;
10320   mips-sgi-irix5.* | mips-sgi-irix6.*)
10321         TARGET=MIPS_IRIX; TARGETDIR=mips
10322         ;;
10323   mips*-*-linux*)
10324         TARGET=MIPS_LINUX; TARGETDIR=mips
10325         ;;
10326
10327   powerpc*-*-linux* | powerpc-*-sysv*)
10328         TARGET=POWERPC; TARGETDIR=powerpc
10329         ;;
10330   powerpc-*-beos*)
10331         TARGET=POWERPC; TARGETDIR=powerpc
10332         ;;
10333   powerpc-*-darwin*)
10334         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
10335         ;;
10336   powerpc-*-aix* | rs6000-*-aix*)
10337         TARGET=POWERPC_AIX; TARGETDIR=powerpc
10338         ;;
10339   powerpc-*-freebsd*)
10340         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
10341         ;;
10342   powerpc*-*-rtems*)
10343         TARGET=POWERPC; TARGETDIR=powerpc
10344         ;;
10345
10346   s390-*-* | s390x-*-*)
10347         TARGET=S390; TARGETDIR=s390
10348         ;;
10349
10350   sh-*-* | sh[34]*-*-*)
10351         TARGET=SH; TARGETDIR=sh
10352         ;;
10353   sh64-*-* | sh5*-*-*)
10354         TARGET=SH64; TARGETDIR=sh64
10355         ;;
10356
10357   sparc*-*-*)
10358         TARGET=SPARC; TARGETDIR=sparc
10359         ;;
10360
10361   x86_64-*-darwin*)
10362         TARGET=X86_DARWIN; TARGETDIR=x86
10363         ;;
10364   x86_64-*-cygwin* | x86_64-*-mingw*)
10365         ;;
10366   x86_64-*-*)
10367         TARGET=X86_64; TARGETDIR=x86
10368         ;;
10369 esac
10370
10371
10372
10373 if test $TARGETDIR = unknown; then
10374   { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10375 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10376    { (exit 1); exit 1; }; }
10377 fi
10378
10379
10380
10381 if test x$TARGET = xMIPS_IRIX; then
10382   MIPS_IRIX_TRUE=
10383   MIPS_IRIX_FALSE='#'
10384 else
10385   MIPS_IRIX_TRUE='#'
10386   MIPS_IRIX_FALSE=
10387 fi
10388
10389
10390
10391 if test x$TARGET = xMIPS_LINUX; then
10392   MIPS_LINUX_TRUE=
10393   MIPS_LINUX_FALSE='#'
10394 else
10395   MIPS_LINUX_TRUE='#'
10396   MIPS_LINUX_FALSE=
10397 fi
10398
10399
10400
10401 if test x$TARGET = xSPARC; then
10402   SPARC_TRUE=
10403   SPARC_FALSE='#'
10404 else
10405   SPARC_TRUE='#'
10406   SPARC_FALSE=
10407 fi
10408
10409
10410
10411 if test x$TARGET = xX86; then
10412   X86_TRUE=
10413   X86_FALSE='#'
10414 else
10415   X86_TRUE='#'
10416   X86_FALSE=
10417 fi
10418
10419
10420
10421 if test x$TARGET = xX86_WIN32; then
10422   X86_WIN32_TRUE=
10423   X86_WIN32_FALSE='#'
10424 else
10425   X86_WIN32_TRUE='#'
10426   X86_WIN32_FALSE=
10427 fi
10428
10429
10430
10431 if test x$TARGET = xX86_DARWIN; then
10432   X86_DARWIN_TRUE=
10433   X86_DARWIN_FALSE='#'
10434 else
10435   X86_DARWIN_TRUE='#'
10436   X86_DARWIN_FALSE=
10437 fi
10438
10439
10440
10441 if test x$TARGET = xALPHA; then
10442   ALPHA_TRUE=
10443   ALPHA_FALSE='#'
10444 else
10445   ALPHA_TRUE='#'
10446   ALPHA_FALSE=
10447 fi
10448
10449
10450
10451 if test x$TARGET = xIA64; then
10452   IA64_TRUE=
10453   IA64_FALSE='#'
10454 else
10455   IA64_TRUE='#'
10456   IA64_FALSE=
10457 fi
10458
10459
10460
10461 if test x$TARGET = xM32R; then
10462   M32R_TRUE=
10463   M32R_FALSE='#'
10464 else
10465   M32R_TRUE='#'
10466   M32R_FALSE=
10467 fi
10468
10469
10470
10471 if test x$TARGET = xM68K; then
10472   M68K_TRUE=
10473   M68K_FALSE='#'
10474 else
10475   M68K_TRUE='#'
10476   M68K_FALSE=
10477 fi
10478
10479
10480
10481 if test x$TARGET = xPOWERPC; then
10482   POWERPC_TRUE=
10483   POWERPC_FALSE='#'
10484 else
10485   POWERPC_TRUE='#'
10486   POWERPC_FALSE=
10487 fi
10488
10489
10490
10491 if test x$TARGET = xPOWERPC_AIX; then
10492   POWERPC_AIX_TRUE=
10493   POWERPC_AIX_FALSE='#'
10494 else
10495   POWERPC_AIX_TRUE='#'
10496   POWERPC_AIX_FALSE=
10497 fi
10498
10499
10500
10501 if test x$TARGET = xPOWERPC_DARWIN; then
10502   POWERPC_DARWIN_TRUE=
10503   POWERPC_DARWIN_FALSE='#'
10504 else
10505   POWERPC_DARWIN_TRUE='#'
10506   POWERPC_DARWIN_FALSE=
10507 fi
10508
10509
10510
10511 if test x$TARGET = xPOWERPC_FREEBSD; then
10512   POWERPC_FREEBSD_TRUE=
10513   POWERPC_FREEBSD_FALSE='#'
10514 else
10515   POWERPC_FREEBSD_TRUE='#'
10516   POWERPC_FREEBSD_FALSE=
10517 fi
10518
10519
10520
10521 if test x$TARGET = xARM; then
10522   ARM_TRUE=
10523   ARM_FALSE='#'
10524 else
10525   ARM_TRUE='#'
10526   ARM_FALSE=
10527 fi
10528
10529
10530
10531 if test x$TARGET = xLIBFFI_CRIS; then
10532   LIBFFI_CRIS_TRUE=
10533   LIBFFI_CRIS_FALSE='#'
10534 else
10535   LIBFFI_CRIS_TRUE='#'
10536   LIBFFI_CRIS_FALSE=
10537 fi
10538
10539
10540
10541 if test x$TARGET = xFRV; then
10542   FRV_TRUE=
10543   FRV_FALSE='#'
10544 else
10545   FRV_TRUE='#'
10546   FRV_FALSE=
10547 fi
10548
10549
10550
10551 if test x$TARGET = xS390; then
10552   S390_TRUE=
10553   S390_FALSE='#'
10554 else
10555   S390_TRUE='#'
10556   S390_FALSE=
10557 fi
10558
10559
10560
10561 if test x$TARGET = xX86_64; then
10562   X86_64_TRUE=
10563   X86_64_FALSE='#'
10564 else
10565   X86_64_TRUE='#'
10566   X86_64_FALSE=
10567 fi
10568
10569
10570
10571 if test x$TARGET = xSH; then
10572   SH_TRUE=
10573   SH_FALSE='#'
10574 else
10575   SH_TRUE='#'
10576   SH_FALSE=
10577 fi
10578
10579
10580
10581 if test x$TARGET = xSH64; then
10582   SH64_TRUE=
10583   SH64_FALSE='#'
10584 else
10585   SH64_TRUE='#'
10586   SH64_FALSE=
10587 fi
10588
10589
10590
10591 if test x$TARGET = xPA_LINUX; then
10592   PA_LINUX_TRUE=
10593   PA_LINUX_FALSE='#'
10594 else
10595   PA_LINUX_TRUE='#'
10596   PA_LINUX_FALSE=
10597 fi
10598
10599
10600
10601 if test x$TARGET = xPA_HPUX; then
10602   PA_HPUX_TRUE=
10603   PA_HPUX_FALSE='#'
10604 else
10605   PA_HPUX_TRUE='#'
10606   PA_HPUX_FALSE=
10607 fi
10608
10609
10610
10611 if test x$TARGET = xPA64_HPUX; then
10612   PA64_HPUX_TRUE=
10613   PA64_HPUX_FALSE='#'
10614 else
10615   PA64_HPUX_TRUE='#'
10616   PA64_HPUX_FALSE=
10617 fi
10618
10619
10620 case x$TARGET in
10621   xMIPS*) TARGET=MIPS ;;
10622   *) ;;
10623 esac
10624
10625 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10627 if test "${ac_cv_header_stdc+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 #include <stdlib.h>
10637 #include <stdarg.h>
10638 #include <string.h>
10639 #include <float.h>
10640
10641 int
10642 main ()
10643 {
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651   (eval $ac_compile) 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -z "$ac_c_werror_flag"
10659                          || test ! -s conftest.err'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; } &&
10665          { ac_try='test -s conftest.$ac_objext'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_cv_header_stdc=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_cv_header_stdc=no
10677 fi
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679
10680 if test $ac_cv_header_stdc = yes; then
10681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 #include <string.h>
10689
10690 _ACEOF
10691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10692   $EGREP "memchr" >/dev/null 2>&1; then
10693   :
10694 else
10695   ac_cv_header_stdc=no
10696 fi
10697 rm -f conftest*
10698
10699 fi
10700
10701 if test $ac_cv_header_stdc = yes; then
10702   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #include <stdlib.h>
10710
10711 _ACEOF
10712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10713   $EGREP "free" >/dev/null 2>&1; then
10714   :
10715 else
10716   ac_cv_header_stdc=no
10717 fi
10718 rm -f conftest*
10719
10720 fi
10721
10722 if test $ac_cv_header_stdc = yes; then
10723   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10724   if test "$cross_compiling" = yes; then
10725   :
10726 else
10727   cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 #include <ctype.h>
10734 #if ((' ' & 0x0FF) == 0x020)
10735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10737 #else
10738 # define ISLOWER(c) \
10739                    (('a' <= (c) && (c) <= 'i') \
10740                      || ('j' <= (c) && (c) <= 'r') \
10741                      || ('s' <= (c) && (c) <= 'z'))
10742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10743 #endif
10744
10745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10746 int
10747 main ()
10748 {
10749   int i;
10750   for (i = 0; i < 256; i++)
10751     if (XOR (islower (i), ISLOWER (i))
10752         || toupper (i) != TOUPPER (i))
10753       exit(2);
10754   exit (0);
10755 }
10756 _ACEOF
10757 rm -f conftest$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759   (eval $ac_link) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   :
10769 else
10770   echo "$as_me: program exited with status $ac_status" >&5
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10773
10774 ( exit $ac_status )
10775 ac_cv_header_stdc=no
10776 fi
10777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10778 fi
10779 fi
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10783 if test $ac_cv_header_stdc = yes; then
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define STDC_HEADERS 1
10787 _ACEOF
10788
10789 fi
10790
10791
10792 for ac_func in memcpy
10793 do
10794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10795 echo "$as_me:$LINENO: checking for $ac_func" >&5
10796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10797 if eval "test \"\${$as_ac_var+set}\" = set"; then
10798   echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800   cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h.  */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h.  */
10806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10808 #define $ac_func innocuous_$ac_func
10809
10810 /* System header to define __stub macros and hopefully few prototypes,
10811     which can conflict with char $ac_func (); below.
10812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10813     <limits.h> exists even on freestanding compilers.  */
10814
10815 #ifdef __STDC__
10816 # include <limits.h>
10817 #else
10818 # include <assert.h>
10819 #endif
10820
10821 #undef $ac_func
10822
10823 /* Override any gcc2 internal prototype to avoid an error.  */
10824 #ifdef __cplusplus
10825 extern "C"
10826 {
10827 #endif
10828 /* We use char because int might match the return type of a gcc2
10829    builtin and then its argument prototype would still apply.  */
10830 char $ac_func ();
10831 /* The GNU C library defines this for functions which it implements
10832     to always fail with ENOSYS.  Some functions are actually named
10833     something starting with __ and the normal name is an alias.  */
10834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835 choke me
10836 #else
10837 char (*f) () = $ac_func;
10838 #endif
10839 #ifdef __cplusplus
10840 }
10841 #endif
10842
10843 int
10844 main ()
10845 {
10846 return f != $ac_func;
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853   (eval $ac_link) 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } &&
10860          { ac_try='test -z "$ac_c_werror_flag"
10861                          || test ! -s conftest.err'
10862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863   (eval $ac_try) 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; } &&
10867          { ac_try='test -s conftest$ac_exeext'
10868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869   (eval $ac_try) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; }; then
10873   eval "$as_ac_var=yes"
10874 else
10875   echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 eval "$as_ac_var=no"
10879 fi
10880 rm -f conftest.err conftest.$ac_objext \
10881       conftest$ac_exeext conftest.$ac_ext
10882 fi
10883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10885 if test `eval echo '${'$as_ac_var'}'` = yes; then
10886   cat >>confdefs.h <<_ACEOF
10887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888 _ACEOF
10889
10890 fi
10891 done
10892
10893 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10894 # for constant arguments.  Useless!
10895 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10896 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10897 if test "${ac_cv_working_alloca_h+set}" = set; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900   cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 #include <alloca.h>
10907 int
10908 main ()
10909 {
10910 char *p = (char *) alloca (2 * sizeof (int));
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10917   (eval $ac_link) 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } &&
10924          { ac_try='test -z "$ac_c_werror_flag"
10925                          || test ! -s conftest.err'
10926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927   (eval $ac_try) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; } &&
10931          { ac_try='test -s conftest$ac_exeext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   ac_cv_working_alloca_h=yes
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_working_alloca_h=no
10943 fi
10944 rm -f conftest.err conftest.$ac_objext \
10945       conftest$ac_exeext conftest.$ac_ext
10946 fi
10947 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10948 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10949 if test $ac_cv_working_alloca_h = yes; then
10950
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_ALLOCA_H 1
10953 _ACEOF
10954
10955 fi
10956
10957 echo "$as_me:$LINENO: checking for alloca" >&5
10958 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10959 if test "${ac_cv_func_alloca_works+set}" = set; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #ifdef __GNUC__
10969 # define alloca __builtin_alloca
10970 #else
10971 # ifdef _MSC_VER
10972 #  include <malloc.h>
10973 #  define alloca _alloca
10974 # else
10975 #  if HAVE_ALLOCA_H
10976 #   include <alloca.h>
10977 #  else
10978 #   ifdef _AIX
10979  #pragma alloca
10980 #   else
10981 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10982 char *alloca ();
10983 #    endif
10984 #   endif
10985 #  endif
10986 # endif
10987 #endif
10988
10989 int
10990 main ()
10991 {
10992 char *p = (char *) alloca (1);
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999   (eval $ac_link) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } &&
11006          { ac_try='test -z "$ac_c_werror_flag"
11007                          || test ! -s conftest.err'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; } &&
11013          { ac_try='test -s conftest$ac_exeext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_cv_func_alloca_works=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_cv_func_alloca_works=no
11025 fi
11026 rm -f conftest.err conftest.$ac_objext \
11027       conftest$ac_exeext conftest.$ac_ext
11028 fi
11029 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11030 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11031
11032 if test $ac_cv_func_alloca_works = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_ALLOCA 1
11036 _ACEOF
11037
11038 else
11039   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11040 # that cause trouble.  Some versions do not even contain alloca or
11041 # contain a buggy version.  If you still want to use their alloca,
11042 # use ar to extract alloca.o from them instead of compiling alloca.c.
11043
11044 ALLOCA=alloca.$ac_objext
11045
11046 cat >>confdefs.h <<\_ACEOF
11047 #define C_ALLOCA 1
11048 _ACEOF
11049
11050
11051 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11052 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11053 if test "${ac_cv_os_cray+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 #if defined(CRAY) && ! defined(CRAY2)
11063 webecray
11064 #else
11065 wenotbecray
11066 #endif
11067
11068 _ACEOF
11069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11070   $EGREP "webecray" >/dev/null 2>&1; then
11071   ac_cv_os_cray=yes
11072 else
11073   ac_cv_os_cray=no
11074 fi
11075 rm -f conftest*
11076
11077 fi
11078 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11079 echo "${ECHO_T}$ac_cv_os_cray" >&6
11080 if test $ac_cv_os_cray = yes; then
11081   for ac_func in _getb67 GETB67 getb67; do
11082     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11083 echo "$as_me:$LINENO: checking for $ac_func" >&5
11084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11085 if eval "test \"\${$as_ac_var+set}\" = set"; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h.  */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h.  */
11094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11096 #define $ac_func innocuous_$ac_func
11097
11098 /* System header to define __stub macros and hopefully few prototypes,
11099     which can conflict with char $ac_func (); below.
11100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11101     <limits.h> exists even on freestanding compilers.  */
11102
11103 #ifdef __STDC__
11104 # include <limits.h>
11105 #else
11106 # include <assert.h>
11107 #endif
11108
11109 #undef $ac_func
11110
11111 /* Override any gcc2 internal prototype to avoid an error.  */
11112 #ifdef __cplusplus
11113 extern "C"
11114 {
11115 #endif
11116 /* We use char because int might match the return type of a gcc2
11117    builtin and then its argument prototype would still apply.  */
11118 char $ac_func ();
11119 /* The GNU C library defines this for functions which it implements
11120     to always fail with ENOSYS.  Some functions are actually named
11121     something starting with __ and the normal name is an alias.  */
11122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11123 choke me
11124 #else
11125 char (*f) () = $ac_func;
11126 #endif
11127 #ifdef __cplusplus
11128 }
11129 #endif
11130
11131 int
11132 main ()
11133 {
11134 return f != $ac_func;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141   (eval $ac_link) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag"
11149                          || test ! -s conftest.err'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; } &&
11155          { ac_try='test -s conftest$ac_exeext'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; }; then
11161   eval "$as_ac_var=yes"
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 eval "$as_ac_var=no"
11167 fi
11168 rm -f conftest.err conftest.$ac_objext \
11169       conftest$ac_exeext conftest.$ac_ext
11170 fi
11171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11173 if test `eval echo '${'$as_ac_var'}'` = yes; then
11174
11175 cat >>confdefs.h <<_ACEOF
11176 #define CRAY_STACKSEG_END $ac_func
11177 _ACEOF
11178
11179     break
11180 fi
11181
11182   done
11183 fi
11184
11185 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11186 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11187 if test "${ac_cv_c_stack_direction+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   if test "$cross_compiling" = yes; then
11191   ac_cv_c_stack_direction=0
11192 else
11193   cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 int
11200 find_stack_direction ()
11201 {
11202   static char *addr = 0;
11203   auto char dummy;
11204   if (addr == 0)
11205     {
11206       addr = &dummy;
11207       return find_stack_direction ();
11208     }
11209   else
11210     return (&dummy > addr) ? 1 : -1;
11211 }
11212
11213 int
11214 main ()
11215 {
11216   exit (find_stack_direction () < 0);
11217 }
11218 _ACEOF
11219 rm -f conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221   (eval $ac_link) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; }; then
11230   ac_cv_c_stack_direction=1
11231 else
11232   echo "$as_me: program exited with status $ac_status" >&5
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 ( exit $ac_status )
11237 ac_cv_c_stack_direction=-1
11238 fi
11239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11240 fi
11241 fi
11242 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11243 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11244
11245 cat >>confdefs.h <<_ACEOF
11246 #define STACK_DIRECTION $ac_cv_c_stack_direction
11247 _ACEOF
11248
11249
11250 fi
11251
11252
11253 echo "$as_me:$LINENO: checking for double" >&5
11254 echo $ECHO_N "checking for double... $ECHO_C" >&6
11255 if test "${ac_cv_type_double+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 int
11266 main ()
11267 {
11268 if ((double *) 0)
11269   return 0;
11270 if (sizeof (double))
11271   return 0;
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278   (eval $ac_compile) 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -z "$ac_c_werror_flag"
11286                          || test ! -s conftest.err'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; } &&
11292          { ac_try='test -s conftest.$ac_objext'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   ac_cv_type_double=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_cv_type_double=no
11304 fi
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 fi
11307 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11308 echo "${ECHO_T}$ac_cv_type_double" >&6
11309
11310 echo "$as_me:$LINENO: checking size of double" >&5
11311 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11312 if test "${ac_cv_sizeof_double+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   if test "$ac_cv_type_double" = yes; then
11316   # The cast to unsigned long works around a bug in the HP C Compiler
11317   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11318   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11319   # This bug is HP SR number 8606223364.
11320   if test "$cross_compiling" = yes; then
11321   # Depending upon the size, compute the lo and hi bounds.
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 $ac_includes_default
11329 int
11330 main ()
11331 {
11332 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11333 test_array [0] = 0
11334
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341   (eval $ac_compile) 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } &&
11348          { ac_try='test -z "$ac_c_werror_flag"
11349                          || test ! -s conftest.err'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; } &&
11355          { ac_try='test -s conftest.$ac_objext'
11356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357   (eval $ac_try) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   ac_lo=0 ac_mid=0
11362   while :; do
11363     cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h.  */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h.  */
11369 $ac_includes_default
11370 int
11371 main ()
11372 {
11373 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11374 test_array [0] = 0
11375
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382   (eval $ac_compile) 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag"
11390                          || test ! -s conftest.err'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; } &&
11396          { ac_try='test -s conftest.$ac_objext'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_hi=$ac_mid; break
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 ac_lo=`expr $ac_mid + 1`
11408                     if test $ac_lo -le $ac_mid; then
11409                       ac_lo= ac_hi=
11410                       break
11411                     fi
11412                     ac_mid=`expr 2 '*' $ac_mid + 1`
11413 fi
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415   done
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h.  */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h.  */
11426 $ac_includes_default
11427 int
11428 main ()
11429 {
11430 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11431 test_array [0] = 0
11432
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11439   (eval $ac_compile) 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag"
11447                          || test ! -s conftest.err'
11448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449   (eval $ac_try) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; } &&
11453          { ac_try='test -s conftest.$ac_objext'
11454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455   (eval $ac_try) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459   ac_hi=-1 ac_mid=-1
11460   while :; do
11461     cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467 $ac_includes_default
11468 int
11469 main ()
11470 {
11471 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11472 test_array [0] = 0
11473
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11480   (eval $ac_compile) 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_c_werror_flag"
11488                          || test ! -s conftest.err'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; } &&
11494          { ac_try='test -s conftest.$ac_objext'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; }; then
11500   ac_lo=$ac_mid; break
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 ac_hi=`expr '(' $ac_mid ')' - 1`
11506                        if test $ac_mid -le $ac_hi; then
11507                          ac_lo= ac_hi=
11508                          break
11509                        fi
11510                        ac_mid=`expr 2 '*' $ac_mid`
11511 fi
11512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513   done
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518 ac_lo= ac_hi=
11519 fi
11520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11521 fi
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523 # Binary search between lo and hi bounds.
11524 while test "x$ac_lo" != "x$ac_hi"; do
11525   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11526   cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h.  */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h.  */
11532 $ac_includes_default
11533 int
11534 main ()
11535 {
11536 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11537 test_array [0] = 0
11538
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545   (eval $ac_compile) 2>conftest.er1
11546   ac_status=$?
11547   grep -v '^ *+' conftest.er1 >conftest.err
11548   rm -f conftest.er1
11549   cat conftest.err >&5
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } &&
11552          { ac_try='test -z "$ac_c_werror_flag"
11553                          || test ! -s conftest.err'
11554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555   (eval $ac_try) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; } &&
11559          { ac_try='test -s conftest.$ac_objext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   ac_hi=$ac_mid
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 ac_lo=`expr '(' $ac_mid ')' + 1`
11571 fi
11572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11573 done
11574 case $ac_lo in
11575 ?*) ac_cv_sizeof_double=$ac_lo;;
11576 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11577 See \`config.log' for more details." >&5
11578 echo "$as_me: error: cannot compute sizeof (double), 77
11579 See \`config.log' for more details." >&2;}
11580    { (exit 1); exit 1; }; } ;;
11581 esac
11582 else
11583   if test "$cross_compiling" = yes; then
11584   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11585 See \`config.log' for more details." >&5
11586 echo "$as_me: error: cannot run test program while cross compiling
11587 See \`config.log' for more details." >&2;}
11588    { (exit 1); exit 1; }; }
11589 else
11590   cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596 $ac_includes_default
11597 long longval () { return (long) (sizeof (double)); }
11598 unsigned long ulongval () { return (long) (sizeof (double)); }
11599 #include <stdio.h>
11600 #include <stdlib.h>
11601 int
11602 main ()
11603 {
11604
11605   FILE *f = fopen ("conftest.val", "w");
11606   if (! f)
11607     exit (1);
11608   if (((long) (sizeof (double))) < 0)
11609     {
11610       long i = longval ();
11611       if (i != ((long) (sizeof (double))))
11612         exit (1);
11613       fprintf (f, "%ld\n", i);
11614     }
11615   else
11616     {
11617       unsigned long i = ulongval ();
11618       if (i != ((long) (sizeof (double))))
11619         exit (1);
11620       fprintf (f, "%lu\n", i);
11621     }
11622   exit (ferror (f) || fclose (f) != 0);
11623
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630   (eval $ac_link) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   ac_cv_sizeof_double=`cat conftest.val`
11640 else
11641   echo "$as_me: program exited with status $ac_status" >&5
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11644
11645 ( exit $ac_status )
11646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11647 See \`config.log' for more details." >&5
11648 echo "$as_me: error: cannot compute sizeof (double), 77
11649 See \`config.log' for more details." >&2;}
11650    { (exit 1); exit 1; }; }
11651 fi
11652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11653 fi
11654 fi
11655 rm -f conftest.val
11656 else
11657   ac_cv_sizeof_double=0
11658 fi
11659 fi
11660 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11661 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11662 cat >>confdefs.h <<_ACEOF
11663 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11664 _ACEOF
11665
11666
11667 echo "$as_me:$LINENO: checking for long double" >&5
11668 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11669 if test "${ac_cv_type_long_double+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 $ac_includes_default
11679 int
11680 main ()
11681 {
11682 if ((long double *) 0)
11683   return 0;
11684 if (sizeof (long double))
11685   return 0;
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11692   (eval $ac_compile) 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } &&
11699          { ac_try='test -z "$ac_c_werror_flag"
11700                          || test ! -s conftest.err'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; } &&
11706          { ac_try='test -s conftest.$ac_objext'
11707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708   (eval $ac_try) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); }; }; then
11712   ac_cv_type_long_double=yes
11713 else
11714   echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_cv_type_long_double=no
11718 fi
11719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11722 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11723
11724 echo "$as_me:$LINENO: checking size of long double" >&5
11725 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11726 if test "${ac_cv_sizeof_long_double+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   if test "$ac_cv_type_long_double" = yes; then
11730   # The cast to unsigned long works around a bug in the HP C Compiler
11731   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11732   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11733   # This bug is HP SR number 8606223364.
11734   if test "$cross_compiling" = yes; then
11735   # Depending upon the size, compute the lo and hi bounds.
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 $ac_includes_default
11743 int
11744 main ()
11745 {
11746 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11747 test_array [0] = 0
11748
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755   (eval $ac_compile) 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_c_werror_flag"
11763                          || test ! -s conftest.err'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_lo=0 ac_mid=0
11776   while :; do
11777     cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 $ac_includes_default
11784 int
11785 main ()
11786 {
11787 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11788 test_array [0] = 0
11789
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 rm -f conftest.$ac_objext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11796   (eval $ac_compile) 2>conftest.er1
11797   ac_status=$?
11798   grep -v '^ *+' conftest.er1 >conftest.err
11799   rm -f conftest.er1
11800   cat conftest.err >&5
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); } &&
11803          { ac_try='test -z "$ac_c_werror_flag"
11804                          || test ! -s conftest.err'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; } &&
11810          { ac_try='test -s conftest.$ac_objext'
11811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812   (eval $ac_try) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816   ac_hi=$ac_mid; break
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_lo=`expr $ac_mid + 1`
11822                     if test $ac_lo -le $ac_mid; then
11823                       ac_lo= ac_hi=
11824                       break
11825                     fi
11826                     ac_mid=`expr 2 '*' $ac_mid + 1`
11827 fi
11828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11829   done
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 $ac_includes_default
11841 int
11842 main ()
11843 {
11844 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11845 test_array [0] = 0
11846
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853   (eval $ac_compile) 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_c_werror_flag"
11861                          || test ! -s conftest.err'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; } &&
11867          { ac_try='test -s conftest.$ac_objext'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   ac_hi=-1 ac_mid=-1
11874   while :; do
11875     cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 $ac_includes_default
11882 int
11883 main ()
11884 {
11885 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11886 test_array [0] = 0
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11894   (eval $ac_compile) 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_c_werror_flag"
11902                          || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest.$ac_objext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_lo=$ac_mid; break
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_hi=`expr '(' $ac_mid ')' - 1`
11920                        if test $ac_mid -le $ac_hi; then
11921                          ac_lo= ac_hi=
11922                          break
11923                        fi
11924                        ac_mid=`expr 2 '*' $ac_mid`
11925 fi
11926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11927   done
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_lo= ac_hi=
11933 fi
11934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11937 # Binary search between lo and hi bounds.
11938 while test "x$ac_lo" != "x$ac_hi"; do
11939   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11940   cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h.  */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h.  */
11946 $ac_includes_default
11947 int
11948 main ()
11949 {
11950 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11951 test_array [0] = 0
11952
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11959   (eval $ac_compile) 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -z "$ac_c_werror_flag"
11967                          || test ! -s conftest.err'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; } &&
11973          { ac_try='test -s conftest.$ac_objext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_hi=$ac_mid
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 ac_lo=`expr '(' $ac_mid ')' + 1`
11985 fi
11986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11987 done
11988 case $ac_lo in
11989 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11990 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11991 See \`config.log' for more details." >&5
11992 echo "$as_me: error: cannot compute sizeof (long double), 77
11993 See \`config.log' for more details." >&2;}
11994    { (exit 1); exit 1; }; } ;;
11995 esac
11996 else
11997   if test "$cross_compiling" = yes; then
11998   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11999 See \`config.log' for more details." >&5
12000 echo "$as_me: error: cannot run test program while cross compiling
12001 See \`config.log' for more details." >&2;}
12002    { (exit 1); exit 1; }; }
12003 else
12004   cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010 $ac_includes_default
12011 long longval () { return (long) (sizeof (long double)); }
12012 unsigned long ulongval () { return (long) (sizeof (long double)); }
12013 #include <stdio.h>
12014 #include <stdlib.h>
12015 int
12016 main ()
12017 {
12018
12019   FILE *f = fopen ("conftest.val", "w");
12020   if (! f)
12021     exit (1);
12022   if (((long) (sizeof (long double))) < 0)
12023     {
12024       long i = longval ();
12025       if (i != ((long) (sizeof (long double))))
12026         exit (1);
12027       fprintf (f, "%ld\n", i);
12028     }
12029   else
12030     {
12031       unsigned long i = ulongval ();
12032       if (i != ((long) (sizeof (long double))))
12033         exit (1);
12034       fprintf (f, "%lu\n", i);
12035     }
12036   exit (ferror (f) || fclose (f) != 0);
12037
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   ac_cv_sizeof_long_double=`cat conftest.val`
12054 else
12055   echo "$as_me: program exited with status $ac_status" >&5
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ( exit $ac_status )
12060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12061 See \`config.log' for more details." >&5
12062 echo "$as_me: error: cannot compute sizeof (long double), 77
12063 See \`config.log' for more details." >&2;}
12064    { (exit 1); exit 1; }; }
12065 fi
12066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 fi
12069 rm -f conftest.val
12070 else
12071   ac_cv_sizeof_long_double=0
12072 fi
12073 fi
12074 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12075 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12076 cat >>confdefs.h <<_ACEOF
12077 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12078 _ACEOF
12079
12080
12081
12082 # Also AC_SUBST this variable for ffi.h.
12083 if test -z "$HAVE_LONG_DOUBLE"; then
12084   HAVE_LONG_DOUBLE=0
12085   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12086     if test $ac_cv_sizeof_long_double != 0; then
12087       HAVE_LONG_DOUBLE=1
12088
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_LONG_DOUBLE 1
12091 _ACEOF
12092
12093     fi
12094   fi
12095 fi
12096
12097
12098 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12099 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12100 if test "${ac_cv_c_bigendian+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   # See if sys/param.h defines the BYTE_ORDER macro.
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110 #include <sys/types.h>
12111 #include <sys/param.h>
12112
12113 int
12114 main ()
12115 {
12116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12117  bogus endian macros
12118 #endif
12119
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126   (eval $ac_compile) 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } &&
12133          { ac_try='test -z "$ac_c_werror_flag"
12134                          || test ! -s conftest.err'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; } &&
12140          { ac_try='test -s conftest.$ac_objext'
12141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142   (eval $ac_try) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; }; then
12146   # It does; now see whether it defined to BIG_ENDIAN or not.
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153 #include <sys/types.h>
12154 #include <sys/param.h>
12155
12156 int
12157 main ()
12158 {
12159 #if BYTE_ORDER != BIG_ENDIAN
12160  not big endian
12161 #endif
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169   (eval $ac_compile) 2>conftest.er1
12170   ac_status=$?
12171   grep -v '^ *+' conftest.er1 >conftest.err
12172   rm -f conftest.er1
12173   cat conftest.err >&5
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -z "$ac_c_werror_flag"
12177                          || test ! -s conftest.err'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest.$ac_objext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   ac_cv_c_bigendian=yes
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 ac_cv_c_bigendian=no
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 # It does not; compile a test program.
12202 if test "$cross_compiling" = yes; then
12203   # try to guess the endianness by grepping values into an object file
12204   ac_cv_c_bigendian=unknown
12205   cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12212 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12213 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12214 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12215 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12216 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12217 int
12218 main ()
12219 {
12220  _ascii (); _ebcdic ();
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227   (eval $ac_compile) 2>conftest.er1
12228   ac_status=$?
12229   grep -v '^ *+' conftest.er1 >conftest.err
12230   rm -f conftest.er1
12231   cat conftest.err >&5
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -z "$ac_c_werror_flag"
12235                          || test ! -s conftest.err'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; } &&
12241          { ac_try='test -s conftest.$ac_objext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12248   ac_cv_c_bigendian=yes
12249 fi
12250 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12251   if test "$ac_cv_c_bigendian" = unknown; then
12252     ac_cv_c_bigendian=no
12253   else
12254     # finding both strings is unlikely to happen, but who knows?
12255     ac_cv_c_bigendian=unknown
12256   fi
12257 fi
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 fi
12263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12264 else
12265   cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h.  */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h.  */
12271 int
12272 main ()
12273 {
12274   /* Are we little or big endian?  From Harbison&Steele.  */
12275   union
12276   {
12277     long l;
12278     char c[sizeof (long)];
12279   } u;
12280   u.l = 1;
12281   exit (u.c[sizeof (long) - 1] == 1);
12282 }
12283 _ACEOF
12284 rm -f conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286   (eval $ac_link) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; }; then
12295   ac_cv_c_bigendian=no
12296 else
12297   echo "$as_me: program exited with status $ac_status" >&5
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ( exit $ac_status )
12302 ac_cv_c_bigendian=yes
12303 fi
12304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 fi
12309 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12310 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12311 case $ac_cv_c_bigendian in
12312   yes)
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define WORDS_BIGENDIAN 1
12316 _ACEOF
12317  ;;
12318   no)
12319      ;;
12320   *)
12321     { { echo "$as_me:$LINENO: error: unknown endianness
12322 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12323 echo "$as_me: error: unknown endianness
12324 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12325    { (exit 1); exit 1; }; } ;;
12326 esac
12327
12328
12329 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12330 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12331 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334
12335     libffi_cv_as_cfi_pseudo_op=unknown
12336     cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342 asm (".cfi_startproc\n\t.cfi_endproc");
12343 int
12344 main ()
12345 {
12346
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353   (eval $ac_compile) 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -z "$ac_c_werror_flag"
12361                          || test ! -s conftest.err'
12362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363   (eval $ac_try) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest.$ac_objext'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   libffi_cv_as_cfi_pseudo_op=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 libffi_cv_as_cfi_pseudo_op=no
12379 fi
12380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381
12382 fi
12383 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12384 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12385 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12386
12387 cat >>confdefs.h <<\_ACEOF
12388 #define HAVE_AS_CFI_PSEUDO_OP 1
12389 _ACEOF
12390
12391 fi
12392
12393 if test x$TARGET = xSPARC; then
12394     echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12395 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12396 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399
12400         save_CFLAGS="$CFLAGS"
12401         save_LDFLAGS="$LDFLAGS"
12402         CFLAGS="$CFLAGS -fpic"
12403         LDFLAGS="$LDFLAGS -shared"
12404         cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12411 int
12412 main ()
12413 {
12414
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421   (eval $ac_link) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag"
12429                          || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   libffi_cv_as_sparc_ua_pcrel=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 libffi_cv_as_sparc_ua_pcrel=no
12447 fi
12448 rm -f conftest.err conftest.$ac_objext \
12449       conftest$ac_exeext conftest.$ac_ext
12450         CFLAGS="$save_CFLAGS"
12451         LDFLAGS="$save_LDFLAGS"
12452 fi
12453 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12454 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
12455     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12456
12457 cat >>confdefs.h <<\_ACEOF
12458 #define HAVE_AS_SPARC_UA_PCREL 1
12459 _ACEOF
12460
12461     fi
12462
12463     echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12464 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12465 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468
12469        libffi_cv_as_register_pseudo_op=unknown
12470        # Check if we have .register
12471        cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477 asm (".register %g2, #scratch");
12478 int
12479 main ()
12480 {
12481
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488   (eval $ac_compile) 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } &&
12495          { ac_try='test -z "$ac_c_werror_flag"
12496                          || test ! -s conftest.err'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   libffi_cv_as_register_pseudo_op=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 libffi_cv_as_register_pseudo_op=no
12514 fi
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516
12517 fi
12518 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12519 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
12520     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12521
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12524 _ACEOF
12525
12526     fi
12527 fi
12528
12529 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12530 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12531 if test "${libffi_cv_ro_eh_frame+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534
12535         libffi_cv_ro_eh_frame=no
12536         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12537         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12538             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12539                 libffi_cv_ro_eh_frame=yes
12540             elif grep '.section.*eh_frame.*#alloc' conftest.c \
12541                  | grep -v '#write' > /dev/null; then
12542                 libffi_cv_ro_eh_frame=yes
12543             fi
12544         fi
12545         rm -f conftest.*
12546
12547 fi
12548 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12549 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
12550 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12551
12552 cat >>confdefs.h <<\_ACEOF
12553 #define HAVE_RO_EH_FRAME 1
12554 _ACEOF
12555
12556
12557 cat >>confdefs.h <<\_ACEOF
12558 #define EH_FRAME_FLAGS "a"
12559 _ACEOF
12560
12561 else
12562
12563 cat >>confdefs.h <<\_ACEOF
12564 #define EH_FRAME_FLAGS "aw"
12565 _ACEOF
12566
12567 fi
12568
12569 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12570 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12571 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574
12575         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12576         libffi_cv_hidden_visibility_attribute=no
12577         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583             if grep '\.hidden.*foo' conftest.s >/dev/null; then
12584                 libffi_cv_hidden_visibility_attribute=yes
12585             fi
12586         fi
12587         rm -f conftest.*
12588
12589 fi
12590 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12591 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12592 if test $libffi_cv_hidden_visibility_attribute = yes; then
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12596 _ACEOF
12597
12598 fi
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 # Check whether --enable-debug or --disable-debug was given.
12609 if test "${enable_debug+set}" = set; then
12610   enableval="$enable_debug"
12611   if test "$enable_debug" = "yes"; then
12612
12613 cat >>confdefs.h <<\_ACEOF
12614 #define FFI_DEBUG 1
12615 _ACEOF
12616
12617   fi
12618 fi;
12619
12620 # Check whether --enable-structs or --disable-structs was given.
12621 if test "${enable_structs+set}" = set; then
12622   enableval="$enable_structs"
12623   if test "$enable_structs" = "no"; then
12624
12625 cat >>confdefs.h <<\_ACEOF
12626 #define FFI_NO_STRUCTS 1
12627 _ACEOF
12628
12629   fi
12630 fi;
12631
12632 # Check whether --enable-raw-api or --disable-raw-api was given.
12633 if test "${enable_raw_api+set}" = set; then
12634   enableval="$enable_raw_api"
12635   if test "$enable_raw_api" = "no"; then
12636
12637 cat >>confdefs.h <<\_ACEOF
12638 #define FFI_NO_RAW_API 1
12639 _ACEOF
12640
12641   fi
12642 fi;
12643
12644 # Check whether --enable-purify-safety or --disable-purify-safety was given.
12645 if test "${enable_purify_safety+set}" = set; then
12646   enableval="$enable_purify_safety"
12647   if test "$enable_purify_safety" = "yes"; then
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define USING_PURIFY 1
12651 _ACEOF
12652
12653   fi
12654 fi;
12655
12656 if test -n "$with_cross_host" &&
12657    test x"$with_cross_host" != x"no"; then
12658   toolexecdir='$(exec_prefix)/$(target_alias)'
12659   toolexeclibdir='$(toolexecdir)/lib'
12660 else
12661   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12662   toolexeclibdir='$(libdir)'
12663 fi
12664 multi_os_directory=`$CC -print-multi-os-directory`
12665 case $multi_os_directory in
12666   .) ;; # Avoid trailing /.
12667   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12668 esac
12669
12670
12671
12672 if test "${multilib}" = "yes"; then
12673   multilib_arg="--enable-multilib"
12674 else
12675   multilib_arg=
12676 fi
12677
12678           ac_config_commands="$ac_config_commands include"
12679
12680           ac_config_commands="$ac_config_commands src"
12681
12682
12683           ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12684
12685
12686                                         ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12687
12688
12689 cat >confcache <<\_ACEOF
12690 # This file is a shell script that caches the results of configure
12691 # tests run on this system so they can be shared between configure
12692 # scripts and configure runs, see configure's option --config-cache.
12693 # It is not useful on other systems.  If it contains results you don't
12694 # want to keep, you may remove or edit it.
12695 #
12696 # config.status only pays attention to the cache file if you give it
12697 # the --recheck option to rerun configure.
12698 #
12699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12701 # following values.
12702
12703 _ACEOF
12704
12705 # The following way of writing the cache mishandles newlines in values,
12706 # but we know of no workaround that is simple, portable, and efficient.
12707 # So, don't put newlines in cache variables' values.
12708 # Ultrix sh set writes to stderr and can't be redirected directly,
12709 # and sets the high bit in the cache file unless we assign to the vars.
12710 {
12711   (set) 2>&1 |
12712     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12713     *ac_space=\ *)
12714       # `set' does not quote correctly, so add quotes (double-quote
12715       # substitution turns \\\\ into \\, and sed turns \\ into \).
12716       sed -n \
12717         "s/'/'\\\\''/g;
12718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12719       ;;
12720     *)
12721       # `set' quotes correctly as required by POSIX, so do not add quotes.
12722       sed -n \
12723         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12724       ;;
12725     esac;
12726 } |
12727   sed '
12728      t clear
12729      : clear
12730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12731      t end
12732      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12733      : end' >>confcache
12734 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12735   if test -w $cache_file; then
12736     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12737     cat confcache >$cache_file
12738   else
12739     echo "not updating unwritable cache $cache_file"
12740   fi
12741 fi
12742 rm -f confcache
12743
12744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12745 # Let make expand exec_prefix.
12746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12747
12748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12750 # trailing colons and then remove the whole line if VPATH becomes empty
12751 # (actually we leave an empty line to preserve line numbers).
12752 if test "x$srcdir" = x.; then
12753   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12754 s/:*\$(srcdir):*/:/;
12755 s/:*\${srcdir}:*/:/;
12756 s/:*@srcdir@:*/:/;
12757 s/^\([^=]*=[     ]*\):*/\1/;
12758 s/:*$//;
12759 s/^[^=]*=[       ]*$//;
12760 }'
12761 fi
12762
12763 DEFS=-DHAVE_CONFIG_H
12764
12765 ac_libobjs=
12766 ac_ltlibobjs=
12767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12768   # 1. Remove the extension, and $U if already installed.
12769   ac_i=`echo "$ac_i" |
12770          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12771   # 2. Add them.
12772   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12773   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12774 done
12775 LIBOBJS=$ac_libobjs
12776
12777 LTLIBOBJS=$ac_ltlibobjs
12778
12779
12780 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12781   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12782 Usually this means the macro was only invoked conditionally." >&5
12783 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12784 Usually this means the macro was only invoked conditionally." >&2;}
12785    { (exit 1); exit 1; }; }
12786 fi
12787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12788   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12789 Usually this means the macro was only invoked conditionally." >&5
12790 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12791 Usually this means the macro was only invoked conditionally." >&2;}
12792    { (exit 1); exit 1; }; }
12793 fi
12794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12795   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&5
12797 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12798 Usually this means the macro was only invoked conditionally." >&2;}
12799    { (exit 1); exit 1; }; }
12800 fi
12801 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12802   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&5
12804 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12805 Usually this means the macro was only invoked conditionally." >&2;}
12806    { (exit 1); exit 1; }; }
12807 fi
12808 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
12809   { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
12810 Usually this means the macro was only invoked conditionally." >&5
12811 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
12812 Usually this means the macro was only invoked conditionally." >&2;}
12813    { (exit 1); exit 1; }; }
12814 fi
12815 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
12816   { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
12817 Usually this means the macro was only invoked conditionally." >&5
12818 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
12819 Usually this means the macro was only invoked conditionally." >&2;}
12820    { (exit 1); exit 1; }; }
12821 fi
12822 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12823   { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12824 Usually this means the macro was only invoked conditionally." >&5
12825 echo "$as_me: error: conditional \"SPARC\" was never defined.
12826 Usually this means the macro was only invoked conditionally." >&2;}
12827    { (exit 1); exit 1; }; }
12828 fi
12829 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12830   { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12831 Usually this means the macro was only invoked conditionally." >&5
12832 echo "$as_me: error: conditional \"X86\" was never defined.
12833 Usually this means the macro was only invoked conditionally." >&2;}
12834    { (exit 1); exit 1; }; }
12835 fi
12836 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12837   { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12838 Usually this means the macro was only invoked conditionally." >&5
12839 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12840 Usually this means the macro was only invoked conditionally." >&2;}
12841    { (exit 1); exit 1; }; }
12842 fi
12843 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12844   { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12845 Usually this means the macro was only invoked conditionally." >&5
12846 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12847 Usually this means the macro was only invoked conditionally." >&2;}
12848    { (exit 1); exit 1; }; }
12849 fi
12850 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12851   { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12852 Usually this means the macro was only invoked conditionally." >&5
12853 echo "$as_me: error: conditional \"ALPHA\" was never defined.
12854 Usually this means the macro was only invoked conditionally." >&2;}
12855    { (exit 1); exit 1; }; }
12856 fi
12857 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12858   { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12859 Usually this means the macro was only invoked conditionally." >&5
12860 echo "$as_me: error: conditional \"IA64\" was never defined.
12861 Usually this means the macro was only invoked conditionally." >&2;}
12862    { (exit 1); exit 1; }; }
12863 fi
12864 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12865   { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12866 Usually this means the macro was only invoked conditionally." >&5
12867 echo "$as_me: error: conditional \"M32R\" was never defined.
12868 Usually this means the macro was only invoked conditionally." >&2;}
12869    { (exit 1); exit 1; }; }
12870 fi
12871 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12872   { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12873 Usually this means the macro was only invoked conditionally." >&5
12874 echo "$as_me: error: conditional \"M68K\" was never defined.
12875 Usually this means the macro was only invoked conditionally." >&2;}
12876    { (exit 1); exit 1; }; }
12877 fi
12878 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12879   { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12880 Usually this means the macro was only invoked conditionally." >&5
12881 echo "$as_me: error: conditional \"POWERPC\" was never defined.
12882 Usually this means the macro was only invoked conditionally." >&2;}
12883    { (exit 1); exit 1; }; }
12884 fi
12885 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12886   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12887 Usually this means the macro was only invoked conditionally." >&5
12888 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12889 Usually this means the macro was only invoked conditionally." >&2;}
12890    { (exit 1); exit 1; }; }
12891 fi
12892 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12893   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12894 Usually this means the macro was only invoked conditionally." >&5
12895 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12896 Usually this means the macro was only invoked conditionally." >&2;}
12897    { (exit 1); exit 1; }; }
12898 fi
12899 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12900   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12901 Usually this means the macro was only invoked conditionally." >&5
12902 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12903 Usually this means the macro was only invoked conditionally." >&2;}
12904    { (exit 1); exit 1; }; }
12905 fi
12906 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12907   { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12908 Usually this means the macro was only invoked conditionally." >&5
12909 echo "$as_me: error: conditional \"ARM\" was never defined.
12910 Usually this means the macro was only invoked conditionally." >&2;}
12911    { (exit 1); exit 1; }; }
12912 fi
12913 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12914   { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12915 Usually this means the macro was only invoked conditionally." >&5
12916 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12917 Usually this means the macro was only invoked conditionally." >&2;}
12918    { (exit 1); exit 1; }; }
12919 fi
12920 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12921   { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12922 Usually this means the macro was only invoked conditionally." >&5
12923 echo "$as_me: error: conditional \"FRV\" was never defined.
12924 Usually this means the macro was only invoked conditionally." >&2;}
12925    { (exit 1); exit 1; }; }
12926 fi
12927 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12928   { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12929 Usually this means the macro was only invoked conditionally." >&5
12930 echo "$as_me: error: conditional \"S390\" was never defined.
12931 Usually this means the macro was only invoked conditionally." >&2;}
12932    { (exit 1); exit 1; }; }
12933 fi
12934 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12935   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12936 Usually this means the macro was only invoked conditionally." >&5
12937 echo "$as_me: error: conditional \"X86_64\" was never defined.
12938 Usually this means the macro was only invoked conditionally." >&2;}
12939    { (exit 1); exit 1; }; }
12940 fi
12941 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12942   { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12943 Usually this means the macro was only invoked conditionally." >&5
12944 echo "$as_me: error: conditional \"SH\" was never defined.
12945 Usually this means the macro was only invoked conditionally." >&2;}
12946    { (exit 1); exit 1; }; }
12947 fi
12948 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12949   { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12950 Usually this means the macro was only invoked conditionally." >&5
12951 echo "$as_me: error: conditional \"SH64\" was never defined.
12952 Usually this means the macro was only invoked conditionally." >&2;}
12953    { (exit 1); exit 1; }; }
12954 fi
12955 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12956   { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12957 Usually this means the macro was only invoked conditionally." >&5
12958 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12959 Usually this means the macro was only invoked conditionally." >&2;}
12960    { (exit 1); exit 1; }; }
12961 fi
12962 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12963   { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12964 Usually this means the macro was only invoked conditionally." >&5
12965 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12966 Usually this means the macro was only invoked conditionally." >&2;}
12967    { (exit 1); exit 1; }; }
12968 fi
12969 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12970   { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
12971 Usually this means the macro was only invoked conditionally." >&5
12972 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
12973 Usually this means the macro was only invoked conditionally." >&2;}
12974    { (exit 1); exit 1; }; }
12975 fi
12976
12977 : ${CONFIG_STATUS=./config.status}
12978 ac_clean_files_save=$ac_clean_files
12979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12982 cat >$CONFIG_STATUS <<_ACEOF
12983 #! $SHELL
12984 # Generated by $as_me.
12985 # Run this file to recreate the current configuration.
12986 # Compiler output produced by configure, useful for debugging
12987 # configure, is in config.log if it exists.
12988
12989 debug=false
12990 ac_cs_recheck=false
12991 ac_cs_silent=false
12992 SHELL=\${CONFIG_SHELL-$SHELL}
12993 _ACEOF
12994
12995 cat >>$CONFIG_STATUS <<\_ACEOF
12996 ## --------------------- ##
12997 ## M4sh Initialization.  ##
12998 ## --------------------- ##
12999
13000 # Be Bourne compatible
13001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13002   emulate sh
13003   NULLCMD=:
13004   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13005   # is contrary to our usage.  Disable this feature.
13006   alias -g '${1+"$@"}'='"$@"'
13007 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13008   set -o posix
13009 fi
13010 DUALCASE=1; export DUALCASE # for MKS sh
13011
13012 # Support unset when possible.
13013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13014   as_unset=unset
13015 else
13016   as_unset=false
13017 fi
13018
13019
13020 # Work around bugs in pre-3.0 UWIN ksh.
13021 $as_unset ENV MAIL MAILPATH
13022 PS1='$ '
13023 PS2='> '
13024 PS4='+ '
13025
13026 # NLS nuisances.
13027 for as_var in \
13028   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13029   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13030   LC_TELEPHONE LC_TIME
13031 do
13032   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13033     eval $as_var=C; export $as_var
13034   else
13035     $as_unset $as_var
13036   fi
13037 done
13038
13039 # Required to use basename.
13040 if expr a : '\(a\)' >/dev/null 2>&1; then
13041   as_expr=expr
13042 else
13043   as_expr=false
13044 fi
13045
13046 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13047   as_basename=basename
13048 else
13049   as_basename=false
13050 fi
13051
13052
13053 # Name of the executable.
13054 as_me=`$as_basename "$0" ||
13055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13056          X"$0" : 'X\(//\)$' \| \
13057          X"$0" : 'X\(/\)$' \| \
13058          .     : '\(.\)' 2>/dev/null ||
13059 echo X/"$0" |
13060     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13061           /^X\/\(\/\/\)$/{ s//\1/; q; }
13062           /^X\/\(\/\).*/{ s//\1/; q; }
13063           s/.*/./; q'`
13064
13065
13066 # PATH needs CR, and LINENO needs CR and PATH.
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074 # The user is always right.
13075 if test "${PATH_SEPARATOR+set}" != set; then
13076   echo "#! /bin/sh" >conf$$.sh
13077   echo  "exit 0"   >>conf$$.sh
13078   chmod +x conf$$.sh
13079   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13080     PATH_SEPARATOR=';'
13081   else
13082     PATH_SEPARATOR=:
13083   fi
13084   rm -f conf$$.sh
13085 fi
13086
13087
13088   as_lineno_1=$LINENO
13089   as_lineno_2=$LINENO
13090   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13091   test "x$as_lineno_1" != "x$as_lineno_2" &&
13092   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13093   # Find who we are.  Look in the path if we contain no path at all
13094   # relative or not.
13095   case $0 in
13096     *[\\/]* ) as_myself=$0 ;;
13097     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100   IFS=$as_save_IFS
13101   test -z "$as_dir" && as_dir=.
13102   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13103 done
13104
13105        ;;
13106   esac
13107   # We did not find ourselves, most probably we were run as `sh COMMAND'
13108   # in which case we are not to be found in the path.
13109   if test "x$as_myself" = x; then
13110     as_myself=$0
13111   fi
13112   if test ! -f "$as_myself"; then
13113     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13114 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13115    { (exit 1); exit 1; }; }
13116   fi
13117   case $CONFIG_SHELL in
13118   '')
13119     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13121 do
13122   IFS=$as_save_IFS
13123   test -z "$as_dir" && as_dir=.
13124   for as_base in sh bash ksh sh5; do
13125          case $as_dir in
13126          /*)
13127            if ("$as_dir/$as_base" -c '
13128   as_lineno_1=$LINENO
13129   as_lineno_2=$LINENO
13130   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13131   test "x$as_lineno_1" != "x$as_lineno_2" &&
13132   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13133              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13134              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13135              CONFIG_SHELL=$as_dir/$as_base
13136              export CONFIG_SHELL
13137              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13138            fi;;
13139          esac
13140        done
13141 done
13142 ;;
13143   esac
13144
13145   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13146   # uniformly replaced by the line number.  The first 'sed' inserts a
13147   # line-number line before each line; the second 'sed' does the real
13148   # work.  The second script uses 'N' to pair each line-number line
13149   # with the numbered line, and appends trailing '-' during
13150   # substitution so that $LINENO is not a special case at line end.
13151   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13152   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13153   sed '=' <$as_myself |
13154     sed '
13155       N
13156       s,$,-,
13157       : loop
13158       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13159       t loop
13160       s,-$,,
13161       s,^['$as_cr_digits']*\n,,
13162     ' >$as_me.lineno &&
13163   chmod +x $as_me.lineno ||
13164     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13165 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13166    { (exit 1); exit 1; }; }
13167
13168   # Don't try to exec as it changes $[0], causing all sort of problems
13169   # (the dirname of $[0] is not the place where we might find the
13170   # original and so on.  Autoconf is especially sensible to this).
13171   . ./$as_me.lineno
13172   # Exit status is that of the last command.
13173   exit
13174 }
13175
13176
13177 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13178   *c*,-n*) ECHO_N= ECHO_C='
13179 ' ECHO_T='      ' ;;
13180   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13181   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13182 esac
13183
13184 if expr a : '\(a\)' >/dev/null 2>&1; then
13185   as_expr=expr
13186 else
13187   as_expr=false
13188 fi
13189
13190 rm -f conf$$ conf$$.exe conf$$.file
13191 echo >conf$$.file
13192 if ln -s conf$$.file conf$$ 2>/dev/null; then
13193   # We could just check for DJGPP; but this test a) works b) is more generic
13194   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13195   if test -f conf$$.exe; then
13196     # Don't use ln at all; we don't have any links
13197     as_ln_s='cp -p'
13198   else
13199     as_ln_s='ln -s'
13200   fi
13201 elif ln conf$$.file conf$$ 2>/dev/null; then
13202   as_ln_s=ln
13203 else
13204   as_ln_s='cp -p'
13205 fi
13206 rm -f conf$$ conf$$.exe conf$$.file
13207
13208 if mkdir -p . 2>/dev/null; then
13209   as_mkdir_p=:
13210 else
13211   test -d ./-p && rmdir ./-p
13212   as_mkdir_p=false
13213 fi
13214
13215 as_executable_p="test -f"
13216
13217 # Sed expression to map a string onto a valid CPP name.
13218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13219
13220 # Sed expression to map a string onto a valid variable name.
13221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13222
13223
13224 # IFS
13225 # We need space, tab and new line, in precisely that order.
13226 as_nl='
13227 '
13228 IFS="   $as_nl"
13229
13230 # CDPATH.
13231 $as_unset CDPATH
13232
13233 exec 6>&1
13234
13235 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13236 # report actual input values of CONFIG_FILES etc. instead of their
13237 # values after options handling.  Logging --version etc. is OK.
13238 exec 5>>config.log
13239 {
13240   echo
13241   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13242 ## Running $as_me. ##
13243 _ASBOX
13244 } >&5
13245 cat >&5 <<_CSEOF
13246
13247 This file was extended by libffi $as_me 2.1, which was
13248 generated by GNU Autoconf 2.59.  Invocation command line was
13249
13250   CONFIG_FILES    = $CONFIG_FILES
13251   CONFIG_HEADERS  = $CONFIG_HEADERS
13252   CONFIG_LINKS    = $CONFIG_LINKS
13253   CONFIG_COMMANDS = $CONFIG_COMMANDS
13254   $ $0 $@
13255
13256 _CSEOF
13257 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13258 echo >&5
13259 _ACEOF
13260
13261 # Files that config.status was made for.
13262 if test -n "$ac_config_files"; then
13263   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13264 fi
13265
13266 if test -n "$ac_config_headers"; then
13267   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13268 fi
13269
13270 if test -n "$ac_config_links"; then
13271   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13272 fi
13273
13274 if test -n "$ac_config_commands"; then
13275   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13276 fi
13277
13278 cat >>$CONFIG_STATUS <<\_ACEOF
13279
13280 ac_cs_usage="\
13281 \`$as_me' instantiates files from templates according to the
13282 current configuration.
13283
13284 Usage: $0 [OPTIONS] [FILE]...
13285
13286   -h, --help       print this help, then exit
13287   -V, --version    print version number, then exit
13288   -q, --quiet      do not print progress messages
13289   -d, --debug      don't remove temporary files
13290       --recheck    update $as_me by reconfiguring in the same conditions
13291   --file=FILE[:TEMPLATE]
13292                    instantiate the configuration file FILE
13293   --header=FILE[:TEMPLATE]
13294                    instantiate the configuration header FILE
13295
13296 Configuration files:
13297 $config_files
13298
13299 Configuration headers:
13300 $config_headers
13301
13302 Configuration links:
13303 $config_links
13304
13305 Configuration commands:
13306 $config_commands
13307
13308 Report bugs to <bug-autoconf@gnu.org>."
13309 _ACEOF
13310
13311 cat >>$CONFIG_STATUS <<_ACEOF
13312 ac_cs_version="\\
13313 libffi config.status 2.1
13314 configured by $0, generated by GNU Autoconf 2.59,
13315   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13316
13317 Copyright (C) 2003 Free Software Foundation, Inc.
13318 This config.status script is free software; the Free Software Foundation
13319 gives unlimited permission to copy, distribute and modify it."
13320 srcdir=$srcdir
13321 INSTALL="$INSTALL"
13322 _ACEOF
13323
13324 cat >>$CONFIG_STATUS <<\_ACEOF
13325 # If no file are specified by the user, then we need to provide default
13326 # value.  By we need to know if files were specified by the user.
13327 ac_need_defaults=:
13328 while test $# != 0
13329 do
13330   case $1 in
13331   --*=*)
13332     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13333     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13334     ac_shift=:
13335     ;;
13336   -*)
13337     ac_option=$1
13338     ac_optarg=$2
13339     ac_shift=shift
13340     ;;
13341   *) # This is not an option, so the user has probably given explicit
13342      # arguments.
13343      ac_option=$1
13344      ac_need_defaults=false;;
13345   esac
13346
13347   case $ac_option in
13348   # Handling of the options.
13349 _ACEOF
13350 cat >>$CONFIG_STATUS <<\_ACEOF
13351   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13352     ac_cs_recheck=: ;;
13353   --version | --vers* | -V )
13354     echo "$ac_cs_version"; exit 0 ;;
13355   --he | --h)
13356     # Conflict between --help and --header
13357     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13358 Try \`$0 --help' for more information." >&5
13359 echo "$as_me: error: ambiguous option: $1
13360 Try \`$0 --help' for more information." >&2;}
13361    { (exit 1); exit 1; }; };;
13362   --help | --hel | -h )
13363     echo "$ac_cs_usage"; exit 0 ;;
13364   --debug | --d* | -d )
13365     debug=: ;;
13366   --file | --fil | --fi | --f )
13367     $ac_shift
13368     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13369     ac_need_defaults=false;;
13370   --header | --heade | --head | --hea )
13371     $ac_shift
13372     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13373     ac_need_defaults=false;;
13374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13375   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13376     ac_cs_silent=: ;;
13377
13378   # This is an error.
13379   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13380 Try \`$0 --help' for more information." >&5
13381 echo "$as_me: error: unrecognized option: $1
13382 Try \`$0 --help' for more information." >&2;}
13383    { (exit 1); exit 1; }; } ;;
13384
13385   *) ac_config_targets="$ac_config_targets $1" ;;
13386
13387   esac
13388   shift
13389 done
13390
13391 ac_configure_extra_args=
13392
13393 if $ac_cs_silent; then
13394   exec 6>/dev/null
13395   ac_configure_extra_args="$ac_configure_extra_args --silent"
13396 fi
13397
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<_ACEOF
13400 if \$ac_cs_recheck; then
13401   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13402   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13403 fi
13404
13405 _ACEOF
13406
13407 cat >>$CONFIG_STATUS <<_ACEOF
13408 #
13409 # INIT-COMMANDS section.
13410 #
13411
13412
13413 srcdir="$srcdir"
13414 host="$host"
13415 target="$target"
13416 with_multisubdir="$with_multisubdir"
13417 with_multisrctop="$with_multisrctop"
13418 with_target_subdir="$with_target_subdir"
13419 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13420 multi_basedir="$multi_basedir"
13421 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13422 CC="$CC"
13423 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13424
13425
13426 # The HP-UX ksh and POSIX shell print the target directory to stdout
13427 # if CDPATH is set.
13428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13429
13430 sed_quote_subst='$sed_quote_subst'
13431 double_quote_subst='$double_quote_subst'
13432 delay_variable_subst='$delay_variable_subst'
13433 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13434 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13435 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13436 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13437 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13438 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13439 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13440 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13441 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13442 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13443 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13444 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13445 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13446 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13447 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13448 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13449 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13450 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13451 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13452 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13453 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13454 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13455 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13456 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13457 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13458 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13459 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13460 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13461 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13462 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13463 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13464 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13465 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13466 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13467 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13468 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13469 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13470 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13471 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13472 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13473 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13474 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13475 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13477 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13478 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13479 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13480 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13481 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13482 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13483 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13484 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13485 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13486 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13487 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13488 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13489 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13491 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13492 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13493 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13494 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13495 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13496 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13497 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13498 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13502 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13503 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13504 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13505 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13506 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13507 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13508 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13509 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13510 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13511 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13512 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13513 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13514 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13515 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13516 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13518 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13519 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13520 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13521 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13522 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13523 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13524 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13525 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13526 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13527 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13528 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13529 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13532 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13535 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13536 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13537 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13538 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13539 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13540 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13541 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13542 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13543 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13544
13545 LTCC='$LTCC'
13546 LTCFLAGS='$LTCFLAGS'
13547 compiler='$compiler_DEFAULT'
13548
13549 # Quote evaled strings.
13550 for var in SED \
13551 GREP \
13552 EGREP \
13553 FGREP \
13554 LD \
13555 NM \
13556 LN_S \
13557 lt_SP2NL \
13558 lt_NL2SP \
13559 reload_flag \
13560 deplibs_check_method \
13561 file_magic_cmd \
13562 AR \
13563 AR_FLAGS \
13564 STRIP \
13565 RANLIB \
13566 CC \
13567 CFLAGS \
13568 compiler \
13569 lt_cv_sys_global_symbol_pipe \
13570 lt_cv_sys_global_symbol_to_cdecl \
13571 lt_cv_sys_global_symbol_to_c_name_address \
13572 SHELL \
13573 ECHO \
13574 lt_prog_compiler_no_builtin_flag \
13575 lt_prog_compiler_wl \
13576 lt_prog_compiler_pic \
13577 lt_prog_compiler_static \
13578 lt_cv_prog_compiler_c_o \
13579 need_locks \
13580 shrext_cmds \
13581 export_dynamic_flag_spec \
13582 whole_archive_flag_spec \
13583 compiler_needs_object \
13584 with_gnu_ld \
13585 allow_undefined_flag \
13586 no_undefined_flag \
13587 hardcode_libdir_flag_spec \
13588 hardcode_libdir_flag_spec_ld \
13589 hardcode_libdir_separator \
13590 fix_srcfile_path \
13591 exclude_expsyms \
13592 include_expsyms \
13593 file_list_spec \
13594 variables_saved_for_relink \
13595 libname_spec \
13596 library_names_spec \
13597 soname_spec \
13598 finish_eval \
13599 old_striplib \
13600 striplib; do
13601     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13602     *[\\\\\\\`\\"\\\$]*)
13603       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13604       ;;
13605     *)
13606       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13607       ;;
13608     esac
13609 done
13610
13611 # Double-quote double-evaled strings.
13612 for var in reload_cmds \
13613 old_postinstall_cmds \
13614 old_postuninstall_cmds \
13615 old_archive_cmds \
13616 extract_expsyms_cmds \
13617 old_archive_from_new_cmds \
13618 old_archive_from_expsyms_cmds \
13619 archive_cmds \
13620 archive_expsym_cmds \
13621 module_cmds \
13622 module_expsym_cmds \
13623 export_symbols_cmds \
13624 prelink_cmds \
13625 postinstall_cmds \
13626 postuninstall_cmds \
13627 finish_cmds \
13628 sys_lib_search_path_spec \
13629 sys_lib_dlsearch_path_spec; do
13630     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13631     *[\\\\\\\`\\"\\\$]*)
13632       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13633       ;;
13634     *)
13635       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13636       ;;
13637     esac
13638 done
13639
13640 # Fix-up fallback echo if it was mangled by the above quoting rules.
13641 case \$lt_ECHO in
13642 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13643   ;;
13644 esac
13645
13646 ac_aux_dir='$ac_aux_dir'
13647 xsi_shell='$xsi_shell'
13648 lt_shell_append='$lt_shell_append'
13649
13650 # See if we are running on zsh, and set the options which allow our
13651 # commands through without removal of \ escapes INIT.
13652 if test -n "\${ZSH_VERSION+set}" ; then
13653    setopt NO_GLOB_SUBST
13654 fi
13655
13656
13657     PACKAGE='$PACKAGE'
13658     VERSION='$VERSION'
13659     TIMESTAMP='$TIMESTAMP'
13660     RM='$RM'
13661     ofile='$ofile'
13662
13663
13664
13665 TARGETDIR="$TARGETDIR"
13666
13667 _ACEOF
13668
13669
13670
13671 cat >>$CONFIG_STATUS <<\_ACEOF
13672 for ac_config_target in $ac_config_targets
13673 do
13674   case "$ac_config_target" in
13675   # Handling of arguments.
13676   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13677   "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13678   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13679   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13680   "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13681   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13682   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13683   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13684   "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13685   "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13686   "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13687   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13688 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13689    { (exit 1); exit 1; }; };;
13690   esac
13691 done
13692
13693 # If the user did not use the arguments to specify the items to instantiate,
13694 # then the envvar interface is used.  Set only those that are not.
13695 # We use the long form for the default assignment because of an extremely
13696 # bizarre bug on SunOS 4.1.3.
13697 if $ac_need_defaults; then
13698   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13699   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13700   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13701   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13702 fi
13703
13704 # Have a temporary directory for convenience.  Make it in the build tree
13705 # simply because there is no reason to put it here, and in addition,
13706 # creating and moving files from /tmp can sometimes cause problems.
13707 # Create a temporary directory, and hook for its removal unless debugging.
13708 $debug ||
13709 {
13710   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13711   trap '{ (exit 1); exit 1; }' 1 2 13 15
13712 }
13713
13714 # Create a (secure) tmp directory for tmp files.
13715
13716 {
13717   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13718   test -n "$tmp" && test -d "$tmp"
13719 }  ||
13720 {
13721   tmp=./confstat$$-$RANDOM
13722   (umask 077 && mkdir $tmp)
13723 } ||
13724 {
13725    echo "$me: cannot create a temporary directory in ." >&2
13726    { (exit 1); exit 1; }
13727 }
13728
13729 _ACEOF
13730
13731 cat >>$CONFIG_STATUS <<_ACEOF
13732
13733 #
13734 # CONFIG_FILES section.
13735 #
13736
13737 # No need to generate the scripts if there are no CONFIG_FILES.
13738 # This happens for instance when ./config.status config.h
13739 if test -n "\$CONFIG_FILES"; then
13740   # Protect against being on the right side of a sed subst in config.status.
13741   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13742    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13743 s,@SHELL@,$SHELL,;t t
13744 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13745 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13746 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13747 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13748 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13749 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13750 s,@exec_prefix@,$exec_prefix,;t t
13751 s,@prefix@,$prefix,;t t
13752 s,@program_transform_name@,$program_transform_name,;t t
13753 s,@bindir@,$bindir,;t t
13754 s,@sbindir@,$sbindir,;t t
13755 s,@libexecdir@,$libexecdir,;t t
13756 s,@datadir@,$datadir,;t t
13757 s,@sysconfdir@,$sysconfdir,;t t
13758 s,@sharedstatedir@,$sharedstatedir,;t t
13759 s,@localstatedir@,$localstatedir,;t t
13760 s,@libdir@,$libdir,;t t
13761 s,@includedir@,$includedir,;t t
13762 s,@oldincludedir@,$oldincludedir,;t t
13763 s,@infodir@,$infodir,;t t
13764 s,@mandir@,$mandir,;t t
13765 s,@build_alias@,$build_alias,;t t
13766 s,@host_alias@,$host_alias,;t t
13767 s,@target_alias@,$target_alias,;t t
13768 s,@DEFS@,$DEFS,;t t
13769 s,@ECHO_C@,$ECHO_C,;t t
13770 s,@ECHO_N@,$ECHO_N,;t t
13771 s,@ECHO_T@,$ECHO_T,;t t
13772 s,@LIBS@,$LIBS,;t t
13773 s,@multi_basedir@,$multi_basedir,;t t
13774 s,@build@,$build,;t t
13775 s,@build_cpu@,$build_cpu,;t t
13776 s,@build_vendor@,$build_vendor,;t t
13777 s,@build_os@,$build_os,;t t
13778 s,@host@,$host,;t t
13779 s,@host_cpu@,$host_cpu,;t t
13780 s,@host_vendor@,$host_vendor,;t t
13781 s,@host_os@,$host_os,;t t
13782 s,@target@,$target,;t t
13783 s,@target_cpu@,$target_cpu,;t t
13784 s,@target_vendor@,$target_vendor,;t t
13785 s,@target_os@,$target_os,;t t
13786 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13787 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13788 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13789 s,@CYGPATH_W@,$CYGPATH_W,;t t
13790 s,@PACKAGE@,$PACKAGE,;t t
13791 s,@VERSION@,$VERSION,;t t
13792 s,@ACLOCAL@,$ACLOCAL,;t t
13793 s,@AUTOCONF@,$AUTOCONF,;t t
13794 s,@AUTOMAKE@,$AUTOMAKE,;t t
13795 s,@AUTOHEADER@,$AUTOHEADER,;t t
13796 s,@MAKEINFO@,$MAKEINFO,;t t
13797 s,@install_sh@,$install_sh,;t t
13798 s,@STRIP@,$STRIP,;t t
13799 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13800 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13801 s,@mkdir_p@,$mkdir_p,;t t
13802 s,@AWK@,$AWK,;t t
13803 s,@SET_MAKE@,$SET_MAKE,;t t
13804 s,@am__leading_dot@,$am__leading_dot,;t t
13805 s,@AMTAR@,$AMTAR,;t t
13806 s,@am__tar@,$am__tar,;t t
13807 s,@am__untar@,$am__untar,;t t
13808 s,@CC@,$CC,;t t
13809 s,@ac_ct_CC@,$ac_ct_CC,;t t
13810 s,@EXEEXT@,$EXEEXT,;t t
13811 s,@OBJEXT@,$OBJEXT,;t t
13812 s,@DEPDIR@,$DEPDIR,;t t
13813 s,@am__include@,$am__include,;t t
13814 s,@am__quote@,$am__quote,;t t
13815 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13816 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13817 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13818 s,@CCDEPMODE@,$CCDEPMODE,;t t
13819 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13820 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13821 s,@CFLAGS@,$CFLAGS,;t t
13822 s,@CCAS@,$CCAS,;t t
13823 s,@CCASFLAGS@,$CCASFLAGS,;t t
13824 s,@LIBTOOL@,$LIBTOOL,;t t
13825 s,@SED@,$SED,;t t
13826 s,@EGREP@,$EGREP,;t t
13827 s,@FGREP@,$FGREP,;t t
13828 s,@GREP@,$GREP,;t t
13829 s,@LD@,$LD,;t t
13830 s,@DUMPBIN@,$DUMPBIN,;t t
13831 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13832 s,@NM@,$NM,;t t
13833 s,@LN_S@,$LN_S,;t t
13834 s,@AR@,$AR,;t t
13835 s,@ac_ct_AR@,$ac_ct_AR,;t t
13836 s,@RANLIB@,$RANLIB,;t t
13837 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13838 s,@lt_ECHO@,$lt_ECHO,;t t
13839 s,@CPP@,$CPP,;t t
13840 s,@CPPFLAGS@,$CPPFLAGS,;t t
13841 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13842 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13843 s,@MAINT@,$MAINT,;t t
13844 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13845 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13846 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
13847 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
13848 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
13849 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
13850 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
13851 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13852 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13853 s,@X86_TRUE@,$X86_TRUE,;t t
13854 s,@X86_FALSE@,$X86_FALSE,;t t
13855 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13856 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
13857 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13858 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
13859 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13860 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13861 s,@IA64_TRUE@,$IA64_TRUE,;t t
13862 s,@IA64_FALSE@,$IA64_FALSE,;t t
13863 s,@M32R_TRUE@,$M32R_TRUE,;t t
13864 s,@M32R_FALSE@,$M32R_FALSE,;t t
13865 s,@M68K_TRUE@,$M68K_TRUE,;t t
13866 s,@M68K_FALSE@,$M68K_FALSE,;t t
13867 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13868 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13869 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13870 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13871 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13872 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
13873 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13874 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
13875 s,@ARM_TRUE@,$ARM_TRUE,;t t
13876 s,@ARM_FALSE@,$ARM_FALSE,;t t
13877 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13878 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
13879 s,@FRV_TRUE@,$FRV_TRUE,;t t
13880 s,@FRV_FALSE@,$FRV_FALSE,;t t
13881 s,@S390_TRUE@,$S390_TRUE,;t t
13882 s,@S390_FALSE@,$S390_FALSE,;t t
13883 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13884 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13885 s,@SH_TRUE@,$SH_TRUE,;t t
13886 s,@SH_FALSE@,$SH_FALSE,;t t
13887 s,@SH64_TRUE@,$SH64_TRUE,;t t
13888 s,@SH64_FALSE@,$SH64_FALSE,;t t
13889 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13890 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13891 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13892 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13893 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13894 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
13895 s,@ALLOCA@,$ALLOCA,;t t
13896 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13897 s,@TARGET@,$TARGET,;t t
13898 s,@TARGETDIR@,$TARGETDIR,;t t
13899 s,@toolexecdir@,$toolexecdir,;t t
13900 s,@toolexeclibdir@,$toolexeclibdir,;t t
13901 s,@LIBOBJS@,$LIBOBJS,;t t
13902 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13903 CEOF
13904
13905 _ACEOF
13906
13907   cat >>$CONFIG_STATUS <<\_ACEOF
13908   # Split the substitutions into bite-sized pieces for seds with
13909   # small command number limits, like on Digital OSF/1 and HP-UX.
13910   ac_max_sed_lines=48
13911   ac_sed_frag=1 # Number of current file.
13912   ac_beg=1 # First line for current file.
13913   ac_end=$ac_max_sed_lines # Line after last line for current file.
13914   ac_more_lines=:
13915   ac_sed_cmds=
13916   while $ac_more_lines; do
13917     if test $ac_beg -gt 1; then
13918       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13919     else
13920       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13921     fi
13922     if test ! -s $tmp/subs.frag; then
13923       ac_more_lines=false
13924     else
13925       # The purpose of the label and of the branching condition is to
13926       # speed up the sed processing (if there are no `@' at all, there
13927       # is no need to browse any of the substitutions).
13928       # These are the two extra sed commands mentioned above.
13929       (echo ':t
13930   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13931       if test -z "$ac_sed_cmds"; then
13932         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13933       else
13934         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13935       fi
13936       ac_sed_frag=`expr $ac_sed_frag + 1`
13937       ac_beg=$ac_end
13938       ac_end=`expr $ac_end + $ac_max_sed_lines`
13939     fi
13940   done
13941   if test -z "$ac_sed_cmds"; then
13942     ac_sed_cmds=cat
13943   fi
13944 fi # test -n "$CONFIG_FILES"
13945
13946 _ACEOF
13947 cat >>$CONFIG_STATUS <<\_ACEOF
13948 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13949   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13950   case $ac_file in
13951   - | *:- | *:-:* ) # input from stdin
13952         cat >$tmp/stdin
13953         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13954         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13955   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13956         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13957   * )   ac_file_in=$ac_file.in ;;
13958   esac
13959
13960   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13961   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13963          X"$ac_file" : 'X\(//\)[^/]' \| \
13964          X"$ac_file" : 'X\(//\)$' \| \
13965          X"$ac_file" : 'X\(/\)' \| \
13966          .     : '\(.\)' 2>/dev/null ||
13967 echo X"$ac_file" |
13968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13970           /^X\(\/\/\)$/{ s//\1/; q; }
13971           /^X\(\/\).*/{ s//\1/; q; }
13972           s/.*/./; q'`
13973   { if $as_mkdir_p; then
13974     mkdir -p "$ac_dir"
13975   else
13976     as_dir="$ac_dir"
13977     as_dirs=
13978     while test ! -d "$as_dir"; do
13979       as_dirs="$as_dir $as_dirs"
13980       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13982          X"$as_dir" : 'X\(//\)[^/]' \| \
13983          X"$as_dir" : 'X\(//\)$' \| \
13984          X"$as_dir" : 'X\(/\)' \| \
13985          .     : '\(.\)' 2>/dev/null ||
13986 echo X"$as_dir" |
13987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13989           /^X\(\/\/\)$/{ s//\1/; q; }
13990           /^X\(\/\).*/{ s//\1/; q; }
13991           s/.*/./; q'`
13992     done
13993     test ! -n "$as_dirs" || mkdir $as_dirs
13994   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13996    { (exit 1); exit 1; }; }; }
13997
13998   ac_builddir=.
13999
14000 if test "$ac_dir" != .; then
14001   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14002   # A "../" for each directory in $ac_dir_suffix.
14003   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14004 else
14005   ac_dir_suffix= ac_top_builddir=
14006 fi
14007
14008 case $srcdir in
14009   .)  # No --srcdir option.  We are building in place.
14010     ac_srcdir=.
14011     if test -z "$ac_top_builddir"; then
14012        ac_top_srcdir=.
14013     else
14014        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14015     fi ;;
14016   [\\/]* | ?:[\\/]* )  # Absolute path.
14017     ac_srcdir=$srcdir$ac_dir_suffix;
14018     ac_top_srcdir=$srcdir ;;
14019   *) # Relative path.
14020     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14021     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14022 esac
14023
14024 # Do not use `cd foo && pwd` to compute absolute paths, because
14025 # the directories may not exist.
14026 case `pwd` in
14027 .) ac_abs_builddir="$ac_dir";;
14028 *)
14029   case "$ac_dir" in
14030   .) ac_abs_builddir=`pwd`;;
14031   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14032   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14033   esac;;
14034 esac
14035 case $ac_abs_builddir in
14036 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14037 *)
14038   case ${ac_top_builddir}. in
14039   .) ac_abs_top_builddir=$ac_abs_builddir;;
14040   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14041   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14042   esac;;
14043 esac
14044 case $ac_abs_builddir in
14045 .) ac_abs_srcdir=$ac_srcdir;;
14046 *)
14047   case $ac_srcdir in
14048   .) ac_abs_srcdir=$ac_abs_builddir;;
14049   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14050   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14051   esac;;
14052 esac
14053 case $ac_abs_builddir in
14054 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14055 *)
14056   case $ac_top_srcdir in
14057   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14058   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14059   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14060   esac;;
14061 esac
14062
14063
14064   case $INSTALL in
14065   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14066   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14067   esac
14068
14069   if test x"$ac_file" != x-; then
14070     { echo "$as_me:$LINENO: creating $ac_file" >&5
14071 echo "$as_me: creating $ac_file" >&6;}
14072     rm -f "$ac_file"
14073   fi
14074   # Let's still pretend it is `configure' which instantiates (i.e., don't
14075   # use $as_me), people would be surprised to read:
14076   #    /* config.h.  Generated by config.status.  */
14077   if test x"$ac_file" = x-; then
14078     configure_input=
14079   else
14080     configure_input="$ac_file.  "
14081   fi
14082   configure_input=$configure_input"Generated from `echo $ac_file_in |
14083                                      sed 's,.*/,,'` by configure."
14084
14085   # First look for the input files in the build tree, otherwise in the
14086   # src tree.
14087   ac_file_inputs=`IFS=:
14088     for f in $ac_file_in; do
14089       case $f in
14090       -) echo $tmp/stdin ;;
14091       [\\/$]*)
14092          # Absolute (can't be DOS-style, as IFS=:)
14093          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14094 echo "$as_me: error: cannot find input file: $f" >&2;}
14095    { (exit 1); exit 1; }; }
14096          echo "$f";;
14097       *) # Relative
14098          if test -f "$f"; then
14099            # Build tree
14100            echo "$f"
14101          elif test -f "$srcdir/$f"; then
14102            # Source tree
14103            echo "$srcdir/$f"
14104          else
14105            # /dev/null tree
14106            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14107 echo "$as_me: error: cannot find input file: $f" >&2;}
14108    { (exit 1); exit 1; }; }
14109          fi;;
14110       esac
14111     done` || { (exit 1); exit 1; }
14112 _ACEOF
14113 cat >>$CONFIG_STATUS <<_ACEOF
14114   sed "$ac_vpsub
14115 $extrasub
14116 _ACEOF
14117 cat >>$CONFIG_STATUS <<\_ACEOF
14118 :t
14119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14120 s,@configure_input@,$configure_input,;t t
14121 s,@srcdir@,$ac_srcdir,;t t
14122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14123 s,@top_srcdir@,$ac_top_srcdir,;t t
14124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14125 s,@builddir@,$ac_builddir,;t t
14126 s,@abs_builddir@,$ac_abs_builddir,;t t
14127 s,@top_builddir@,$ac_top_builddir,;t t
14128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14129 s,@INSTALL@,$ac_INSTALL,;t t
14130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14131   rm -f $tmp/stdin
14132   if test x"$ac_file" != x-; then
14133     mv $tmp/out $ac_file
14134   else
14135     cat $tmp/out
14136     rm -f $tmp/out
14137   fi
14138
14139 done
14140 _ACEOF
14141 cat >>$CONFIG_STATUS <<\_ACEOF
14142
14143 #
14144 # CONFIG_HEADER section.
14145 #
14146
14147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14149 #
14150 # ac_d sets the value in "#define NAME VALUE" lines.
14151 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14152 ac_dB='[         ].*$,\1#\2'
14153 ac_dC=' '
14154 ac_dD=',;t'
14155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14156 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14157 ac_uB='$,\1#\2define\3'
14158 ac_uC=' '
14159 ac_uD=',;t'
14160
14161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14162   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14163   case $ac_file in
14164   - | *:- | *:-:* ) # input from stdin
14165         cat >$tmp/stdin
14166         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14168   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14169         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14170   * )   ac_file_in=$ac_file.in ;;
14171   esac
14172
14173   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14174 echo "$as_me: creating $ac_file" >&6;}
14175
14176   # First look for the input files in the build tree, otherwise in the
14177   # src tree.
14178   ac_file_inputs=`IFS=:
14179     for f in $ac_file_in; do
14180       case $f in
14181       -) echo $tmp/stdin ;;
14182       [\\/$]*)
14183          # Absolute (can't be DOS-style, as IFS=:)
14184          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14185 echo "$as_me: error: cannot find input file: $f" >&2;}
14186    { (exit 1); exit 1; }; }
14187          # Do quote $f, to prevent DOS paths from being IFS'd.
14188          echo "$f";;
14189       *) # Relative
14190          if test -f "$f"; then
14191            # Build tree
14192            echo "$f"
14193          elif test -f "$srcdir/$f"; then
14194            # Source tree
14195            echo "$srcdir/$f"
14196          else
14197            # /dev/null tree
14198            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14199 echo "$as_me: error: cannot find input file: $f" >&2;}
14200    { (exit 1); exit 1; }; }
14201          fi;;
14202       esac
14203     done` || { (exit 1); exit 1; }
14204   # Remove the trailing spaces.
14205   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14206
14207 _ACEOF
14208
14209 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14210 # `conftest.undefs', that substitutes the proper values into
14211 # config.h.in to produce config.h.  The first handles `#define'
14212 # templates, and the second `#undef' templates.
14213 # And first: Protect against being on the right side of a sed subst in
14214 # config.status.  Protect against being in an unquoted here document
14215 # in config.status.
14216 rm -f conftest.defines conftest.undefs
14217 # Using a here document instead of a string reduces the quoting nightmare.
14218 # Putting comments in sed scripts is not portable.
14219 #
14220 # `end' is used to avoid that the second main sed command (meant for
14221 # 0-ary CPP macros) applies to n-ary macro definitions.
14222 # See the Autoconf documentation for `clear'.
14223 cat >confdef2sed.sed <<\_ACEOF
14224 s/[\\&,]/\\&/g
14225 s,[\\$`],\\&,g
14226 t clear
14227 : clear
14228 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14229 t end
14230 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14231 : end
14232 _ACEOF
14233 # If some macros were called several times there might be several times
14234 # the same #defines, which is useless.  Nevertheless, we may not want to
14235 # sort them, since we want the *last* AC-DEFINE to be honored.
14236 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14237 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14238 rm -f confdef2sed.sed
14239
14240 # This sed command replaces #undef with comments.  This is necessary, for
14241 # example, in the case of _POSIX_SOURCE, which is predefined and required
14242 # on some systems where configure will not decide to define it.
14243 cat >>conftest.undefs <<\_ACEOF
14244 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14245 _ACEOF
14246
14247 # Break up conftest.defines because some shells have a limit on the size
14248 # of here documents, and old seds have small limits too (100 cmds).
14249 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14250 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14251 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14252 echo '  :' >>$CONFIG_STATUS
14253 rm -f conftest.tail
14254 while grep . conftest.defines >/dev/null
14255 do
14256   # Write a limited-size here document to $tmp/defines.sed.
14257   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14258   # Speed up: don't consider the non `#define' lines.
14259   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14260   # Work around the forget-to-reset-the-flag bug.
14261   echo 't clr' >>$CONFIG_STATUS
14262   echo ': clr' >>$CONFIG_STATUS
14263   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14264   echo 'CEOF
14265   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14266   rm -f $tmp/in
14267   mv $tmp/out $tmp/in
14268 ' >>$CONFIG_STATUS
14269   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14270   rm -f conftest.defines
14271   mv conftest.tail conftest.defines
14272 done
14273 rm -f conftest.defines
14274 echo '  fi # grep' >>$CONFIG_STATUS
14275 echo >>$CONFIG_STATUS
14276
14277 # Break up conftest.undefs because some shells have a limit on the size
14278 # of here documents, and old seds have small limits too (100 cmds).
14279 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14280 rm -f conftest.tail
14281 while grep . conftest.undefs >/dev/null
14282 do
14283   # Write a limited-size here document to $tmp/undefs.sed.
14284   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14285   # Speed up: don't consider the non `#undef'
14286   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14287   # Work around the forget-to-reset-the-flag bug.
14288   echo 't clr' >>$CONFIG_STATUS
14289   echo ': clr' >>$CONFIG_STATUS
14290   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14291   echo 'CEOF
14292   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14293   rm -f $tmp/in
14294   mv $tmp/out $tmp/in
14295 ' >>$CONFIG_STATUS
14296   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14297   rm -f conftest.undefs
14298   mv conftest.tail conftest.undefs
14299 done
14300 rm -f conftest.undefs
14301
14302 cat >>$CONFIG_STATUS <<\_ACEOF
14303   # Let's still pretend it is `configure' which instantiates (i.e., don't
14304   # use $as_me), people would be surprised to read:
14305   #    /* config.h.  Generated by config.status.  */
14306   if test x"$ac_file" = x-; then
14307     echo "/* Generated by configure.  */" >$tmp/config.h
14308   else
14309     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14310   fi
14311   cat $tmp/in >>$tmp/config.h
14312   rm -f $tmp/in
14313   if test x"$ac_file" != x-; then
14314     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14315       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14316 echo "$as_me: $ac_file is unchanged" >&6;}
14317     else
14318       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320          X"$ac_file" : 'X\(//\)[^/]' \| \
14321          X"$ac_file" : 'X\(//\)$' \| \
14322          X"$ac_file" : 'X\(/\)' \| \
14323          .     : '\(.\)' 2>/dev/null ||
14324 echo X"$ac_file" |
14325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14327           /^X\(\/\/\)$/{ s//\1/; q; }
14328           /^X\(\/\).*/{ s//\1/; q; }
14329           s/.*/./; q'`
14330       { if $as_mkdir_p; then
14331     mkdir -p "$ac_dir"
14332   else
14333     as_dir="$ac_dir"
14334     as_dirs=
14335     while test ! -d "$as_dir"; do
14336       as_dirs="$as_dir $as_dirs"
14337       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14339          X"$as_dir" : 'X\(//\)[^/]' \| \
14340          X"$as_dir" : 'X\(//\)$' \| \
14341          X"$as_dir" : 'X\(/\)' \| \
14342          .     : '\(.\)' 2>/dev/null ||
14343 echo X"$as_dir" |
14344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14346           /^X\(\/\/\)$/{ s//\1/; q; }
14347           /^X\(\/\).*/{ s//\1/; q; }
14348           s/.*/./; q'`
14349     done
14350     test ! -n "$as_dirs" || mkdir $as_dirs
14351   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14353    { (exit 1); exit 1; }; }; }
14354
14355       rm -f $ac_file
14356       mv $tmp/config.h $ac_file
14357     fi
14358   else
14359     cat $tmp/config.h
14360     rm -f $tmp/config.h
14361   fi
14362 # Compute $ac_file's index in $config_headers.
14363 _am_stamp_count=1
14364 for _am_header in $config_headers :; do
14365   case $_am_header in
14366     $ac_file | $ac_file:* )
14367       break ;;
14368     * )
14369       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14370   esac
14371 done
14372 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14373 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14374          X$ac_file : 'X\(//\)[^/]' \| \
14375          X$ac_file : 'X\(//\)$' \| \
14376          X$ac_file : 'X\(/\)' \| \
14377          .     : '\(.\)' 2>/dev/null ||
14378 echo X$ac_file |
14379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14380           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14381           /^X\(\/\/\)$/{ s//\1/; q; }
14382           /^X\(\/\).*/{ s//\1/; q; }
14383           s/.*/./; q'`/stamp-h$_am_stamp_count
14384 done
14385 _ACEOF
14386 cat >>$CONFIG_STATUS <<\_ACEOF
14387
14388 #
14389 # CONFIG_LINKS section.
14390 #
14391
14392 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14393   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14394   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14395
14396   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14397 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14398
14399   if test ! -r $srcdir/$ac_source; then
14400     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14401 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14402    { (exit 1); exit 1; }; }
14403   fi
14404   rm -f $ac_dest
14405
14406   # Make relative symlinks.
14407   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14408 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409          X"$ac_dest" : 'X\(//\)[^/]' \| \
14410          X"$ac_dest" : 'X\(//\)$' \| \
14411          X"$ac_dest" : 'X\(/\)' \| \
14412          .     : '\(.\)' 2>/dev/null ||
14413 echo X"$ac_dest" |
14414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14416           /^X\(\/\/\)$/{ s//\1/; q; }
14417           /^X\(\/\).*/{ s//\1/; q; }
14418           s/.*/./; q'`
14419   { if $as_mkdir_p; then
14420     mkdir -p "$ac_dest_dir"
14421   else
14422     as_dir="$ac_dest_dir"
14423     as_dirs=
14424     while test ! -d "$as_dir"; do
14425       as_dirs="$as_dir $as_dirs"
14426       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14428          X"$as_dir" : 'X\(//\)[^/]' \| \
14429          X"$as_dir" : 'X\(//\)$' \| \
14430          X"$as_dir" : 'X\(/\)' \| \
14431          .     : '\(.\)' 2>/dev/null ||
14432 echo X"$as_dir" |
14433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14434           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14435           /^X\(\/\/\)$/{ s//\1/; q; }
14436           /^X\(\/\).*/{ s//\1/; q; }
14437           s/.*/./; q'`
14438     done
14439     test ! -n "$as_dirs" || mkdir $as_dirs
14440   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14441 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14442    { (exit 1); exit 1; }; }; }
14443
14444   ac_builddir=.
14445
14446 if test "$ac_dest_dir" != .; then
14447   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14448   # A "../" for each directory in $ac_dir_suffix.
14449   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14450 else
14451   ac_dir_suffix= ac_top_builddir=
14452 fi
14453
14454 case $srcdir in
14455   .)  # No --srcdir option.  We are building in place.
14456     ac_srcdir=.
14457     if test -z "$ac_top_builddir"; then
14458        ac_top_srcdir=.
14459     else
14460        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14461     fi ;;
14462   [\\/]* | ?:[\\/]* )  # Absolute path.
14463     ac_srcdir=$srcdir$ac_dir_suffix;
14464     ac_top_srcdir=$srcdir ;;
14465   *) # Relative path.
14466     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14467     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14468 esac
14469
14470 # Do not use `cd foo && pwd` to compute absolute paths, because
14471 # the directories may not exist.
14472 case `pwd` in
14473 .) ac_abs_builddir="$ac_dest_dir";;
14474 *)
14475   case "$ac_dest_dir" in
14476   .) ac_abs_builddir=`pwd`;;
14477   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14478   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14479   esac;;
14480 esac
14481 case $ac_abs_builddir in
14482 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14483 *)
14484   case ${ac_top_builddir}. in
14485   .) ac_abs_top_builddir=$ac_abs_builddir;;
14486   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14487   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14488   esac;;
14489 esac
14490 case $ac_abs_builddir in
14491 .) ac_abs_srcdir=$ac_srcdir;;
14492 *)
14493   case $ac_srcdir in
14494   .) ac_abs_srcdir=$ac_abs_builddir;;
14495   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14496   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14497   esac;;
14498 esac
14499 case $ac_abs_builddir in
14500 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14501 *)
14502   case $ac_top_srcdir in
14503   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14504   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14505   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14506   esac;;
14507 esac
14508
14509
14510   case $srcdir in
14511   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14512       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14513   esac
14514
14515   # Try a symlink, then a hard link, then a copy.
14516   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14517     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14518     cp -p $srcdir/$ac_source $ac_dest ||
14519     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14520 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14521    { (exit 1); exit 1; }; }
14522 done
14523 _ACEOF
14524 cat >>$CONFIG_STATUS <<\_ACEOF
14525
14526 #
14527 # CONFIG_COMMANDS section.
14528 #
14529 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14530   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14531   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14532   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14533 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14534          X"$ac_dest" : 'X\(//\)[^/]' \| \
14535          X"$ac_dest" : 'X\(//\)$' \| \
14536          X"$ac_dest" : 'X\(/\)' \| \
14537          .     : '\(.\)' 2>/dev/null ||
14538 echo X"$ac_dest" |
14539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14541           /^X\(\/\/\)$/{ s//\1/; q; }
14542           /^X\(\/\).*/{ s//\1/; q; }
14543           s/.*/./; q'`
14544   { if $as_mkdir_p; then
14545     mkdir -p "$ac_dir"
14546   else
14547     as_dir="$ac_dir"
14548     as_dirs=
14549     while test ! -d "$as_dir"; do
14550       as_dirs="$as_dir $as_dirs"
14551       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14553          X"$as_dir" : 'X\(//\)[^/]' \| \
14554          X"$as_dir" : 'X\(//\)$' \| \
14555          X"$as_dir" : 'X\(/\)' \| \
14556          .     : '\(.\)' 2>/dev/null ||
14557 echo X"$as_dir" |
14558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14560           /^X\(\/\/\)$/{ s//\1/; q; }
14561           /^X\(\/\).*/{ s//\1/; q; }
14562           s/.*/./; q'`
14563     done
14564     test ! -n "$as_dirs" || mkdir $as_dirs
14565   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14566 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14567    { (exit 1); exit 1; }; }; }
14568
14569   ac_builddir=.
14570
14571 if test "$ac_dir" != .; then
14572   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14573   # A "../" for each directory in $ac_dir_suffix.
14574   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14575 else
14576   ac_dir_suffix= ac_top_builddir=
14577 fi
14578
14579 case $srcdir in
14580   .)  # No --srcdir option.  We are building in place.
14581     ac_srcdir=.
14582     if test -z "$ac_top_builddir"; then
14583        ac_top_srcdir=.
14584     else
14585        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14586     fi ;;
14587   [\\/]* | ?:[\\/]* )  # Absolute path.
14588     ac_srcdir=$srcdir$ac_dir_suffix;
14589     ac_top_srcdir=$srcdir ;;
14590   *) # Relative path.
14591     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14592     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14593 esac
14594
14595 # Do not use `cd foo && pwd` to compute absolute paths, because
14596 # the directories may not exist.
14597 case `pwd` in
14598 .) ac_abs_builddir="$ac_dir";;
14599 *)
14600   case "$ac_dir" in
14601   .) ac_abs_builddir=`pwd`;;
14602   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14603   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14604   esac;;
14605 esac
14606 case $ac_abs_builddir in
14607 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14608 *)
14609   case ${ac_top_builddir}. in
14610   .) ac_abs_top_builddir=$ac_abs_builddir;;
14611   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14612   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14613   esac;;
14614 esac
14615 case $ac_abs_builddir in
14616 .) ac_abs_srcdir=$ac_srcdir;;
14617 *)
14618   case $ac_srcdir in
14619   .) ac_abs_srcdir=$ac_abs_builddir;;
14620   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14621   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14622   esac;;
14623 esac
14624 case $ac_abs_builddir in
14625 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14626 *)
14627   case $ac_top_srcdir in
14628   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14629   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14630   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14631   esac;;
14632 esac
14633
14634
14635   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14636 echo "$as_me: executing $ac_dest commands" >&6;}
14637   case $ac_dest in
14638     default-1 )
14639 # Only add multilib support code if we just rebuilt the top-level
14640 # Makefile.
14641 case " $CONFIG_FILES " in
14642  *" Makefile "*)
14643    ac_file=Makefile . ${multi_basedir}/config-ml.in
14644    ;;
14645 esac ;;
14646     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14647   # Strip MF so we end up with the name of the file.
14648   mf=`echo "$mf" | sed -e 's/:.*$//'`
14649   # Check whether this is an Automake generated Makefile or not.
14650   # We used to match only the files named `Makefile.in', but
14651   # some people rename them; so instead we look at the file content.
14652   # Grep'ing the first line is not enough: some people post-process
14653   # each Makefile.in and add a new line on top of each file to say so.
14654   # So let's grep whole file.
14655   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14656     dirpart=`(dirname "$mf") 2>/dev/null ||
14657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14658          X"$mf" : 'X\(//\)[^/]' \| \
14659          X"$mf" : 'X\(//\)$' \| \
14660          X"$mf" : 'X\(/\)' \| \
14661          .     : '\(.\)' 2>/dev/null ||
14662 echo X"$mf" |
14663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14665           /^X\(\/\/\)$/{ s//\1/; q; }
14666           /^X\(\/\).*/{ s//\1/; q; }
14667           s/.*/./; q'`
14668   else
14669     continue
14670   fi
14671   # Extract the definition of DEPDIR, am__include, and am__quote
14672   # from the Makefile without running `make'.
14673   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14674   test -z "$DEPDIR" && continue
14675   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14676   test -z "am__include" && continue
14677   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14678   # When using ansi2knr, U may be empty or an underscore; expand it
14679   U=`sed -n 's/^U = //p' < "$mf"`
14680   # Find all dependency output files, they are included files with
14681   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14682   # simplest approach to changing $(DEPDIR) to its actual value in the
14683   # expansion.
14684   for file in `sed -n "
14685     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14686        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14687     # Make sure the directory exists.
14688     test -f "$dirpart/$file" && continue
14689     fdir=`(dirname "$file") 2>/dev/null ||
14690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691          X"$file" : 'X\(//\)[^/]' \| \
14692          X"$file" : 'X\(//\)$' \| \
14693          X"$file" : 'X\(/\)' \| \
14694          .     : '\(.\)' 2>/dev/null ||
14695 echo X"$file" |
14696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14698           /^X\(\/\/\)$/{ s//\1/; q; }
14699           /^X\(\/\).*/{ s//\1/; q; }
14700           s/.*/./; q'`
14701     { if $as_mkdir_p; then
14702     mkdir -p $dirpart/$fdir
14703   else
14704     as_dir=$dirpart/$fdir
14705     as_dirs=
14706     while test ! -d "$as_dir"; do
14707       as_dirs="$as_dir $as_dirs"
14708       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710          X"$as_dir" : 'X\(//\)[^/]' \| \
14711          X"$as_dir" : 'X\(//\)$' \| \
14712          X"$as_dir" : 'X\(/\)' \| \
14713          .     : '\(.\)' 2>/dev/null ||
14714 echo X"$as_dir" |
14715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14717           /^X\(\/\/\)$/{ s//\1/; q; }
14718           /^X\(\/\).*/{ s//\1/; q; }
14719           s/.*/./; q'`
14720     done
14721     test ! -n "$as_dirs" || mkdir $as_dirs
14722   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14723 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14724    { (exit 1); exit 1; }; }; }
14725
14726     # echo "creating $dirpart/$file"
14727     echo '# dummy' > "$dirpart/$file"
14728   done
14729 done
14730  ;;
14731     libtool )
14732
14733     # See if we are running on zsh, and set the options which allow our
14734     # commands through without removal of \ escapes.
14735     if test -n "${ZSH_VERSION+set}" ; then
14736       setopt NO_GLOB_SUBST
14737     fi
14738
14739     cfgfile="${ofile}T"
14740     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14741     $RM "$cfgfile"
14742
14743     cat <<_LT_EOF >> "$cfgfile"
14744 #! $SHELL
14745
14746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14747 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14750 #
14751 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14752 # 2006, 2007 Free Software Foundation, Inc.
14753 #
14754 # This file is part of GNU Libtool:
14755 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14756 #
14757 # This program is free software; you can redistribute it and/or modify
14758 # it under the terms of the GNU General Public License as published by
14759 # the Free Software Foundation; either version 2 of the License, or
14760 # (at your option) any later version.
14761 #
14762 # This program is distributed in the hope that it will be useful, but
14763 # WITHOUT ANY WARRANTY; without even the implied warranty of
14764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14765 # General Public License for more details.
14766 #
14767 # You should have received a copy of the GNU General Public License
14768 # along with this program; if not, a copy can be downloaded from
14769 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14770 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14771 # MA 02110-1301, USA.
14772 #
14773 # As a special exception to the GNU General Public License, if you
14774 # distribute this file as part of a program that contains a
14775 # configuration script generated by Autoconf, you may include it under
14776 # the same distribution terms that you use for the rest of that program.
14777
14778
14779 # The names of the tagged configurations supported by this script.
14780 available_tags=""
14781
14782 # ### BEGIN LIBTOOL CONFIG
14783
14784 # Which release of libtool.m4 was used?
14785 macro_version=$macro_version
14786 macro_revision=$macro_revision
14787
14788 # Whether or not to build shared libraries.
14789 build_libtool_libs=$enable_shared
14790
14791 # Whether or not to build static libraries.
14792 build_old_libs=$enable_static
14793
14794 # What type of objects to build.
14795 pic_mode=$pic_mode
14796
14797 # Whether or not to optimize for fast installation.
14798 fast_install=$enable_fast_install
14799
14800 # The host system.
14801 host_alias=$host_alias
14802 host=$host
14803 host_os=$host_os
14804
14805 # The build system.
14806 build_alias=$build_alias
14807 build=$build
14808 build_os=$build_os
14809
14810 # A sed program that does not truncate output.
14811 SED=$lt_SED
14812
14813 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14814 Xsed="\$SED -e 1s/^X//"
14815
14816 # A grep program that handles long lines.
14817 GREP=$lt_GREP
14818
14819 # An ERE matcher.
14820 EGREP=$lt_EGREP
14821
14822 # A literal string matcher.
14823 FGREP=$lt_FGREP
14824
14825 # A BSD- or MS-compatible name lister.
14826 NM=$lt_NM
14827
14828 # Whether we need soft or hard links.
14829 LN_S=$lt_LN_S
14830
14831 # What is the maximum length of a command?
14832 max_cmd_len=$max_cmd_len
14833
14834 # Object file suffix (normally "o").
14835 objext=$ac_objext
14836
14837 # Executable file suffix (normally "").
14838 exeext=$exeext
14839
14840 # whether the shell understands "unset".
14841 lt_unset=$lt_unset
14842
14843 # turn spaces into newlines.
14844 SP2NL=$lt_lt_SP2NL
14845
14846 # turn newlines into spaces.
14847 NL2SP=$lt_lt_NL2SP
14848
14849 # How to create reloadable object files.
14850 reload_flag=$lt_reload_flag
14851 reload_cmds=$lt_reload_cmds
14852
14853 # Method to check whether dependent libraries are shared objects.
14854 deplibs_check_method=$lt_deplibs_check_method
14855
14856 # Command to use when deplibs_check_method == "file_magic".
14857 file_magic_cmd=$lt_file_magic_cmd
14858
14859 # The archiver.
14860 AR=$lt_AR
14861 AR_FLAGS=$lt_AR_FLAGS
14862
14863 # A symbol stripping program.
14864 STRIP=$lt_STRIP
14865
14866 # Commands used to install an old-style archive.
14867 RANLIB=$lt_RANLIB
14868 old_postinstall_cmds=$lt_old_postinstall_cmds
14869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14870
14871 # A C compiler.
14872 LTCC=$lt_CC
14873
14874 # LTCC compiler flags.
14875 LTCFLAGS=$lt_CFLAGS
14876
14877 # Take the output of nm and produce a listing of raw symbols and C names.
14878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879
14880 # Transform the output of nm in a proper C declaration.
14881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882
14883 # Transform the output of nm in a C name address pair.
14884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885
14886 # The name of the directory that contains temporary libtool files.
14887 objdir=$objdir
14888
14889 # Shell to use when invoking shell scripts.
14890 SHELL=$lt_SHELL
14891
14892 # An echo program that does not interpret backslashes.
14893 ECHO=$lt_ECHO
14894
14895 # Used to examine libraries when file_magic_cmd begins with "file".
14896 MAGIC_CMD=$MAGIC_CMD
14897
14898 # Must we lock files when doing compilation?
14899 need_locks=$lt_need_locks
14900
14901 # Old archive suffix (normally "a").
14902 libext=$libext
14903
14904 # Shared library suffix (normally ".so").
14905 shrext_cmds=$lt_shrext_cmds
14906
14907 # The commands to extract the exported symbol list from a shared archive.
14908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14909
14910 # Variables whose values should be saved in libtool wrapper scripts and
14911 # restored at link time.
14912 variables_saved_for_relink=$lt_variables_saved_for_relink
14913
14914 # Do we need the "lib" prefix for modules?
14915 need_lib_prefix=$need_lib_prefix
14916
14917 # Do we need a version for libraries?
14918 need_version=$need_version
14919
14920 # Library versioning type.
14921 version_type=$version_type
14922
14923 # Shared library runtime path variable.
14924 runpath_var=$runpath_var
14925
14926 # Shared library path variable.
14927 shlibpath_var=$shlibpath_var
14928
14929 # Is shlibpath searched before the hard-coded library search path?
14930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14931
14932 # Format of library name prefix.
14933 libname_spec=$lt_libname_spec
14934
14935 # List of archive names.  First name is the real one, the rest are links.
14936 # The last name is the one that the linker finds with -lNAME
14937 library_names_spec=$lt_library_names_spec
14938
14939 # The coded name of the library, if different from the real name.
14940 soname_spec=$lt_soname_spec
14941
14942 # Command to use after installation of a shared archive.
14943 postinstall_cmds=$lt_postinstall_cmds
14944
14945 # Command to use after uninstallation of a shared archive.
14946 postuninstall_cmds=$lt_postuninstall_cmds
14947
14948 # Commands used to finish a libtool library installation in a directory.
14949 finish_cmds=$lt_finish_cmds
14950
14951 # As "finish_cmds", except a single script fragment to be evaled but
14952 # not shown.
14953 finish_eval=$lt_finish_eval
14954
14955 # Whether we should hardcode library paths into libraries.
14956 hardcode_into_libs=$hardcode_into_libs
14957
14958 # Compile-time system search path for libraries.
14959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14960
14961 # Run-time system search path for libraries.
14962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14963
14964 # Whether dlopen is supported.
14965 dlopen_support=$enable_dlopen
14966
14967 # Whether dlopen of programs is supported.
14968 dlopen_self=$enable_dlopen_self
14969
14970 # Whether dlopen of statically linked programs is supported.
14971 dlopen_self_static=$enable_dlopen_self_static
14972
14973 # Commands to strip libraries.
14974 old_striplib=$lt_old_striplib
14975 striplib=$lt_striplib
14976
14977
14978 # The linker used to build libraries.
14979 LD=$lt_LD
14980
14981 # Commands used to build an old-style archive.
14982 old_archive_cmds=$lt_old_archive_cmds
14983
14984 # A language specific compiler.
14985 CC=$lt_compiler
14986
14987 # Is the compiler the GNU compiler?
14988 with_gcc=$GCC
14989
14990 # Compiler flag to turn off builtin functions.
14991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992
14993 # How to pass a linker flag through the compiler.
14994 wl=$lt_lt_prog_compiler_wl
14995
14996 # Additional compiler flags for building library objects.
14997 pic_flag=$lt_lt_prog_compiler_pic
14998
14999 # Compiler flag to prevent dynamic linking.
15000 link_static_flag=$lt_lt_prog_compiler_static
15001
15002 # Does compiler simultaneously support -c and -o options?
15003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15004
15005 # Whether or not to add -lc for building shared libraries.
15006 build_libtool_need_lc=$archive_cmds_need_lc
15007
15008 # Whether or not to disallow shared libs when runtime libs are static.
15009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15010
15011 # Compiler flag to allow reflexive dlopens.
15012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15013
15014 # Compiler flag to generate shared objects directly from archives.
15015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15016
15017 # Whether the compiler copes with passing no objects directly.
15018 compiler_needs_object=$lt_compiler_needs_object
15019
15020 # Create an old-style archive from a shared archive.
15021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15022
15023 # Create a temporary old-style archive to link instead of a shared archive.
15024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15025
15026 # Commands used to build a shared archive.
15027 archive_cmds=$lt_archive_cmds
15028 archive_expsym_cmds=$lt_archive_expsym_cmds
15029
15030 # Commands used to build a loadable module if different from building
15031 # a shared archive.
15032 module_cmds=$lt_module_cmds
15033 module_expsym_cmds=$lt_module_expsym_cmds
15034
15035 # Whether we are building with GNU ld or not.
15036 with_gnu_ld=$lt_with_gnu_ld
15037
15038 # Flag that allows shared libraries with undefined symbols to be built.
15039 allow_undefined_flag=$lt_allow_undefined_flag
15040
15041 # Flag that enforces no undefined symbols.
15042 no_undefined_flag=$lt_no_undefined_flag
15043
15044 # Flag to hardcode \$libdir into a binary during linking.
15045 # This must work even if \$libdir does not exist
15046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15047
15048 # If ld is used when linking, flag to hardcode \$libdir into a binary
15049 # during linking.  This must work even if \$libdir does not exist.
15050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15051
15052 # Whether we need a single "-rpath" flag with a separated argument.
15053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15054
15055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15056 # DIR into the resulting binary.
15057 hardcode_direct=$hardcode_direct
15058
15059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15060 # DIR into the resulting binary and the resulting library dependency is
15061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15062 # library is relocated.
15063 hardcode_direct_absolute=$hardcode_direct_absolute
15064
15065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15066 # into the resulting binary.
15067 hardcode_minus_L=$hardcode_minus_L
15068
15069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15070 # into the resulting binary.
15071 hardcode_shlibpath_var=$hardcode_shlibpath_var
15072
15073 # Set to "yes" if building a shared library automatically hardcodes DIR
15074 # into the library and all subsequent libraries and executables linked
15075 # against it.
15076 hardcode_automatic=$hardcode_automatic
15077
15078 # Set to yes if linker adds runtime paths of dependent libraries
15079 # to runtime path list.
15080 inherit_rpath=$inherit_rpath
15081
15082 # Whether libtool must link a program against all its dependency libraries.
15083 link_all_deplibs=$link_all_deplibs
15084
15085 # Fix the shell variable \$srcfile for the compiler.
15086 fix_srcfile_path=$lt_fix_srcfile_path
15087
15088 # Set to "yes" if exported symbols are required.
15089 always_export_symbols=$always_export_symbols
15090
15091 # The commands to list exported symbols.
15092 export_symbols_cmds=$lt_export_symbols_cmds
15093
15094 # Symbols that should not be listed in the preloaded symbols.
15095 exclude_expsyms=$lt_exclude_expsyms
15096
15097 # Symbols that must always be exported.
15098 include_expsyms=$lt_include_expsyms
15099
15100 # Commands necessary for linking programs (against libraries) with templates.
15101 prelink_cmds=$lt_prelink_cmds
15102
15103 # Specify filename containing input files.
15104 file_list_spec=$lt_file_list_spec
15105
15106 # How to hardcode a shared library path into an executable.
15107 hardcode_action=$hardcode_action
15108
15109 # ### END LIBTOOL CONFIG
15110
15111 _LT_EOF
15112
15113   case $host_os in
15114   aix3*)
15115     cat <<\_LT_EOF >> "$cfgfile"
15116 # AIX sometimes has problems with the GCC collect2 program.  For some
15117 # reason, if we set the COLLECT_NAMES environment variable, the problems
15118 # vanish in a puff of smoke.
15119 if test "X${COLLECT_NAMES+set}" != Xset; then
15120   COLLECT_NAMES=
15121   export COLLECT_NAMES
15122 fi
15123 _LT_EOF
15124     ;;
15125   esac
15126
15127
15128 ltmain="$ac_aux_dir/ltmain.sh"
15129
15130
15131   # We use sed instead of cat because bash on DJGPP gets confused if
15132   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15133   # text mode, it properly converts lines to CR/LF.  This bash problem
15134   # is reportedly fixed, but why not run on old versions too?
15135   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15136     || (rm -f "$cfgfile"; exit 1)
15137
15138   case $xsi_shell in
15139   yes)
15140     cat << \_LT_EOF >> "$cfgfile"
15141 # func_dirname file append nondir_replacement
15142 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15143 # otherwise set result to NONDIR_REPLACEMENT.
15144 func_dirname ()
15145 {
15146   case ${1} in
15147     */*) func_dirname_result="${1%/*}${2}" ;;
15148     *  ) func_dirname_result="${3}" ;;
15149   esac
15150 }
15151
15152 # func_basename file
15153 func_basename ()
15154 {
15155   func_basename_result="${1##*/}"
15156 }
15157
15158 # func_stripname prefix suffix name
15159 # strip PREFIX and SUFFIX off of NAME.
15160 # PREFIX and SUFFIX must not contain globbing or regex special
15161 # characters, hashes, percent signs, but SUFFIX may contain a leading
15162 # dot (in which case that matches only a dot).
15163 func_stripname ()
15164 {
15165   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15166   # positional parameters, so assign one to ordinary parameter first.
15167   func_stripname_result=${3}
15168   func_stripname_result=${func_stripname_result#"${1}"}
15169   func_stripname_result=${func_stripname_result%"${2}"}
15170 }
15171
15172 # func_opt_split
15173 func_opt_split ()
15174 {
15175   func_opt_split_opt=${1%%=*}
15176   func_opt_split_arg=${1#*=}
15177 }
15178
15179 # func_lo2o object
15180 func_lo2o ()
15181 {
15182   case ${1} in
15183     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15184     *)    func_lo2o_result=${1} ;;
15185   esac
15186 }
15187 _LT_EOF
15188     ;;
15189   *) # Bourne compatible functions.
15190     cat << \_LT_EOF >> "$cfgfile"
15191 # func_dirname file append nondir_replacement
15192 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15193 # otherwise set result to NONDIR_REPLACEMENT.
15194 func_dirname ()
15195 {
15196   # Extract subdirectory from the argument.
15197   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15198   if test "X$func_dirname_result" = "X${1}"; then
15199     func_dirname_result="${3}"
15200   else
15201     func_dirname_result="$func_dirname_result${2}"
15202   fi
15203 }
15204
15205 # func_basename file
15206 func_basename ()
15207 {
15208   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15209 }
15210
15211 # func_stripname prefix suffix name
15212 # strip PREFIX and SUFFIX off of NAME.
15213 # PREFIX and SUFFIX must not contain globbing or regex special
15214 # characters, hashes, percent signs, but SUFFIX may contain a leading
15215 # dot (in which case that matches only a dot).
15216 # func_strip_suffix prefix name
15217 func_stripname ()
15218 {
15219   case ${2} in
15220     .*) func_stripname_result=`$ECHO "X${3}" \
15221            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15222     *)  func_stripname_result=`$ECHO "X${3}" \
15223            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15224   esac
15225 }
15226
15227 # sed scripts:
15228 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15229 my_sed_long_arg='1s/^-[^=]*=//'
15230
15231 # func_opt_split
15232 func_opt_split ()
15233 {
15234   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15235   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15236 }
15237
15238 # func_lo2o object
15239 func_lo2o ()
15240 {
15241   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15242 }
15243 _LT_EOF
15244 esac
15245
15246 case $lt_shell_append in
15247   yes)
15248     cat << \_LT_EOF >> "$cfgfile"
15249
15250 # func_append var value
15251 # Append VALUE to the end of shell variable VAR.
15252 func_append ()
15253 {
15254   eval "$1+=\$2"
15255 }
15256 _LT_EOF
15257     ;;
15258   *)
15259     cat << \_LT_EOF >> "$cfgfile"
15260
15261 # func_append var value
15262 # Append VALUE to the end of shell variable VAR.
15263 func_append ()
15264 {
15265   eval "$1=\$$1\$2"
15266 }
15267 _LT_EOF
15268     ;;
15269   esac
15270
15271
15272   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15273     || (rm -f "$cfgfile"; exit 1)
15274
15275   mv -f "$cfgfile" "$ofile" ||
15276     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15277   chmod +x "$ofile"
15278
15279  ;;
15280     include ) test -d include || mkdir include ;;
15281     src )
15282 test -d src || mkdir src
15283 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15284  ;;
15285   esac
15286 done
15287 _ACEOF
15288
15289 cat >>$CONFIG_STATUS <<\_ACEOF
15290
15291 { (exit 0); exit 0; }
15292 _ACEOF
15293 chmod +x $CONFIG_STATUS
15294 ac_clean_files=$ac_clean_files_save
15295
15296
15297 # configure is writing to config.log, and then calls config.status.
15298 # config.status does its own redirection, appending to config.log.
15299 # Unfortunately, on DOS this fails, as config.log is still kept open
15300 # by configure, so config.status won't be able to write to it; its
15301 # output is simply discarded.  So we exec the FD to /dev/null,
15302 # effectively closing config.log, so it can be properly (re)opened and
15303 # appended to by config.status.  When coming back to configure, we
15304 # need to make the FD available again.
15305 if test "$no_create" != yes; then
15306   ac_cs_success=:
15307   ac_config_status_args=
15308   test "$silent" = yes &&
15309     ac_config_status_args="$ac_config_status_args --quiet"
15310   exec 5>/dev/null
15311   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15312   exec 5>>config.log
15313   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15314   # would make configure fail if this is the last instruction.
15315   $ac_cs_success || { (exit 1); exit 1; }
15316 fi
15317