* Makefile.am: Run "make dep-am".
[external/binutils.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 PLUGINS_TRUE PLUGINS_FALSE DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG LIBM SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size supports_plugins bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
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_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
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 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928   # Omit some internal or obsolete options to make the list less imposing.
929   # This message is too long to be a string in the A/UX 3.1 sh.
930   cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941   -h, --help              display this help and exit
942       --help=short        display options specific to this package
943       --help=recursive    display the short help of all the included packages
944   -V, --version           display version information and exit
945   -q, --quiet, --silent   do not print \`checking...' messages
946       --cache-file=FILE   cache test results in FILE [disabled]
947   -C, --config-cache      alias for \`--cache-file=config.cache'
948   -n, --no-create         do not create output files
949       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953   cat <<_ACEOF
954 Installation directories:
955   --prefix=PREFIX         install architecture-independent files in PREFIX
956                           [$ac_default_prefix]
957   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958                           [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968   --bindir=DIR           user executables [EPREFIX/bin]
969   --sbindir=DIR          system admin executables [EPREFIX/sbin]
970   --libexecdir=DIR       program executables [EPREFIX/libexec]
971   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975   --libdir=DIR           object code libraries [EPREFIX/lib]
976   --includedir=DIR       C header files [PREFIX/include]
977   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978   --infodir=DIR          info documentation [PREFIX/info]
979   --mandir=DIR           man documentation [PREFIX/man]
980 _ACEOF
981
982   cat <<\_ACEOF
983
984 Program names:
985   --program-prefix=PREFIX            prepend PREFIX to installed program names
986   --program-suffix=SUFFIX            append SUFFIX to installed program names
987   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989 System types:
990   --build=BUILD     configure for building on BUILD [guessed]
991   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992   --target=TARGET   configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --disable-dependency-tracking  speeds up one-time build
1004   --enable-dependency-tracking   do not reject slow dependency extractors
1005   --enable-shared[=PKGS]
1006                           build shared libraries [default=no]
1007   --enable-static[=PKGS]
1008                           build static libraries [default=yes]
1009   --enable-fast-install[=PKGS]
1010                           optimize for fast installation [default=yes]
1011   --disable-libtool-lock  avoid locking (might break parallel builds)
1012   --enable-plugins        linker plugins (defaults no)
1013   --disable-largefile     omit support for large files
1014   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1015   --enable-targets        alternative target configurations
1016   --enable-secureplt      Default to creating read-only plt entries
1017   --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018   --enable-werror         treat compile warnings as errors
1019   --enable-build-warnings enable build-time compiler warnings
1020   --enable-maintainer-mode  enable make rules and dependencies not useful
1021                           (and sometimes confusing) to the casual installer
1022   --enable-install-libbfd controls installation of libbfd and related headers
1023   --disable-nls           do not use Native Language Support
1024
1025 Optional Packages:
1026   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1027   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1028   --with-pic              try to use only PIC/non-PIC objects [default=use
1029                           both]
1030   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1031   --with-mmap             try using mmap for BFD input files if available
1032   --with-separate-debug-dir=DIR
1033                           Look for global separate debug info in DIR
1034                           [default=LIBDIR/debug]
1035   --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1036                           Binutils"
1037   --with-bugurl=URL       Direct users to URL to report a bug
1038
1039 Some influential environment variables:
1040   CC          C compiler command
1041   CFLAGS      C compiler flags
1042   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043               nonstandard directory <lib dir>
1044   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045               headers in a nonstandard directory <include dir>
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if test "$ac_init_help" = "recursive"; then
1055   # If there are subdirs, report their specific --help.
1056   ac_popdir=`pwd`
1057   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058     test -d $ac_dir || continue
1059     ac_builddir=.
1060
1061 if test "$ac_dir" != .; then
1062   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063   # A "../" for each directory in $ac_dir_suffix.
1064   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066   ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $srcdir in
1070   .)  # No --srcdir option.  We are building in place.
1071     ac_srcdir=.
1072     if test -z "$ac_top_builddir"; then
1073        ac_top_srcdir=.
1074     else
1075        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076     fi ;;
1077   [\\/]* | ?:[\\/]* )  # Absolute path.
1078     ac_srcdir=$srcdir$ac_dir_suffix;
1079     ac_top_srcdir=$srcdir ;;
1080   *) # Relative path.
1081     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1084
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `pwd` in
1088 .) ac_abs_builddir="$ac_dir";;
1089 *)
1090   case "$ac_dir" in
1091   .) ac_abs_builddir=`pwd`;;
1092   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094   esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *)
1099   case ${ac_top_builddir}. in
1100   .) ac_abs_top_builddir=$ac_abs_builddir;;
1101   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103   esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1107 *)
1108   case $ac_srcdir in
1109   .) ac_abs_srcdir=$ac_abs_builddir;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *)
1117   case $ac_top_srcdir in
1118   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121   esac;;
1122 esac
1123
1124     cd $ac_dir
1125     # Check for guested configure; otherwise get Cygnus style configure.
1126     if test -f $ac_srcdir/configure.gnu; then
1127       echo
1128       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1129     elif test -f $ac_srcdir/configure; then
1130       echo
1131       $SHELL $ac_srcdir/configure  --help=recursive
1132     elif test -f $ac_srcdir/configure.ac ||
1133            test -f $ac_srcdir/configure.in; then
1134       echo
1135       $ac_configure --help
1136     else
1137       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138     fi
1139     cd $ac_popdir
1140   done
1141 fi
1142
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145   cat <<\_ACEOF
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151   exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59.  Invocation command line was
1160
1161   $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178
1179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192   IFS=$as_save_IFS
1193   test -z "$as_dir" && as_dir=.
1194   echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221   for ac_arg
1222   do
1223     case $ac_arg in
1224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226     | -silent | --silent | --silen | --sile | --sil)
1227       continue ;;
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     esac
1231     case $ac_pass in
1232     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233     2)
1234       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235       if test $ac_must_keep_next = true; then
1236         ac_must_keep_next=false # Got value, back to normal.
1237       else
1238         case $ac_arg in
1239           *=* | --config-cache | -C | -disable-* | --disable-* \
1240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242           | -with-* | --with-* | -without-* | --without-* | --x)
1243             case "$ac_configure_args0 " in
1244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245             esac
1246             ;;
1247           -* ) ac_must_keep_next=true ;;
1248         esac
1249       fi
1250       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251       # Get rid of the leading space.
1252       ac_sep=" "
1253       ;;
1254     esac
1255   done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log.  We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266   # Save into config.log some information that might help in debugging.
1267   {
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275     echo
1276     # The following way of writing the cache mishandles newlines in values,
1277 {
1278   (set) 2>&1 |
1279     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280     *ac_space=\ *)
1281       sed -n \
1282         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284       ;;
1285     *)
1286       sed -n \
1287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288       ;;
1289     esac;
1290 }
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298     echo
1299     for ac_var in $ac_subst_vars
1300     do
1301       eval ac_val=$`echo $ac_var`
1302       echo "$ac_var='"'"'$ac_val'"'"'"
1303     done | sort
1304     echo
1305
1306     if test -n "$ac_subst_files"; then
1307       cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312       echo
1313       for ac_var in $ac_subst_files
1314       do
1315         eval ac_val=$`echo $ac_var`
1316         echo "$ac_var='"'"'$ac_val'"'"'"
1317       done | sort
1318       echo
1319     fi
1320
1321     if test -s confdefs.h; then
1322       cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327       echo
1328       sed "/^$/d" confdefs.h | sort
1329       echo
1330     fi
1331     test "$ac_signal" != 0 &&
1332       echo "$as_me: caught signal $ac_signal"
1333     echo "$as_me: exit $exit_status"
1334   } >&5
1335   rm -f core *.core &&
1336   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337     exit $exit_status
1338      ' 0
1339 for ac_signal in 1 2 13 15; do
1340   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379   if test "x$prefix" != xNONE; then
1380     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381   else
1382     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383   fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386   if test -r "$ac_site_file"; then
1387     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389     sed 's/^/| /' "$ac_site_file" >&5
1390     . "$ac_site_file"
1391   fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395   # Some versions of bash will fail to source /dev/null (special
1396   # files actually), so we avoid doing that.
1397   if test -f "$cache_file"; then
1398     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400     case $cache_file in
1401       [\\/]* | ?:[\\/]* ) . $cache_file;;
1402       *)                      . ./$cache_file;;
1403     esac
1404   fi
1405 else
1406   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408   >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417   eval ac_new_set=\$ac_env_${ac_var}_set
1418   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419   eval ac_new_val="\$ac_env_${ac_var}_value"
1420   case $ac_old_set,$ac_new_set in
1421     set,)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,set)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,);;
1430     *)
1431       if test "x$ac_old_val" != "x$ac_new_val"; then
1432         # differences in whitespace do not lead to failure.
1433         ac_old_val_w=`echo x $ac_old_val`
1434         ac_new_val_w=`echo x $ac_new_val`
1435         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438           ac_cache_corrupted=:
1439         else
1440           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442           eval $ac_var=\$ac_old_val
1443         fi
1444         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1445 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1446         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1447 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1448       fi;;
1449   esac
1450   # Pass precious variables to config.status.
1451   if test "$ac_new_set" = set; then
1452     case $ac_new_val in
1453     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455     *) ac_arg=$ac_var=$ac_new_val ;;
1456     esac
1457     case " $ac_configure_args " in
1458       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1459       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460     esac
1461   fi
1462 done
1463 if $ac_cache_corrupted; then
1464   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470    { (exit 1); exit 1; }; }
1471 fi
1472
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 ac_aux_dir=
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504   if test -f $ac_dir/install-sh; then
1505     ac_aux_dir=$ac_dir
1506     ac_install_sh="$ac_aux_dir/install-sh -c"
1507     break
1508   elif test -f $ac_dir/install.sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install.sh -c"
1511     break
1512   elif test -f $ac_dir/shtool; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/shtool install -c"
1515     break
1516   fi
1517 done
1518 if test -z "$ac_aux_dir"; then
1519   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521    { (exit 1); exit 1; }; }
1522 fi
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531    { (exit 1); exit 1; }; }
1532
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540   ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544    { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566   ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1575 host=$ac_cv_host
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588   ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592    { (exit 1); exit 1; }; }
1593
1594 fi
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606   test "$program_prefix$program_suffix$program_transform_name" = \
1607     NONENONEs,x,x, &&
1608   program_prefix=${target_alias}-
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   if test -n "$CC"; then
1623   ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   for ac_exec_ext in '' $ac_executable_extensions; do
1631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634     break 2
1635   fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643   echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$ac_cv_prog_CC"; then
1652   ac_ct_CC=$CC
1653   # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   if test -n "$ac_ct_CC"; then
1661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     ac_cv_prog_ac_ct_CC="gcc"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684   echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688   CC=$ac_ct_CC
1689 else
1690   CC="$ac_cv_prog_CC"
1691 fi
1692
1693 if test -z "$CC"; then
1694   if test -n "$ac_tool_prefix"; then
1695   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="${ac_tool_prefix}cc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$ac_cv_prog_CC"; then
1732   ac_ct_CC=$CC
1733   # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="cc"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   CC=$ac_ct_CC
1769 else
1770   CC="$ac_cv_prog_CC"
1771 fi
1772
1773 fi
1774 if test -z "$CC"; then
1775   # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$CC"; then
1783   ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785   ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794        ac_prog_rejected=yes
1795        continue
1796      fi
1797     ac_cv_prog_CC="cc"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 if test $ac_prog_rejected = yes; then
1805   # We found a bogon in the path, so make sure we never use it.
1806   set dummy $ac_cv_prog_CC
1807   shift
1808   if test $# != 0; then
1809     # We chose a different compiler from the bogus one.
1810     # However, it has the same basename, so the bogon will be chosen
1811     # first if we set CC to just the basename; use the full file name.
1812     shift
1813     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814   fi
1815 fi
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$CC"; then
1829   if test -n "$ac_tool_prefix"; then
1830   for ac_prog in cl
1831   do
1832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   if test -n "$CC"; then
1840   ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845   IFS=$as_save_IFS
1846   test -z "$as_dir" && as_dir=.
1847   for ac_exec_ext in '' $ac_executable_extensions; do
1848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851     break 2
1852   fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860   echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867     test -n "$CC" && break
1868   done
1869 fi
1870 if test -z "$CC"; then
1871   ac_ct_CC=$CC
1872   for ac_prog in cl
1873 do
1874   # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   test -n "$ac_ct_CC" && break
1910 done
1911
1912   CC=$ac_ct_CC
1913 fi
1914
1915 fi
1916
1917
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924    { (exit 1); exit 1; }; }; }
1925
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928      "checking for C compiler version" >&5
1929 ac_compiler=`set X $ac_compile; echo $2`
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931   (eval $ac_compiler --version </dev/null >&5) 2>&5
1932   ac_status=$?
1933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934   (exit $ac_status); }
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936   (eval $ac_compiler -v </dev/null >&5) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941   (eval $ac_compiler -V </dev/null >&5) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }
1945
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h.  */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h.  */
1952
1953 int
1954 main ()
1955 {
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1965 # of exeext.
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970   (eval $ac_link_default) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }; then
1974   # Find the output, starting from the most likely.  This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # resort.
1977
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 ac_cv_exeext=
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 do
1984   test -f "$ac_file" || continue
1985   case $ac_file in
1986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987         ;;
1988     conftest.$ac_ext )
1989         # This is the source file.
1990         ;;
1991     [ab].out )
1992         # We found the default executable, but exeext='' is most
1993         # certainly right.
1994         break;;
1995     *.* )
1996         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997         # FIXME: I believe we export ac_cv_exeext for Libtool,
1998         # but it would be cool to find out if it's true.  Does anybody
1999         # maintain Libtool? --akim.
2000         export ac_cv_exeext
2001         break;;
2002     * )
2003         break;;
2004   esac
2005 done
2006 else
2007   echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016    { (exit 77); exit 77; }; }; }
2017 fi
2018
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2022
2023 # Check the compiler produces executables we can run.  If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030   if { ac_try='./$ac_file'
2031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032   (eval $ac_try) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; }; then
2036     cross_compiling=no
2037   else
2038     if test "$cross_compiling" = maybe; then
2039         cross_compiling=yes
2040     else
2041         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049    { (exit 1); exit 1; }; }; }
2050     fi
2051   fi
2052 fi
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2055
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_clean_files=$ac_clean_files_save
2058 # Check the compiler produces executables we can run.  If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2064
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068   (eval $ac_link) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; then
2072   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 # `rm'.
2076 for ac_file in conftest.exe conftest conftest.*; do
2077   test -f "$ac_file" || continue
2078   case $ac_file in
2079     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081           export ac_cv_exeext
2082           break;;
2083     * ) break;;
2084   esac
2085 done
2086 else
2087   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093    { (exit 1); exit 1; }; }; }
2094 fi
2095
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2102 ac_exeext=$EXEEXT
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h.  */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h.  */
2114
2115 int
2116 main ()
2117 {
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125   (eval $ac_compile) 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }; then
2129   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130   case $ac_file in
2131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133        break;;
2134   esac
2135 done
2136 else
2137   echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146    { (exit 1); exit 1; }; }; }
2147 fi
2148
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h.  */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h.  */
2166
2167 int
2168 main ()
2169 {
2170 #ifndef __GNUC__
2171        choke me
2172 #endif
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>conftest.er1
2181   ac_status=$?
2182   grep -v '^ *+' conftest.er1 >conftest.err
2183   rm -f conftest.er1
2184   cat conftest.err >&5
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); } &&
2187          { ac_try='test -z "$ac_c_werror_flag"
2188                          || test ! -s conftest.err'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; } &&
2194          { ac_try='test -s conftest.$ac_objext'
2195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196   (eval $ac_try) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; }; then
2200   ac_compiler_gnu=yes
2201 else
2202   echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_compiler_gnu=no
2206 fi
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2216 CFLAGS="-g"
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h.  */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h.  */
2228
2229 int
2230 main ()
2231 {
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -z "$ac_c_werror_flag"
2247                          || test ! -s conftest.err'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   ac_cv_prog_cc_g=yes
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 ac_cv_prog_cc_g=no
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271   CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273   if test "$GCC" = yes; then
2274     CFLAGS="-g -O2"
2275   else
2276     CFLAGS="-g"
2277   fi
2278 else
2279   if test "$GCC" = yes; then
2280     CFLAGS="-O2"
2281   else
2282     CFLAGS=
2283   fi
2284 fi
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   ac_cv_prog_cc_stdc=no
2291 ac_save_CC=$CC
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298 #include <stdarg.h>
2299 #include <stdio.h>
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2306      char **p;
2307      int i;
2308 {
2309   return p[i];
2310 }
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2312 {
2313   char *s;
2314   va_list v;
2315   va_start (v,p);
2316   s = g (p, va_arg (v,int));
2317   va_end (v);
2318   return s;
2319 }
2320
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2322    function prototypes and stuff, but not '\xHH' hex character constants.
2323    These don't provoke an error unfortunately, instead are silently treated
2324    as 'x'.  The following induces an error, until -std1 is added to get
2325    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2326    array size at least.  It's necessary to write '\x00'==0 to get something
2327    that's true only with -std1.  */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 int argc;
2335 char **argv;
2336 int
2337 main ()
2338 {
2339 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX                   -qlanglvl=ansi
2347 # Ultrix and OSF/1      -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2350 # SVR4                  -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 do
2353   CC="$ac_save_CC $ac_arg"
2354   rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>conftest.er1
2357   ac_status=$?
2358   grep -v '^ *+' conftest.er1 >conftest.err
2359   rm -f conftest.er1
2360   cat conftest.err >&5
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -z "$ac_c_werror_flag"
2364                          || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   ac_cv_prog_cc_stdc=$ac_arg
2377 break
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.err conftest.$ac_objext
2384 done
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2386 CC=$ac_save_CC
2387
2388 fi
2389
2390 case "x$ac_cv_prog_cc_stdc" in
2391   x|xno)
2392     echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2394   *)
2395     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397     CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 esac
2399
2400 # Some people use a C++ compiler to compile C.  Since we use `exit',
2401 # in C++ we need to declare it.  In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #ifndef __cplusplus
2406   choke me
2407 #endif
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -z "$ac_c_werror_flag"
2419                          || test ! -s conftest.err'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; } &&
2425          { ac_try='test -s conftest.$ac_objext'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; }; then
2431   for ac_declaration in \
2432    '' \
2433    'extern "C" void std::exit (int) throw (); using std::exit;' \
2434    'extern "C" void std::exit (int); using std::exit;' \
2435    'extern "C" void exit (int) throw ();' \
2436    'extern "C" void exit (int);' \
2437    'void exit (int);'
2438 do
2439   cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445 $ac_declaration
2446 #include <stdlib.h>
2447 int
2448 main ()
2449 {
2450 exit (42);
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457   (eval $ac_compile) 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -z "$ac_c_werror_flag"
2465                          || test ! -s conftest.err'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   :
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491 $ac_declaration
2492 int
2493 main ()
2494 {
2495 exit (42);
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"
2510                          || test ! -s conftest.err'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; }; then
2522   break
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 rm -f conftest*
2531 if test -n "$ac_declaration"; then
2532   echo '#ifdef __cplusplus' >>confdefs.h
2533   echo $ac_declaration      >>confdefs.h
2534   echo '#endif'             >>confdefs.h
2535 fi
2536
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 fi
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
2550 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552 if test "${ac_cv_search_strerror+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   ac_func_search_save_LIBS=$LIBS
2556 ac_cv_search_strerror=no
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 /* Override any gcc2 internal prototype to avoid an error.  */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 /* We use char because int might match the return type of a gcc2
2569    builtin and then its argument prototype would still apply.  */
2570 char strerror ();
2571 int
2572 main ()
2573 {
2574 strerror ();
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581   (eval $ac_link) 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag"
2589                          || test ! -s conftest.err'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; } &&
2595          { ac_try='test -s conftest$ac_exeext'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_cv_search_strerror="none required"
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 fi
2607 rm -f conftest.err conftest.$ac_objext \
2608       conftest$ac_exeext conftest.$ac_ext
2609 if test "$ac_cv_search_strerror" = no; then
2610   for ac_lib in cposix; do
2611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2612     cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 /* Override any gcc2 internal prototype to avoid an error.  */
2620 #ifdef __cplusplus
2621 extern "C"
2622 #endif
2623 /* We use char because int might match the return type of a gcc2
2624    builtin and then its argument prototype would still apply.  */
2625 char strerror ();
2626 int
2627 main ()
2628 {
2629 strerror ();
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636   (eval $ac_link) 2>conftest.er1
2637   ac_status=$?
2638   grep -v '^ *+' conftest.er1 >conftest.err
2639   rm -f conftest.er1
2640   cat conftest.err >&5
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -z "$ac_c_werror_flag"
2644                          || test ! -s conftest.err'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; } &&
2650          { ac_try='test -s conftest$ac_exeext'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; }; then
2656   ac_cv_search_strerror="-l$ac_lib"
2657 break
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 fi
2663 rm -f conftest.err conftest.$ac_objext \
2664       conftest$ac_exeext conftest.$ac_ext
2665   done
2666 fi
2667 LIBS=$ac_func_search_save_LIBS
2668 fi
2669 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671 if test "$ac_cv_search_strerror" != no; then
2672   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2673
2674 fi
2675
2676
2677 am__api_version="1.9"
2678 # Find a good install program.  We prefer a C program (faster),
2679 # so one script is as good as another.  But avoid the broken or
2680 # incompatible versions:
2681 # SysV /etc/install, /usr/sbin/install
2682 # SunOS /usr/etc/install
2683 # IRIX /sbin/install
2684 # AIX /bin/install
2685 # AmigaOS /C/install, which installs bootblocks on floppy discs
2686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703   # Account for people who put trailing slashes in PATH elements.
2704 case $as_dir/ in
2705   ./ | .// | /cC/* | \
2706   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708   /usr/ucb/* ) ;;
2709   *)
2710     # OSF1 and SCO ODT 3.0 have their own names for install.
2711     # Don't use installbsd from OSF since it installs stuff as root
2712     # by default.
2713     for ac_prog in ginstall scoinst install; do
2714       for ac_exec_ext in '' $ac_executable_extensions; do
2715         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2716           if test $ac_prog = install &&
2717             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718             # AIX install.  It has an incompatible calling convention.
2719             :
2720           elif test $ac_prog = install &&
2721             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722             # program-specific install script used by HP pwplus--don't use.
2723             :
2724           else
2725             rm -rf conftest.one conftest.two conftest.dir
2726             echo one > conftest.one
2727             echo two > conftest.two
2728             mkdir conftest.dir
2729             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730               test -s conftest.one && test -s conftest.two &&
2731               test -s conftest.dir/conftest.one &&
2732               test -s conftest.dir/conftest.two
2733             then
2734               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735               break 3
2736             fi
2737           fi
2738         fi
2739       done
2740     done
2741     ;;
2742 esac
2743 done
2744
2745 rm -rf conftest.one conftest.two conftest.dir
2746
2747 fi
2748   if test "${ac_cv_path_install+set}" = set; then
2749     INSTALL=$ac_cv_path_install
2750   else
2751     # As a last resort, use the slow shell script.  Don't cache a
2752     # value for INSTALL within a source directory, because that will
2753     # break other packages using the cache if that directory is
2754     # removed, or if the value is a relative name.
2755     INSTALL=$ac_install_sh
2756   fi
2757 fi
2758 echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6
2760
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
2769 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Do `set' in a subshell so we don't clobber the current shell's
2775 # arguments.  Must try -L first in case configure is actually a
2776 # symlink; some systems play weird games with the mod time of symlinks
2777 # (eg FreeBSD returns the mod time of the symlink's containing
2778 # directory).
2779 if (
2780    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781    if test "$*" = "X"; then
2782       # -L didn't work.
2783       set X `ls -t $srcdir/configure conftest.file`
2784    fi
2785    rm -f conftest.file
2786    if test "$*" != "X $srcdir/configure conftest.file" \
2787       && test "$*" != "X conftest.file $srcdir/configure"; then
2788
2789       # If neither matched, then we have a broken ls.  This can happen
2790       # if, for instance, CONFIG_SHELL is bash and it inherits a
2791       # broken ls alias from the environment.  This has actually
2792       # happened.  Such a system could not be considered "sane".
2793       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2796 alias in your environment" >&2;}
2797    { (exit 1); exit 1; }; }
2798    fi
2799
2800    test "$2" = conftest.file
2801    )
2802 then
2803    # Ok.
2804    :
2805 else
2806    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810    { (exit 1); exit 1; }; }
2811 fi
2812 echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2814 test "$program_prefix" != NONE &&
2815   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819 # Double any \ or $.  echo might interpret backslashes.
2820 # By default was `s,x,x', remove it if useless.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2823 _ACEOF
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825 rm conftest.sed
2826
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833   am_missing_run="$MISSING --run "
2834 else
2835   am_missing_run=
2836   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838 fi
2839
2840 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841   # We used to keeping the `.' as first argument, in order to
2842   # allow $(mkdir_p) to be used without argument.  As in
2843   #   $(mkdir_p) $(somedir)
2844   # where $(somedir) is conditionally defined.  However this is wrong
2845   # for two reasons:
2846   #  1. if the package is installed by a user who cannot write `.'
2847   #     make install will fail,
2848   #  2. the above comment should most certainly read
2849   #     $(mkdir_p) $(DESTDIR)$(somedir)
2850   #     so it does not work when $(somedir) is undefined and
2851   #     $(DESTDIR) is not.
2852   #  To support the latter case, we have to write
2853   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854   #  so the `.' trick is pointless.
2855   mkdir_p='mkdir -p --'
2856 else
2857   # On NextStep and OpenStep, the `mkdir' command does not
2858   # recognize any option.  It will interpret all options as
2859   # directories to create, and then abort because `.' already
2860   # exists.
2861   for d in ./-p ./--version;
2862   do
2863     test -d $d && rmdir $d
2864   done
2865   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866   if test -f "$ac_aux_dir/mkinstalldirs"; then
2867     mkdir_p='$(mkinstalldirs)'
2868   else
2869     mkdir_p='$(install_sh) -d'
2870   fi
2871 fi
2872
2873 for ac_prog in gawk mawk nawk awk
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_AWK+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$AWK"; then
2883   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     ac_cv_prog_AWK="$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899 fi
2900 fi
2901 AWK=$ac_cv_prog_AWK
2902 if test -n "$AWK"; then
2903   echo "$as_me:$LINENO: result: $AWK" >&5
2904 echo "${ECHO_T}$AWK" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910   test -n "$AWK" && break
2911 done
2912
2913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   cat >conftest.make <<\_ACEOF
2920 all:
2921         @echo 'ac_maketemp="$(MAKE)"'
2922 _ACEOF
2923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925 if test -n "$ac_maketemp"; then
2926   eval ac_cv_prog_make_${ac_make}_set=yes
2927 else
2928   eval ac_cv_prog_make_${ac_make}_set=no
2929 fi
2930 rm -f conftest.make
2931 fi
2932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933   echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935   SET_MAKE=
2936 else
2937   echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939   SET_MAKE="MAKE=${MAKE-make}"
2940 fi
2941
2942 rm -rf .tst 2>/dev/null
2943 mkdir .tst 2>/dev/null
2944 if test -d .tst; then
2945   am__leading_dot=.
2946 else
2947   am__leading_dot=_
2948 fi
2949 rmdir .tst 2>/dev/null
2950
2951 DEPDIR="${am__leading_dot}deps"
2952
2953           ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959         @echo done
2960 .PHONY: am__doit
2961 END
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976    am__include=include
2977    am__quote=
2978    _am_result=GNU
2979 fi
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982    echo '.include "confinc"' > confmf
2983    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984       am__include=.include
2985       am__quote="\""
2986       _am_result=BSD
2987    fi
2988 fi
2989
2990
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2994
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997   enableval="$enable_dependency_tracking"
2998
2999 fi;
3000 if test "x$enable_dependency_tracking" != xno; then
3001   am_depcomp="$ac_aux_dir/depcomp"
3002   AMDEPBACKSLASH='\'
3003 fi
3004
3005
3006 if test "x$enable_dependency_tracking" != xno; then
3007   AMDEP_TRUE=
3008   AMDEP_FALSE='#'
3009 else
3010   AMDEP_TRUE='#'
3011   AMDEP_FALSE=
3012 fi
3013
3014
3015
3016 # test to see if srcdir already configured
3017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018    test -f $srcdir/config.status; then
3019   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021    { (exit 1); exit 1; }; }
3022 fi
3023
3024 # test whether we have cygpath
3025 if test -z "$CYGPATH_W"; then
3026   if (cygpath --version) >/dev/null 2>/dev/null; then
3027     CYGPATH_W='cygpath -w'
3028   else
3029     CYGPATH_W=echo
3030   fi
3031 fi
3032
3033
3034 # Define the identity of the package.
3035  PACKAGE=bfd
3036  VERSION=2.19.51
3037
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3041 _ACEOF
3042
3043
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3046 _ACEOF
3047
3048 # Some tools Automake needs.
3049
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063
3064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'.  However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071   if test -n "$ac_tool_prefix"; then
3072   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_STRIP+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   if test -n "$STRIP"; then
3080   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094 done
3095
3096 fi
3097 fi
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100   echo "$as_me:$LINENO: result: $STRIP" >&5
3101 echo "${ECHO_T}$STRIP" >&6
3102 else
3103   echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 fi
3106
3107 fi
3108 if test -z "$ac_cv_prog_STRIP"; then
3109   ac_ct_STRIP=$STRIP
3110   # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if test -n "$ac_ct_STRIP"; then
3118   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125   for ac_exec_ext in '' $ac_executable_extensions; do
3126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_ac_ct_STRIP="strip"
3128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132 done
3133
3134   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135 fi
3136 fi
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140 echo "${ECHO_T}$ac_ct_STRIP" >&6
3141 else
3142   echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144 fi
3145
3146   STRIP=$ac_ct_STRIP
3147 else
3148   STRIP="$ac_cv_prog_STRIP"
3149 fi
3150
3151 fi
3152 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153
3154 # We need awk for the "check" target.  The system "awk" is bad on
3155 # some platforms.
3156 # Always define AMTAR for backward compatibility.
3157
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
3162
3163
3164
3165 depcc="$CC"   am_compiler_list=
3166
3167 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173   # We make a subdir and do the tests there.  Otherwise we can end up
3174   # making bogus files that we don't know about and never remove.  For
3175   # instance it was reported that on HP-UX the gcc test will end up
3176   # making a dummy file named `D' -- because `-MD' means `put the output
3177   # in D'.
3178   mkdir conftest.dir
3179   # Copy depcomp to subdir because otherwise we won't find it if we're
3180   # using a relative directory.
3181   cp "$am_depcomp" conftest.dir
3182   cd conftest.dir
3183   # We will build objects and dependencies in a subdirectory because
3184   # it helps to detect inapplicable dependency modes.  For instance
3185   # both Tru64's cc and ICC support -MD to output dependencies as a
3186   # side effect of compilation, but ICC will put the dependencies in
3187   # the current directory while Tru64 will put them in the object
3188   # directory.
3189   mkdir sub
3190
3191   am_cv_CC_dependencies_compiler_type=none
3192   if test "$am_compiler_list" = ""; then
3193      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194   fi
3195   for depmode in $am_compiler_list; do
3196     # Setup a source with many dependencies, because some compilers
3197     # like to wrap large dependency lists on column 80 (with \), and
3198     # we should not choose a depcomp mode which is confused by this.
3199     #
3200     # We need to recreate these files for each test, as the compiler may
3201     # overwrite some of them when testing with obscure command lines.
3202     # This happens at least with the AIX C compiler.
3203     : > sub/conftest.c
3204     for i in 1 2 3 4 5 6; do
3205       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207       # Solaris 8's {/usr,}/bin/sh.
3208       touch sub/conftst$i.h
3209     done
3210     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211
3212     case $depmode in
3213     nosideeffect)
3214       # after this tag, mechanisms are not by side-effect, so they'll
3215       # only be used when explicitly requested
3216       if test "x$enable_dependency_tracking" = xyes; then
3217         continue
3218       else
3219         break
3220       fi
3221       ;;
3222     none) break ;;
3223     esac
3224     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225     # mode.  It turns out that the SunPro C++ compiler does not properly
3226     # handle `-M -o', and we need to detect this.
3227     if depmode=$depmode \
3228        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231          >/dev/null 2>conftest.err &&
3232        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235       # icc doesn't choke on unknown options, it will just issue warnings
3236       # or remarks (even with -Werror).  So we grep stderr for any message
3237       # that says an option was ignored or not supported.
3238       # When given -MP, icc 7.0 and 7.1 complain thusly:
3239       #   icc: Command line warning: ignoring option '-M'; no argument required
3240       # The diagnosis changed in icc 8.0:
3241       #   icc: Command line remark: option '-MP' not supported
3242       if (grep 'ignoring option' conftest.err ||
3243           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244         am_cv_CC_dependencies_compiler_type=$depmode
3245         break
3246       fi
3247     fi
3248   done
3249
3250   cd ..
3251   rm -rf conftest.dir
3252 else
3253   am_cv_CC_dependencies_compiler_type=none
3254 fi
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3260
3261
3262
3263 if
3264   test "x$enable_dependency_tracking" != xno \
3265   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266   am__fastdepCC_TRUE=
3267   am__fastdepCC_FALSE='#'
3268 else
3269   am__fastdepCC_TRUE='#'
3270   am__fastdepCC_FALSE=
3271 fi
3272
3273
3274
3275
3276 if test -n "$ac_tool_prefix"; then
3277   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ar; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_AR+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if test -n "$AR"; then
3285   ac_cv_prog_AR="$AR" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   for ac_exec_ext in '' $ac_executable_extensions; do
3293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294     ac_cv_prog_AR="${ac_tool_prefix}ar"
3295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299 done
3300
3301 fi
3302 fi
3303 AR=$ac_cv_prog_AR
3304 if test -n "$AR"; then
3305   echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3307 else
3308   echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 fi
3313 if test -z "$ac_cv_prog_AR"; then
3314   ac_ct_AR=$AR
3315   # Extract the first word of "ar", so it can be a program name with args.
3316 set dummy ar; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   if test -n "$ac_ct_AR"; then
3323   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330   for ac_exec_ext in '' $ac_executable_extensions; do
3331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     ac_cv_prog_ac_ct_AR="ar"
3333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337 done
3338
3339 fi
3340 fi
3341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342 if test -n "$ac_ct_AR"; then
3343   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344 echo "${ECHO_T}$ac_ct_AR" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349
3350   AR=$ac_ct_AR
3351 else
3352   AR="$ac_cv_prog_AR"
3353 fi
3354
3355 if test -n "$ac_tool_prefix"; then
3356   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -n "$RANLIB"; then
3364   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378 done
3379
3380 fi
3381 fi
3382 RANLIB=$ac_cv_prog_RANLIB
3383 if test -n "$RANLIB"; then
3384   echo "$as_me:$LINENO: result: $RANLIB" >&5
3385 echo "${ECHO_T}$RANLIB" >&6
3386 else
3387   echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390
3391 fi
3392 if test -z "$ac_cv_prog_RANLIB"; then
3393   ac_ct_RANLIB=$RANLIB
3394   # Extract the first word of "ranlib", so it can be a program name with args.
3395 set dummy ranlib; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   if test -n "$ac_ct_RANLIB"; then
3402   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409   for ac_exec_ext in '' $ac_executable_extensions; do
3410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411     ac_cv_prog_ac_ct_RANLIB="ranlib"
3412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416 done
3417
3418   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3419 fi
3420 fi
3421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422 if test -n "$ac_ct_RANLIB"; then
3423   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 else
3426   echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430   RANLIB=$ac_ct_RANLIB
3431 else
3432   RANLIB="$ac_cv_prog_RANLIB"
3433 fi
3434
3435
3436 # Check whether --enable-shared or --disable-shared was given.
3437 if test "${enable_shared+set}" = set; then
3438   enableval="$enable_shared"
3439   p=${PACKAGE-default}
3440     case $enableval in
3441     yes) enable_shared=yes ;;
3442     no) enable_shared=no ;;
3443     *)
3444       enable_shared=no
3445       # Look at the argument we got.  We use all the common list separators.
3446       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447       for pkg in $enableval; do
3448         IFS="$lt_save_ifs"
3449         if test "X$pkg" = "X$p"; then
3450           enable_shared=yes
3451         fi
3452       done
3453       IFS="$lt_save_ifs"
3454       ;;
3455     esac
3456 else
3457   enable_shared=no
3458 fi;
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -n "$ac_tool_prefix"; then
3474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_CC+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if test -n "$CC"; then
3482   ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487   IFS=$as_save_IFS
3488   test -z "$as_dir" && as_dir=.
3489   for ac_exec_ext in '' $ac_executable_extensions; do
3490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493     break 2
3494   fi
3495 done
3496 done
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502   echo "$as_me:$LINENO: result: $CC" >&5
3503 echo "${ECHO_T}$CC" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 fi
3510 if test -z "$ac_cv_prog_CC"; then
3511   ac_ct_CC=$CC
3512   # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if test -n "$ac_ct_CC"; then
3520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_ac_ct_CC="gcc"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536 fi
3537 fi
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6
3542 else
3543   echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547   CC=$ac_ct_CC
3548 else
3549   CC="$ac_cv_prog_CC"
3550 fi
3551
3552 if test -z "$CC"; then
3553   if test -n "$ac_tool_prefix"; then
3554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}cc; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_CC+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -n "$CC"; then
3562   ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     ac_cv_prog_CC="${ac_tool_prefix}cc"
3572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576 done
3577
3578 fi
3579 fi
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582   echo "$as_me:$LINENO: result: $CC" >&5
3583 echo "${ECHO_T}$CC" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 fi
3590 if test -z "$ac_cv_prog_CC"; then
3591   ac_ct_CC=$CC
3592   # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597   echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599   if test -n "$ac_ct_CC"; then
3600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for ac_exec_ext in '' $ac_executable_extensions; do
3608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_prog_ac_ct_CC="cc"
3610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614 done
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621 echo "${ECHO_T}$ac_ct_CC" >&6
3622 else
3623   echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3625 fi
3626
3627   CC=$ac_ct_CC
3628 else
3629   CC="$ac_cv_prog_CC"
3630 fi
3631
3632 fi
3633 if test -z "$CC"; then
3634   # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644   ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650   for ac_exec_ext in '' $ac_executable_extensions; do
3651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653        ac_prog_rejected=yes
3654        continue
3655      fi
3656     ac_cv_prog_CC="cc"
3657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661 done
3662
3663 if test $ac_prog_rejected = yes; then
3664   # We found a bogon in the path, so make sure we never use it.
3665   set dummy $ac_cv_prog_CC
3666   shift
3667   if test $# != 0; then
3668     # We chose a different compiler from the bogus one.
3669     # However, it has the same basename, so the bogon will be chosen
3670     # first if we set CC to just the basename; use the full file name.
3671     shift
3672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673   fi
3674 fi
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 fi
3687 if test -z "$CC"; then
3688   if test -n "$ac_tool_prefix"; then
3689   for ac_prog in cl
3690   do
3691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   if test -n "$CC"; then
3699   ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719   echo "$as_me:$LINENO: result: $CC" >&5
3720 echo "${ECHO_T}$CC" >&6
3721 else
3722   echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724 fi
3725
3726     test -n "$CC" && break
3727   done
3728 fi
3729 if test -z "$CC"; then
3730   ac_ct_CC=$CC
3731   for ac_prog in cl
3732 do
3733   # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if test -n "$ac_ct_CC"; then
3741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750     ac_cv_prog_ac_ct_CC="$ac_prog"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755 done
3756
3757 fi
3758 fi
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6
3763 else
3764   echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768   test -n "$ac_ct_CC" && break
3769 done
3770
3771   CC=$ac_ct_CC
3772 fi
3773
3774 fi
3775
3776
3777 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." >&2;}
3783    { (exit 1); exit 1; }; }; }
3784
3785 # Provide some information about the compiler.
3786 echo "$as_me:$LINENO:" \
3787      "checking for C compiler version" >&5
3788 ac_compiler=`set X $ac_compile; echo $2`
3789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790   (eval $ac_compiler --version </dev/null >&5) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }
3794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795   (eval $ac_compiler -v </dev/null >&5) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }
3799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800   (eval $ac_compiler -V </dev/null >&5) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }
3804
3805 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820 #ifndef __GNUC__
3821        choke me
3822 #endif
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830   (eval $ac_compile) 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -z "$ac_c_werror_flag"
3838                          || test ! -s conftest.err'
3839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840   (eval $ac_try) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }; } &&
3844          { ac_try='test -s conftest.$ac_objext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   ac_compiler_gnu=yes
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 ac_compiler_gnu=no
3856 fi
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860 fi
3861 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 CFLAGS="-g"
3867 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869 if test "${ac_cv_prog_cc_g+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889   (eval $ac_compile) 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896          { ac_try='test -z "$ac_c_werror_flag"
3897                          || test ! -s conftest.err'
3898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899   (eval $ac_try) 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); }; } &&
3903          { ac_try='test -s conftest.$ac_objext'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   ac_cv_prog_cc_g=yes
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ac_cv_prog_cc_g=no
3915 fi
3916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920 if test "$ac_test_CFLAGS" = set; then
3921   CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923   if test "$GCC" = yes; then
3924     CFLAGS="-g -O2"
3925   else
3926     CFLAGS="-g"
3927   fi
3928 else
3929   if test "$GCC" = yes; then
3930     CFLAGS="-O2"
3931   else
3932     CFLAGS=
3933   fi
3934 fi
3935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   ac_cv_prog_cc_stdc=no
3941 ac_save_CC=$CC
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <stdarg.h>
3949 #include <stdio.h>
3950 #include <sys/types.h>
3951 #include <sys/stat.h>
3952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3953 struct buf { int x; };
3954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955 static char *e (p, i)
3956      char **p;
3957      int i;
3958 {
3959   return p[i];
3960 }
3961 static char *f (char * (*g) (char **, int), char **p, ...)
3962 {
3963   char *s;
3964   va_list v;
3965   va_start (v,p);
3966   s = g (p, va_arg (v,int));
3967   va_end (v);
3968   return s;
3969 }
3970
3971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3972    function prototypes and stuff, but not '\xHH' hex character constants.
3973    These don't provoke an error unfortunately, instead are silently treated
3974    as 'x'.  The following induces an error, until -std1 is added to get
3975    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3976    array size at least.  It's necessary to write '\x00'==0 to get something
3977    that's true only with -std1.  */
3978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984 int argc;
3985 char **argv;
3986 int
3987 main ()
3988 {
3989 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 # Don't try gcc -ansi; that turns off useful extensions and
3995 # breaks some systems' header files.
3996 # AIX                   -qlanglvl=ansi
3997 # Ultrix and OSF/1      -std1
3998 # HP-UX 10.20 and later -Ae
3999 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4000 # SVR4                  -Xc -D__EXTENSIONS__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 do
4003   CC="$ac_save_CC $ac_arg"
4004   rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006   (eval $ac_compile) 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag"
4014                          || test ! -s conftest.err'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; } &&
4020          { ac_try='test -s conftest.$ac_objext'
4021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022   (eval $ac_try) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; }; then
4026   ac_cv_prog_cc_stdc=$ac_arg
4027 break
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 fi
4033 rm -f conftest.err conftest.$ac_objext
4034 done
4035 rm -f conftest.$ac_ext conftest.$ac_objext
4036 CC=$ac_save_CC
4037
4038 fi
4039
4040 case "x$ac_cv_prog_cc_stdc" in
4041   x|xno)
4042     echo "$as_me:$LINENO: result: none needed" >&5
4043 echo "${ECHO_T}none needed" >&6 ;;
4044   *)
4045     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047     CC="$CC $ac_cv_prog_cc_stdc" ;;
4048 esac
4049
4050 # Some people use a C++ compiler to compile C.  Since we use `exit',
4051 # in C++ we need to declare it.  In case someone uses the same compiler
4052 # for both compiling C and C++ we need to have the C++ compiler decide
4053 # the declaration of exit, since it's the most demanding environment.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #ifndef __cplusplus
4056   choke me
4057 #endif
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068          { ac_try='test -z "$ac_c_werror_flag"
4069                          || test ! -s conftest.err'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; } &&
4075          { ac_try='test -s conftest.$ac_objext'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   for ac_declaration in \
4082    '' \
4083    'extern "C" void std::exit (int) throw (); using std::exit;' \
4084    'extern "C" void std::exit (int); using std::exit;' \
4085    'extern "C" void exit (int) throw ();' \
4086    'extern "C" void exit (int);' \
4087    'void exit (int);'
4088 do
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_declaration
4096 #include <stdlib.h>
4097 int
4098 main ()
4099 {
4100 exit (42);
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107   (eval $ac_compile) 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } &&
4114          { ac_try='test -z "$ac_c_werror_flag"
4115                          || test ! -s conftest.err'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; } &&
4121          { ac_try='test -s conftest.$ac_objext'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   :
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 continue
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 $ac_declaration
4142 int
4143 main ()
4144 {
4145 exit (42);
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag"
4160                          || test ! -s conftest.err'
4161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162   (eval $ac_try) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; } &&
4166          { ac_try='test -s conftest.$ac_objext'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   break
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 rm -f conftest*
4181 if test -n "$ac_declaration"; then
4182   echo '#ifdef __cplusplus' >>confdefs.h
4183   echo $ac_declaration      >>confdefs.h
4184   echo '#endif'             >>confdefs.h
4185 fi
4186
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 fi
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199
4200 cat >>confdefs.h <<\_ACEOF
4201 #define _GNU_SOURCE 1
4202 _ACEOF
4203
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214   CPP=
4215 fi
4216 if test -z "$CPP"; then
4217   if test "${ac_cv_prog_CPP+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220       # Double quotes because CPP needs to be expanded
4221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222     do
4223       ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4225 do
4226   # Use a header file that comes with gcc, so configuring glibc
4227   # with a fresh cross-compiler works.
4228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229   # <limits.h> exists even on freestanding compilers.
4230   # On the NeXT, cc -E runs the code through the compiler's parser,
4231   # not just through cpp. "Syntax error" is here to catch this case.
4232   cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243                      Syntax error
4244 _ACEOF
4245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247   ac_status=$?
4248   grep -v '^ *+' conftest.er1 >conftest.err
4249   rm -f conftest.er1
4250   cat conftest.err >&5
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); } >/dev/null; then
4253   if test -s conftest.err; then
4254     ac_cpp_err=$ac_c_preproc_warn_flag
4255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256   else
4257     ac_cpp_err=
4258   fi
4259 else
4260   ac_cpp_err=yes
4261 fi
4262 if test -z "$ac_cpp_err"; then
4263   :
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268   # Broken: fails on valid input.
4269 continue
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272
4273   # OK, works on sane cases.  Now check whether non-existent headers
4274   # can be detected and how.
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } >/dev/null; then
4291   if test -s conftest.err; then
4292     ac_cpp_err=$ac_c_preproc_warn_flag
4293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294   else
4295     ac_cpp_err=
4296   fi
4297 else
4298   ac_cpp_err=yes
4299 fi
4300 if test -z "$ac_cpp_err"; then
4301   # Broken: success on invalid input.
4302 continue
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307   # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4310 fi
4311 rm -f conftest.err conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4317   break
4318 fi
4319
4320     done
4321     ac_cv_prog_CPP=$CPP
4322
4323 fi
4324   CPP=$ac_cv_prog_CPP
4325 else
4326   ac_cv_prog_CPP=$CPP
4327 fi
4328 echo "$as_me:$LINENO: result: $CPP" >&5
4329 echo "${ECHO_T}$CPP" >&6
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333   # Use a header file that comes with gcc, so configuring glibc
4334   # with a fresh cross-compiler works.
4335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336   # <limits.h> exists even on freestanding compilers.
4337   # On the NeXT, cc -E runs the code through the compiler's parser,
4338   # not just through cpp. "Syntax error" is here to catch this case.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350                      Syntax error
4351 _ACEOF
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } >/dev/null; then
4360   if test -s conftest.err; then
4361     ac_cpp_err=$ac_c_preproc_warn_flag
4362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363   else
4364     ac_cpp_err=
4365   fi
4366 else
4367   ac_cpp_err=yes
4368 fi
4369 if test -z "$ac_cpp_err"; then
4370   :
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375   # Broken: fails on valid input.
4376 continue
4377 fi
4378 rm -f conftest.err conftest.$ac_ext
4379
4380   # OK, works on sane cases.  Now check whether non-existent headers
4381   # can be detected and how.
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392   ac_status=$?
4393   grep -v '^ *+' conftest.er1 >conftest.err
4394   rm -f conftest.er1
4395   cat conftest.err >&5
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } >/dev/null; then
4398   if test -s conftest.err; then
4399     ac_cpp_err=$ac_c_preproc_warn_flag
4400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401   else
4402     ac_cpp_err=
4403   fi
4404 else
4405   ac_cpp_err=yes
4406 fi
4407 if test -z "$ac_cpp_err"; then
4408   # Broken: success on invalid input.
4409 continue
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414   # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4417 fi
4418 rm -f conftest.err conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4424   :
4425 else
4426   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432    { (exit 1); exit 1; }; }; }
4433 fi
4434
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442 echo "$as_me:$LINENO: checking for egrep" >&5
4443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444 if test "${ac_cv_prog_egrep+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448     then ac_cv_prog_egrep='grep -E'
4449     else ac_cv_prog_egrep='egrep'
4450     fi
4451 fi
4452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454  EGREP=$ac_cv_prog_egrep
4455
4456
4457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdc+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4472
4473 int
4474 main ()
4475 {
4476
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483   (eval $ac_compile) 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } &&
4490          { ac_try='test -z "$ac_c_werror_flag"
4491                          || test ! -s conftest.err'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; } &&
4497          { ac_try='test -s conftest.$ac_objext'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   ac_cv_header_stdc=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511
4512 if test $ac_cv_header_stdc = yes; then
4513   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514   cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520 #include <string.h>
4521
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524   $EGREP "memchr" >/dev/null 2>&1; then
4525   :
4526 else
4527   ac_cv_header_stdc=no
4528 fi
4529 rm -f conftest*
4530
4531 fi
4532
4533 if test $ac_cv_header_stdc = yes; then
4534   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535   cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541 #include <stdlib.h>
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545   $EGREP "free" >/dev/null 2>&1; then
4546   :
4547 else
4548   ac_cv_header_stdc=no
4549 fi
4550 rm -f conftest*
4551
4552 fi
4553
4554 if test $ac_cv_header_stdc = yes; then
4555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556   if test "$cross_compiling" = yes; then
4557   :
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 #include <ctype.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571                    (('a' <= (c) && (c) <= 'i') \
4572                      || ('j' <= (c) && (c) <= 'r') \
4573                      || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4576
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int
4579 main ()
4580 {
4581   int i;
4582   for (i = 0; i < 256; i++)
4583     if (XOR (islower (i), ISLOWER (i))
4584         || toupper (i) != TOUPPER (i))
4585       exit(2);
4586   exit (0);
4587 }
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591   (eval $ac_link) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   :
4601 else
4602   echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ( exit $ac_status )
4607 ac_cv_header_stdc=no
4608 fi
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 fi
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4616
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4620
4621 fi
4622
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634                   inttypes.h stdint.h unistd.h
4635 do
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 $ac_includes_default
4649
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"
4662                          || test ! -s conftest.err'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest.$ac_objext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   eval "$as_ac_Header=yes"
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 eval "$as_ac_Header=no"
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686   cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4689
4690 fi
4691
4692 done
4693
4694
4695
4696   if test "${ac_cv_header_minix_config_h+set}" = set; then
4697   echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704 else
4705   # Is the header compilable?
4706 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 $ac_includes_default
4715 #include <minix/config.h>
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719   (eval $ac_compile) 2>conftest.er1
4720   ac_status=$?
4721   grep -v '^ *+' conftest.er1 >conftest.err
4722   rm -f conftest.er1
4723   cat conftest.err >&5
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } &&
4726          { ac_try='test -z "$ac_c_werror_flag"
4727                          || test ! -s conftest.err'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; } &&
4733          { ac_try='test -s conftest.$ac_objext'
4734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735   (eval $ac_try) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }; }; then
4739   ac_header_compiler=yes
4740 else
4741   echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_header_compiler=no
4745 fi
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4749
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 #include <minix/config.h>
4760 _ACEOF
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763   ac_status=$?
4764   grep -v '^ *+' conftest.er1 >conftest.err
4765   rm -f conftest.er1
4766   cat conftest.err >&5
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } >/dev/null; then
4769   if test -s conftest.err; then
4770     ac_cpp_err=$ac_c_preproc_warn_flag
4771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772   else
4773     ac_cpp_err=
4774   fi
4775 else
4776   ac_cpp_err=yes
4777 fi
4778 if test -z "$ac_cpp_err"; then
4779   ac_header_preproc=yes
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784   ac_header_preproc=no
4785 fi
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4789
4790 # So?  What about this header?
4791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792   yes:no: )
4793     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797     ac_header_preproc=yes
4798     ;;
4799   no:yes:* )
4800     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4803 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4804     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4807 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4808     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812     (
4813       cat <<\_ASBOX
4814 ## ------------------------------------------ ##
4815 ## Report this to the AC_PACKAGE_NAME lists.  ##
4816 ## ------------------------------------------ ##
4817 _ASBOX
4818     ) |
4819       sed "s/^/$as_me: WARNING:     /" >&2
4820     ;;
4821 esac
4822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_minix_config_h+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   ac_cv_header_minix_config_h=$ac_header_preproc
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832 fi
4833 if test $ac_cv_header_minix_config_h = yes; then
4834   MINIX=yes
4835 else
4836   MINIX=
4837 fi
4838
4839
4840   if test "$MINIX" = yes; then
4841
4842 cat >>confdefs.h <<\_ACEOF
4843 #define _POSIX_SOURCE 1
4844 _ACEOF
4845
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _POSIX_1_SOURCE 2
4849 _ACEOF
4850
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define _MINIX 1
4854 _ACEOF
4855
4856   fi
4857
4858
4859
4860   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871
4872 #         define __EXTENSIONS__ 1
4873           $ac_includes_default
4874 int
4875 main ()
4876 {
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884   (eval $ac_compile) 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } &&
4891          { ac_try='test -z "$ac_c_werror_flag"
4892                          || test ! -s conftest.err'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; } &&
4898          { ac_try='test -s conftest.$ac_objext'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   ac_cv_safe_to_define___extensions__=yes
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 ac_cv_safe_to_define___extensions__=no
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915   test $ac_cv_safe_to_define___extensions__ = yes &&
4916     cat >>confdefs.h <<\_ACEOF
4917 #define __EXTENSIONS__ 1
4918 _ACEOF
4919
4920   cat >>confdefs.h <<\_ACEOF
4921 #define _ALL_SOURCE 1
4922 _ACEOF
4923
4924   cat >>confdefs.h <<\_ACEOF
4925 #define _GNU_SOURCE 1
4926 _ACEOF
4927
4928   cat >>confdefs.h <<\_ACEOF
4929 #define _POSIX_PTHREAD_SEMANTICS 1
4930 _ACEOF
4931
4932   cat >>confdefs.h <<\_ACEOF
4933 #define _TANDEM_SOURCE 1
4934 _ACEOF
4935
4936
4937
4938 case `pwd` in
4939   *\ * | *\     *)
4940     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4941 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4942 esac
4943
4944
4945
4946 macro_version='2.2.6'
4947 macro_revision='1.3012'
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 ltmain="$ac_aux_dir/ltmain.sh"
4962
4963 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4964 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4965 if test "${lt_cv_path_SED+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   # Loop through the user's path and test for sed and gsed.
4969 # Then use that list of sed's as ones to test for truncation.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975   for lt_ac_prog in sed gsed; do
4976     for ac_exec_ext in '' $ac_executable_extensions; do
4977       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4978         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4979       fi
4980     done
4981   done
4982 done
4983 IFS=$as_save_IFS
4984 lt_ac_max=0
4985 lt_ac_count=0
4986 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4987 # along with /bin/sed that truncates output.
4988 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4989   test ! -f $lt_ac_sed && continue
4990   cat /dev/null > conftest.in
4991   lt_ac_count=0
4992   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4993   # Check for GNU sed and select it if it is found.
4994   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4995     lt_cv_path_SED=$lt_ac_sed
4996     break
4997   fi
4998   while true; do
4999     cat conftest.in conftest.in >conftest.tmp
5000     mv conftest.tmp conftest.in
5001     cp conftest.in conftest.nl
5002     echo >>conftest.nl
5003     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5004     cmp -s conftest.out conftest.nl || break
5005     # 10000 chars as input seems more than enough
5006     test $lt_ac_count -gt 10 && break
5007     lt_ac_count=`expr $lt_ac_count + 1`
5008     if test $lt_ac_count -gt $lt_ac_max; then
5009       lt_ac_max=$lt_ac_count
5010       lt_cv_path_SED=$lt_ac_sed
5011     fi
5012   done
5013 done
5014
5015 fi
5016
5017 SED=$lt_cv_path_SED
5018
5019 echo "$as_me:$LINENO: result: $SED" >&5
5020 echo "${ECHO_T}$SED" >&6
5021
5022 test -z "$SED" && SED=sed
5023 Xsed="$SED -e 1s/^X//"
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 echo "$as_me:$LINENO: checking for fgrep" >&5
5036 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5037 if test "${ac_cv_prog_fgrep+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5041     then ac_cv_prog_fgrep='grep -F'
5042     else ac_cv_prog_fgrep='fgrep'
5043     fi
5044 fi
5045 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5046 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5047  FGREP=$ac_cv_prog_fgrep
5048
5049
5050 test -z "$GREP" && GREP=grep
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5071 if test "${with_gnu_ld+set}" = set; then
5072   withval="$with_gnu_ld"
5073   test "$withval" = no || with_gnu_ld=yes
5074 else
5075   with_gnu_ld=no
5076 fi;
5077 ac_prog=ld
5078 if test "$GCC" = yes; then
5079   # Check if gcc -print-prog-name=ld gives a path.
5080   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5081 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5082   case $host in
5083   *-*-mingw*)
5084     # gcc leaves a trailing carriage return which upsets mingw
5085     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5086   *)
5087     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5088   esac
5089   case $ac_prog in
5090     # Accept absolute paths.
5091     [\\/]* | ?:[\\/]*)
5092       re_direlt='/[^/][^/]*/\.\./'
5093       # Canonicalize the pathname of ld
5094       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5095       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5096         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5097       done
5098       test -z "$LD" && LD="$ac_prog"
5099       ;;
5100   "")
5101     # If it fails, then pretend we aren't using GCC.
5102     ac_prog=ld
5103     ;;
5104   *)
5105     # If it is relative, then search for the first ld in PATH.
5106     with_gnu_ld=unknown
5107     ;;
5108   esac
5109 elif test "$with_gnu_ld" = yes; then
5110   echo "$as_me:$LINENO: checking for GNU ld" >&5
5111 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5112 else
5113   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5114 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5115 fi
5116 if test "${lt_cv_path_LD+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   if test -z "$LD"; then
5120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5121   for ac_dir in $PATH; do
5122     IFS="$lt_save_ifs"
5123     test -z "$ac_dir" && ac_dir=.
5124     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5125       lt_cv_path_LD="$ac_dir/$ac_prog"
5126       # Check to see if the program is GNU ld.  I'd rather use --version,
5127       # but apparently some variants of GNU ld only accept -v.
5128       # Break only if it was the GNU/non-GNU ld that we prefer.
5129       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5130       *GNU* | *'with BFD'*)
5131         test "$with_gnu_ld" != no && break
5132         ;;
5133       *)
5134         test "$with_gnu_ld" != yes && break
5135         ;;
5136       esac
5137     fi
5138   done
5139   IFS="$lt_save_ifs"
5140 else
5141   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5142 fi
5143 fi
5144
5145 LD="$lt_cv_path_LD"
5146 if test -n "$LD"; then
5147   echo "$as_me:$LINENO: result: $LD" >&5
5148 echo "${ECHO_T}$LD" >&6
5149 else
5150   echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5152 fi
5153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5155    { (exit 1); exit 1; }; }
5156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5158 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5162 case `$LD -v 2>&1 </dev/null` in
5163 *GNU* | *'with BFD'*)
5164   lt_cv_prog_gnu_ld=yes
5165   ;;
5166 *)
5167   lt_cv_prog_gnu_ld=no
5168   ;;
5169 esac
5170 fi
5171 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5172 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5173 with_gnu_ld=$lt_cv_prog_gnu_ld
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5184 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5185 if test "${lt_cv_path_NM+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   if test -n "$NM"; then
5189   # Let the user override the test.
5190   lt_cv_path_NM="$NM"
5191 else
5192   lt_nm_to_check="${ac_tool_prefix}nm"
5193   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5194     lt_nm_to_check="$lt_nm_to_check nm"
5195   fi
5196   for lt_tmp_nm in $lt_nm_to_check; do
5197     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5198     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5199       IFS="$lt_save_ifs"
5200       test -z "$ac_dir" && ac_dir=.
5201       tmp_nm="$ac_dir/$lt_tmp_nm"
5202       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5203         # Check to see if the nm accepts a BSD-compat flag.
5204         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5205         #   nm: unknown option "B" ignored
5206         # Tru64's nm complains that /dev/null is an invalid object file
5207         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5208         */dev/null* | *'Invalid file or object type'*)
5209           lt_cv_path_NM="$tmp_nm -B"
5210           break
5211           ;;
5212         *)
5213           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5214           */dev/null*)
5215             lt_cv_path_NM="$tmp_nm -p"
5216             break
5217             ;;
5218           *)
5219             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5220             continue # so that we can try to find one that supports BSD flags
5221             ;;
5222           esac
5223           ;;
5224         esac
5225       fi
5226     done
5227     IFS="$lt_save_ifs"
5228   done
5229   : ${lt_cv_path_NM=no}
5230 fi
5231 fi
5232 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5233 echo "${ECHO_T}$lt_cv_path_NM" >&6
5234 if test "$lt_cv_path_NM" != "no"; then
5235   NM="$lt_cv_path_NM"
5236 else
5237   # Didn't find any BSD compatible name lister, look for dumpbin.
5238   if test -n "$ac_tool_prefix"; then
5239   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5240   do
5241     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   if test -n "$DUMPBIN"; then
5249   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256   for ac_exec_ext in '' $ac_executable_extensions; do
5257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263 done
5264
5265 fi
5266 fi
5267 DUMPBIN=$ac_cv_prog_DUMPBIN
5268 if test -n "$DUMPBIN"; then
5269   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5270 echo "${ECHO_T}$DUMPBIN" >&6
5271 else
5272   echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5274 fi
5275
5276     test -n "$DUMPBIN" && break
5277   done
5278 fi
5279 if test -z "$DUMPBIN"; then
5280   ac_ct_DUMPBIN=$DUMPBIN
5281   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5282 do
5283   # Extract the first word of "$ac_prog", so it can be a program name with args.
5284 set dummy $ac_prog; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   if test -n "$ac_ct_DUMPBIN"; then
5291   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298   for ac_exec_ext in '' $ac_executable_extensions; do
5299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305 done
5306
5307 fi
5308 fi
5309 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5310 if test -n "$ac_ct_DUMPBIN"; then
5311   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5312 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5313 else
5314   echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5316 fi
5317
5318   test -n "$ac_ct_DUMPBIN" && break
5319 done
5320 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5321
5322   DUMPBIN=$ac_ct_DUMPBIN
5323 fi
5324
5325
5326   if test "$DUMPBIN" != ":"; then
5327     NM="$DUMPBIN"
5328   fi
5329 fi
5330 test -z "$NM" && NM=nm
5331
5332
5333
5334
5335
5336
5337 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5338 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5339 if test "${lt_cv_nm_interface+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   lt_cv_nm_interface="BSD nm"
5343   echo "int some_variable = 0;" > conftest.$ac_ext
5344   (eval echo "\"\$as_me:5344: $ac_compile\"" >&5)
5345   (eval "$ac_compile" 2>conftest.err)
5346   cat conftest.err >&5
5347   (eval echo "\"\$as_me:5347: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5348   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5349   cat conftest.err >&5
5350   (eval echo "\"\$as_me:5350: output\"" >&5)
5351   cat conftest.out >&5
5352   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5353     lt_cv_nm_interface="MS dumpbin"
5354   fi
5355   rm -f conftest*
5356 fi
5357 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5358 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5359
5360 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5362 LN_S=$as_ln_s
5363 if test "$LN_S" = "ln -s"; then
5364   echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6
5366 else
5367   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5368 echo "${ECHO_T}no, using $LN_S" >&6
5369 fi
5370
5371 # find the maximum length of command line arguments
5372 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377     i=0
5378   teststring="ABCD"
5379
5380   case $build_os in
5381   msdosdjgpp*)
5382     # On DJGPP, this test can blow up pretty badly due to problems in libc
5383     # (any single argument exceeding 2000 bytes causes a buffer overrun
5384     # during glob expansion).  Even if it were fixed, the result of this
5385     # check would be larger than it should be.
5386     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5387     ;;
5388
5389   gnu*)
5390     # Under GNU Hurd, this test is not required because there is
5391     # no limit to the length of command line arguments.
5392     # Libtool will interpret -1 as no limit whatsoever
5393     lt_cv_sys_max_cmd_len=-1;
5394     ;;
5395
5396   cygwin* | mingw* | cegcc*)
5397     # On Win9x/ME, this test blows up -- it succeeds, but takes
5398     # about 5 minutes as the teststring grows exponentially.
5399     # Worse, since 9x/ME are not pre-emptively multitasking,
5400     # you end up with a "frozen" computer, even though with patience
5401     # the test eventually succeeds (with a max line length of 256k).
5402     # Instead, let's just punt: use the minimum linelength reported by
5403     # all of the supported platforms: 8192 (on NT/2K/XP).
5404     lt_cv_sys_max_cmd_len=8192;
5405     ;;
5406
5407   amigaos*)
5408     # On AmigaOS with pdksh, this test takes hours, literally.
5409     # So we just punt and use a minimum line length of 8192.
5410     lt_cv_sys_max_cmd_len=8192;
5411     ;;
5412
5413   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5414     # This has been around since 386BSD, at least.  Likely further.
5415     if test -x /sbin/sysctl; then
5416       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5417     elif test -x /usr/sbin/sysctl; then
5418       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5419     else
5420       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5421     fi
5422     # And add a safety zone
5423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425     ;;
5426
5427   interix*)
5428     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5429     lt_cv_sys_max_cmd_len=196608
5430     ;;
5431
5432   osf*)
5433     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435     # nice to cause kernel panics so lets avoid the loop below.
5436     # First set a reasonable default.
5437     lt_cv_sys_max_cmd_len=16384
5438     #
5439     if test -x /sbin/sysconfig; then
5440       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5442       esac
5443     fi
5444     ;;
5445   sco3.2v5*)
5446     lt_cv_sys_max_cmd_len=102400
5447     ;;
5448   sysv5* | sco5v6* | sysv4.2uw2*)
5449     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450     if test -n "$kargmax"; then
5451       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5452     else
5453       lt_cv_sys_max_cmd_len=32768
5454     fi
5455     ;;
5456   *)
5457     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458     if test -n "$lt_cv_sys_max_cmd_len"; then
5459       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461     else
5462       # Make teststring a little bigger before we do anything with it.
5463       # a 1K string should be a reasonable start.
5464       for i in 1 2 3 4 5 6 7 8 ; do
5465         teststring=$teststring$teststring
5466       done
5467       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468       # If test is not a shell built-in, we'll probably end up computing a
5469       # maximum length that is only half of the actual maximum length, but
5470       # we can't tell.
5471       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5472                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5473               test $i != 17 # 1/2 MB should be enough
5474       do
5475         i=`expr $i + 1`
5476         teststring=$teststring$teststring
5477       done
5478       # Only check the string length outside the loop.
5479       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480       teststring=
5481       # Add a significant safety factor because C++ compilers can tack on
5482       # massive amounts of additional arguments before passing them to the
5483       # linker.  It appears as though 1/2 is a usable value.
5484       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485     fi
5486     ;;
5487   esac
5488
5489 fi
5490
5491 if test -n $lt_cv_sys_max_cmd_len ; then
5492   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5494 else
5495   echo "$as_me:$LINENO: result: none" >&5
5496 echo "${ECHO_T}none" >&6
5497 fi
5498 max_cmd_len=$lt_cv_sys_max_cmd_len
5499
5500
5501
5502
5503
5504
5505 : ${CP="cp -f"}
5506 : ${MV="mv -f"}
5507 : ${RM="rm -f"}
5508
5509 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5510 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5511 # Try some XSI features
5512 xsi_shell=no
5513 ( _lt_dummy="a/b/c"
5514   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5515       = c,a/b,, \
5516     && eval 'test $(( 1 + 1 )) -eq 2 \
5517     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5518   && xsi_shell=yes
5519 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5520 echo "${ECHO_T}$xsi_shell" >&6
5521
5522
5523 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5524 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5525 lt_shell_append=no
5526 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5527     >/dev/null 2>&1 \
5528   && lt_shell_append=yes
5529 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5530 echo "${ECHO_T}$lt_shell_append" >&6
5531
5532
5533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534   lt_unset=unset
5535 else
5536   lt_unset=false
5537 fi
5538
5539
5540
5541
5542
5543 # test EBCDIC or ASCII
5544 case `echo X|tr X '\101'` in
5545  A) # ASCII based system
5546     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5547   lt_SP2NL='tr \040 \012'
5548   lt_NL2SP='tr \015\012 \040\040'
5549   ;;
5550  *) # EBCDIC based system
5551   lt_SP2NL='tr \100 \n'
5552   lt_NL2SP='tr \r\n \100\100'
5553   ;;
5554 esac
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5565 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5566 if test "${lt_cv_ld_reload_flag+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   lt_cv_ld_reload_flag='-r'
5570 fi
5571 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5572 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5573 reload_flag=$lt_cv_ld_reload_flag
5574 case $reload_flag in
5575 "" | " "*) ;;
5576 *) reload_flag=" $reload_flag" ;;
5577 esac
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 case $host_os in
5580   darwin*)
5581     if test "$GCC" = yes; then
5582       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5583     else
5584       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5585     fi
5586     ;;
5587 esac
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   if test -n "$OBJDUMP"; then
5606   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_exec_ext in '' $ac_executable_extensions; do
5614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620 done
5621
5622 fi
5623 fi
5624 OBJDUMP=$ac_cv_prog_OBJDUMP
5625 if test -n "$OBJDUMP"; then
5626   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5627 echo "${ECHO_T}$OBJDUMP" >&6
5628 else
5629   echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631 fi
5632
5633 fi
5634 if test -z "$ac_cv_prog_OBJDUMP"; then
5635   ac_ct_OBJDUMP=$OBJDUMP
5636   # Extract the first word of "objdump", so it can be a program name with args.
5637 set dummy objdump; ac_word=$2
5638 echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   if test -n "$ac_ct_OBJDUMP"; then
5644   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651   for ac_exec_ext in '' $ac_executable_extensions; do
5652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658 done
5659
5660   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5661 fi
5662 fi
5663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5664 if test -n "$ac_ct_OBJDUMP"; then
5665   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5666 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5667 else
5668   echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6
5670 fi
5671
5672   OBJDUMP=$ac_ct_OBJDUMP
5673 else
5674   OBJDUMP="$ac_cv_prog_OBJDUMP"
5675 fi
5676
5677 test -z "$OBJDUMP" && OBJDUMP=objdump
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5688 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5689 if test "${lt_cv_deplibs_check_method+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   lt_cv_file_magic_cmd='$MAGIC_CMD'
5693 lt_cv_file_magic_test_file=
5694 lt_cv_deplibs_check_method='unknown'
5695 # Need to set the preceding variable on all platforms that support
5696 # interlibrary dependencies.
5697 # 'none' -- dependencies not supported.
5698 # `unknown' -- same as none, but documents that we really don't know.
5699 # 'pass_all' -- all dependencies passed with no checks.
5700 # 'test_compile' -- check by making test program.
5701 # 'file_magic [[regex]]' -- check by looking for files in library path
5702 # which responds to the $file_magic_cmd with a given extended regex.
5703 # If you have `file' or equivalent on your system and you're not sure
5704 # whether `pass_all' will *always* work, you probably want this one.
5705
5706 case $host_os in
5707 aix[4-9]*)
5708   lt_cv_deplibs_check_method=pass_all
5709   ;;
5710
5711 beos*)
5712   lt_cv_deplibs_check_method=pass_all
5713   ;;
5714
5715 bsdi[45]*)
5716   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5717   lt_cv_file_magic_cmd='/usr/bin/file -L'
5718   lt_cv_file_magic_test_file=/shlib/libc.so
5719   ;;
5720
5721 cygwin*)
5722   # func_win32_libid is a shell function defined in ltmain.sh
5723   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724   lt_cv_file_magic_cmd='func_win32_libid'
5725   ;;
5726
5727 mingw* | pw32*)
5728   # Base MSYS/MinGW do not provide the 'file' command needed by
5729   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5730   # unless we find 'file', for example because we are cross-compiling.
5731   if ( file / ) >/dev/null 2>&1; then
5732     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733     lt_cv_file_magic_cmd='func_win32_libid'
5734   else
5735     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5736     lt_cv_file_magic_cmd='$OBJDUMP -f'
5737   fi
5738   ;;
5739
5740 cegcc)
5741   # use the weaker test based on 'objdump'. See mingw*.
5742   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743   lt_cv_file_magic_cmd='$OBJDUMP -f'
5744   ;;
5745
5746 darwin* | rhapsody*)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 freebsd* | dragonfly*)
5751   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752     case $host_cpu in
5753     i*86 )
5754       # Not sure whether the presence of OpenBSD here was a mistake.
5755       # Let's accept both of them until this is cleared up.
5756       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757       lt_cv_file_magic_cmd=/usr/bin/file
5758       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5759       ;;
5760     esac
5761   else
5762     lt_cv_deplibs_check_method=pass_all
5763   fi
5764   ;;
5765
5766 gnu*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 hpux10.20* | hpux11*)
5771   lt_cv_file_magic_cmd=/usr/bin/file
5772   case $host_cpu in
5773   ia64*)
5774     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5775     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5776     ;;
5777   hppa*64*)
5778     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]'
5779     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5780     ;;
5781   *)
5782     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5783     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5784     ;;
5785   esac
5786   ;;
5787
5788 interix[3-9]*)
5789   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5790   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5791   ;;
5792
5793 irix5* | irix6* | nonstopux*)
5794   case $LD in
5795   *-32|*"-32 ") libmagic=32-bit;;
5796   *-n32|*"-n32 ") libmagic=N32;;
5797   *-64|*"-64 ") libmagic=64-bit;;
5798   *) libmagic=never-match;;
5799   esac
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 # This must be Linux ELF.
5804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5805   lt_cv_deplibs_check_method=pass_all
5806   ;;
5807
5808 netbsd*)
5809   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5810     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5811   else
5812     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5813   fi
5814   ;;
5815
5816 newos6*)
5817   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5818   lt_cv_file_magic_cmd=/usr/bin/file
5819   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5820   ;;
5821
5822 *nto* | *qnx*)
5823   lt_cv_deplibs_check_method=pass_all
5824   ;;
5825
5826 openbsd*)
5827   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5828     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5829   else
5830     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5831   fi
5832   ;;
5833
5834 osf3* | osf4* | osf5*)
5835   lt_cv_deplibs_check_method=pass_all
5836   ;;
5837
5838 rdos*)
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841
5842 solaris*)
5843   lt_cv_deplibs_check_method=pass_all
5844   ;;
5845
5846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 sysv4 | sysv4.3*)
5851   case $host_vendor in
5852   motorola)
5853     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]'
5854     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5855     ;;
5856   ncr)
5857     lt_cv_deplibs_check_method=pass_all
5858     ;;
5859   sequent)
5860     lt_cv_file_magic_cmd='/bin/file'
5861     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5862     ;;
5863   sni)
5864     lt_cv_file_magic_cmd='/bin/file'
5865     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5866     lt_cv_file_magic_test_file=/lib/libc.so
5867     ;;
5868   siemens)
5869     lt_cv_deplibs_check_method=pass_all
5870     ;;
5871   pc)
5872     lt_cv_deplibs_check_method=pass_all
5873     ;;
5874   esac
5875   ;;
5876
5877 tpf*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880 esac
5881
5882 fi
5883 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5884 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5885 file_magic_cmd=$lt_cv_file_magic_cmd
5886 deplibs_check_method=$lt_cv_deplibs_check_method
5887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ar; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_AR+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test -n "$AR"; then
5909   ac_cv_prog_AR="$AR" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918     ac_cv_prog_AR="${ac_tool_prefix}ar"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924
5925 fi
5926 fi
5927 AR=$ac_cv_prog_AR
5928 if test -n "$AR"; then
5929   echo "$as_me:$LINENO: result: $AR" >&5
5930 echo "${ECHO_T}$AR" >&6
5931 else
5932   echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936 fi
5937 if test -z "$ac_cv_prog_AR"; then
5938   ac_ct_AR=$AR
5939   # Extract the first word of "ar", so it can be a program name with args.
5940 set dummy ar; ac_word=$2
5941 echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   if test -n "$ac_ct_AR"; then
5947   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956     ac_cv_prog_ac_ct_AR="ar"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962
5963   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5964 fi
5965 fi
5966 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5967 if test -n "$ac_ct_AR"; then
5968   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5969 echo "${ECHO_T}$ac_ct_AR" >&6
5970 else
5971   echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5973 fi
5974
5975   AR=$ac_ct_AR
5976 else
5977   AR="$ac_cv_prog_AR"
5978 fi
5979
5980 test -z "$AR" && AR=ar
5981 test -z "$AR_FLAGS" && AR_FLAGS=cru
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}strip; ac_word=$2
5996 echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998 if test "${ac_cv_prog_STRIP+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   if test -n "$STRIP"; then
6002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009   for ac_exec_ext in '' $ac_executable_extensions; do
6010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016 done
6017
6018 fi
6019 fi
6020 STRIP=$ac_cv_prog_STRIP
6021 if test -n "$STRIP"; then
6022   echo "$as_me:$LINENO: result: $STRIP" >&5
6023 echo "${ECHO_T}$STRIP" >&6
6024 else
6025   echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 fi
6028
6029 fi
6030 if test -z "$ac_cv_prog_STRIP"; then
6031   ac_ct_STRIP=$STRIP
6032   # Extract the first word of "strip", so it can be a program name with args.
6033 set dummy strip; ac_word=$2
6034 echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   if test -n "$ac_ct_STRIP"; then
6040   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047   for ac_exec_ext in '' $ac_executable_extensions; do
6048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_prog_ac_ct_STRIP="strip"
6050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054 done
6055
6056   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6057 fi
6058 fi
6059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060 if test -n "$ac_ct_STRIP"; then
6061   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6062 echo "${ECHO_T}$ac_ct_STRIP" >&6
6063 else
6064   echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066 fi
6067
6068   STRIP=$ac_ct_STRIP
6069 else
6070   STRIP="$ac_cv_prog_STRIP"
6071 fi
6072
6073 test -z "$STRIP" && STRIP=:
6074
6075
6076
6077
6078
6079
6080 if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_RANLIB+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$RANLIB"; then
6089   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104
6105 fi
6106 fi
6107 RANLIB=$ac_cv_prog_RANLIB
6108 if test -n "$RANLIB"; then
6109   echo "$as_me:$LINENO: result: $RANLIB" >&5
6110 echo "${ECHO_T}$RANLIB" >&6
6111 else
6112   echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116 fi
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118   ac_ct_RANLIB=$RANLIB
6119   # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   if test -n "$ac_ct_RANLIB"; then
6127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134   for ac_exec_ext in '' $ac_executable_extensions; do
6135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136     ac_cv_prog_ac_ct_RANLIB="ranlib"
6137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141 done
6142
6143   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6144 fi
6145 fi
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6150 else
6151   echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153 fi
6154
6155   RANLIB=$ac_ct_RANLIB
6156 else
6157   RANLIB="$ac_cv_prog_RANLIB"
6158 fi
6159
6160 test -z "$RANLIB" && RANLIB=:
6161
6162
6163
6164
6165
6166
6167 # Determine commands to create old-style static archives.
6168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6169 old_postinstall_cmds='chmod 644 $oldlib'
6170 old_postuninstall_cmds=
6171
6172 if test -n "$RANLIB"; then
6173   case $host_os in
6174   openbsd*)
6175     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6176     ;;
6177   *)
6178     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6179     ;;
6180   esac
6181   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 # If no C compiler was specified, use CC.
6218 LTCC=${LTCC-"$CC"}
6219
6220 # If no C compiler flags were specified, use CFLAGS.
6221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6222
6223 # Allow CC to be a program name with arguments.
6224 compiler=$CC
6225
6226
6227 # Check for command to grab the raw symbol name followed by C symbol from nm.
6228 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6229 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6230 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233
6234 # These are sane defaults that work on at least a few old systems.
6235 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6236
6237 # Character class describing NM global symbol codes.
6238 symcode='[BCDEGRST]'
6239
6240 # Regexp to match symbols that can be accessed directly from C.
6241 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6242
6243 # Define system-specific variables.
6244 case $host_os in
6245 aix*)
6246   symcode='[BCDT]'
6247   ;;
6248 cygwin* | mingw* | pw32* | cegcc*)
6249   symcode='[ABCDGISTW]'
6250   ;;
6251 hpux*)
6252   if test "$host_cpu" = ia64; then
6253     symcode='[ABCDEGRST]'
6254   fi
6255   ;;
6256 irix* | nonstopux*)
6257   symcode='[BCDEGRST]'
6258   ;;
6259 osf*)
6260   symcode='[BCDEGQRST]'
6261   ;;
6262 solaris*)
6263   symcode='[BDRT]'
6264   ;;
6265 sco3.2v5*)
6266   symcode='[DT]'
6267   ;;
6268 sysv4.2uw2*)
6269   symcode='[DT]'
6270   ;;
6271 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6272   symcode='[ABDT]'
6273   ;;
6274 sysv4)
6275   symcode='[DFNSTU]'
6276   ;;
6277 esac
6278
6279 # If we're using GNU nm, then use its standard symbol codes.
6280 case `$NM -V 2>&1` in
6281 *GNU* | *'with BFD'*)
6282   symcode='[ABCDGIRSTW]' ;;
6283 esac
6284
6285 # Transform an extracted symbol line into a proper C declaration.
6286 # Some systems (esp. on ia64) link data and code symbols differently,
6287 # so use this general approach.
6288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289
6290 # Transform an extracted symbol line into symbol name and symbol address
6291 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6293
6294 # Handle CRLF in mingw tool chain
6295 opt_cr=
6296 case $build_os in
6297 mingw*)
6298   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6299   ;;
6300 esac
6301
6302 # Try without a prefix underscore, then with it.
6303 for ac_symprfx in "" "_"; do
6304
6305   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6306   symxfrm="\\1 $ac_symprfx\\2 \\2"
6307
6308   # Write the raw and C identifiers.
6309   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6310     # Fake it for dumpbin and say T for any non-static function
6311     # and D for any global variable.
6312     # Also find C++ and __fastcall symbols from MSVC++,
6313     # which start with @ or ?.
6314     lt_cv_sys_global_symbol_pipe="$AWK '"\
6315 "     {last_section=section; section=\$ 3};"\
6316 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6317 "     \$ 0!~/External *\|/{next};"\
6318 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6319 "     {if(hide[section]) next};"\
6320 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6321 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6322 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6323 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6324 "     ' prfx=^$ac_symprfx"
6325   else
6326     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6327   fi
6328
6329   # Check to see that the pipe works correctly.
6330   pipe_works=no
6331
6332   rm -f conftest*
6333   cat > conftest.$ac_ext <<_LT_EOF
6334 #ifdef __cplusplus
6335 extern "C" {
6336 #endif
6337 char nm_test_var;
6338 void nm_test_func(void);
6339 void nm_test_func(void){}
6340 #ifdef __cplusplus
6341 }
6342 #endif
6343 int main(){nm_test_var='a';nm_test_func();return(0);}
6344 _LT_EOF
6345
6346   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347   (eval $ac_compile) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; then
6351     # Now try to grab the symbols.
6352     nlist=conftest.nm
6353     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6354   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } && test -s "$nlist"; then
6358       # Try sorting and uniquifying the output.
6359       if sort "$nlist" | uniq > "$nlist"T; then
6360         mv -f "$nlist"T "$nlist"
6361       else
6362         rm -f "$nlist"T
6363       fi
6364
6365       # Make sure that we snagged all the symbols we need.
6366       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6367         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6368           cat <<_LT_EOF > conftest.$ac_ext
6369 #ifdef __cplusplus
6370 extern "C" {
6371 #endif
6372
6373 _LT_EOF
6374           # Now generate the symbol file.
6375           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6376
6377           cat <<_LT_EOF >> conftest.$ac_ext
6378
6379 /* The mapping between symbol names and symbols.  */
6380 const struct {
6381   const char *name;
6382   void       *address;
6383 }
6384 lt__PROGRAM__LTX_preloaded_symbols[] =
6385 {
6386   { "@PROGRAM@", (void *) 0 },
6387 _LT_EOF
6388           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6389           cat <<\_LT_EOF >> conftest.$ac_ext
6390   {0, (void *) 0}
6391 };
6392
6393 /* This works around a problem in FreeBSD linker */
6394 #ifdef FREEBSD_WORKAROUND
6395 static const void *lt_preloaded_setup() {
6396   return lt__PROGRAM__LTX_preloaded_symbols;
6397 }
6398 #endif
6399
6400 #ifdef __cplusplus
6401 }
6402 #endif
6403 _LT_EOF
6404           # Now try linking the two files.
6405           mv conftest.$ac_objext conftstm.$ac_objext
6406           lt_save_LIBS="$LIBS"
6407           lt_save_CFLAGS="$CFLAGS"
6408           LIBS="conftstm.$ac_objext"
6409           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6410           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411   (eval $ac_link) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6415             pipe_works=yes
6416           fi
6417           LIBS="$lt_save_LIBS"
6418           CFLAGS="$lt_save_CFLAGS"
6419         else
6420           echo "cannot find nm_test_func in $nlist" >&5
6421         fi
6422       else
6423         echo "cannot find nm_test_var in $nlist" >&5
6424       fi
6425     else
6426       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6427     fi
6428   else
6429     echo "$progname: failed program was:" >&5
6430     cat conftest.$ac_ext >&5
6431   fi
6432   rm -rf conftest* conftst*
6433
6434   # Do not use the global_symbol_pipe unless it works.
6435   if test "$pipe_works" = yes; then
6436     break
6437   else
6438     lt_cv_sys_global_symbol_pipe=
6439   fi
6440 done
6441
6442 fi
6443
6444 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6445   lt_cv_sys_global_symbol_to_cdecl=
6446 fi
6447 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6448   echo "$as_me:$LINENO: result: failed" >&5
6449 echo "${ECHO_T}failed" >&6
6450 else
6451   echo "$as_me:$LINENO: result: ok" >&5
6452 echo "${ECHO_T}ok" >&6
6453 fi
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6477 if test "${enable_libtool_lock+set}" = set; then
6478   enableval="$enable_libtool_lock"
6479
6480 fi;
6481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6482
6483 # Some flags need to be propagated to the compiler or linker for good
6484 # libtool support.
6485 case $host in
6486 ia64-*-hpux*)
6487   # Find out which ABI we are using.
6488   echo 'int i;' > conftest.$ac_ext
6489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490   (eval $ac_compile) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; then
6494     case `/usr/bin/file conftest.$ac_objext` in
6495       *ELF-32*)
6496         HPUX_IA64_MODE="32"
6497         ;;
6498       *ELF-64*)
6499         HPUX_IA64_MODE="64"
6500         ;;
6501     esac
6502   fi
6503   rm -rf conftest*
6504   ;;
6505 *-*-irix6*)
6506   # Find out which ABI we are using.
6507   echo '#line 6507 "configure"' > conftest.$ac_ext
6508   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509   (eval $ac_compile) 2>&5
6510   ac_status=$?
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); }; then
6513     if test "$lt_cv_prog_gnu_ld" = yes; then
6514       case `/usr/bin/file conftest.$ac_objext` in
6515         *32-bit*)
6516           LD="${LD-ld} -melf32bsmip"
6517           ;;
6518         *N32*)
6519           LD="${LD-ld} -melf32bmipn32"
6520           ;;
6521         *64-bit*)
6522           LD="${LD-ld} -melf64bmip"
6523         ;;
6524       esac
6525     else
6526       case `/usr/bin/file conftest.$ac_objext` in
6527         *32-bit*)
6528           LD="${LD-ld} -32"
6529           ;;
6530         *N32*)
6531           LD="${LD-ld} -n32"
6532           ;;
6533         *64-bit*)
6534           LD="${LD-ld} -64"
6535           ;;
6536       esac
6537     fi
6538   fi
6539   rm -rf conftest*
6540   ;;
6541
6542 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6543 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6544   # Find out which ABI we are using.
6545   echo 'int i;' > conftest.$ac_ext
6546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547   (eval $ac_compile) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; then
6551     case `/usr/bin/file conftest.o` in
6552       *32-bit*)
6553         case $host in
6554           x86_64-*kfreebsd*-gnu)
6555             LD="${LD-ld} -m elf_i386_fbsd"
6556             ;;
6557           x86_64-*linux*)
6558             LD="${LD-ld} -m elf_i386"
6559             ;;
6560           ppc64-*linux*|powerpc64-*linux*)
6561             LD="${LD-ld} -m elf32ppclinux"
6562             ;;
6563           s390x-*linux*)
6564             LD="${LD-ld} -m elf_s390"
6565             ;;
6566           sparc64-*linux*)
6567             LD="${LD-ld} -m elf32_sparc"
6568             ;;
6569         esac
6570         ;;
6571       *64-bit*)
6572         case $host in
6573           x86_64-*kfreebsd*-gnu)
6574             LD="${LD-ld} -m elf_x86_64_fbsd"
6575             ;;
6576           x86_64-*linux*)
6577             LD="${LD-ld} -m elf_x86_64"
6578             ;;
6579           ppc*-*linux*|powerpc*-*linux*)
6580             LD="${LD-ld} -m elf64ppc"
6581             ;;
6582           s390*-*linux*|s390*-*tpf*)
6583             LD="${LD-ld} -m elf64_s390"
6584             ;;
6585           sparc*-*linux*)
6586             LD="${LD-ld} -m elf64_sparc"
6587             ;;
6588         esac
6589         ;;
6590     esac
6591   fi
6592   rm -rf conftest*
6593   ;;
6594
6595 *-*-sco3.2v5*)
6596   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6597   SAVE_CFLAGS="$CFLAGS"
6598   CFLAGS="$CFLAGS -belf"
6599   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6600 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6601 if test "${lt_cv_cc_needs_belf+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610      cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616
6617 int
6618 main ()
6619 {
6620
6621   ;
6622   return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627   (eval $ac_link) 2>conftest.er1
6628   ac_status=$?
6629   grep -v '^ *+' conftest.er1 >conftest.err
6630   rm -f conftest.er1
6631   cat conftest.err >&5
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); } &&
6634          { ac_try='test -z "$ac_c_werror_flag"
6635                          || test ! -s conftest.err'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; } &&
6641          { ac_try='test -s conftest$ac_exeext'
6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643   (eval $ac_try) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); }; }; then
6647   lt_cv_cc_needs_belf=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 lt_cv_cc_needs_belf=no
6653 fi
6654 rm -f conftest.err conftest.$ac_objext \
6655       conftest$ac_exeext conftest.$ac_ext
6656      ac_ext=c
6657 ac_cpp='$CPP $CPPFLAGS'
6658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6661
6662 fi
6663 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6664 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6665   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6666     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6667     CFLAGS="$SAVE_CFLAGS"
6668   fi
6669   ;;
6670 sparc*-*solaris*)
6671   # Find out which ABI we are using.
6672   echo 'int i;' > conftest.$ac_ext
6673   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674   (eval $ac_compile) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; then
6678     case `/usr/bin/file conftest.o` in
6679     *64-bit*)
6680       case $lt_cv_prog_gnu_ld in
6681       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6682       *)
6683         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6684           LD="${LD-ld} -64"
6685         fi
6686         ;;
6687       esac
6688       ;;
6689     esac
6690   fi
6691   rm -rf conftest*
6692   ;;
6693 esac
6694
6695 need_locks="$enable_libtool_lock"
6696
6697
6698   case $host_os in
6699     rhapsody* | darwin*)
6700     if test -n "$ac_tool_prefix"; then
6701   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6703 echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6705 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   if test -n "$DSYMUTIL"; then
6709   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724
6725 fi
6726 fi
6727 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6728 if test -n "$DSYMUTIL"; then
6729   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6730 echo "${ECHO_T}$DSYMUTIL" >&6
6731 else
6732   echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6734 fi
6735
6736 fi
6737 if test -z "$ac_cv_prog_DSYMUTIL"; then
6738   ac_ct_DSYMUTIL=$DSYMUTIL
6739   # Extract the first word of "dsymutil", so it can be a program name with args.
6740 set dummy dsymutil; ac_word=$2
6741 echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   if test -n "$ac_ct_DSYMUTIL"; then
6747   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762
6763   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6764 fi
6765 fi
6766 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6767 if test -n "$ac_ct_DSYMUTIL"; then
6768   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6769 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6770 else
6771   echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6
6773 fi
6774
6775   DSYMUTIL=$ac_ct_DSYMUTIL
6776 else
6777   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6778 fi
6779
6780     if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6783 echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6785 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   if test -n "$NMEDIT"; then
6789   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804
6805 fi
6806 fi
6807 NMEDIT=$ac_cv_prog_NMEDIT
6808 if test -n "$NMEDIT"; then
6809   echo "$as_me:$LINENO: result: $NMEDIT" >&5
6810 echo "${ECHO_T}$NMEDIT" >&6
6811 else
6812   echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6
6814 fi
6815
6816 fi
6817 if test -z "$ac_cv_prog_NMEDIT"; then
6818   ac_ct_NMEDIT=$NMEDIT
6819   # Extract the first word of "nmedit", so it can be a program name with args.
6820 set dummy nmedit; ac_word=$2
6821 echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   if test -n "$ac_ct_NMEDIT"; then
6827   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842
6843   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6844 fi
6845 fi
6846 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6847 if test -n "$ac_ct_NMEDIT"; then
6848   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6849 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6850 else
6851   echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6
6853 fi
6854
6855   NMEDIT=$ac_ct_NMEDIT
6856 else
6857   NMEDIT="$ac_cv_prog_NMEDIT"
6858 fi
6859
6860     if test -n "$ac_tool_prefix"; then
6861   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_prog_LIPO+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   if test -n "$LIPO"; then
6869   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884
6885 fi
6886 fi
6887 LIPO=$ac_cv_prog_LIPO
6888 if test -n "$LIPO"; then
6889   echo "$as_me:$LINENO: result: $LIPO" >&5
6890 echo "${ECHO_T}$LIPO" >&6
6891 else
6892   echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6
6894 fi
6895
6896 fi
6897 if test -z "$ac_cv_prog_LIPO"; then
6898   ac_ct_LIPO=$LIPO
6899   # Extract the first word of "lipo", so it can be a program name with args.
6900 set dummy lipo; ac_word=$2
6901 echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   if test -n "$ac_ct_LIPO"; then
6907   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916     ac_cv_prog_ac_ct_LIPO="lipo"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922
6923   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6924 fi
6925 fi
6926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6927 if test -n "$ac_ct_LIPO"; then
6928   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6929 echo "${ECHO_T}$ac_ct_LIPO" >&6
6930 else
6931   echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6
6933 fi
6934
6935   LIPO=$ac_ct_LIPO
6936 else
6937   LIPO="$ac_cv_prog_LIPO"
6938 fi
6939
6940     if test -n "$ac_tool_prefix"; then
6941   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}otool; ac_word=$2
6943 echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945 if test "${ac_cv_prog_OTOOL+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   if test -n "$OTOOL"; then
6949   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956   for ac_exec_ext in '' $ac_executable_extensions; do
6957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963 done
6964
6965 fi
6966 fi
6967 OTOOL=$ac_cv_prog_OTOOL
6968 if test -n "$OTOOL"; then
6969   echo "$as_me:$LINENO: result: $OTOOL" >&5
6970 echo "${ECHO_T}$OTOOL" >&6
6971 else
6972   echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6
6974 fi
6975
6976 fi
6977 if test -z "$ac_cv_prog_OTOOL"; then
6978   ac_ct_OTOOL=$OTOOL
6979   # Extract the first word of "otool", so it can be a program name with args.
6980 set dummy otool; ac_word=$2
6981 echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   if test -n "$ac_ct_OTOOL"; then
6987   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   for ac_exec_ext in '' $ac_executable_extensions; do
6995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996     ac_cv_prog_ac_ct_OTOOL="otool"
6997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001 done
7002
7003   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7004 fi
7005 fi
7006 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7007 if test -n "$ac_ct_OTOOL"; then
7008   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7009 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7010 else
7011   echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7013 fi
7014
7015   OTOOL=$ac_ct_OTOOL
7016 else
7017   OTOOL="$ac_cv_prog_OTOOL"
7018 fi
7019
7020     if test -n "$ac_tool_prefix"; then
7021   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7023 echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7025 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   if test -n "$OTOOL64"; then
7029   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044
7045 fi
7046 fi
7047 OTOOL64=$ac_cv_prog_OTOOL64
7048 if test -n "$OTOOL64"; then
7049   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7050 echo "${ECHO_T}$OTOOL64" >&6
7051 else
7052   echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6
7054 fi
7055
7056 fi
7057 if test -z "$ac_cv_prog_OTOOL64"; then
7058   ac_ct_OTOOL64=$OTOOL64
7059   # Extract the first word of "otool64", so it can be a program name with args.
7060 set dummy otool64; ac_word=$2
7061 echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066   if test -n "$ac_ct_OTOOL64"; then
7067   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076     ac_cv_prog_ac_ct_OTOOL64="otool64"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082
7083   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7084 fi
7085 fi
7086 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7087 if test -n "$ac_ct_OTOOL64"; then
7088   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7089 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7090 else
7091   echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7093 fi
7094
7095   OTOOL64=$ac_ct_OTOOL64
7096 else
7097   OTOOL64="$ac_cv_prog_OTOOL64"
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7127 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7128 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   lt_cv_apple_cc_single_mod=no
7132       if test -z "${LT_MULTI_MODULE}"; then
7133         # By default we will add the -single_module flag. You can override
7134         # by either setting the environment variable LT_MULTI_MODULE
7135         # non-empty at configure time, or by adding -multi_module to the
7136         # link flags.
7137         rm -rf libconftest.dylib*
7138         echo "int foo(void){return 1;}" > conftest.c
7139         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140 -dynamiclib -Wl,-single_module conftest.c" >&5
7141         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7142           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7143         _lt_result=$?
7144         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7145           lt_cv_apple_cc_single_mod=yes
7146         else
7147           cat conftest.err >&5
7148         fi
7149         rm -rf libconftest.dylib*
7150         rm -f conftest.*
7151       fi
7152 fi
7153 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7154 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7155     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7156 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7157 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   lt_cv_ld_exported_symbols_list=no
7161       save_LDFLAGS=$LDFLAGS
7162       echo "_main" > conftest.sym
7163       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7164       cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 int
7172 main ()
7173 {
7174
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181   (eval $ac_link) 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } &&
7188          { ac_try='test -z "$ac_c_werror_flag"
7189                          || test ! -s conftest.err'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   lt_cv_ld_exported_symbols_list=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 lt_cv_ld_exported_symbols_list=no
7207 fi
7208 rm -f conftest.err conftest.$ac_objext \
7209       conftest$ac_exeext conftest.$ac_ext
7210         LDFLAGS="$save_LDFLAGS"
7211
7212 fi
7213 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7214 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7215     case $host_os in
7216     rhapsody* | darwin1.[012])
7217       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7218     darwin1.*)
7219       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7220     darwin*) # darwin 5.x on
7221       # if running on 10.5 or later, the deployment target defaults
7222       # to the OS version, if on x86, and 10.4, the deployment
7223       # target defaults to 10.4. Don't you love it?
7224       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7225         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7226           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227         10.[012]*)
7228           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229         10.*)
7230           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231       esac
7232     ;;
7233   esac
7234     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7235       _lt_dar_single_mod='$single_module'
7236     fi
7237     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7238       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7239     else
7240       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7241     fi
7242     if test "$DSYMUTIL" != ":"; then
7243       _lt_dsymutil='~$DSYMUTIL $lib || :'
7244     else
7245       _lt_dsymutil=
7246     fi
7247     ;;
7248   esac
7249
7250
7251 for ac_header in dlfcn.h
7252 do
7253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7254 echo "$as_me:$LINENO: checking for $ac_header" >&5
7255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 $ac_includes_default
7266
7267 #include <$ac_header>
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271   (eval $ac_compile) 2>conftest.er1
7272   ac_status=$?
7273   grep -v '^ *+' conftest.er1 >conftest.err
7274   rm -f conftest.er1
7275   cat conftest.err >&5
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -z "$ac_c_werror_flag"
7279                          || test ! -s conftest.err'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; } &&
7285          { ac_try='test -s conftest.$ac_objext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   eval "$as_ac_Header=yes"
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 eval "$as_ac_Header=no"
7297 fi
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7303   cat >>confdefs.h <<_ACEOF
7304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305 _ACEOF
7306
7307 fi
7308
7309 done
7310
7311
7312
7313 # Set options
7314 enable_dlopen=yes
7315
7316
7317
7318
7319   enable_win32_dll=no
7320
7321
7322
7323   # Check whether --enable-static or --disable-static was given.
7324 if test "${enable_static+set}" = set; then
7325   enableval="$enable_static"
7326   p=${PACKAGE-default}
7327     case $enableval in
7328     yes) enable_static=yes ;;
7329     no) enable_static=no ;;
7330     *)
7331      enable_static=no
7332       # Look at the argument we got.  We use all the common list separators.
7333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7334       for pkg in $enableval; do
7335         IFS="$lt_save_ifs"
7336         if test "X$pkg" = "X$p"; then
7337           enable_static=yes
7338         fi
7339       done
7340       IFS="$lt_save_ifs"
7341       ;;
7342     esac
7343 else
7344   enable_static=yes
7345 fi;
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 # Check whether --with-pic or --without-pic was given.
7356 if test "${with_pic+set}" = set; then
7357   withval="$with_pic"
7358   pic_mode="$withval"
7359 else
7360   pic_mode=default
7361 fi;
7362
7363 test -z "$pic_mode" && pic_mode=default
7364
7365
7366
7367
7368
7369
7370
7371   # Check whether --enable-fast-install or --disable-fast-install was given.
7372 if test "${enable_fast_install+set}" = set; then
7373   enableval="$enable_fast_install"
7374   p=${PACKAGE-default}
7375     case $enableval in
7376     yes) enable_fast_install=yes ;;
7377     no) enable_fast_install=no ;;
7378     *)
7379       enable_fast_install=no
7380       # Look at the argument we got.  We use all the common list separators.
7381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382       for pkg in $enableval; do
7383         IFS="$lt_save_ifs"
7384         if test "X$pkg" = "X$p"; then
7385           enable_fast_install=yes
7386         fi
7387       done
7388       IFS="$lt_save_ifs"
7389       ;;
7390     esac
7391 else
7392   enable_fast_install=yes
7393 fi;
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 # This can be used to rebuild libtool when needed
7405 LIBTOOL_DEPS="$ltmain"
7406
7407 # Always use our own libtool.
7408 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 test -z "$LN_S" && LN_S="ln -s"
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 if test -n "${ZSH_VERSION+set}" ; then
7450    setopt NO_GLOB_SUBST
7451 fi
7452
7453 echo "$as_me:$LINENO: checking for objdir" >&5
7454 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7455 if test "${lt_cv_objdir+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   rm -f .libs 2>/dev/null
7459 mkdir .libs 2>/dev/null
7460 if test -d .libs; then
7461   lt_cv_objdir=.libs
7462 else
7463   # MS-DOS does not allow filenames that begin with a dot.
7464   lt_cv_objdir=_libs
7465 fi
7466 rmdir .libs 2>/dev/null
7467 fi
7468 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7469 echo "${ECHO_T}$lt_cv_objdir" >&6
7470 objdir=$lt_cv_objdir
7471
7472
7473
7474
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define LT_OBJDIR "$lt_cv_objdir/"
7478 _ACEOF
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 case $host_os in
7497 aix3*)
7498   # AIX sometimes has problems with the GCC collect2 program.  For some
7499   # reason, if we set the COLLECT_NAMES environment variable, the problems
7500   # vanish in a puff of smoke.
7501   if test "X${COLLECT_NAMES+set}" != Xset; then
7502     COLLECT_NAMES=
7503     export COLLECT_NAMES
7504   fi
7505   ;;
7506 esac
7507
7508 # Sed substitution that helps us do robust quoting.  It backslashifies
7509 # metacharacters that are still active within double-quoted strings.
7510 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7511
7512 # Same as above, but do not quote variable references.
7513 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7514
7515 # Sed substitution to delay expansion of an escaped shell variable in a
7516 # double_quote_subst'ed string.
7517 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7518
7519 # Sed substitution to delay expansion of an escaped single quote.
7520 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7521
7522 # Sed substitution to avoid accidental globbing in evaled expressions
7523 no_glob_subst='s/\*/\\\*/g'
7524
7525 # Global variables:
7526 ofile=libtool
7527 can_build_shared=yes
7528
7529 # All known linkers require a `.a' archive for static linking (except MSVC,
7530 # which needs '.lib').
7531 libext=a
7532
7533 with_gnu_ld="$lt_cv_prog_gnu_ld"
7534
7535 old_CC="$CC"
7536 old_CFLAGS="$CFLAGS"
7537
7538 # Set sane defaults for various variables
7539 test -z "$CC" && CC=cc
7540 test -z "$LTCC" && LTCC=$CC
7541 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542 test -z "$LD" && LD=ld
7543 test -z "$ac_objext" && ac_objext=o
7544
7545 for cc_temp in $compiler""; do
7546   case $cc_temp in
7547     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549     \-*) ;;
7550     *) break;;
7551   esac
7552 done
7553 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7554
7555
7556 # Only perform the check for file, if the check method requires it
7557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558 case $deplibs_check_method in
7559 file_magic*)
7560   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7562 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7563 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   case $MAGIC_CMD in
7567 [\\/*] |  ?:[\\/]*)
7568   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569   ;;
7570 *)
7571   lt_save_MAGIC_CMD="$MAGIC_CMD"
7572   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574   for ac_dir in $ac_dummy; do
7575     IFS="$lt_save_ifs"
7576     test -z "$ac_dir" && ac_dir=.
7577     if test -f $ac_dir/${ac_tool_prefix}file; then
7578       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579       if test -n "$file_magic_test_file"; then
7580         case $deplibs_check_method in
7581         "file_magic "*)
7582           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585             $EGREP "$file_magic_regex" > /dev/null; then
7586             :
7587           else
7588             cat <<_LT_EOF 1>&2
7589
7590 *** Warning: the command libtool uses to detect shared libraries,
7591 *** $file_magic_cmd, produces output that libtool cannot recognize.
7592 *** The result is that libtool may fail to recognize shared libraries
7593 *** as such.  This will affect the creation of libtool libraries that
7594 *** depend on shared libraries, but programs linked with such libtool
7595 *** libraries will work regardless of this problem.  Nevertheless, you
7596 *** may want to report the problem to your system manager and/or to
7597 *** bug-libtool@gnu.org
7598
7599 _LT_EOF
7600           fi ;;
7601         esac
7602       fi
7603       break
7604     fi
7605   done
7606   IFS="$lt_save_ifs"
7607   MAGIC_CMD="$lt_save_MAGIC_CMD"
7608   ;;
7609 esac
7610 fi
7611
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if test -n "$MAGIC_CMD"; then
7614   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7615 echo "${ECHO_T}$MAGIC_CMD" >&6
7616 else
7617   echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6
7619 fi
7620
7621
7622
7623
7624
7625 if test -z "$lt_cv_path_MAGIC_CMD"; then
7626   if test -n "$ac_tool_prefix"; then
7627     echo "$as_me:$LINENO: checking for file" >&5
7628 echo $ECHO_N "checking for file... $ECHO_C" >&6
7629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $MAGIC_CMD in
7633 [\\/*] |  ?:[\\/]*)
7634   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635   ;;
7636 *)
7637   lt_save_MAGIC_CMD="$MAGIC_CMD"
7638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640   for ac_dir in $ac_dummy; do
7641     IFS="$lt_save_ifs"
7642     test -z "$ac_dir" && ac_dir=.
7643     if test -f $ac_dir/file; then
7644       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645       if test -n "$file_magic_test_file"; then
7646         case $deplibs_check_method in
7647         "file_magic "*)
7648           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651             $EGREP "$file_magic_regex" > /dev/null; then
7652             :
7653           else
7654             cat <<_LT_EOF 1>&2
7655
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such.  This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem.  Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7664
7665 _LT_EOF
7666           fi ;;
7667         esac
7668       fi
7669       break
7670     fi
7671   done
7672   IFS="$lt_save_ifs"
7673   MAGIC_CMD="$lt_save_MAGIC_CMD"
7674   ;;
7675 esac
7676 fi
7677
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7681 echo "${ECHO_T}$MAGIC_CMD" >&6
7682 else
7683   echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6
7685 fi
7686
7687
7688   else
7689     MAGIC_CMD=:
7690   fi
7691 fi
7692
7693   fi
7694   ;;
7695 esac
7696
7697 # Use C for the default configuration in the libtool script
7698
7699 lt_save_CC="$CC"
7700 ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707 # Source file extension for C test sources.
7708 ac_ext=c
7709
7710 # Object file extension for compiled C test sources.
7711 objext=o
7712 objext=$objext
7713
7714 # Code to be used in simple compile tests
7715 lt_simple_compile_test_code="int some_variable = 0;"
7716
7717 # Code to be used in simple link tests
7718 lt_simple_link_test_code='int main(){return(0);}'
7719
7720
7721
7722
7723
7724
7725
7726 # If no C compiler was specified, use CC.
7727 LTCC=${LTCC-"$CC"}
7728
7729 # If no C compiler flags were specified, use CFLAGS.
7730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7731
7732 # Allow CC to be a program name with arguments.
7733 compiler=$CC
7734
7735 # Save the default compiler, since it gets overwritten when the other
7736 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737 compiler_DEFAULT=$CC
7738
7739 # save warnings/boilerplate of simple test code
7740 ac_outfile=conftest.$ac_objext
7741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743 _lt_compiler_boilerplate=`cat conftest.err`
7744 $RM conftest*
7745
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_linker_boilerplate=`cat conftest.err`
7750 $RM -r conftest*
7751
7752
7753 ## CAVEAT EMPTOR:
7754 ## There is no encapsulation within the following macros, do not change
7755 ## the running order or otherwise move them around unless you know exactly
7756 ## what you are doing...
7757 if test -n "$compiler"; then
7758
7759 lt_prog_compiler_no_builtin_flag=
7760
7761 if test "$GCC" = yes; then
7762   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7763
7764   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7765 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7766 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   lt_cv_prog_compiler_rtti_exceptions=no
7770    ac_outfile=conftest.$ac_objext
7771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7772    lt_compiler_flag="-fno-rtti -fno-exceptions"
7773    # Insert the option either (1) after the last *FLAGS variable, or
7774    # (2) before a word containing "conftest.", or (3) at the end.
7775    # Note that $ac_compile itself does not contain backslashes and begins
7776    # with a dollar sign (not a hyphen), so the echo should work correctly.
7777    # The option is referenced via a variable to avoid confusing sed.
7778    lt_compile=`echo "$ac_compile" | $SED \
7779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7781    -e 's:$: $lt_compiler_flag:'`
7782    (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
7783    (eval "$lt_compile" 2>conftest.err)
7784    ac_status=$?
7785    cat conftest.err >&5
7786    echo "$as_me:7786: \$? = $ac_status" >&5
7787    if (exit $ac_status) && test -s "$ac_outfile"; then
7788      # The compiler can only warn and ignore the option if not recognized
7789      # So say no if there are warnings other than the usual output.
7790      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7793        lt_cv_prog_compiler_rtti_exceptions=yes
7794      fi
7795    fi
7796    $RM conftest*
7797
7798 fi
7799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7800 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7801
7802 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7803     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7804 else
7805     :
7806 fi
7807
7808 fi
7809
7810
7811
7812
7813
7814
7815   lt_prog_compiler_wl=
7816 lt_prog_compiler_pic=
7817 lt_prog_compiler_static=
7818
7819 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7820 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7821
7822   if test "$GCC" = yes; then
7823     lt_prog_compiler_wl='-Wl,'
7824     lt_prog_compiler_static='-static'
7825
7826     case $host_os in
7827       aix*)
7828       # All AIX code is PIC.
7829       if test "$host_cpu" = ia64; then
7830         # AIX 5 now supports IA64 processor
7831         lt_prog_compiler_static='-Bstatic'
7832       fi
7833       ;;
7834
7835     amigaos*)
7836       case $host_cpu in
7837       powerpc)
7838             # see comment about AmigaOS4 .so support
7839             lt_prog_compiler_pic='-fPIC'
7840         ;;
7841       m68k)
7842             # FIXME: we need at least 68020 code to build shared libraries, but
7843             # adding the `-m68020' flag to GCC prevents building anything better,
7844             # like `-m68040'.
7845             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846         ;;
7847       esac
7848       ;;
7849
7850     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7851       # PIC is the default for these OSes.
7852       ;;
7853
7854     mingw* | cygwin* | pw32* | os2* | cegcc*)
7855       # This hack is so that the source file can tell whether it is being
7856       # built for inclusion in a dll (and should export symbols for example).
7857       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7858       # (--disable-auto-import) libraries
7859       lt_prog_compiler_pic='-DDLL_EXPORT'
7860       ;;
7861
7862     darwin* | rhapsody*)
7863       # PIC is the default on this platform
7864       # Common symbols not allowed in MH_DYLIB files
7865       lt_prog_compiler_pic='-fno-common'
7866       ;;
7867
7868     hpux*)
7869       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7870       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7871       # sets the default TLS model and affects inlining.
7872       case $host_cpu in
7873       hppa*64*)
7874         # +Z the default
7875         ;;
7876       *)
7877         lt_prog_compiler_pic='-fPIC'
7878         ;;
7879       esac
7880       ;;
7881
7882     interix[3-9]*)
7883       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7884       # Instead, we relocate shared libraries at runtime.
7885       ;;
7886
7887     msdosdjgpp*)
7888       # Just because we use GCC doesn't mean we suddenly get shared libraries
7889       # on systems that don't support them.
7890       lt_prog_compiler_can_build_shared=no
7891       enable_shared=no
7892       ;;
7893
7894     *nto* | *qnx*)
7895       # QNX uses GNU C++, but need to define -shared option too, otherwise
7896       # it will coredump.
7897       lt_prog_compiler_pic='-fPIC -shared'
7898       ;;
7899
7900     sysv4*MP*)
7901       if test -d /usr/nec; then
7902         lt_prog_compiler_pic=-Kconform_pic
7903       fi
7904       ;;
7905
7906     *)
7907       lt_prog_compiler_pic='-fPIC'
7908       ;;
7909     esac
7910   else
7911     # PORTME Check for flag to pass linker flags through the system compiler.
7912     case $host_os in
7913     aix*)
7914       lt_prog_compiler_wl='-Wl,'
7915       if test "$host_cpu" = ia64; then
7916         # AIX 5 now supports IA64 processor
7917         lt_prog_compiler_static='-Bstatic'
7918       else
7919         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920       fi
7921       ;;
7922
7923     mingw* | cygwin* | pw32* | os2* | cegcc*)
7924       # This hack is so that the source file can tell whether it is being
7925       # built for inclusion in a dll (and should export symbols for example).
7926       lt_prog_compiler_pic='-DDLL_EXPORT'
7927       ;;
7928
7929     hpux9* | hpux10* | hpux11*)
7930       lt_prog_compiler_wl='-Wl,'
7931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932       # not for PA HP-UX.
7933       case $host_cpu in
7934       hppa*64*|ia64*)
7935         # +Z the default
7936         ;;
7937       *)
7938         lt_prog_compiler_pic='+Z'
7939         ;;
7940       esac
7941       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942       lt_prog_compiler_static='${wl}-a ${wl}archive'
7943       ;;
7944
7945     irix5* | irix6* | nonstopux*)
7946       lt_prog_compiler_wl='-Wl,'
7947       # PIC (with -KPIC) is the default.
7948       lt_prog_compiler_static='-non_shared'
7949       ;;
7950
7951     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7952       case $cc_basename in
7953       # old Intel for x86_64 which still supported -KPIC.
7954       ecc*)
7955         lt_prog_compiler_wl='-Wl,'
7956         lt_prog_compiler_pic='-KPIC'
7957         lt_prog_compiler_static='-static'
7958         ;;
7959       # icc used to be incompatible with GCC.
7960       # ICC 10 doesn't accept -KPIC any more.
7961       icc* | ifort*)
7962         lt_prog_compiler_wl='-Wl,'
7963         lt_prog_compiler_pic='-fPIC'
7964         lt_prog_compiler_static='-static'
7965         ;;
7966       # Lahey Fortran 8.1.
7967       lf95*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='--shared'
7970         lt_prog_compiler_static='--static'
7971         ;;
7972       pgcc* | pgf77* | pgf90* | pgf95*)
7973         # Portland Group compilers (*not* the Pentium gcc compiler,
7974         # which looks to be a dead project)
7975         lt_prog_compiler_wl='-Wl,'
7976         lt_prog_compiler_pic='-fpic'
7977         lt_prog_compiler_static='-Bstatic'
7978         ;;
7979       ccc*)
7980         lt_prog_compiler_wl='-Wl,'
7981         # All Alpha code is PIC.
7982         lt_prog_compiler_static='-non_shared'
7983         ;;
7984       xl*)
7985         # IBM XL C 8.0/Fortran 10.1 on PPC
7986         lt_prog_compiler_wl='-Wl,'
7987         lt_prog_compiler_pic='-qpic'
7988         lt_prog_compiler_static='-qstaticlink'
7989         ;;
7990       *)
7991         case `$CC -V 2>&1 | sed 5q` in
7992         *Sun\ C*)
7993           # Sun C 5.9
7994           lt_prog_compiler_pic='-KPIC'
7995           lt_prog_compiler_static='-Bstatic'
7996           lt_prog_compiler_wl='-Wl,'
7997           ;;
7998         *Sun\ F*)
7999           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8000           lt_prog_compiler_pic='-KPIC'
8001           lt_prog_compiler_static='-Bstatic'
8002           lt_prog_compiler_wl=''
8003           ;;
8004         esac
8005         ;;
8006       esac
8007       ;;
8008
8009     newsos6)
8010       lt_prog_compiler_pic='-KPIC'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013
8014     *nto* | *qnx*)
8015       # QNX uses GNU C++, but need to define -shared option too, otherwise
8016       # it will coredump.
8017       lt_prog_compiler_pic='-fPIC -shared'
8018       ;;
8019
8020     osf3* | osf4* | osf5*)
8021       lt_prog_compiler_wl='-Wl,'
8022       # All OSF/1 code is PIC.
8023       lt_prog_compiler_static='-non_shared'
8024       ;;
8025
8026     rdos*)
8027       lt_prog_compiler_static='-non_shared'
8028       ;;
8029
8030     solaris*)
8031       lt_prog_compiler_pic='-KPIC'
8032       lt_prog_compiler_static='-Bstatic'
8033       case $cc_basename in
8034       f77* | f90* | f95*)
8035         lt_prog_compiler_wl='-Qoption ld ';;
8036       *)
8037         lt_prog_compiler_wl='-Wl,';;
8038       esac
8039       ;;
8040
8041     sunos4*)
8042       lt_prog_compiler_wl='-Qoption ld '
8043       lt_prog_compiler_pic='-PIC'
8044       lt_prog_compiler_static='-Bstatic'
8045       ;;
8046
8047     sysv4 | sysv4.2uw2* | sysv4.3*)
8048       lt_prog_compiler_wl='-Wl,'
8049       lt_prog_compiler_pic='-KPIC'
8050       lt_prog_compiler_static='-Bstatic'
8051       ;;
8052
8053     sysv4*MP*)
8054       if test -d /usr/nec ;then
8055         lt_prog_compiler_pic='-Kconform_pic'
8056         lt_prog_compiler_static='-Bstatic'
8057       fi
8058       ;;
8059
8060     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061       lt_prog_compiler_wl='-Wl,'
8062       lt_prog_compiler_pic='-KPIC'
8063       lt_prog_compiler_static='-Bstatic'
8064       ;;
8065
8066     unicos*)
8067       lt_prog_compiler_wl='-Wl,'
8068       lt_prog_compiler_can_build_shared=no
8069       ;;
8070
8071     uts4*)
8072       lt_prog_compiler_pic='-pic'
8073       lt_prog_compiler_static='-Bstatic'
8074       ;;
8075
8076     *)
8077       lt_prog_compiler_can_build_shared=no
8078       ;;
8079     esac
8080   fi
8081
8082 case $host_os in
8083   # For platforms which do not support PIC, -DPIC is meaningless:
8084   *djgpp*)
8085     lt_prog_compiler_pic=
8086     ;;
8087   *)
8088     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089     ;;
8090 esac
8091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8092 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8093
8094
8095
8096
8097
8098
8099 #
8100 # Check to make sure the PIC flag actually works.
8101 #
8102 if test -n "$lt_prog_compiler_pic"; then
8103   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8105 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   lt_cv_prog_compiler_pic_works=no
8109    ac_outfile=conftest.$ac_objext
8110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112    # Insert the option either (1) after the last *FLAGS variable, or
8113    # (2) before a word containing "conftest.", or (3) at the end.
8114    # Note that $ac_compile itself does not contain backslashes and begins
8115    # with a dollar sign (not a hyphen), so the echo should work correctly.
8116    # The option is referenced via a variable to avoid confusing sed.
8117    lt_compile=`echo "$ac_compile" | $SED \
8118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120    -e 's:$: $lt_compiler_flag:'`
8121    (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
8122    (eval "$lt_compile" 2>conftest.err)
8123    ac_status=$?
8124    cat conftest.err >&5
8125    echo "$as_me:8125: \$? = $ac_status" >&5
8126    if (exit $ac_status) && test -s "$ac_outfile"; then
8127      # The compiler can only warn and ignore the option if not recognized
8128      # So say no if there are warnings other than the usual output.
8129      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132        lt_cv_prog_compiler_pic_works=yes
8133      fi
8134    fi
8135    $RM conftest*
8136
8137 fi
8138 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8139 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8140
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142     case $lt_prog_compiler_pic in
8143      "" | " "*) ;;
8144      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145      esac
8146 else
8147     lt_prog_compiler_pic=
8148      lt_prog_compiler_can_build_shared=no
8149 fi
8150
8151 fi
8152
8153
8154
8155
8156
8157
8158 #
8159 # Check to make sure the static flag actually works.
8160 #
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8164 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   lt_cv_prog_compiler_static_works=no
8168    save_LDFLAGS="$LDFLAGS"
8169    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172      # The linker can only warn and ignore the option if not recognized
8173      # So say no if there are warnings
8174      if test -s conftest.err; then
8175        # Append any errors to the config.log.
8176        cat conftest.err 1>&5
8177        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8178        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179        if diff conftest.exp conftest.er2 >/dev/null; then
8180          lt_cv_prog_compiler_static_works=yes
8181        fi
8182      else
8183        lt_cv_prog_compiler_static_works=yes
8184      fi
8185    fi
8186    $RM -r conftest*
8187    LDFLAGS="$save_LDFLAGS"
8188
8189 fi
8190 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8191 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8192
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8194     :
8195 else
8196     lt_prog_compiler_static=
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   lt_cv_prog_compiler_c_o=no
8211    $RM -r conftest 2>/dev/null
8212    mkdir conftest
8213    cd conftest
8214    mkdir out
8215    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217    lt_compiler_flag="-o out/conftest2.$ac_objext"
8218    # Insert the option either (1) after the last *FLAGS variable, or
8219    # (2) before a word containing "conftest.", or (3) at the end.
8220    # Note that $ac_compile itself does not contain backslashes and begins
8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
8222    lt_compile=`echo "$ac_compile" | $SED \
8223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225    -e 's:$: $lt_compiler_flag:'`
8226    (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
8227    (eval "$lt_compile" 2>out/conftest.err)
8228    ac_status=$?
8229    cat out/conftest.err >&5
8230    echo "$as_me:8230: \$? = $ac_status" >&5
8231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232    then
8233      # The compiler can only warn and ignore the option if not recognized
8234      # So say no if there are warnings
8235      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8236      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238        lt_cv_prog_compiler_c_o=yes
8239      fi
8240    fi
8241    chmod u+w . 2>&5
8242    $RM conftest*
8243    # SGI C++ compiler will create directory out/ii_files/ for
8244    # template instantiation
8245    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246    $RM out/* && rmdir out
8247    cd ..
8248    $RM -r conftest
8249    $RM conftest*
8250
8251 fi
8252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8254
8255
8256
8257
8258
8259
8260   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8262 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   lt_cv_prog_compiler_c_o=no
8266    $RM -r conftest 2>/dev/null
8267    mkdir conftest
8268    cd conftest
8269    mkdir out
8270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272    lt_compiler_flag="-o out/conftest2.$ac_objext"
8273    # Insert the option either (1) after the last *FLAGS variable, or
8274    # (2) before a word containing "conftest.", or (3) at the end.
8275    # Note that $ac_compile itself does not contain backslashes and begins
8276    # with a dollar sign (not a hyphen), so the echo should work correctly.
8277    lt_compile=`echo "$ac_compile" | $SED \
8278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280    -e 's:$: $lt_compiler_flag:'`
8281    (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282    (eval "$lt_compile" 2>out/conftest.err)
8283    ac_status=$?
8284    cat out/conftest.err >&5
8285    echo "$as_me:8285: \$? = $ac_status" >&5
8286    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287    then
8288      # The compiler can only warn and ignore the option if not recognized
8289      # So say no if there are warnings
8290      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8291      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293        lt_cv_prog_compiler_c_o=yes
8294      fi
8295    fi
8296    chmod u+w . 2>&5
8297    $RM conftest*
8298    # SGI C++ compiler will create directory out/ii_files/ for
8299    # template instantiation
8300    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301    $RM out/* && rmdir out
8302    cd ..
8303    $RM -r conftest
8304    $RM conftest*
8305
8306 fi
8307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8308 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8309
8310
8311
8312
8313 hard_links="nottested"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315   # do not overwrite the value of need_locks provided by the user
8316   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8317 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8318   hard_links=yes
8319   $RM conftest*
8320   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321   touch conftest.a
8322   ln conftest.a conftest.b 2>&5 || hard_links=no
8323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324   echo "$as_me:$LINENO: result: $hard_links" >&5
8325 echo "${ECHO_T}$hard_links" >&6
8326   if test "$hard_links" = no; then
8327     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8329     need_locks=warn
8330   fi
8331 else
8332   need_locks=no
8333 fi
8334
8335
8336
8337
8338
8339
8340   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8342
8343   runpath_var=
8344   allow_undefined_flag=
8345   always_export_symbols=no
8346   archive_cmds=
8347   archive_expsym_cmds=
8348   compiler_needs_object=no
8349   enable_shared_with_static_runtimes=no
8350   export_dynamic_flag_spec=
8351   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352   hardcode_automatic=no
8353   hardcode_direct=no
8354   hardcode_direct_absolute=no
8355   hardcode_libdir_flag_spec=
8356   hardcode_libdir_flag_spec_ld=
8357   hardcode_libdir_separator=
8358   hardcode_minus_L=no
8359   hardcode_shlibpath_var=unsupported
8360   inherit_rpath=no
8361   link_all_deplibs=unknown
8362   module_cmds=
8363   module_expsym_cmds=
8364   old_archive_from_new_cmds=
8365   old_archive_from_expsyms_cmds=
8366   thread_safe_flag_spec=
8367   whole_archive_flag_spec=
8368   # include_expsyms should be a list of space-separated symbols to be *always*
8369   # included in the symbol list
8370   include_expsyms=
8371   # exclude_expsyms can be an extended regexp of symbols to exclude
8372   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374   # as well as any symbol that contains `d'.
8375   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377   # platforms (ab)use it in PIC code, but their linkers get confused if
8378   # the symbol is explicitly referenced.  Since portable code cannot
8379   # rely on this symbol name, it's probably fine to never include it in
8380   # preloaded symbol tables.
8381   # Exclude shared library initialization/finalization symbols.
8382   extract_expsyms_cmds=
8383
8384   case $host_os in
8385   cygwin* | mingw* | pw32* | cegcc*)
8386     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387     # When not using gcc, we currently assume that we are using
8388     # Microsoft Visual C++.
8389     if test "$GCC" != yes; then
8390       with_gnu_ld=no
8391     fi
8392     ;;
8393   interix*)
8394     # we just hope/assume this is gcc and not c89 (= MSVC++)
8395     with_gnu_ld=yes
8396     ;;
8397   openbsd*)
8398     with_gnu_ld=no
8399     ;;
8400   esac
8401
8402   ld_shlibs=yes
8403   if test "$with_gnu_ld" = yes; then
8404     # If archive_cmds runs LD, not CC, wlarc should be empty
8405     wlarc='${wl}'
8406
8407     # Set some defaults for GNU ld with shared library support. These
8408     # are reset later if shared libraries are not supported. Putting them
8409     # here allows them to be overridden if necessary.
8410     runpath_var=LD_RUN_PATH
8411     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8412     export_dynamic_flag_spec='${wl}--export-dynamic'
8413     # ancient GNU ld didn't support --whole-archive et. al.
8414     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8415       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8416     else
8417       whole_archive_flag_spec=
8418     fi
8419     supports_anon_versioning=no
8420     case `$LD -v 2>&1` in
8421       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8422       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8423       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8424       *\ 2.11.*) ;; # other 2.11 versions
8425       *) supports_anon_versioning=yes ;;
8426     esac
8427
8428     # See if GNU ld supports shared libraries.
8429     case $host_os in
8430     aix[3-9]*)
8431       # On AIX/PPC, the GNU linker is very broken
8432       if test "$host_cpu" != ia64; then
8433         ld_shlibs=no
8434         cat <<_LT_EOF 1>&2
8435
8436 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8437 *** to be unable to reliably create shared libraries on AIX.
8438 *** Therefore, libtool is disabling shared libraries support.  If you
8439 *** really care for shared libraries, you may want to modify your PATH
8440 *** so that a non-GNU linker is found, and then restart.
8441
8442 _LT_EOF
8443       fi
8444       ;;
8445
8446     amigaos*)
8447       case $host_cpu in
8448       powerpc)
8449             # see comment about AmigaOS4 .so support
8450             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451             archive_expsym_cmds=''
8452         ;;
8453       m68k)
8454             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)'
8455             hardcode_libdir_flag_spec='-L$libdir'
8456             hardcode_minus_L=yes
8457         ;;
8458       esac
8459       ;;
8460
8461     beos*)
8462       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463         allow_undefined_flag=unsupported
8464         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8465         # support --undefined.  This deserves some investigation.  FIXME
8466         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467       else
8468         ld_shlibs=no
8469       fi
8470       ;;
8471
8472     cygwin* | mingw* | pw32* | cegcc*)
8473       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8474       # as there is no search path for DLLs.
8475       hardcode_libdir_flag_spec='-L$libdir'
8476       allow_undefined_flag=unsupported
8477       always_export_symbols=no
8478       enable_shared_with_static_runtimes=yes
8479       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8480
8481       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8482         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8483         # If the export-symbols file already is a .def file (1st line
8484         # is EXPORTS), use it as is; otherwise, prepend...
8485         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8486           cp $export_symbols $output_objdir/$soname.def;
8487         else
8488           echo EXPORTS > $output_objdir/$soname.def;
8489           cat $export_symbols >> $output_objdir/$soname.def;
8490         fi~
8491         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492       else
8493         ld_shlibs=no
8494       fi
8495       ;;
8496
8497     interix[3-9]*)
8498       hardcode_direct=no
8499       hardcode_shlibpath_var=no
8500       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8501       export_dynamic_flag_spec='${wl}-E'
8502       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8503       # Instead, shared libraries are loaded at an image base (0x10000000 by
8504       # default) and relocated if they conflict, which is a slow very memory
8505       # consuming and fragmenting process.  To avoid this, we pick a random,
8506       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8507       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8508       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8509       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'
8510       ;;
8511
8512     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8513       tmp_diet=no
8514       if test "$host_os" = linux-dietlibc; then
8515         case $cc_basename in
8516           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8517         esac
8518       fi
8519       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8520          && test "$tmp_diet" = no
8521       then
8522         tmp_addflag=
8523         tmp_sharedflag='-shared'
8524         case $cc_basename,$host_cpu in
8525         pgcc*)                          # Portland Group C compiler
8526           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'
8527           tmp_addflag=' $pic_flag'
8528           ;;
8529         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8530           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'
8531           tmp_addflag=' $pic_flag -Mnomain' ;;
8532         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8533           tmp_addflag=' -i_dynamic' ;;
8534         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8535           tmp_addflag=' -i_dynamic -nofor_main' ;;
8536         ifc* | ifort*)                  # Intel Fortran compiler
8537           tmp_addflag=' -nofor_main' ;;
8538         lf95*)                          # Lahey Fortran 8.1
8539           whole_archive_flag_spec=
8540           tmp_sharedflag='--shared' ;;
8541         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8542           tmp_sharedflag='-qmkshrobj'
8543           tmp_addflag= ;;
8544         esac
8545         case `$CC -V 2>&1 | sed 5q` in
8546         *Sun\ C*)                       # Sun C 5.9
8547           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'
8548           compiler_needs_object=yes
8549           tmp_sharedflag='-G' ;;
8550         *Sun\ F*)                       # Sun Fortran 8.3
8551           tmp_sharedflag='-G' ;;
8552         esac
8553         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554
8555         if test "x$supports_anon_versioning" = xyes; then
8556           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8557             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8558             echo "local: *; };" >> $output_objdir/$libname.ver~
8559             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8560         fi
8561
8562         case $cc_basename in
8563         xlf*)
8564           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8565           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8566           hardcode_libdir_flag_spec=
8567           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8568           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8569           if test "x$supports_anon_versioning" = xyes; then
8570             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8571               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8572               echo "local: *; };" >> $output_objdir/$libname.ver~
8573               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8574           fi
8575           ;;
8576         esac
8577       else
8578         ld_shlibs=no
8579       fi
8580       ;;
8581
8582     netbsd*)
8583       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8584         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8585         wlarc=
8586       else
8587         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8589       fi
8590       ;;
8591
8592     solaris*)
8593       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8594         ld_shlibs=no
8595         cat <<_LT_EOF 1>&2
8596
8597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8598 *** create shared libraries on Solaris systems.  Therefore, libtool
8599 *** is disabling shared libraries support.  We urge you to upgrade GNU
8600 *** binutils to release 2.9.1 or newer.  Another option is to modify
8601 *** your PATH or compiler configuration so that the native linker is
8602 *** used, and then restart.
8603
8604 _LT_EOF
8605       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8608       else
8609         ld_shlibs=no
8610       fi
8611       ;;
8612
8613     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8614       case `$LD -v 2>&1` in
8615         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8616         ld_shlibs=no
8617         cat <<_LT_EOF 1>&2
8618
8619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8620 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8621 *** is disabling shared libraries support.  We urge you to upgrade GNU
8622 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8623 *** your PATH or compiler configuration so that the native linker is
8624 *** used, and then restart.
8625
8626 _LT_EOF
8627         ;;
8628         *)
8629           # For security reasons, it is highly recommended that you always
8630           # use absolute paths for naming shared libraries, and exclude the
8631           # DT_RUNPATH tag from executables and libraries.  But doing so
8632           # requires that you compile everything twice, which is a pain.
8633           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8634             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8637           else
8638             ld_shlibs=no
8639           fi
8640         ;;
8641       esac
8642       ;;
8643
8644     sunos4*)
8645       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646       wlarc=
8647       hardcode_direct=yes
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     *)
8652       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8655       else
8656         ld_shlibs=no
8657       fi
8658       ;;
8659     esac
8660
8661     if test "$ld_shlibs" = no; then
8662       runpath_var=
8663       hardcode_libdir_flag_spec=
8664       export_dynamic_flag_spec=
8665       whole_archive_flag_spec=
8666     fi
8667   else
8668     # PORTME fill in a description of your system's linker (not GNU ld)
8669     case $host_os in
8670     aix3*)
8671       allow_undefined_flag=unsupported
8672       always_export_symbols=yes
8673       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'
8674       # Note: this linker hardcodes the directories in LIBPATH if there
8675       # are no directories specified by -L.
8676       hardcode_minus_L=yes
8677       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8678         # Neither direct hardcoding nor static linking is supported with a
8679         # broken collect2.
8680         hardcode_direct=unsupported
8681       fi
8682       ;;
8683
8684     aix[4-9]*)
8685       if test "$host_cpu" = ia64; then
8686         # On IA64, the linker does run time linking by default, so we don't
8687         # have to do anything special.
8688         aix_use_runtimelinking=no
8689         exp_sym_flag='-Bexport'
8690         no_entry_flag=""
8691       else
8692         # If we're using GNU nm, then we don't want the "-C" option.
8693         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8694         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8695           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'
8696         else
8697           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'
8698         fi
8699         aix_use_runtimelinking=no
8700
8701         # Test if we are trying to use run time linking or normal
8702         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8703         # need to do runtime linking.
8704         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8705           for ld_flag in $LDFLAGS; do
8706           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8707             aix_use_runtimelinking=yes
8708             break
8709           fi
8710           done
8711           ;;
8712         esac
8713
8714         exp_sym_flag='-bexport'
8715         no_entry_flag='-bnoentry'
8716       fi
8717
8718       # When large executables or shared objects are built, AIX ld can
8719       # have problems creating the table of contents.  If linking a library
8720       # or program results in "error TOC overflow" add -mminimal-toc to
8721       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8722       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8723
8724       archive_cmds=''
8725       hardcode_direct=yes
8726       hardcode_direct_absolute=yes
8727       hardcode_libdir_separator=':'
8728       link_all_deplibs=yes
8729       file_list_spec='${wl}-f,'
8730
8731       if test "$GCC" = yes; then
8732         case $host_os in aix4.[012]|aix4.[012].*)
8733         # We only want to do this on AIX 4.2 and lower, the check
8734         # below for broken collect2 doesn't work under 4.3+
8735           collect2name=`${CC} -print-prog-name=collect2`
8736           if test -f "$collect2name" &&
8737            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8738           then
8739           # We have reworked collect2
8740           :
8741           else
8742           # We have old collect2
8743           hardcode_direct=unsupported
8744           # It fails to find uninstalled libraries when the uninstalled
8745           # path is not listed in the libpath.  Setting hardcode_minus_L
8746           # to unsupported forces relinking
8747           hardcode_minus_L=yes
8748           hardcode_libdir_flag_spec='-L$libdir'
8749           hardcode_libdir_separator=
8750           fi
8751           ;;
8752         esac
8753         shared_flag='-shared'
8754         if test "$aix_use_runtimelinking" = yes; then
8755           shared_flag="$shared_flag "'${wl}-G'
8756         fi
8757       else
8758         # not using gcc
8759         if test "$host_cpu" = ia64; then
8760         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8761         # chokes on -Wl,-G. The following line is correct:
8762           shared_flag='-G'
8763         else
8764           if test "$aix_use_runtimelinking" = yes; then
8765             shared_flag='${wl}-G'
8766           else
8767             shared_flag='${wl}-bM:SRE'
8768           fi
8769         fi
8770       fi
8771
8772       export_dynamic_flag_spec='${wl}-bexpall'
8773       # It seems that -bexpall does not export symbols beginning with
8774       # underscore (_), so it is better to generate a list of symbols to export.
8775       always_export_symbols=yes
8776       if test "$aix_use_runtimelinking" = yes; then
8777         # Warning - without using the other runtime loading flags (-brtl),
8778         # -berok will link without error, but may produce a broken library.
8779         allow_undefined_flag='-berok'
8780         # Determine the default libpath from the value encoded in an
8781         # empty executable.
8782         cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788
8789 int
8790 main ()
8791 {
8792
8793   ;
8794   return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799   (eval $ac_link) 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } &&
8806          { ac_try='test -z "$ac_c_werror_flag"
8807                          || test ! -s conftest.err'
8808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809   (eval $ac_try) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; } &&
8813          { ac_try='test -s conftest$ac_exeext'
8814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815   (eval $ac_try) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; }; then
8819
8820 lt_aix_libpath_sed='
8821     /Import File Strings/,/^$/ {
8822         /^0/ {
8823             s/^0  *\(.*\)$/\1/
8824             p
8825         }
8826     }'
8827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 # Check for a 64-bit object if we didn't find anything.
8829 if test -z "$aix_libpath"; then
8830   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831 fi
8832 else
8833   echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 fi
8837 rm -f conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8840
8841         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842         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"
8843       else
8844         if test "$host_cpu" = ia64; then
8845           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846           allow_undefined_flag="-z nodefs"
8847           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"
8848         else
8849          # Determine the default libpath from the value encoded in an
8850          # empty executable.
8851          cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857
8858 int
8859 main ()
8860 {
8861
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
8889 lt_aix_libpath_sed='
8890     /Import File Strings/,/^$/ {
8891         /^0/ {
8892             s/^0  *\(.*\)$/\1/
8893             p
8894         }
8895     }'
8896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897 # Check for a 64-bit object if we didn't find anything.
8898 if test -z "$aix_libpath"; then
8899   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900 fi
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 fi
8906 rm -f conftest.err conftest.$ac_objext \
8907       conftest$ac_exeext conftest.$ac_ext
8908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8909
8910          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8911           # Warning - without using the other run time loading flags,
8912           # -berok will link without error, but may produce a broken library.
8913           no_undefined_flag=' ${wl}-bernotok'
8914           allow_undefined_flag=' ${wl}-berok'
8915           # Exported symbols can be pulled into shared objects from archives
8916           whole_archive_flag_spec='$convenience'
8917           archive_cmds_need_lc=yes
8918           # This is similar to how AIX traditionally builds its shared libraries.
8919           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'
8920         fi
8921       fi
8922       ;;
8923
8924     amigaos*)
8925       case $host_cpu in
8926       powerpc)
8927             # see comment about AmigaOS4 .so support
8928             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929             archive_expsym_cmds=''
8930         ;;
8931       m68k)
8932             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)'
8933             hardcode_libdir_flag_spec='-L$libdir'
8934             hardcode_minus_L=yes
8935         ;;
8936       esac
8937       ;;
8938
8939     bsdi[45]*)
8940       export_dynamic_flag_spec=-rdynamic
8941       ;;
8942
8943     cygwin* | mingw* | pw32* | cegcc*)
8944       # When not using gcc, we currently assume that we are using
8945       # Microsoft Visual C++.
8946       # hardcode_libdir_flag_spec is actually meaningless, as there is
8947       # no search path for DLLs.
8948       hardcode_libdir_flag_spec=' '
8949       allow_undefined_flag=unsupported
8950       # Tell ltmain to make .lib files, not .a files.
8951       libext=lib
8952       # Tell ltmain to make .dll files, not .so files.
8953       shrext_cmds=".dll"
8954       # FIXME: Setting linknames here is a bad hack.
8955       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8956       # The linker will automatically build a .lib file if we build a DLL.
8957       old_archive_from_new_cmds='true'
8958       # FIXME: Should let the user specify the lib program.
8959       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8960       fix_srcfile_path='`cygpath -w "$srcfile"`'
8961       enable_shared_with_static_runtimes=yes
8962       ;;
8963
8964     darwin* | rhapsody*)
8965
8966
8967   archive_cmds_need_lc=no
8968   hardcode_direct=no
8969   hardcode_automatic=yes
8970   hardcode_shlibpath_var=unsupported
8971   whole_archive_flag_spec=''
8972   link_all_deplibs=yes
8973   allow_undefined_flag="$_lt_dar_allow_undefined"
8974   case $cc_basename in
8975      ifort*) _lt_dar_can_shared=yes ;;
8976      *) _lt_dar_can_shared=$GCC ;;
8977   esac
8978   if test "$_lt_dar_can_shared" = "yes"; then
8979     output_verbose_link_cmd=echo
8980     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8981     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8982     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8983     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8984
8985   else
8986   ld_shlibs=no
8987   fi
8988
8989       ;;
8990
8991     dgux*)
8992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993       hardcode_libdir_flag_spec='-L$libdir'
8994       hardcode_shlibpath_var=no
8995       ;;
8996
8997     freebsd1*)
8998       ld_shlibs=no
8999       ;;
9000
9001     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9002     # support.  Future versions do this automatically, but an explicit c++rt0.o
9003     # does not break anything, and helps significantly (at the cost of a little
9004     # extra space).
9005     freebsd2.2*)
9006       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9007       hardcode_libdir_flag_spec='-R$libdir'
9008       hardcode_direct=yes
9009       hardcode_shlibpath_var=no
9010       ;;
9011
9012     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9013     freebsd2*)
9014       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015       hardcode_direct=yes
9016       hardcode_minus_L=yes
9017       hardcode_shlibpath_var=no
9018       ;;
9019
9020     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9021     freebsd* | dragonfly*)
9022       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9023       hardcode_libdir_flag_spec='-R$libdir'
9024       hardcode_direct=yes
9025       hardcode_shlibpath_var=no
9026       ;;
9027
9028     hpux9*)
9029       if test "$GCC" = yes; then
9030         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'
9031       else
9032         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'
9033       fi
9034       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035       hardcode_libdir_separator=:
9036       hardcode_direct=yes
9037
9038       # hardcode_minus_L: Not really in the search PATH,
9039       # but as the default location of the library.
9040       hardcode_minus_L=yes
9041       export_dynamic_flag_spec='${wl}-E'
9042       ;;
9043
9044     hpux10*)
9045       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9046         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9047       else
9048         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9049       fi
9050       if test "$with_gnu_ld" = no; then
9051         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9052         hardcode_libdir_flag_spec_ld='+b $libdir'
9053         hardcode_libdir_separator=:
9054         hardcode_direct=yes
9055         hardcode_direct_absolute=yes
9056         export_dynamic_flag_spec='${wl}-E'
9057         # hardcode_minus_L: Not really in the search PATH,
9058         # but as the default location of the library.
9059         hardcode_minus_L=yes
9060       fi
9061       ;;
9062
9063     hpux11*)
9064       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9065         case $host_cpu in
9066         hppa*64*)
9067           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9068           ;;
9069         ia64*)
9070           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9071           ;;
9072         *)
9073           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074           ;;
9075         esac
9076       else
9077         case $host_cpu in
9078         hppa*64*)
9079           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080           ;;
9081         ia64*)
9082           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9083           ;;
9084         *)
9085           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9086           ;;
9087         esac
9088       fi
9089       if test "$with_gnu_ld" = no; then
9090         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091         hardcode_libdir_separator=:
9092
9093         case $host_cpu in
9094         hppa*64*|ia64*)
9095           hardcode_direct=no
9096           hardcode_shlibpath_var=no
9097           ;;
9098         *)
9099           hardcode_direct=yes
9100           hardcode_direct_absolute=yes
9101           export_dynamic_flag_spec='${wl}-E'
9102
9103           # hardcode_minus_L: Not really in the search PATH,
9104           # but as the default location of the library.
9105           hardcode_minus_L=yes
9106           ;;
9107         esac
9108       fi
9109       ;;
9110
9111     irix5* | irix6* | nonstopux*)
9112       if test "$GCC" = yes; then
9113         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'
9114         # Try to use the -exported_symbol ld option, if it does not
9115         # work, assume that -exports_file does not work either and
9116         # implicitly export all symbols.
9117         save_LDFLAGS="$LDFLAGS"
9118         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9119         cat >conftest.$ac_ext <<_ACEOF
9120 int foo(void) {}
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124   (eval $ac_link) 2>conftest.er1
9125   ac_status=$?
9126   grep -v '^ *+' conftest.er1 >conftest.err
9127   rm -f conftest.er1
9128   cat conftest.err >&5
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -z "$ac_c_werror_flag"
9132                          || test ! -s conftest.err'
9133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134   (eval $ac_try) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }; } &&
9138          { ac_try='test -s conftest$ac_exeext'
9139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140   (eval $ac_try) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }; }; then
9144   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'
9145
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 fi
9151 rm -f conftest.err conftest.$ac_objext \
9152       conftest$ac_exeext conftest.$ac_ext
9153         LDFLAGS="$save_LDFLAGS"
9154       else
9155         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'
9156         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'
9157       fi
9158       archive_cmds_need_lc='no'
9159       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160       hardcode_libdir_separator=:
9161       inherit_rpath=yes
9162       link_all_deplibs=yes
9163       ;;
9164
9165     netbsd*)
9166       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9167         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9168       else
9169         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9170       fi
9171       hardcode_libdir_flag_spec='-R$libdir'
9172       hardcode_direct=yes
9173       hardcode_shlibpath_var=no
9174       ;;
9175
9176     newsos6)
9177       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9178       hardcode_direct=yes
9179       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9180       hardcode_libdir_separator=:
9181       hardcode_shlibpath_var=no
9182       ;;
9183
9184     *nto* | *qnx*)
9185       ;;
9186
9187     openbsd*)
9188       if test -f /usr/libexec/ld.so; then
9189         hardcode_direct=yes
9190         hardcode_shlibpath_var=no
9191         hardcode_direct_absolute=yes
9192         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9193           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9194           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9195           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9196           export_dynamic_flag_spec='${wl}-E'
9197         else
9198           case $host_os in
9199            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9200              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9201              hardcode_libdir_flag_spec='-R$libdir'
9202              ;;
9203            *)
9204              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9206              ;;
9207           esac
9208         fi
9209       else
9210         ld_shlibs=no
9211       fi
9212       ;;
9213
9214     os2*)
9215       hardcode_libdir_flag_spec='-L$libdir'
9216       hardcode_minus_L=yes
9217       allow_undefined_flag=unsupported
9218       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'
9219       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9220       ;;
9221
9222     osf3*)
9223       if test "$GCC" = yes; then
9224         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9225         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'
9226       else
9227         allow_undefined_flag=' -expect_unresolved \*'
9228         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'
9229       fi
9230       archive_cmds_need_lc='no'
9231       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232       hardcode_libdir_separator=:
9233       ;;
9234
9235     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9236       if test "$GCC" = yes; then
9237         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9238         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'
9239         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240       else
9241         allow_undefined_flag=' -expect_unresolved \*'
9242         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'
9243         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~
9244         $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'
9245
9246         # Both c and cxx compiler support -rpath directly
9247         hardcode_libdir_flag_spec='-rpath $libdir'
9248       fi
9249       archive_cmds_need_lc='no'
9250       hardcode_libdir_separator=:
9251       ;;
9252
9253     solaris*)
9254       no_undefined_flag=' -z defs'
9255       if test "$GCC" = yes; then
9256         wlarc='${wl}'
9257         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9258         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9259           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9260       else
9261         case `$CC -V 2>&1` in
9262         *"Compilers 5.0"*)
9263           wlarc=''
9264           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9266           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9267           ;;
9268         *)
9269           wlarc='${wl}'
9270           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9271           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9273           ;;
9274         esac
9275       fi
9276       hardcode_libdir_flag_spec='-R$libdir'
9277       hardcode_shlibpath_var=no
9278       case $host_os in
9279       solaris2.[0-5] | solaris2.[0-5].*) ;;
9280       *)
9281         # The compiler driver will combine and reorder linker options,
9282         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9283         # but is careful enough not to reorder.
9284         # Supported since Solaris 2.6 (maybe 2.5.1?)
9285         if test "$GCC" = yes; then
9286           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9287         else
9288           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9289         fi
9290         ;;
9291       esac
9292       link_all_deplibs=yes
9293       ;;
9294
9295     sunos4*)
9296       if test "x$host_vendor" = xsequent; then
9297         # Use $CC to link under sequent, because it throws in some extra .o
9298         # files that make .init and .fini sections work.
9299         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9300       else
9301         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9302       fi
9303       hardcode_libdir_flag_spec='-L$libdir'
9304       hardcode_direct=yes
9305       hardcode_minus_L=yes
9306       hardcode_shlibpath_var=no
9307       ;;
9308
9309     sysv4)
9310       case $host_vendor in
9311         sni)
9312           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313           hardcode_direct=yes # is this really true???
9314         ;;
9315         siemens)
9316           ## LD is ld it makes a PLAMLIB
9317           ## CC just makes a GrossModule.
9318           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9319           reload_cmds='$CC -r -o $output$reload_objs'
9320           hardcode_direct=no
9321         ;;
9322         motorola)
9323           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9325         ;;
9326       esac
9327       runpath_var='LD_RUN_PATH'
9328       hardcode_shlibpath_var=no
9329       ;;
9330
9331     sysv4.3*)
9332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333       hardcode_shlibpath_var=no
9334       export_dynamic_flag_spec='-Bexport'
9335       ;;
9336
9337     sysv4*MP*)
9338       if test -d /usr/nec; then
9339         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340         hardcode_shlibpath_var=no
9341         runpath_var=LD_RUN_PATH
9342         hardcode_runpath_var=yes
9343         ld_shlibs=yes
9344       fi
9345       ;;
9346
9347     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9348       no_undefined_flag='${wl}-z,text'
9349       archive_cmds_need_lc=no
9350       hardcode_shlibpath_var=no
9351       runpath_var='LD_RUN_PATH'
9352
9353       if test "$GCC" = yes; then
9354         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356       else
9357         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359       fi
9360       ;;
9361
9362     sysv5* | sco3.2v5* | sco5v6*)
9363       # Note: We can NOT use -z defs as we might desire, because we do not
9364       # link with -lc, and that would cause any symbols used from libc to
9365       # always be unresolved, which means just about no library would
9366       # ever link correctly.  If we're not using GNU ld we use -z text
9367       # though, which does catch some bad symbols but isn't as heavy-handed
9368       # as -z defs.
9369       no_undefined_flag='${wl}-z,text'
9370       allow_undefined_flag='${wl}-z,nodefs'
9371       archive_cmds_need_lc=no
9372       hardcode_shlibpath_var=no
9373       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9374       hardcode_libdir_separator=':'
9375       link_all_deplibs=yes
9376       export_dynamic_flag_spec='${wl}-Bexport'
9377       runpath_var='LD_RUN_PATH'
9378
9379       if test "$GCC" = yes; then
9380         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382       else
9383         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385       fi
9386       ;;
9387
9388     uts4*)
9389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390       hardcode_libdir_flag_spec='-L$libdir'
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     *)
9395       ld_shlibs=no
9396       ;;
9397     esac
9398
9399     if test x$host_vendor = xsni; then
9400       case $host in
9401       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9402         export_dynamic_flag_spec='${wl}-Blargedynsym'
9403         ;;
9404       esac
9405     fi
9406   fi
9407
9408 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9409 echo "${ECHO_T}$ld_shlibs" >&6
9410 test "$ld_shlibs" = no && can_build_shared=no
9411
9412 with_gnu_ld=$with_gnu_ld
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 #
9429 # Do we need to explicitly link libc?
9430 #
9431 case "x$archive_cmds_need_lc" in
9432 x|xyes)
9433   # Assume -lc should be added
9434   archive_cmds_need_lc=yes
9435
9436   if test "$enable_shared" = yes && test "$GCC" = yes; then
9437     case $archive_cmds in
9438     *'~'*)
9439       # FIXME: we may have to deal with multi-command sequences.
9440       ;;
9441     '$CC '*)
9442       # Test whether the compiler implicitly links with -lc since on some
9443       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9444       # to ld, don't add -lc before -lgcc.
9445       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9447 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   $RM conftest*
9451         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9454   (eval $ac_compile) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } 2>conftest.err; then
9458           soname=conftest
9459           lib=conftest
9460           libobjs=conftest.$ac_objext
9461           deplibs=
9462           wl=$lt_prog_compiler_wl
9463           pic_flag=$lt_prog_compiler_pic
9464           compiler_flags=-v
9465           linker_flags=-v
9466           verstring=
9467           output_objdir=.
9468           libname=conftest
9469           lt_save_allow_undefined_flag=$allow_undefined_flag
9470           allow_undefined_flag=
9471           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9472   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }
9476           then
9477             lt_cv_archive_cmds_need_lc=no
9478           else
9479             lt_cv_archive_cmds_need_lc=yes
9480           fi
9481           allow_undefined_flag=$lt_save_allow_undefined_flag
9482         else
9483           cat conftest.err 1>&5
9484         fi
9485         $RM conftest*
9486
9487 fi
9488 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9489 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9490       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9491       ;;
9492     esac
9493   fi
9494   ;;
9495 esac
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9654 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9655
9656 if test "$GCC" = yes; then
9657   case $host_os in
9658     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9659     *) lt_awk_arg="/^libraries:/" ;;
9660   esac
9661   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9662   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9663     # if the path contains ";" then we assume it to be the separator
9664     # otherwise default to the standard path separator (i.e. ":") - it is
9665     # assumed that no part of a normal pathname contains ";" but that should
9666     # okay in the real world where ";" in dirpaths is itself problematic.
9667     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9668   else
9669     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9670   fi
9671   # Ok, now we have the path, separated by spaces, we can step through it
9672   # and add multilib dir if necessary.
9673   lt_tmp_lt_search_path_spec=
9674   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9675   for lt_sys_path in $lt_search_path_spec; do
9676     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9677       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9678     else
9679       test -d "$lt_sys_path" && \
9680         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9681     fi
9682   done
9683   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9684 BEGIN {RS=" "; FS="/|\n";} {
9685   lt_foo="";
9686   lt_count=0;
9687   for (lt_i = NF; lt_i > 0; lt_i--) {
9688     if ($lt_i != "" && $lt_i != ".") {
9689       if ($lt_i == "..") {
9690         lt_count++;
9691       } else {
9692         if (lt_count == 0) {
9693           lt_foo="/" $lt_i lt_foo;
9694         } else {
9695           lt_count--;
9696         }
9697       }
9698     }
9699   }
9700   if (lt_foo != "") { lt_freq[lt_foo]++; }
9701   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9702 }'`
9703   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9704 else
9705   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9706 fi
9707 library_names_spec=
9708 libname_spec='lib$name'
9709 soname_spec=
9710 shrext_cmds=".so"
9711 postinstall_cmds=
9712 postuninstall_cmds=
9713 finish_cmds=
9714 finish_eval=
9715 shlibpath_var=
9716 shlibpath_overrides_runpath=unknown
9717 version_type=none
9718 dynamic_linker="$host_os ld.so"
9719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9720 need_lib_prefix=unknown
9721 hardcode_into_libs=no
9722
9723 # when you set need_version to no, make sure it does not cause -set_version
9724 # flags to be left without arguments
9725 need_version=unknown
9726
9727 case $host_os in
9728 aix3*)
9729   version_type=linux
9730   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9731   shlibpath_var=LIBPATH
9732
9733   # AIX 3 has no versioning support, so we append a major version to the name.
9734   soname_spec='${libname}${release}${shared_ext}$major'
9735   ;;
9736
9737 aix[4-9]*)
9738   version_type=linux
9739   need_lib_prefix=no
9740   need_version=no
9741   hardcode_into_libs=yes
9742   if test "$host_cpu" = ia64; then
9743     # AIX 5 supports IA64
9744     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9745     shlibpath_var=LD_LIBRARY_PATH
9746   else
9747     # With GCC up to 2.95.x, collect2 would create an import file
9748     # for dependence libraries.  The import file would start with
9749     # the line `#! .'.  This would cause the generated library to
9750     # depend on `.', always an invalid library.  This was fixed in
9751     # development snapshots of GCC prior to 3.0.
9752     case $host_os in
9753       aix4 | aix4.[01] | aix4.[01].*)
9754       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9755            echo ' yes '
9756            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9757         :
9758       else
9759         can_build_shared=no
9760       fi
9761       ;;
9762     esac
9763     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9764     # soname into executable. Probably we can add versioning support to
9765     # collect2, so additional links can be useful in future.
9766     if test "$aix_use_runtimelinking" = yes; then
9767       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9768       # instead of lib<name>.a to let people know that these are not
9769       # typical AIX shared libraries.
9770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771     else
9772       # We preserve .a as extension for shared libraries through AIX4.2
9773       # and later when we are not doing run time linking.
9774       library_names_spec='${libname}${release}.a $libname.a'
9775       soname_spec='${libname}${release}${shared_ext}$major'
9776     fi
9777     shlibpath_var=LIBPATH
9778   fi
9779   ;;
9780
9781 amigaos*)
9782   case $host_cpu in
9783   powerpc)
9784     # Since July 2007 AmigaOS4 officially supports .so libraries.
9785     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787     ;;
9788   m68k)
9789     library_names_spec='$libname.ixlibrary $libname.a'
9790     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9791     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'
9792     ;;
9793   esac
9794   ;;
9795
9796 beos*)
9797   library_names_spec='${libname}${shared_ext}'
9798   dynamic_linker="$host_os ld.so"
9799   shlibpath_var=LIBRARY_PATH
9800   ;;
9801
9802 bsdi[45]*)
9803   version_type=linux
9804   need_version=no
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9808   shlibpath_var=LD_LIBRARY_PATH
9809   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9810   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9811   # the default ld.so.conf also contains /usr/contrib/lib and
9812   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9813   # libtool to hard-code these into programs
9814   ;;
9815
9816 cygwin* | mingw* | pw32* | cegcc*)
9817   version_type=windows
9818   shrext_cmds=".dll"
9819   need_version=no
9820   need_lib_prefix=no
9821
9822   case $GCC,$host_os in
9823   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9824     library_names_spec='$libname.dll.a'
9825     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9826     postinstall_cmds='base_file=`basename \${file}`~
9827       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9828       dldir=$destdir/`dirname \$dlpath`~
9829       test -d \$dldir || mkdir -p \$dldir~
9830       $install_prog $dir/$dlname \$dldir/$dlname~
9831       chmod a+x \$dldir/$dlname~
9832       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9833         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9834       fi'
9835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9836       dlpath=$dir/\$dldll~
9837        $RM \$dlpath'
9838     shlibpath_overrides_runpath=yes
9839
9840     case $host_os in
9841     cygwin*)
9842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9845       ;;
9846     mingw* | cegcc*)
9847       # MinGW DLLs use traditional 'lib' prefix
9848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9849       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9850       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9851         # It is most probably a Windows format PATH printed by
9852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9853         # path with ; separators, and with drive letters. We can handle the
9854         # drive letters (cygwin fileutils understands them), so leave them,
9855         # especially as we might pass files found there to a mingw objdump,
9856         # which wouldn't understand a cygwinified path. Ahh.
9857         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9858       else
9859         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9860       fi
9861       ;;
9862     pw32*)
9863       # pw32 DLLs use 'pw' prefix rather than 'lib'
9864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865       ;;
9866     esac
9867     ;;
9868
9869   *)
9870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9871     ;;
9872   esac
9873   dynamic_linker='Win32 ld.exe'
9874   # FIXME: first we should search . and the directory the executable is in
9875   shlibpath_var=PATH
9876   ;;
9877
9878 darwin* | rhapsody*)
9879   dynamic_linker="$host_os dyld"
9880   version_type=darwin
9881   need_lib_prefix=no
9882   need_version=no
9883   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9884   soname_spec='${libname}${release}${major}$shared_ext'
9885   shlibpath_overrides_runpath=yes
9886   shlibpath_var=DYLD_LIBRARY_PATH
9887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9888
9889   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9890   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9891   ;;
9892
9893 dgux*)
9894   version_type=linux
9895   need_lib_prefix=no
9896   need_version=no
9897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9898   soname_spec='${libname}${release}${shared_ext}$major'
9899   shlibpath_var=LD_LIBRARY_PATH
9900   ;;
9901
9902 freebsd1*)
9903   dynamic_linker=no
9904   ;;
9905
9906 freebsd* | dragonfly*)
9907   # DragonFly does not have aout.  When/if they implement a new
9908   # versioning mechanism, adjust this.
9909   if test -x /usr/bin/objformat; then
9910     objformat=`/usr/bin/objformat`
9911   else
9912     case $host_os in
9913     freebsd[123]*) objformat=aout ;;
9914     *) objformat=elf ;;
9915     esac
9916   fi
9917   version_type=freebsd-$objformat
9918   case $version_type in
9919     freebsd-elf*)
9920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9921       need_version=no
9922       need_lib_prefix=no
9923       ;;
9924     freebsd-*)
9925       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9926       need_version=yes
9927       ;;
9928   esac
9929   shlibpath_var=LD_LIBRARY_PATH
9930   case $host_os in
9931   freebsd2*)
9932     shlibpath_overrides_runpath=yes
9933     ;;
9934   freebsd3.[01]* | freebsdelf3.[01]*)
9935     shlibpath_overrides_runpath=yes
9936     hardcode_into_libs=yes
9937     ;;
9938   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9939   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9940     shlibpath_overrides_runpath=no
9941     hardcode_into_libs=yes
9942     ;;
9943   *) # from 4.6 on, and DragonFly
9944     shlibpath_overrides_runpath=yes
9945     hardcode_into_libs=yes
9946     ;;
9947   esac
9948   ;;
9949
9950 gnu*)
9951   version_type=linux
9952   need_lib_prefix=no
9953   need_version=no
9954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   shlibpath_var=LD_LIBRARY_PATH
9957   hardcode_into_libs=yes
9958   ;;
9959
9960 hpux9* | hpux10* | hpux11*)
9961   # Give a soname corresponding to the major version so that dld.sl refuses to
9962   # link against other versions.
9963   version_type=sunos
9964   need_lib_prefix=no
9965   need_version=no
9966   case $host_cpu in
9967   ia64*)
9968     shrext_cmds='.so'
9969     hardcode_into_libs=yes
9970     dynamic_linker="$host_os dld.so"
9971     shlibpath_var=LD_LIBRARY_PATH
9972     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974     soname_spec='${libname}${release}${shared_ext}$major'
9975     if test "X$HPUX_IA64_MODE" = X32; then
9976       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9977     else
9978       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9979     fi
9980     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9981     ;;
9982   hppa*64*)
9983     shrext_cmds='.sl'
9984     hardcode_into_libs=yes
9985     dynamic_linker="$host_os dld.sl"
9986     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989     soname_spec='${libname}${release}${shared_ext}$major'
9990     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9991     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9992     ;;
9993   *)
9994     shrext_cmds='.sl'
9995     dynamic_linker="$host_os dld.sl"
9996     shlibpath_var=SHLIB_PATH
9997     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     ;;
10001   esac
10002   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10003   postinstall_cmds='chmod 555 $lib'
10004   ;;
10005
10006 interix[3-9]*)
10007   version_type=linux
10008   need_lib_prefix=no
10009   need_version=no
10010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10011   soname_spec='${libname}${release}${shared_ext}$major'
10012   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10013   shlibpath_var=LD_LIBRARY_PATH
10014   shlibpath_overrides_runpath=no
10015   hardcode_into_libs=yes
10016   ;;
10017
10018 irix5* | irix6* | nonstopux*)
10019   case $host_os in
10020     nonstopux*) version_type=nonstopux ;;
10021     *)
10022         if test "$lt_cv_prog_gnu_ld" = yes; then
10023                 version_type=linux
10024         else
10025                 version_type=irix
10026         fi ;;
10027   esac
10028   need_lib_prefix=no
10029   need_version=no
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10032   case $host_os in
10033   irix5* | nonstopux*)
10034     libsuff= shlibsuff=
10035     ;;
10036   *)
10037     case $LD in # libtool.m4 will add one of these switches to LD
10038     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10039       libsuff= shlibsuff= libmagic=32-bit;;
10040     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10041       libsuff=32 shlibsuff=N32 libmagic=N32;;
10042     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10043       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10044     *) libsuff= shlibsuff= libmagic=never-match;;
10045     esac
10046     ;;
10047   esac
10048   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10049   shlibpath_overrides_runpath=no
10050   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10051   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10052   hardcode_into_libs=yes
10053   ;;
10054
10055 # No shared lib support for Linux oldld, aout, or coff.
10056 linux*oldld* | linux*aout* | linux*coff*)
10057   dynamic_linker=no
10058   ;;
10059
10060 # This must be Linux ELF.
10061 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10062   version_type=linux
10063   need_lib_prefix=no
10064   need_version=no
10065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066   soname_spec='${libname}${release}${shared_ext}$major'
10067   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10068   shlibpath_var=LD_LIBRARY_PATH
10069   shlibpath_overrides_runpath=no
10070
10071   # Some binutils ld are patched to set DT_RUNPATH
10072   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   lt_cv_shlibpath_overrides_runpath=no
10076     save_LDFLAGS=$LDFLAGS
10077     save_libdir=$libdir
10078     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10079          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10080     cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086
10087 int
10088 main ()
10089 {
10090
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097   (eval $ac_link) 2>conftest.er1
10098   ac_status=$?
10099   grep -v '^ *+' conftest.er1 >conftest.err
10100   rm -f conftest.er1
10101   cat conftest.err >&5
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); } &&
10104          { ac_try='test -z "$ac_c_werror_flag"
10105                          || test ! -s conftest.err'
10106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107   (eval $ac_try) 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; } &&
10111          { ac_try='test -s conftest$ac_exeext'
10112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113   (eval $ac_try) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; }; then
10117   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10118   lt_cv_shlibpath_overrides_runpath=yes
10119 fi
10120
10121 else
10122   echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125 fi
10126 rm -f conftest.err conftest.$ac_objext \
10127       conftest$ac_exeext conftest.$ac_ext
10128     LDFLAGS=$save_LDFLAGS
10129     libdir=$save_libdir
10130
10131 fi
10132
10133   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10134
10135   # This implies no fast_install, which is unacceptable.
10136   # Some rework will be needed to allow for fast_install
10137   # before this can be enabled.
10138   hardcode_into_libs=yes
10139
10140   # Append ld.so.conf contents to the search path
10141   if test -f /etc/ld.so.conf; then
10142     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10143     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10144   fi
10145
10146   # We used to test for /lib/ld.so.1 and disable shared libraries on
10147   # powerpc, because MkLinux only supported shared libraries with the
10148   # GNU dynamic linker.  Since this was broken with cross compilers,
10149   # most powerpc-linux boxes support dynamic linking these days and
10150   # people can always --disable-shared, the test was removed, and we
10151   # assume the GNU/Linux dynamic linker is in use.
10152   dynamic_linker='GNU/Linux ld.so'
10153   ;;
10154
10155 netbsd*)
10156   version_type=sunos
10157   need_lib_prefix=no
10158   need_version=no
10159   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162     dynamic_linker='NetBSD (a.out) ld.so'
10163   else
10164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10165     soname_spec='${libname}${release}${shared_ext}$major'
10166     dynamic_linker='NetBSD ld.elf_so'
10167   fi
10168   shlibpath_var=LD_LIBRARY_PATH
10169   shlibpath_overrides_runpath=yes
10170   hardcode_into_libs=yes
10171   ;;
10172
10173 newsos6)
10174   version_type=linux
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=yes
10178   ;;
10179
10180 *nto* | *qnx*)
10181   version_type=qnx
10182   need_lib_prefix=no
10183   need_version=no
10184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185   soname_spec='${libname}${release}${shared_ext}$major'
10186   shlibpath_var=LD_LIBRARY_PATH
10187   shlibpath_overrides_runpath=no
10188   hardcode_into_libs=yes
10189   dynamic_linker='ldqnx.so'
10190   ;;
10191
10192 openbsd*)
10193   version_type=sunos
10194   sys_lib_dlsearch_path_spec="/usr/lib"
10195   need_lib_prefix=no
10196   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10197   case $host_os in
10198     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10199     *)                          need_version=no  ;;
10200   esac
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10205     case $host_os in
10206       openbsd2.[89] | openbsd2.[89].*)
10207         shlibpath_overrides_runpath=no
10208         ;;
10209       *)
10210         shlibpath_overrides_runpath=yes
10211         ;;
10212       esac
10213   else
10214     shlibpath_overrides_runpath=yes
10215   fi
10216   ;;
10217
10218 os2*)
10219   libname_spec='$name'
10220   shrext_cmds=".dll"
10221   need_lib_prefix=no
10222   library_names_spec='$libname${shared_ext} $libname.a'
10223   dynamic_linker='OS/2 ld.exe'
10224   shlibpath_var=LIBPATH
10225   ;;
10226
10227 osf3* | osf4* | osf5*)
10228   version_type=osf
10229   need_lib_prefix=no
10230   need_version=no
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10235   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10236   ;;
10237
10238 rdos*)
10239   dynamic_linker=no
10240   ;;
10241
10242 solaris*)
10243   version_type=linux
10244   need_lib_prefix=no
10245   need_version=no
10246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247   soname_spec='${libname}${release}${shared_ext}$major'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=yes
10250   hardcode_into_libs=yes
10251   # ldd complains unless libraries are executable
10252   postinstall_cmds='chmod +x $lib'
10253   ;;
10254
10255 sunos4*)
10256   version_type=sunos
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259   shlibpath_var=LD_LIBRARY_PATH
10260   shlibpath_overrides_runpath=yes
10261   if test "$with_gnu_ld" = yes; then
10262     need_lib_prefix=no
10263   fi
10264   need_version=yes
10265   ;;
10266
10267 sysv4 | sysv4.3*)
10268   version_type=linux
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   case $host_vendor in
10273     sni)
10274       shlibpath_overrides_runpath=no
10275       need_lib_prefix=no
10276       runpath_var=LD_RUN_PATH
10277       ;;
10278     siemens)
10279       need_lib_prefix=no
10280       ;;
10281     motorola)
10282       need_lib_prefix=no
10283       need_version=no
10284       shlibpath_overrides_runpath=no
10285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10286       ;;
10287   esac
10288   ;;
10289
10290 sysv4*MP*)
10291   if test -d /usr/nec ;then
10292     version_type=linux
10293     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10294     soname_spec='$libname${shared_ext}.$major'
10295     shlibpath_var=LD_LIBRARY_PATH
10296   fi
10297   ;;
10298
10299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10300   version_type=freebsd-elf
10301   need_lib_prefix=no
10302   need_version=no
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   shlibpath_overrides_runpath=yes
10307   hardcode_into_libs=yes
10308   if test "$with_gnu_ld" = yes; then
10309     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310   else
10311     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10312     case $host_os in
10313       sco3.2v5*)
10314         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10315         ;;
10316     esac
10317   fi
10318   sys_lib_dlsearch_path_spec='/usr/lib'
10319   ;;
10320
10321 tpf*)
10322   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10323   version_type=linux
10324   need_lib_prefix=no
10325   need_version=no
10326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   shlibpath_overrides_runpath=no
10329   hardcode_into_libs=yes
10330   ;;
10331
10332 uts4*)
10333   version_type=linux
10334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335   soname_spec='${libname}${release}${shared_ext}$major'
10336   shlibpath_var=LD_LIBRARY_PATH
10337   ;;
10338
10339 *)
10340   dynamic_linker=no
10341   ;;
10342 esac
10343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10344 echo "${ECHO_T}$dynamic_linker" >&6
10345 test "$dynamic_linker" = no && can_build_shared=no
10346
10347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10348 if test "$GCC" = yes; then
10349   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350 fi
10351
10352 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10353   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10354 fi
10355 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10356   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10357 fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10447 hardcode_action=
10448 if test -n "$hardcode_libdir_flag_spec" ||
10449    test -n "$runpath_var" ||
10450    test "X$hardcode_automatic" = "Xyes" ; then
10451
10452   # We can hardcode non-existent directories.
10453   if test "$hardcode_direct" != no &&
10454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10455      # have to relink, otherwise we might link with an installed library
10456      # when we should be linking with a yet-to-be-installed one
10457      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10458      test "$hardcode_minus_L" != no; then
10459     # Linking always hardcodes the temporary library directory.
10460     hardcode_action=relink
10461   else
10462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10463     hardcode_action=immediate
10464   fi
10465 else
10466   # We cannot hardcode anything, or else we can only hardcode existing
10467   # directories.
10468   hardcode_action=unsupported
10469 fi
10470 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10471 echo "${ECHO_T}$hardcode_action" >&6
10472
10473 if test "$hardcode_action" = relink ||
10474    test "$inherit_rpath" = yes; then
10475   # Fast installation is not supported
10476   enable_fast_install=no
10477 elif test "$shlibpath_overrides_runpath" = yes ||
10478      test "$enable_shared" = no; then
10479   # Fast installation is not necessary
10480   enable_fast_install=needless
10481 fi
10482
10483
10484
10485
10486
10487
10488   if test "x$enable_dlopen" != xyes; then
10489   enable_dlopen=unknown
10490   enable_dlopen_self=unknown
10491   enable_dlopen_self_static=unknown
10492 else
10493   lt_cv_dlopen=no
10494   lt_cv_dlopen_libs=
10495
10496   case $host_os in
10497   beos*)
10498     lt_cv_dlopen="load_add_on"
10499     lt_cv_dlopen_libs=
10500     lt_cv_dlopen_self=yes
10501     ;;
10502
10503   mingw* | pw32* | cegcc*)
10504     lt_cv_dlopen="LoadLibrary"
10505     lt_cv_dlopen_libs=
10506     ;;
10507
10508   cygwin*)
10509     lt_cv_dlopen="dlopen"
10510     lt_cv_dlopen_libs=
10511     ;;
10512
10513   darwin*)
10514   # if libdl is installed we need to link against it
10515     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   ac_check_lib_save_LIBS=$LIBS
10521 LIBS="-ldl  $LIBS"
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528
10529 /* Override any gcc2 internal prototype to avoid an error.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 /* We use char because int might match the return type of a gcc2
10534    builtin and then its argument prototype would still apply.  */
10535 char dlopen ();
10536 int
10537 main ()
10538 {
10539 dlopen ();
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546   (eval $ac_link) 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -z "$ac_c_werror_flag"
10554                          || test ! -s conftest.err'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_cv_lib_dl_dlopen=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_lib_dl_dlopen=no
10572 fi
10573 rm -f conftest.err conftest.$ac_objext \
10574       conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10576 fi
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10578 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10579 if test $ac_cv_lib_dl_dlopen = yes; then
10580   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10581 else
10582
10583     lt_cv_dlopen="dyld"
10584     lt_cv_dlopen_libs=
10585     lt_cv_dlopen_self=yes
10586
10587 fi
10588
10589     ;;
10590
10591   *)
10592     echo "$as_me:$LINENO: checking for shl_load" >&5
10593 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10594 if test "${ac_cv_func_shl_load+set}" = set; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597   cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10605 #define shl_load innocuous_shl_load
10606
10607 /* System header to define __stub macros and hopefully few prototypes,
10608     which can conflict with char shl_load (); below.
10609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610     <limits.h> exists even on freestanding compilers.  */
10611
10612 #ifdef __STDC__
10613 # include <limits.h>
10614 #else
10615 # include <assert.h>
10616 #endif
10617
10618 #undef shl_load
10619
10620 /* Override any gcc2 internal prototype to avoid an error.  */
10621 #ifdef __cplusplus
10622 extern "C"
10623 {
10624 #endif
10625 /* We use char because int might match the return type of a gcc2
10626    builtin and then its argument prototype would still apply.  */
10627 char shl_load ();
10628 /* The GNU C library defines this for functions which it implements
10629     to always fail with ENOSYS.  Some functions are actually named
10630     something starting with __ and the normal name is an alias.  */
10631 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10632 choke me
10633 #else
10634 char (*f) () = shl_load;
10635 #endif
10636 #ifdef __cplusplus
10637 }
10638 #endif
10639
10640 int
10641 main ()
10642 {
10643 return f != shl_load;
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650   (eval $ac_link) 2>conftest.er1
10651   ac_status=$?
10652   grep -v '^ *+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } &&
10657          { ac_try='test -z "$ac_c_werror_flag"
10658                          || test ! -s conftest.err'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_func_shl_load=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_func_shl_load=no
10676 fi
10677 rm -f conftest.err conftest.$ac_objext \
10678       conftest$ac_exeext conftest.$ac_ext
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10681 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10682 if test $ac_cv_func_shl_load = yes; then
10683   lt_cv_dlopen="shl_load"
10684 else
10685   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10686 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10687 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-ldld  $LIBS"
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698
10699 /* Override any gcc2 internal prototype to avoid an error.  */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 /* We use char because int might match the return type of a gcc2
10704    builtin and then its argument prototype would still apply.  */
10705 char shl_load ();
10706 int
10707 main ()
10708 {
10709 shl_load ();
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716   (eval $ac_link) 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -z "$ac_c_werror_flag"
10724                          || test ! -s conftest.err'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest$ac_exeext'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_cv_lib_dld_shl_load=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_cv_lib_dld_shl_load=no
10742 fi
10743 rm -f conftest.err conftest.$ac_objext \
10744       conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10749 if test $ac_cv_lib_dld_shl_load = yes; then
10750   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10751 else
10752   echo "$as_me:$LINENO: checking for dlopen" >&5
10753 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10754 if test "${ac_cv_func_dlopen+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10765 #define dlopen innocuous_dlopen
10766
10767 /* System header to define __stub macros and hopefully few prototypes,
10768     which can conflict with char dlopen (); below.
10769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770     <limits.h> exists even on freestanding compilers.  */
10771
10772 #ifdef __STDC__
10773 # include <limits.h>
10774 #else
10775 # include <assert.h>
10776 #endif
10777
10778 #undef dlopen
10779
10780 /* Override any gcc2 internal prototype to avoid an error.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 {
10784 #endif
10785 /* We use char because int might match the return type of a gcc2
10786    builtin and then its argument prototype would still apply.  */
10787 char dlopen ();
10788 /* The GNU C library defines this for functions which it implements
10789     to always fail with ENOSYS.  Some functions are actually named
10790     something starting with __ and the normal name is an alias.  */
10791 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10792 choke me
10793 #else
10794 char (*f) () = dlopen;
10795 #endif
10796 #ifdef __cplusplus
10797 }
10798 #endif
10799
10800 int
10801 main ()
10802 {
10803 return f != dlopen;
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810   (eval $ac_link) 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -z "$ac_c_werror_flag"
10818                          || test ! -s conftest.err'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest$ac_exeext'
10825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826   (eval $ac_try) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_cv_func_dlopen=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_func_dlopen=no
10836 fi
10837 rm -f conftest.err conftest.$ac_objext \
10838       conftest$ac_exeext conftest.$ac_ext
10839 fi
10840 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10841 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10842 if test $ac_cv_func_dlopen = yes; then
10843   lt_cv_dlopen="dlopen"
10844 else
10845   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10846 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldl  $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858
10859 /* Override any gcc2 internal prototype to avoid an error.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 /* We use char because int might match the return type of a gcc2
10864    builtin and then its argument prototype would still apply.  */
10865 char dlopen ();
10866 int
10867 main ()
10868 {
10869 dlopen ();
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876   (eval $ac_link) 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -z "$ac_c_werror_flag"
10884                          || test ! -s conftest.err'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; } &&
10890          { ac_try='test -s conftest$ac_exeext'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_cv_lib_dl_dlopen=yes
10897 else
10898   echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 ac_cv_lib_dl_dlopen=no
10902 fi
10903 rm -f conftest.err conftest.$ac_objext \
10904       conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10908 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10909 if test $ac_cv_lib_dl_dlopen = yes; then
10910   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10911 else
10912   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10913 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10914 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10915   echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917   ac_check_lib_save_LIBS=$LIBS
10918 LIBS="-lsvld  $LIBS"
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925
10926 /* Override any gcc2 internal prototype to avoid an error.  */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 /* We use char because int might match the return type of a gcc2
10931    builtin and then its argument prototype would still apply.  */
10932 char dlopen ();
10933 int
10934 main ()
10935 {
10936 dlopen ();
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943   (eval $ac_link) 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag"
10951                          || test ! -s conftest.err'
10952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953   (eval $ac_try) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; } &&
10957          { ac_try='test -s conftest$ac_exeext'
10958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959   (eval $ac_try) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   ac_cv_lib_svld_dlopen=yes
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968 ac_cv_lib_svld_dlopen=no
10969 fi
10970 rm -f conftest.err conftest.$ac_objext \
10971       conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
10974 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10975 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10976 if test $ac_cv_lib_svld_dlopen = yes; then
10977   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10978 else
10979   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10980 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10981 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldld  $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h.  */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h.  */
10992
10993 /* Override any gcc2 internal prototype to avoid an error.  */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998    builtin and then its argument prototype would still apply.  */
10999 char dld_link ();
11000 int
11001 main ()
11002 {
11003 dld_link ();
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010   (eval $ac_link) 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } &&
11017          { ac_try='test -z "$ac_c_werror_flag"
11018                          || test ! -s conftest.err'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest$ac_exeext'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   ac_cv_lib_dld_dld_link=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035 ac_cv_lib_dld_dld_link=no
11036 fi
11037 rm -f conftest.err conftest.$ac_objext \
11038       conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11042 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11043 if test $ac_cv_lib_dld_dld_link = yes; then
11044   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11045 fi
11046
11047
11048 fi
11049
11050
11051 fi
11052
11053
11054 fi
11055
11056
11057 fi
11058
11059
11060 fi
11061
11062     ;;
11063   esac
11064
11065   if test "x$lt_cv_dlopen" != xno; then
11066     enable_dlopen=yes
11067   else
11068     enable_dlopen=no
11069   fi
11070
11071   case $lt_cv_dlopen in
11072   dlopen)
11073     save_CPPFLAGS="$CPPFLAGS"
11074     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11075
11076     save_LDFLAGS="$LDFLAGS"
11077     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11078
11079     save_LIBS="$LIBS"
11080     LIBS="$lt_cv_dlopen_libs $LIBS"
11081
11082     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11083 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11084 if test "${lt_cv_dlopen_self+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087           if test "$cross_compiling" = yes; then :
11088   lt_cv_dlopen_self=cross
11089 else
11090   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11091   lt_status=$lt_dlunknown
11092   cat > conftest.$ac_ext <<_LT_EOF
11093 #line 11093 "configure"
11094 #include "confdefs.h"
11095
11096 #if HAVE_DLFCN_H
11097 #include <dlfcn.h>
11098 #endif
11099
11100 #include <stdio.h>
11101
11102 #ifdef RTLD_GLOBAL
11103 #  define LT_DLGLOBAL           RTLD_GLOBAL
11104 #else
11105 #  ifdef DL_GLOBAL
11106 #    define LT_DLGLOBAL         DL_GLOBAL
11107 #  else
11108 #    define LT_DLGLOBAL         0
11109 #  endif
11110 #endif
11111
11112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11113    find out it does not work in some platform. */
11114 #ifndef LT_DLLAZY_OR_NOW
11115 #  ifdef RTLD_LAZY
11116 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11117 #  else
11118 #    ifdef DL_LAZY
11119 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11120 #    else
11121 #      ifdef RTLD_NOW
11122 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11123 #      else
11124 #        ifdef DL_NOW
11125 #          define LT_DLLAZY_OR_NOW      DL_NOW
11126 #        else
11127 #          define LT_DLLAZY_OR_NOW      0
11128 #        endif
11129 #      endif
11130 #    endif
11131 #  endif
11132 #endif
11133
11134 void fnord() { int i=42;}
11135 int main ()
11136 {
11137   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138   int status = $lt_dlunknown;
11139
11140   if (self)
11141     {
11142       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11143       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144       /* dlclose (self); */
11145     }
11146   else
11147     puts (dlerror ());
11148
11149   return status;
11150 }
11151 _LT_EOF
11152   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153   (eval $ac_link) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11157     (./conftest; exit; ) >&5 2>/dev/null
11158     lt_status=$?
11159     case x$lt_status in
11160       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163     esac
11164   else :
11165     # compilation failed
11166     lt_cv_dlopen_self=no
11167   fi
11168 fi
11169 rm -fr conftest*
11170
11171
11172 fi
11173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11174 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11175
11176     if test "x$lt_cv_dlopen_self" = xyes; then
11177       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11179 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11180 if test "${lt_cv_dlopen_self_static+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183           if test "$cross_compiling" = yes; then :
11184   lt_cv_dlopen_self_static=cross
11185 else
11186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187   lt_status=$lt_dlunknown
11188   cat > conftest.$ac_ext <<_LT_EOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11191
11192 #if HAVE_DLFCN_H
11193 #include <dlfcn.h>
11194 #endif
11195
11196 #include <stdio.h>
11197
11198 #ifdef RTLD_GLOBAL
11199 #  define LT_DLGLOBAL           RTLD_GLOBAL
11200 #else
11201 #  ifdef DL_GLOBAL
11202 #    define LT_DLGLOBAL         DL_GLOBAL
11203 #  else
11204 #    define LT_DLGLOBAL         0
11205 #  endif
11206 #endif
11207
11208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209    find out it does not work in some platform. */
11210 #ifndef LT_DLLAZY_OR_NOW
11211 #  ifdef RTLD_LAZY
11212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11213 #  else
11214 #    ifdef DL_LAZY
11215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11216 #    else
11217 #      ifdef RTLD_NOW
11218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11219 #      else
11220 #        ifdef DL_NOW
11221 #          define LT_DLLAZY_OR_NOW      DL_NOW
11222 #        else
11223 #          define LT_DLLAZY_OR_NOW      0
11224 #        endif
11225 #      endif
11226 #    endif
11227 #  endif
11228 #endif
11229
11230 void fnord() { int i=42;}
11231 int main ()
11232 {
11233   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11234   int status = $lt_dlunknown;
11235
11236   if (self)
11237     {
11238       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11239       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11240       /* dlclose (self); */
11241     }
11242   else
11243     puts (dlerror ());
11244
11245   return status;
11246 }
11247 _LT_EOF
11248   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249   (eval $ac_link) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11253     (./conftest; exit; ) >&5 2>/dev/null
11254     lt_status=$?
11255     case x$lt_status in
11256       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11257       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11258       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11259     esac
11260   else :
11261     # compilation failed
11262     lt_cv_dlopen_self_static=no
11263   fi
11264 fi
11265 rm -fr conftest*
11266
11267
11268 fi
11269 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11270 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11271     fi
11272
11273     CPPFLAGS="$save_CPPFLAGS"
11274     LDFLAGS="$save_LDFLAGS"
11275     LIBS="$save_LIBS"
11276     ;;
11277   esac
11278
11279   case $lt_cv_dlopen_self in
11280   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11281   *) enable_dlopen_self=unknown ;;
11282   esac
11283
11284   case $lt_cv_dlopen_self_static in
11285   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11286   *) enable_dlopen_self_static=unknown ;;
11287   esac
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 striplib=
11307 old_striplib=
11308 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11309 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11310 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11311   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11312   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11313   echo "$as_me:$LINENO: result: yes" >&5
11314 echo "${ECHO_T}yes" >&6
11315 else
11316 # FIXME - insert some real tests, host_os isn't really good enough
11317   case $host_os in
11318   darwin*)
11319     if test -n "$STRIP" ; then
11320       striplib="$STRIP -x"
11321       old_striplib="$STRIP -S"
11322       echo "$as_me:$LINENO: result: yes" >&5
11323 echo "${ECHO_T}yes" >&6
11324     else
11325       echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11327     fi
11328     ;;
11329   *)
11330     echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6
11332     ;;
11333   esac
11334 fi
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347   # Report which library types will actually be built
11348   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11349 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11350   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11351 echo "${ECHO_T}$can_build_shared" >&6
11352
11353   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11354 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11355   test "$can_build_shared" = "no" && enable_shared=no
11356
11357   # On AIX, shared libraries and static libraries use the same namespace, and
11358   # are all built from PIC.
11359   case $host_os in
11360   aix3*)
11361     test "$enable_shared" = yes && enable_static=no
11362     if test -n "$RANLIB"; then
11363       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11364       postinstall_cmds='$RANLIB $lib'
11365     fi
11366     ;;
11367
11368   aix[4-9]*)
11369     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11370       test "$enable_shared" = yes && enable_static=no
11371     fi
11372     ;;
11373   esac
11374   echo "$as_me:$LINENO: result: $enable_shared" >&5
11375 echo "${ECHO_T}$enable_shared" >&6
11376
11377   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11378 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11379   # Make sure either enable_shared or enable_static is yes.
11380   test "$enable_shared" = yes || enable_static=yes
11381   echo "$as_me:$LINENO: result: $enable_static" >&5
11382 echo "${ECHO_T}$enable_static" >&6
11383
11384
11385
11386
11387 fi
11388 ac_ext=c
11389 ac_cpp='$CPP $CPPFLAGS'
11390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393
11394 CC="$lt_save_CC"
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408                   ac_config_commands="$ac_config_commands libtool"
11409
11410
11411
11412
11413 # Only expand once:
11414
11415
11416
11417 # Check whether --enable-plugins or --disable-plugins was given.
11418 if test "${enable_plugins+set}" = set; then
11419   enableval="$enable_plugins"
11420   case "${enableval}" in
11421   yes | "") plugins=yes ;;
11422   no) plugins=no ;;
11423   *) plugins=yes ;;
11424  esac
11425 else
11426   plugins=no
11427 fi;
11428
11429
11430
11431 if test "$plugins" = "yes"; then
11432   PLUGINS_TRUE=
11433   PLUGINS_FALSE='#'
11434 else
11435   PLUGINS_TRUE='#'
11436   PLUGINS_FALSE=
11437 fi
11438
11439
11440 if test "$plugins" = "yes"; then
11441   if test "$enable_dlopen" != "yes" ; then
11442     { { echo "$as_me:$LINENO: error:
11443       Building BFD with plugin support requires a host that supports -ldl." >&5
11444 echo "$as_me: error:
11445       Building BFD with plugin support requires a host that supports -ldl." >&2;}
11446    { (exit 1); exit 1; }; }
11447   fi
11448   enable_targets="$enable_targets plugin"
11449 fi
11450
11451 case "${target}" in
11452   sparc-*-solaris*|i[3-7]86-*-solaris*)
11453     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11454     # are mutually exclusive; and without procfs support, the elf module
11455     # cannot provide certain routines such as elfcore_write_prpsinfo
11456     # or elfcore_write_prstatus.  So unless the user explicitly requested
11457     # large-file support through the --enable-largefile switch, disable
11458     # large-file support in favor of procfs support.
11459     if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
11460       if test "$plugins" = "no"; then
11461         enable_largefile="no"
11462       fi
11463     fi
11464     ;;
11465 esac
11466
11467 # Check whether --enable-largefile or --disable-largefile was given.
11468 if test "${enable_largefile+set}" = set; then
11469   enableval="$enable_largefile"
11470
11471 fi;
11472 if test "$enable_largefile" != no; then
11473
11474   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11475 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11476 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   ac_cv_sys_largefile_CC=no
11480      if test "$GCC" != yes; then
11481        ac_save_CC=$CC
11482        while :; do
11483          # IRIX 6.2 and later do not support large files by default,
11484          # so use the C compiler's -n32 option if that helps.
11485          cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h.  */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h.  */
11491 #include <sys/types.h>
11492  /* Check that off_t can represent 2**63 - 1 correctly.
11493     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11494     since some C++ compilers masquerading as C compilers
11495     incorrectly reject 9223372036854775807.  */
11496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11497   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11498                        && LARGE_OFF_T % 2147483647 == 1)
11499                       ? 1 : -1];
11500 int
11501 main ()
11502 {
11503
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508          rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510   (eval $ac_compile) 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag"
11518                          || test ! -s conftest.err'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; } &&
11524          { ac_try='test -s conftest.$ac_objext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   break
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 fi
11536 rm -f conftest.err conftest.$ac_objext
11537          CC="$CC -n32"
11538          rm -f conftest.$ac_objext
11539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11540   (eval $ac_compile) 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } &&
11547          { ac_try='test -z "$ac_c_werror_flag"
11548                          || test ! -s conftest.err'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; } &&
11554          { ac_try='test -s conftest.$ac_objext'
11555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556   (eval $ac_try) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_cv_sys_largefile_CC=' -n32'; break
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 fi
11566 rm -f conftest.err conftest.$ac_objext
11567          break
11568        done
11569        CC=$ac_save_CC
11570        rm -f conftest.$ac_ext
11571     fi
11572 fi
11573 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11574 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
11575   if test "$ac_cv_sys_largefile_CC" != no; then
11576     CC=$CC$ac_cv_sys_largefile_CC
11577   fi
11578
11579   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11580 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11581 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   while :; do
11585   ac_cv_sys_file_offset_bits=no
11586   cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h.  */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h.  */
11592 #include <sys/types.h>
11593  /* Check that off_t can represent 2**63 - 1 correctly.
11594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11595     since some C++ compilers masquerading as C compilers
11596     incorrectly reject 9223372036854775807.  */
11597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11599                        && LARGE_OFF_T % 2147483647 == 1)
11600                       ? 1 : -1];
11601 int
11602 main ()
11603 {
11604
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611   (eval $ac_compile) 2>conftest.er1
11612   ac_status=$?
11613   grep -v '^ *+' conftest.er1 >conftest.err
11614   rm -f conftest.er1
11615   cat conftest.err >&5
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } &&
11618          { ac_try='test -z "$ac_c_werror_flag"
11619                          || test ! -s conftest.err'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; } &&
11625          { ac_try='test -s conftest.$ac_objext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   break
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 fi
11637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11638   cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #define _FILE_OFFSET_BITS 64
11645 #include <sys/types.h>
11646  /* Check that off_t can represent 2**63 - 1 correctly.
11647     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11648     since some C++ compilers masquerading as C compilers
11649     incorrectly reject 9223372036854775807.  */
11650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11651   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11652                        && LARGE_OFF_T % 2147483647 == 1)
11653                       ? 1 : -1];
11654 int
11655 main ()
11656 {
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664   (eval $ac_compile) 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag"
11672                          || test ! -s conftest.err'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest.$ac_objext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_cv_sys_file_offset_bits=64; break
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 fi
11690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691   break
11692 done
11693 fi
11694 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11695 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11696 if test "$ac_cv_sys_file_offset_bits" != no; then
11697
11698 cat >>confdefs.h <<_ACEOF
11699 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11700 _ACEOF
11701
11702 fi
11703 rm -f conftest*
11704   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11705 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11706 if test "${ac_cv_sys_large_files+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   while :; do
11710   ac_cv_sys_large_files=no
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 #include <sys/types.h>
11718  /* Check that off_t can represent 2**63 - 1 correctly.
11719     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11720     since some C++ compilers masquerading as C compilers
11721     incorrectly reject 9223372036854775807.  */
11722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11723   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11724                        && LARGE_OFF_T % 2147483647 == 1)
11725                       ? 1 : -1];
11726 int
11727 main ()
11728 {
11729
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736   (eval $ac_compile) 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } &&
11743          { ac_try='test -z "$ac_c_werror_flag"
11744                          || test ! -s conftest.err'
11745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746   (eval $ac_try) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; } &&
11750          { ac_try='test -s conftest.$ac_objext'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; }; then
11756   break
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 fi
11762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11763   cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h.  */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h.  */
11769 #define _LARGE_FILES 1
11770 #include <sys/types.h>
11771  /* Check that off_t can represent 2**63 - 1 correctly.
11772     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11773     since some C++ compilers masquerading as C compilers
11774     incorrectly reject 9223372036854775807.  */
11775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11776   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11777                        && LARGE_OFF_T % 2147483647 == 1)
11778                       ? 1 : -1];
11779 int
11780 main ()
11781 {
11782
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789   (eval $ac_compile) 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag"
11797                          || test ! -s conftest.err'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; } &&
11803          { ac_try='test -s conftest.$ac_objext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   ac_cv_sys_large_files=1; break
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 fi
11815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816   break
11817 done
11818 fi
11819 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11820 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11821 if test "$ac_cv_sys_large_files" != no; then
11822
11823 cat >>confdefs.h <<_ACEOF
11824 #define _LARGE_FILES $ac_cv_sys_large_files
11825 _ACEOF
11826
11827 fi
11828 rm -f conftest*
11829 fi
11830
11831
11832 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11833 if test "${enable_64_bit_bfd+set}" = set; then
11834   enableval="$enable_64_bit_bfd"
11835   case "${enableval}" in
11836   yes)  want64=true  ;;
11837   no)   want64=false ;;
11838   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11839 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11840    { (exit 1); exit 1; }; } ;;
11841 esac
11842 else
11843   want64=false
11844 fi;
11845 # Check whether --enable-targets or --disable-targets was given.
11846 if test "${enable_targets+set}" = set; then
11847   enableval="$enable_targets"
11848   case "${enableval}" in
11849   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11850 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11851    { (exit 1); exit 1; }; }
11852             ;;
11853   no)       enable_targets= ;;
11854   *)        enable_targets=$enableval ;;
11855 esac
11856 fi;
11857
11858 # Check whether --with-mmap or --without-mmap was given.
11859 if test "${with_mmap+set}" = set; then
11860   withval="$with_mmap"
11861   case "${withval}" in
11862   yes)  want_mmap=true ;;
11863   no)   want_mmap=false ;;
11864   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11865 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11866    { (exit 1); exit 1; }; } ;;
11867 esac
11868 else
11869   want_mmap=false
11870 fi;
11871 # Check whether --enable-secureplt or --disable-secureplt was given.
11872 if test "${enable_secureplt+set}" = set; then
11873   enableval="$enable_secureplt"
11874   case "${enableval}" in
11875   yes)  use_secureplt=true  ;;
11876   no)   use_secureplt=false ;;
11877   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11878 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11879    { (exit 1); exit 1; }; } ;;
11880 esac
11881 else
11882   use_secureplt=false
11883 fi; if test $use_secureplt = true; then
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define USE_SECUREPLT 1
11887 _ACEOF
11888
11889 fi
11890
11891 DEBUGDIR=${libdir}/debug
11892
11893 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11894 if test "${with_separate_debug_dir+set}" = set; then
11895   withval="$with_separate_debug_dir"
11896   DEBUGDIR="${withval}"
11897 fi;
11898
11899
11900 # Check to see if we should allow the generation of
11901 # symbols with the ELF standard's STT_COMMON type.
11902 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11903 if test "${enable_elf_stt_common+set}" = set; then
11904   enableval="$enable_elf_stt_common"
11905   case "${enableval}" in
11906   yes) want_elf_stt_common=true ;;
11907   no)  want_elf_stt_common=false ;;
11908   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11909 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11910    { (exit 1); exit 1; }; } ;;
11911  esac
11912 else
11913   # We have to choose a default behaviour.  For native builds we could
11914 # test whether the loader supports the STT_COMMON type, but that would
11915 # mean that built binaries could not be exported to older systems where
11916 # the loader does not support it. So by default we always choose to
11917 # disable this feature.
11918   want_elf_stt_common=false
11919 fi; if test $want_elf_stt_common = true; then
11920
11921 cat >>confdefs.h <<\_ACEOF
11922 #define USE_STT_COMMON 1
11923 _ACEOF
11924
11925 fi
11926
11927
11928
11929 # Check whether --with-pkgversion or --without-pkgversion was given.
11930 if test "${with_pkgversion+set}" = set; then
11931   withval="$with_pkgversion"
11932   case "$withval" in
11933       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11934 echo "$as_me: error: package version not specified" >&2;}
11935    { (exit 1); exit 1; }; } ;;
11936       no)  PKGVERSION= ;;
11937       *)   PKGVERSION="($withval) " ;;
11938      esac
11939 else
11940   PKGVERSION="(GNU Binutils) "
11941
11942 fi;
11943
11944
11945
11946
11947 # Check whether --with-bugurl or --without-bugurl was given.
11948 if test "${with_bugurl+set}" = set; then
11949   withval="$with_bugurl"
11950   case "$withval" in
11951       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11952 echo "$as_me: error: bug URL not specified" >&2;}
11953    { (exit 1); exit 1; }; } ;;
11954       no)  BUGURL=
11955            ;;
11956       *)   BUGURL="$withval"
11957            ;;
11958      esac
11959 else
11960   BUGURL="http://www.sourceware.org/bugzilla/"
11961
11962 fi;
11963   case ${BUGURL} in
11964   "")
11965     REPORT_BUGS_TO=
11966     REPORT_BUGS_TEXI=
11967     ;;
11968   *)
11969     REPORT_BUGS_TO="<$BUGURL>"
11970     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11971     ;;
11972   esac;
11973
11974
11975
11976
11977
11978 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11979
11980 # Check whether --enable-werror or --disable-werror was given.
11981 if test "${enable_werror+set}" = set; then
11982   enableval="$enable_werror"
11983   case "${enableval}" in
11984      yes | y) ERROR_ON_WARNING="yes" ;;
11985      no | n)  ERROR_ON_WARNING="no" ;;
11986      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11987 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11988    { (exit 1); exit 1; }; } ;;
11989    esac
11990 fi;
11991
11992 # Enable -Wno-format by default when using gcc on mingw
11993 case "${host}" in
11994   *-*-mingw32*)
11995     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11996       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11997     fi
11998     ;;
11999   *) ;;
12000 esac
12001
12002 # Enable -Werror by default when using gcc
12003 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12004     ERROR_ON_WARNING=yes
12005 fi
12006
12007 NO_WERROR=
12008 if test "${ERROR_ON_WARNING}" = yes ; then
12009     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12010     NO_WERROR="-Wno-error"
12011 fi
12012
12013 if test "${GCC}" = yes ; then
12014   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12015 fi
12016
12017 # Check whether --enable-build-warnings or --disable-build-warnings was given.
12018 if test "${enable_build_warnings+set}" = set; then
12019   enableval="$enable_build_warnings"
12020   case "${enableval}" in
12021   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12022   no)   if test "${GCC}" = yes ; then
12023           WARN_CFLAGS="-w"
12024         fi;;
12025   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12026         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12027   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12028         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12029   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12030 esac
12031 fi;
12032
12033 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12034   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12035 fi
12036
12037
12038
12039
12040
12041           ac_config_headers="$ac_config_headers config.h:config.in"
12042
12043
12044 if test -z "$target" ; then
12045     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12046 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12047    { (exit 1); exit 1; }; }
12048 fi
12049
12050 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12051 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12052     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12053 if test "${enable_maintainer_mode+set}" = set; then
12054   enableval="$enable_maintainer_mode"
12055   USE_MAINTAINER_MODE=$enableval
12056 else
12057   USE_MAINTAINER_MODE=no
12058 fi;
12059   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12060 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12061
12062
12063 if test $USE_MAINTAINER_MODE = yes; then
12064   MAINTAINER_MODE_TRUE=
12065   MAINTAINER_MODE_FALSE='#'
12066 else
12067   MAINTAINER_MODE_TRUE='#'
12068   MAINTAINER_MODE_FALSE=
12069 fi
12070
12071   MAINT=$MAINTAINER_MODE_TRUE
12072
12073
12074
12075
12076 if false; then
12077   GENINSRC_NEVER_TRUE=
12078   GENINSRC_NEVER_FALSE='#'
12079 else
12080   GENINSRC_NEVER_TRUE='#'
12081   GENINSRC_NEVER_FALSE=
12082 fi
12083
12084  case ${build_alias} in
12085   "") build_noncanonical=${build} ;;
12086   *) build_noncanonical=${build_alias} ;;
12087 esac
12088
12089  case ${host_alias} in
12090   "") host_noncanonical=${build_noncanonical} ;;
12091   *) host_noncanonical=${host_alias} ;;
12092 esac
12093
12094  case ${target_alias} in
12095   "") target_noncanonical=${host_noncanonical} ;;
12096   *) target_noncanonical=${target_alias} ;;
12097 esac
12098
12099 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12100 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12101   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12102 if test "${enable_install_libbfd+set}" = set; then
12103   enableval="$enable_install_libbfd"
12104   install_libbfd_p=$enableval
12105 else
12106   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12107         install_libbfd_p=yes
12108       else
12109         install_libbfd_p=no
12110       fi
12111 fi;
12112   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12113 echo "${ECHO_T}$install_libbfd_p" >&6
12114
12115
12116 if test $install_libbfd_p = yes; then
12117   INSTALL_LIBBFD_TRUE=
12118   INSTALL_LIBBFD_FALSE='#'
12119 else
12120   INSTALL_LIBBFD_TRUE='#'
12121   INSTALL_LIBBFD_FALSE=
12122 fi
12123
12124   # Need _noncanonical variables for this.
12125
12126
12127
12128
12129   # libbfd.a is a host library containing target dependent code
12130   bfdlibdir='$(libdir)'
12131   bfdincludedir='$(includedir)'
12132   if test "${host}" != "${target}"; then
12133     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12134     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12135   fi
12136
12137
12138
12139
12140
12141
12142 host64=false
12143 target64=false
12144 bfd_default_target_size=32
12145
12146 # host stuff:
12147
12148 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12149 # If we haven't got the data from the intl directory,
12150 # assume NLS is disabled.
12151 USE_NLS=no
12152 LIBINTL=
12153 LIBINTL_DEP=
12154 INCINTL=
12155 XGETTEXT=
12156 GMSGFMT=
12157 POSUB=
12158
12159 if test -f  ../intl/config.intl; then
12160   .  ../intl/config.intl
12161 fi
12162 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12163 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12164 if test x"$USE_NLS" != xyes; then
12165   echo "$as_me:$LINENO: result: no" >&5
12166 echo "${ECHO_T}no" >&6
12167 else
12168   echo "$as_me:$LINENO: result: yes" >&5
12169 echo "${ECHO_T}yes" >&6
12170
12171 cat >>confdefs.h <<\_ACEOF
12172 #define ENABLE_NLS 1
12173 _ACEOF
12174
12175
12176   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12177 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12178   # Look for .po and .gmo files in the source directory.
12179   CATALOGS=
12180   XLINGUAS=
12181   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12182     # If there aren't any .gmo files the shell will give us the
12183     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12184     # weeded out.
12185     case "$cat" in *\**)
12186       continue;;
12187     esac
12188     # The quadruple backslash is collapsed to a double backslash
12189     # by the backticks, then collapsed again by the double quotes,
12190     # leaving us with one backslash in the sed expression (right
12191     # before the dot that mustn't act as a wildcard).
12192     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12193     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12194     # The user is allowed to set LINGUAS to a list of languages to
12195     # install catalogs for.  If it's empty that means "all of them."
12196     if test "x$LINGUAS" = x; then
12197       CATALOGS="$CATALOGS $cat"
12198       XLINGUAS="$XLINGUAS $lang"
12199     else
12200       case "$LINGUAS" in *$lang*)
12201         CATALOGS="$CATALOGS $cat"
12202         XLINGUAS="$XLINGUAS $lang"
12203         ;;
12204       esac
12205     fi
12206   done
12207   LINGUAS="$XLINGUAS"
12208   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12209 echo "${ECHO_T}$LINGUAS" >&6
12210
12211
12212     DATADIRNAME=share
12213
12214   INSTOBJEXT=.mo
12215
12216   GENCAT=gencat
12217
12218   CATOBJEXT=.gmo
12219
12220 fi
12221
12222         MKINSTALLDIRS=
12223   if test -n "$ac_aux_dir"; then
12224     case "$ac_aux_dir" in
12225       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12226       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12227     esac
12228   fi
12229   if test -z "$MKINSTALLDIRS"; then
12230     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12231   fi
12232
12233
12234
12235   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12236 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12237     # Check whether --enable-nls or --disable-nls was given.
12238 if test "${enable_nls+set}" = set; then
12239   enableval="$enable_nls"
12240   USE_NLS=$enableval
12241 else
12242   USE_NLS=yes
12243 fi;
12244   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12245 echo "${ECHO_T}$USE_NLS" >&6
12246
12247
12248
12249
12250
12251
12252 # Prepare PATH_SEPARATOR.
12253 # The user is always right.
12254 if test "${PATH_SEPARATOR+set}" != set; then
12255   echo "#! /bin/sh" >conf$$.sh
12256   echo  "exit 0"   >>conf$$.sh
12257   chmod +x conf$$.sh
12258   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12259     PATH_SEPARATOR=';'
12260   else
12261     PATH_SEPARATOR=:
12262   fi
12263   rm -f conf$$.sh
12264 fi
12265
12266 # Find out how to test for executable files. Don't use a zero-byte file,
12267 # as systems may use methods other than mode bits to determine executability.
12268 cat >conf$$.file <<_ASEOF
12269 #! /bin/sh
12270 exit 0
12271 _ASEOF
12272 chmod +x conf$$.file
12273 if test -x conf$$.file >/dev/null 2>&1; then
12274   ac_executable_p="test -x"
12275 else
12276   ac_executable_p="test -f"
12277 fi
12278 rm -f conf$$.file
12279
12280 # Extract the first word of "msgfmt", so it can be a program name with args.
12281 set dummy msgfmt; ac_word=$2
12282 echo "$as_me:$LINENO: checking for $ac_word" >&5
12283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12284 if test "${ac_cv_path_MSGFMT+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   case "$MSGFMT" in
12288   [\\/]* | ?:[\\/]*)
12289     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12290     ;;
12291   *)
12292     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12293     for ac_dir in $PATH; do
12294       IFS="$ac_save_IFS"
12295       test -z "$ac_dir" && ac_dir=.
12296       for ac_exec_ext in '' $ac_executable_extensions; do
12297         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12298           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12299      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12300             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12301             break 2
12302           fi
12303         fi
12304       done
12305     done
12306     IFS="$ac_save_IFS"
12307   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12308     ;;
12309 esac
12310 fi
12311 MSGFMT="$ac_cv_path_MSGFMT"
12312 if test "$MSGFMT" != ":"; then
12313   echo "$as_me:$LINENO: result: $MSGFMT" >&5
12314 echo "${ECHO_T}$MSGFMT" >&6
12315 else
12316   echo "$as_me:$LINENO: result: no" >&5
12317 echo "${ECHO_T}no" >&6
12318 fi
12319
12320   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12321 set dummy gmsgfmt; ac_word=$2
12322 echo "$as_me:$LINENO: checking for $ac_word" >&5
12323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12324 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   case $GMSGFMT in
12328   [\\/]* | ?:[\\/]*)
12329   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12330   ;;
12331   *)
12332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335   IFS=$as_save_IFS
12336   test -z "$as_dir" && as_dir=.
12337   for ac_exec_ext in '' $ac_executable_extensions; do
12338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12341     break 2
12342   fi
12343 done
12344 done
12345
12346   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12347   ;;
12348 esac
12349 fi
12350 GMSGFMT=$ac_cv_path_GMSGFMT
12351
12352 if test -n "$GMSGFMT"; then
12353   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12354 echo "${ECHO_T}$GMSGFMT" >&6
12355 else
12356   echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12358 fi
12359
12360
12361
12362 # Prepare PATH_SEPARATOR.
12363 # The user is always right.
12364 if test "${PATH_SEPARATOR+set}" != set; then
12365   echo "#! /bin/sh" >conf$$.sh
12366   echo  "exit 0"   >>conf$$.sh
12367   chmod +x conf$$.sh
12368   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12369     PATH_SEPARATOR=';'
12370   else
12371     PATH_SEPARATOR=:
12372   fi
12373   rm -f conf$$.sh
12374 fi
12375
12376 # Find out how to test for executable files. Don't use a zero-byte file,
12377 # as systems may use methods other than mode bits to determine executability.
12378 cat >conf$$.file <<_ASEOF
12379 #! /bin/sh
12380 exit 0
12381 _ASEOF
12382 chmod +x conf$$.file
12383 if test -x conf$$.file >/dev/null 2>&1; then
12384   ac_executable_p="test -x"
12385 else
12386   ac_executable_p="test -f"
12387 fi
12388 rm -f conf$$.file
12389
12390 # Extract the first word of "xgettext", so it can be a program name with args.
12391 set dummy xgettext; ac_word=$2
12392 echo "$as_me:$LINENO: checking for $ac_word" >&5
12393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12394 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   case "$XGETTEXT" in
12398   [\\/]* | ?:[\\/]*)
12399     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12400     ;;
12401   *)
12402     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12403     for ac_dir in $PATH; do
12404       IFS="$ac_save_IFS"
12405       test -z "$ac_dir" && ac_dir=.
12406       for ac_exec_ext in '' $ac_executable_extensions; do
12407         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12408           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12409      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12410             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12411             break 2
12412           fi
12413         fi
12414       done
12415     done
12416     IFS="$ac_save_IFS"
12417   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12418     ;;
12419 esac
12420 fi
12421 XGETTEXT="$ac_cv_path_XGETTEXT"
12422 if test "$XGETTEXT" != ":"; then
12423   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12424 echo "${ECHO_T}$XGETTEXT" >&6
12425 else
12426   echo "$as_me:$LINENO: result: no" >&5
12427 echo "${ECHO_T}no" >&6
12428 fi
12429
12430     rm -f messages.po
12431
12432
12433 # Prepare PATH_SEPARATOR.
12434 # The user is always right.
12435 if test "${PATH_SEPARATOR+set}" != set; then
12436   echo "#! /bin/sh" >conf$$.sh
12437   echo  "exit 0"   >>conf$$.sh
12438   chmod +x conf$$.sh
12439   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12440     PATH_SEPARATOR=';'
12441   else
12442     PATH_SEPARATOR=:
12443   fi
12444   rm -f conf$$.sh
12445 fi
12446
12447 # Find out how to test for executable files. Don't use a zero-byte file,
12448 # as systems may use methods other than mode bits to determine executability.
12449 cat >conf$$.file <<_ASEOF
12450 #! /bin/sh
12451 exit 0
12452 _ASEOF
12453 chmod +x conf$$.file
12454 if test -x conf$$.file >/dev/null 2>&1; then
12455   ac_executable_p="test -x"
12456 else
12457   ac_executable_p="test -f"
12458 fi
12459 rm -f conf$$.file
12460
12461 # Extract the first word of "msgmerge", so it can be a program name with args.
12462 set dummy msgmerge; ac_word=$2
12463 echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12465 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   case "$MSGMERGE" in
12469   [\\/]* | ?:[\\/]*)
12470     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12471     ;;
12472   *)
12473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12474     for ac_dir in $PATH; do
12475       IFS="$ac_save_IFS"
12476       test -z "$ac_dir" && ac_dir=.
12477       for ac_exec_ext in '' $ac_executable_extensions; do
12478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12479           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12480             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12481             break 2
12482           fi
12483         fi
12484       done
12485     done
12486     IFS="$ac_save_IFS"
12487   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12488     ;;
12489 esac
12490 fi
12491 MSGMERGE="$ac_cv_path_MSGMERGE"
12492 if test "$MSGMERGE" != ":"; then
12493   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12494 echo "${ECHO_T}$MSGMERGE" >&6
12495 else
12496   echo "$as_me:$LINENO: result: no" >&5
12497 echo "${ECHO_T}no" >&6
12498 fi
12499
12500
12501       if test "$GMSGFMT" != ":"; then
12502             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12503        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12504       : ;
12505     else
12506       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12507       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12508 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12509       GMSGFMT=":"
12510     fi
12511   fi
12512
12513       if test "$XGETTEXT" != ":"; then
12514             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12515        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12516       : ;
12517     else
12518       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12519 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12520       XGETTEXT=":"
12521     fi
12522         rm -f messages.po
12523   fi
12524
12525             ac_config_commands="$ac_config_commands default-1"
12526
12527
12528
12529 # Permit host specific settings.
12530 . ${srcdir}/configure.host
12531
12532
12533 # Find a good install program.  We prefer a C program (faster),
12534 # so one script is as good as another.  But avoid the broken or
12535 # incompatible versions:
12536 # SysV /etc/install, /usr/sbin/install
12537 # SunOS /usr/etc/install
12538 # IRIX /sbin/install
12539 # AIX /bin/install
12540 # AmigaOS /C/install, which installs bootblocks on floppy discs
12541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12544 # OS/2's system install, which has a completely different semantic
12545 # ./install, which can be erroneously created by make from ./install.sh.
12546 # Reject install programs that cannot install multiple files.
12547 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12548 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12549 if test -z "$INSTALL"; then
12550 if test "${ac_cv_path_install+set}" = set; then
12551   echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12555 do
12556   IFS=$as_save_IFS
12557   test -z "$as_dir" && as_dir=.
12558   # Account for people who put trailing slashes in PATH elements.
12559 case $as_dir/ in
12560   ./ | .// | /cC/* | \
12561   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12562   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12563   /usr/ucb/* ) ;;
12564   *)
12565     # OSF1 and SCO ODT 3.0 have their own names for install.
12566     # Don't use installbsd from OSF since it installs stuff as root
12567     # by default.
12568     for ac_prog in ginstall scoinst install; do
12569       for ac_exec_ext in '' $ac_executable_extensions; do
12570         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12571           if test $ac_prog = install &&
12572             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12573             # AIX install.  It has an incompatible calling convention.
12574             :
12575           elif test $ac_prog = install &&
12576             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12577             # program-specific install script used by HP pwplus--don't use.
12578             :
12579           else
12580             rm -rf conftest.one conftest.two conftest.dir
12581             echo one > conftest.one
12582             echo two > conftest.two
12583             mkdir conftest.dir
12584             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12585               test -s conftest.one && test -s conftest.two &&
12586               test -s conftest.dir/conftest.one &&
12587               test -s conftest.dir/conftest.two
12588             then
12589               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12590               break 3
12591             fi
12592           fi
12593         fi
12594       done
12595     done
12596     ;;
12597 esac
12598 done
12599
12600 rm -rf conftest.one conftest.two conftest.dir
12601
12602 fi
12603   if test "${ac_cv_path_install+set}" = set; then
12604     INSTALL=$ac_cv_path_install
12605   else
12606     # As a last resort, use the slow shell script.  Don't cache a
12607     # value for INSTALL within a source directory, because that will
12608     # break other packages using the cache if that directory is
12609     # removed, or if the value is a relative name.
12610     INSTALL=$ac_install_sh
12611   fi
12612 fi
12613 echo "$as_me:$LINENO: result: $INSTALL" >&5
12614 echo "${ECHO_T}$INSTALL" >&6
12615
12616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12617 # It thinks the first close brace ends the variable substitution.
12618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12619
12620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12621
12622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12623
12624
12625 BFD_HOST_64BIT_LONG=0
12626 BFD_HOST_64BIT_LONG_LONG=0
12627 BFD_HOST_64_BIT_DEFINED=0
12628 BFD_HOST_64_BIT=
12629 BFD_HOST_U_64_BIT=
12630 BFD_HOSTPTR_T="unsigned long"
12631
12632 echo "$as_me:$LINENO: checking for long long" >&5
12633 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12634 if test "${ac_cv_type_long_long+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643 $ac_includes_default
12644 int
12645 main ()
12646 {
12647 if ((long long *) 0)
12648   return 0;
12649 if (sizeof (long long))
12650   return 0;
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657   (eval $ac_compile) 2>conftest.er1
12658   ac_status=$?
12659   grep -v '^ *+' conftest.er1 >conftest.err
12660   rm -f conftest.er1
12661   cat conftest.err >&5
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } &&
12664          { ac_try='test -z "$ac_c_werror_flag"
12665                          || test ! -s conftest.err'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; } &&
12671          { ac_try='test -s conftest.$ac_objext'
12672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673   (eval $ac_try) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; }; then
12677   ac_cv_type_long_long=yes
12678 else
12679   echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_cv_type_long_long=no
12683 fi
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 fi
12686 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12687 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12688
12689 echo "$as_me:$LINENO: checking size of long long" >&5
12690 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12691 if test "${ac_cv_sizeof_long_long+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   if test "$ac_cv_type_long_long" = yes; then
12695   # The cast to unsigned long works around a bug in the HP C Compiler
12696   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12697   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12698   # This bug is HP SR number 8606223364.
12699   if test "$cross_compiling" = yes; then
12700   # Depending upon the size, compute the lo and hi bounds.
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707 $ac_includes_default
12708 int
12709 main ()
12710 {
12711 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12712 test_array [0] = 0
12713
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720   (eval $ac_compile) 2>conftest.er1
12721   ac_status=$?
12722   grep -v '^ *+' conftest.er1 >conftest.err
12723   rm -f conftest.er1
12724   cat conftest.err >&5
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } &&
12727          { ac_try='test -z "$ac_c_werror_flag"
12728                          || test ! -s conftest.err'
12729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730   (eval $ac_try) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_lo=0 ac_mid=0
12741   while :; do
12742     cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748 $ac_includes_default
12749 int
12750 main ()
12751 {
12752 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12753 test_array [0] = 0
12754
12755   ;
12756   return 0;
12757 }
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761   (eval $ac_compile) 2>conftest.er1
12762   ac_status=$?
12763   grep -v '^ *+' conftest.er1 >conftest.err
12764   rm -f conftest.er1
12765   cat conftest.err >&5
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -z "$ac_c_werror_flag"
12769                          || test ! -s conftest.err'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; } &&
12775          { ac_try='test -s conftest.$ac_objext'
12776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777   (eval $ac_try) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; }; then
12781   ac_hi=$ac_mid; break
12782 else
12783   echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12785
12786 ac_lo=`expr $ac_mid + 1`
12787                     if test $ac_lo -le $ac_mid; then
12788                       ac_lo= ac_hi=
12789                       break
12790                     fi
12791                     ac_mid=`expr 2 '*' $ac_mid + 1`
12792 fi
12793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12794   done
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 $ac_includes_default
12806 int
12807 main ()
12808 {
12809 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12810 test_array [0] = 0
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818   (eval $ac_compile) 2>conftest.er1
12819   ac_status=$?
12820   grep -v '^ *+' conftest.er1 >conftest.err
12821   rm -f conftest.er1
12822   cat conftest.err >&5
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -z "$ac_c_werror_flag"
12826                          || test ! -s conftest.err'
12827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828   (eval $ac_try) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; } &&
12832          { ac_try='test -s conftest.$ac_objext'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_hi=-1 ac_mid=-1
12839   while :; do
12840     cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 $ac_includes_default
12847 int
12848 main ()
12849 {
12850 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12851 test_array [0] = 0
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859   (eval $ac_compile) 2>conftest.er1
12860   ac_status=$?
12861   grep -v '^ *+' conftest.er1 >conftest.err
12862   rm -f conftest.er1
12863   cat conftest.err >&5
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } &&
12866          { ac_try='test -z "$ac_c_werror_flag"
12867                          || test ! -s conftest.err'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; } &&
12873          { ac_try='test -s conftest.$ac_objext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_lo=$ac_mid; break
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_hi=`expr '(' $ac_mid ')' - 1`
12885                        if test $ac_mid -le $ac_hi; then
12886                          ac_lo= ac_hi=
12887                          break
12888                        fi
12889                        ac_mid=`expr 2 '*' $ac_mid`
12890 fi
12891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892   done
12893 else
12894   echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_lo= ac_hi=
12898 fi
12899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 # Binary search between lo and hi bounds.
12903 while test "x$ac_lo" != "x$ac_hi"; do
12904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12905   cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911 $ac_includes_default
12912 int
12913 main ()
12914 {
12915 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12916 test_array [0] = 0
12917
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924   (eval $ac_compile) 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_c_werror_flag"
12932                          || test ! -s conftest.err'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest.$ac_objext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   ac_hi=$ac_mid
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_lo=`expr '(' $ac_mid ')' + 1`
12950 fi
12951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 done
12953 case $ac_lo in
12954 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12955 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12956 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12958 See \`config.log' for more details." >&5
12959 echo "$as_me: error: cannot compute sizeof (long long), 77
12960 See \`config.log' for more details." >&2;}
12961    { (exit 1); exit 1; }; }; } ;;
12962 esac
12963 else
12964   if test "$cross_compiling" = yes; then
12965   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12966 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12968 See \`config.log' for more details." >&5
12969 echo "$as_me: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&2;}
12971    { (exit 1); exit 1; }; }; }
12972 else
12973   cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979 $ac_includes_default
12980 long longval () { return (long) (sizeof (long long)); }
12981 unsigned long ulongval () { return (long) (sizeof (long long)); }
12982 #include <stdio.h>
12983 #include <stdlib.h>
12984 int
12985 main ()
12986 {
12987
12988   FILE *f = fopen ("conftest.val", "w");
12989   if (! f)
12990     exit (1);
12991   if (((long) (sizeof (long long))) < 0)
12992     {
12993       long i = longval ();
12994       if (i != ((long) (sizeof (long long))))
12995         exit (1);
12996       fprintf (f, "%ld\n", i);
12997     }
12998   else
12999     {
13000       unsigned long i = ulongval ();
13001       if (i != ((long) (sizeof (long long))))
13002         exit (1);
13003       fprintf (f, "%lu\n", i);
13004     }
13005   exit (ferror (f) || fclose (f) != 0);
13006
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 rm -f conftest$ac_exeext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13013   (eval $ac_link) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018   (eval $ac_try) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022   ac_cv_sizeof_long_long=`cat conftest.val`
13023 else
13024   echo "$as_me: program exited with status $ac_status" >&5
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 ( exit $ac_status )
13029 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13030 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13032 See \`config.log' for more details." >&5
13033 echo "$as_me: error: cannot compute sizeof (long long), 77
13034 See \`config.log' for more details." >&2;}
13035    { (exit 1); exit 1; }; }; }
13036 fi
13037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13038 fi
13039 fi
13040 rm -f conftest.val
13041 else
13042   ac_cv_sizeof_long_long=0
13043 fi
13044 fi
13045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13046 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13047 cat >>confdefs.h <<_ACEOF
13048 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13049 _ACEOF
13050
13051
13052 echo "$as_me:$LINENO: checking for void *" >&5
13053 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13054 if test "${ac_cv_type_void_p+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   cat >conftest.$ac_ext <<_ACEOF
13058 /* confdefs.h.  */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h.  */
13063 $ac_includes_default
13064 int
13065 main ()
13066 {
13067 if ((void * *) 0)
13068   return 0;
13069 if (sizeof (void *))
13070   return 0;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>conftest.er1
13078   ac_status=$?
13079   grep -v '^ *+' conftest.er1 >conftest.err
13080   rm -f conftest.er1
13081   cat conftest.err >&5
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } &&
13084          { ac_try='test -z "$ac_c_werror_flag"
13085                          || test ! -s conftest.err'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; } &&
13091          { ac_try='test -s conftest.$ac_objext'
13092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093   (eval $ac_try) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   ac_cv_type_void_p=yes
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_cv_type_void_p=no
13103 fi
13104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13105 fi
13106 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13107 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13108
13109 echo "$as_me:$LINENO: checking size of void *" >&5
13110 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13111 if test "${ac_cv_sizeof_void_p+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   if test "$ac_cv_type_void_p" = yes; then
13115   # The cast to unsigned long works around a bug in the HP C Compiler
13116   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13117   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13118   # This bug is HP SR number 8606223364.
13119   if test "$cross_compiling" = yes; then
13120   # Depending upon the size, compute the lo and hi bounds.
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 $ac_includes_default
13128 int
13129 main ()
13130 {
13131 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13132 test_array [0] = 0
13133
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140   (eval $ac_compile) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag"
13148                          || test ! -s conftest.err'
13149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150   (eval $ac_try) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; } &&
13154          { ac_try='test -s conftest.$ac_objext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_lo=0 ac_mid=0
13161   while :; do
13162     cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168 $ac_includes_default
13169 int
13170 main ()
13171 {
13172 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13173 test_array [0] = 0
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag"
13189                          || test ! -s conftest.err'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; } &&
13195          { ac_try='test -s conftest.$ac_objext'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   ac_hi=$ac_mid; break
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 ac_lo=`expr $ac_mid + 1`
13207                     if test $ac_lo -le $ac_mid; then
13208                       ac_lo= ac_hi=
13209                       break
13210                     fi
13211                     ac_mid=`expr 2 '*' $ac_mid + 1`
13212 fi
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214   done
13215 else
13216   echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13218
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13230 test_array [0] = 0
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag"
13246                          || test ! -s conftest.err'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; } &&
13252          { ac_try='test -s conftest.$ac_objext'
13253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254   (eval $ac_try) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; }; then
13258   ac_hi=-1 ac_mid=-1
13259   while :; do
13260     cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 $ac_includes_default
13267 int
13268 main ()
13269 {
13270 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13271 test_array [0] = 0
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279   (eval $ac_compile) 2>conftest.er1
13280   ac_status=$?
13281   grep -v '^ *+' conftest.er1 >conftest.err
13282   rm -f conftest.er1
13283   cat conftest.err >&5
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); } &&
13286          { ac_try='test -z "$ac_c_werror_flag"
13287                          || test ! -s conftest.err'
13288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289   (eval $ac_try) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; } &&
13293          { ac_try='test -s conftest.$ac_objext'
13294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295   (eval $ac_try) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299   ac_lo=$ac_mid; break
13300 else
13301   echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13303
13304 ac_hi=`expr '(' $ac_mid ')' - 1`
13305                        if test $ac_mid -le $ac_hi; then
13306                          ac_lo= ac_hi=
13307                          break
13308                        fi
13309                        ac_mid=`expr 2 '*' $ac_mid`
13310 fi
13311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13312   done
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_lo= ac_hi=
13318 fi
13319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13322 # Binary search between lo and hi bounds.
13323 while test "x$ac_lo" != "x$ac_hi"; do
13324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13325   cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h.  */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h.  */
13331 $ac_includes_default
13332 int
13333 main ()
13334 {
13335 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13336 test_array [0] = 0
13337
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344   (eval $ac_compile) 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -z "$ac_c_werror_flag"
13352                          || test ! -s conftest.err'
13353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354   (eval $ac_try) 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); }; } &&
13358          { ac_try='test -s conftest.$ac_objext'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   ac_hi=$ac_mid
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_lo=`expr '(' $ac_mid ')' + 1`
13370 fi
13371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13372 done
13373 case $ac_lo in
13374 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13375 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13376 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13378 See \`config.log' for more details." >&5
13379 echo "$as_me: error: cannot compute sizeof (void *), 77
13380 See \`config.log' for more details." >&2;}
13381    { (exit 1); exit 1; }; }; } ;;
13382 esac
13383 else
13384   if test "$cross_compiling" = yes; then
13385   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13386 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13388 See \`config.log' for more details." >&5
13389 echo "$as_me: error: cannot run test program while cross compiling
13390 See \`config.log' for more details." >&2;}
13391    { (exit 1); exit 1; }; }; }
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 $ac_includes_default
13400 long longval () { return (long) (sizeof (void *)); }
13401 unsigned long ulongval () { return (long) (sizeof (void *)); }
13402 #include <stdio.h>
13403 #include <stdlib.h>
13404 int
13405 main ()
13406 {
13407
13408   FILE *f = fopen ("conftest.val", "w");
13409   if (! f)
13410     exit (1);
13411   if (((long) (sizeof (void *))) < 0)
13412     {
13413       long i = longval ();
13414       if (i != ((long) (sizeof (void *))))
13415         exit (1);
13416       fprintf (f, "%ld\n", i);
13417     }
13418   else
13419     {
13420       unsigned long i = ulongval ();
13421       if (i != ((long) (sizeof (void *))))
13422         exit (1);
13423       fprintf (f, "%lu\n", i);
13424     }
13425   exit (ferror (f) || fclose (f) != 0);
13426
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest$ac_exeext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433   (eval $ac_link) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   ac_cv_sizeof_void_p=`cat conftest.val`
13443 else
13444   echo "$as_me: program exited with status $ac_status" >&5
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ( exit $ac_status )
13449 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13452 See \`config.log' for more details." >&5
13453 echo "$as_me: error: cannot compute sizeof (void *), 77
13454 See \`config.log' for more details." >&2;}
13455    { (exit 1); exit 1; }; }; }
13456 fi
13457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 fi
13460 rm -f conftest.val
13461 else
13462   ac_cv_sizeof_void_p=0
13463 fi
13464 fi
13465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13466 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13467 cat >>confdefs.h <<_ACEOF
13468 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13469 _ACEOF
13470
13471
13472 echo "$as_me:$LINENO: checking for long" >&5
13473 echo $ECHO_N "checking for long... $ECHO_C" >&6
13474 if test "${ac_cv_type_long+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483 $ac_includes_default
13484 int
13485 main ()
13486 {
13487 if ((long *) 0)
13488   return 0;
13489 if (sizeof (long))
13490   return 0;
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_c_werror_flag"
13505                          || test ! -s conftest.err'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; } &&
13511          { ac_try='test -s conftest.$ac_objext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517   ac_cv_type_long=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_cv_type_long=no
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13527 echo "${ECHO_T}$ac_cv_type_long" >&6
13528
13529 echo "$as_me:$LINENO: checking size of long" >&5
13530 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13531 if test "${ac_cv_sizeof_long+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   if test "$ac_cv_type_long" = yes; then
13535   # The cast to unsigned long works around a bug in the HP C Compiler
13536   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13537   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13538   # This bug is HP SR number 8606223364.
13539   if test "$cross_compiling" = yes; then
13540   # Depending upon the size, compute the lo and hi bounds.
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 $ac_includes_default
13548 int
13549 main ()
13550 {
13551 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13552 test_array [0] = 0
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560   (eval $ac_compile) 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag"
13568                          || test ! -s conftest.err'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest.$ac_objext'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_lo=0 ac_mid=0
13581   while :; do
13582     cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588 $ac_includes_default
13589 int
13590 main ()
13591 {
13592 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13593 test_array [0] = 0
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601   (eval $ac_compile) 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag"
13609                          || test ! -s conftest.err'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest.$ac_objext'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   ac_hi=$ac_mid; break
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_lo=`expr $ac_mid + 1`
13627                     if test $ac_lo -le $ac_mid; then
13628                       ac_lo= ac_hi=
13629                       break
13630                     fi
13631                     ac_mid=`expr 2 '*' $ac_mid + 1`
13632 fi
13633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634   done
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 $ac_includes_default
13646 int
13647 main ()
13648 {
13649 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13650 test_array [0] = 0
13651
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658   (eval $ac_compile) 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -z "$ac_c_werror_flag"
13666                          || test ! -s conftest.err'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; } &&
13672          { ac_try='test -s conftest.$ac_objext'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   ac_hi=-1 ac_mid=-1
13679   while :; do
13680     cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 $ac_includes_default
13687 int
13688 main ()
13689 {
13690 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13691 test_array [0] = 0
13692
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699   (eval $ac_compile) 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag"
13707                          || test ! -s conftest.err'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; } &&
13713          { ac_try='test -s conftest.$ac_objext'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; }; then
13719   ac_lo=$ac_mid; break
13720 else
13721   echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_hi=`expr '(' $ac_mid ')' - 1`
13725                        if test $ac_mid -le $ac_hi; then
13726                          ac_lo= ac_hi=
13727                          break
13728                        fi
13729                        ac_mid=`expr 2 '*' $ac_mid`
13730 fi
13731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13732   done
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_lo= ac_hi=
13738 fi
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 # Binary search between lo and hi bounds.
13743 while test "x$ac_lo" != "x$ac_hi"; do
13744   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13745   cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h.  */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h.  */
13751 $ac_includes_default
13752 int
13753 main ()
13754 {
13755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13756 test_array [0] = 0
13757
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764   (eval $ac_compile) 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_c_werror_flag"
13772                          || test ! -s conftest.err'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; } &&
13778          { ac_try='test -s conftest.$ac_objext'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   ac_hi=$ac_mid
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789 ac_lo=`expr '(' $ac_mid ')' + 1`
13790 fi
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 done
13793 case $ac_lo in
13794 ?*) ac_cv_sizeof_long=$ac_lo;;
13795 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13798 See \`config.log' for more details." >&5
13799 echo "$as_me: error: cannot compute sizeof (long), 77
13800 See \`config.log' for more details." >&2;}
13801    { (exit 1); exit 1; }; }; } ;;
13802 esac
13803 else
13804   if test "$cross_compiling" = yes; then
13805   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13806 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13808 See \`config.log' for more details." >&5
13809 echo "$as_me: error: cannot run test program while cross compiling
13810 See \`config.log' for more details." >&2;}
13811    { (exit 1); exit 1; }; }; }
13812 else
13813   cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_includes_default
13820 long longval () { return (long) (sizeof (long)); }
13821 unsigned long ulongval () { return (long) (sizeof (long)); }
13822 #include <stdio.h>
13823 #include <stdlib.h>
13824 int
13825 main ()
13826 {
13827
13828   FILE *f = fopen ("conftest.val", "w");
13829   if (! f)
13830     exit (1);
13831   if (((long) (sizeof (long))) < 0)
13832     {
13833       long i = longval ();
13834       if (i != ((long) (sizeof (long))))
13835         exit (1);
13836       fprintf (f, "%ld\n", i);
13837     }
13838   else
13839     {
13840       unsigned long i = ulongval ();
13841       if (i != ((long) (sizeof (long))))
13842         exit (1);
13843       fprintf (f, "%lu\n", i);
13844     }
13845   exit (ferror (f) || fclose (f) != 0);
13846
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853   (eval $ac_link) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_sizeof_long=`cat conftest.val`
13863 else
13864   echo "$as_me: program exited with status $ac_status" >&5
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 ( exit $ac_status )
13869 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13870 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13872 See \`config.log' for more details." >&5
13873 echo "$as_me: error: cannot compute sizeof (long), 77
13874 See \`config.log' for more details." >&2;}
13875    { (exit 1); exit 1; }; }; }
13876 fi
13877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13878 fi
13879 fi
13880 rm -f conftest.val
13881 else
13882   ac_cv_sizeof_long=0
13883 fi
13884 fi
13885 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13886 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13887 cat >>confdefs.h <<_ACEOF
13888 #define SIZEOF_LONG $ac_cv_sizeof_long
13889 _ACEOF
13890
13891
13892
13893 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13894   host64=true
13895 fi
13896
13897 if test "x${ac_cv_sizeof_long}" = "x8"; then
13898   BFD_HOST_64BIT_LONG=1
13899   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13900   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13901 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13902   BFD_HOST_64BIT_LONG_LONG=1
13903   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13904   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13905   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13906     BFD_HOSTPTR_T="unsigned long long"
13907   fi
13908 fi
13909
13910 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13911   BFD_HOST_64_BIT_DEFINED=1
13912   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13913   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13914 fi
13915
13916
13917
13918
13919
13920
13921
13922
13923 # Put a plausible default for CC_FOR_BUILD in Makefile.
13924 if test -z "$CC_FOR_BUILD"; then
13925   if test "x$cross_compiling" = "xno"; then
13926     CC_FOR_BUILD='$(CC)'
13927   else
13928     CC_FOR_BUILD=gcc
13929   fi
13930 fi
13931
13932 # Also set EXEEXT_FOR_BUILD.
13933 if test "x$cross_compiling" = "xno"; then
13934   EXEEXT_FOR_BUILD='$(EXEEXT)'
13935 else
13936   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13937 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13938 if test "${bfd_cv_build_exeext+set}" = set; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941   rm -f conftest*
13942      echo 'int main () { return 0; }' > conftest.c
13943      bfd_cv_build_exeext=
13944      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13945      for file in conftest.*; do
13946        case $file in
13947        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13948        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13949        esac
13950      done
13951      rm -f conftest*
13952      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13953 fi
13954 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13955 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13956   EXEEXT_FOR_BUILD=""
13957   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13958 fi
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13969 do
13970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972   echo "$as_me:$LINENO: checking for $ac_header" >&5
13973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 fi
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13979 else
13980   # Is the header compilable?
13981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 $ac_includes_default
13990 #include <$ac_header>
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994   (eval $ac_compile) 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } &&
14001          { ac_try='test -z "$ac_c_werror_flag"
14002                          || test ! -s conftest.err'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_header_compiler=yes
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_header_compiler=no
14020 fi
14021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14023 echo "${ECHO_T}$ac_header_compiler" >&6
14024
14025 # Is the header present?
14026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 #include <$ac_header>
14035 _ACEOF
14036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } >/dev/null; then
14044   if test -s conftest.err; then
14045     ac_cpp_err=$ac_c_preproc_warn_flag
14046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14047   else
14048     ac_cpp_err=
14049   fi
14050 else
14051   ac_cpp_err=yes
14052 fi
14053 if test -z "$ac_cpp_err"; then
14054   ac_header_preproc=yes
14055 else
14056   echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059   ac_header_preproc=no
14060 fi
14061 rm -f conftest.err conftest.$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14064
14065 # So?  What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14067   yes:no: )
14068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14072     ac_header_preproc=yes
14073     ;;
14074   no:yes:* )
14075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14087     (
14088       cat <<\_ASBOX
14089 ## ------------------------------------------ ##
14090 ## Report this to the AC_PACKAGE_NAME lists.  ##
14091 ## ------------------------------------------ ##
14092 _ASBOX
14093     ) |
14094       sed "s/^/$as_me: WARNING:     /" >&2
14095     ;;
14096 esac
14097 echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   eval "$as_ac_Header=\$ac_header_preproc"
14103 fi
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106
14107 fi
14108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14109   cat >>confdefs.h <<_ACEOF
14110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14111 _ACEOF
14112
14113 fi
14114
14115 done
14116
14117
14118
14119
14120 for ac_header in fcntl.h sys/file.h sys/time.h
14121 do
14122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14124   echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 fi
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131 else
14132   # Is the header compilable?
14133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 $ac_includes_default
14142 #include <$ac_header>
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -z "$ac_c_werror_flag"
14154                          || test ! -s conftest.err'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; } &&
14160          { ac_try='test -s conftest.$ac_objext'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166   ac_header_compiler=yes
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ac_header_compiler=no
14172 fi
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14175 echo "${ECHO_T}$ac_header_compiler" >&6
14176
14177 # Is the header present?
14178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186 #include <$ac_header>
14187 _ACEOF
14188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } >/dev/null; then
14196   if test -s conftest.err; then
14197     ac_cpp_err=$ac_c_preproc_warn_flag
14198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14199   else
14200     ac_cpp_err=
14201   fi
14202 else
14203   ac_cpp_err=yes
14204 fi
14205 if test -z "$ac_cpp_err"; then
14206   ac_header_preproc=yes
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211   ac_header_preproc=no
14212 fi
14213 rm -f conftest.err conftest.$ac_ext
14214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14215 echo "${ECHO_T}$ac_header_preproc" >&6
14216
14217 # So?  What about this header?
14218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14219   yes:no: )
14220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14224     ac_header_preproc=yes
14225     ;;
14226   no:yes:* )
14227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14239     (
14240       cat <<\_ASBOX
14241 ## ------------------------------------------ ##
14242 ## Report this to the AC_PACKAGE_NAME lists.  ##
14243 ## ------------------------------------------ ##
14244 _ASBOX
14245     ) |
14246       sed "s/^/$as_me: WARNING:     /" >&2
14247     ;;
14248 esac
14249 echo "$as_me:$LINENO: checking for $ac_header" >&5
14250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   eval "$as_ac_Header=\$ac_header_preproc"
14255 fi
14256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14258
14259 fi
14260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14261   cat >>confdefs.h <<_ACEOF
14262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14263 _ACEOF
14264
14265 fi
14266
14267 done
14268
14269
14270
14271 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14272
14273 acx_cv_header_stdint=stddef.h
14274 acx_cv_header_stdint_kind="(already complete)"
14275 for i in stdint.h $inttype_headers; do
14276   unset ac_cv_type_uintptr_t
14277   unset ac_cv_type_uintmax_t
14278   unset ac_cv_type_int_least32_t
14279   unset ac_cv_type_int_fast32_t
14280   unset ac_cv_type_uint64_t
14281   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14282   echo "$as_me:$LINENO: checking for uintmax_t" >&5
14283 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14284 if test "${ac_cv_type_uintmax_t+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 #include <sys/types.h>
14294 #include <$i>
14295
14296 int
14297 main ()
14298 {
14299 if ((uintmax_t *) 0)
14300   return 0;
14301 if (sizeof (uintmax_t))
14302   return 0;
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14309   (eval $ac_compile) 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -z "$ac_c_werror_flag"
14317                          || test ! -s conftest.err'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; } &&
14323          { ac_try='test -s conftest.$ac_objext'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; }; then
14329   ac_cv_type_uintmax_t=yes
14330 else
14331   echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 ac_cv_type_uintmax_t=no
14335 fi
14336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14337 fi
14338 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14339 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14340 if test $ac_cv_type_uintmax_t = yes; then
14341   acx_cv_header_stdint=$i
14342 else
14343   continue
14344 fi
14345
14346   echo "$as_me:$LINENO: checking for uintptr_t" >&5
14347 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14348 if test "${ac_cv_type_uintptr_t+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 #include <sys/types.h>
14358 #include <$i>
14359
14360 int
14361 main ()
14362 {
14363 if ((uintptr_t *) 0)
14364   return 0;
14365 if (sizeof (uintptr_t))
14366   return 0;
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373   (eval $ac_compile) 2>conftest.er1
14374   ac_status=$?
14375   grep -v '^ *+' conftest.er1 >conftest.err
14376   rm -f conftest.er1
14377   cat conftest.err >&5
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } &&
14380          { ac_try='test -z "$ac_c_werror_flag"
14381                          || test ! -s conftest.err'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; } &&
14387          { ac_try='test -s conftest.$ac_objext'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_cv_type_uintptr_t=yes
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ac_cv_type_uintptr_t=no
14399 fi
14400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14401 fi
14402 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14403 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14404 if test $ac_cv_type_uintptr_t = yes; then
14405   :
14406 else
14407   acx_cv_header_stdint_kind="(mostly complete)"
14408 fi
14409
14410   echo "$as_me:$LINENO: checking for int_least32_t" >&5
14411 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14412 if test "${ac_cv_type_int_least32_t+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415   cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 #include <sys/types.h>
14422 #include <$i>
14423
14424 int
14425 main ()
14426 {
14427 if ((int_least32_t *) 0)
14428   return 0;
14429 if (sizeof (int_least32_t))
14430   return 0;
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437   (eval $ac_compile) 2>conftest.er1
14438   ac_status=$?
14439   grep -v '^ *+' conftest.er1 >conftest.err
14440   rm -f conftest.er1
14441   cat conftest.err >&5
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } &&
14444          { ac_try='test -z "$ac_c_werror_flag"
14445                          || test ! -s conftest.err'
14446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447   (eval $ac_try) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; } &&
14451          { ac_try='test -s conftest.$ac_objext'
14452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453   (eval $ac_try) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; }; then
14457   ac_cv_type_int_least32_t=yes
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_cv_type_int_least32_t=no
14463 fi
14464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14465 fi
14466 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14467 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14468 if test $ac_cv_type_int_least32_t = yes; then
14469   :
14470 else
14471   acx_cv_header_stdint_kind="(mostly complete)"
14472 fi
14473
14474   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14475 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14476 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 #include <sys/types.h>
14486 #include <$i>
14487
14488 int
14489 main ()
14490 {
14491 if ((int_fast32_t *) 0)
14492   return 0;
14493 if (sizeof (int_fast32_t))
14494   return 0;
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501   (eval $ac_compile) 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } &&
14508          { ac_try='test -z "$ac_c_werror_flag"
14509                          || test ! -s conftest.err'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   ac_cv_type_int_fast32_t=yes
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 ac_cv_type_int_fast32_t=no
14527 fi
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 fi
14530 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14531 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14532 if test $ac_cv_type_int_fast32_t = yes; then
14533   :
14534 else
14535   acx_cv_header_stdint_kind="(mostly complete)"
14536 fi
14537
14538   echo "$as_me:$LINENO: checking for uint64_t" >&5
14539 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14540 if test "${ac_cv_type_uint64_t+set}" = set; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543   cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h.  */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h.  */
14549 #include <sys/types.h>
14550 #include <$i>
14551
14552 int
14553 main ()
14554 {
14555 if ((uint64_t *) 0)
14556   return 0;
14557 if (sizeof (uint64_t))
14558   return 0;
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14565   (eval $ac_compile) 2>conftest.er1
14566   ac_status=$?
14567   grep -v '^ *+' conftest.er1 >conftest.err
14568   rm -f conftest.er1
14569   cat conftest.err >&5
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); } &&
14572          { ac_try='test -z "$ac_c_werror_flag"
14573                          || test ! -s conftest.err'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585   ac_cv_type_uint64_t=yes
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_cv_type_uint64_t=no
14591 fi
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14595 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14596 if test $ac_cv_type_uint64_t = yes; then
14597   :
14598 else
14599   acx_cv_header_stdint_kind="(lacks uint64_t)"
14600 fi
14601
14602   break
14603 done
14604 if test "$acx_cv_header_stdint" = stddef.h; then
14605   acx_cv_header_stdint_kind="(lacks uintmax_t)"
14606   for i in stdint.h $inttype_headers; do
14607     unset ac_cv_type_uintptr_t
14608     unset ac_cv_type_uint32_t
14609     unset ac_cv_type_uint64_t
14610     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14611     echo "$as_me:$LINENO: checking for uint32_t" >&5
14612 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14613 if test "${ac_cv_type_uint32_t+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 #include <sys/types.h>
14623 #include <$i>
14624
14625 int
14626 main ()
14627 {
14628 if ((uint32_t *) 0)
14629   return 0;
14630 if (sizeof (uint32_t))
14631   return 0;
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638   (eval $ac_compile) 2>conftest.er1
14639   ac_status=$?
14640   grep -v '^ *+' conftest.er1 >conftest.err
14641   rm -f conftest.er1
14642   cat conftest.err >&5
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } &&
14645          { ac_try='test -z "$ac_c_werror_flag"
14646                          || test ! -s conftest.err'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; } &&
14652          { ac_try='test -s conftest.$ac_objext'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; }; then
14658   ac_cv_type_uint32_t=yes
14659 else
14660   echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ac_cv_type_uint32_t=no
14664 fi
14665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14668 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14669 if test $ac_cv_type_uint32_t = yes; then
14670   acx_cv_header_stdint=$i
14671 else
14672   continue
14673 fi
14674
14675     echo "$as_me:$LINENO: checking for uint64_t" >&5
14676 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14677 if test "${ac_cv_type_uint64_t+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686 #include <sys/types.h>
14687 #include <$i>
14688
14689 int
14690 main ()
14691 {
14692 if ((uint64_t *) 0)
14693   return 0;
14694 if (sizeof (uint64_t))
14695   return 0;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702   (eval $ac_compile) 2>conftest.er1
14703   ac_status=$?
14704   grep -v '^ *+' conftest.er1 >conftest.err
14705   rm -f conftest.er1
14706   cat conftest.err >&5
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } &&
14709          { ac_try='test -z "$ac_c_werror_flag"
14710                          || test ! -s conftest.err'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; } &&
14716          { ac_try='test -s conftest.$ac_objext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   ac_cv_type_uint64_t=yes
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727 ac_cv_type_uint64_t=no
14728 fi
14729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14730 fi
14731 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14732 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14733
14734     echo "$as_me:$LINENO: checking for uintptr_t" >&5
14735 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14736 if test "${ac_cv_type_uintptr_t+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 #include <sys/types.h>
14746 #include <$i>
14747
14748 int
14749 main ()
14750 {
14751 if ((uintptr_t *) 0)
14752   return 0;
14753 if (sizeof (uintptr_t))
14754   return 0;
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761   (eval $ac_compile) 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -z "$ac_c_werror_flag"
14769                          || test ! -s conftest.err'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; } &&
14775          { ac_try='test -s conftest.$ac_objext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_cv_type_uintptr_t=yes
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_cv_type_uintptr_t=no
14787 fi
14788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789 fi
14790 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14791 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14792
14793     break
14794   done
14795 fi
14796 if test "$acx_cv_header_stdint" = stddef.h; then
14797   acx_cv_header_stdint_kind="(u_intXX_t style)"
14798   for i in sys/types.h $inttype_headers; do
14799     unset ac_cv_type_u_int32_t
14800     unset ac_cv_type_u_int64_t
14801     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14802     echo "$as_me:$LINENO: checking for u_int32_t" >&5
14803 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14804 if test "${ac_cv_type_u_int32_t+set}" = set; then
14805   echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807   cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h.  */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h.  */
14813 #include <sys/types.h>
14814 #include <$i>
14815
14816 int
14817 main ()
14818 {
14819 if ((u_int32_t *) 0)
14820   return 0;
14821 if (sizeof (u_int32_t))
14822   return 0;
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829   (eval $ac_compile) 2>conftest.er1
14830   ac_status=$?
14831   grep -v '^ *+' conftest.er1 >conftest.err
14832   rm -f conftest.er1
14833   cat conftest.err >&5
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -z "$ac_c_werror_flag"
14837                          || test ! -s conftest.err'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; } &&
14843          { ac_try='test -s conftest.$ac_objext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   ac_cv_type_u_int32_t=yes
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_cv_type_u_int32_t=no
14855 fi
14856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14857 fi
14858 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14859 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14860 if test $ac_cv_type_u_int32_t = yes; then
14861   acx_cv_header_stdint=$i
14862 else
14863   continue
14864 fi
14865
14866     echo "$as_me:$LINENO: checking for u_int64_t" >&5
14867 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14868 if test "${ac_cv_type_u_int64_t+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h.  */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h.  */
14877 #include <sys/types.h>
14878 #include <$i>
14879
14880 int
14881 main ()
14882 {
14883 if ((u_int64_t *) 0)
14884   return 0;
14885 if (sizeof (u_int64_t))
14886   return 0;
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893   (eval $ac_compile) 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } &&
14900          { ac_try='test -z "$ac_c_werror_flag"
14901                          || test ! -s conftest.err'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; } &&
14907          { ac_try='test -s conftest.$ac_objext'
14908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909   (eval $ac_try) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; }; then
14913   ac_cv_type_u_int64_t=yes
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_type_u_int64_t=no
14919 fi
14920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14921 fi
14922 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14923 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14924
14925     break
14926   done
14927 fi
14928 if test "$acx_cv_header_stdint" = stddef.h; then
14929   acx_cv_header_stdint_kind="(using manual detection)"
14930 fi
14931
14932 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14933 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14934 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14935 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14936 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14937
14938 # ----------------- Summarize what we found so far
14939
14940 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14941 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14942
14943 case `$as_basename bfd_stdint.h ||
14944 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14945          Xbfd_stdint.h : 'X\(//\)$' \| \
14946          Xbfd_stdint.h : 'X\(/\)$' \| \
14947          .     : '\(.\)' 2>/dev/null ||
14948 echo X/bfd_stdint.h |
14949     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14950           /^X\/\(\/\/\)$/{ s//\1/; q; }
14951           /^X\/\(\/\).*/{ s//\1/; q; }
14952           s/.*/./; q'` in
14953   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14954 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14955   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14956 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14957   *) ;;
14958 esac
14959
14960 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14961 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14962
14963 # ----------------- done included file, check C basic types --------
14964
14965 # Lacking an uintptr_t?  Test size of void *
14966 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14967   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14968 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14969 if test "${ac_cv_type_void_p+set}" = set; then
14970   echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972   cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h.  */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h.  */
14978 $ac_includes_default
14979 int
14980 main ()
14981 {
14982 if ((void * *) 0)
14983   return 0;
14984 if (sizeof (void *))
14985   return 0;
14986   ;
14987   return 0;
14988 }
14989 _ACEOF
14990 rm -f conftest.$ac_objext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992   (eval $ac_compile) 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -z "$ac_c_werror_flag"
15000                          || test ! -s conftest.err'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012   ac_cv_type_void_p=yes
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 ac_cv_type_void_p=no
15018 fi
15019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15020 fi
15021 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15022 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15023
15024 echo "$as_me:$LINENO: checking size of void *" >&5
15025 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15026 if test "${ac_cv_sizeof_void_p+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   if test "$ac_cv_type_void_p" = yes; then
15030   # The cast to unsigned long works around a bug in the HP C Compiler
15031   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15032   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15033   # This bug is HP SR number 8606223364.
15034   if test "$cross_compiling" = yes; then
15035   # Depending upon the size, compute the lo and hi bounds.
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 $ac_includes_default
15043 int
15044 main ()
15045 {
15046 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15047 test_array [0] = 0
15048
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -z "$ac_c_werror_flag"
15063                          || test ! -s conftest.err'
15064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065   (eval $ac_try) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); }; } &&
15069          { ac_try='test -s conftest.$ac_objext'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }; then
15075   ac_lo=0 ac_mid=0
15076   while :; do
15077     cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h.  */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h.  */
15083 $ac_includes_default
15084 int
15085 main ()
15086 {
15087 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15088 test_array [0] = 0
15089
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15096   (eval $ac_compile) 2>conftest.er1
15097   ac_status=$?
15098   grep -v '^ *+' conftest.er1 >conftest.err
15099   rm -f conftest.er1
15100   cat conftest.err >&5
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } &&
15103          { ac_try='test -z "$ac_c_werror_flag"
15104                          || test ! -s conftest.err'
15105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106   (eval $ac_try) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; } &&
15110          { ac_try='test -s conftest.$ac_objext'
15111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112   (eval $ac_try) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_hi=$ac_mid; break
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ac_lo=`expr $ac_mid + 1`
15122                     if test $ac_lo -le $ac_mid; then
15123                       ac_lo= ac_hi=
15124                       break
15125                     fi
15126                     ac_mid=`expr 2 '*' $ac_mid + 1`
15127 fi
15128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129   done
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h.  */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h.  */
15140 $ac_includes_default
15141 int
15142 main ()
15143 {
15144 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15145 test_array [0] = 0
15146
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15153   (eval $ac_compile) 2>conftest.er1
15154   ac_status=$?
15155   grep -v '^ *+' conftest.er1 >conftest.err
15156   rm -f conftest.er1
15157   cat conftest.err >&5
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } &&
15160          { ac_try='test -z "$ac_c_werror_flag"
15161                          || test ! -s conftest.err'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; } &&
15167          { ac_try='test -s conftest.$ac_objext'
15168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169   (eval $ac_try) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; }; then
15173   ac_hi=-1 ac_mid=-1
15174   while :; do
15175     cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h.  */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h.  */
15181 $ac_includes_default
15182 int
15183 main ()
15184 {
15185 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15186 test_array [0] = 0
15187
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194   (eval $ac_compile) 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } &&
15201          { ac_try='test -z "$ac_c_werror_flag"
15202                          || test ! -s conftest.err'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; } &&
15208          { ac_try='test -s conftest.$ac_objext'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   ac_lo=$ac_mid; break
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_hi=`expr '(' $ac_mid ')' - 1`
15220                        if test $ac_mid -le $ac_hi; then
15221                          ac_lo= ac_hi=
15222                          break
15223                        fi
15224                        ac_mid=`expr 2 '*' $ac_mid`
15225 fi
15226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15227   done
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_lo= ac_hi=
15233 fi
15234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15235 fi
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237 # Binary search between lo and hi bounds.
15238 while test "x$ac_lo" != "x$ac_hi"; do
15239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15240   cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246 $ac_includes_default
15247 int
15248 main ()
15249 {
15250 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15251 test_array [0] = 0
15252
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259   (eval $ac_compile) 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } &&
15266          { ac_try='test -z "$ac_c_werror_flag"
15267                          || test ! -s conftest.err'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; } &&
15273          { ac_try='test -s conftest.$ac_objext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_hi=$ac_mid
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_lo=`expr '(' $ac_mid ')' + 1`
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 done
15288 case $ac_lo in
15289 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15290 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15291 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15293 See \`config.log' for more details." >&5
15294 echo "$as_me: error: cannot compute sizeof (void *), 77
15295 See \`config.log' for more details." >&2;}
15296    { (exit 1); exit 1; }; }; } ;;
15297 esac
15298 else
15299   if test "$cross_compiling" = yes; then
15300   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15301 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15303 See \`config.log' for more details." >&5
15304 echo "$as_me: error: cannot run test program while cross compiling
15305 See \`config.log' for more details." >&2;}
15306    { (exit 1); exit 1; }; }; }
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 $ac_includes_default
15315 long longval () { return (long) (sizeof (void *)); }
15316 unsigned long ulongval () { return (long) (sizeof (void *)); }
15317 #include <stdio.h>
15318 #include <stdlib.h>
15319 int
15320 main ()
15321 {
15322
15323   FILE *f = fopen ("conftest.val", "w");
15324   if (! f)
15325     exit (1);
15326   if (((long) (sizeof (void *))) < 0)
15327     {
15328       long i = longval ();
15329       if (i != ((long) (sizeof (void *))))
15330         exit (1);
15331       fprintf (f, "%ld\n", i);
15332     }
15333   else
15334     {
15335       unsigned long i = ulongval ();
15336       if (i != ((long) (sizeof (void *))))
15337         exit (1);
15338       fprintf (f, "%lu\n", i);
15339     }
15340   exit (ferror (f) || fclose (f) != 0);
15341
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348   (eval $ac_link) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353   (eval $ac_try) 2>&5
15354   ac_status=$?
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); }; }; then
15357   ac_cv_sizeof_void_p=`cat conftest.val`
15358 else
15359   echo "$as_me: program exited with status $ac_status" >&5
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 ( exit $ac_status )
15364 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15365 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15367 See \`config.log' for more details." >&5
15368 echo "$as_me: error: cannot compute sizeof (void *), 77
15369 See \`config.log' for more details." >&2;}
15370    { (exit 1); exit 1; }; }; }
15371 fi
15372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15373 fi
15374 fi
15375 rm -f conftest.val
15376 else
15377   ac_cv_sizeof_void_p=0
15378 fi
15379 fi
15380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15381 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15382 cat >>confdefs.h <<_ACEOF
15383 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15384 _ACEOF
15385
15386  ;;
15387 esac
15388
15389 # Lacking an uint64_t?  Test size of long
15390 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15391   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15392 echo $ECHO_N "checking for long... $ECHO_C" >&6
15393 if test "${ac_cv_type_long+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 $ac_includes_default
15403 int
15404 main ()
15405 {
15406 if ((long *) 0)
15407   return 0;
15408 if (sizeof (long))
15409   return 0;
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_cv_type_long=yes
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_cv_type_long=no
15442 fi
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444 fi
15445 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15446 echo "${ECHO_T}$ac_cv_type_long" >&6
15447
15448 echo "$as_me:$LINENO: checking size of long" >&5
15449 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15450 if test "${ac_cv_sizeof_long+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   if test "$ac_cv_type_long" = yes; then
15454   # The cast to unsigned long works around a bug in the HP C Compiler
15455   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15456   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15457   # This bug is HP SR number 8606223364.
15458   if test "$cross_compiling" = yes; then
15459   # Depending upon the size, compute the lo and hi bounds.
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 $ac_includes_default
15467 int
15468 main ()
15469 {
15470 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15471 test_array [0] = 0
15472
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479   (eval $ac_compile) 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } &&
15486          { ac_try='test -z "$ac_c_werror_flag"
15487                          || test ! -s conftest.err'
15488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489   (eval $ac_try) 2>&5
15490   ac_status=$?
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); }; } &&
15493          { ac_try='test -s conftest.$ac_objext'
15494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495   (eval $ac_try) 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; }; then
15499   ac_lo=0 ac_mid=0
15500   while :; do
15501     cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 $ac_includes_default
15508 int
15509 main ()
15510 {
15511 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15512 test_array [0] = 0
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520   (eval $ac_compile) 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } &&
15527          { ac_try='test -z "$ac_c_werror_flag"
15528                          || test ! -s conftest.err'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; } &&
15534          { ac_try='test -s conftest.$ac_objext'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; }; then
15540   ac_hi=$ac_mid; break
15541 else
15542   echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 ac_lo=`expr $ac_mid + 1`
15546                     if test $ac_lo -le $ac_mid; then
15547                       ac_lo= ac_hi=
15548                       break
15549                     fi
15550                     ac_mid=`expr 2 '*' $ac_mid + 1`
15551 fi
15552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15553   done
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15569 test_array [0] = 0
15570
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_hi=-1 ac_mid=-1
15598   while :; do
15599     cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 $ac_includes_default
15606 int
15607 main ()
15608 {
15609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15610 test_array [0] = 0
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"
15626                          || test ! -s conftest.err'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638   ac_lo=$ac_mid; break
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_hi=`expr '(' $ac_mid ')' - 1`
15644                        if test $ac_mid -le $ac_hi; then
15645                          ac_lo= ac_hi=
15646                          break
15647                        fi
15648                        ac_mid=`expr 2 '*' $ac_mid`
15649 fi
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651   done
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 ac_lo= ac_hi=
15657 fi
15658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15661 # Binary search between lo and hi bounds.
15662 while test "x$ac_lo" != "x$ac_hi"; do
15663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15664   cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670 $ac_includes_default
15671 int
15672 main ()
15673 {
15674 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15675 test_array [0] = 0
15676
15677   ;
15678   return 0;
15679 }
15680 _ACEOF
15681 rm -f conftest.$ac_objext
15682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15683   (eval $ac_compile) 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } &&
15690          { ac_try='test -z "$ac_c_werror_flag"
15691                          || test ! -s conftest.err'
15692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693   (eval $ac_try) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; } &&
15697          { ac_try='test -s conftest.$ac_objext'
15698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699   (eval $ac_try) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703   ac_hi=$ac_mid
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_lo=`expr '(' $ac_mid ')' + 1`
15709 fi
15710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15711 done
15712 case $ac_lo in
15713 ?*) ac_cv_sizeof_long=$ac_lo;;
15714 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15715 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15717 See \`config.log' for more details." >&5
15718 echo "$as_me: error: cannot compute sizeof (long), 77
15719 See \`config.log' for more details." >&2;}
15720    { (exit 1); exit 1; }; }; } ;;
15721 esac
15722 else
15723   if test "$cross_compiling" = yes; then
15724   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15725 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15726 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15727 See \`config.log' for more details." >&5
15728 echo "$as_me: error: cannot run test program while cross compiling
15729 See \`config.log' for more details." >&2;}
15730    { (exit 1); exit 1; }; }; }
15731 else
15732   cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h.  */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h.  */
15738 $ac_includes_default
15739 long longval () { return (long) (sizeof (long)); }
15740 unsigned long ulongval () { return (long) (sizeof (long)); }
15741 #include <stdio.h>
15742 #include <stdlib.h>
15743 int
15744 main ()
15745 {
15746
15747   FILE *f = fopen ("conftest.val", "w");
15748   if (! f)
15749     exit (1);
15750   if (((long) (sizeof (long))) < 0)
15751     {
15752       long i = longval ();
15753       if (i != ((long) (sizeof (long))))
15754         exit (1);
15755       fprintf (f, "%ld\n", i);
15756     }
15757   else
15758     {
15759       unsigned long i = ulongval ();
15760       if (i != ((long) (sizeof (long))))
15761         exit (1);
15762       fprintf (f, "%lu\n", i);
15763     }
15764   exit (ferror (f) || fclose (f) != 0);
15765
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest$ac_exeext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772   (eval $ac_link) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; }; then
15781   ac_cv_sizeof_long=`cat conftest.val`
15782 else
15783   echo "$as_me: program exited with status $ac_status" >&5
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787 ( exit $ac_status )
15788 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15789 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15791 See \`config.log' for more details." >&5
15792 echo "$as_me: error: cannot compute sizeof (long), 77
15793 See \`config.log' for more details." >&2;}
15794    { (exit 1); exit 1; }; }; }
15795 fi
15796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15797 fi
15798 fi
15799 rm -f conftest.val
15800 else
15801   ac_cv_sizeof_long=0
15802 fi
15803 fi
15804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15805 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15806 cat >>confdefs.h <<_ACEOF
15807 #define SIZEOF_LONG $ac_cv_sizeof_long
15808 _ACEOF
15809
15810  ;;
15811 esac
15812
15813 if test $acx_cv_header_stdint = stddef.h; then
15814   # Lacking a good header?  Test size of everything and deduce all types.
15815   echo "$as_me:$LINENO: checking for int" >&5
15816 echo $ECHO_N "checking for int... $ECHO_C" >&6
15817 if test "${ac_cv_type_int+set}" = set; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826 $ac_includes_default
15827 int
15828 main ()
15829 {
15830 if ((int *) 0)
15831   return 0;
15832 if (sizeof (int))
15833   return 0;
15834   ;
15835   return 0;
15836 }
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840   (eval $ac_compile) 2>conftest.er1
15841   ac_status=$?
15842   grep -v '^ *+' conftest.er1 >conftest.err
15843   rm -f conftest.er1
15844   cat conftest.err >&5
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); } &&
15847          { ac_try='test -z "$ac_c_werror_flag"
15848                          || test ! -s conftest.err'
15849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850   (eval $ac_try) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; } &&
15854          { ac_try='test -s conftest.$ac_objext'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; }; then
15860   ac_cv_type_int=yes
15861 else
15862   echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_cv_type_int=no
15866 fi
15867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15868 fi
15869 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15870 echo "${ECHO_T}$ac_cv_type_int" >&6
15871
15872 echo "$as_me:$LINENO: checking size of int" >&5
15873 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15874 if test "${ac_cv_sizeof_int+set}" = set; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877   if test "$ac_cv_type_int" = yes; then
15878   # The cast to unsigned long works around a bug in the HP C Compiler
15879   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15880   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15881   # This bug is HP SR number 8606223364.
15882   if test "$cross_compiling" = yes; then
15883   # Depending upon the size, compute the lo and hi bounds.
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 $ac_includes_default
15891 int
15892 main ()
15893 {
15894 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15895 test_array [0] = 0
15896
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903   (eval $ac_compile) 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -z "$ac_c_werror_flag"
15911                          || test ! -s conftest.err'
15912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913   (eval $ac_try) 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; } &&
15917          { ac_try='test -s conftest.$ac_objext'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; }; then
15923   ac_lo=0 ac_mid=0
15924   while :; do
15925     cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931 $ac_includes_default
15932 int
15933 main ()
15934 {
15935 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15936 test_array [0] = 0
15937
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944   (eval $ac_compile) 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -z "$ac_c_werror_flag"
15952                          || test ! -s conftest.err'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; } &&
15958          { ac_try='test -s conftest.$ac_objext'
15959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960   (eval $ac_try) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964   ac_hi=$ac_mid; break
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_lo=`expr $ac_mid + 1`
15970                     if test $ac_lo -le $ac_mid; then
15971                       ac_lo= ac_hi=
15972                       break
15973                     fi
15974                     ac_mid=`expr 2 '*' $ac_mid + 1`
15975 fi
15976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15977   done
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988 $ac_includes_default
15989 int
15990 main ()
15991 {
15992 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15993 test_array [0] = 0
15994
15995   ;
15996   return 0;
15997 }
15998 _ACEOF
15999 rm -f conftest.$ac_objext
16000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001   (eval $ac_compile) 2>conftest.er1
16002   ac_status=$?
16003   grep -v '^ *+' conftest.er1 >conftest.err
16004   rm -f conftest.er1
16005   cat conftest.err >&5
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } &&
16008          { ac_try='test -z "$ac_c_werror_flag"
16009                          || test ! -s conftest.err'
16010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011   (eval $ac_try) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; } &&
16015          { ac_try='test -s conftest.$ac_objext'
16016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017   (eval $ac_try) 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); }; }; then
16021   ac_hi=-1 ac_mid=-1
16022   while :; do
16023     cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029 $ac_includes_default
16030 int
16031 main ()
16032 {
16033 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16034 test_array [0] = 0
16035
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042   (eval $ac_compile) 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } &&
16049          { ac_try='test -z "$ac_c_werror_flag"
16050                          || test ! -s conftest.err'
16051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052   (eval $ac_try) 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; } &&
16056          { ac_try='test -s conftest.$ac_objext'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; }; then
16062   ac_lo=$ac_mid; break
16063 else
16064   echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_hi=`expr '(' $ac_mid ')' - 1`
16068                        if test $ac_mid -le $ac_hi; then
16069                          ac_lo= ac_hi=
16070                          break
16071                        fi
16072                        ac_mid=`expr 2 '*' $ac_mid`
16073 fi
16074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16075   done
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 ac_lo= ac_hi=
16081 fi
16082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16083 fi
16084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085 # Binary search between lo and hi bounds.
16086 while test "x$ac_lo" != "x$ac_hi"; do
16087   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 $ac_includes_default
16095 int
16096 main ()
16097 {
16098 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16099 test_array [0] = 0
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107   (eval $ac_compile) 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag"
16115                          || test ! -s conftest.err'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest.$ac_objext'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127   ac_hi=$ac_mid
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 ac_lo=`expr '(' $ac_mid ')' + 1`
16133 fi
16134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135 done
16136 case $ac_lo in
16137 ?*) ac_cv_sizeof_int=$ac_lo;;
16138 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16139 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16141 See \`config.log' for more details." >&5
16142 echo "$as_me: error: cannot compute sizeof (int), 77
16143 See \`config.log' for more details." >&2;}
16144    { (exit 1); exit 1; }; }; } ;;
16145 esac
16146 else
16147   if test "$cross_compiling" = yes; then
16148   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16149 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16151 See \`config.log' for more details." >&5
16152 echo "$as_me: error: cannot run test program while cross compiling
16153 See \`config.log' for more details." >&2;}
16154    { (exit 1); exit 1; }; }; }
16155 else
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 $ac_includes_default
16163 long longval () { return (long) (sizeof (int)); }
16164 unsigned long ulongval () { return (long) (sizeof (int)); }
16165 #include <stdio.h>
16166 #include <stdlib.h>
16167 int
16168 main ()
16169 {
16170
16171   FILE *f = fopen ("conftest.val", "w");
16172   if (! f)
16173     exit (1);
16174   if (((long) (sizeof (int))) < 0)
16175     {
16176       long i = longval ();
16177       if (i != ((long) (sizeof (int))))
16178         exit (1);
16179       fprintf (f, "%ld\n", i);
16180     }
16181   else
16182     {
16183       unsigned long i = ulongval ();
16184       if (i != ((long) (sizeof (int))))
16185         exit (1);
16186       fprintf (f, "%lu\n", i);
16187     }
16188   exit (ferror (f) || fclose (f) != 0);
16189
16190   ;
16191   return 0;
16192 }
16193 _ACEOF
16194 rm -f conftest$ac_exeext
16195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16196   (eval $ac_link) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_cv_sizeof_int=`cat conftest.val`
16206 else
16207   echo "$as_me: program exited with status $ac_status" >&5
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ( exit $ac_status )
16212 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16213 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16215 See \`config.log' for more details." >&5
16216 echo "$as_me: error: cannot compute sizeof (int), 77
16217 See \`config.log' for more details." >&2;}
16218    { (exit 1); exit 1; }; }; }
16219 fi
16220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 fi
16223 rm -f conftest.val
16224 else
16225   ac_cv_sizeof_int=0
16226 fi
16227 fi
16228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16229 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16230 cat >>confdefs.h <<_ACEOF
16231 #define SIZEOF_INT $ac_cv_sizeof_int
16232 _ACEOF
16233
16234
16235   echo "$as_me:$LINENO: checking for short" >&5
16236 echo $ECHO_N "checking for short... $ECHO_C" >&6
16237 if test "${ac_cv_type_short+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 int
16248 main ()
16249 {
16250 if ((short *) 0)
16251   return 0;
16252 if (sizeof (short))
16253   return 0;
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260   (eval $ac_compile) 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -z "$ac_c_werror_flag"
16268                          || test ! -s conftest.err'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; } &&
16274          { ac_try='test -s conftest.$ac_objext'
16275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276   (eval $ac_try) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; }; then
16280   ac_cv_type_short=yes
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285 ac_cv_type_short=no
16286 fi
16287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16288 fi
16289 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16290 echo "${ECHO_T}$ac_cv_type_short" >&6
16291
16292 echo "$as_me:$LINENO: checking size of short" >&5
16293 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16294 if test "${ac_cv_sizeof_short+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297   if test "$ac_cv_type_short" = yes; then
16298   # The cast to unsigned long works around a bug in the HP C Compiler
16299   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16300   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16301   # This bug is HP SR number 8606223364.
16302   if test "$cross_compiling" = yes; then
16303   # Depending upon the size, compute the lo and hi bounds.
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 $ac_includes_default
16311 int
16312 main ()
16313 {
16314 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16315 test_array [0] = 0
16316
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323   (eval $ac_compile) 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } &&
16330          { ac_try='test -z "$ac_c_werror_flag"
16331                          || test ! -s conftest.err'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; } &&
16337          { ac_try='test -s conftest.$ac_objext'
16338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339   (eval $ac_try) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; }; then
16343   ac_lo=0 ac_mid=0
16344   while :; do
16345     cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351 $ac_includes_default
16352 int
16353 main ()
16354 {
16355 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16356 test_array [0] = 0
16357
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16364   (eval $ac_compile) 2>conftest.er1
16365   ac_status=$?
16366   grep -v '^ *+' conftest.er1 >conftest.err
16367   rm -f conftest.er1
16368   cat conftest.err >&5
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); } &&
16371          { ac_try='test -z "$ac_c_werror_flag"
16372                          || test ! -s conftest.err'
16373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374   (eval $ac_try) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; } &&
16378          { ac_try='test -s conftest.$ac_objext'
16379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380   (eval $ac_try) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   ac_hi=$ac_mid; break
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389 ac_lo=`expr $ac_mid + 1`
16390                     if test $ac_lo -le $ac_mid; then
16391                       ac_lo= ac_hi=
16392                       break
16393                     fi
16394                     ac_mid=`expr 2 '*' $ac_mid + 1`
16395 fi
16396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16397   done
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h.  */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h.  */
16408 $ac_includes_default
16409 int
16410 main ()
16411 {
16412 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16413 test_array [0] = 0
16414
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421   (eval $ac_compile) 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } &&
16428          { ac_try='test -z "$ac_c_werror_flag"
16429                          || test ! -s conftest.err'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; } &&
16435          { ac_try='test -s conftest.$ac_objext'
16436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437   (eval $ac_try) 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }; }; then
16441   ac_hi=-1 ac_mid=-1
16442   while :; do
16443     cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 $ac_includes_default
16450 int
16451 main ()
16452 {
16453 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16454 test_array [0] = 0
16455
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 rm -f conftest.$ac_objext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16462   (eval $ac_compile) 2>conftest.er1
16463   ac_status=$?
16464   grep -v '^ *+' conftest.er1 >conftest.err
16465   rm -f conftest.er1
16466   cat conftest.err >&5
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } &&
16469          { ac_try='test -z "$ac_c_werror_flag"
16470                          || test ! -s conftest.err'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; } &&
16476          { ac_try='test -s conftest.$ac_objext'
16477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478   (eval $ac_try) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; }; then
16482   ac_lo=$ac_mid; break
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_hi=`expr '(' $ac_mid ')' - 1`
16488                        if test $ac_mid -le $ac_hi; then
16489                          ac_lo= ac_hi=
16490                          break
16491                        fi
16492                        ac_mid=`expr 2 '*' $ac_mid`
16493 fi
16494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16495   done
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 ac_lo= ac_hi=
16501 fi
16502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 fi
16504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16505 # Binary search between lo and hi bounds.
16506 while test "x$ac_lo" != "x$ac_hi"; do
16507   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16508   cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 $ac_includes_default
16515 int
16516 main ()
16517 {
16518 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16519 test_array [0] = 0
16520
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16527   (eval $ac_compile) 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } &&
16534          { ac_try='test -z "$ac_c_werror_flag"
16535                          || test ! -s conftest.err'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; } &&
16541          { ac_try='test -s conftest.$ac_objext'
16542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543   (eval $ac_try) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); }; }; then
16547   ac_hi=$ac_mid
16548 else
16549   echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ac_lo=`expr '(' $ac_mid ')' + 1`
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 done
16556 case $ac_lo in
16557 ?*) ac_cv_sizeof_short=$ac_lo;;
16558 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16559 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16561 See \`config.log' for more details." >&5
16562 echo "$as_me: error: cannot compute sizeof (short), 77
16563 See \`config.log' for more details." >&2;}
16564    { (exit 1); exit 1; }; }; } ;;
16565 esac
16566 else
16567   if test "$cross_compiling" = yes; then
16568   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16569 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16571 See \`config.log' for more details." >&5
16572 echo "$as_me: error: cannot run test program while cross compiling
16573 See \`config.log' for more details." >&2;}
16574    { (exit 1); exit 1; }; }; }
16575 else
16576   cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 $ac_includes_default
16583 long longval () { return (long) (sizeof (short)); }
16584 unsigned long ulongval () { return (long) (sizeof (short)); }
16585 #include <stdio.h>
16586 #include <stdlib.h>
16587 int
16588 main ()
16589 {
16590
16591   FILE *f = fopen ("conftest.val", "w");
16592   if (! f)
16593     exit (1);
16594   if (((long) (sizeof (short))) < 0)
16595     {
16596       long i = longval ();
16597       if (i != ((long) (sizeof (short))))
16598         exit (1);
16599       fprintf (f, "%ld\n", i);
16600     }
16601   else
16602     {
16603       unsigned long i = ulongval ();
16604       if (i != ((long) (sizeof (short))))
16605         exit (1);
16606       fprintf (f, "%lu\n", i);
16607     }
16608   exit (ferror (f) || fclose (f) != 0);
16609
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616   (eval $ac_link) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   ac_cv_sizeof_short=`cat conftest.val`
16626 else
16627   echo "$as_me: program exited with status $ac_status" >&5
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ( exit $ac_status )
16632 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16633 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16635 See \`config.log' for more details." >&5
16636 echo "$as_me: error: cannot compute sizeof (short), 77
16637 See \`config.log' for more details." >&2;}
16638    { (exit 1); exit 1; }; }; }
16639 fi
16640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16641 fi
16642 fi
16643 rm -f conftest.val
16644 else
16645   ac_cv_sizeof_short=0
16646 fi
16647 fi
16648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16649 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16650 cat >>confdefs.h <<_ACEOF
16651 #define SIZEOF_SHORT $ac_cv_sizeof_short
16652 _ACEOF
16653
16654
16655   echo "$as_me:$LINENO: checking for char" >&5
16656 echo $ECHO_N "checking for char... $ECHO_C" >&6
16657 if test "${ac_cv_type_char+set}" = set; then
16658   echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660   cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 $ac_includes_default
16667 int
16668 main ()
16669 {
16670 if ((char *) 0)
16671   return 0;
16672 if (sizeof (char))
16673   return 0;
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680   (eval $ac_compile) 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } &&
16687          { ac_try='test -z "$ac_c_werror_flag"
16688                          || test ! -s conftest.err'
16689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690   (eval $ac_try) 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; } &&
16694          { ac_try='test -s conftest.$ac_objext'
16695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696   (eval $ac_try) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; }; then
16700   ac_cv_type_char=yes
16701 else
16702   echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705 ac_cv_type_char=no
16706 fi
16707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16710 echo "${ECHO_T}$ac_cv_type_char" >&6
16711
16712 echo "$as_me:$LINENO: checking size of char" >&5
16713 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16714 if test "${ac_cv_sizeof_char+set}" = set; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717   if test "$ac_cv_type_char" = yes; then
16718   # The cast to unsigned long works around a bug in the HP C Compiler
16719   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16720   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16721   # This bug is HP SR number 8606223364.
16722   if test "$cross_compiling" = yes; then
16723   # Depending upon the size, compute the lo and hi bounds.
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 int
16732 main ()
16733 {
16734 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16735 test_array [0] = 0
16736
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16743   (eval $ac_compile) 2>conftest.er1
16744   ac_status=$?
16745   grep -v '^ *+' conftest.er1 >conftest.err
16746   rm -f conftest.er1
16747   cat conftest.err >&5
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); } &&
16750          { ac_try='test -z "$ac_c_werror_flag"
16751                          || test ! -s conftest.err'
16752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753   (eval $ac_try) 2>&5
16754   ac_status=$?
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); }; } &&
16757          { ac_try='test -s conftest.$ac_objext'
16758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759   (eval $ac_try) 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; }; then
16763   ac_lo=0 ac_mid=0
16764   while :; do
16765     cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771 $ac_includes_default
16772 int
16773 main ()
16774 {
16775 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16776 test_array [0] = 0
16777
16778   ;
16779   return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784   (eval $ac_compile) 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -z "$ac_c_werror_flag"
16792                          || test ! -s conftest.err'
16793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794   (eval $ac_try) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; } &&
16798          { ac_try='test -s conftest.$ac_objext'
16799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   ac_hi=$ac_mid; break
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_lo=`expr $ac_mid + 1`
16810                     if test $ac_lo -le $ac_mid; then
16811                       ac_lo= ac_hi=
16812                       break
16813                     fi
16814                     ac_mid=`expr 2 '*' $ac_mid + 1`
16815 fi
16816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16817   done
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 cat >conftest.$ac_ext <<_ACEOF
16823 /* confdefs.h.  */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h.  */
16828 $ac_includes_default
16829 int
16830 main ()
16831 {
16832 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16833 test_array [0] = 0
16834
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841   (eval $ac_compile) 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -z "$ac_c_werror_flag"
16849                          || test ! -s conftest.err'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_hi=-1 ac_mid=-1
16862   while :; do
16863     cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h.  */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h.  */
16869 $ac_includes_default
16870 int
16871 main ()
16872 {
16873 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16874 test_array [0] = 0
16875
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882   (eval $ac_compile) 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag"
16890                          || test ! -s conftest.err'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest.$ac_objext'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   ac_lo=$ac_mid; break
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 ac_hi=`expr '(' $ac_mid ')' - 1`
16908                        if test $ac_mid -le $ac_hi; then
16909                          ac_lo= ac_hi=
16910                          break
16911                        fi
16912                        ac_mid=`expr 2 '*' $ac_mid`
16913 fi
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915   done
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 ac_lo= ac_hi=
16921 fi
16922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16925 # Binary search between lo and hi bounds.
16926 while test "x$ac_lo" != "x$ac_hi"; do
16927   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16928   cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 $ac_includes_default
16935 int
16936 main ()
16937 {
16938 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16939 test_array [0] = 0
16940
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } &&
16954          { ac_try='test -z "$ac_c_werror_flag"
16955                          || test ! -s conftest.err'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; } &&
16961          { ac_try='test -s conftest.$ac_objext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_hi=$ac_mid
16968 else
16969   echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_lo=`expr '(' $ac_mid ')' + 1`
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 done
16976 case $ac_lo in
16977 ?*) ac_cv_sizeof_char=$ac_lo;;
16978 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16981 See \`config.log' for more details." >&5
16982 echo "$as_me: error: cannot compute sizeof (char), 77
16983 See \`config.log' for more details." >&2;}
16984    { (exit 1); exit 1; }; }; } ;;
16985 esac
16986 else
16987   if test "$cross_compiling" = yes; then
16988   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16989 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16991 See \`config.log' for more details." >&5
16992 echo "$as_me: error: cannot run test program while cross compiling
16993 See \`config.log' for more details." >&2;}
16994    { (exit 1); exit 1; }; }; }
16995 else
16996   cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002 $ac_includes_default
17003 long longval () { return (long) (sizeof (char)); }
17004 unsigned long ulongval () { return (long) (sizeof (char)); }
17005 #include <stdio.h>
17006 #include <stdlib.h>
17007 int
17008 main ()
17009 {
17010
17011   FILE *f = fopen ("conftest.val", "w");
17012   if (! f)
17013     exit (1);
17014   if (((long) (sizeof (char))) < 0)
17015     {
17016       long i = longval ();
17017       if (i != ((long) (sizeof (char))))
17018         exit (1);
17019       fprintf (f, "%ld\n", i);
17020     }
17021   else
17022     {
17023       unsigned long i = ulongval ();
17024       if (i != ((long) (sizeof (char))))
17025         exit (1);
17026       fprintf (f, "%lu\n", i);
17027     }
17028   exit (ferror (f) || fclose (f) != 0);
17029
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest$ac_exeext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036   (eval $ac_link) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_cv_sizeof_char=`cat conftest.val`
17046 else
17047   echo "$as_me: program exited with status $ac_status" >&5
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ( exit $ac_status )
17052 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17053 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17055 See \`config.log' for more details." >&5
17056 echo "$as_me: error: cannot compute sizeof (char), 77
17057 See \`config.log' for more details." >&2;}
17058    { (exit 1); exit 1; }; }; }
17059 fi
17060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17061 fi
17062 fi
17063 rm -f conftest.val
17064 else
17065   ac_cv_sizeof_char=0
17066 fi
17067 fi
17068 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17069 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17070 cat >>confdefs.h <<_ACEOF
17071 #define SIZEOF_CHAR $ac_cv_sizeof_char
17072 _ACEOF
17073
17074
17075
17076   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17077 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17078   case "$ac_cv_sizeof_char" in
17079     1) acx_cv_type_int8_t=char ;;
17080     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17081 echo "$as_me: error: no 8-bit type" >&2;}
17082    { (exit please report a bug); exit please report a bug; }; }
17083   esac
17084   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17085 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17086
17087   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17088 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17089   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17090     2:*) acx_cv_type_int16_t=int ;;
17091     *:2) acx_cv_type_int16_t=short ;;
17092     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17093 echo "$as_me: error: no 16-bit type" >&2;}
17094    { (exit please report a bug); exit please report a bug; }; }
17095   esac
17096   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17097 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17098
17099   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17100 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17101   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17102     4:*) acx_cv_type_int32_t=int ;;
17103     *:4) acx_cv_type_int32_t=long ;;
17104     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17105 echo "$as_me: error: no 32-bit type" >&2;}
17106    { (exit please report a bug); exit please report a bug; }; }
17107   esac
17108   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17109 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17110 fi
17111
17112 # These tests are here to make the output prettier
17113
17114 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17115   case "$ac_cv_sizeof_long" in
17116     8) acx_cv_type_int64_t=long ;;
17117   esac
17118   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17119 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17120   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17121 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17122 fi
17123
17124 # Now we can use the above types
17125
17126 if test "$ac_cv_type_uintptr_t" != yes; then
17127   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17128 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17129   case $ac_cv_sizeof_void_p in
17130     2) acx_cv_type_intptr_t=int16_t ;;
17131     4) acx_cv_type_intptr_t=int32_t ;;
17132     8) acx_cv_type_intptr_t=int64_t ;;
17133     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17134 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17135    { (exit please report a bug); exit please report a bug; }; }
17136   esac
17137   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17138 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17139 fi
17140
17141 # ----------------- done all checks, emit header -------------
17142           ac_config_commands="$ac_config_commands bfd_stdint.h"
17143
17144
17145
17146 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17147 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17148 if test "${ac_cv_header_time+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157 #include <sys/types.h>
17158 #include <sys/time.h>
17159 #include <time.h>
17160
17161 int
17162 main ()
17163 {
17164 if ((struct tm *) 0)
17165 return 0;
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172   (eval $ac_compile) 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } &&
17179          { ac_try='test -z "$ac_c_werror_flag"
17180                          || test ! -s conftest.err'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; } &&
17186          { ac_try='test -s conftest.$ac_objext'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192   ac_cv_header_time=yes
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_cv_header_time=no
17198 fi
17199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17200 fi
17201 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17202 echo "${ECHO_T}$ac_cv_header_time" >&6
17203 if test $ac_cv_header_time = yes; then
17204
17205 cat >>confdefs.h <<\_ACEOF
17206 #define TIME_WITH_SYS_TIME 1
17207 _ACEOF
17208
17209 fi
17210
17211
17212
17213
17214
17215
17216 ac_header_dirent=no
17217 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17218   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17219 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17220 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224   cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h.  */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h.  */
17230 #include <sys/types.h>
17231 #include <$ac_hdr>
17232
17233 int
17234 main ()
17235 {
17236 if ((DIR *) 0)
17237 return 0;
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244   (eval $ac_compile) 2>conftest.er1
17245   ac_status=$?
17246   grep -v '^ *+' conftest.er1 >conftest.err
17247   rm -f conftest.er1
17248   cat conftest.err >&5
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } &&
17251          { ac_try='test -z "$ac_c_werror_flag"
17252                          || test ! -s conftest.err'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; } &&
17258          { ac_try='test -s conftest.$ac_objext'
17259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260   (eval $ac_try) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; }; then
17264   eval "$as_ac_Header=yes"
17265 else
17266   echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 eval "$as_ac_Header=no"
17270 fi
17271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 fi
17273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17276   cat >>confdefs.h <<_ACEOF
17277 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17278 _ACEOF
17279
17280 ac_header_dirent=$ac_hdr; break
17281 fi
17282
17283 done
17284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17285 if test $ac_header_dirent = dirent.h; then
17286   echo "$as_me:$LINENO: checking for library containing opendir" >&5
17287 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17288 if test "${ac_cv_search_opendir+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291   ac_func_search_save_LIBS=$LIBS
17292 ac_cv_search_opendir=no
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299
17300 /* Override any gcc2 internal prototype to avoid an error.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 /* We use char because int might match the return type of a gcc2
17305    builtin and then its argument prototype would still apply.  */
17306 char opendir ();
17307 int
17308 main ()
17309 {
17310 opendir ();
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317   (eval $ac_link) 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } &&
17324          { ac_try='test -z "$ac_c_werror_flag"
17325                          || test ! -s conftest.err'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest$ac_exeext'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_search_opendir="none required"
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 fi
17343 rm -f conftest.err conftest.$ac_objext \
17344       conftest$ac_exeext conftest.$ac_ext
17345 if test "$ac_cv_search_opendir" = no; then
17346   for ac_lib in dir; do
17347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17348     cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354
17355 /* Override any gcc2 internal prototype to avoid an error.  */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 /* We use char because int might match the return type of a gcc2
17360    builtin and then its argument prototype would still apply.  */
17361 char opendir ();
17362 int
17363 main ()
17364 {
17365 opendir ();
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372   (eval $ac_link) 2>conftest.er1
17373   ac_status=$?
17374   grep -v '^ *+' conftest.er1 >conftest.err
17375   rm -f conftest.er1
17376   cat conftest.err >&5
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); } &&
17379          { ac_try='test -z "$ac_c_werror_flag"
17380                          || test ! -s conftest.err'
17381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382   (eval $ac_try) 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; } &&
17386          { ac_try='test -s conftest$ac_exeext'
17387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388   (eval $ac_try) 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; }; then
17392   ac_cv_search_opendir="-l$ac_lib"
17393 break
17394 else
17395   echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 fi
17399 rm -f conftest.err conftest.$ac_objext \
17400       conftest$ac_exeext conftest.$ac_ext
17401   done
17402 fi
17403 LIBS=$ac_func_search_save_LIBS
17404 fi
17405 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17406 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17407 if test "$ac_cv_search_opendir" != no; then
17408   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17409
17410 fi
17411
17412 else
17413   echo "$as_me:$LINENO: checking for library containing opendir" >&5
17414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17415 if test "${ac_cv_search_opendir+set}" = set; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   ac_func_search_save_LIBS=$LIBS
17419 ac_cv_search_opendir=no
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426
17427 /* Override any gcc2 internal prototype to avoid an error.  */
17428 #ifdef __cplusplus
17429 extern "C"
17430 #endif
17431 /* We use char because int might match the return type of a gcc2
17432    builtin and then its argument prototype would still apply.  */
17433 char opendir ();
17434 int
17435 main ()
17436 {
17437 opendir ();
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17444   (eval $ac_link) 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } &&
17451          { ac_try='test -z "$ac_c_werror_flag"
17452                          || test ! -s conftest.err'
17453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454   (eval $ac_try) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; } &&
17458          { ac_try='test -s conftest$ac_exeext'
17459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460   (eval $ac_try) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464   ac_cv_search_opendir="none required"
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 fi
17470 rm -f conftest.err conftest.$ac_objext \
17471       conftest$ac_exeext conftest.$ac_ext
17472 if test "$ac_cv_search_opendir" = no; then
17473   for ac_lib in x; do
17474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17475     cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481
17482 /* Override any gcc2 internal prototype to avoid an error.  */
17483 #ifdef __cplusplus
17484 extern "C"
17485 #endif
17486 /* We use char because int might match the return type of a gcc2
17487    builtin and then its argument prototype would still apply.  */
17488 char opendir ();
17489 int
17490 main ()
17491 {
17492 opendir ();
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499   (eval $ac_link) 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } &&
17506          { ac_try='test -z "$ac_c_werror_flag"
17507                          || test ! -s conftest.err'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; } &&
17513          { ac_try='test -s conftest$ac_exeext'
17514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515   (eval $ac_try) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   ac_cv_search_opendir="-l$ac_lib"
17520 break
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 fi
17526 rm -f conftest.err conftest.$ac_objext \
17527       conftest$ac_exeext conftest.$ac_ext
17528   done
17529 fi
17530 LIBS=$ac_func_search_save_LIBS
17531 fi
17532 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17533 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17534 if test "$ac_cv_search_opendir" != no; then
17535   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17536
17537 fi
17538
17539 fi
17540
17541 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17542 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17543 if test "${gcc_cv_header_string+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 #include <string.h>
17553 #include <strings.h>
17554 int
17555 main ()
17556 {
17557
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564   (eval $ac_compile) 2>conftest.er1
17565   ac_status=$?
17566   grep -v '^ *+' conftest.er1 >conftest.err
17567   rm -f conftest.er1
17568   cat conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -z "$ac_c_werror_flag"
17572                          || test ! -s conftest.err'
17573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574   (eval $ac_try) 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; } &&
17578          { ac_try='test -s conftest.$ac_objext'
17579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580   (eval $ac_try) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); }; }; then
17584   gcc_cv_header_string=yes
17585 else
17586   echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589 gcc_cv_header_string=no
17590 fi
17591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17592 fi
17593 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17594 echo "${ECHO_T}$gcc_cv_header_string" >&6
17595 if test $gcc_cv_header_string = yes; then
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define STRING_WITH_STRINGS 1
17599 _ACEOF
17600
17601 fi
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17612 do
17613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17614 echo "$as_me:$LINENO: checking for $ac_func" >&5
17615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17616 if eval "test \"\${$as_ac_var+set}\" = set"; then
17617   echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619   cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h.  */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h.  */
17625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17627 #define $ac_func innocuous_$ac_func
17628
17629 /* System header to define __stub macros and hopefully few prototypes,
17630     which can conflict with char $ac_func (); below.
17631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17632     <limits.h> exists even on freestanding compilers.  */
17633
17634 #ifdef __STDC__
17635 # include <limits.h>
17636 #else
17637 # include <assert.h>
17638 #endif
17639
17640 #undef $ac_func
17641
17642 /* Override any gcc2 internal prototype to avoid an error.  */
17643 #ifdef __cplusplus
17644 extern "C"
17645 {
17646 #endif
17647 /* We use char because int might match the return type of a gcc2
17648    builtin and then its argument prototype would still apply.  */
17649 char $ac_func ();
17650 /* The GNU C library defines this for functions which it implements
17651     to always fail with ENOSYS.  Some functions are actually named
17652     something starting with __ and the normal name is an alias.  */
17653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17654 choke me
17655 #else
17656 char (*f) () = $ac_func;
17657 #endif
17658 #ifdef __cplusplus
17659 }
17660 #endif
17661
17662 int
17663 main ()
17664 {
17665 return f != $ac_func;
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17672   (eval $ac_link) 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } &&
17679          { ac_try='test -z "$ac_c_werror_flag"
17680                          || test ! -s conftest.err'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest$ac_exeext'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   eval "$as_ac_var=yes"
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 eval "$as_ac_var=no"
17698 fi
17699 rm -f conftest.err conftest.$ac_objext \
17700       conftest$ac_exeext conftest.$ac_ext
17701 fi
17702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17704 if test `eval echo '${'$as_ac_var'}'` = yes; then
17705   cat >>confdefs.h <<_ACEOF
17706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17707 _ACEOF
17708
17709 fi
17710 done
17711
17712
17713 for ac_func in strtoull
17714 do
17715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17716 echo "$as_me:$LINENO: checking for $ac_func" >&5
17717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17718 if eval "test \"\${$as_ac_var+set}\" = set"; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721   cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17729 #define $ac_func innocuous_$ac_func
17730
17731 /* System header to define __stub macros and hopefully few prototypes,
17732     which can conflict with char $ac_func (); below.
17733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17734     <limits.h> exists even on freestanding compilers.  */
17735
17736 #ifdef __STDC__
17737 # include <limits.h>
17738 #else
17739 # include <assert.h>
17740 #endif
17741
17742 #undef $ac_func
17743
17744 /* Override any gcc2 internal prototype to avoid an error.  */
17745 #ifdef __cplusplus
17746 extern "C"
17747 {
17748 #endif
17749 /* We use char because int might match the return type of a gcc2
17750    builtin and then its argument prototype would still apply.  */
17751 char $ac_func ();
17752 /* The GNU C library defines this for functions which it implements
17753     to always fail with ENOSYS.  Some functions are actually named
17754     something starting with __ and the normal name is an alias.  */
17755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17756 choke me
17757 #else
17758 char (*f) () = $ac_func;
17759 #endif
17760 #ifdef __cplusplus
17761 }
17762 #endif
17763
17764 int
17765 main ()
17766 {
17767 return f != $ac_func;
17768   ;
17769   return 0;
17770 }
17771 _ACEOF
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17774   (eval $ac_link) 2>conftest.er1
17775   ac_status=$?
17776   grep -v '^ *+' conftest.er1 >conftest.err
17777   rm -f conftest.er1
17778   cat conftest.err >&5
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } &&
17781          { ac_try='test -z "$ac_c_werror_flag"
17782                          || test ! -s conftest.err'
17783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784   (eval $ac_try) 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); }; } &&
17788          { ac_try='test -s conftest$ac_exeext'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   eval "$as_ac_var=yes"
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 eval "$as_ac_var=no"
17800 fi
17801 rm -f conftest.err conftest.$ac_objext \
17802       conftest$ac_exeext conftest.$ac_ext
17803 fi
17804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17806 if test `eval echo '${'$as_ac_var'}'` = yes; then
17807   cat >>confdefs.h <<_ACEOF
17808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17809 _ACEOF
17810
17811 fi
17812 done
17813
17814
17815 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17816 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17817 if test "${ac_cv_have_decl_basename+set}" = set; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 $ac_includes_default
17827 int
17828 main ()
17829 {
17830 #ifndef basename
17831   char *p = (char *) basename;
17832 #endif
17833
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840   (eval $ac_compile) 2>conftest.er1
17841   ac_status=$?
17842   grep -v '^ *+' conftest.er1 >conftest.err
17843   rm -f conftest.er1
17844   cat conftest.err >&5
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); } &&
17847          { ac_try='test -z "$ac_c_werror_flag"
17848                          || test ! -s conftest.err'
17849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850   (eval $ac_try) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; } &&
17854          { ac_try='test -s conftest.$ac_objext'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }; then
17860   ac_cv_have_decl_basename=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 ac_cv_have_decl_basename=no
17866 fi
17867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17868 fi
17869 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17870 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17871 if test $ac_cv_have_decl_basename = yes; then
17872
17873 cat >>confdefs.h <<_ACEOF
17874 #define HAVE_DECL_BASENAME 1
17875 _ACEOF
17876
17877
17878 else
17879   cat >>confdefs.h <<_ACEOF
17880 #define HAVE_DECL_BASENAME 0
17881 _ACEOF
17882
17883
17884 fi
17885
17886
17887 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17888 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17889 if test "${ac_cv_have_decl_ftello+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 $ac_includes_default
17899 int
17900 main ()
17901 {
17902 #ifndef ftello
17903   char *p = (char *) ftello;
17904 #endif
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912   (eval $ac_compile) 2>conftest.er1
17913   ac_status=$?
17914   grep -v '^ *+' conftest.er1 >conftest.err
17915   rm -f conftest.er1
17916   cat conftest.err >&5
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); } &&
17919          { ac_try='test -z "$ac_c_werror_flag"
17920                          || test ! -s conftest.err'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest.$ac_objext'
17927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928   (eval $ac_try) 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; }; then
17932   ac_cv_have_decl_ftello=yes
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_cv_have_decl_ftello=no
17938 fi
17939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17940 fi
17941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17942 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17943 if test $ac_cv_have_decl_ftello = yes; then
17944
17945 cat >>confdefs.h <<_ACEOF
17946 #define HAVE_DECL_FTELLO 1
17947 _ACEOF
17948
17949
17950 else
17951   cat >>confdefs.h <<_ACEOF
17952 #define HAVE_DECL_FTELLO 0
17953 _ACEOF
17954
17955
17956 fi
17957
17958
17959 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17960 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17961 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 $ac_includes_default
17971 int
17972 main ()
17973 {
17974 #ifndef ftello64
17975   char *p = (char *) ftello64;
17976 #endif
17977
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984   (eval $ac_compile) 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } &&
17991          { ac_try='test -z "$ac_c_werror_flag"
17992                          || test ! -s conftest.err'
17993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994   (eval $ac_try) 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest.$ac_objext'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004   ac_cv_have_decl_ftello64=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_cv_have_decl_ftello64=no
18010 fi
18011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18012 fi
18013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
18014 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
18015 if test $ac_cv_have_decl_ftello64 = yes; then
18016
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_DECL_FTELLO64 1
18019 _ACEOF
18020
18021
18022 else
18023   cat >>confdefs.h <<_ACEOF
18024 #define HAVE_DECL_FTELLO64 0
18025 _ACEOF
18026
18027
18028 fi
18029
18030
18031 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
18032 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
18033 if test "${ac_cv_have_decl_fseeko+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042 $ac_includes_default
18043 int
18044 main ()
18045 {
18046 #ifndef fseeko
18047   char *p = (char *) fseeko;
18048 #endif
18049
18050   ;
18051   return 0;
18052 }
18053 _ACEOF
18054 rm -f conftest.$ac_objext
18055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18056   (eval $ac_compile) 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } &&
18063          { ac_try='test -z "$ac_c_werror_flag"
18064                          || test ! -s conftest.err'
18065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066   (eval $ac_try) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; } &&
18070          { ac_try='test -s conftest.$ac_objext'
18071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072   (eval $ac_try) 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; }; then
18076   ac_cv_have_decl_fseeko=yes
18077 else
18078   echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18080
18081 ac_cv_have_decl_fseeko=no
18082 fi
18083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18084 fi
18085 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18086 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18087 if test $ac_cv_have_decl_fseeko = yes; then
18088
18089 cat >>confdefs.h <<_ACEOF
18090 #define HAVE_DECL_FSEEKO 1
18091 _ACEOF
18092
18093
18094 else
18095   cat >>confdefs.h <<_ACEOF
18096 #define HAVE_DECL_FSEEKO 0
18097 _ACEOF
18098
18099
18100 fi
18101
18102
18103 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18104 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18105 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18106   echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108   cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h.  */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h.  */
18114 $ac_includes_default
18115 int
18116 main ()
18117 {
18118 #ifndef fseeko64
18119   char *p = (char *) fseeko64;
18120 #endif
18121
18122   ;
18123   return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18128   (eval $ac_compile) 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } &&
18135          { ac_try='test -z "$ac_c_werror_flag"
18136                          || test ! -s conftest.err'
18137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138   (eval $ac_try) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }; } &&
18142          { ac_try='test -s conftest.$ac_objext'
18143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144   (eval $ac_try) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; }; then
18148   ac_cv_have_decl_fseeko64=yes
18149 else
18150   echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 ac_cv_have_decl_fseeko64=no
18154 fi
18155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18156 fi
18157 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18158 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18159 if test $ac_cv_have_decl_fseeko64 = yes; then
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define HAVE_DECL_FSEEKO64 1
18163 _ACEOF
18164
18165
18166 else
18167   cat >>confdefs.h <<_ACEOF
18168 #define HAVE_DECL_FSEEKO64 0
18169 _ACEOF
18170
18171
18172 fi
18173
18174
18175
18176
18177 case "${host}" in
18178 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18179
18180 cat >>confdefs.h <<\_ACEOF
18181 #define USE_BINARY_FOPEN 1
18182 _ACEOF
18183  ;;
18184 esac
18185
18186 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18187 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18188 if test "${ac_cv_have_decl_ffs+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191   cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h.  */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h.  */
18197 $ac_includes_default
18198 int
18199 main ()
18200 {
18201 #ifndef ffs
18202   char *p = (char *) ffs;
18203 #endif
18204
18205   ;
18206   return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211   (eval $ac_compile) 2>conftest.er1
18212   ac_status=$?
18213   grep -v '^ *+' conftest.er1 >conftest.err
18214   rm -f conftest.er1
18215   cat conftest.err >&5
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } &&
18218          { ac_try='test -z "$ac_c_werror_flag"
18219                          || test ! -s conftest.err'
18220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221   (eval $ac_try) 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; } &&
18225          { ac_try='test -s conftest.$ac_objext'
18226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227   (eval $ac_try) 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; }; then
18231   ac_cv_have_decl_ffs=yes
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 ac_cv_have_decl_ffs=no
18237 fi
18238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18239 fi
18240 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18241 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18242 if test $ac_cv_have_decl_ffs = yes; then
18243
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_DECL_FFS 1
18246 _ACEOF
18247
18248
18249 else
18250   cat >>confdefs.h <<_ACEOF
18251 #define HAVE_DECL_FFS 0
18252 _ACEOF
18253
18254
18255 fi
18256
18257
18258 echo "$as_me:$LINENO: checking whether free is declared" >&5
18259 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18260 if test "${ac_cv_have_decl_free+set}" = set; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h.  */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h.  */
18269 $ac_includes_default
18270 int
18271 main ()
18272 {
18273 #ifndef free
18274   char *p = (char *) free;
18275 #endif
18276
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18283   (eval $ac_compile) 2>conftest.er1
18284   ac_status=$?
18285   grep -v '^ *+' conftest.er1 >conftest.err
18286   rm -f conftest.er1
18287   cat conftest.err >&5
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); } &&
18290          { ac_try='test -z "$ac_c_werror_flag"
18291                          || test ! -s conftest.err'
18292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293   (eval $ac_try) 2>&5
18294   ac_status=$?
18295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296   (exit $ac_status); }; } &&
18297          { ac_try='test -s conftest.$ac_objext'
18298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299   (eval $ac_try) 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; }; then
18303   ac_cv_have_decl_free=yes
18304 else
18305   echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_cv_have_decl_free=no
18309 fi
18310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18311 fi
18312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18313 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18314 if test $ac_cv_have_decl_free = yes; then
18315
18316 cat >>confdefs.h <<_ACEOF
18317 #define HAVE_DECL_FREE 1
18318 _ACEOF
18319
18320
18321 else
18322   cat >>confdefs.h <<_ACEOF
18323 #define HAVE_DECL_FREE 0
18324 _ACEOF
18325
18326
18327 fi
18328
18329
18330 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18331 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18332 if test "${ac_cv_have_decl_getenv+set}" = set; then
18333   echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335   cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341 $ac_includes_default
18342 int
18343 main ()
18344 {
18345 #ifndef getenv
18346   char *p = (char *) getenv;
18347 #endif
18348
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355   (eval $ac_compile) 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag"
18363                          || test ! -s conftest.err'
18364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365   (eval $ac_try) 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); }; } &&
18369          { ac_try='test -s conftest.$ac_objext'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; }; then
18375   ac_cv_have_decl_getenv=yes
18376 else
18377   echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 ac_cv_have_decl_getenv=no
18381 fi
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 fi
18384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18385 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18386 if test $ac_cv_have_decl_getenv = yes; then
18387
18388 cat >>confdefs.h <<_ACEOF
18389 #define HAVE_DECL_GETENV 1
18390 _ACEOF
18391
18392
18393 else
18394   cat >>confdefs.h <<_ACEOF
18395 #define HAVE_DECL_GETENV 0
18396 _ACEOF
18397
18398
18399 fi
18400
18401
18402 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18403 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18404 if test "${ac_cv_have_decl_malloc+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413 $ac_includes_default
18414 int
18415 main ()
18416 {
18417 #ifndef malloc
18418   char *p = (char *) malloc;
18419 #endif
18420
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427   (eval $ac_compile) 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -z "$ac_c_werror_flag"
18435                          || test ! -s conftest.err'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; } &&
18441          { ac_try='test -s conftest.$ac_objext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_have_decl_malloc=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_cv_have_decl_malloc=no
18453 fi
18454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18455 fi
18456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18457 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18458 if test $ac_cv_have_decl_malloc = yes; then
18459
18460 cat >>confdefs.h <<_ACEOF
18461 #define HAVE_DECL_MALLOC 1
18462 _ACEOF
18463
18464
18465 else
18466   cat >>confdefs.h <<_ACEOF
18467 #define HAVE_DECL_MALLOC 0
18468 _ACEOF
18469
18470
18471 fi
18472
18473
18474 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18475 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18476 if test "${ac_cv_have_decl_realloc+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 $ac_includes_default
18486 int
18487 main ()
18488 {
18489 #ifndef realloc
18490   char *p = (char *) realloc;
18491 #endif
18492
18493   ;
18494   return 0;
18495 }
18496 _ACEOF
18497 rm -f conftest.$ac_objext
18498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18499   (eval $ac_compile) 2>conftest.er1
18500   ac_status=$?
18501   grep -v '^ *+' conftest.er1 >conftest.err
18502   rm -f conftest.er1
18503   cat conftest.err >&5
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); } &&
18506          { ac_try='test -z "$ac_c_werror_flag"
18507                          || test ! -s conftest.err'
18508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509   (eval $ac_try) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; } &&
18513          { ac_try='test -s conftest.$ac_objext'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; }; then
18519   ac_cv_have_decl_realloc=yes
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 ac_cv_have_decl_realloc=no
18525 fi
18526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18527 fi
18528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18529 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18530 if test $ac_cv_have_decl_realloc = yes; then
18531
18532 cat >>confdefs.h <<_ACEOF
18533 #define HAVE_DECL_REALLOC 1
18534 _ACEOF
18535
18536
18537 else
18538   cat >>confdefs.h <<_ACEOF
18539 #define HAVE_DECL_REALLOC 0
18540 _ACEOF
18541
18542
18543 fi
18544
18545
18546 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18547 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18548 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 $ac_includes_default
18558 int
18559 main ()
18560 {
18561 #ifndef stpcpy
18562   char *p = (char *) stpcpy;
18563 #endif
18564
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18571   (eval $ac_compile) 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } &&
18578          { ac_try='test -z "$ac_c_werror_flag"
18579                          || test ! -s conftest.err'
18580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581   (eval $ac_try) 2>&5
18582   ac_status=$?
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); }; } &&
18585          { ac_try='test -s conftest.$ac_objext'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   ac_cv_have_decl_stpcpy=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_have_decl_stpcpy=no
18597 fi
18598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18599 fi
18600 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18601 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18602 if test $ac_cv_have_decl_stpcpy = yes; then
18603
18604 cat >>confdefs.h <<_ACEOF
18605 #define HAVE_DECL_STPCPY 1
18606 _ACEOF
18607
18608
18609 else
18610   cat >>confdefs.h <<_ACEOF
18611 #define HAVE_DECL_STPCPY 0
18612 _ACEOF
18613
18614
18615 fi
18616
18617
18618 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18619 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18620 if test "${ac_cv_have_decl_strstr+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629 $ac_includes_default
18630 int
18631 main ()
18632 {
18633 #ifndef strstr
18634   char *p = (char *) strstr;
18635 #endif
18636
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643   (eval $ac_compile) 2>conftest.er1
18644   ac_status=$?
18645   grep -v '^ *+' conftest.er1 >conftest.err
18646   rm -f conftest.er1
18647   cat conftest.err >&5
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } &&
18650          { ac_try='test -z "$ac_c_werror_flag"
18651                          || test ! -s conftest.err'
18652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653   (eval $ac_try) 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; } &&
18657          { ac_try='test -s conftest.$ac_objext'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; }; then
18663   ac_cv_have_decl_strstr=yes
18664 else
18665   echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_cv_have_decl_strstr=no
18669 fi
18670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18671 fi
18672 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18673 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18674 if test $ac_cv_have_decl_strstr = yes; then
18675
18676 cat >>confdefs.h <<_ACEOF
18677 #define HAVE_DECL_STRSTR 1
18678 _ACEOF
18679
18680
18681 else
18682   cat >>confdefs.h <<_ACEOF
18683 #define HAVE_DECL_STRSTR 0
18684 _ACEOF
18685
18686
18687 fi
18688
18689
18690 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18691 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18692 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695   cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701 $ac_includes_default
18702 int
18703 main ()
18704 {
18705 #ifndef snprintf
18706   char *p = (char *) snprintf;
18707 #endif
18708
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 rm -f conftest.$ac_objext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18715   (eval $ac_compile) 2>conftest.er1
18716   ac_status=$?
18717   grep -v '^ *+' conftest.er1 >conftest.err
18718   rm -f conftest.er1
18719   cat conftest.err >&5
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); } &&
18722          { ac_try='test -z "$ac_c_werror_flag"
18723                          || test ! -s conftest.err'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest.$ac_objext'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_cv_have_decl_snprintf=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_have_decl_snprintf=no
18741 fi
18742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18743 fi
18744 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18745 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18746 if test $ac_cv_have_decl_snprintf = yes; then
18747
18748 cat >>confdefs.h <<_ACEOF
18749 #define HAVE_DECL_SNPRINTF 1
18750 _ACEOF
18751
18752
18753 else
18754   cat >>confdefs.h <<_ACEOF
18755 #define HAVE_DECL_SNPRINTF 0
18756 _ACEOF
18757
18758
18759 fi
18760
18761
18762 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18763 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18764 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773 $ac_includes_default
18774 int
18775 main ()
18776 {
18777 #ifndef vsnprintf
18778   char *p = (char *) vsnprintf;
18779 #endif
18780
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18787   (eval $ac_compile) 2>conftest.er1
18788   ac_status=$?
18789   grep -v '^ *+' conftest.er1 >conftest.err
18790   rm -f conftest.er1
18791   cat conftest.err >&5
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); } &&
18794          { ac_try='test -z "$ac_c_werror_flag"
18795                          || test ! -s conftest.err'
18796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797   (eval $ac_try) 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; } &&
18801          { ac_try='test -s conftest.$ac_objext'
18802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803   (eval $ac_try) 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; }; then
18807   ac_cv_have_decl_vsnprintf=yes
18808 else
18809   echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ac_cv_have_decl_vsnprintf=no
18813 fi
18814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18815 fi
18816 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18817 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18818 if test $ac_cv_have_decl_vsnprintf = yes; then
18819
18820 cat >>confdefs.h <<_ACEOF
18821 #define HAVE_DECL_VSNPRINTF 1
18822 _ACEOF
18823
18824
18825 else
18826   cat >>confdefs.h <<_ACEOF
18827 #define HAVE_DECL_VSNPRINTF 0
18828 _ACEOF
18829
18830
18831 fi
18832
18833
18834
18835 # Link in zlib if we can.  This allows us to read compressed debug sections.
18836 # This is used only by compress.c.
18837 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18838 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18839 if test "${ac_cv_search_zlibVersion+set}" = set; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   ac_func_search_save_LIBS=$LIBS
18843 ac_cv_search_zlibVersion=no
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850
18851 /* Override any gcc2 internal prototype to avoid an error.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856    builtin and then its argument prototype would still apply.  */
18857 char zlibVersion ();
18858 int
18859 main ()
18860 {
18861 zlibVersion ();
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868   (eval $ac_link) 2>conftest.er1
18869   ac_status=$?
18870   grep -v '^ *+' conftest.er1 >conftest.err
18871   rm -f conftest.er1
18872   cat conftest.err >&5
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } &&
18875          { ac_try='test -z "$ac_c_werror_flag"
18876                          || test ! -s conftest.err'
18877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878   (eval $ac_try) 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; } &&
18882          { ac_try='test -s conftest$ac_exeext'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; }; then
18888   ac_cv_search_zlibVersion="none required"
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 fi
18894 rm -f conftest.err conftest.$ac_objext \
18895       conftest$ac_exeext conftest.$ac_ext
18896 if test "$ac_cv_search_zlibVersion" = no; then
18897   for ac_lib in z; do
18898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18899     cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905
18906 /* Override any gcc2 internal prototype to avoid an error.  */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 /* We use char because int might match the return type of a gcc2
18911    builtin and then its argument prototype would still apply.  */
18912 char zlibVersion ();
18913 int
18914 main ()
18915 {
18916 zlibVersion ();
18917   ;
18918   return 0;
18919 }
18920 _ACEOF
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923   (eval $ac_link) 2>conftest.er1
18924   ac_status=$?
18925   grep -v '^ *+' conftest.er1 >conftest.err
18926   rm -f conftest.er1
18927   cat conftest.err >&5
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); } &&
18930          { ac_try='test -z "$ac_c_werror_flag"
18931                          || test ! -s conftest.err'
18932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933   (eval $ac_try) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; } &&
18937          { ac_try='test -s conftest$ac_exeext'
18938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939   (eval $ac_try) 2>&5
18940   ac_status=$?
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); }; }; then
18943   ac_cv_search_zlibVersion="-l$ac_lib"
18944 break
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 fi
18950 rm -f conftest.err conftest.$ac_objext \
18951       conftest$ac_exeext conftest.$ac_ext
18952   done
18953 fi
18954 LIBS=$ac_func_search_save_LIBS
18955 fi
18956 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18957 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18958 if test "$ac_cv_search_zlibVersion" != no; then
18959   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18960
18961 for ac_header in zlib.h
18962 do
18963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18965   echo "$as_me:$LINENO: checking for $ac_header" >&5
18966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 fi
18970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18972 else
18973   # Is the header compilable?
18974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h.  */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h.  */
18982 $ac_includes_default
18983 #include <$ac_header>
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987   (eval $ac_compile) 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } &&
18994          { ac_try='test -z "$ac_c_werror_flag"
18995                          || test ! -s conftest.err'
18996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997   (eval $ac_try) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; } &&
19001          { ac_try='test -s conftest.$ac_objext'
19002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003   (eval $ac_try) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; }; then
19007   ac_header_compiler=yes
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_header_compiler=no
19013 fi
19014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19016 echo "${ECHO_T}$ac_header_compiler" >&6
19017
19018 # Is the header present?
19019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h.  */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h.  */
19027 #include <$ac_header>
19028 _ACEOF
19029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } >/dev/null; then
19037   if test -s conftest.err; then
19038     ac_cpp_err=$ac_c_preproc_warn_flag
19039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19040   else
19041     ac_cpp_err=
19042   fi
19043 else
19044   ac_cpp_err=yes
19045 fi
19046 if test -z "$ac_cpp_err"; then
19047   ac_header_preproc=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052   ac_header_preproc=no
19053 fi
19054 rm -f conftest.err conftest.$ac_ext
19055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19056 echo "${ECHO_T}$ac_header_preproc" >&6
19057
19058 # So?  What about this header?
19059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19060   yes:no: )
19061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19065     ac_header_preproc=yes
19066     ;;
19067   no:yes:* )
19068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19080     (
19081       cat <<\_ASBOX
19082 ## ------------------------------------------ ##
19083 ## Report this to the AC_PACKAGE_NAME lists.  ##
19084 ## ------------------------------------------ ##
19085 _ASBOX
19086     ) |
19087       sed "s/^/$as_me: WARNING:     /" >&2
19088     ;;
19089 esac
19090 echo "$as_me:$LINENO: checking for $ac_header" >&5
19091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   eval "$as_ac_Header=\$ac_header_preproc"
19096 fi
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19099
19100 fi
19101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19102   cat >>confdefs.h <<_ACEOF
19103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19104 _ACEOF
19105
19106 fi
19107
19108 done
19109
19110 fi
19111
19112
19113 # If we are configured native, pick a core file support file.
19114 COREFILE=
19115 COREFLAG=
19116 TRAD_HEADER=
19117 if test "${target}" = "${host}"; then
19118   case "${host}" in
19119   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19120         COREFILE=''
19121         ;;
19122   alpha*-*-linux-*)
19123         COREFILE=trad-core.lo
19124         TRAD_HEADER='"hosts/alphalinux.h"'
19125         ;;
19126   alpha*-*-netbsd* | alpha*-*-openbsd*)
19127         COREFILE=netbsd-core.lo
19128         ;;
19129   alpha*-*-*)           COREFILE=osf-core.lo ;;
19130   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19131                         COREFILE='' ;;
19132   arm-*-netbsd* | arm-*-openbsd*)
19133         COREFILE=netbsd-core.lo
19134         ;;
19135   arm-*-riscix)         COREFILE=trad-core.lo ;;
19136   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
19137   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
19138   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
19139   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
19140                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19141   hppa*-*-netbsd* | hppa*-*-openbsd*)
19142         COREFILE=netbsd-core.lo
19143         ;;
19144
19145   i370-*-*)
19146         COREFILE=trad-core.lo
19147         TRAD_HEADER='"hosts/i370linux.h"'
19148         ;;
19149
19150   i[3-7]86-sequent-bsd*)
19151         COREFILE=trad-core.lo
19152         TRAD_HEADER='"hosts/symmetry.h"'
19153         ;;
19154   i[3-7]86-sequent-sysv4*) ;;
19155   i[3-7]86-sequent-sysv*)
19156         COREFILE=trad-core.lo
19157         TRAD_HEADER='"hosts/symmetry.h"'
19158         ;;
19159   i[3-7]86-*-bsdi)
19160         COREFILE=
19161         ;;
19162   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
19163         COREFILE=trad-core.lo
19164         TRAD_HEADER='"hosts/i386bsd.h"'
19165         ;;
19166   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19167         COREFILE=''
19168         TRAD_HEADER='"hosts/i386bsd.h"'
19169         ;;
19170   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19171         COREFILE=netbsd-core.lo
19172         ;;
19173   i[3-7]86-esix-sysv3*)
19174         COREFILE=trad-core.lo
19175         TRAD_HEADER='"hosts/esix.h"'
19176         ;;
19177   i[3-7]86-*-sco3.2v5*)
19178         COREFILE=sco5-core.lo
19179         ;;
19180   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19181         COREFILE=trad-core.lo
19182         TRAD_HEADER='"hosts/i386sco.h"'
19183         ;;
19184   i[3-7]86-*-mach3*)
19185         COREFILE=trad-core.lo
19186         TRAD_HEADER='"hosts/i386mach3.h"'
19187         ;;
19188   i[3-7]86-*-linux-*)
19189         COREFILE=trad-core.lo
19190         TRAD_HEADER='"hosts/i386linux.h"'
19191         ;;
19192   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
19193   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
19194   i860-*-mach3* | i860-*-osf1*)
19195         COREFILE=trad-core.lo
19196         TRAD_HEADER='"hosts/i860mach3.h"'
19197         ;;
19198   mips-*-netbsd* | mips*-*-openbsd*)
19199         COREFILE=netbsd-core.lo
19200         ;;
19201   mips-dec-*)
19202         COREFILE=trad-core.lo
19203         TRAD_HEADER='"hosts/decstation.h"'
19204         ;;
19205   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
19206   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
19207   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
19208   mips-*-sysv4*)        ;;
19209   mips-*-sysv* | mips-*-riscos*)
19210         COREFILE=trad-core.lo
19211         TRAD_HEADER='"hosts/riscos.h"'
19212         ;;
19213   mips-sony-bsd*)
19214         COREFILE=trad-core.lo
19215         TRAD_HEADER='"hosts/news-mips.h"'
19216         ;;
19217   m68*-bull*-sysv*)
19218         COREFILE=trad-core.lo
19219         TRAD_HEADER='"hosts/dpx2.h"'
19220         ;;
19221   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
19222   m68*-hp-bsd*)
19223         COREFILE=trad-core.lo
19224         TRAD_HEADER='"hosts/hp300bsd.h"'
19225         ;;
19226   m68*-*-linux-*)
19227         COREFILE=trad-core.lo
19228         TRAD_HEADER='"hosts/m68klinux.h"'
19229         ;;
19230   m68*-motorola-sysv*)
19231         COREFILE=trad-core.lo
19232         TRAD_HEADER='"hosts/delta68.h"'
19233         ;;
19234   m68*-sony-*)
19235         COREFILE=trad-core.lo
19236         TRAD_HEADER='"hosts/news.h"'
19237         ;;
19238   m68*-*-netbsd* | m68*-*-openbsd*)
19239         COREFILE=netbsd-core.lo
19240         ;;
19241   m68*-apple-aux*)
19242         COREFILE=trad-core.lo
19243         TRAD_HEADER='"hosts/m68kaux.h"'
19244         ;;
19245   m88*-*-sysv4*)
19246         ;;
19247   m88*-motorola-sysv*)
19248         COREFILE=ptrace-core.lo
19249         ;;
19250   m88*-*-mach3*)
19251         COREFILE=trad-core.lo
19252         TRAD_HEADER='"hosts/m88kmach3.h"'
19253         ;;
19254   m88*-*-openbsd*)
19255         COREFILE=netbsd-core.lo
19256         ;;
19257   ns32k-pc532-mach)
19258         COREFILE=trad-core.lo
19259         TRAD_HEADER='"hosts/pc532mach.h"'
19260         ;;
19261   ns32k-*-netbsd* | ns32k-*-openbsd*)
19262         COREFILE=netbsd-core.lo
19263         ;;
19264   rs6000-*-lynx*)
19265         COREFILE=lynx-core.lo
19266         ;;
19267   rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
19268         COREFILE=rs6000-core.lo
19269         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19270         ;;
19271   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19272         COREFILE=rs6000-core.lo
19273         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19274         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19275         # have c_impl as a member of struct core_dumpx
19276         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19277 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19278         cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 #include <core.h>
19285 int
19286 main ()
19287 {
19288 struct core_dumpx c; c.c_impl = 0;
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19295   (eval $ac_compile) 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_c_werror_flag"
19303                          || test ! -s conftest.err'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; } &&
19309          { ac_try='test -s conftest.$ac_objext'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; }; then
19315
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_ST_C_IMPL 1
19318 _ACEOF
19319
19320           echo "$as_me:$LINENO: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 echo "$as_me:$LINENO: result: no" >&5
19327 echo "${ECHO_T}no" >&6
19328 fi
19329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19330         ;;
19331   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
19332   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
19333   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
19334   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
19335   powerpc-*-beos*)      ;;
19336   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19337                         COREFILE='' ;;
19338   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
19339   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
19340   s390*-*-*)            COREFILE=trad-core.lo ;;
19341   sh*-*-netbsd* | sh*-*-openbsd*)
19342         COREFILE=netbsd-core.lo
19343         ;;
19344   sparc-*-netbsd* | sparc*-*-openbsd*)
19345         COREFILE=netbsd-core.lo
19346         ;;
19347   tahoe-*-*)
19348         COREFILE=trad-core.lo
19349         TRAD_HEADER='"hosts/tahoe.h"'
19350         ;;
19351   vax-*-netbsd* | vax-*-openbsd*)
19352         COREFILE=netbsd-core.lo
19353         ;;
19354   vax-*-ultrix2*)
19355         COREFILE=trad-core.lo
19356         TRAD_HEADER='"hosts/vaxult2.h"'
19357         ;;
19358   vax-*-ultrix*)
19359         COREFILE=trad-core.lo
19360         TRAD_HEADER='"hosts/vaxult2.h"'
19361         ;;
19362   vax-*-linux-*)
19363         COREFILE=trad-core.lo
19364         TRAD_HEADER='"hosts/vaxlinux.h"'
19365         ;;
19366   vax-*-*)
19367         COREFILE=trad-core.lo
19368         TRAD_HEADER='"hosts/vaxbsd.h"'
19369         ;;
19370   x86_64-*-netbsd* | x86_64-*-openbsd*)
19371         COREFILE=netbsd-core.lo
19372         ;;
19373   esac
19374
19375   case "$COREFILE" in
19376   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
19377   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
19378   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
19379   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
19380   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
19381   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
19382   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
19383   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
19384   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
19385   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19386   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19387   esac
19388
19389   # ELF corefile support has several flavors, but all of
19390   # them use something called <sys/procfs.h>
19391
19392 for ac_header in sys/procfs.h
19393 do
19394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396   echo "$as_me:$LINENO: checking for $ac_header" >&5
19397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19399   echo $ECHO_N "(cached) $ECHO_C" >&6
19400 fi
19401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19403 else
19404   # Is the header compilable?
19405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413 $ac_includes_default
19414 #include <$ac_header>
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418   (eval $ac_compile) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest.$ac_objext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_header_compiler=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_header_compiler=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19447 echo "${ECHO_T}$ac_header_compiler" >&6
19448
19449 # Is the header present?
19450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458 #include <$ac_header>
19459 _ACEOF
19460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } >/dev/null; then
19468   if test -s conftest.err; then
19469     ac_cpp_err=$ac_c_preproc_warn_flag
19470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19471   else
19472     ac_cpp_err=
19473   fi
19474 else
19475   ac_cpp_err=yes
19476 fi
19477 if test -z "$ac_cpp_err"; then
19478   ac_header_preproc=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483   ac_header_preproc=no
19484 fi
19485 rm -f conftest.err conftest.$ac_ext
19486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19487 echo "${ECHO_T}$ac_header_preproc" >&6
19488
19489 # So?  What about this header?
19490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19491   yes:no: )
19492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19496     ac_header_preproc=yes
19497     ;;
19498   no:yes:* )
19499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19511     (
19512       cat <<\_ASBOX
19513 ## ------------------------------------------ ##
19514 ## Report this to the AC_PACKAGE_NAME lists.  ##
19515 ## ------------------------------------------ ##
19516 _ASBOX
19517     ) |
19518       sed "s/^/$as_me: WARNING:     /" >&2
19519     ;;
19520 esac
19521 echo "$as_me:$LINENO: checking for $ac_header" >&5
19522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   eval "$as_ac_Header=\$ac_header_preproc"
19527 fi
19528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19530
19531 fi
19532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19533   cat >>confdefs.h <<_ACEOF
19534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19535 _ACEOF
19536
19537 fi
19538
19539 done
19540
19541   if test "$ac_cv_header_sys_procfs_h" = yes; then
19542     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19543 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19544  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553
19554 #define _SYSCALL32
19555 #include <sys/procfs.h>
19556 int
19557 main ()
19558 {
19559 prstatus_t avar
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566   (eval $ac_compile) 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -z "$ac_c_werror_flag"
19574                          || test ! -s conftest.err'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; } &&
19580          { ac_try='test -s conftest.$ac_objext'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; }; then
19586   bfd_cv_have_sys_procfs_type_prstatus_t=yes
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 bfd_cv_have_sys_procfs_type_prstatus_t=no
19592
19593 fi
19594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 fi
19596
19597  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_PRSTATUS_T 1
19601 _ACEOF
19602
19603  fi
19604  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19605 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19606
19607     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19608 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19609  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618
19619 #define _SYSCALL32
19620 #include <sys/procfs.h>
19621 int
19622 main ()
19623 {
19624 prstatus32_t avar
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631   (eval $ac_compile) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19657
19658 fi
19659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 fi
19661
19662  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_PRSTATUS32_T 1
19666 _ACEOF
19667
19668  fi
19669  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19670 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19671
19672     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19673 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19674  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683
19684 #define _SYSCALL32
19685 #include <sys/procfs.h>
19686 int
19687 main ()
19688 {
19689 prstatus_t avar; void* aref = (void*) &avar.pr_who
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696   (eval $ac_compile) 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_c_werror_flag"
19704                          || test ! -s conftest.err'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; } &&
19710          { ac_try='test -s conftest.$ac_objext'
19711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712   (eval $ac_try) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; }; then
19716   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19717 else
19718   echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19722
19723 fi
19724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19725 fi
19726
19727  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19728
19729 cat >>confdefs.h <<\_ACEOF
19730 #define HAVE_PRSTATUS_T_PR_WHO 1
19731 _ACEOF
19732
19733  fi
19734  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19735 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19736
19737     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19738 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19739  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748
19749 #define _SYSCALL32
19750 #include <sys/procfs.h>
19751 int
19752 main ()
19753 {
19754 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19755   ;
19756   return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761   (eval $ac_compile) 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } &&
19768          { ac_try='test -z "$ac_c_werror_flag"
19769                          || test ! -s conftest.err'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; } &&
19775          { ac_try='test -s conftest.$ac_objext'
19776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777   (eval $ac_try) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19787
19788 fi
19789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19790 fi
19791
19792  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_PRSTATUS32_T_PR_WHO 1
19796 _ACEOF
19797
19798  fi
19799  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19800 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19801
19802     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19803 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19804  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19805   echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807   cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h.  */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h.  */
19813
19814 #define _SYSCALL32
19815 #include <sys/procfs.h>
19816 int
19817 main ()
19818 {
19819 pstatus_t avar
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826   (eval $ac_compile) 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_c_werror_flag"
19834                          || test ! -s conftest.err'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; } &&
19840          { ac_try='test -s conftest.$ac_objext'
19841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842   (eval $ac_try) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   bfd_cv_have_sys_procfs_type_pstatus_t=yes
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 bfd_cv_have_sys_procfs_type_pstatus_t=no
19852
19853 fi
19854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19855 fi
19856
19857  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19858
19859 cat >>confdefs.h <<\_ACEOF
19860 #define HAVE_PSTATUS_T 1
19861 _ACEOF
19862
19863  fi
19864  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19865 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19866
19867     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19868 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19869  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878
19879 #define _SYSCALL32
19880 #include <sys/procfs.h>
19881 int
19882 main ()
19883 {
19884 pxstatus_t avar
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891   (eval $ac_compile) 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } &&
19898          { ac_try='test -z "$ac_c_werror_flag"
19899                          || test ! -s conftest.err'
19900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901   (eval $ac_try) 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest.$ac_objext'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; }; then
19911   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19917
19918 fi
19919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19920 fi
19921
19922  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19923
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_PXSTATUS_T 1
19926 _ACEOF
19927
19928  fi
19929  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19930 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19931
19932     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19933 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19934  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937   cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943
19944 #define _SYSCALL32
19945 #include <sys/procfs.h>
19946 int
19947 main ()
19948 {
19949 pstatus32_t avar
19950   ;
19951   return 0;
19952 }
19953 _ACEOF
19954 rm -f conftest.$ac_objext
19955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19956   (eval $ac_compile) 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } &&
19963          { ac_try='test -z "$ac_c_werror_flag"
19964                          || test ! -s conftest.err'
19965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966   (eval $ac_try) 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; } &&
19970          { ac_try='test -s conftest.$ac_objext'
19971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972   (eval $ac_try) 2>&5
19973   ac_status=$?
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); }; }; then
19976   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19977 else
19978   echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19982
19983 fi
19984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986
19987  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19988
19989 cat >>confdefs.h <<\_ACEOF
19990 #define HAVE_PSTATUS32_T 1
19991 _ACEOF
19992
19993  fi
19994  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19995 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19996
19997     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19998 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19999  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008
20009 #define _SYSCALL32
20010 #include <sys/procfs.h>
20011 int
20012 main ()
20013 {
20014 prpsinfo_t avar
20015   ;
20016   return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20021   (eval $ac_compile) 2>conftest.er1
20022   ac_status=$?
20023   grep -v '^ *+' conftest.er1 >conftest.err
20024   rm -f conftest.er1
20025   cat conftest.err >&5
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); } &&
20028          { ac_try='test -z "$ac_c_werror_flag"
20029                          || test ! -s conftest.err'
20030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031   (eval $ac_try) 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; } &&
20035          { ac_try='test -s conftest.$ac_objext'
20036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037   (eval $ac_try) 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); }; }; then
20041   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20042 else
20043   echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20047
20048 fi
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 fi
20051
20052  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20053
20054 cat >>confdefs.h <<\_ACEOF
20055 #define HAVE_PRPSINFO_T 1
20056 _ACEOF
20057
20058  fi
20059  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20060 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20061
20062     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20063 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20064  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20065   echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067   cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h.  */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h.  */
20073
20074 #define _SYSCALL32
20075 #include <sys/procfs.h>
20076 int
20077 main ()
20078 {
20079 prpsinfo32_t avar
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20086   (eval $ac_compile) 2>conftest.er1
20087   ac_status=$?
20088   grep -v '^ *+' conftest.er1 >conftest.err
20089   rm -f conftest.er1
20090   cat conftest.err >&5
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } &&
20093          { ac_try='test -z "$ac_c_werror_flag"
20094                          || test ! -s conftest.err'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; } &&
20100          { ac_try='test -s conftest.$ac_objext'
20101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102   (eval $ac_try) 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; }; then
20106   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20107 else
20108   echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20112
20113 fi
20114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20115 fi
20116
20117  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20118
20119 cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_PRPSINFO32_T 1
20121 _ACEOF
20122
20123  fi
20124  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20125 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20126
20127     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20128 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20129  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138
20139 #define _SYSCALL32
20140 #include <sys/procfs.h>
20141 int
20142 main ()
20143 {
20144 psinfo_t avar
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151   (eval $ac_compile) 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_c_werror_flag"
20159                          || test ! -s conftest.err'
20160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161   (eval $ac_try) 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; } &&
20165          { ac_try='test -s conftest.$ac_objext'
20166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167   (eval $ac_try) 2>&5
20168   ac_status=$?
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); }; }; then
20171   bfd_cv_have_sys_procfs_type_psinfo_t=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 bfd_cv_have_sys_procfs_type_psinfo_t=no
20177
20178 fi
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 fi
20181
20182  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20183
20184 cat >>confdefs.h <<\_ACEOF
20185 #define HAVE_PSINFO_T 1
20186 _ACEOF
20187
20188  fi
20189  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20190 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20191
20192     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20193 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20194  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203
20204 #define _SYSCALL32
20205 #include <sys/procfs.h>
20206 int
20207 main ()
20208 {
20209 psinfo32_t avar
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216   (eval $ac_compile) 2>conftest.er1
20217   ac_status=$?
20218   grep -v '^ *+' conftest.er1 >conftest.err
20219   rm -f conftest.er1
20220   cat conftest.err >&5
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } &&
20223          { ac_try='test -z "$ac_c_werror_flag"
20224                          || test ! -s conftest.err'
20225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226   (eval $ac_try) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; } &&
20230          { ac_try='test -s conftest.$ac_objext'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; }; then
20236   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20237 else
20238   echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20242
20243 fi
20244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20245 fi
20246
20247  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20248
20249 cat >>confdefs.h <<\_ACEOF
20250 #define HAVE_PSINFO32_T 1
20251 _ACEOF
20252
20253  fi
20254  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20255 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20256
20257     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20258 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20259  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262   cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268
20269 #define _SYSCALL32
20270 #include <sys/procfs.h>
20271 int
20272 main ()
20273 {
20274 lwpstatus_t avar
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281   (eval $ac_compile) 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } &&
20288          { ac_try='test -z "$ac_c_werror_flag"
20289                          || test ! -s conftest.err'
20290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291   (eval $ac_try) 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; } &&
20295          { ac_try='test -s conftest.$ac_objext'
20296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297   (eval $ac_try) 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); }; }; then
20301   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20302 else
20303   echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20307
20308 fi
20309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310 fi
20311
20312  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20313
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE_LWPSTATUS_T 1
20316 _ACEOF
20317
20318  fi
20319  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20320 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20321
20322     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20323 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20324  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333
20334 #define _SYSCALL32
20335 #include <sys/procfs.h>
20336 int
20337 main ()
20338 {
20339 lwpxstatus_t avar
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346   (eval $ac_compile) 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -z "$ac_c_werror_flag"
20354                          || test ! -s conftest.err'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; } &&
20360          { ac_try='test -s conftest.$ac_objext'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20372
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 fi
20376
20377  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20378
20379 cat >>confdefs.h <<\_ACEOF
20380 #define HAVE_LWPXSTATUS_T 1
20381 _ACEOF
20382
20383  fi
20384  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20385 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20386
20387     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20388 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20389  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398
20399 #define _SYSCALL32
20400 #include <sys/procfs.h>
20401 int
20402 main ()
20403 {
20404 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411   (eval $ac_compile) 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } &&
20418          { ac_try='test -z "$ac_c_werror_flag"
20419                          || test ! -s conftest.err'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; } &&
20425          { ac_try='test -s conftest.$ac_objext'
20426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427   (eval $ac_try) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; }; then
20431   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20437
20438 fi
20439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440 fi
20441
20442  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20443
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20446 _ACEOF
20447
20448  fi
20449  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20450 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20451
20452     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20453 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20454  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h.  */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h.  */
20463
20464 #define _SYSCALL32
20465 #include <sys/procfs.h>
20466 int
20467 main ()
20468 {
20469 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476   (eval $ac_compile) 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -z "$ac_c_werror_flag"
20484                          || test ! -s conftest.err'
20485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486   (eval $ac_try) 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; } &&
20490          { ac_try='test -s conftest.$ac_objext'
20491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492   (eval $ac_try) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; }; then
20496   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20497 else
20498   echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20502
20503 fi
20504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20505 fi
20506
20507  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_LWPSTATUS_T_PR_REG 1
20511 _ACEOF
20512
20513  fi
20514  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20515 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20516
20517     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20518 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20519  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h.  */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h.  */
20528
20529 #define _SYSCALL32
20530 #include <sys/procfs.h>
20531 int
20532 main ()
20533 {
20534 win32_pstatus_t avar
20535   ;
20536   return 0;
20537 }
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541   (eval $ac_compile) 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } &&
20548          { ac_try='test -z "$ac_c_werror_flag"
20549                          || test ! -s conftest.err'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; } &&
20555          { ac_try='test -s conftest.$ac_objext'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20567
20568 fi
20569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 fi
20571
20572  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20573
20574 cat >>confdefs.h <<\_ACEOF
20575 #define HAVE_WIN32_PSTATUS_T 1
20576 _ACEOF
20577
20578  fi
20579  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20580 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20581
20582   fi
20583 fi
20584
20585
20586 if test -n "$TRAD_HEADER"; then
20587
20588 cat >>confdefs.h <<_ACEOF
20589 #define TRAD_HEADER $TRAD_HEADER
20590 _ACEOF
20591
20592 fi
20593
20594 # Check if linker supports --as-needed and --no-as-needed options
20595 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
20596 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
20597 if test "${bfd_cv_ld_as_needed+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   bfd_cv_ld_as_needed=no
20601         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
20602                 bfd_cv_ld_as_needed=yes
20603         fi
20604
20605 fi
20606 echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
20607 echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
20608
20609 LIBM=
20610 case $host in
20611 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
20612   # These system don't have libm, or don't need it
20613   ;;
20614 *-ncr-sysv4.3*)
20615   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20616 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20617 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lmw  $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628
20629 /* Override any gcc2 internal prototype to avoid an error.  */
20630 #ifdef __cplusplus
20631 extern "C"
20632 #endif
20633 /* We use char because int might match the return type of a gcc2
20634    builtin and then its argument prototype would still apply.  */
20635 char _mwvalidcheckl ();
20636 int
20637 main ()
20638 {
20639 _mwvalidcheckl ();
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646   (eval $ac_link) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest$ac_exeext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_lib_mw__mwvalidcheckl=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_lib_mw__mwvalidcheckl=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext \
20674       conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20678 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20679 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20680   LIBM="-lmw"
20681 fi
20682
20683   echo "$as_me:$LINENO: checking for cos in -lm" >&5
20684 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20685 if test "${ac_cv_lib_m_cos+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   ac_check_lib_save_LIBS=$LIBS
20689 LIBS="-lm  $LIBS"
20690 cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h.  */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h.  */
20696
20697 /* Override any gcc2 internal prototype to avoid an error.  */
20698 #ifdef __cplusplus
20699 extern "C"
20700 #endif
20701 /* We use char because int might match the return type of a gcc2
20702    builtin and then its argument prototype would still apply.  */
20703 char cos ();
20704 int
20705 main ()
20706 {
20707 cos ();
20708   ;
20709   return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest.$ac_objext conftest$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714   (eval $ac_link) 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } &&
20721          { ac_try='test -z "$ac_c_werror_flag"
20722                          || test ! -s conftest.err'
20723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724   (eval $ac_try) 2>&5
20725   ac_status=$?
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); }; } &&
20728          { ac_try='test -s conftest$ac_exeext'
20729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730   (eval $ac_try) 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); }; }; then
20734   ac_cv_lib_m_cos=yes
20735 else
20736   echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739 ac_cv_lib_m_cos=no
20740 fi
20741 rm -f conftest.err conftest.$ac_objext \
20742       conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20744 fi
20745 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20746 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20747 if test $ac_cv_lib_m_cos = yes; then
20748   LIBM="$LIBM -lm"
20749 fi
20750
20751   ;;
20752 *)
20753   echo "$as_me:$LINENO: checking for cos in -lm" >&5
20754 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20755 if test "${ac_cv_lib_m_cos+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   ac_check_lib_save_LIBS=$LIBS
20759 LIBS="-lm  $LIBS"
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766
20767 /* Override any gcc2 internal prototype to avoid an error.  */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 /* We use char because int might match the return type of a gcc2
20772    builtin and then its argument prototype would still apply.  */
20773 char cos ();
20774 int
20775 main ()
20776 {
20777 cos ();
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext conftest$ac_exeext
20783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20784   (eval $ac_link) 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } &&
20791          { ac_try='test -z "$ac_c_werror_flag"
20792                          || test ! -s conftest.err'
20793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794   (eval $ac_try) 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; } &&
20798          { ac_try='test -s conftest$ac_exeext'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; }; then
20804   ac_cv_lib_m_cos=yes
20805 else
20806   echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ac_cv_lib_m_cos=no
20810 fi
20811 rm -f conftest.err conftest.$ac_objext \
20812       conftest$ac_exeext conftest.$ac_ext
20813 LIBS=$ac_check_lib_save_LIBS
20814 fi
20815 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20816 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20817 if test $ac_cv_lib_m_cos = yes; then
20818   LIBM="-lm"
20819 fi
20820
20821   ;;
20822 esac
20823
20824
20825
20826 # When building a shared libbfd, link against the pic version of libiberty
20827 # so that apps that use libbfd won't need libiberty just to satisfy any
20828 # libbfd references.
20829 # We can't do that if a pic libiberty is unavailable since including non-pic
20830 # code would insert text relocations into libbfd.
20831 SHARED_LIBADD=
20832 SHARED_LDFLAGS=
20833 if test "$enable_shared" = "yes"; then
20834   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20835   if test -n "$x"; then
20836     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
20837   fi
20838
20839 # More hacks to build DLLs on Windows.
20840   case "${host}" in
20841   *-*-cygwin*)
20842     SHARED_LDFLAGS="-no-undefined"
20843     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20844   ;;
20845   esac
20846
20847   if test -n "$SHARED_LIBADD"; then
20848     if test -n "$LIBM"; then
20849       if test x"$bfd_cv_ld_as_needed" = xyes; then
20850         # Link against libm only when needed.  Put -lc, -lm inside -Wl
20851         # to stop libtool reordering these options.
20852         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
20853       else
20854         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
20855       fi
20856     fi
20857   fi
20858 fi
20859
20860
20861
20862 # target stuff:
20863
20864 # Canonicalize the secondary target names.
20865 if test -n "$enable_targets" ; then
20866     for targ in `echo $enable_targets | sed 's/,/ /g'`
20867     do
20868         result=`$ac_config_sub $targ 2>/dev/null`
20869         if test -n "$result" ; then
20870             canon_targets="$canon_targets $result"
20871         else
20872             # Allow targets that config.sub doesn't recognize, like "all".
20873             canon_targets="$canon_targets $targ"
20874         fi
20875     done
20876 fi
20877
20878 all_targets=false
20879 defvec=
20880 selvecs=
20881 assocvecs=
20882 selarchs=
20883 TDEFINES=
20884 for targ in $target $canon_targets
20885 do
20886     if test "x$targ" = "xall"; then
20887         all_targets=true
20888         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20889     else
20890         . $srcdir/config.bfd
20891         if test "x$targ" = "x$target"; then
20892             defvec=$targ_defvec
20893         fi
20894         selvecs="$selvecs $targ_defvec $targ_selvecs"
20895         selarchs="$selarchs $targ_archs"
20896         TDEFINES="$TDEFINES $targ_cflags"
20897     fi
20898 done
20899
20900
20901 # This processing still needs to be done if we're to decide properly whether
20902 # 64-bit support needs to be compiled in.  Currently, it will be included if
20903 # the default or any other explicitly requested target requires it; it
20904 # will not be included on a 32-bit host if no 64-bit target is requested, and
20905 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20906 # used.
20907
20908 # uniq the default and selected vectors in all the configured targets.
20909 f=""
20910 for i in $selvecs ; do
20911     case " $f " in
20912     *" $i "*) ;;
20913     *) f="$f $i" ;;
20914     esac
20915 done
20916 selvecs="$f"
20917
20918
20919 # uniq the associated vectors in all the configured targets.
20920 f=""
20921 for i in $assocvecs ; do
20922     case " $f " in
20923     *" $i "*) ;;
20924     *) f="$f $i" ;;
20925     esac
20926 done
20927 assocvecs="$f"
20928
20929
20930 # uniq the architectures in all the configured targets.
20931 f=""
20932 for i in $selarchs ; do
20933     case " $f " in
20934     *" $i "*) ;;
20935     *) f="$f $i" ;;
20936     esac
20937 done
20938 selarchs="$f"
20939
20940 # Target backend .o files.
20941 tb=
20942
20943 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20944
20945 for vec in $selvecs
20946 do
20947     target_size=32
20948     case "$vec" in
20949     # This list is alphabetized to make it easy to compare
20950     # with the two vector lists in targets.c.  For the same reason,
20951     # use one entry per line, even though this leads to long lines.
20952     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
20953     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20954     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
20955     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
20956     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
20957     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
20958     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20959     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20960     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20961     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20962     arm_wince_pe_big_vec)       tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20963     arm_wince_pe_little_vec)    tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20964     arm_wince_pei_big_vec)      tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20965     arm_wince_pei_little_vec)   tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20966     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
20967     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
20968     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
20969     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20970     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20971     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20972     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20973     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
20974     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
20975     bfd_pei_ia64_vec)           tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20976     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20977     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20978     bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20979     bfd_elf32_bfinfdpic_vec)    tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20980     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20981     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20982     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20983     bfd_elf32_bigarm_symbian_vec)
20984                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20985     bfd_elf32_bigarm_vxworks_vec)
20986                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20987     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20988     bfd_elf32_bigmips_vxworks_vec)
20989                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20990     bfd_elf32_cr16_vec)         tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20991     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20992     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20993     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20994     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20995     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20996     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20997     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20998     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20999     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
21000     bfd_elf32_moxie_vec)        tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
21001     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
21002     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
21003     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
21004     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
21005     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
21006     bfd_elf32_i386_dragonfly_vec)
21007                                 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21008     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21009     bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21010     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21011     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
21012     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
21013     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
21014     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
21015     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
21016     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
21017     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
21018     bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
21019     bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
21020     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
21021     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
21022     bfd_elf32_littlearm_symbian_vec)
21023                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
21024     bfd_elf32_littlearm_vxworks_vec)
21025                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
21026     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
21027     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21028     bfd_elf32_littlemips_vxworks_vec)
21029                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21030     bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
21031     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21032     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21033     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21034     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21035     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
21036     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
21037     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
21038     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
21039     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21040     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21041     bfd_elf32_mep_vec)          tb="$tb elf32-mep.lo elf32.lo $elf" ;;
21042     bfd_elf32_mep_little_vec)   tb="$tb elf32-mep.lo elf32.lo $elf" ;;
21043     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
21044     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
21045     bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
21046     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
21047     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21048     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21049     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21050     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21051     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
21052     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
21053     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
21054     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
21055     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21056     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21057     bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21058     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
21059     bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
21060     bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
21061     # FIXME: We include cofflink.lo not because it's needed for
21062     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
21063     # which needs it but does not list it.  Should be fixed in right place.
21064     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21065     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21066     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21067     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21068     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21069     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21070     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21071     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21072     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21073     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21074     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21075     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21076     bfd_elf32_shlvxworks_vec)   tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21077     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21078     bfd_elf32_shvxworks_vec)    tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21079     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
21080     bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
21081     bfd_elf32_spu_vec)          tb="$tb elf32-spu.lo elf32.lo $elf" ;;
21082     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21083     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21084     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
21085     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
21086     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
21087     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
21088     bfd_elf32_xc16x_vec)                tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
21089     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
21090     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
21091     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
21092     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
21093     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21094     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21095     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
21096     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
21097     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21098     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21099     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21100     bfd_elf64_ia64_vms_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
21101     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21102     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21103     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
21104     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21105     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
21106     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
21107     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21108     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21109     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21110     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21111     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21112     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21113     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
21114     bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
21115     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21116     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21117     bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
21118     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
21119     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
21120     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21121     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
21122     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21123     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
21124     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
21125     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
21126     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21127     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21128     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21129     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
21130     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
21131     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
21132     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
21133     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
21134     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
21135     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
21136     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
21137     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
21138     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
21139     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
21140     x86_64coff_vec)             tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
21141     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
21142     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
21143     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
21144     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
21145     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
21146     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
21147     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
21148     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
21149     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
21150     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
21151     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
21152     x86_64pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
21153     x86_64pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
21154     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
21155     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
21156     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
21157     ieee_vec)                   tb="$tb ieee.lo" ;;
21158     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
21159     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
21160     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
21161     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
21162     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
21163     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
21164     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
21165     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
21166     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
21167     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
21168     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
21169     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
21170     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
21171     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
21172     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21173     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21174     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
21175     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
21176     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
21177     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
21178     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
21179     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
21180     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
21181     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
21182     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
21183     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
21184     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
21185     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
21186     pef_vec)                    tb="$tb pef.lo" ;;
21187     pef_xlib_vec)               tb="$tb pef.lo" ;;
21188     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
21189     plugin_vec)                 tb="$tb plugin.lo" ;;
21190     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
21191     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
21192     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
21193     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
21194     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
21195     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
21196     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
21197     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
21198     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
21199     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
21200     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
21201     som_vec)                    tb="$tb som.lo" ;;
21202     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
21203     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
21204     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
21205     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
21206     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
21207     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
21208     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
21209     sym_vec)                    tb="$tb xsym.lo" ;;
21210     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
21211     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
21212     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
21213     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
21214     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
21215     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
21216     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
21217     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
21218     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
21219     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
21220     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
21221     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
21222     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
21223     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
21224     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
21225     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
21226     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
21227     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
21228     versados_vec)               tb="$tb versados.lo" ;;
21229     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
21230     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
21231     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
21232     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
21233     z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
21234     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
21235
21236     # These appear out of order in targets.c
21237     srec_vec)                   tb="$tb srec.lo" ;;
21238     symbolsrec_vec)             tb="$tb srec.lo" ;;
21239     tekhex_vec)                 tb="$tb tekhex.lo" ;;
21240     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
21241     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
21242
21243     "")                 ;;
21244     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
21245 echo "$as_me: error: *** unknown target vector $vec" >&2;}
21246    { (exit 1); exit 1; }; } ;;
21247     esac
21248
21249     if test ${target_size} = 64; then
21250         target64=true
21251     fi
21252     if test x"${vec}" = x"${defvec}"; then
21253         bfd_default_target_size=${target_size}
21254     fi
21255 done
21256
21257 # Target architecture .o files.
21258 # A couple of CPUs use shorter file names to avoid problems on DOS
21259 # filesystems.
21260 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
21261
21262 # Weed out duplicate .o files.
21263 f=""
21264 for i in $tb ; do
21265     case " $f " in
21266     *" $i "*) ;;
21267     *) f="$f $i" ;;
21268     esac
21269 done
21270 tb="$f"
21271
21272 f=""
21273 for i in $ta ; do
21274     case " $f " in
21275     *" $i "*) ;;
21276     *) f="$f $i" ;;
21277     esac
21278 done
21279 ta="$f"
21280
21281 bfd_backends="$tb"
21282 bfd_machines="$ta"
21283
21284 if test x${all_targets} = xtrue ; then
21285   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21286   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21287   selvecs=
21288   havevecs=
21289   selarchs=
21290   test -n "$assocvecs" &&
21291     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21292 else    # all_targets is true
21293   # Only set these if they will be nonempty, for the clever echo.
21294   havevecs=
21295   assocvecs=
21296   test -n "$selvecs" &&
21297     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21298   test -n "$selvecs" &&
21299     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21300   test -n "$selarchs" &&
21301     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21302 fi      # all_targets is true
21303
21304 case ${host64}-${target64}-${want64} in
21305   *true*)
21306     wordsize=64
21307     bfd64_libs='$(BFD64_LIBS)'
21308     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21309     if test $BFD_HOST_64_BIT_DEFINED = 0; then
21310       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21311 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21312       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21313 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21314     fi
21315     if test -n "$GCC" ; then
21316        bad_64bit_gcc=no;
21317        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21318 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21319        # Add more tests for gcc versions with non-working 64-bit support here.
21320        cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 :__GNUC__:__GNUC_MINOR__:__i386__:
21327 _ACEOF
21328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21329   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21330   bad_64bit_gcc=yes;
21331                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21332 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21333 else
21334   echo "$as_me:$LINENO: result: no" >&5
21335 echo "${ECHO_T}no" >&6
21336 fi
21337 rm -f conftest*
21338
21339        if test $bad_64bit_gcc = yes ; then
21340          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21341 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21342    { (exit 1); exit 1; }; }
21343        fi
21344     fi
21345     ;;
21346   false-false-false)
21347     wordsize=32
21348     all_backends='$(BFD32_BACKENDS)'
21349     ;;
21350 esac
21351
21352
21353
21354
21355
21356
21357
21358
21359 if test "$plugins" = "yes"; then
21360   supports_plugins=1
21361 else
21362   supports_plugins=0
21363 fi
21364
21365
21366 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
21367 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21368 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
21369 # Hopefully a reasonable assumption since fseeko et.al. should be
21370 # upward compatible.
21371
21372
21373
21374
21375
21376 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21377 do
21378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21379 echo "$as_me:$LINENO: checking for $ac_func" >&5
21380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21381 if eval "test \"\${$as_ac_var+set}\" = set"; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21392 #define $ac_func innocuous_$ac_func
21393
21394 /* System header to define __stub macros and hopefully few prototypes,
21395     which can conflict with char $ac_func (); below.
21396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21397     <limits.h> exists even on freestanding compilers.  */
21398
21399 #ifdef __STDC__
21400 # include <limits.h>
21401 #else
21402 # include <assert.h>
21403 #endif
21404
21405 #undef $ac_func
21406
21407 /* Override any gcc2 internal prototype to avoid an error.  */
21408 #ifdef __cplusplus
21409 extern "C"
21410 {
21411 #endif
21412 /* We use char because int might match the return type of a gcc2
21413    builtin and then its argument prototype would still apply.  */
21414 char $ac_func ();
21415 /* The GNU C library defines this for functions which it implements
21416     to always fail with ENOSYS.  Some functions are actually named
21417     something starting with __ and the normal name is an alias.  */
21418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21419 choke me
21420 #else
21421 char (*f) () = $ac_func;
21422 #endif
21423 #ifdef __cplusplus
21424 }
21425 #endif
21426
21427 int
21428 main ()
21429 {
21430 return f != $ac_func;
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437   (eval $ac_link) 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } &&
21444          { ac_try='test -z "$ac_c_werror_flag"
21445                          || test ! -s conftest.err'
21446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447   (eval $ac_try) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; } &&
21451          { ac_try='test -s conftest$ac_exeext'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; }; then
21457   eval "$as_ac_var=yes"
21458 else
21459   echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 eval "$as_ac_var=no"
21463 fi
21464 rm -f conftest.err conftest.$ac_objext \
21465       conftest$ac_exeext conftest.$ac_ext
21466 fi
21467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21469 if test `eval echo '${'$as_ac_var'}'` = yes; then
21470   cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21472 _ACEOF
21473
21474 fi
21475 done
21476
21477 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21478     echo "$as_me:$LINENO: checking for off_t" >&5
21479 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21480 if test "${ac_cv_type_off_t+set}" = set; then
21481   echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483   cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489 $ac_includes_default
21490 int
21491 main ()
21492 {
21493 if ((off_t *) 0)
21494   return 0;
21495 if (sizeof (off_t))
21496   return 0;
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503   (eval $ac_compile) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest.$ac_objext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   ac_cv_type_off_t=yes
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 ac_cv_type_off_t=no
21529 fi
21530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21531 fi
21532 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21533 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21534
21535 echo "$as_me:$LINENO: checking size of off_t" >&5
21536 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21537 if test "${ac_cv_sizeof_off_t+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   if test "$ac_cv_type_off_t" = yes; then
21541   # The cast to unsigned long works around a bug in the HP C Compiler
21542   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21543   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21544   # This bug is HP SR number 8606223364.
21545   if test "$cross_compiling" = yes; then
21546   # Depending upon the size, compute the lo and hi bounds.
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 $ac_includes_default
21554 int
21555 main ()
21556 {
21557 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21558 test_array [0] = 0
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566   (eval $ac_compile) 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } &&
21573          { ac_try='test -z "$ac_c_werror_flag"
21574                          || test ! -s conftest.err'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; } &&
21580          { ac_try='test -s conftest.$ac_objext'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; }; then
21586   ac_lo=0 ac_mid=0
21587   while :; do
21588     cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 $ac_includes_default
21595 int
21596 main ()
21597 {
21598 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21599 test_array [0] = 0
21600
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21607   (eval $ac_compile) 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } &&
21614          { ac_try='test -z "$ac_c_werror_flag"
21615                          || test ! -s conftest.err'
21616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617   (eval $ac_try) 2>&5
21618   ac_status=$?
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); }; } &&
21621          { ac_try='test -s conftest.$ac_objext'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; }; then
21627   ac_hi=$ac_mid; break
21628 else
21629   echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632 ac_lo=`expr $ac_mid + 1`
21633                     if test $ac_lo -le $ac_mid; then
21634                       ac_lo= ac_hi=
21635                       break
21636                     fi
21637                     ac_mid=`expr 2 '*' $ac_mid + 1`
21638 fi
21639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21640   done
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 $ac_includes_default
21652 int
21653 main ()
21654 {
21655 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21656 test_array [0] = 0
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664   (eval $ac_compile) 2>conftest.er1
21665   ac_status=$?
21666   grep -v '^ *+' conftest.er1 >conftest.err
21667   rm -f conftest.er1
21668   cat conftest.err >&5
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } &&
21671          { ac_try='test -z "$ac_c_werror_flag"
21672                          || test ! -s conftest.err'
21673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674   (eval $ac_try) 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; } &&
21678          { ac_try='test -s conftest.$ac_objext'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; }; then
21684   ac_hi=-1 ac_mid=-1
21685   while :; do
21686     cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692 $ac_includes_default
21693 int
21694 main ()
21695 {
21696 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21697 test_array [0] = 0
21698
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21705   (eval $ac_compile) 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } &&
21712          { ac_try='test -z "$ac_c_werror_flag"
21713                          || test ! -s conftest.err'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; } &&
21719          { ac_try='test -s conftest.$ac_objext'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   ac_lo=$ac_mid; break
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 ac_hi=`expr '(' $ac_mid ')' - 1`
21731                        if test $ac_mid -le $ac_hi; then
21732                          ac_lo= ac_hi=
21733                          break
21734                        fi
21735                        ac_mid=`expr 2 '*' $ac_mid`
21736 fi
21737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21738   done
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_lo= ac_hi=
21744 fi
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 fi
21747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21748 # Binary search between lo and hi bounds.
21749 while test "x$ac_lo" != "x$ac_hi"; do
21750   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21751   cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 $ac_includes_default
21758 int
21759 main ()
21760 {
21761 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21762 test_array [0] = 0
21763
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770   (eval $ac_compile) 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } &&
21777          { ac_try='test -z "$ac_c_werror_flag"
21778                          || test ! -s conftest.err'
21779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780   (eval $ac_try) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; } &&
21784          { ac_try='test -s conftest.$ac_objext'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790   ac_hi=$ac_mid
21791 else
21792   echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795 ac_lo=`expr '(' $ac_mid ')' + 1`
21796 fi
21797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21798 done
21799 case $ac_lo in
21800 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21801 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21802 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21804 See \`config.log' for more details." >&5
21805 echo "$as_me: error: cannot compute sizeof (off_t), 77
21806 See \`config.log' for more details." >&2;}
21807    { (exit 1); exit 1; }; }; } ;;
21808 esac
21809 else
21810   if test "$cross_compiling" = yes; then
21811   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21812 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21813 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21814 See \`config.log' for more details." >&5
21815 echo "$as_me: error: cannot run test program while cross compiling
21816 See \`config.log' for more details." >&2;}
21817    { (exit 1); exit 1; }; }; }
21818 else
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 $ac_includes_default
21826 long longval () { return (long) (sizeof (off_t)); }
21827 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21828 #include <stdio.h>
21829 #include <stdlib.h>
21830 int
21831 main ()
21832 {
21833
21834   FILE *f = fopen ("conftest.val", "w");
21835   if (! f)
21836     exit (1);
21837   if (((long) (sizeof (off_t))) < 0)
21838     {
21839       long i = longval ();
21840       if (i != ((long) (sizeof (off_t))))
21841         exit (1);
21842       fprintf (f, "%ld\n", i);
21843     }
21844   else
21845     {
21846       unsigned long i = ulongval ();
21847       if (i != ((long) (sizeof (off_t))))
21848         exit (1);
21849       fprintf (f, "%lu\n", i);
21850     }
21851   exit (ferror (f) || fclose (f) != 0);
21852
21853   ;
21854   return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest$ac_exeext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21859   (eval $ac_link) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864   (eval $ac_try) 2>&5
21865   ac_status=$?
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); }; }; then
21868   ac_cv_sizeof_off_t=`cat conftest.val`
21869 else
21870   echo "$as_me: program exited with status $ac_status" >&5
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874 ( exit $ac_status )
21875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21878 See \`config.log' for more details." >&5
21879 echo "$as_me: error: cannot compute sizeof (off_t), 77
21880 See \`config.log' for more details." >&2;}
21881    { (exit 1); exit 1; }; }; }
21882 fi
21883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21884 fi
21885 fi
21886 rm -f conftest.val
21887 else
21888   ac_cv_sizeof_off_t=0
21889 fi
21890 fi
21891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21892 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21893 cat >>confdefs.h <<_ACEOF
21894 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21895 _ACEOF
21896
21897
21898 fi
21899 echo "$as_me:$LINENO: checking file_ptr type" >&5
21900 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21901 bfd_file_ptr="long"
21902 bfd_ufile_ptr="unsigned long"
21903 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21904         -o x"${ac_cv_sizeof_off_t}" = x8; then
21905     bfd_file_ptr=BFD_HOST_64_BIT
21906     bfd_ufile_ptr=BFD_HOST_U_64_BIT
21907 fi
21908 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21909 echo "${ECHO_T}$bfd_file_ptr" >&6
21910
21911
21912
21913
21914 tdefaults=""
21915 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21916 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21917 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21918 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21919 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21920
21921
21922
21923
21924 for ac_header in stdlib.h unistd.h
21925 do
21926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21928   echo "$as_me:$LINENO: checking for $ac_header" >&5
21929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 fi
21933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21935 else
21936   # Is the header compilable?
21937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 $ac_includes_default
21946 #include <$ac_header>
21947 _ACEOF
21948 rm -f conftest.$ac_objext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950   (eval $ac_compile) 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } &&
21957          { ac_try='test -z "$ac_c_werror_flag"
21958                          || test ! -s conftest.err'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; } &&
21964          { ac_try='test -s conftest.$ac_objext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ac_header_compiler=yes
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_header_compiler=no
21976 fi
21977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21979 echo "${ECHO_T}$ac_header_compiler" >&6
21980
21981 # Is the header present?
21982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990 #include <$ac_header>
21991 _ACEOF
21992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } >/dev/null; then
22000   if test -s conftest.err; then
22001     ac_cpp_err=$ac_c_preproc_warn_flag
22002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22003   else
22004     ac_cpp_err=
22005   fi
22006 else
22007   ac_cpp_err=yes
22008 fi
22009 if test -z "$ac_cpp_err"; then
22010   ac_header_preproc=yes
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015   ac_header_preproc=no
22016 fi
22017 rm -f conftest.err conftest.$ac_ext
22018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22019 echo "${ECHO_T}$ac_header_preproc" >&6
22020
22021 # So?  What about this header?
22022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22023   yes:no: )
22024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22028     ac_header_preproc=yes
22029     ;;
22030   no:yes:* )
22031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22043     (
22044       cat <<\_ASBOX
22045 ## ------------------------------------------ ##
22046 ## Report this to the AC_PACKAGE_NAME lists.  ##
22047 ## ------------------------------------------ ##
22048 _ASBOX
22049     ) |
22050       sed "s/^/$as_me: WARNING:     /" >&2
22051     ;;
22052 esac
22053 echo "$as_me:$LINENO: checking for $ac_header" >&5
22054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22056   echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058   eval "$as_ac_Header=\$ac_header_preproc"
22059 fi
22060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22062
22063 fi
22064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22065   cat >>confdefs.h <<_ACEOF
22066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22067 _ACEOF
22068
22069 fi
22070
22071 done
22072
22073
22074 for ac_func in getpagesize
22075 do
22076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22077 echo "$as_me:$LINENO: checking for $ac_func" >&5
22078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22079 if eval "test \"\${$as_ac_var+set}\" = set"; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082   cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22090 #define $ac_func innocuous_$ac_func
22091
22092 /* System header to define __stub macros and hopefully few prototypes,
22093     which can conflict with char $ac_func (); below.
22094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22095     <limits.h> exists even on freestanding compilers.  */
22096
22097 #ifdef __STDC__
22098 # include <limits.h>
22099 #else
22100 # include <assert.h>
22101 #endif
22102
22103 #undef $ac_func
22104
22105 /* Override any gcc2 internal prototype to avoid an error.  */
22106 #ifdef __cplusplus
22107 extern "C"
22108 {
22109 #endif
22110 /* We use char because int might match the return type of a gcc2
22111    builtin and then its argument prototype would still apply.  */
22112 char $ac_func ();
22113 /* The GNU C library defines this for functions which it implements
22114     to always fail with ENOSYS.  Some functions are actually named
22115     something starting with __ and the normal name is an alias.  */
22116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22117 choke me
22118 #else
22119 char (*f) () = $ac_func;
22120 #endif
22121 #ifdef __cplusplus
22122 }
22123 #endif
22124
22125 int
22126 main ()
22127 {
22128 return f != $ac_func;
22129   ;
22130   return 0;
22131 }
22132 _ACEOF
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22135   (eval $ac_link) 2>conftest.er1
22136   ac_status=$?
22137   grep -v '^ *+' conftest.er1 >conftest.err
22138   rm -f conftest.er1
22139   cat conftest.err >&5
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } &&
22142          { ac_try='test -z "$ac_c_werror_flag"
22143                          || test ! -s conftest.err'
22144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145   (eval $ac_try) 2>&5
22146   ac_status=$?
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); }; } &&
22149          { ac_try='test -s conftest$ac_exeext'
22150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151   (eval $ac_try) 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); }; }; then
22155   eval "$as_ac_var=yes"
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 eval "$as_ac_var=no"
22161 fi
22162 rm -f conftest.err conftest.$ac_objext \
22163       conftest$ac_exeext conftest.$ac_ext
22164 fi
22165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22167 if test `eval echo '${'$as_ac_var'}'` = yes; then
22168   cat >>confdefs.h <<_ACEOF
22169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22170 _ACEOF
22171
22172 fi
22173 done
22174
22175 echo "$as_me:$LINENO: checking for working mmap" >&5
22176 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22177 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22178   echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180   if test "$cross_compiling" = yes; then
22181   ac_cv_func_mmap_fixed_mapped=no
22182 else
22183   cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189 $ac_includes_default
22190 /* malloc might have been renamed as rpl_malloc. */
22191 #undef malloc
22192
22193 /* Thanks to Mike Haertel and Jim Avera for this test.
22194    Here is a matrix of mmap possibilities:
22195         mmap private not fixed
22196         mmap private fixed at somewhere currently unmapped
22197         mmap private fixed at somewhere already mapped
22198         mmap shared not fixed
22199         mmap shared fixed at somewhere currently unmapped
22200         mmap shared fixed at somewhere already mapped
22201    For private mappings, we should verify that changes cannot be read()
22202    back from the file, nor mmap's back from the file at a different
22203    address.  (There have been systems where private was not correctly
22204    implemented like the infamous i386 svr4.0, and systems where the
22205    VM page cache was not coherent with the file system buffer cache
22206    like early versions of FreeBSD and possibly contemporary NetBSD.)
22207    For shared mappings, we should conversely verify that changes get
22208    propagated back to all the places they're supposed to be.
22209
22210    Grep wants private fixed already mapped.
22211    The main things grep needs to know about mmap are:
22212    * does it exist and is it safe to write into the mmap'd area
22213    * how to use it (BSD variants)  */
22214
22215 #include <fcntl.h>
22216 #include <sys/mman.h>
22217
22218 #if !STDC_HEADERS && !HAVE_STDLIB_H
22219 char *malloc ();
22220 #endif
22221
22222 /* This mess was copied from the GNU getpagesize.h.  */
22223 #if !HAVE_GETPAGESIZE
22224 /* Assume that all systems that can run configure have sys/param.h.  */
22225 # if !HAVE_SYS_PARAM_H
22226 #  define HAVE_SYS_PARAM_H 1
22227 # endif
22228
22229 # ifdef _SC_PAGESIZE
22230 #  define getpagesize() sysconf(_SC_PAGESIZE)
22231 # else /* no _SC_PAGESIZE */
22232 #  if HAVE_SYS_PARAM_H
22233 #   include <sys/param.h>
22234 #   ifdef EXEC_PAGESIZE
22235 #    define getpagesize() EXEC_PAGESIZE
22236 #   else /* no EXEC_PAGESIZE */
22237 #    ifdef NBPG
22238 #     define getpagesize() NBPG * CLSIZE
22239 #     ifndef CLSIZE
22240 #      define CLSIZE 1
22241 #     endif /* no CLSIZE */
22242 #    else /* no NBPG */
22243 #     ifdef NBPC
22244 #      define getpagesize() NBPC
22245 #     else /* no NBPC */
22246 #      ifdef PAGESIZE
22247 #       define getpagesize() PAGESIZE
22248 #      endif /* PAGESIZE */
22249 #     endif /* no NBPC */
22250 #    endif /* no NBPG */
22251 #   endif /* no EXEC_PAGESIZE */
22252 #  else /* no HAVE_SYS_PARAM_H */
22253 #   define getpagesize() 8192   /* punt totally */
22254 #  endif /* no HAVE_SYS_PARAM_H */
22255 # endif /* no _SC_PAGESIZE */
22256
22257 #endif /* no HAVE_GETPAGESIZE */
22258
22259 int
22260 main ()
22261 {
22262   char *data, *data2, *data3;
22263   int i, pagesize;
22264   int fd;
22265
22266   pagesize = getpagesize ();
22267
22268   /* First, make a file with some known garbage in it. */
22269   data = (char *) malloc (pagesize);
22270   if (!data)
22271     exit (1);
22272   for (i = 0; i < pagesize; ++i)
22273     *(data + i) = rand ();
22274   umask (0);
22275   fd = creat ("conftest.mmap", 0600);
22276   if (fd < 0)
22277     exit (1);
22278   if (write (fd, data, pagesize) != pagesize)
22279     exit (1);
22280   close (fd);
22281
22282   /* Next, try to mmap the file at a fixed address which already has
22283      something else allocated at it.  If we can, also make sure that
22284      we see the same garbage.  */
22285   fd = open ("conftest.mmap", O_RDWR);
22286   if (fd < 0)
22287     exit (1);
22288   data2 = (char *) malloc (2 * pagesize);
22289   if (!data2)
22290     exit (1);
22291   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22292   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22293                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22294     exit (1);
22295   for (i = 0; i < pagesize; ++i)
22296     if (*(data + i) != *(data2 + i))
22297       exit (1);
22298
22299   /* Finally, make sure that changes to the mapped area do not
22300      percolate back to the file as seen by read().  (This is a bug on
22301      some variants of i386 svr4.0.)  */
22302   for (i = 0; i < pagesize; ++i)
22303     *(data2 + i) = *(data2 + i) + 1;
22304   data3 = (char *) malloc (pagesize);
22305   if (!data3)
22306     exit (1);
22307   if (read (fd, data3, pagesize) != pagesize)
22308     exit (1);
22309   for (i = 0; i < pagesize; ++i)
22310     if (*(data + i) != *(data3 + i))
22311       exit (1);
22312   close (fd);
22313   exit (0);
22314 }
22315 _ACEOF
22316 rm -f conftest$ac_exeext
22317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22318   (eval $ac_link) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323   (eval $ac_try) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); }; }; then
22327   ac_cv_func_mmap_fixed_mapped=yes
22328 else
22329   echo "$as_me: program exited with status $ac_status" >&5
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333 ( exit $ac_status )
22334 ac_cv_func_mmap_fixed_mapped=no
22335 fi
22336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22337 fi
22338 fi
22339 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22340 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22342
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_MMAP 1
22345 _ACEOF
22346
22347 fi
22348 rm -f conftest.mmap
22349
22350
22351
22352 for ac_func in madvise mprotect
22353 do
22354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22355 echo "$as_me:$LINENO: checking for $ac_func" >&5
22356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22357 if eval "test \"\${$as_ac_var+set}\" = set"; then
22358   echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360   cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22368 #define $ac_func innocuous_$ac_func
22369
22370 /* System header to define __stub macros and hopefully few prototypes,
22371     which can conflict with char $ac_func (); below.
22372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22373     <limits.h> exists even on freestanding compilers.  */
22374
22375 #ifdef __STDC__
22376 # include <limits.h>
22377 #else
22378 # include <assert.h>
22379 #endif
22380
22381 #undef $ac_func
22382
22383 /* Override any gcc2 internal prototype to avoid an error.  */
22384 #ifdef __cplusplus
22385 extern "C"
22386 {
22387 #endif
22388 /* We use char because int might match the return type of a gcc2
22389    builtin and then its argument prototype would still apply.  */
22390 char $ac_func ();
22391 /* The GNU C library defines this for functions which it implements
22392     to always fail with ENOSYS.  Some functions are actually named
22393     something starting with __ and the normal name is an alias.  */
22394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22395 choke me
22396 #else
22397 char (*f) () = $ac_func;
22398 #endif
22399 #ifdef __cplusplus
22400 }
22401 #endif
22402
22403 int
22404 main ()
22405 {
22406 return f != $ac_func;
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22413   (eval $ac_link) 2>conftest.er1
22414   ac_status=$?
22415   grep -v '^ *+' conftest.er1 >conftest.err
22416   rm -f conftest.er1
22417   cat conftest.err >&5
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); } &&
22420          { ac_try='test -z "$ac_c_werror_flag"
22421                          || test ! -s conftest.err'
22422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423   (eval $ac_try) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; } &&
22427          { ac_try='test -s conftest$ac_exeext'
22428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429   (eval $ac_try) 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; }; then
22433   eval "$as_ac_var=yes"
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 eval "$as_ac_var=no"
22439 fi
22440 rm -f conftest.err conftest.$ac_objext \
22441       conftest$ac_exeext conftest.$ac_ext
22442 fi
22443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22445 if test `eval echo '${'$as_ac_var'}'` = yes; then
22446   cat >>confdefs.h <<_ACEOF
22447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22448 _ACEOF
22449
22450 fi
22451 done
22452
22453 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22454   true+yes )
22455 cat >>confdefs.h <<\_ACEOF
22456 #define USE_MMAP 1
22457 _ACEOF
22458  ;;
22459 esac
22460
22461 rm -f doc/config.status
22462                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22463
22464
22465           ac_config_commands="$ac_config_commands default"
22466
22467
22468
22469
22470
22471
22472
22473 cat >confcache <<\_ACEOF
22474 # This file is a shell script that caches the results of configure
22475 # tests run on this system so they can be shared between configure
22476 # scripts and configure runs, see configure's option --config-cache.
22477 # It is not useful on other systems.  If it contains results you don't
22478 # want to keep, you may remove or edit it.
22479 #
22480 # config.status only pays attention to the cache file if you give it
22481 # the --recheck option to rerun configure.
22482 #
22483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22485 # following values.
22486
22487 _ACEOF
22488
22489 # The following way of writing the cache mishandles newlines in values,
22490 # but we know of no workaround that is simple, portable, and efficient.
22491 # So, don't put newlines in cache variables' values.
22492 # Ultrix sh set writes to stderr and can't be redirected directly,
22493 # and sets the high bit in the cache file unless we assign to the vars.
22494 {
22495   (set) 2>&1 |
22496     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22497     *ac_space=\ *)
22498       # `set' does not quote correctly, so add quotes (double-quote
22499       # substitution turns \\\\ into \\, and sed turns \\ into \).
22500       sed -n \
22501         "s/'/'\\\\''/g;
22502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22503       ;;
22504     *)
22505       # `set' quotes correctly as required by POSIX, so do not add quotes.
22506       sed -n \
22507         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22508       ;;
22509     esac;
22510 } |
22511   sed '
22512      t clear
22513      : clear
22514      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22515      t end
22516      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22517      : end' >>confcache
22518 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22519   if test -w $cache_file; then
22520     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22521     cat confcache >$cache_file
22522   else
22523     echo "not updating unwritable cache $cache_file"
22524   fi
22525 fi
22526 rm -f confcache
22527
22528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22529 # Let make expand exec_prefix.
22530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22531
22532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22534 # trailing colons and then remove the whole line if VPATH becomes empty
22535 # (actually we leave an empty line to preserve line numbers).
22536 if test "x$srcdir" = x.; then
22537   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22538 s/:*\$(srcdir):*/:/;
22539 s/:*\${srcdir}:*/:/;
22540 s/:*@srcdir@:*/:/;
22541 s/^\([^=]*=[     ]*\):*/\1/;
22542 s/:*$//;
22543 s/^[^=]*=[       ]*$//;
22544 }'
22545 fi
22546
22547 DEFS=-DHAVE_CONFIG_H
22548
22549 ac_libobjs=
22550 ac_ltlibobjs=
22551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22552   # 1. Remove the extension, and $U if already installed.
22553   ac_i=`echo "$ac_i" |
22554          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22555   # 2. Add them.
22556   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22557   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22558 done
22559 LIBOBJS=$ac_libobjs
22560
22561 LTLIBOBJS=$ac_ltlibobjs
22562
22563
22564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22565   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22566 Usually this means the macro was only invoked conditionally." >&5
22567 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22568 Usually this means the macro was only invoked conditionally." >&2;}
22569    { (exit 1); exit 1; }; }
22570 fi
22571 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22572   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22573 Usually this means the macro was only invoked conditionally." >&5
22574 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22575 Usually this means the macro was only invoked conditionally." >&2;}
22576    { (exit 1); exit 1; }; }
22577 fi
22578 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
22579   { { echo "$as_me:$LINENO: error: conditional \"PLUGINS\" was never defined.
22580 Usually this means the macro was only invoked conditionally." >&5
22581 echo "$as_me: error: conditional \"PLUGINS\" was never defined.
22582 Usually this means the macro was only invoked conditionally." >&2;}
22583    { (exit 1); exit 1; }; }
22584 fi
22585 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22586   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22587 Usually this means the macro was only invoked conditionally." >&5
22588 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22589 Usually this means the macro was only invoked conditionally." >&2;}
22590    { (exit 1); exit 1; }; }
22591 fi
22592 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22593   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22594 Usually this means the macro was only invoked conditionally." >&5
22595 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22596 Usually this means the macro was only invoked conditionally." >&2;}
22597    { (exit 1); exit 1; }; }
22598 fi
22599 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22600   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22601 Usually this means the macro was only invoked conditionally." >&5
22602 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&2;}
22604    { (exit 1); exit 1; }; }
22605 fi
22606
22607 : ${CONFIG_STATUS=./config.status}
22608 ac_clean_files_save=$ac_clean_files
22609 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22610 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22611 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22612 cat >$CONFIG_STATUS <<_ACEOF
22613 #! $SHELL
22614 # Generated by $as_me.
22615 # Run this file to recreate the current configuration.
22616 # Compiler output produced by configure, useful for debugging
22617 # configure, is in config.log if it exists.
22618
22619 debug=false
22620 ac_cs_recheck=false
22621 ac_cs_silent=false
22622 SHELL=\${CONFIG_SHELL-$SHELL}
22623 _ACEOF
22624
22625 cat >>$CONFIG_STATUS <<\_ACEOF
22626 ## --------------------- ##
22627 ## M4sh Initialization.  ##
22628 ## --------------------- ##
22629
22630 # Be Bourne compatible
22631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22632   emulate sh
22633   NULLCMD=:
22634   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22635   # is contrary to our usage.  Disable this feature.
22636   alias -g '${1+"$@"}'='"$@"'
22637 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22638   set -o posix
22639 fi
22640 DUALCASE=1; export DUALCASE # for MKS sh
22641
22642 # Support unset when possible.
22643 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22644   as_unset=unset
22645 else
22646   as_unset=false
22647 fi
22648
22649
22650 # Work around bugs in pre-3.0 UWIN ksh.
22651 $as_unset ENV MAIL MAILPATH
22652 PS1='$ '
22653 PS2='> '
22654 PS4='+ '
22655
22656 # NLS nuisances.
22657 for as_var in \
22658   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22659   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22660   LC_TELEPHONE LC_TIME
22661 do
22662   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22663     eval $as_var=C; export $as_var
22664   else
22665     $as_unset $as_var
22666   fi
22667 done
22668
22669 # Required to use basename.
22670 if expr a : '\(a\)' >/dev/null 2>&1; then
22671   as_expr=expr
22672 else
22673   as_expr=false
22674 fi
22675
22676 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22677   as_basename=basename
22678 else
22679   as_basename=false
22680 fi
22681
22682
22683 # Name of the executable.
22684 as_me=`$as_basename "$0" ||
22685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22686          X"$0" : 'X\(//\)$' \| \
22687          X"$0" : 'X\(/\)$' \| \
22688          .     : '\(.\)' 2>/dev/null ||
22689 echo X/"$0" |
22690     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22691           /^X\/\(\/\/\)$/{ s//\1/; q; }
22692           /^X\/\(\/\).*/{ s//\1/; q; }
22693           s/.*/./; q'`
22694
22695
22696 # PATH needs CR, and LINENO needs CR and PATH.
22697 # Avoid depending upon Character Ranges.
22698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22701 as_cr_digits='0123456789'
22702 as_cr_alnum=$as_cr_Letters$as_cr_digits
22703
22704 # The user is always right.
22705 if test "${PATH_SEPARATOR+set}" != set; then
22706   echo "#! /bin/sh" >conf$$.sh
22707   echo  "exit 0"   >>conf$$.sh
22708   chmod +x conf$$.sh
22709   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22710     PATH_SEPARATOR=';'
22711   else
22712     PATH_SEPARATOR=:
22713   fi
22714   rm -f conf$$.sh
22715 fi
22716
22717
22718   as_lineno_1=$LINENO
22719   as_lineno_2=$LINENO
22720   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22721   test "x$as_lineno_1" != "x$as_lineno_2" &&
22722   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22723   # Find who we are.  Look in the path if we contain no path at all
22724   # relative or not.
22725   case $0 in
22726     *[\\/]* ) as_myself=$0 ;;
22727     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22728 for as_dir in $PATH
22729 do
22730   IFS=$as_save_IFS
22731   test -z "$as_dir" && as_dir=.
22732   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22733 done
22734
22735        ;;
22736   esac
22737   # We did not find ourselves, most probably we were run as `sh COMMAND'
22738   # in which case we are not to be found in the path.
22739   if test "x$as_myself" = x; then
22740     as_myself=$0
22741   fi
22742   if test ! -f "$as_myself"; then
22743     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22744 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22745    { (exit 1); exit 1; }; }
22746   fi
22747   case $CONFIG_SHELL in
22748   '')
22749     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22750 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22751 do
22752   IFS=$as_save_IFS
22753   test -z "$as_dir" && as_dir=.
22754   for as_base in sh bash ksh sh5; do
22755          case $as_dir in
22756          /*)
22757            if ("$as_dir/$as_base" -c '
22758   as_lineno_1=$LINENO
22759   as_lineno_2=$LINENO
22760   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22761   test "x$as_lineno_1" != "x$as_lineno_2" &&
22762   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22763              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22764              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22765              CONFIG_SHELL=$as_dir/$as_base
22766              export CONFIG_SHELL
22767              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22768            fi;;
22769          esac
22770        done
22771 done
22772 ;;
22773   esac
22774
22775   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22776   # uniformly replaced by the line number.  The first 'sed' inserts a
22777   # line-number line before each line; the second 'sed' does the real
22778   # work.  The second script uses 'N' to pair each line-number line
22779   # with the numbered line, and appends trailing '-' during
22780   # substitution so that $LINENO is not a special case at line end.
22781   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22782   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22783   sed '=' <$as_myself |
22784     sed '
22785       N
22786       s,$,-,
22787       : loop
22788       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22789       t loop
22790       s,-$,,
22791       s,^['$as_cr_digits']*\n,,
22792     ' >$as_me.lineno &&
22793   chmod +x $as_me.lineno ||
22794     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22795 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22796    { (exit 1); exit 1; }; }
22797
22798   # Don't try to exec as it changes $[0], causing all sort of problems
22799   # (the dirname of $[0] is not the place where we might find the
22800   # original and so on.  Autoconf is especially sensible to this).
22801   . ./$as_me.lineno
22802   # Exit status is that of the last command.
22803   exit
22804 }
22805
22806
22807 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22808   *c*,-n*) ECHO_N= ECHO_C='
22809 ' ECHO_T='      ' ;;
22810   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22811   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22812 esac
22813
22814 if expr a : '\(a\)' >/dev/null 2>&1; then
22815   as_expr=expr
22816 else
22817   as_expr=false
22818 fi
22819
22820 rm -f conf$$ conf$$.exe conf$$.file
22821 echo >conf$$.file
22822 if ln -s conf$$.file conf$$ 2>/dev/null; then
22823   # We could just check for DJGPP; but this test a) works b) is more generic
22824   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22825   if test -f conf$$.exe; then
22826     # Don't use ln at all; we don't have any links
22827     as_ln_s='cp -p'
22828   else
22829     as_ln_s='ln -s'
22830   fi
22831 elif ln conf$$.file conf$$ 2>/dev/null; then
22832   as_ln_s=ln
22833 else
22834   as_ln_s='cp -p'
22835 fi
22836 rm -f conf$$ conf$$.exe conf$$.file
22837
22838 if mkdir -p . 2>/dev/null; then
22839   as_mkdir_p=:
22840 else
22841   test -d ./-p && rmdir ./-p
22842   as_mkdir_p=false
22843 fi
22844
22845 as_executable_p="test -f"
22846
22847 # Sed expression to map a string onto a valid CPP name.
22848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22849
22850 # Sed expression to map a string onto a valid variable name.
22851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22852
22853
22854 # IFS
22855 # We need space, tab and new line, in precisely that order.
22856 as_nl='
22857 '
22858 IFS="   $as_nl"
22859
22860 # CDPATH.
22861 $as_unset CDPATH
22862
22863 exec 6>&1
22864
22865 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22866 # report actual input values of CONFIG_FILES etc. instead of their
22867 # values after options handling.  Logging --version etc. is OK.
22868 exec 5>>config.log
22869 {
22870   echo
22871   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22872 ## Running $as_me. ##
22873 _ASBOX
22874 } >&5
22875 cat >&5 <<_CSEOF
22876
22877 This file was extended by $as_me, which was
22878 generated by GNU Autoconf 2.59.  Invocation command line was
22879
22880   CONFIG_FILES    = $CONFIG_FILES
22881   CONFIG_HEADERS  = $CONFIG_HEADERS
22882   CONFIG_LINKS    = $CONFIG_LINKS
22883   CONFIG_COMMANDS = $CONFIG_COMMANDS
22884   $ $0 $@
22885
22886 _CSEOF
22887 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22888 echo >&5
22889 _ACEOF
22890
22891 # Files that config.status was made for.
22892 if test -n "$ac_config_files"; then
22893   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22894 fi
22895
22896 if test -n "$ac_config_headers"; then
22897   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22898 fi
22899
22900 if test -n "$ac_config_links"; then
22901   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22902 fi
22903
22904 if test -n "$ac_config_commands"; then
22905   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22906 fi
22907
22908 cat >>$CONFIG_STATUS <<\_ACEOF
22909
22910 ac_cs_usage="\
22911 \`$as_me' instantiates files from templates according to the
22912 current configuration.
22913
22914 Usage: $0 [OPTIONS] [FILE]...
22915
22916   -h, --help       print this help, then exit
22917   -V, --version    print version number, then exit
22918   -q, --quiet      do not print progress messages
22919   -d, --debug      don't remove temporary files
22920       --recheck    update $as_me by reconfiguring in the same conditions
22921   --file=FILE[:TEMPLATE]
22922                    instantiate the configuration file FILE
22923   --header=FILE[:TEMPLATE]
22924                    instantiate the configuration header FILE
22925
22926 Configuration files:
22927 $config_files
22928
22929 Configuration headers:
22930 $config_headers
22931
22932 Configuration commands:
22933 $config_commands
22934
22935 Report bugs to <bug-autoconf@gnu.org>."
22936 _ACEOF
22937
22938 cat >>$CONFIG_STATUS <<_ACEOF
22939 ac_cs_version="\\
22940 config.status
22941 configured by $0, generated by GNU Autoconf 2.59,
22942   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22943
22944 Copyright (C) 2003 Free Software Foundation, Inc.
22945 This config.status script is free software; the Free Software Foundation
22946 gives unlimited permission to copy, distribute and modify it."
22947 srcdir=$srcdir
22948 INSTALL="$INSTALL"
22949 _ACEOF
22950
22951 cat >>$CONFIG_STATUS <<\_ACEOF
22952 # If no file are specified by the user, then we need to provide default
22953 # value.  By we need to know if files were specified by the user.
22954 ac_need_defaults=:
22955 while test $# != 0
22956 do
22957   case $1 in
22958   --*=*)
22959     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22960     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22961     ac_shift=:
22962     ;;
22963   -*)
22964     ac_option=$1
22965     ac_optarg=$2
22966     ac_shift=shift
22967     ;;
22968   *) # This is not an option, so the user has probably given explicit
22969      # arguments.
22970      ac_option=$1
22971      ac_need_defaults=false;;
22972   esac
22973
22974   case $ac_option in
22975   # Handling of the options.
22976 _ACEOF
22977 cat >>$CONFIG_STATUS <<\_ACEOF
22978   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22979     ac_cs_recheck=: ;;
22980   --version | --vers* | -V )
22981     echo "$ac_cs_version"; exit 0 ;;
22982   --he | --h)
22983     # Conflict between --help and --header
22984     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22985 Try \`$0 --help' for more information." >&5
22986 echo "$as_me: error: ambiguous option: $1
22987 Try \`$0 --help' for more information." >&2;}
22988    { (exit 1); exit 1; }; };;
22989   --help | --hel | -h )
22990     echo "$ac_cs_usage"; exit 0 ;;
22991   --debug | --d* | -d )
22992     debug=: ;;
22993   --file | --fil | --fi | --f )
22994     $ac_shift
22995     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22996     ac_need_defaults=false;;
22997   --header | --heade | --head | --hea )
22998     $ac_shift
22999     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23000     ac_need_defaults=false;;
23001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23002   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23003     ac_cs_silent=: ;;
23004
23005   # This is an error.
23006   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23007 Try \`$0 --help' for more information." >&5
23008 echo "$as_me: error: unrecognized option: $1
23009 Try \`$0 --help' for more information." >&2;}
23010    { (exit 1); exit 1; }; } ;;
23011
23012   *) ac_config_targets="$ac_config_targets $1" ;;
23013
23014   esac
23015   shift
23016 done
23017
23018 ac_configure_extra_args=
23019
23020 if $ac_cs_silent; then
23021   exec 6>/dev/null
23022   ac_configure_extra_args="$ac_configure_extra_args --silent"
23023 fi
23024
23025 _ACEOF
23026 cat >>$CONFIG_STATUS <<_ACEOF
23027 if \$ac_cs_recheck; then
23028   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23029   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23030 fi
23031
23032 _ACEOF
23033
23034 cat >>$CONFIG_STATUS <<_ACEOF
23035 #
23036 # INIT-COMMANDS section.
23037 #
23038
23039 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23040
23041
23042 # The HP-UX ksh and POSIX shell print the target directory to stdout
23043 # if CDPATH is set.
23044 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23045
23046 sed_quote_subst='$sed_quote_subst'
23047 double_quote_subst='$double_quote_subst'
23048 delay_variable_subst='$delay_variable_subst'
23049 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23050 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23051 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23052 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23053 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23054 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23055 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23056 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23057 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23058 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23059 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23060 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23061 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23062 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23063 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23064 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23065 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23066 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23067 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23068 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23069 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23070 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23071 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23072 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23073 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23074 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23075 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23076 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23077 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23078 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23079 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23080 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23081 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23082 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23083 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23084 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23085 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23086 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23087 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23088 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23089 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23090 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23091 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23092 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23093 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"`'
23094 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23095 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23096 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23097 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23098 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23099 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23100 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23101 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23102 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23103 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23104 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23105 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23106 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23107 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23108 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23109 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23110 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23111 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23112 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23113 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23114 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23115 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23116 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23117 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23118 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23119 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23120 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23121 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23122 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23123 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23124 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23125 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23126 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23127 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23128 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23129 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23130 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23131 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23132 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23133 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23134 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23135 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23136 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23137 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23138 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23139 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23140 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23141 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23142 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23143 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23144 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23145 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23146 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23147 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23148 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23149 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23150 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23151 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23152 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23153 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23154 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23155 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23156 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23157 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23158 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23159 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23160 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23161 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23162 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23163 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23164 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23165 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23166 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23167
23168 LTCC='$LTCC'
23169 LTCFLAGS='$LTCFLAGS'
23170 compiler='$compiler_DEFAULT'
23171
23172 # Quote evaled strings.
23173 for var in SED \
23174 GREP \
23175 EGREP \
23176 FGREP \
23177 LD \
23178 NM \
23179 LN_S \
23180 lt_SP2NL \
23181 lt_NL2SP \
23182 reload_flag \
23183 OBJDUMP \
23184 deplibs_check_method \
23185 file_magic_cmd \
23186 AR \
23187 AR_FLAGS \
23188 STRIP \
23189 RANLIB \
23190 CC \
23191 CFLAGS \
23192 compiler \
23193 lt_cv_sys_global_symbol_pipe \
23194 lt_cv_sys_global_symbol_to_cdecl \
23195 lt_cv_sys_global_symbol_to_c_name_address \
23196 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23197 SHELL \
23198 ECHO \
23199 lt_prog_compiler_no_builtin_flag \
23200 lt_prog_compiler_wl \
23201 lt_prog_compiler_pic \
23202 lt_prog_compiler_static \
23203 lt_cv_prog_compiler_c_o \
23204 need_locks \
23205 DSYMUTIL \
23206 NMEDIT \
23207 LIPO \
23208 OTOOL \
23209 OTOOL64 \
23210 shrext_cmds \
23211 export_dynamic_flag_spec \
23212 whole_archive_flag_spec \
23213 compiler_needs_object \
23214 with_gnu_ld \
23215 allow_undefined_flag \
23216 no_undefined_flag \
23217 hardcode_libdir_flag_spec \
23218 hardcode_libdir_flag_spec_ld \
23219 hardcode_libdir_separator \
23220 fix_srcfile_path \
23221 exclude_expsyms \
23222 include_expsyms \
23223 file_list_spec \
23224 variables_saved_for_relink \
23225 libname_spec \
23226 library_names_spec \
23227 soname_spec \
23228 finish_eval \
23229 old_striplib \
23230 striplib; do
23231     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23232     *[\\\\\\\`\\"\\\$]*)
23233       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23234       ;;
23235     *)
23236       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23237       ;;
23238     esac
23239 done
23240
23241 # Double-quote double-evaled strings.
23242 for var in reload_cmds \
23243 old_postinstall_cmds \
23244 old_postuninstall_cmds \
23245 old_archive_cmds \
23246 extract_expsyms_cmds \
23247 old_archive_from_new_cmds \
23248 old_archive_from_expsyms_cmds \
23249 archive_cmds \
23250 archive_expsym_cmds \
23251 module_cmds \
23252 module_expsym_cmds \
23253 export_symbols_cmds \
23254 prelink_cmds \
23255 postinstall_cmds \
23256 postuninstall_cmds \
23257 finish_cmds \
23258 sys_lib_search_path_spec \
23259 sys_lib_dlsearch_path_spec; do
23260     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23261     *[\\\\\\\`\\"\\\$]*)
23262       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23263       ;;
23264     *)
23265       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23266       ;;
23267     esac
23268 done
23269
23270 # Fix-up fallback echo if it was mangled by the above quoting rules.
23271 case \$lt_ECHO in
23272 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23273   ;;
23274 esac
23275
23276 ac_aux_dir='$ac_aux_dir'
23277 xsi_shell='$xsi_shell'
23278 lt_shell_append='$lt_shell_append'
23279
23280 # See if we are running on zsh, and set the options which allow our
23281 # commands through without removal of \ escapes INIT.
23282 if test -n "\${ZSH_VERSION+set}" ; then
23283    setopt NO_GLOB_SUBST
23284 fi
23285
23286
23287     PACKAGE='$PACKAGE'
23288     VERSION='$VERSION'
23289     TIMESTAMP='$TIMESTAMP'
23290     RM='$RM'
23291     ofile='$ofile'
23292
23293
23294
23295 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23296     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23297     # from automake.
23298     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23299     # Capture the value of LINGUAS because we need it to compute CATALOGS.
23300     LINGUAS="${LINGUAS-%UNSET%}"
23301
23302
23303 GCC="$GCC"
23304 CC="$CC"
23305 acx_cv_header_stdint="$acx_cv_header_stdint"
23306 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23307 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23308 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23309 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23310 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23311 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23312 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23313 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23314 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23315 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23316 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23317 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23318 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23319
23320
23321
23322 _ACEOF
23323
23324
23325
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23327 for ac_config_target in $ac_config_targets
23328 do
23329   case "$ac_config_target" in
23330   # Handling of arguments.
23331   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23332   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23333   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23334   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23335   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23336   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23337   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23338   "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23339   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23340   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23341   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23343    { (exit 1); exit 1; }; };;
23344   esac
23345 done
23346
23347 # If the user did not use the arguments to specify the items to instantiate,
23348 # then the envvar interface is used.  Set only those that are not.
23349 # We use the long form for the default assignment because of an extremely
23350 # bizarre bug on SunOS 4.1.3.
23351 if $ac_need_defaults; then
23352   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23353   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23355 fi
23356
23357 # Have a temporary directory for convenience.  Make it in the build tree
23358 # simply because there is no reason to put it here, and in addition,
23359 # creating and moving files from /tmp can sometimes cause problems.
23360 # Create a temporary directory, and hook for its removal unless debugging.
23361 $debug ||
23362 {
23363   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23364   trap '{ (exit 1); exit 1; }' 1 2 13 15
23365 }
23366
23367 # Create a (secure) tmp directory for tmp files.
23368
23369 {
23370   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23371   test -n "$tmp" && test -d "$tmp"
23372 }  ||
23373 {
23374   tmp=./confstat$$-$RANDOM
23375   (umask 077 && mkdir $tmp)
23376 } ||
23377 {
23378    echo "$me: cannot create a temporary directory in ." >&2
23379    { (exit 1); exit 1; }
23380 }
23381
23382 _ACEOF
23383
23384 cat >>$CONFIG_STATUS <<_ACEOF
23385
23386 #
23387 # CONFIG_FILES section.
23388 #
23389
23390 # No need to generate the scripts if there are no CONFIG_FILES.
23391 # This happens for instance when ./config.status config.h
23392 if test -n "\$CONFIG_FILES"; then
23393   # Protect against being on the right side of a sed subst in config.status.
23394   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23395    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23396 s,@SHELL@,$SHELL,;t t
23397 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23398 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23399 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23400 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23401 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23402 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23403 s,@exec_prefix@,$exec_prefix,;t t
23404 s,@prefix@,$prefix,;t t
23405 s,@program_transform_name@,$program_transform_name,;t t
23406 s,@bindir@,$bindir,;t t
23407 s,@sbindir@,$sbindir,;t t
23408 s,@libexecdir@,$libexecdir,;t t
23409 s,@datadir@,$datadir,;t t
23410 s,@sysconfdir@,$sysconfdir,;t t
23411 s,@sharedstatedir@,$sharedstatedir,;t t
23412 s,@localstatedir@,$localstatedir,;t t
23413 s,@libdir@,$libdir,;t t
23414 s,@includedir@,$includedir,;t t
23415 s,@oldincludedir@,$oldincludedir,;t t
23416 s,@infodir@,$infodir,;t t
23417 s,@mandir@,$mandir,;t t
23418 s,@build_alias@,$build_alias,;t t
23419 s,@host_alias@,$host_alias,;t t
23420 s,@target_alias@,$target_alias,;t t
23421 s,@DEFS@,$DEFS,;t t
23422 s,@ECHO_C@,$ECHO_C,;t t
23423 s,@ECHO_N@,$ECHO_N,;t t
23424 s,@ECHO_T@,$ECHO_T,;t t
23425 s,@LIBS@,$LIBS,;t t
23426 s,@build@,$build,;t t
23427 s,@build_cpu@,$build_cpu,;t t
23428 s,@build_vendor@,$build_vendor,;t t
23429 s,@build_os@,$build_os,;t t
23430 s,@host@,$host,;t t
23431 s,@host_cpu@,$host_cpu,;t t
23432 s,@host_vendor@,$host_vendor,;t t
23433 s,@host_os@,$host_os,;t t
23434 s,@target@,$target,;t t
23435 s,@target_cpu@,$target_cpu,;t t
23436 s,@target_vendor@,$target_vendor,;t t
23437 s,@target_os@,$target_os,;t t
23438 s,@CC@,$CC,;t t
23439 s,@CFLAGS@,$CFLAGS,;t t
23440 s,@LDFLAGS@,$LDFLAGS,;t t
23441 s,@CPPFLAGS@,$CPPFLAGS,;t t
23442 s,@ac_ct_CC@,$ac_ct_CC,;t t
23443 s,@EXEEXT@,$EXEEXT,;t t
23444 s,@OBJEXT@,$OBJEXT,;t t
23445 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23446 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23447 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23448 s,@CYGPATH_W@,$CYGPATH_W,;t t
23449 s,@PACKAGE@,$PACKAGE,;t t
23450 s,@VERSION@,$VERSION,;t t
23451 s,@ACLOCAL@,$ACLOCAL,;t t
23452 s,@AUTOCONF@,$AUTOCONF,;t t
23453 s,@AUTOMAKE@,$AUTOMAKE,;t t
23454 s,@AUTOHEADER@,$AUTOHEADER,;t t
23455 s,@MAKEINFO@,$MAKEINFO,;t t
23456 s,@install_sh@,$install_sh,;t t
23457 s,@STRIP@,$STRIP,;t t
23458 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23459 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23460 s,@mkdir_p@,$mkdir_p,;t t
23461 s,@AWK@,$AWK,;t t
23462 s,@SET_MAKE@,$SET_MAKE,;t t
23463 s,@am__leading_dot@,$am__leading_dot,;t t
23464 s,@AMTAR@,$AMTAR,;t t
23465 s,@am__tar@,$am__tar,;t t
23466 s,@am__untar@,$am__untar,;t t
23467 s,@DEPDIR@,$DEPDIR,;t t
23468 s,@am__include@,$am__include,;t t
23469 s,@am__quote@,$am__quote,;t t
23470 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23471 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23472 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23473 s,@CCDEPMODE@,$CCDEPMODE,;t t
23474 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23475 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23476 s,@AR@,$AR,;t t
23477 s,@ac_ct_AR@,$ac_ct_AR,;t t
23478 s,@RANLIB@,$RANLIB,;t t
23479 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23480 s,@CPP@,$CPP,;t t
23481 s,@EGREP@,$EGREP,;t t
23482 s,@LIBTOOL@,$LIBTOOL,;t t
23483 s,@SED@,$SED,;t t
23484 s,@FGREP@,$FGREP,;t t
23485 s,@GREP@,$GREP,;t t
23486 s,@LD@,$LD,;t t
23487 s,@DUMPBIN@,$DUMPBIN,;t t
23488 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23489 s,@NM@,$NM,;t t
23490 s,@LN_S@,$LN_S,;t t
23491 s,@OBJDUMP@,$OBJDUMP,;t t
23492 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23493 s,@lt_ECHO@,$lt_ECHO,;t t
23494 s,@DSYMUTIL@,$DSYMUTIL,;t t
23495 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23496 s,@NMEDIT@,$NMEDIT,;t t
23497 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23498 s,@LIPO@,$LIPO,;t t
23499 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23500 s,@OTOOL@,$OTOOL,;t t
23501 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23502 s,@OTOOL64@,$OTOOL64,;t t
23503 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23504 s,@PLUGINS_TRUE@,$PLUGINS_TRUE,;t t
23505 s,@PLUGINS_FALSE@,$PLUGINS_FALSE,;t t
23506 s,@DEBUGDIR@,$DEBUGDIR,;t t
23507 s,@PKGVERSION@,$PKGVERSION,;t t
23508 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23509 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23510 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23511 s,@NO_WERROR@,$NO_WERROR,;t t
23512 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23513 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23514 s,@MAINT@,$MAINT,;t t
23515 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23516 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23517 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23518 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23519 s,@host_noncanonical@,$host_noncanonical,;t t
23520 s,@target_noncanonical@,$target_noncanonical,;t t
23521 s,@bfdlibdir@,$bfdlibdir,;t t
23522 s,@bfdincludedir@,$bfdincludedir,;t t
23523 s,@USE_NLS@,$USE_NLS,;t t
23524 s,@LIBINTL@,$LIBINTL,;t t
23525 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23526 s,@INCINTL@,$INCINTL,;t t
23527 s,@XGETTEXT@,$XGETTEXT,;t t
23528 s,@GMSGFMT@,$GMSGFMT,;t t
23529 s,@POSUB@,$POSUB,;t t
23530 s,@CATALOGS@,$CATALOGS,;t t
23531 s,@DATADIRNAME@,$DATADIRNAME,;t t
23532 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23533 s,@GENCAT@,$GENCAT,;t t
23534 s,@CATOBJEXT@,$CATOBJEXT,;t t
23535 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23536 s,@MSGFMT@,$MSGFMT,;t t
23537 s,@MSGMERGE@,$MSGMERGE,;t t
23538 s,@HDEFINES@,$HDEFINES,;t t
23539 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23540 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23541 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23542 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23543 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23544 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23545 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23546 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23547 s,@COREFILE@,$COREFILE,;t t
23548 s,@COREFLAG@,$COREFLAG,;t t
23549 s,@LIBM@,$LIBM,;t t
23550 s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
23551 s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
23552 s,@TDEFINES@,$TDEFINES,;t t
23553 s,@wordsize@,$wordsize,;t t
23554 s,@bfd64_libs@,$bfd64_libs,;t t
23555 s,@all_backends@,$all_backends,;t t
23556 s,@bfd_backends@,$bfd_backends,;t t
23557 s,@bfd_machines@,$bfd_machines,;t t
23558 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23559 s,@supports_plugins@,$supports_plugins,;t t
23560 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23561 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23562 s,@tdefaults@,$tdefaults,;t t
23563 s,@datarootdir@,$datarootdir,;t t
23564 s,@docdir@,$docdir,;t t
23565 s,@htmldir@,$htmldir,;t t
23566 s,@pdfdir@,$pdfdir,;t t
23567 s,@LIBOBJS@,$LIBOBJS,;t t
23568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23569 CEOF
23570
23571 _ACEOF
23572
23573   cat >>$CONFIG_STATUS <<\_ACEOF
23574   # Split the substitutions into bite-sized pieces for seds with
23575   # small command number limits, like on Digital OSF/1 and HP-UX.
23576   ac_max_sed_lines=48
23577   ac_sed_frag=1 # Number of current file.
23578   ac_beg=1 # First line for current file.
23579   ac_end=$ac_max_sed_lines # Line after last line for current file.
23580   ac_more_lines=:
23581   ac_sed_cmds=
23582   while $ac_more_lines; do
23583     if test $ac_beg -gt 1; then
23584       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23585     else
23586       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23587     fi
23588     if test ! -s $tmp/subs.frag; then
23589       ac_more_lines=false
23590     else
23591       # The purpose of the label and of the branching condition is to
23592       # speed up the sed processing (if there are no `@' at all, there
23593       # is no need to browse any of the substitutions).
23594       # These are the two extra sed commands mentioned above.
23595       (echo ':t
23596   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23597       if test -z "$ac_sed_cmds"; then
23598         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23599       else
23600         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23601       fi
23602       ac_sed_frag=`expr $ac_sed_frag + 1`
23603       ac_beg=$ac_end
23604       ac_end=`expr $ac_end + $ac_max_sed_lines`
23605     fi
23606   done
23607   if test -z "$ac_sed_cmds"; then
23608     ac_sed_cmds=cat
23609   fi
23610 fi # test -n "$CONFIG_FILES"
23611
23612 _ACEOF
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23614 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23615   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23616   case $ac_file in
23617   - | *:- | *:-:* ) # input from stdin
23618         cat >$tmp/stdin
23619         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23620         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23621   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23623   * )   ac_file_in=$ac_file.in ;;
23624   esac
23625
23626   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23627   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23629          X"$ac_file" : 'X\(//\)[^/]' \| \
23630          X"$ac_file" : 'X\(//\)$' \| \
23631          X"$ac_file" : 'X\(/\)' \| \
23632          .     : '\(.\)' 2>/dev/null ||
23633 echo X"$ac_file" |
23634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23636           /^X\(\/\/\)$/{ s//\1/; q; }
23637           /^X\(\/\).*/{ s//\1/; q; }
23638           s/.*/./; q'`
23639   { if $as_mkdir_p; then
23640     mkdir -p "$ac_dir"
23641   else
23642     as_dir="$ac_dir"
23643     as_dirs=
23644     while test ! -d "$as_dir"; do
23645       as_dirs="$as_dir $as_dirs"
23646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23648          X"$as_dir" : 'X\(//\)[^/]' \| \
23649          X"$as_dir" : 'X\(//\)$' \| \
23650          X"$as_dir" : 'X\(/\)' \| \
23651          .     : '\(.\)' 2>/dev/null ||
23652 echo X"$as_dir" |
23653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23655           /^X\(\/\/\)$/{ s//\1/; q; }
23656           /^X\(\/\).*/{ s//\1/; q; }
23657           s/.*/./; q'`
23658     done
23659     test ! -n "$as_dirs" || mkdir $as_dirs
23660   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23662    { (exit 1); exit 1; }; }; }
23663
23664   ac_builddir=.
23665
23666 if test "$ac_dir" != .; then
23667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23668   # A "../" for each directory in $ac_dir_suffix.
23669   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23670 else
23671   ac_dir_suffix= ac_top_builddir=
23672 fi
23673
23674 case $srcdir in
23675   .)  # No --srcdir option.  We are building in place.
23676     ac_srcdir=.
23677     if test -z "$ac_top_builddir"; then
23678        ac_top_srcdir=.
23679     else
23680        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23681     fi ;;
23682   [\\/]* | ?:[\\/]* )  # Absolute path.
23683     ac_srcdir=$srcdir$ac_dir_suffix;
23684     ac_top_srcdir=$srcdir ;;
23685   *) # Relative path.
23686     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23687     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23688 esac
23689
23690 # Do not use `cd foo && pwd` to compute absolute paths, because
23691 # the directories may not exist.
23692 case `pwd` in
23693 .) ac_abs_builddir="$ac_dir";;
23694 *)
23695   case "$ac_dir" in
23696   .) ac_abs_builddir=`pwd`;;
23697   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23698   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23699   esac;;
23700 esac
23701 case $ac_abs_builddir in
23702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23703 *)
23704   case ${ac_top_builddir}. in
23705   .) ac_abs_top_builddir=$ac_abs_builddir;;
23706   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23707   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23708   esac;;
23709 esac
23710 case $ac_abs_builddir in
23711 .) ac_abs_srcdir=$ac_srcdir;;
23712 *)
23713   case $ac_srcdir in
23714   .) ac_abs_srcdir=$ac_abs_builddir;;
23715   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23716   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23717   esac;;
23718 esac
23719 case $ac_abs_builddir in
23720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23721 *)
23722   case $ac_top_srcdir in
23723   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23724   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23725   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23726   esac;;
23727 esac
23728
23729
23730   case $INSTALL in
23731   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23732   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23733   esac
23734
23735   if test x"$ac_file" != x-; then
23736     { echo "$as_me:$LINENO: creating $ac_file" >&5
23737 echo "$as_me: creating $ac_file" >&6;}
23738     rm -f "$ac_file"
23739   fi
23740   # Let's still pretend it is `configure' which instantiates (i.e., don't
23741   # use $as_me), people would be surprised to read:
23742   #    /* config.h.  Generated by config.status.  */
23743   if test x"$ac_file" = x-; then
23744     configure_input=
23745   else
23746     configure_input="$ac_file.  "
23747   fi
23748   configure_input=$configure_input"Generated from `echo $ac_file_in |
23749                                      sed 's,.*/,,'` by configure."
23750
23751   # First look for the input files in the build tree, otherwise in the
23752   # src tree.
23753   ac_file_inputs=`IFS=:
23754     for f in $ac_file_in; do
23755       case $f in
23756       -) echo $tmp/stdin ;;
23757       [\\/$]*)
23758          # Absolute (can't be DOS-style, as IFS=:)
23759          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23760 echo "$as_me: error: cannot find input file: $f" >&2;}
23761    { (exit 1); exit 1; }; }
23762          echo "$f";;
23763       *) # Relative
23764          if test -f "$f"; then
23765            # Build tree
23766            echo "$f"
23767          elif test -f "$srcdir/$f"; then
23768            # Source tree
23769            echo "$srcdir/$f"
23770          else
23771            # /dev/null tree
23772            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23773 echo "$as_me: error: cannot find input file: $f" >&2;}
23774    { (exit 1); exit 1; }; }
23775          fi;;
23776       esac
23777     done` || { (exit 1); exit 1; }
23778 _ACEOF
23779 cat >>$CONFIG_STATUS <<_ACEOF
23780   sed "$ac_vpsub
23781 $extrasub
23782 _ACEOF
23783 cat >>$CONFIG_STATUS <<\_ACEOF
23784 :t
23785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23786 s,@configure_input@,$configure_input,;t t
23787 s,@srcdir@,$ac_srcdir,;t t
23788 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23789 s,@top_srcdir@,$ac_top_srcdir,;t t
23790 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23791 s,@builddir@,$ac_builddir,;t t
23792 s,@abs_builddir@,$ac_abs_builddir,;t t
23793 s,@top_builddir@,$ac_top_builddir,;t t
23794 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23795 s,@INSTALL@,$ac_INSTALL,;t t
23796 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23797   rm -f $tmp/stdin
23798   if test x"$ac_file" != x-; then
23799     mv $tmp/out $ac_file
23800   else
23801     cat $tmp/out
23802     rm -f $tmp/out
23803   fi
23804
23805 done
23806 _ACEOF
23807 cat >>$CONFIG_STATUS <<\_ACEOF
23808
23809 #
23810 # CONFIG_HEADER section.
23811 #
23812
23813 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23814 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23815 #
23816 # ac_d sets the value in "#define NAME VALUE" lines.
23817 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23818 ac_dB='[         ].*$,\1#\2'
23819 ac_dC=' '
23820 ac_dD=',;t'
23821 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23822 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23823 ac_uB='$,\1#\2define\3'
23824 ac_uC=' '
23825 ac_uD=',;t'
23826
23827 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23828   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23829   case $ac_file in
23830   - | *:- | *:-:* ) # input from stdin
23831         cat >$tmp/stdin
23832         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23833         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23834   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23835         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23836   * )   ac_file_in=$ac_file.in ;;
23837   esac
23838
23839   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23840 echo "$as_me: creating $ac_file" >&6;}
23841
23842   # First look for the input files in the build tree, otherwise in the
23843   # src tree.
23844   ac_file_inputs=`IFS=:
23845     for f in $ac_file_in; do
23846       case $f in
23847       -) echo $tmp/stdin ;;
23848       [\\/$]*)
23849          # Absolute (can't be DOS-style, as IFS=:)
23850          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23851 echo "$as_me: error: cannot find input file: $f" >&2;}
23852    { (exit 1); exit 1; }; }
23853          # Do quote $f, to prevent DOS paths from being IFS'd.
23854          echo "$f";;
23855       *) # Relative
23856          if test -f "$f"; then
23857            # Build tree
23858            echo "$f"
23859          elif test -f "$srcdir/$f"; then
23860            # Source tree
23861            echo "$srcdir/$f"
23862          else
23863            # /dev/null tree
23864            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23865 echo "$as_me: error: cannot find input file: $f" >&2;}
23866    { (exit 1); exit 1; }; }
23867          fi;;
23868       esac
23869     done` || { (exit 1); exit 1; }
23870   # Remove the trailing spaces.
23871   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23872
23873 _ACEOF
23874
23875 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23876 # `conftest.undefs', that substitutes the proper values into
23877 # config.h.in to produce config.h.  The first handles `#define'
23878 # templates, and the second `#undef' templates.
23879 # And first: Protect against being on the right side of a sed subst in
23880 # config.status.  Protect against being in an unquoted here document
23881 # in config.status.
23882 rm -f conftest.defines conftest.undefs
23883 # Using a here document instead of a string reduces the quoting nightmare.
23884 # Putting comments in sed scripts is not portable.
23885 #
23886 # `end' is used to avoid that the second main sed command (meant for
23887 # 0-ary CPP macros) applies to n-ary macro definitions.
23888 # See the Autoconf documentation for `clear'.
23889 cat >confdef2sed.sed <<\_ACEOF
23890 s/[\\&,]/\\&/g
23891 s,[\\$`],\\&,g
23892 t clear
23893 : clear
23894 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23895 t end
23896 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23897 : end
23898 _ACEOF
23899 # If some macros were called several times there might be several times
23900 # the same #defines, which is useless.  Nevertheless, we may not want to
23901 # sort them, since we want the *last* AC-DEFINE to be honored.
23902 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23903 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23904 rm -f confdef2sed.sed
23905
23906 # This sed command replaces #undef with comments.  This is necessary, for
23907 # example, in the case of _POSIX_SOURCE, which is predefined and required
23908 # on some systems where configure will not decide to define it.
23909 cat >>conftest.undefs <<\_ACEOF
23910 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23911 _ACEOF
23912
23913 # Break up conftest.defines because some shells have a limit on the size
23914 # of here documents, and old seds have small limits too (100 cmds).
23915 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23916 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23917 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23918 echo '  :' >>$CONFIG_STATUS
23919 rm -f conftest.tail
23920 while grep . conftest.defines >/dev/null
23921 do
23922   # Write a limited-size here document to $tmp/defines.sed.
23923   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23924   # Speed up: don't consider the non `#define' lines.
23925   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23926   # Work around the forget-to-reset-the-flag bug.
23927   echo 't clr' >>$CONFIG_STATUS
23928   echo ': clr' >>$CONFIG_STATUS
23929   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23930   echo 'CEOF
23931   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23932   rm -f $tmp/in
23933   mv $tmp/out $tmp/in
23934 ' >>$CONFIG_STATUS
23935   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23936   rm -f conftest.defines
23937   mv conftest.tail conftest.defines
23938 done
23939 rm -f conftest.defines
23940 echo '  fi # grep' >>$CONFIG_STATUS
23941 echo >>$CONFIG_STATUS
23942
23943 # Break up conftest.undefs because some shells have a limit on the size
23944 # of here documents, and old seds have small limits too (100 cmds).
23945 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23946 rm -f conftest.tail
23947 while grep . conftest.undefs >/dev/null
23948 do
23949   # Write a limited-size here document to $tmp/undefs.sed.
23950   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23951   # Speed up: don't consider the non `#undef'
23952   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23953   # Work around the forget-to-reset-the-flag bug.
23954   echo 't clr' >>$CONFIG_STATUS
23955   echo ': clr' >>$CONFIG_STATUS
23956   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23957   echo 'CEOF
23958   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23959   rm -f $tmp/in
23960   mv $tmp/out $tmp/in
23961 ' >>$CONFIG_STATUS
23962   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23963   rm -f conftest.undefs
23964   mv conftest.tail conftest.undefs
23965 done
23966 rm -f conftest.undefs
23967
23968 cat >>$CONFIG_STATUS <<\_ACEOF
23969   # Let's still pretend it is `configure' which instantiates (i.e., don't
23970   # use $as_me), people would be surprised to read:
23971   #    /* config.h.  Generated by config.status.  */
23972   if test x"$ac_file" = x-; then
23973     echo "/* Generated by configure.  */" >$tmp/config.h
23974   else
23975     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23976   fi
23977   cat $tmp/in >>$tmp/config.h
23978   rm -f $tmp/in
23979   if test x"$ac_file" != x-; then
23980     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23981       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23982 echo "$as_me: $ac_file is unchanged" >&6;}
23983     else
23984       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23986          X"$ac_file" : 'X\(//\)[^/]' \| \
23987          X"$ac_file" : 'X\(//\)$' \| \
23988          X"$ac_file" : 'X\(/\)' \| \
23989          .     : '\(.\)' 2>/dev/null ||
23990 echo X"$ac_file" |
23991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23993           /^X\(\/\/\)$/{ s//\1/; q; }
23994           /^X\(\/\).*/{ s//\1/; q; }
23995           s/.*/./; q'`
23996       { if $as_mkdir_p; then
23997     mkdir -p "$ac_dir"
23998   else
23999     as_dir="$ac_dir"
24000     as_dirs=
24001     while test ! -d "$as_dir"; do
24002       as_dirs="$as_dir $as_dirs"
24003       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24005          X"$as_dir" : 'X\(//\)[^/]' \| \
24006          X"$as_dir" : 'X\(//\)$' \| \
24007          X"$as_dir" : 'X\(/\)' \| \
24008          .     : '\(.\)' 2>/dev/null ||
24009 echo X"$as_dir" |
24010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24012           /^X\(\/\/\)$/{ s//\1/; q; }
24013           /^X\(\/\).*/{ s//\1/; q; }
24014           s/.*/./; q'`
24015     done
24016     test ! -n "$as_dirs" || mkdir $as_dirs
24017   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24019    { (exit 1); exit 1; }; }; }
24020
24021       rm -f $ac_file
24022       mv $tmp/config.h $ac_file
24023     fi
24024   else
24025     cat $tmp/config.h
24026     rm -f $tmp/config.h
24027   fi
24028 # Compute $ac_file's index in $config_headers.
24029 _am_stamp_count=1
24030 for _am_header in $config_headers :; do
24031   case $_am_header in
24032     $ac_file | $ac_file:* )
24033       break ;;
24034     * )
24035       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24036   esac
24037 done
24038 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24039 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24040          X$ac_file : 'X\(//\)[^/]' \| \
24041          X$ac_file : 'X\(//\)$' \| \
24042          X$ac_file : 'X\(/\)' \| \
24043          .     : '\(.\)' 2>/dev/null ||
24044 echo X$ac_file |
24045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24047           /^X\(\/\/\)$/{ s//\1/; q; }
24048           /^X\(\/\).*/{ s//\1/; q; }
24049           s/.*/./; q'`/stamp-h$_am_stamp_count
24050 done
24051 _ACEOF
24052 cat >>$CONFIG_STATUS <<\_ACEOF
24053
24054 #
24055 # CONFIG_COMMANDS section.
24056 #
24057 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24058   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24059   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24060   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24061 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24062          X"$ac_dest" : 'X\(//\)[^/]' \| \
24063          X"$ac_dest" : 'X\(//\)$' \| \
24064          X"$ac_dest" : 'X\(/\)' \| \
24065          .     : '\(.\)' 2>/dev/null ||
24066 echo X"$ac_dest" |
24067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24069           /^X\(\/\/\)$/{ s//\1/; q; }
24070           /^X\(\/\).*/{ s//\1/; q; }
24071           s/.*/./; q'`
24072   { if $as_mkdir_p; then
24073     mkdir -p "$ac_dir"
24074   else
24075     as_dir="$ac_dir"
24076     as_dirs=
24077     while test ! -d "$as_dir"; do
24078       as_dirs="$as_dir $as_dirs"
24079       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24081          X"$as_dir" : 'X\(//\)[^/]' \| \
24082          X"$as_dir" : 'X\(//\)$' \| \
24083          X"$as_dir" : 'X\(/\)' \| \
24084          .     : '\(.\)' 2>/dev/null ||
24085 echo X"$as_dir" |
24086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24088           /^X\(\/\/\)$/{ s//\1/; q; }
24089           /^X\(\/\).*/{ s//\1/; q; }
24090           s/.*/./; q'`
24091     done
24092     test ! -n "$as_dirs" || mkdir $as_dirs
24093   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24095    { (exit 1); exit 1; }; }; }
24096
24097   ac_builddir=.
24098
24099 if test "$ac_dir" != .; then
24100   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24101   # A "../" for each directory in $ac_dir_suffix.
24102   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24103 else
24104   ac_dir_suffix= ac_top_builddir=
24105 fi
24106
24107 case $srcdir in
24108   .)  # No --srcdir option.  We are building in place.
24109     ac_srcdir=.
24110     if test -z "$ac_top_builddir"; then
24111        ac_top_srcdir=.
24112     else
24113        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24114     fi ;;
24115   [\\/]* | ?:[\\/]* )  # Absolute path.
24116     ac_srcdir=$srcdir$ac_dir_suffix;
24117     ac_top_srcdir=$srcdir ;;
24118   *) # Relative path.
24119     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24120     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24121 esac
24122
24123 # Do not use `cd foo && pwd` to compute absolute paths, because
24124 # the directories may not exist.
24125 case `pwd` in
24126 .) ac_abs_builddir="$ac_dir";;
24127 *)
24128   case "$ac_dir" in
24129   .) ac_abs_builddir=`pwd`;;
24130   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24131   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24132   esac;;
24133 esac
24134 case $ac_abs_builddir in
24135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24136 *)
24137   case ${ac_top_builddir}. in
24138   .) ac_abs_top_builddir=$ac_abs_builddir;;
24139   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24140   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24141   esac;;
24142 esac
24143 case $ac_abs_builddir in
24144 .) ac_abs_srcdir=$ac_srcdir;;
24145 *)
24146   case $ac_srcdir in
24147   .) ac_abs_srcdir=$ac_abs_builddir;;
24148   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24149   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24150   esac;;
24151 esac
24152 case $ac_abs_builddir in
24153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24154 *)
24155   case $ac_top_srcdir in
24156   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24157   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24158   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24159   esac;;
24160 esac
24161
24162
24163   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24164 echo "$as_me: executing $ac_dest commands" >&6;}
24165   case $ac_dest in
24166     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24167   # Strip MF so we end up with the name of the file.
24168   mf=`echo "$mf" | sed -e 's/:.*$//'`
24169   # Check whether this is an Automake generated Makefile or not.
24170   # We used to match only the files named `Makefile.in', but
24171   # some people rename them; so instead we look at the file content.
24172   # Grep'ing the first line is not enough: some people post-process
24173   # each Makefile.in and add a new line on top of each file to say so.
24174   # So let's grep whole file.
24175   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24176     dirpart=`(dirname "$mf") 2>/dev/null ||
24177 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178          X"$mf" : 'X\(//\)[^/]' \| \
24179          X"$mf" : 'X\(//\)$' \| \
24180          X"$mf" : 'X\(/\)' \| \
24181          .     : '\(.\)' 2>/dev/null ||
24182 echo X"$mf" |
24183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185           /^X\(\/\/\)$/{ s//\1/; q; }
24186           /^X\(\/\).*/{ s//\1/; q; }
24187           s/.*/./; q'`
24188   else
24189     continue
24190   fi
24191   # Extract the definition of DEPDIR, am__include, and am__quote
24192   # from the Makefile without running `make'.
24193   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24194   test -z "$DEPDIR" && continue
24195   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24196   test -z "am__include" && continue
24197   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24198   # When using ansi2knr, U may be empty or an underscore; expand it
24199   U=`sed -n 's/^U = //p' < "$mf"`
24200   # Find all dependency output files, they are included files with
24201   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24202   # simplest approach to changing $(DEPDIR) to its actual value in the
24203   # expansion.
24204   for file in `sed -n "
24205     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24206        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24207     # Make sure the directory exists.
24208     test -f "$dirpart/$file" && continue
24209     fdir=`(dirname "$file") 2>/dev/null ||
24210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211          X"$file" : 'X\(//\)[^/]' \| \
24212          X"$file" : 'X\(//\)$' \| \
24213          X"$file" : 'X\(/\)' \| \
24214          .     : '\(.\)' 2>/dev/null ||
24215 echo X"$file" |
24216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24218           /^X\(\/\/\)$/{ s//\1/; q; }
24219           /^X\(\/\).*/{ s//\1/; q; }
24220           s/.*/./; q'`
24221     { if $as_mkdir_p; then
24222     mkdir -p $dirpart/$fdir
24223   else
24224     as_dir=$dirpart/$fdir
24225     as_dirs=
24226     while test ! -d "$as_dir"; do
24227       as_dirs="$as_dir $as_dirs"
24228       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24230          X"$as_dir" : 'X\(//\)[^/]' \| \
24231          X"$as_dir" : 'X\(//\)$' \| \
24232          X"$as_dir" : 'X\(/\)' \| \
24233          .     : '\(.\)' 2>/dev/null ||
24234 echo X"$as_dir" |
24235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24236           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24237           /^X\(\/\/\)$/{ s//\1/; q; }
24238           /^X\(\/\).*/{ s//\1/; q; }
24239           s/.*/./; q'`
24240     done
24241     test ! -n "$as_dirs" || mkdir $as_dirs
24242   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24243 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24244    { (exit 1); exit 1; }; }; }
24245
24246     # echo "creating $dirpart/$file"
24247     echo '# dummy' > "$dirpart/$file"
24248   done
24249 done
24250  ;;
24251     libtool )
24252
24253     # See if we are running on zsh, and set the options which allow our
24254     # commands through without removal of \ escapes.
24255     if test -n "${ZSH_VERSION+set}" ; then
24256       setopt NO_GLOB_SUBST
24257     fi
24258
24259     cfgfile="${ofile}T"
24260     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24261     $RM "$cfgfile"
24262
24263     cat <<_LT_EOF >> "$cfgfile"
24264 #! $SHELL
24265
24266 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24267 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24269 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24270 #
24271 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24272 #                 2006, 2007, 2008 Free Software Foundation, Inc.
24273 #   Written by Gordon Matzigkeit, 1996
24274 #
24275 #   This file is part of GNU Libtool.
24276 #
24277 # GNU Libtool is free software; you can redistribute it and/or
24278 # modify it under the terms of the GNU General Public License as
24279 # published by the Free Software Foundation; either version 2 of
24280 # the License, or (at your option) any later version.
24281 #
24282 # As a special exception to the GNU General Public License,
24283 # if you distribute this file as part of a program or library that
24284 # is built using GNU Libtool, you may include this file under the
24285 # same distribution terms that you use for the rest of that program.
24286 #
24287 # GNU Libtool is distributed in the hope that it will be useful,
24288 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24290 # GNU General Public License for more details.
24291 #
24292 # You should have received a copy of the GNU General Public License
24293 # along with GNU Libtool; see the file COPYING.  If not, a copy
24294 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24295 # obtained by writing to the Free Software Foundation, Inc.,
24296 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24297
24298
24299 # The names of the tagged configurations supported by this script.
24300 available_tags=""
24301
24302 # ### BEGIN LIBTOOL CONFIG
24303
24304 # Whether or not to build shared libraries.
24305 build_libtool_libs=$enable_shared
24306
24307 # Which release of libtool.m4 was used?
24308 macro_version=$macro_version
24309 macro_revision=$macro_revision
24310
24311 # Whether or not to build static libraries.
24312 build_old_libs=$enable_static
24313
24314 # What type of objects to build.
24315 pic_mode=$pic_mode
24316
24317 # Whether or not to optimize for fast installation.
24318 fast_install=$enable_fast_install
24319
24320 # The host system.
24321 host_alias=$host_alias
24322 host=$host
24323 host_os=$host_os
24324
24325 # The build system.
24326 build_alias=$build_alias
24327 build=$build
24328 build_os=$build_os
24329
24330 # A sed program that does not truncate output.
24331 SED=$lt_SED
24332
24333 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24334 Xsed="\$SED -e 1s/^X//"
24335
24336 # A grep program that handles long lines.
24337 GREP=$lt_GREP
24338
24339 # An ERE matcher.
24340 EGREP=$lt_EGREP
24341
24342 # A literal string matcher.
24343 FGREP=$lt_FGREP
24344
24345 # A BSD- or MS-compatible name lister.
24346 NM=$lt_NM
24347
24348 # Whether we need soft or hard links.
24349 LN_S=$lt_LN_S
24350
24351 # What is the maximum length of a command?
24352 max_cmd_len=$max_cmd_len
24353
24354 # Object file suffix (normally "o").
24355 objext=$ac_objext
24356
24357 # Executable file suffix (normally "").
24358 exeext=$exeext
24359
24360 # whether the shell understands "unset".
24361 lt_unset=$lt_unset
24362
24363 # turn spaces into newlines.
24364 SP2NL=$lt_lt_SP2NL
24365
24366 # turn newlines into spaces.
24367 NL2SP=$lt_lt_NL2SP
24368
24369 # How to create reloadable object files.
24370 reload_flag=$lt_reload_flag
24371 reload_cmds=$lt_reload_cmds
24372
24373 # An object symbol dumper.
24374 OBJDUMP=$lt_OBJDUMP
24375
24376 # Method to check whether dependent libraries are shared objects.
24377 deplibs_check_method=$lt_deplibs_check_method
24378
24379 # Command to use when deplibs_check_method == "file_magic".
24380 file_magic_cmd=$lt_file_magic_cmd
24381
24382 # The archiver.
24383 AR=$lt_AR
24384 AR_FLAGS=$lt_AR_FLAGS
24385
24386 # A symbol stripping program.
24387 STRIP=$lt_STRIP
24388
24389 # Commands used to install an old-style archive.
24390 RANLIB=$lt_RANLIB
24391 old_postinstall_cmds=$lt_old_postinstall_cmds
24392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24393
24394 # A C compiler.
24395 LTCC=$lt_CC
24396
24397 # LTCC compiler flags.
24398 LTCFLAGS=$lt_CFLAGS
24399
24400 # Take the output of nm and produce a listing of raw symbols and C names.
24401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24402
24403 # Transform the output of nm in a proper C declaration.
24404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24405
24406 # Transform the output of nm in a C name address pair.
24407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24408
24409 # Transform the output of nm in a C name address pair when lib prefix is needed.
24410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24411
24412 # The name of the directory that contains temporary libtool files.
24413 objdir=$objdir
24414
24415 # Shell to use when invoking shell scripts.
24416 SHELL=$lt_SHELL
24417
24418 # An echo program that does not interpret backslashes.
24419 ECHO=$lt_ECHO
24420
24421 # Used to examine libraries when file_magic_cmd begins with "file".
24422 MAGIC_CMD=$MAGIC_CMD
24423
24424 # Must we lock files when doing compilation?
24425 need_locks=$lt_need_locks
24426
24427 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24428 DSYMUTIL=$lt_DSYMUTIL
24429
24430 # Tool to change global to local symbols on Mac OS X.
24431 NMEDIT=$lt_NMEDIT
24432
24433 # Tool to manipulate fat objects and archives on Mac OS X.
24434 LIPO=$lt_LIPO
24435
24436 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24437 OTOOL=$lt_OTOOL
24438
24439 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24440 OTOOL64=$lt_OTOOL64
24441
24442 # Old archive suffix (normally "a").
24443 libext=$libext
24444
24445 # Shared library suffix (normally ".so").
24446 shrext_cmds=$lt_shrext_cmds
24447
24448 # The commands to extract the exported symbol list from a shared archive.
24449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24450
24451 # Variables whose values should be saved in libtool wrapper scripts and
24452 # restored at link time.
24453 variables_saved_for_relink=$lt_variables_saved_for_relink
24454
24455 # Do we need the "lib" prefix for modules?
24456 need_lib_prefix=$need_lib_prefix
24457
24458 # Do we need a version for libraries?
24459 need_version=$need_version
24460
24461 # Library versioning type.
24462 version_type=$version_type
24463
24464 # Shared library runtime path variable.
24465 runpath_var=$runpath_var
24466
24467 # Shared library path variable.
24468 shlibpath_var=$shlibpath_var
24469
24470 # Is shlibpath searched before the hard-coded library search path?
24471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24472
24473 # Format of library name prefix.
24474 libname_spec=$lt_libname_spec
24475
24476 # List of archive names.  First name is the real one, the rest are links.
24477 # The last name is the one that the linker finds with -lNAME
24478 library_names_spec=$lt_library_names_spec
24479
24480 # The coded name of the library, if different from the real name.
24481 soname_spec=$lt_soname_spec
24482
24483 # Command to use after installation of a shared archive.
24484 postinstall_cmds=$lt_postinstall_cmds
24485
24486 # Command to use after uninstallation of a shared archive.
24487 postuninstall_cmds=$lt_postuninstall_cmds
24488
24489 # Commands used to finish a libtool library installation in a directory.
24490 finish_cmds=$lt_finish_cmds
24491
24492 # As "finish_cmds", except a single script fragment to be evaled but
24493 # not shown.
24494 finish_eval=$lt_finish_eval
24495
24496 # Whether we should hardcode library paths into libraries.
24497 hardcode_into_libs=$hardcode_into_libs
24498
24499 # Compile-time system search path for libraries.
24500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24501
24502 # Run-time system search path for libraries.
24503 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24504
24505 # Whether dlopen is supported.
24506 dlopen_support=$enable_dlopen
24507
24508 # Whether dlopen of programs is supported.
24509 dlopen_self=$enable_dlopen_self
24510
24511 # Whether dlopen of statically linked programs is supported.
24512 dlopen_self_static=$enable_dlopen_self_static
24513
24514 # Commands to strip libraries.
24515 old_striplib=$lt_old_striplib
24516 striplib=$lt_striplib
24517
24518
24519 # The linker used to build libraries.
24520 LD=$lt_LD
24521
24522 # Commands used to build an old-style archive.
24523 old_archive_cmds=$lt_old_archive_cmds
24524
24525 # A language specific compiler.
24526 CC=$lt_compiler
24527
24528 # Is the compiler the GNU compiler?
24529 with_gcc=$GCC
24530
24531 # Compiler flag to turn off builtin functions.
24532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24533
24534 # How to pass a linker flag through the compiler.
24535 wl=$lt_lt_prog_compiler_wl
24536
24537 # Additional compiler flags for building library objects.
24538 pic_flag=$lt_lt_prog_compiler_pic
24539
24540 # Compiler flag to prevent dynamic linking.
24541 link_static_flag=$lt_lt_prog_compiler_static
24542
24543 # Does compiler simultaneously support -c and -o options?
24544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24545
24546 # Whether or not to add -lc for building shared libraries.
24547 build_libtool_need_lc=$archive_cmds_need_lc
24548
24549 # Whether or not to disallow shared libs when runtime libs are static.
24550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24551
24552 # Compiler flag to allow reflexive dlopens.
24553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24554
24555 # Compiler flag to generate shared objects directly from archives.
24556 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24557
24558 # Whether the compiler copes with passing no objects directly.
24559 compiler_needs_object=$lt_compiler_needs_object
24560
24561 # Create an old-style archive from a shared archive.
24562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24563
24564 # Create a temporary old-style archive to link instead of a shared archive.
24565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24566
24567 # Commands used to build a shared archive.
24568 archive_cmds=$lt_archive_cmds
24569 archive_expsym_cmds=$lt_archive_expsym_cmds
24570
24571 # Commands used to build a loadable module if different from building
24572 # a shared archive.
24573 module_cmds=$lt_module_cmds
24574 module_expsym_cmds=$lt_module_expsym_cmds
24575
24576 # Whether we are building with GNU ld or not.
24577 with_gnu_ld=$lt_with_gnu_ld
24578
24579 # Flag that allows shared libraries with undefined symbols to be built.
24580 allow_undefined_flag=$lt_allow_undefined_flag
24581
24582 # Flag that enforces no undefined symbols.
24583 no_undefined_flag=$lt_no_undefined_flag
24584
24585 # Flag to hardcode \$libdir into a binary during linking.
24586 # This must work even if \$libdir does not exist
24587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24588
24589 # If ld is used when linking, flag to hardcode \$libdir into a binary
24590 # during linking.  This must work even if \$libdir does not exist.
24591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24592
24593 # Whether we need a single "-rpath" flag with a separated argument.
24594 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24595
24596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24597 # DIR into the resulting binary.
24598 hardcode_direct=$hardcode_direct
24599
24600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24601 # DIR into the resulting binary and the resulting library dependency is
24602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24603 # library is relocated.
24604 hardcode_direct_absolute=$hardcode_direct_absolute
24605
24606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24607 # into the resulting binary.
24608 hardcode_minus_L=$hardcode_minus_L
24609
24610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24611 # into the resulting binary.
24612 hardcode_shlibpath_var=$hardcode_shlibpath_var
24613
24614 # Set to "yes" if building a shared library automatically hardcodes DIR
24615 # into the library and all subsequent libraries and executables linked
24616 # against it.
24617 hardcode_automatic=$hardcode_automatic
24618
24619 # Set to yes if linker adds runtime paths of dependent libraries
24620 # to runtime path list.
24621 inherit_rpath=$inherit_rpath
24622
24623 # Whether libtool must link a program against all its dependency libraries.
24624 link_all_deplibs=$link_all_deplibs
24625
24626 # Fix the shell variable \$srcfile for the compiler.
24627 fix_srcfile_path=$lt_fix_srcfile_path
24628
24629 # Set to "yes" if exported symbols are required.
24630 always_export_symbols=$always_export_symbols
24631
24632 # The commands to list exported symbols.
24633 export_symbols_cmds=$lt_export_symbols_cmds
24634
24635 # Symbols that should not be listed in the preloaded symbols.
24636 exclude_expsyms=$lt_exclude_expsyms
24637
24638 # Symbols that must always be exported.
24639 include_expsyms=$lt_include_expsyms
24640
24641 # Commands necessary for linking programs (against libraries) with templates.
24642 prelink_cmds=$lt_prelink_cmds
24643
24644 # Specify filename containing input files.
24645 file_list_spec=$lt_file_list_spec
24646
24647 # How to hardcode a shared library path into an executable.
24648 hardcode_action=$hardcode_action
24649
24650 # ### END LIBTOOL CONFIG
24651
24652 _LT_EOF
24653
24654   case $host_os in
24655   aix3*)
24656     cat <<\_LT_EOF >> "$cfgfile"
24657 # AIX sometimes has problems with the GCC collect2 program.  For some
24658 # reason, if we set the COLLECT_NAMES environment variable, the problems
24659 # vanish in a puff of smoke.
24660 if test "X${COLLECT_NAMES+set}" != Xset; then
24661   COLLECT_NAMES=
24662   export COLLECT_NAMES
24663 fi
24664 _LT_EOF
24665     ;;
24666   esac
24667
24668
24669 ltmain="$ac_aux_dir/ltmain.sh"
24670
24671
24672   # We use sed instead of cat because bash on DJGPP gets confused if
24673   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24674   # text mode, it properly converts lines to CR/LF.  This bash problem
24675   # is reportedly fixed, but why not run on old versions too?
24676   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24677     || (rm -f "$cfgfile"; exit 1)
24678
24679   case $xsi_shell in
24680   yes)
24681     cat << \_LT_EOF >> "$cfgfile"
24682
24683 # func_dirname file append nondir_replacement
24684 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24685 # otherwise set result to NONDIR_REPLACEMENT.
24686 func_dirname ()
24687 {
24688   case ${1} in
24689     */*) func_dirname_result="${1%/*}${2}" ;;
24690     *  ) func_dirname_result="${3}" ;;
24691   esac
24692 }
24693
24694 # func_basename file
24695 func_basename ()
24696 {
24697   func_basename_result="${1##*/}"
24698 }
24699
24700 # func_dirname_and_basename file append nondir_replacement
24701 # perform func_basename and func_dirname in a single function
24702 # call:
24703 #   dirname:  Compute the dirname of FILE.  If nonempty,
24704 #             add APPEND to the result, otherwise set result
24705 #             to NONDIR_REPLACEMENT.
24706 #             value returned in "$func_dirname_result"
24707 #   basename: Compute filename of FILE.
24708 #             value retuned in "$func_basename_result"
24709 # Implementation must be kept synchronized with func_dirname
24710 # and func_basename. For efficiency, we do not delegate to
24711 # those functions but instead duplicate the functionality here.
24712 func_dirname_and_basename ()
24713 {
24714   case ${1} in
24715     */*) func_dirname_result="${1%/*}${2}" ;;
24716     *  ) func_dirname_result="${3}" ;;
24717   esac
24718   func_basename_result="${1##*/}"
24719 }
24720
24721 # func_stripname prefix suffix name
24722 # strip PREFIX and SUFFIX off of NAME.
24723 # PREFIX and SUFFIX must not contain globbing or regex special
24724 # characters, hashes, percent signs, but SUFFIX may contain a leading
24725 # dot (in which case that matches only a dot).
24726 func_stripname ()
24727 {
24728   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24729   # positional parameters, so assign one to ordinary parameter first.
24730   func_stripname_result=${3}
24731   func_stripname_result=${func_stripname_result#"${1}"}
24732   func_stripname_result=${func_stripname_result%"${2}"}
24733 }
24734
24735 # func_opt_split
24736 func_opt_split ()
24737 {
24738   func_opt_split_opt=${1%%=*}
24739   func_opt_split_arg=${1#*=}
24740 }
24741
24742 # func_lo2o object
24743 func_lo2o ()
24744 {
24745   case ${1} in
24746     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24747     *)    func_lo2o_result=${1} ;;
24748   esac
24749 }
24750
24751 # func_xform libobj-or-source
24752 func_xform ()
24753 {
24754   func_xform_result=${1%.*}.lo
24755 }
24756
24757 # func_arith arithmetic-term...
24758 func_arith ()
24759 {
24760   func_arith_result=$(( $* ))
24761 }
24762
24763 # func_len string
24764 # STRING may not start with a hyphen.
24765 func_len ()
24766 {
24767   func_len_result=${#1}
24768 }
24769
24770 _LT_EOF
24771     ;;
24772   *) # Bourne compatible functions.
24773     cat << \_LT_EOF >> "$cfgfile"
24774
24775 # func_dirname file append nondir_replacement
24776 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24777 # otherwise set result to NONDIR_REPLACEMENT.
24778 func_dirname ()
24779 {
24780   # Extract subdirectory from the argument.
24781   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24782   if test "X$func_dirname_result" = "X${1}"; then
24783     func_dirname_result="${3}"
24784   else
24785     func_dirname_result="$func_dirname_result${2}"
24786   fi
24787 }
24788
24789 # func_basename file
24790 func_basename ()
24791 {
24792   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24793 }
24794
24795
24796 # func_stripname prefix suffix name
24797 # strip PREFIX and SUFFIX off of NAME.
24798 # PREFIX and SUFFIX must not contain globbing or regex special
24799 # characters, hashes, percent signs, but SUFFIX may contain a leading
24800 # dot (in which case that matches only a dot).
24801 # func_strip_suffix prefix name
24802 func_stripname ()
24803 {
24804   case ${2} in
24805     .*) func_stripname_result=`$ECHO "X${3}" \
24806            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24807     *)  func_stripname_result=`$ECHO "X${3}" \
24808            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24809   esac
24810 }
24811
24812 # sed scripts:
24813 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24814 my_sed_long_arg='1s/^-[^=]*=//'
24815
24816 # func_opt_split
24817 func_opt_split ()
24818 {
24819   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24820   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24821 }
24822
24823 # func_lo2o object
24824 func_lo2o ()
24825 {
24826   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24827 }
24828
24829 # func_xform libobj-or-source
24830 func_xform ()
24831 {
24832   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24833 }
24834
24835 # func_arith arithmetic-term...
24836 func_arith ()
24837 {
24838   func_arith_result=`expr "$@"`
24839 }
24840
24841 # func_len string
24842 # STRING may not start with a hyphen.
24843 func_len ()
24844 {
24845   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24846 }
24847
24848 _LT_EOF
24849 esac
24850
24851 case $lt_shell_append in
24852   yes)
24853     cat << \_LT_EOF >> "$cfgfile"
24854
24855 # func_append var value
24856 # Append VALUE to the end of shell variable VAR.
24857 func_append ()
24858 {
24859   eval "$1+=\$2"
24860 }
24861 _LT_EOF
24862     ;;
24863   *)
24864     cat << \_LT_EOF >> "$cfgfile"
24865
24866 # func_append var value
24867 # Append VALUE to the end of shell variable VAR.
24868 func_append ()
24869 {
24870   eval "$1=\$$1\$2"
24871 }
24872
24873 _LT_EOF
24874     ;;
24875   esac
24876
24877
24878   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24879     || (rm -f "$cfgfile"; exit 1)
24880
24881   mv -f "$cfgfile" "$ofile" ||
24882     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24883   chmod +x "$ofile"
24884
24885  ;;
24886     default-1 )
24887     for ac_file in $CONFIG_FILES; do
24888       # Support "outfile[:infile[:infile...]]"
24889       case "$ac_file" in
24890         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24891       esac
24892       # PO directories have a Makefile.in generated from Makefile.in.in.
24893       case "$ac_file" in */Makefile.in)
24894         # Adjust a relative srcdir.
24895         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24896         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24897         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24898         # In autoconf-2.13 it is called $ac_given_srcdir.
24899         # In autoconf-2.50 it is called $srcdir.
24900         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24901         case "$ac_given_srcdir" in
24902           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24903           /*) top_srcdir="$ac_given_srcdir" ;;
24904           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24905         esac
24906         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24907           rm -f "$ac_dir/POTFILES"
24908           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24909           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24910           POMAKEFILEDEPS="POTFILES.in"
24911           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24912           # on $ac_dir but don't depend on user-specified configuration
24913           # parameters.
24914           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24915             # The LINGUAS file contains the set of available languages.
24916             if test -n "$OBSOLETE_ALL_LINGUAS"; then
24917               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24918             fi
24919             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24920             # Hide the ALL_LINGUAS assigment from automake.
24921             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24922             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24923           else
24924             # The set of available languages was given in configure.in.
24925             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24926           fi
24927           case "$ac_given_srcdir" in
24928             .) srcdirpre= ;;
24929             *) srcdirpre='$(srcdir)/' ;;
24930           esac
24931           POFILES=
24932           GMOFILES=
24933           UPDATEPOFILES=
24934           DUMMYPOFILES=
24935           for lang in $ALL_LINGUAS; do
24936             POFILES="$POFILES $srcdirpre$lang.po"
24937             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24938             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24939             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24940           done
24941           # CATALOGS depends on both $ac_dir and the user's LINGUAS
24942           # environment variable.
24943           INST_LINGUAS=
24944           if test -n "$ALL_LINGUAS"; then
24945             for presentlang in $ALL_LINGUAS; do
24946               useit=no
24947               if test "%UNSET%" != "$LINGUAS"; then
24948                 desiredlanguages="$LINGUAS"
24949               else
24950                 desiredlanguages="$ALL_LINGUAS"
24951               fi
24952               for desiredlang in $desiredlanguages; do
24953                 # Use the presentlang catalog if desiredlang is
24954                 #   a. equal to presentlang, or
24955                 #   b. a variant of presentlang (because in this case,
24956                 #      presentlang can be used as a fallback for messages
24957                 #      which are not translated in the desiredlang catalog).
24958                 case "$desiredlang" in
24959                   "$presentlang"*) useit=yes;;
24960                 esac
24961               done
24962               if test $useit = yes; then
24963                 INST_LINGUAS="$INST_LINGUAS $presentlang"
24964               fi
24965             done
24966           fi
24967           CATALOGS=
24968           if test -n "$INST_LINGUAS"; then
24969             for lang in $INST_LINGUAS; do
24970               CATALOGS="$CATALOGS $lang.gmo"
24971             done
24972           fi
24973           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24974           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24975           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24976             if test -f "$f"; then
24977               case "$f" in
24978                 *.orig | *.bak | *~) ;;
24979                 *) cat "$f" >> "$ac_dir/Makefile" ;;
24980               esac
24981             fi
24982           done
24983         fi
24984         ;;
24985       esac
24986     done ;;
24987     bfd_stdint.h )
24988 if test "$GCC" = yes; then
24989   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24990 else
24991   echo "/* generated for $CC */" > tmp-stdint.h
24992 fi
24993
24994 sed 's/^ *//' >> tmp-stdint.h <<EOF
24995
24996   #ifndef GCC_GENERATED_STDINT_H
24997   #define GCC_GENERATED_STDINT_H 1
24998
24999   #include <sys/types.h>
25000 EOF
25001
25002 if test "$acx_cv_header_stdint" != stdint.h; then
25003   echo "#include <stddef.h>" >> tmp-stdint.h
25004 fi
25005 if test "$acx_cv_header_stdint" != stddef.h; then
25006   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25007 fi
25008
25009 sed 's/^ *//' >> tmp-stdint.h <<EOF
25010   /* glibc uses these symbols as guards to prevent redefinitions.  */
25011   #ifdef __int8_t_defined
25012   #define _INT8_T
25013   #define _INT16_T
25014   #define _INT32_T
25015   #endif
25016   #ifdef __uint32_t_defined
25017   #define _UINT32_T
25018   #endif
25019
25020 EOF
25021
25022 # ----------------- done header, emit basic int types -------------
25023 if test "$acx_cv_header_stdint" = stddef.h; then
25024   sed 's/^ *//' >> tmp-stdint.h <<EOF
25025
25026     #ifndef _UINT8_T
25027     #define _UINT8_T
25028     #ifndef __uint8_t_defined
25029     #define __uint8_t_defined
25030     typedef unsigned $acx_cv_type_int8_t uint8_t;
25031     #endif
25032     #endif
25033
25034     #ifndef _UINT16_T
25035     #define _UINT16_T
25036     #ifndef __uint16_t_defined
25037     #define __uint16_t_defined
25038     typedef unsigned $acx_cv_type_int16_t uint16_t;
25039     #endif
25040     #endif
25041
25042     #ifndef _UINT32_T
25043     #define _UINT32_T
25044     #ifndef __uint32_t_defined
25045     #define __uint32_t_defined
25046     typedef unsigned $acx_cv_type_int32_t uint32_t;
25047     #endif
25048     #endif
25049
25050     #ifndef _INT8_T
25051     #define _INT8_T
25052     #ifndef __int8_t_defined
25053     #define __int8_t_defined
25054     typedef $acx_cv_type_int8_t int8_t;
25055     #endif
25056     #endif
25057
25058     #ifndef _INT16_T
25059     #define _INT16_T
25060     #ifndef __int16_t_defined
25061     #define __int16_t_defined
25062     typedef $acx_cv_type_int16_t int16_t;
25063     #endif
25064     #endif
25065
25066     #ifndef _INT32_T
25067     #define _INT32_T
25068     #ifndef __int32_t_defined
25069     #define __int32_t_defined
25070     typedef $acx_cv_type_int32_t int32_t;
25071     #endif
25072     #endif
25073 EOF
25074 elif test "$ac_cv_type_u_int32_t" = yes; then
25075   sed 's/^ *//' >> tmp-stdint.h <<EOF
25076
25077     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25078     #ifndef _INT8_T
25079     #define _INT8_T
25080     #endif
25081     #ifndef _INT16_T
25082     #define _INT16_T
25083     #endif
25084     #ifndef _INT32_T
25085     #define _INT32_T
25086     #endif
25087
25088     #ifndef _UINT8_T
25089     #define _UINT8_T
25090     #ifndef __uint8_t_defined
25091     #define __uint8_t_defined
25092     typedef u_int8_t uint8_t;
25093     #endif
25094     #endif
25095
25096     #ifndef _UINT16_T
25097     #define _UINT16_T
25098     #ifndef __uint16_t_defined
25099     #define __uint16_t_defined
25100     typedef u_int16_t uint16_t;
25101     #endif
25102     #endif
25103
25104     #ifndef _UINT32_T
25105     #define _UINT32_T
25106     #ifndef __uint32_t_defined
25107     #define __uint32_t_defined
25108     typedef u_int32_t uint32_t;
25109     #endif
25110     #endif
25111 EOF
25112 else
25113   sed 's/^ *//' >> tmp-stdint.h <<EOF
25114
25115     /* Some systems have guard macros to prevent redefinitions, define them.  */
25116     #ifndef _INT8_T
25117     #define _INT8_T
25118     #endif
25119     #ifndef _INT16_T
25120     #define _INT16_T
25121     #endif
25122     #ifndef _INT32_T
25123     #define _INT32_T
25124     #endif
25125     #ifndef _UINT8_T
25126     #define _UINT8_T
25127     #endif
25128     #ifndef _UINT16_T
25129     #define _UINT16_T
25130     #endif
25131     #ifndef _UINT32_T
25132     #define _UINT32_T
25133     #endif
25134 EOF
25135 fi
25136
25137 # ------------- done basic int types, emit int64_t types ------------
25138 if test "$ac_cv_type_uint64_t" = yes; then
25139   sed 's/^ *//' >> tmp-stdint.h <<EOF
25140
25141     /* system headers have good uint64_t and int64_t */
25142     #ifndef _INT64_T
25143     #define _INT64_T
25144     #endif
25145     #ifndef _UINT64_T
25146     #define _UINT64_T
25147     #endif
25148 EOF
25149 elif test "$ac_cv_type_u_int64_t" = yes; then
25150   sed 's/^ *//' >> tmp-stdint.h <<EOF
25151
25152     /* system headers have an u_int64_t (and int64_t) */
25153     #ifndef _INT64_T
25154     #define _INT64_T
25155     #endif
25156     #ifndef _UINT64_T
25157     #define _UINT64_T
25158     #ifndef __uint64_t_defined
25159     #define __uint64_t_defined
25160     typedef u_int64_t uint64_t;
25161     #endif
25162     #endif
25163 EOF
25164 elif test -n "$acx_cv_type_int64_t"; then
25165   sed 's/^ *//' >> tmp-stdint.h <<EOF
25166
25167     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25168     #ifndef _INT64_T
25169     #define _INT64_T
25170     typedef $acx_cv_type_int64_t int64_t;
25171     #endif
25172     #ifndef _UINT64_T
25173     #define _UINT64_T
25174     #ifndef __uint64_t_defined
25175     #define __uint64_t_defined
25176     typedef unsigned $acx_cv_type_int64_t uint64_t;
25177     #endif
25178     #endif
25179 EOF
25180 else
25181   sed 's/^ *//' >> tmp-stdint.h <<EOF
25182
25183     /* some common heuristics for int64_t, using compiler-specific tests */
25184     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25185     #ifndef _INT64_T
25186     #define _INT64_T
25187     #ifndef __int64_t_defined
25188     typedef long long int64_t;
25189     #endif
25190     #endif
25191     #ifndef _UINT64_T
25192     #define _UINT64_T
25193     typedef unsigned long long uint64_t;
25194     #endif
25195
25196     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25197     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25198        does not implement __extension__.  But that compiler doesn't define
25199        __GNUC_MINOR__.  */
25200     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25201     # define __extension__
25202     # endif
25203
25204     # ifndef _INT64_T
25205     # define _INT64_T
25206     __extension__ typedef long long int64_t;
25207     # endif
25208     # ifndef _UINT64_T
25209     # define _UINT64_T
25210     __extension__ typedef unsigned long long uint64_t;
25211     # endif
25212
25213     #elif !defined __STRICT_ANSI__
25214     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25215
25216     #  ifndef _INT64_T
25217     #  define _INT64_T
25218     typedef __int64 int64_t;
25219     #  endif
25220     #  ifndef _UINT64_T
25221     #  define _UINT64_T
25222     typedef unsigned __int64 uint64_t;
25223     #  endif
25224     # endif /* compiler */
25225
25226     #endif /* ANSI version */
25227 EOF
25228 fi
25229
25230 # ------------- done int64_t types, emit intptr types ------------
25231 if test "$ac_cv_type_uintptr_t" != yes; then
25232   sed 's/^ *//' >> tmp-stdint.h <<EOF
25233
25234     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25235     #ifndef __uintptr_t_defined
25236     typedef u$acx_cv_type_intptr_t uintptr_t;
25237     #endif
25238     #ifndef __intptr_t_defined
25239     typedef $acx_cv_type_intptr_t  intptr_t;
25240     #endif
25241 EOF
25242 fi
25243
25244 # ------------- done intptr types, emit int_least types ------------
25245 if test "$ac_cv_type_int_least32_t" != yes; then
25246   sed 's/^ *//' >> tmp-stdint.h <<EOF
25247
25248     /* Define int_least types */
25249     typedef int8_t     int_least8_t;
25250     typedef int16_t    int_least16_t;
25251     typedef int32_t    int_least32_t;
25252     #ifdef _INT64_T
25253     typedef int64_t    int_least64_t;
25254     #endif
25255
25256     typedef uint8_t    uint_least8_t;
25257     typedef uint16_t   uint_least16_t;
25258     typedef uint32_t   uint_least32_t;
25259     #ifdef _UINT64_T
25260     typedef uint64_t   uint_least64_t;
25261     #endif
25262 EOF
25263 fi
25264
25265 # ------------- done intptr types, emit int_fast types ------------
25266 if test "$ac_cv_type_int_fast32_t" != yes; then
25267       sed 's/^ *//' >> tmp-stdint.h <<EOF
25268
25269     /* Define int_fast types.  short is often slow */
25270     typedef int8_t       int_fast8_t;
25271     typedef int          int_fast16_t;
25272     typedef int32_t      int_fast32_t;
25273     #ifdef _INT64_T
25274     typedef int64_t      int_fast64_t;
25275     #endif
25276
25277     typedef uint8_t      uint_fast8_t;
25278     typedef unsigned int uint_fast16_t;
25279     typedef uint32_t     uint_fast32_t;
25280     #ifdef _UINT64_T
25281     typedef uint64_t     uint_fast64_t;
25282     #endif
25283 EOF
25284 fi
25285
25286 if test "$ac_cv_type_uintmax_t" != yes; then
25287   sed 's/^ *//' >> tmp-stdint.h <<EOF
25288
25289     /* Define intmax based on what we found */
25290     #ifdef _INT64_T
25291     typedef int64_t       intmax_t;
25292     #else
25293     typedef long          intmax_t;
25294     #endif
25295     #ifdef _UINT64_T
25296     typedef uint64_t      uintmax_t;
25297     #else
25298     typedef unsigned long uintmax_t;
25299     #endif
25300 EOF
25301 fi
25302
25303 sed 's/^ *//' >> tmp-stdint.h <<EOF
25304
25305   #endif /* GCC_GENERATED_STDINT_H */
25306 EOF
25307
25308 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25309   rm -f tmp-stdint.h
25310 else
25311   mv -f tmp-stdint.h bfd_stdint.h
25312 fi
25313
25314  ;;
25315     default )
25316 case "$srcdir" in
25317   .) srcdirpre= ;;
25318   *) srcdirpre='$(srcdir)/' ;;
25319 esac
25320 POFILES=
25321 GMOFILES=
25322 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25323   if test $lang != dummy; then
25324     POFILES="$POFILES $srcdirpre$lang.po"
25325     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25326   fi
25327 done
25328 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25329     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25330     -e "s,@POFILES@,$POFILES," \
25331     -e "s,@GMOFILES@,$GMOFILES," \
25332     po/Makefile.in > po/Makefile ;;
25333   esac
25334 done
25335 _ACEOF
25336
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338
25339 { (exit 0); exit 0; }
25340 _ACEOF
25341 chmod +x $CONFIG_STATUS
25342 ac_clean_files=$ac_clean_files_save
25343
25344
25345 # configure is writing to config.log, and then calls config.status.
25346 # config.status does its own redirection, appending to config.log.
25347 # Unfortunately, on DOS this fails, as config.log is still kept open
25348 # by configure, so config.status won't be able to write to it; its
25349 # output is simply discarded.  So we exec the FD to /dev/null,
25350 # effectively closing config.log, so it can be properly (re)opened and
25351 # appended to by config.status.  When coming back to configure, we
25352 # need to make the FD available again.
25353 if test "$no_create" != yes; then
25354   ac_cs_success=:
25355   ac_config_status_args=
25356   test "$silent" = yes &&
25357     ac_config_status_args="$ac_config_status_args --quiet"
25358   exec 5>/dev/null
25359   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25360   exec 5>>config.log
25361   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25362   # would make configure fail if this is the last instruction.
25363   $ac_cs_success || { (exit 1); exit 1; }
25364 fi
25365
25366