bfd/
[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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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 WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997   cat <<\_ACEOF
998
999 Optional Features:
1000   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002   --disable-dependency-tracking  speeds up one-time build
1003   --enable-dependency-tracking   do not reject slow dependency extractors
1004   --enable-shared[=PKGS]
1005                           build shared libraries [default=no]
1006   --enable-static[=PKGS]
1007                           build static libraries [default=yes]
1008   --enable-fast-install[=PKGS]
1009                           optimize for fast installation [default=yes]
1010   --disable-libtool-lock  avoid locking (might break parallel builds)
1011   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1012   --enable-targets        alternative target configurations
1013   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014   --enable-secureplt      Default to creating read-only plt entries
1015   --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1016   --enable-werror         treat compile warnings as errors
1017   --enable-build-warnings enable build-time compiler warnings
1018   --enable-maintainer-mode  enable make rules and dependencies not useful
1019                           (and sometimes confusing) to the casual installer
1020   --enable-install-libbfd controls installation of libbfd and related headers
1021   --disable-nls           do not use Native Language Support
1022
1023 Optional Packages:
1024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1026   --with-pic              try to use only PIC/non-PIC objects [default=use
1027                           both]
1028   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1029   --with-mmap             try using mmap for BFD input files if available
1030   --with-separate-debug-dir=DIR
1031                           Look for global separate debug info in DIR
1032                           [default=LIBDIR/debug]
1033   --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1034                           Binutils"
1035   --with-bugurl=URL       Direct users to URL to report a bug
1036
1037 Some influential environment variables:
1038   CC          C compiler command
1039   CFLAGS      C compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CPP         C preprocessor
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053   # If there are subdirs, report their specific --help.
1054   ac_popdir=`pwd`
1055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056     test -d $ac_dir || continue
1057     ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061   # A "../" for each directory in $ac_dir_suffix.
1062   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064   ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068   .)  # No --srcdir option.  We are building in place.
1069     ac_srcdir=.
1070     if test -z "$ac_top_builddir"; then
1071        ac_top_srcdir=.
1072     else
1073        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074     fi ;;
1075   [\\/]* | ?:[\\/]* )  # Absolute path.
1076     ac_srcdir=$srcdir$ac_dir_suffix;
1077     ac_top_srcdir=$srcdir ;;
1078   *) # Relative path.
1079     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088   case "$ac_dir" in
1089   .) ac_abs_builddir=`pwd`;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097   case ${ac_top_builddir}. in
1098   .) ac_abs_top_builddir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106   case $ac_srcdir in
1107   .) ac_abs_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115   case $ac_top_srcdir in
1116   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119   esac;;
1120 esac
1121
1122     cd $ac_dir
1123     # Check for guested configure; otherwise get Cygnus style configure.
1124     if test -f $ac_srcdir/configure.gnu; then
1125       echo
1126       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127     elif test -f $ac_srcdir/configure; then
1128       echo
1129       $SHELL $ac_srcdir/configure  --help=recursive
1130     elif test -f $ac_srcdir/configure.ac ||
1131            test -f $ac_srcdir/configure.in; then
1132       echo
1133       $ac_configure --help
1134     else
1135       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136     fi
1137     cd $ac_popdir
1138   done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143   cat <<\_ACEOF
1144
1145 Copyright (C) 2003 Free Software Foundation, Inc.
1146 This configure script is free software; the Free Software Foundation
1147 gives unlimited permission to copy, distribute and modify it.
1148 _ACEOF
1149   exit 0
1150 fi
1151 exec 5>config.log
1152 cat >&5 <<_ACEOF
1153 This file contains any messages produced by compilers while
1154 running configure, to aid debugging if configure makes a mistake.
1155
1156 It was created by $as_me, which was
1157 generated by GNU Autoconf 2.59.  Invocation command line was
1158
1159   $ $0 $@
1160
1161 _ACEOF
1162 {
1163 cat <<_ASUNAME
1164 ## --------- ##
1165 ## Platform. ##
1166 ## --------- ##
1167
1168 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1176
1177 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1178 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1179 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1181 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1182 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1183 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1184
1185 _ASUNAME
1186
1187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188 for as_dir in $PATH
1189 do
1190   IFS=$as_save_IFS
1191   test -z "$as_dir" && as_dir=.
1192   echo "PATH: $as_dir"
1193 done
1194
1195 } >&5
1196
1197 cat >&5 <<_ACEOF
1198
1199
1200 ## ----------- ##
1201 ## Core tests. ##
1202 ## ----------- ##
1203
1204 _ACEOF
1205
1206
1207 # Keep a trace of the command line.
1208 # Strip out --no-create and --no-recursion so they do not pile up.
1209 # Strip out --silent because we don't want to record it for future runs.
1210 # Also quote any args containing shell meta-characters.
1211 # Make two passes to allow for proper duplicate-argument suppression.
1212 ac_configure_args=
1213 ac_configure_args0=
1214 ac_configure_args1=
1215 ac_sep=
1216 ac_must_keep_next=false
1217 for ac_pass in 1 2
1218 do
1219   for ac_arg
1220   do
1221     case $ac_arg in
1222     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224     | -silent | --silent | --silen | --sile | --sil)
1225       continue ;;
1226     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228     esac
1229     case $ac_pass in
1230     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231     2)
1232       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233       if test $ac_must_keep_next = true; then
1234         ac_must_keep_next=false # Got value, back to normal.
1235       else
1236         case $ac_arg in
1237           *=* | --config-cache | -C | -disable-* | --disable-* \
1238           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240           | -with-* | --with-* | -without-* | --without-* | --x)
1241             case "$ac_configure_args0 " in
1242               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243             esac
1244             ;;
1245           -* ) ac_must_keep_next=true ;;
1246         esac
1247       fi
1248       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249       # Get rid of the leading space.
1250       ac_sep=" "
1251       ;;
1252     esac
1253   done
1254 done
1255 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258 # When interrupted or exit'd, cleanup temporary files, and complete
1259 # config.log.  We remove comments because anyway the quotes in there
1260 # would cause problems or look ugly.
1261 # WARNING: Be sure not to use single quotes in there, as some shells,
1262 # such as our DU 5.0 friend, will then `close' the trap.
1263 trap 'exit_status=$?
1264   # Save into config.log some information that might help in debugging.
1265   {
1266     echo
1267
1268     cat <<\_ASBOX
1269 ## ---------------- ##
1270 ## Cache variables. ##
1271 ## ---------------- ##
1272 _ASBOX
1273     echo
1274     # The following way of writing the cache mishandles newlines in values,
1275 {
1276   (set) 2>&1 |
1277     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278     *ac_space=\ *)
1279       sed -n \
1280         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282       ;;
1283     *)
1284       sed -n \
1285         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286       ;;
1287     esac;
1288 }
1289     echo
1290
1291     cat <<\_ASBOX
1292 ## ----------------- ##
1293 ## Output variables. ##
1294 ## ----------------- ##
1295 _ASBOX
1296     echo
1297     for ac_var in $ac_subst_vars
1298     do
1299       eval ac_val=$`echo $ac_var`
1300       echo "$ac_var='"'"'$ac_val'"'"'"
1301     done | sort
1302     echo
1303
1304     if test -n "$ac_subst_files"; then
1305       cat <<\_ASBOX
1306 ## ------------- ##
1307 ## Output files. ##
1308 ## ------------- ##
1309 _ASBOX
1310       echo
1311       for ac_var in $ac_subst_files
1312       do
1313         eval ac_val=$`echo $ac_var`
1314         echo "$ac_var='"'"'$ac_val'"'"'"
1315       done | sort
1316       echo
1317     fi
1318
1319     if test -s confdefs.h; then
1320       cat <<\_ASBOX
1321 ## ----------- ##
1322 ## confdefs.h. ##
1323 ## ----------- ##
1324 _ASBOX
1325       echo
1326       sed "/^$/d" confdefs.h | sort
1327       echo
1328     fi
1329     test "$ac_signal" != 0 &&
1330       echo "$as_me: caught signal $ac_signal"
1331     echo "$as_me: exit $exit_status"
1332   } >&5
1333   rm -f core *.core &&
1334   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335     exit $exit_status
1336      ' 0
1337 for ac_signal in 1 2 13 15; do
1338   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339 done
1340 ac_signal=0
1341
1342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1343 rm -rf conftest* confdefs.h
1344 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 echo >confdefs.h
1346
1347 # Predefined preprocessor variables.
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_NAME "$PACKAGE_NAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_STRING "$PACKAGE_STRING"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371 _ACEOF
1372
1373
1374 # Let the site file select an alternate cache file if it wants to.
1375 # Prefer explicitly selected file to automatically selected ones.
1376 if test -z "$CONFIG_SITE"; then
1377   if test "x$prefix" != xNONE; then
1378     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379   else
1380     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381   fi
1382 fi
1383 for ac_site_file in $CONFIG_SITE; do
1384   if test -r "$ac_site_file"; then
1385     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386 echo "$as_me: loading site script $ac_site_file" >&6;}
1387     sed 's/^/| /' "$ac_site_file" >&5
1388     . "$ac_site_file"
1389   fi
1390 done
1391
1392 if test -r "$cache_file"; then
1393   # Some versions of bash will fail to source /dev/null (special
1394   # files actually), so we avoid doing that.
1395   if test -f "$cache_file"; then
1396     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397 echo "$as_me: loading cache $cache_file" >&6;}
1398     case $cache_file in
1399       [\\/]* | ?:[\\/]* ) . $cache_file;;
1400       *)                      . ./$cache_file;;
1401     esac
1402   fi
1403 else
1404   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405 echo "$as_me: creating cache $cache_file" >&6;}
1406   >$cache_file
1407 fi
1408
1409 # Check that the precious variables saved in the cache have kept the same
1410 # value.
1411 ac_cache_corrupted=false
1412 for ac_var in `(set) 2>&1 |
1413                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415   eval ac_new_set=\$ac_env_${ac_var}_set
1416   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417   eval ac_new_val="\$ac_env_${ac_var}_value"
1418   case $ac_old_set,$ac_new_set in
1419     set,)
1420       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422       ac_cache_corrupted=: ;;
1423     ,set)
1424       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426       ac_cache_corrupted=: ;;
1427     ,);;
1428     *)
1429       if test "x$ac_old_val" != "x$ac_new_val"; then
1430         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1433 echo "$as_me:   former value:  $ac_old_val" >&2;}
1434         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1435 echo "$as_me:   current value: $ac_new_val" >&2;}
1436         ac_cache_corrupted=:
1437       fi;;
1438   esac
1439   # Pass precious variables to config.status.
1440   if test "$ac_new_set" = set; then
1441     case $ac_new_val in
1442     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444     *) ac_arg=$ac_var=$ac_new_val ;;
1445     esac
1446     case " $ac_configure_args " in
1447       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1448       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449     esac
1450   fi
1451 done
1452 if $ac_cache_corrupted; then
1453   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457    { (exit 1); exit 1; }; }
1458 fi
1459
1460 ac_ext=c
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511 # Make sure we can run config.sub.
1512 $ac_config_sub sun4 >/dev/null 2>&1 ||
1513   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515    { (exit 1); exit 1; }; }
1516
1517 echo "$as_me:$LINENO: checking build system type" >&5
1518 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519 if test "${ac_cv_build+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   ac_cv_build_alias=$build_alias
1523 test -z "$ac_cv_build_alias" &&
1524   ac_cv_build_alias=`$ac_config_guess`
1525 test -z "$ac_cv_build_alias" &&
1526   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528    { (exit 1); exit 1; }; }
1529 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536 echo "${ECHO_T}$ac_cv_build" >&6
1537 build=$ac_cv_build
1538 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550   ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554    { (exit 1); exit 1; }; }
1555
1556 fi
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1559 host=$ac_cv_host
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572   ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576    { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587 # The aliases save the names the user supplied, while $host etc.
1588 # will get canonicalized.
1589 test -n "$target_alias" &&
1590   test "$program_prefix$program_suffix$program_transform_name" = \
1591     NONENONEs,x,x, &&
1592   program_prefix=${target_alias}-
1593 ac_ext=c
1594 ac_cpp='$CPP $CPPFLAGS'
1595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598 if test -n "$ac_tool_prefix"; then
1599   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$CC"; then
1607   ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   for ac_exec_ext in '' $ac_executable_extensions; do
1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 fi
1624 fi
1625 CC=$ac_cv_prog_CC
1626 if test -n "$CC"; then
1627   echo "$as_me:$LINENO: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1629 else
1630   echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1632 fi
1633
1634 fi
1635 if test -z "$ac_cv_prog_CC"; then
1636   ac_ct_CC=$CC
1637   # Extract the first word of "gcc", so it can be a program name with args.
1638 set dummy gcc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$ac_ct_CC"; then
1645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   for ac_exec_ext in '' $ac_executable_extensions; do
1653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654     ac_cv_prog_ac_ct_CC="gcc"
1655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656     break 2
1657   fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1667 else
1668   echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672   CC=$ac_ct_CC
1673 else
1674   CC="$ac_cv_prog_CC"
1675 fi
1676
1677 if test -z "$CC"; then
1678   if test -n "$ac_tool_prefix"; then
1679   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680 set dummy ${ac_tool_prefix}cc; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   if test -n "$CC"; then
1687   ac_cv_prog_CC="$CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     ac_cv_prog_CC="${ac_tool_prefix}cc"
1697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698     break 2
1699   fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 CC=$ac_cv_prog_CC
1706 if test -n "$CC"; then
1707   echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1709 else
1710   echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 fi
1715 if test -z "$ac_cv_prog_CC"; then
1716   ac_ct_CC=$CC
1717   # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$ac_ct_CC"; then
1725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_ac_ct_CC="cc"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741 fi
1742 fi
1743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744 if test -n "$ac_ct_CC"; then
1745   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746 echo "${ECHO_T}$ac_ct_CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752   CC=$ac_ct_CC
1753 else
1754   CC="$ac_cv_prog_CC"
1755 fi
1756
1757 fi
1758 if test -z "$CC"; then
1759   # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_CC+set}" = set; then
1764   echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766   if test -n "$CC"; then
1767   ac_cv_prog_CC="$CC" # Let the user override the test.
1768 else
1769   ac_prog_rejected=no
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   for ac_exec_ext in '' $ac_executable_extensions; do
1776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778        ac_prog_rejected=yes
1779        continue
1780      fi
1781     ac_cv_prog_CC="cc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 if test $ac_prog_rejected = yes; then
1789   # We found a bogon in the path, so make sure we never use it.
1790   set dummy $ac_cv_prog_CC
1791   shift
1792   if test $# != 0; then
1793     # We chose a different compiler from the bogus one.
1794     # However, it has the same basename, so the bogon will be chosen
1795     # first if we set CC to just the basename; use the full file name.
1796     shift
1797     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1798   fi
1799 fi
1800 fi
1801 fi
1802 CC=$ac_cv_prog_CC
1803 if test -n "$CC"; then
1804   echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 fi
1810
1811 fi
1812 if test -z "$CC"; then
1813   if test -n "$ac_tool_prefix"; then
1814   for ac_prog in cl
1815   do
1816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851     test -n "$CC" && break
1852   done
1853 fi
1854 if test -z "$CC"; then
1855   ac_ct_CC=$CC
1856   for ac_prog in cl
1857 do
1858   # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="$ac_prog"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   test -n "$ac_ct_CC" && break
1894 done
1895
1896   CC=$ac_ct_CC
1897 fi
1898
1899 fi
1900
1901
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: no acceptable C compiler found in \$PATH
1905 See \`config.log' for more details." >&2;}
1906    { (exit 1); exit 1; }; }
1907
1908 # Provide some information about the compiler.
1909 echo "$as_me:$LINENO:" \
1910      "checking for C compiler version" >&5
1911 ac_compiler=`set X $ac_compile; echo $2`
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913   (eval $ac_compiler --version </dev/null >&5) 2>&5
1914   ac_status=$?
1915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916   (exit $ac_status); }
1917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918   (eval $ac_compiler -v </dev/null >&5) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923   (eval $ac_compiler -V </dev/null >&5) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }
1927
1928 cat >conftest.$ac_ext <<_ACEOF
1929 /* confdefs.h.  */
1930 _ACEOF
1931 cat confdefs.h >>conftest.$ac_ext
1932 cat >>conftest.$ac_ext <<_ACEOF
1933 /* end confdefs.h.  */
1934
1935 int
1936 main ()
1937 {
1938
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 ac_clean_files_save=$ac_clean_files
1944 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945 # Try to create an executable without -o first, disregard a.out.
1946 # It will help us diagnose broken compilers, and finding out an intuition
1947 # of exeext.
1948 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952   (eval $ac_link_default) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; then
1956   # Find the output, starting from the most likely.  This scheme is
1957 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1958 # resort.
1959
1960 # Be careful to initialize this variable, since it used to be cached.
1961 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962 ac_cv_exeext=
1963 # b.out is created by i960 compilers.
1964 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965 do
1966   test -f "$ac_file" || continue
1967   case $ac_file in
1968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969         ;;
1970     conftest.$ac_ext )
1971         # This is the source file.
1972         ;;
1973     [ab].out )
1974         # We found the default executable, but exeext='' is most
1975         # certainly right.
1976         break;;
1977     *.* )
1978         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979         # FIXME: I believe we export ac_cv_exeext for Libtool,
1980         # but it would be cool to find out if it's true.  Does anybody
1981         # maintain Libtool? --akim.
1982         export ac_cv_exeext
1983         break;;
1984     * )
1985         break;;
1986   esac
1987 done
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: C compiler cannot create executables
1995 See \`config.log' for more details." >&2;}
1996    { (exit 77); exit 77; }; }
1997 fi
1998
1999 ac_exeext=$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_file" >&5
2001 echo "${ECHO_T}$ac_file" >&6
2002
2003 # Check the compiler produces executables we can run.  If not, either
2004 # the compiler is broken, or we cross compile.
2005 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008 # If not cross compiling, check that we can run a simple program.
2009 if test "$cross_compiling" != yes; then
2010   if { ac_try='./$ac_file'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; }; then
2016     cross_compiling=no
2017   else
2018     if test "$cross_compiling" = maybe; then
2019         cross_compiling=yes
2020     else
2021         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022 If you meant to cross compile, use \`--host'.
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot run C compiled programs.
2025 If you meant to cross compile, use \`--host'.
2026 See \`config.log' for more details." >&2;}
2027    { (exit 1); exit 1; }; }
2028     fi
2029   fi
2030 fi
2031 echo "$as_me:$LINENO: result: yes" >&5
2032 echo "${ECHO_T}yes" >&6
2033
2034 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035 ac_clean_files=$ac_clean_files_save
2036 # Check the compiler produces executables we can run.  If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041 echo "${ECHO_T}$cross_compiling" >&6
2042
2043 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046   (eval $ac_link) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; then
2050   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2052 # work properly (i.e., refer to `conftest.exe'), while it won't with
2053 # `rm'.
2054 for ac_file in conftest.exe conftest conftest.*; do
2055   test -f "$ac_file" || continue
2056   case $ac_file in
2057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059           export ac_cv_exeext
2060           break;;
2061     * ) break;;
2062   esac
2063 done
2064 else
2065   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068 See \`config.log' for more details." >&2;}
2069    { (exit 1); exit 1; }; }
2070 fi
2071
2072 rm -f conftest$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2075
2076 rm -f conftest.$ac_ext
2077 EXEEXT=$ac_cv_exeext
2078 ac_exeext=$EXEEXT
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   cat >conftest.$ac_ext <<_ACEOF
2085 /* confdefs.h.  */
2086 _ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h.  */
2090
2091 int
2092 main ()
2093 {
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.o conftest.obj
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; then
2105   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106   case $ac_file in
2107     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109        break;;
2110   esac
2111 done
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119 See \`config.log' for more details." >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124 fi
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT=$ac_cv_objext
2128 ac_objext=$OBJEXT
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   cat >conftest.$ac_ext <<_ACEOF
2135 /* confdefs.h.  */
2136 _ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h.  */
2140
2141 int
2142 main ()
2143 {
2144 #ifndef __GNUC__
2145        choke me
2146 #endif
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_compiler_gnu=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_compiler_gnu=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183
2184 fi
2185 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187 GCC=`test $ac_compiler_gnu = yes && echo yes`
2188 ac_test_CFLAGS=${CFLAGS+set}
2189 ac_save_CFLAGS=$CFLAGS
2190 CFLAGS="-g"
2191 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193 if test "${ac_cv_prog_cc_g+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>conftest.er1
2214   ac_status=$?
2215   grep -v '^ *+' conftest.er1 >conftest.err
2216   rm -f conftest.er1
2217   cat conftest.err >&5
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); } &&
2220          { ac_try='test -z "$ac_c_werror_flag"
2221                          || test ! -s conftest.err'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; } &&
2227          { ac_try='test -s conftest.$ac_objext'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233   ac_cv_prog_cc_g=yes
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 ac_cv_prog_cc_g=no
2239 fi
2240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244 if test "$ac_test_CFLAGS" = set; then
2245   CFLAGS=$ac_save_CFLAGS
2246 elif test $ac_cv_prog_cc_g = yes; then
2247   if test "$GCC" = yes; then
2248     CFLAGS="-g -O2"
2249   else
2250     CFLAGS="-g"
2251   fi
2252 else
2253   if test "$GCC" = yes; then
2254     CFLAGS="-O2"
2255   else
2256     CFLAGS=
2257   fi
2258 fi
2259 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   ac_cv_prog_cc_stdc=no
2265 ac_save_CC=$CC
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272 #include <stdarg.h>
2273 #include <stdio.h>
2274 #include <sys/types.h>
2275 #include <sys/stat.h>
2276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2277 struct buf { int x; };
2278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279 static char *e (p, i)
2280      char **p;
2281      int i;
2282 {
2283   return p[i];
2284 }
2285 static char *f (char * (*g) (char **, int), char **p, ...)
2286 {
2287   char *s;
2288   va_list v;
2289   va_start (v,p);
2290   s = g (p, va_arg (v,int));
2291   va_end (v);
2292   return s;
2293 }
2294
2295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2296    function prototypes and stuff, but not '\xHH' hex character constants.
2297    These don't provoke an error unfortunately, instead are silently treated
2298    as 'x'.  The following induces an error, until -std1 is added to get
2299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2300    array size at least.  It's necessary to write '\x00'==0 to get something
2301    that's true only with -std1.  */
2302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
2304 int test (int i, double x);
2305 struct s1 {int (*f) (int a);};
2306 struct s2 {int (*f) (double a);};
2307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308 int argc;
2309 char **argv;
2310 int
2311 main ()
2312 {
2313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 # Don't try gcc -ansi; that turns off useful extensions and
2319 # breaks some systems' header files.
2320 # AIX                   -qlanglvl=ansi
2321 # Ultrix and OSF/1      -std1
2322 # HP-UX 10.20 and later -Ae
2323 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2324 # SVR4                  -Xc -D__EXTENSIONS__
2325 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326 do
2327   CC="$ac_save_CC $ac_arg"
2328   rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>conftest.er1
2331   ac_status=$?
2332   grep -v '^ *+' conftest.er1 >conftest.err
2333   rm -f conftest.er1
2334   cat conftest.err >&5
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -z "$ac_c_werror_flag"
2338                          || test ! -s conftest.err'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; } &&
2344          { ac_try='test -s conftest.$ac_objext'
2345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; }; then
2350   ac_cv_prog_cc_stdc=$ac_arg
2351 break
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 fi
2357 rm -f conftest.err conftest.$ac_objext
2358 done
2359 rm -f conftest.$ac_ext conftest.$ac_objext
2360 CC=$ac_save_CC
2361
2362 fi
2363
2364 case "x$ac_cv_prog_cc_stdc" in
2365   x|xno)
2366     echo "$as_me:$LINENO: result: none needed" >&5
2367 echo "${ECHO_T}none needed" >&6 ;;
2368   *)
2369     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371     CC="$CC $ac_cv_prog_cc_stdc" ;;
2372 esac
2373
2374 # Some people use a C++ compiler to compile C.  Since we use `exit',
2375 # in C++ we need to declare it.  In case someone uses the same compiler
2376 # for both compiling C and C++ we need to have the C++ compiler decide
2377 # the declaration of exit, since it's the most demanding environment.
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #ifndef __cplusplus
2380   choke me
2381 #endif
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385   (eval $ac_compile) 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -z "$ac_c_werror_flag"
2393                          || test ! -s conftest.err'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   for ac_declaration in \
2406    '' \
2407    'extern "C" void std::exit (int) throw (); using std::exit;' \
2408    'extern "C" void std::exit (int); using std::exit;' \
2409    'extern "C" void exit (int) throw ();' \
2410    'extern "C" void exit (int);' \
2411    'void exit (int);'
2412 do
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419 $ac_declaration
2420 #include <stdlib.h>
2421 int
2422 main ()
2423 {
2424 exit (42);
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   :
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 continue
2457 fi
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459   cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465 $ac_declaration
2466 int
2467 main ()
2468 {
2469 exit (42);
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>conftest.er1
2477   ac_status=$?
2478   grep -v '^ *+' conftest.er1 >conftest.err
2479   rm -f conftest.er1
2480   cat conftest.err >&5
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -z "$ac_c_werror_flag"
2484                          || test ! -s conftest.err'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; } &&
2490          { ac_try='test -s conftest.$ac_objext'
2491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492   (eval $ac_try) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496   break
2497 else
2498   echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 fi
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 done
2504 rm -f conftest*
2505 if test -n "$ac_declaration"; then
2506   echo '#ifdef __cplusplus' >>confdefs.h
2507   echo $ac_declaration      >>confdefs.h
2508   echo '#endif'             >>confdefs.h
2509 fi
2510
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526 if test "${ac_cv_search_strerror+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   ac_func_search_save_LIBS=$LIBS
2530 ac_cv_search_strerror=no
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 /* Override any gcc2 internal prototype to avoid an error.  */
2539 #ifdef __cplusplus
2540 extern "C"
2541 #endif
2542 /* We use char because int might match the return type of a gcc2
2543    builtin and then its argument prototype would still apply.  */
2544 char strerror ();
2545 int
2546 main ()
2547 {
2548 strerror ();
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext conftest$ac_exeext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555   (eval $ac_link) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest$ac_exeext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   ac_cv_search_strerror="none required"
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 fi
2581 rm -f conftest.err conftest.$ac_objext \
2582       conftest$ac_exeext conftest.$ac_ext
2583 if test "$ac_cv_search_strerror" = no; then
2584   for ac_lib in cposix; do
2585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2586     cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 /* Override any gcc2 internal prototype to avoid an error.  */
2594 #ifdef __cplusplus
2595 extern "C"
2596 #endif
2597 /* We use char because int might match the return type of a gcc2
2598    builtin and then its argument prototype would still apply.  */
2599 char strerror ();
2600 int
2601 main ()
2602 {
2603 strerror ();
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext conftest$ac_exeext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610   (eval $ac_link) 2>conftest.er1
2611   ac_status=$?
2612   grep -v '^ *+' conftest.er1 >conftest.err
2613   rm -f conftest.er1
2614   cat conftest.err >&5
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -z "$ac_c_werror_flag"
2618                          || test ! -s conftest.err'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; } &&
2624          { ac_try='test -s conftest$ac_exeext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   ac_cv_search_strerror="-l$ac_lib"
2631 break
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.err conftest.$ac_objext \
2638       conftest$ac_exeext conftest.$ac_ext
2639   done
2640 fi
2641 LIBS=$ac_func_search_save_LIBS
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645 if test "$ac_cv_search_strerror" != no; then
2646   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2647
2648 fi
2649
2650
2651 am__api_version="1.9"
2652 # Find a good install program.  We prefer a C program (faster),
2653 # so one script is as good as another.  But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2658 # AIX /bin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2667 if test -z "$INSTALL"; then
2668 if test "${ac_cv_path_install+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676   # Account for people who put trailing slashes in PATH elements.
2677 case $as_dir/ in
2678   ./ | .// | /cC/* | \
2679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2681   /usr/ucb/* ) ;;
2682   *)
2683     # OSF1 and SCO ODT 3.0 have their own names for install.
2684     # Don't use installbsd from OSF since it installs stuff as root
2685     # by default.
2686     for ac_prog in ginstall scoinst install; do
2687       for ac_exec_ext in '' $ac_executable_extensions; do
2688         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2689           if test $ac_prog = install &&
2690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691             # AIX install.  It has an incompatible calling convention.
2692             :
2693           elif test $ac_prog = install &&
2694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695             # program-specific install script used by HP pwplus--don't use.
2696             :
2697           else
2698             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699             break 3
2700           fi
2701         fi
2702       done
2703     done
2704     ;;
2705 esac
2706 done
2707
2708
2709 fi
2710   if test "${ac_cv_path_install+set}" = set; then
2711     INSTALL=$ac_cv_path_install
2712   else
2713     # As a last resort, use the slow shell script.  We don't cache a
2714     # path for INSTALL within a source directory, because that will
2715     # break other packages using the cache if that directory is
2716     # removed, or if the path is relative.
2717     INSTALL=$ac_install_sh
2718   fi
2719 fi
2720 echo "$as_me:$LINENO: result: $INSTALL" >&5
2721 echo "${ECHO_T}$INSTALL" >&6
2722
2723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724 # It thinks the first close brace ends the variable substitution.
2725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
2727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2728
2729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
2731 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2732 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2733 # Just in case
2734 sleep 1
2735 echo timestamp > conftest.file
2736 # Do `set' in a subshell so we don't clobber the current shell's
2737 # arguments.  Must try -L first in case configure is actually a
2738 # symlink; some systems play weird games with the mod time of symlinks
2739 # (eg FreeBSD returns the mod time of the symlink's containing
2740 # directory).
2741 if (
2742    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2743    if test "$*" = "X"; then
2744       # -L didn't work.
2745       set X `ls -t $srcdir/configure conftest.file`
2746    fi
2747    rm -f conftest.file
2748    if test "$*" != "X $srcdir/configure conftest.file" \
2749       && test "$*" != "X conftest.file $srcdir/configure"; then
2750
2751       # If neither matched, then we have a broken ls.  This can happen
2752       # if, for instance, CONFIG_SHELL is bash and it inherits a
2753       # broken ls alias from the environment.  This has actually
2754       # happened.  Such a system could not be considered "sane".
2755       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2756 alias in your environment" >&5
2757 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2758 alias in your environment" >&2;}
2759    { (exit 1); exit 1; }; }
2760    fi
2761
2762    test "$2" = conftest.file
2763    )
2764 then
2765    # Ok.
2766    :
2767 else
2768    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2769 Check your system clock" >&5
2770 echo "$as_me: error: newly created file is older than distributed files!
2771 Check your system clock" >&2;}
2772    { (exit 1); exit 1; }; }
2773 fi
2774 echo "$as_me:$LINENO: result: yes" >&5
2775 echo "${ECHO_T}yes" >&6
2776 test "$program_prefix" != NONE &&
2777   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2778 # Use a double $ so make ignores it.
2779 test "$program_suffix" != NONE &&
2780   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2781 # Double any \ or $.  echo might interpret backslashes.
2782 # By default was `s,x,x', remove it if useless.
2783 cat <<\_ACEOF >conftest.sed
2784 s/[\\$]/&&/g;s/;s,x,x,$//
2785 _ACEOF
2786 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2787 rm conftest.sed
2788
2789 # expand $ac_aux_dir to an absolute path
2790 am_aux_dir=`cd $ac_aux_dir && pwd`
2791
2792 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2793 # Use eval to expand $SHELL
2794 if eval "$MISSING --run true"; then
2795   am_missing_run="$MISSING --run "
2796 else
2797   am_missing_run=
2798   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2799 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2800 fi
2801
2802 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2803   # We used to keeping the `.' as first argument, in order to
2804   # allow $(mkdir_p) to be used without argument.  As in
2805   #   $(mkdir_p) $(somedir)
2806   # where $(somedir) is conditionally defined.  However this is wrong
2807   # for two reasons:
2808   #  1. if the package is installed by a user who cannot write `.'
2809   #     make install will fail,
2810   #  2. the above comment should most certainly read
2811   #     $(mkdir_p) $(DESTDIR)$(somedir)
2812   #     so it does not work when $(somedir) is undefined and
2813   #     $(DESTDIR) is not.
2814   #  To support the latter case, we have to write
2815   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2816   #  so the `.' trick is pointless.
2817   mkdir_p='mkdir -p --'
2818 else
2819   # On NextStep and OpenStep, the `mkdir' command does not
2820   # recognize any option.  It will interpret all options as
2821   # directories to create, and then abort because `.' already
2822   # exists.
2823   for d in ./-p ./--version;
2824   do
2825     test -d $d && rmdir $d
2826   done
2827   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2828   if test -f "$ac_aux_dir/mkinstalldirs"; then
2829     mkdir_p='$(mkinstalldirs)'
2830   else
2831     mkdir_p='$(install_sh) -d'
2832   fi
2833 fi
2834
2835 for ac_prog in gawk mawk nawk awk
2836 do
2837   # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_AWK+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$AWK"; then
2845   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_AWK="$ac_prog"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 AWK=$ac_cv_prog_AWK
2864 if test -n "$AWK"; then
2865   echo "$as_me:$LINENO: result: $AWK" >&5
2866 echo "${ECHO_T}$AWK" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872   test -n "$AWK" && break
2873 done
2874
2875 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2877 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2878 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   cat >conftest.make <<\_ACEOF
2882 all:
2883         @echo 'ac_maketemp="$(MAKE)"'
2884 _ACEOF
2885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2886 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2887 if test -n "$ac_maketemp"; then
2888   eval ac_cv_prog_make_${ac_make}_set=yes
2889 else
2890   eval ac_cv_prog_make_${ac_make}_set=no
2891 fi
2892 rm -f conftest.make
2893 fi
2894 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2895   echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2897   SET_MAKE=
2898 else
2899   echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901   SET_MAKE="MAKE=${MAKE-make}"
2902 fi
2903
2904 rm -rf .tst 2>/dev/null
2905 mkdir .tst 2>/dev/null
2906 if test -d .tst; then
2907   am__leading_dot=.
2908 else
2909   am__leading_dot=_
2910 fi
2911 rmdir .tst 2>/dev/null
2912
2913 DEPDIR="${am__leading_dot}deps"
2914
2915           ac_config_commands="$ac_config_commands depfiles"
2916
2917
2918 am_make=${MAKE-make}
2919 cat > confinc << 'END'
2920 am__doit:
2921         @echo done
2922 .PHONY: am__doit
2923 END
2924 # If we don't find an include directive, just comment out the code.
2925 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2927 am__include="#"
2928 am__quote=
2929 _am_result=none
2930 # First try GNU make style include.
2931 echo "include confinc" > confmf
2932 # We grep out `Entering directory' and `Leaving directory'
2933 # messages which can occur if `w' ends up in MAKEFLAGS.
2934 # In particular we don't look at `^make:' because GNU make might
2935 # be invoked under some other name (usually "gmake"), in which
2936 # case it prints its new name instead of `make'.
2937 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938    am__include=include
2939    am__quote=
2940    _am_result=GNU
2941 fi
2942 # Now try BSD make style include.
2943 if test "$am__include" = "#"; then
2944    echo '.include "confinc"' > confmf
2945    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946       am__include=.include
2947       am__quote="\""
2948       _am_result=BSD
2949    fi
2950 fi
2951
2952
2953 echo "$as_me:$LINENO: result: $_am_result" >&5
2954 echo "${ECHO_T}$_am_result" >&6
2955 rm -f confinc confmf
2956
2957 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2958 if test "${enable_dependency_tracking+set}" = set; then
2959   enableval="$enable_dependency_tracking"
2960
2961 fi;
2962 if test "x$enable_dependency_tracking" != xno; then
2963   am_depcomp="$ac_aux_dir/depcomp"
2964   AMDEPBACKSLASH='\'
2965 fi
2966
2967
2968 if test "x$enable_dependency_tracking" != xno; then
2969   AMDEP_TRUE=
2970   AMDEP_FALSE='#'
2971 else
2972   AMDEP_TRUE='#'
2973   AMDEP_FALSE=
2974 fi
2975
2976
2977
2978 # test to see if srcdir already configured
2979 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2980    test -f $srcdir/config.status; then
2981   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2982 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2983    { (exit 1); exit 1; }; }
2984 fi
2985
2986 # test whether we have cygpath
2987 if test -z "$CYGPATH_W"; then
2988   if (cygpath --version) >/dev/null 2>/dev/null; then
2989     CYGPATH_W='cygpath -w'
2990   else
2991     CYGPATH_W=echo
2992   fi
2993 fi
2994
2995
2996 # Define the identity of the package.
2997  PACKAGE=bfd
2998  VERSION=2.18.50
2999
3000
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE "$PACKAGE"
3003 _ACEOF
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define VERSION "$VERSION"
3008 _ACEOF
3009
3010 # Some tools Automake needs.
3011
3012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3013
3014
3015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3016
3017
3018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3019
3020
3021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3022
3023
3024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025
3026 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3027
3028 # Installed binaries are usually stripped using `strip' when the user
3029 # run `make install-strip'.  However `strip' might not be the right
3030 # tool to use in cross-compilation environments, therefore Automake
3031 # will honor the `STRIP' environment variable to overrule this program.
3032 if test "$cross_compiling" != no; then
3033   if test -n "$ac_tool_prefix"; then
3034   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}strip; ac_word=$2
3036 echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3038 if test "${ac_cv_prog_STRIP+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if test -n "$STRIP"; then
3042   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057
3058 fi
3059 fi
3060 STRIP=$ac_cv_prog_STRIP
3061 if test -n "$STRIP"; then
3062   echo "$as_me:$LINENO: result: $STRIP" >&5
3063 echo "${ECHO_T}$STRIP" >&6
3064 else
3065   echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3067 fi
3068
3069 fi
3070 if test -z "$ac_cv_prog_STRIP"; then
3071   ac_ct_STRIP=$STRIP
3072   # Extract the first word of "strip", so it can be a program name with args.
3073 set dummy 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_ac_ct_STRIP+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   if test -n "$ac_ct_STRIP"; then
3080   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3097 fi
3098 fi
3099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100 if test -n "$ac_ct_STRIP"; then
3101   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3102 echo "${ECHO_T}$ac_ct_STRIP" >&6
3103 else
3104   echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6
3106 fi
3107
3108   STRIP=$ac_ct_STRIP
3109 else
3110   STRIP="$ac_cv_prog_STRIP"
3111 fi
3112
3113 fi
3114 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3115
3116 # We need awk for the "check" target.  The system "awk" is bad on
3117 # some platforms.
3118 # Always define AMTAR for backward compatibility.
3119
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
3125
3126
3127 depcc="$CC"   am_compiler_list=
3128
3129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3135   # We make a subdir and do the tests there.  Otherwise we can end up
3136   # making bogus files that we don't know about and never remove.  For
3137   # instance it was reported that on HP-UX the gcc test will end up
3138   # making a dummy file named `D' -- because `-MD' means `put the output
3139   # in D'.
3140   mkdir conftest.dir
3141   # Copy depcomp to subdir because otherwise we won't find it if we're
3142   # using a relative directory.
3143   cp "$am_depcomp" conftest.dir
3144   cd conftest.dir
3145   # We will build objects and dependencies in a subdirectory because
3146   # it helps to detect inapplicable dependency modes.  For instance
3147   # both Tru64's cc and ICC support -MD to output dependencies as a
3148   # side effect of compilation, but ICC will put the dependencies in
3149   # the current directory while Tru64 will put them in the object
3150   # directory.
3151   mkdir sub
3152
3153   am_cv_CC_dependencies_compiler_type=none
3154   if test "$am_compiler_list" = ""; then
3155      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3156   fi
3157   for depmode in $am_compiler_list; do
3158     # Setup a source with many dependencies, because some compilers
3159     # like to wrap large dependency lists on column 80 (with \), and
3160     # we should not choose a depcomp mode which is confused by this.
3161     #
3162     # We need to recreate these files for each test, as the compiler may
3163     # overwrite some of them when testing with obscure command lines.
3164     # This happens at least with the AIX C compiler.
3165     : > sub/conftest.c
3166     for i in 1 2 3 4 5 6; do
3167       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3168       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3169       # Solaris 8's {/usr,}/bin/sh.
3170       touch sub/conftst$i.h
3171     done
3172     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3173
3174     case $depmode in
3175     nosideeffect)
3176       # after this tag, mechanisms are not by side-effect, so they'll
3177       # only be used when explicitly requested
3178       if test "x$enable_dependency_tracking" = xyes; then
3179         continue
3180       else
3181         break
3182       fi
3183       ;;
3184     none) break ;;
3185     esac
3186     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3187     # mode.  It turns out that the SunPro C++ compiler does not properly
3188     # handle `-M -o', and we need to detect this.
3189     if depmode=$depmode \
3190        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3191        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3192        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3193          >/dev/null 2>conftest.err &&
3194        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3195        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3196        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3197       # icc doesn't choke on unknown options, it will just issue warnings
3198       # or remarks (even with -Werror).  So we grep stderr for any message
3199       # that says an option was ignored or not supported.
3200       # When given -MP, icc 7.0 and 7.1 complain thusly:
3201       #   icc: Command line warning: ignoring option '-M'; no argument required
3202       # The diagnosis changed in icc 8.0:
3203       #   icc: Command line remark: option '-MP' not supported
3204       if (grep 'ignoring option' conftest.err ||
3205           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3206         am_cv_CC_dependencies_compiler_type=$depmode
3207         break
3208       fi
3209     fi
3210   done
3211
3212   cd ..
3213   rm -rf conftest.dir
3214 else
3215   am_cv_CC_dependencies_compiler_type=none
3216 fi
3217
3218 fi
3219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3222
3223
3224
3225 if
3226   test "x$enable_dependency_tracking" != xno \
3227   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3228   am__fastdepCC_TRUE=
3229   am__fastdepCC_FALSE='#'
3230 else
3231   am__fastdepCC_TRUE='#'
3232   am__fastdepCC_FALSE=
3233 fi
3234
3235
3236
3237
3238 if test -n "$ac_tool_prefix"; then
3239   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}ar; ac_word=$2
3241 echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243 if test "${ac_cv_prog_AR+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   if test -n "$AR"; then
3247   ac_cv_prog_AR="$AR" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254   for ac_exec_ext in '' $ac_executable_extensions; do
3255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256     ac_cv_prog_AR="${ac_tool_prefix}ar"
3257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261 done
3262
3263 fi
3264 fi
3265 AR=$ac_cv_prog_AR
3266 if test -n "$AR"; then
3267   echo "$as_me:$LINENO: result: $AR" >&5
3268 echo "${ECHO_T}$AR" >&6
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274 fi
3275 if test -z "$ac_cv_prog_AR"; then
3276   ac_ct_AR=$AR
3277   # Extract the first word of "ar", so it can be a program name with args.
3278 set dummy 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_ac_ct_AR+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if test -n "$ac_ct_AR"; then
3285   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3304 if test -n "$ac_ct_AR"; then
3305   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3306 echo "${ECHO_T}$ac_ct_AR" >&6
3307 else
3308   echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312   AR=$ac_ct_AR
3313 else
3314   AR="$ac_cv_prog_AR"
3315 fi
3316
3317 if test -n "$ac_tool_prefix"; then
3318   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3320 echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322 if test "${ac_cv_prog_RANLIB+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   if test -n "$RANLIB"; then
3326   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333   for ac_exec_ext in '' $ac_executable_extensions; do
3334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340 done
3341
3342 fi
3343 fi
3344 RANLIB=$ac_cv_prog_RANLIB
3345 if test -n "$RANLIB"; then
3346   echo "$as_me:$LINENO: result: $RANLIB" >&5
3347 echo "${ECHO_T}$RANLIB" >&6
3348 else
3349   echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3351 fi
3352
3353 fi
3354 if test -z "$ac_cv_prog_RANLIB"; then
3355   ac_ct_RANLIB=$RANLIB
3356   # Extract the first word of "ranlib", so it can be a program name with args.
3357 set dummy 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_ac_ct_RANLIB+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -n "$ac_ct_RANLIB"; then
3364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3381 fi
3382 fi
3383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3384 if test -n "$ac_ct_RANLIB"; then
3385   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3386 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3387 else
3388   echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3390 fi
3391
3392   RANLIB=$ac_ct_RANLIB
3393 else
3394   RANLIB="$ac_cv_prog_RANLIB"
3395 fi
3396
3397
3398 # Check whether --enable-shared or --disable-shared was given.
3399 if test "${enable_shared+set}" = set; then
3400   enableval="$enable_shared"
3401   p=${PACKAGE-default}
3402     case $enableval in
3403     yes) enable_shared=yes ;;
3404     no) enable_shared=no ;;
3405     *)
3406       enable_shared=no
3407       # Look at the argument we got.  We use all the common list separators.
3408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409       for pkg in $enableval; do
3410         IFS="$lt_save_ifs"
3411         if test "X$pkg" = "X$p"; then
3412           enable_shared=yes
3413         fi
3414       done
3415       IFS="$lt_save_ifs"
3416       ;;
3417     esac
3418 else
3419   enable_shared=no
3420 fi;
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 if test -n "$ac_tool_prefix"; then
3436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451   for ac_exec_ext in '' $ac_executable_extensions; do
3452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458 done
3459
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464   echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6
3466 else
3467   echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3469 fi
3470
3471 fi
3472 if test -z "$ac_cv_prog_CC"; then
3473   ac_ct_CC=$CC
3474   # Extract the first word of "gcc", so it can be a program name with args.
3475 set dummy 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_ac_ct_CC+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if test -n "$ac_ct_CC"; then
3482   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3503 echo "${ECHO_T}$ac_ct_CC" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509   CC=$ac_ct_CC
3510 else
3511   CC="$ac_cv_prog_CC"
3512 fi
3513
3514 if test -z "$CC"; then
3515   if test -n "$ac_tool_prefix"; then
3516   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}cc; ac_word=$2
3518 echo "$as_me:$LINENO: checking for $ac_word" >&5
3519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520 if test "${ac_cv_prog_CC+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   if test -n "$CC"; then
3524   ac_cv_prog_CC="$CC" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529   IFS=$as_save_IFS
3530   test -z "$as_dir" && as_dir=.
3531   for ac_exec_ext in '' $ac_executable_extensions; do
3532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533     ac_cv_prog_CC="${ac_tool_prefix}cc"
3534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535     break 2
3536   fi
3537 done
3538 done
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544   echo "$as_me:$LINENO: result: $CC" >&5
3545 echo "${ECHO_T}$CC" >&6
3546 else
3547   echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 fi
3550
3551 fi
3552 if test -z "$ac_cv_prog_CC"; then
3553   ac_ct_CC=$CC
3554   # Extract the first word of "cc", so it can be a program name with args.
3555 set dummy 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_ac_ct_CC+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -n "$ac_ct_CC"; then
3562   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3583 echo "${ECHO_T}$ac_ct_CC" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589   CC=$ac_ct_CC
3590 else
3591   CC="$ac_cv_prog_CC"
3592 fi
3593
3594 fi
3595 if test -z "$CC"; then
3596   # Extract the first word of "cc", so it can be a program name with args.
3597 set dummy cc; ac_word=$2
3598 echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600 if test "${ac_cv_prog_CC+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if test -n "$CC"; then
3604   ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606   ac_prog_rejected=no
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3615        ac_prog_rejected=yes
3616        continue
3617      fi
3618     ac_cv_prog_CC="cc"
3619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623 done
3624
3625 if test $ac_prog_rejected = yes; then
3626   # We found a bogon in the path, so make sure we never use it.
3627   set dummy $ac_cv_prog_CC
3628   shift
3629   if test $# != 0; then
3630     # We chose a different compiler from the bogus one.
3631     # However, it has the same basename, so the bogon will be chosen
3632     # first if we set CC to just the basename; use the full file name.
3633     shift
3634     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3635   fi
3636 fi
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641   echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6
3643 else
3644   echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3646 fi
3647
3648 fi
3649 if test -z "$CC"; then
3650   if test -n "$ac_tool_prefix"; then
3651   for ac_prog in cl
3652   do
3653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_CC+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$CC"; then
3661   ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681   echo "$as_me:$LINENO: result: $CC" >&5
3682 echo "${ECHO_T}$CC" >&6
3683 else
3684   echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688     test -n "$CC" && break
3689   done
3690 fi
3691 if test -z "$CC"; then
3692   ac_ct_CC=$CC
3693   for ac_prog in cl
3694 do
3695   # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_exec_ext in '' $ac_executable_extensions; do
3711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712     ac_cv_prog_ac_ct_CC="$ac_prog"
3713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717 done
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3724 echo "${ECHO_T}$ac_ct_CC" >&6
3725 else
3726   echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3728 fi
3729
3730   test -n "$ac_ct_CC" && break
3731 done
3732
3733   CC=$ac_ct_CC
3734 fi
3735
3736 fi
3737
3738
3739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: no acceptable C compiler found in \$PATH
3742 See \`config.log' for more details." >&2;}
3743    { (exit 1); exit 1; }; }
3744
3745 # Provide some information about the compiler.
3746 echo "$as_me:$LINENO:" \
3747      "checking for C compiler version" >&5
3748 ac_compiler=`set X $ac_compile; echo $2`
3749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3750   (eval $ac_compiler --version </dev/null >&5) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }
3754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3755   (eval $ac_compiler -v </dev/null >&5) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }
3759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3760   (eval $ac_compiler -V </dev/null >&5) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); }
3764
3765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780 #ifndef __GNUC__
3781        choke me
3782 #endif
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790   (eval $ac_compile) 2>conftest.er1
3791   ac_status=$?
3792   grep -v '^ *+' conftest.er1 >conftest.err
3793   rm -f conftest.er1
3794   cat conftest.err >&5
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); } &&
3797          { ac_try='test -z "$ac_c_werror_flag"
3798                          || test ! -s conftest.err'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; } &&
3804          { ac_try='test -s conftest.$ac_objext'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   ac_compiler_gnu=yes
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 ac_compiler_gnu=no
3816 fi
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3819
3820 fi
3821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3823 GCC=`test $ac_compiler_gnu = yes && echo yes`
3824 ac_test_CFLAGS=${CFLAGS+set}
3825 ac_save_CFLAGS=$CFLAGS
3826 CFLAGS="-g"
3827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3829 if test "${ac_cv_prog_cc_g+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849   (eval $ac_compile) 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } &&
3856          { ac_try='test -z "$ac_c_werror_flag"
3857                          || test ! -s conftest.err'
3858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859   (eval $ac_try) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }; } &&
3863          { ac_try='test -s conftest.$ac_objext'
3864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865   (eval $ac_try) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; }; then
3869   ac_cv_prog_cc_g=yes
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_cv_prog_cc_g=no
3875 fi
3876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 fi
3878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3880 if test "$ac_test_CFLAGS" = set; then
3881   CFLAGS=$ac_save_CFLAGS
3882 elif test $ac_cv_prog_cc_g = yes; then
3883   if test "$GCC" = yes; then
3884     CFLAGS="-g -O2"
3885   else
3886     CFLAGS="-g"
3887   fi
3888 else
3889   if test "$GCC" = yes; then
3890     CFLAGS="-O2"
3891   else
3892     CFLAGS=
3893   fi
3894 fi
3895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   ac_cv_prog_cc_stdc=no
3901 ac_save_CC=$CC
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <stdarg.h>
3909 #include <stdio.h>
3910 #include <sys/types.h>
3911 #include <sys/stat.h>
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3916      char **p;
3917      int i;
3918 {
3919   return p[i];
3920 }
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3922 {
3923   char *s;
3924   va_list v;
3925   va_start (v,p);
3926   s = g (p, va_arg (v,int));
3927   va_end (v);
3928   return s;
3929 }
3930
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3932    function prototypes and stuff, but not '\xHH' hex character constants.
3933    These don't provoke an error unfortunately, instead are silently treated
3934    as 'x'.  The following induces an error, until -std1 is added to get
3935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3936    array size at least.  It's necessary to write '\x00'==0 to get something
3937    that's true only with -std1.  */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 int argc;
3945 char **argv;
3946 int
3947 main ()
3948 {
3949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 # Don't try gcc -ansi; that turns off useful extensions and
3955 # breaks some systems' header files.
3956 # AIX                   -qlanglvl=ansi
3957 # Ultrix and OSF/1      -std1
3958 # HP-UX 10.20 and later -Ae
3959 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3960 # SVR4                  -Xc -D__EXTENSIONS__
3961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 do
3963   CC="$ac_save_CC $ac_arg"
3964   rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966   (eval $ac_compile) 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } &&
3973          { ac_try='test -z "$ac_c_werror_flag"
3974                          || test ! -s conftest.err'
3975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976   (eval $ac_try) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; } &&
3980          { ac_try='test -s conftest.$ac_objext'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   ac_cv_prog_cc_stdc=$ac_arg
3987 break
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 fi
3993 rm -f conftest.err conftest.$ac_objext
3994 done
3995 rm -f conftest.$ac_ext conftest.$ac_objext
3996 CC=$ac_save_CC
3997
3998 fi
3999
4000 case "x$ac_cv_prog_cc_stdc" in
4001   x|xno)
4002     echo "$as_me:$LINENO: result: none needed" >&5
4003 echo "${ECHO_T}none needed" >&6 ;;
4004   *)
4005     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4007     CC="$CC $ac_cv_prog_cc_stdc" ;;
4008 esac
4009
4010 # Some people use a C++ compiler to compile C.  Since we use `exit',
4011 # in C++ we need to declare it.  In case someone uses the same compiler
4012 # for both compiling C and C++ we need to have the C++ compiler decide
4013 # the declaration of exit, since it's the most demanding environment.
4014 cat >conftest.$ac_ext <<_ACEOF
4015 #ifndef __cplusplus
4016   choke me
4017 #endif
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021   (eval $ac_compile) 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } &&
4028          { ac_try='test -z "$ac_c_werror_flag"
4029                          || test ! -s conftest.err'
4030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031   (eval $ac_try) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; } &&
4035          { ac_try='test -s conftest.$ac_objext'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; }; then
4041   for ac_declaration in \
4042    '' \
4043    'extern "C" void std::exit (int) throw (); using std::exit;' \
4044    'extern "C" void std::exit (int); using std::exit;' \
4045    'extern "C" void exit (int) throw ();' \
4046    'extern "C" void exit (int);' \
4047    'void exit (int);'
4048 do
4049   cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 $ac_declaration
4056 #include <stdlib.h>
4057 int
4058 main ()
4059 {
4060 exit (42);
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067   (eval $ac_compile) 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag"
4075                          || test ! -s conftest.err'
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); }; } &&
4081          { ac_try='test -s conftest.$ac_objext'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   :
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 continue
4093 fi
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095   cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 $ac_declaration
4102 int
4103 main ()
4104 {
4105 exit (42);
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112   (eval $ac_compile) 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -z "$ac_c_werror_flag"
4120                          || test ! -s conftest.err'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; } &&
4126          { ac_try='test -s conftest.$ac_objext'
4127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128   (eval $ac_try) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; }; then
4132   break
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 fi
4138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 done
4140 rm -f conftest*
4141 if test -n "$ac_declaration"; then
4142   echo '#ifdef __cplusplus' >>confdefs.h
4143   echo $ac_declaration      >>confdefs.h
4144   echo '#endif'             >>confdefs.h
4145 fi
4146
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 fi
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
4159
4160 cat >>confdefs.h <<\_ACEOF
4161 #define _GNU_SOURCE 1
4162 _ACEOF
4163
4164
4165
4166
4167
4168 macro_version='2.1a'
4169 macro_revision='1.2435'
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182 ltmain="$ac_aux_dir/ltmain.sh"
4183
4184 # Set options
4185
4186 enable_dlopen=no
4187
4188
4189 enable_win32_dll=no
4190
4191
4192
4193 # Check whether --enable-static or --disable-static was given.
4194 if test "${enable_static+set}" = set; then
4195   enableval="$enable_static"
4196   p=${PACKAGE-default}
4197     case $enableval in
4198     yes) enable_static=yes ;;
4199     no) enable_static=no ;;
4200     *)
4201      enable_static=no
4202       # Look at the argument we got.  We use all the common list separators.
4203       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4204       for pkg in $enableval; do
4205         IFS="$lt_save_ifs"
4206         if test "X$pkg" = "X$p"; then
4207           enable_static=yes
4208         fi
4209       done
4210       IFS="$lt_save_ifs"
4211       ;;
4212     esac
4213 else
4214   enable_static=yes
4215 fi;
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225 # Check whether --with-pic or --without-pic was given.
4226 if test "${with_pic+set}" = set; then
4227   withval="$with_pic"
4228   pic_mode="$withval"
4229 else
4230   pic_mode=default
4231 fi;
4232
4233 test -z "$pic_mode" && pic_mode=default
4234
4235
4236
4237
4238
4239
4240
4241 # Check whether --enable-fast-install or --disable-fast-install was given.
4242 if test "${enable_fast_install+set}" = set; then
4243   enableval="$enable_fast_install"
4244   p=${PACKAGE-default}
4245     case $enableval in
4246     yes) enable_fast_install=yes ;;
4247     no) enable_fast_install=no ;;
4248     *)
4249       enable_fast_install=no
4250       # Look at the argument we got.  We use all the common list separators.
4251       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4252       for pkg in $enableval; do
4253         IFS="$lt_save_ifs"
4254         if test "X$pkg" = "X$p"; then
4255           enable_fast_install=yes
4256         fi
4257       done
4258       IFS="$lt_save_ifs"
4259       ;;
4260     esac
4261 else
4262   enable_fast_install=yes
4263 fi;
4264
4265
4266
4267
4268
4269
4270
4271
4272 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4273 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4274 if test "${lt_cv_path_SED+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   # Loop through the user's path and test for sed and gsed.
4278 # Then use that list of sed's as ones to test for truncation.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for lt_ac_prog in sed gsed; do
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4287         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4288       fi
4289     done
4290   done
4291 done
4292 IFS=$as_save_IFS
4293 lt_ac_max=0
4294 lt_ac_count=0
4295 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4296 # along with /bin/sed that truncates output.
4297 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4298   test ! -f $lt_ac_sed && continue
4299   cat /dev/null > conftest.in
4300   lt_ac_count=0
4301   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4302   # Check for GNU sed and select it if it is found.
4303   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4304     lt_cv_path_SED=$lt_ac_sed
4305     break
4306   fi
4307   while true; do
4308     cat conftest.in conftest.in >conftest.tmp
4309     mv conftest.tmp conftest.in
4310     cp conftest.in conftest.nl
4311     echo >>conftest.nl
4312     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4313     cmp -s conftest.out conftest.nl || break
4314     # 10000 chars as input seems more than enough
4315     test $lt_ac_count -gt 10 && break
4316     lt_ac_count=`expr $lt_ac_count + 1`
4317     if test $lt_ac_count -gt $lt_ac_max; then
4318       lt_ac_max=$lt_ac_count
4319       lt_cv_path_SED=$lt_ac_sed
4320     fi
4321   done
4322 done
4323
4324 fi
4325
4326 SED=$lt_cv_path_SED
4327
4328 echo "$as_me:$LINENO: result: $SED" >&5
4329 echo "${ECHO_T}$SED" >&6
4330
4331 test -z "$SED" && SED=sed
4332 Xsed="$SED -e 1s/^X//"
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 echo "$as_me:$LINENO: checking for egrep" >&5
4345 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4346 if test "${ac_cv_prog_egrep+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4350     then ac_cv_prog_egrep='grep -E'
4351     else ac_cv_prog_egrep='egrep'
4352     fi
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4355 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4356  EGREP=$ac_cv_prog_egrep
4357
4358
4359 echo "$as_me:$LINENO: checking for fgrep" >&5
4360 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4361 if test "${ac_cv_prog_fgrep+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4365     then ac_cv_prog_fgrep='grep -F'
4366     else ac_cv_prog_fgrep='fgrep'
4367     fi
4368 fi
4369 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4370 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4371  FGREP=$ac_cv_prog_fgrep
4372
4373
4374 test -z "$GREP" && GREP=grep
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4395 if test "${with_gnu_ld+set}" = set; then
4396   withval="$with_gnu_ld"
4397   test "$withval" = no || with_gnu_ld=yes
4398 else
4399   with_gnu_ld=no
4400 fi;
4401 ac_prog=ld
4402 if test "$GCC" = yes; then
4403   # Check if gcc -print-prog-name=ld gives a path.
4404   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4405 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4406   case $host in
4407   *-*-mingw*)
4408     # gcc leaves a trailing carriage return which upsets mingw
4409     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4410   *)
4411     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4412   esac
4413   case $ac_prog in
4414     # Accept absolute paths.
4415     [\\/]* | ?:[\\/]*)
4416       re_direlt='/[^/][^/]*/\.\./'
4417       # Canonicalize the pathname of ld
4418       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4419       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4420         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4421       done
4422       test -z "$LD" && LD="$ac_prog"
4423       ;;
4424   "")
4425     # If it fails, then pretend we aren't using GCC.
4426     ac_prog=ld
4427     ;;
4428   *)
4429     # If it is relative, then search for the first ld in PATH.
4430     with_gnu_ld=unknown
4431     ;;
4432   esac
4433 elif test "$with_gnu_ld" = yes; then
4434   echo "$as_me:$LINENO: checking for GNU ld" >&5
4435 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4436 else
4437   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4438 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4439 fi
4440 if test "${lt_cv_path_LD+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -z "$LD"; then
4444   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445   for ac_dir in $PATH; do
4446     IFS="$lt_save_ifs"
4447     test -z "$ac_dir" && ac_dir=.
4448     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4449       lt_cv_path_LD="$ac_dir/$ac_prog"
4450       # Check to see if the program is GNU ld.  I'd rather use --version,
4451       # but apparently some variants of GNU ld only accept -v.
4452       # Break only if it was the GNU/non-GNU ld that we prefer.
4453       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4454       *GNU* | *'with BFD'*)
4455         test "$with_gnu_ld" != no && break
4456         ;;
4457       *)
4458         test "$with_gnu_ld" != yes && break
4459         ;;
4460       esac
4461     fi
4462   done
4463   IFS="$lt_save_ifs"
4464 else
4465   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4466 fi
4467 fi
4468
4469 LD="$lt_cv_path_LD"
4470 if test -n "$LD"; then
4471   echo "$as_me:$LINENO: result: $LD" >&5
4472 echo "${ECHO_T}$LD" >&6
4473 else
4474   echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4476 fi
4477 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4478 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4479    { (exit 1); exit 1; }; }
4480 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4481 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4482 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4486 case `$LD -v 2>&1 </dev/null` in
4487 *GNU* | *'with BFD'*)
4488   lt_cv_prog_gnu_ld=yes
4489   ;;
4490 *)
4491   lt_cv_prog_gnu_ld=no
4492   ;;
4493 esac
4494 fi
4495 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$lt_cv_prog_gnu_ld
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4509 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4510 if test "${lt_cv_path_NM+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$NM"; then
4514   # Let the user override the test.
4515   lt_cv_path_NM="$NM"
4516 else
4517   lt_nm_to_check="${ac_tool_prefix}nm"
4518   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4519     lt_nm_to_check="$lt_nm_to_check nm"
4520   fi
4521   for lt_tmp_nm in $lt_nm_to_check; do
4522     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4524       IFS="$lt_save_ifs"
4525       test -z "$ac_dir" && ac_dir=.
4526       tmp_nm="$ac_dir/$lt_tmp_nm"
4527       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4528         # Check to see if the nm accepts a BSD-compat flag.
4529         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4530         #   nm: unknown option "B" ignored
4531         # Tru64's nm complains that /dev/null is an invalid object file
4532         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4533         */dev/null* | *'Invalid file or object type'*)
4534           lt_cv_path_NM="$tmp_nm -B"
4535           break
4536           ;;
4537         *)
4538           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4539           */dev/null*)
4540             lt_cv_path_NM="$tmp_nm -p"
4541             break
4542             ;;
4543           *)
4544             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4545             continue # so that we can try to find one that supports BSD flags
4546             ;;
4547           esac
4548           ;;
4549         esac
4550       fi
4551     done
4552     IFS="$lt_save_ifs"
4553   done
4554   : ${lt_cv_path_NM=no}
4555 fi
4556 fi
4557 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4558 echo "${ECHO_T}$lt_cv_path_NM" >&6
4559 if test "$lt_cv_path_NM" != "no"; then
4560   NM="$lt_cv_path_NM"
4561 else
4562   # Didn't find any BSD compatible name lister, look for dumpbin.
4563   if test -n "$ac_tool_prefix"; then
4564   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4565   do
4566     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   if test -n "$DUMPBIN"; then
4574   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581   for ac_exec_ext in '' $ac_executable_extensions; do
4582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585     break 2
4586   fi
4587 done
4588 done
4589
4590 fi
4591 fi
4592 DUMPBIN=$ac_cv_prog_DUMPBIN
4593 if test -n "$DUMPBIN"; then
4594   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4595 echo "${ECHO_T}$DUMPBIN" >&6
4596 else
4597   echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4599 fi
4600
4601     test -n "$DUMPBIN" && break
4602   done
4603 fi
4604 if test -z "$DUMPBIN"; then
4605   ac_ct_DUMPBIN=$DUMPBIN
4606   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4607 do
4608   # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   if test -n "$ac_ct_DUMPBIN"; then
4616   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623   for ac_exec_ext in '' $ac_executable_extensions; do
4624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630 done
4631
4632 fi
4633 fi
4634 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4635 if test -n "$ac_ct_DUMPBIN"; then
4636   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4637 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643   test -n "$ac_ct_DUMPBIN" && break
4644 done
4645 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4646
4647   DUMPBIN=$ac_ct_DUMPBIN
4648 fi
4649
4650
4651   if test "$DUMPBIN" != ":"; then
4652     NM="$DUMPBIN"
4653   fi
4654 fi
4655 test -z "$NM" && NM=nm
4656
4657
4658
4659
4660
4661
4662 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4663 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4664 if test "${lt_cv_nm_interface+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   lt_cv_nm_interface="BSD nm"
4668   echo "int some_variable = 0;" > conftest.$ac_ext
4669   (eval echo "\"\$as_me:4669: $ac_compile\"" >&5)
4670   (eval "$ac_compile" 2>conftest.err)
4671   cat conftest.err >&5
4672   (eval echo "\"\$as_me:4672: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4673   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4674   cat conftest.err >&5
4675   (eval echo "\"\$as_me:4675: output\"" >&5)
4676   cat conftest.out >&5
4677   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4678     lt_cv_nm_interface="MS dumpbin"
4679   fi
4680   rm -f conftest*
4681 fi
4682 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4683 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4684
4685 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4687 LN_S=$as_ln_s
4688 if test "$LN_S" = "ln -s"; then
4689   echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6
4691 else
4692   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4693 echo "${ECHO_T}no, using $LN_S" >&6
4694 fi
4695
4696 # find the maximum length of command line arguments
4697 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4698 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4699 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702     i=0
4703   teststring="ABCD"
4704
4705   case $build_os in
4706   msdosdjgpp*)
4707     # On DJGPP, this test can blow up pretty badly due to problems in libc
4708     # (any single argument exceeding 2000 bytes causes a buffer overrun
4709     # during glob expansion).  Even if it were fixed, the result of this
4710     # check would be larger than it should be.
4711     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4712     ;;
4713
4714   gnu*)
4715     # Under GNU Hurd, this test is not required because there is
4716     # no limit to the length of command line arguments.
4717     # Libtool will interpret -1 as no limit whatsoever
4718     lt_cv_sys_max_cmd_len=-1;
4719     ;;
4720
4721   cygwin* | mingw*)
4722     # On Win9x/ME, this test blows up -- it succeeds, but takes
4723     # about 5 minutes as the teststring grows exponentially.
4724     # Worse, since 9x/ME are not pre-emptively multitasking,
4725     # you end up with a "frozen" computer, even though with patience
4726     # the test eventually succeeds (with a max line length of 256k).
4727     # Instead, let's just punt: use the minimum linelength reported by
4728     # all of the supported platforms: 8192 (on NT/2K/XP).
4729     lt_cv_sys_max_cmd_len=8192;
4730     ;;
4731
4732   amigaos*)
4733     # On AmigaOS with pdksh, this test takes hours, literally.
4734     # So we just punt and use a minimum line length of 8192.
4735     lt_cv_sys_max_cmd_len=8192;
4736     ;;
4737
4738   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739     # This has been around since 386BSD, at least.  Likely further.
4740     if test -x /sbin/sysctl; then
4741       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742     elif test -x /usr/sbin/sysctl; then
4743       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4744     else
4745       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4746     fi
4747     # And add a safety zone
4748     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750     ;;
4751
4752   interix*)
4753     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754     lt_cv_sys_max_cmd_len=196608
4755     ;;
4756
4757   osf*)
4758     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4759     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4760     # nice to cause kernel panics so lets avoid the loop below.
4761     # First set a reasonable default.
4762     lt_cv_sys_max_cmd_len=16384
4763     #
4764     if test -x /sbin/sysconfig; then
4765       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4766         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4767       esac
4768     fi
4769     ;;
4770   sco3.2v5*)
4771     lt_cv_sys_max_cmd_len=102400
4772     ;;
4773   sysv5* | sco5v6* | sysv4.2uw2*)
4774     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4775     if test -n "$kargmax"; then
4776       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4777     else
4778       lt_cv_sys_max_cmd_len=32768
4779     fi
4780     ;;
4781   *)
4782     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4783     if test -n $lt_cv_sys_max_cmd_len; then
4784       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4785       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4786     else
4787       # Make teststring a little bigger before we do anything with it.
4788       # a 1K string should be a reasonable start.
4789       for i in 1 2 3 4 5 6 7 8 ; do
4790         teststring=$teststring$teststring
4791       done
4792       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4793       # If test is not a shell built-in, we'll probably end up computing a
4794       # maximum length that is only half of the actual maximum length, but
4795       # we can't tell.
4796       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4797                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4798               test $i != 17 # 1/2 MB should be enough
4799       do
4800         i=`expr $i + 1`
4801         teststring=$teststring$teststring
4802       done
4803       # Only check the string length outside the loop.
4804       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4805       teststring=
4806       # Add a significant safety factor because C++ compilers can tack on
4807       # massive amounts of additional arguments before passing them to the
4808       # linker.  It appears as though 1/2 is a usable value.
4809       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4810     fi
4811     ;;
4812   esac
4813
4814 fi
4815
4816 if test -n $lt_cv_sys_max_cmd_len ; then
4817   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4818 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4819 else
4820   echo "$as_me:$LINENO: result: none" >&5
4821 echo "${ECHO_T}none" >&6
4822 fi
4823 max_cmd_len=$lt_cv_sys_max_cmd_len
4824
4825
4826
4827
4828
4829
4830
4831 : ${CP="cp -f"}
4832 : ${MV="mv -f"}
4833 : ${RM="rm -f"}
4834
4835 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4836 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4837 # Try some XSI features
4838 xsi_shell=no
4839 ( _lt_dummy="a/b/c"
4840   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4841       = c,a/b,, ) >/dev/null 2>&1 \
4842   && xsi_shell=yes
4843 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4844 echo "${ECHO_T}$xsi_shell" >&6
4845
4846
4847 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4848 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4849 lt_shell_append=no
4850 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4851     >/dev/null 2>&1 \
4852   && lt_shell_append=yes
4853 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4854 echo "${ECHO_T}$lt_shell_append" >&6
4855
4856
4857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4858   lt_unset=unset
4859 else
4860   lt_unset=false
4861 fi
4862
4863
4864
4865
4866
4867 # test EBCDIC or ASCII
4868 case `echo X|tr X '\101'` in
4869  A) # ASCII based system
4870     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4871   lt_SP2NL='tr \040 \012'
4872   lt_NL2SP='tr \015\012 \040\040'
4873   ;;
4874  *) # EBCDIC based system
4875   lt_SP2NL='tr \100 \n'
4876   lt_NL2SP='tr \r\n \100\100'
4877   ;;
4878 esac
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4889 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4890 if test "${lt_cv_ld_reload_flag+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   lt_cv_ld_reload_flag='-r'
4894 fi
4895 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4896 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4897 reload_flag=$lt_cv_ld_reload_flag
4898 case $reload_flag in
4899 "" | " "*) ;;
4900 *) reload_flag=" $reload_flag" ;;
4901 esac
4902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4903 case $host_os in
4904   darwin*)
4905     if test "$GCC" = yes; then
4906       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4907     else
4908       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4909     fi
4910     ;;
4911 esac
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4923 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4924 if test "${lt_cv_deplibs_check_method+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   lt_cv_file_magic_cmd='$MAGIC_CMD'
4928 lt_cv_file_magic_test_file=
4929 lt_cv_deplibs_check_method='unknown'
4930 # Need to set the preceding variable on all platforms that support
4931 # interlibrary dependencies.
4932 # 'none' -- dependencies not supported.
4933 # `unknown' -- same as none, but documents that we really don't know.
4934 # 'pass_all' -- all dependencies passed with no checks.
4935 # 'test_compile' -- check by making test program.
4936 # 'file_magic [[regex]]' -- check by looking for files in library path
4937 # which responds to the $file_magic_cmd with a given extended regex.
4938 # If you have `file' or equivalent on your system and you're not sure
4939 # whether `pass_all' will *always* work, you probably want this one.
4940
4941 case $host_os in
4942 aix4* | aix5*)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 beos*)
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 bsdi[45]*)
4951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952   lt_cv_file_magic_cmd='/usr/bin/file -L'
4953   lt_cv_file_magic_test_file=/shlib/libc.so
4954   ;;
4955
4956 cygwin*)
4957   # func_win32_libid is a shell function defined in ltmain.sh
4958   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959   lt_cv_file_magic_cmd='func_win32_libid'
4960   ;;
4961
4962 mingw* | pw32*)
4963   # Base MSYS/MinGW do not provide the 'file' command needed by
4964   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965   # unless we find 'file', for example because we are cross-compiling.
4966   if ( file / ) >/dev/null 2>&1; then
4967     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968     lt_cv_file_magic_cmd='func_win32_libid'
4969   else
4970     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971     lt_cv_file_magic_cmd='$OBJDUMP -f'
4972   fi
4973   ;;
4974
4975 darwin* | rhapsody*)
4976   lt_cv_deplibs_check_method=pass_all
4977   ;;
4978
4979 freebsd* | dragonfly*)
4980   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4981     case $host_cpu in
4982     i*86 )
4983       # Not sure whether the presence of OpenBSD here was a mistake.
4984       # Let's accept both of them until this is cleared up.
4985       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4986       lt_cv_file_magic_cmd=/usr/bin/file
4987       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4988       ;;
4989     esac
4990   else
4991     lt_cv_deplibs_check_method=pass_all
4992   fi
4993   ;;
4994
4995 gnu*)
4996   lt_cv_deplibs_check_method=pass_all
4997   ;;
4998
4999 hpux10.20* | hpux11*)
5000   lt_cv_file_magic_cmd=/usr/bin/file
5001   case $host_cpu in
5002   ia64*)
5003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5004     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5005     ;;
5006   hppa*64*)
5007     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]'
5008     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5009     ;;
5010   *)
5011     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5012     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5013     ;;
5014   esac
5015   ;;
5016
5017 interix[3-9]*)
5018   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5019   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5020   ;;
5021
5022 irix5* | irix6* | nonstopux*)
5023   case $LD in
5024   *-32|*"-32 ") libmagic=32-bit;;
5025   *-n32|*"-n32 ") libmagic=N32;;
5026   *-64|*"-64 ") libmagic=64-bit;;
5027   *) libmagic=never-match;;
5028   esac
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031
5032 # This must be Linux ELF.
5033 linux* | k*bsd*-gnu)
5034   lt_cv_deplibs_check_method=pass_all
5035   ;;
5036
5037 netbsd*)
5038   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5039     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5040   else
5041     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5042   fi
5043   ;;
5044
5045 newos6*)
5046   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5047   lt_cv_file_magic_cmd=/usr/bin/file
5048   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5049   ;;
5050
5051 *nto* | *qnx*)
5052   lt_cv_deplibs_check_method=pass_all
5053   ;;
5054
5055 openbsd*)
5056   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5057     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5058   else
5059     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5060   fi
5061   ;;
5062
5063 osf3* | osf4* | osf5*)
5064   lt_cv_deplibs_check_method=pass_all
5065   ;;
5066
5067 rdos*)
5068   lt_cv_deplibs_check_method=pass_all
5069   ;;
5070
5071 solaris*)
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074
5075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5076   lt_cv_deplibs_check_method=pass_all
5077   ;;
5078
5079 sysv4 | sysv4.3*)
5080   case $host_vendor in
5081   motorola)
5082     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]'
5083     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5084     ;;
5085   ncr)
5086     lt_cv_deplibs_check_method=pass_all
5087     ;;
5088   sequent)
5089     lt_cv_file_magic_cmd='/bin/file'
5090     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5091     ;;
5092   sni)
5093     lt_cv_file_magic_cmd='/bin/file'
5094     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5095     lt_cv_file_magic_test_file=/lib/libc.so
5096     ;;
5097   siemens)
5098     lt_cv_deplibs_check_method=pass_all
5099     ;;
5100   pc)
5101     lt_cv_deplibs_check_method=pass_all
5102     ;;
5103   esac
5104   ;;
5105
5106 tpf*)
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109 esac
5110
5111 fi
5112 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5113 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5114 file_magic_cmd=$lt_cv_file_magic_cmd
5115 deplibs_check_method=$lt_cv_deplibs_check_method
5116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 if test -n "$ac_tool_prefix"; then
5130   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ar; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_AR+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if test -n "$AR"; then
5138   ac_cv_prog_AR="$AR" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145   for ac_exec_ext in '' $ac_executable_extensions; do
5146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147     ac_cv_prog_AR="${ac_tool_prefix}ar"
5148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152 done
5153
5154 fi
5155 fi
5156 AR=$ac_cv_prog_AR
5157 if test -n "$AR"; then
5158   echo "$as_me:$LINENO: result: $AR" >&5
5159 echo "${ECHO_T}$AR" >&6
5160 else
5161   echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5163 fi
5164
5165 fi
5166 if test -z "$ac_cv_prog_AR"; then
5167   ac_ct_AR=$AR
5168   # Extract the first word of "ar", so it can be a program name with args.
5169 set dummy ar; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$ac_ct_AR"; then
5176   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_prog_ac_ct_AR="ar"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5193 fi
5194 fi
5195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5196 if test -n "$ac_ct_AR"; then
5197   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5198 echo "${ECHO_T}$ac_ct_AR" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204   AR=$ac_ct_AR
5205 else
5206   AR="$ac_cv_prog_AR"
5207 fi
5208
5209 test -z "$AR" && AR=ar
5210 test -z "$AR_FLAGS" && AR_FLAGS=cru
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 if test -n "$ac_tool_prefix"; then
5223   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5224 set dummy ${ac_tool_prefix}strip; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_STRIP+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -n "$STRIP"; then
5231   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238   for ac_exec_ext in '' $ac_executable_extensions; do
5239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245 done
5246
5247 fi
5248 fi
5249 STRIP=$ac_cv_prog_STRIP
5250 if test -n "$STRIP"; then
5251   echo "$as_me:$LINENO: result: $STRIP" >&5
5252 echo "${ECHO_T}$STRIP" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 fi
5259 if test -z "$ac_cv_prog_STRIP"; then
5260   ac_ct_STRIP=$STRIP
5261   # Extract the first word of "strip", so it can be a program name with args.
5262 set dummy strip; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   if test -n "$ac_ct_STRIP"; then
5269   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_prog_ac_ct_STRIP="strip"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284
5285   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5286 fi
5287 fi
5288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5289 if test -n "$ac_ct_STRIP"; then
5290   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5291 echo "${ECHO_T}$ac_ct_STRIP" >&6
5292 else
5293   echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5295 fi
5296
5297   STRIP=$ac_ct_STRIP
5298 else
5299   STRIP="$ac_cv_prog_STRIP"
5300 fi
5301
5302 test -z "$STRIP" && STRIP=:
5303
5304
5305
5306
5307
5308
5309 if test -n "$ac_tool_prefix"; then
5310   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_RANLIB+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   if test -n "$RANLIB"; then
5318   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325   for ac_exec_ext in '' $ac_executable_extensions; do
5326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332 done
5333
5334 fi
5335 fi
5336 RANLIB=$ac_cv_prog_RANLIB
5337 if test -n "$RANLIB"; then
5338   echo "$as_me:$LINENO: result: $RANLIB" >&5
5339 echo "${ECHO_T}$RANLIB" >&6
5340 else
5341   echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345 fi
5346 if test -z "$ac_cv_prog_RANLIB"; then
5347   ac_ct_RANLIB=$RANLIB
5348   # Extract the first word of "ranlib", so it can be a program name with args.
5349 set dummy ranlib; ac_word=$2
5350 echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   if test -n "$ac_ct_RANLIB"; then
5356   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363   for ac_exec_ext in '' $ac_executable_extensions; do
5364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_prog_ac_ct_RANLIB="ranlib"
5366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370 done
5371
5372   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5373 fi
5374 fi
5375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5376 if test -n "$ac_ct_RANLIB"; then
5377   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5378 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5379 else
5380   echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5382 fi
5383
5384   RANLIB=$ac_ct_RANLIB
5385 else
5386   RANLIB="$ac_cv_prog_RANLIB"
5387 fi
5388
5389 test -z "$RANLIB" && RANLIB=:
5390
5391
5392
5393
5394
5395
5396 # Determine commands to create old-style static archives.
5397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5398 old_postinstall_cmds='chmod 644 $oldlib'
5399 old_postuninstall_cmds=
5400
5401 if test -n "$RANLIB"; then
5402   case $host_os in
5403   openbsd*)
5404     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5405     ;;
5406   *)
5407     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5408     ;;
5409   esac
5410   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5411 fi
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 # If no C compiler was specified, use CC.
5447 LTCC=${LTCC-"$CC"}
5448
5449 # If no C compiler flags were specified, use CFLAGS.
5450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5451
5452 # Allow CC to be a program name with arguments.
5453 compiler=$CC
5454
5455
5456 # Check for command to grab the raw symbol name followed by C symbol from nm.
5457 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5458 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5459 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462
5463 # These are sane defaults that work on at least a few old systems.
5464 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5465
5466 # Character class describing NM global symbol codes.
5467 symcode='[BCDEGRST]'
5468
5469 # Regexp to match symbols that can be accessed directly from C.
5470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5471
5472 # Define system-specific variables.
5473 case $host_os in
5474 aix*)
5475   symcode='[BCDT]'
5476   ;;
5477 cygwin* | mingw* | pw32*)
5478   symcode='[ABCDGISTW]'
5479   ;;
5480 hpux*)
5481   if test "$host_cpu" = ia64; then
5482     symcode='[ABCDEGRST]'
5483   fi
5484   ;;
5485 irix* | nonstopux*)
5486   symcode='[BCDEGRST]'
5487   ;;
5488 osf*)
5489   symcode='[BCDEGQRST]'
5490   ;;
5491 solaris*)
5492   symcode='[BDRT]'
5493   ;;
5494 sco3.2v5*)
5495   symcode='[DT]'
5496   ;;
5497 sysv4.2uw2*)
5498   symcode='[DT]'
5499   ;;
5500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5501   symcode='[ABDT]'
5502   ;;
5503 sysv4)
5504   symcode='[DFNSTU]'
5505   ;;
5506 esac
5507
5508 # If we're using GNU nm, then use its standard symbol codes.
5509 case `$NM -V 2>&1` in
5510 *GNU* | *'with BFD'*)
5511   symcode='[ABCDGIRSTW]' ;;
5512 esac
5513
5514 # Transform an extracted symbol line into a proper C declaration.
5515 # Some systems (esp. on ia64) link data and code symbols differently,
5516 # so use this general approach.
5517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5518
5519 # Transform an extracted symbol line into symbol name and symbol address
5520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5521
5522 # Handle CRLF in mingw tool chain
5523 opt_cr=
5524 case $build_os in
5525 mingw*)
5526   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527   ;;
5528 esac
5529
5530 # Try without a prefix underscore, then with it.
5531 for ac_symprfx in "" "_"; do
5532
5533   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5534   symxfrm="\\1 $ac_symprfx\\2 \\2"
5535
5536   # Write the raw and C identifiers.
5537   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5538     # Fake it for dumpbin and say T for any non-static function
5539     # and D for any global variable.
5540     # Also find C++ and __fastcall symbols from MSVC++,
5541     # which start with @ or ?.
5542     lt_cv_sys_global_symbol_pipe="$AWK '"\
5543 "     {last_section=section; section=\$ 3};"\
5544 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5545 "     \$ 0!~/External *\|/{next};"\
5546 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5547 "     {if(hide[section]) next};"\
5548 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5549 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5550 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5551 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5552 "     ' prfx=^$ac_symprfx"
5553   else
5554     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5555   fi
5556
5557   # Check to see that the pipe works correctly.
5558   pipe_works=no
5559
5560   rm -f conftest*
5561   cat > conftest.$ac_ext <<_LT_EOF
5562 #ifdef __cplusplus
5563 extern "C" {
5564 #endif
5565 char nm_test_var;
5566 void nm_test_func(void);
5567 void nm_test_func(void){}
5568 #ifdef __cplusplus
5569 }
5570 #endif
5571 int main(){nm_test_var='a';nm_test_func();return(0);}
5572 _LT_EOF
5573
5574   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575   (eval $ac_compile) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; then
5579     # Now try to grab the symbols.
5580     nlist=conftest.nm
5581     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5582   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } && test -s "$nlist"; then
5586       # Try sorting and uniquifying the output.
5587       if sort "$nlist" | uniq > "$nlist"T; then
5588         mv -f "$nlist"T "$nlist"
5589       else
5590         rm -f "$nlist"T
5591       fi
5592
5593       # Make sure that we snagged all the symbols we need.
5594       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5595         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5596           cat <<_LT_EOF > conftest.$ac_ext
5597 #ifdef __cplusplus
5598 extern "C" {
5599 #endif
5600
5601 _LT_EOF
5602           # Now generate the symbol file.
5603           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5604
5605           cat <<_LT_EOF >> conftest.$ac_ext
5606
5607 /* The mapping between symbol names and symbols.  */
5608 const struct {
5609   const char *name;
5610   void       *address;
5611 }
5612 lt__PROGRAM__LTX_preloaded_symbols[] =
5613 {
5614   { "@PROGRAM@", (void *) 0 },
5615 _LT_EOF
5616           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5617           cat <<\_LT_EOF >> conftest.$ac_ext
5618   {0, (void *) 0}
5619 };
5620
5621 /* This works around a problem in FreeBSD linker */
5622 #ifdef FREEBSD_WORKAROUND
5623 static const void *lt_preloaded_setup() {
5624   return lt__PROGRAM__LTX_preloaded_symbols;
5625 }
5626 #endif
5627
5628 #ifdef __cplusplus
5629 }
5630 #endif
5631 _LT_EOF
5632           # Now try linking the two files.
5633           mv conftest.$ac_objext conftstm.$ac_objext
5634           lt_save_LIBS="$LIBS"
5635           lt_save_CFLAGS="$CFLAGS"
5636           LIBS="conftstm.$ac_objext"
5637           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5638           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639   (eval $ac_link) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5643             pipe_works=yes
5644           fi
5645           LIBS="$lt_save_LIBS"
5646           CFLAGS="$lt_save_CFLAGS"
5647         else
5648           echo "cannot find nm_test_func in $nlist" >&5
5649         fi
5650       else
5651         echo "cannot find nm_test_var in $nlist" >&5
5652       fi
5653     else
5654       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5655     fi
5656   else
5657     echo "$progname: failed program was:" >&5
5658     cat conftest.$ac_ext >&5
5659   fi
5660   rm -f conftest* conftst*
5661
5662   # Do not use the global_symbol_pipe unless it works.
5663   if test "$pipe_works" = yes; then
5664     break
5665   else
5666     lt_cv_sys_global_symbol_pipe=
5667   fi
5668 done
5669
5670 fi
5671
5672 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5673   lt_cv_sys_global_symbol_to_cdecl=
5674 fi
5675 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5676   echo "$as_me:$LINENO: result: failed" >&5
5677 echo "${ECHO_T}failed" >&6
5678 else
5679   echo "$as_me:$LINENO: result: ok" >&5
5680 echo "${ECHO_T}ok" >&6
5681 fi
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5700 if test "${enable_libtool_lock+set}" = set; then
5701   enableval="$enable_libtool_lock"
5702
5703 fi;
5704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5705
5706 # Some flags need to be propagated to the compiler or linker for good
5707 # libtool support.
5708 case $host in
5709 ia64-*-hpux*)
5710   # Find out which ABI we are using.
5711   echo 'int i;' > conftest.$ac_ext
5712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; then
5717     case `/usr/bin/file conftest.$ac_objext` in
5718       *ELF-32*)
5719         HPUX_IA64_MODE="32"
5720         ;;
5721       *ELF-64*)
5722         HPUX_IA64_MODE="64"
5723         ;;
5724     esac
5725   fi
5726   rm -rf conftest*
5727   ;;
5728 *-*-irix6*)
5729   # Find out which ABI we are using.
5730   echo '#line 5730 "configure"' > conftest.$ac_ext
5731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732   (eval $ac_compile) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; then
5736     if test "$lt_cv_prog_gnu_ld" = yes; then
5737       case `/usr/bin/file conftest.$ac_objext` in
5738         *32-bit*)
5739           LD="${LD-ld} -melf32bsmip"
5740           ;;
5741         *N32*)
5742           LD="${LD-ld} -melf32bmipn32"
5743           ;;
5744         *64-bit*)
5745           LD="${LD-ld} -melf64bmip"
5746         ;;
5747       esac
5748     else
5749       case `/usr/bin/file conftest.$ac_objext` in
5750         *32-bit*)
5751           LD="${LD-ld} -32"
5752           ;;
5753         *N32*)
5754           LD="${LD-ld} -n32"
5755           ;;
5756         *64-bit*)
5757           LD="${LD-ld} -64"
5758           ;;
5759       esac
5760     fi
5761   fi
5762   rm -rf conftest*
5763   ;;
5764
5765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5767   # Find out which ABI we are using.
5768   echo 'int i;' > conftest.$ac_ext
5769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770   (eval $ac_compile) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; then
5774     case `/usr/bin/file conftest.o` in
5775       *32-bit*)
5776         case $host in
5777           x86_64-*kfreebsd*-gnu)
5778             LD="${LD-ld} -m elf_i386_fbsd"
5779             ;;
5780           x86_64-*linux*)
5781             LD="${LD-ld} -m elf_i386"
5782             ;;
5783           ppc64-*linux*|powerpc64-*linux*)
5784             LD="${LD-ld} -m elf32ppclinux"
5785             ;;
5786           s390x-*linux*)
5787             LD="${LD-ld} -m elf_s390"
5788             ;;
5789           sparc64-*linux*)
5790             LD="${LD-ld} -m elf32_sparc"
5791             ;;
5792         esac
5793         ;;
5794       *64-bit*)
5795         case $host in
5796           x86_64-*kfreebsd*-gnu)
5797             LD="${LD-ld} -m elf_x86_64_fbsd"
5798             ;;
5799           x86_64-*linux*)
5800             LD="${LD-ld} -m elf_x86_64"
5801             ;;
5802           ppc*-*linux*|powerpc*-*linux*)
5803             LD="${LD-ld} -m elf64ppc"
5804             ;;
5805           s390*-*linux*|s390*-*tpf*)
5806             LD="${LD-ld} -m elf64_s390"
5807             ;;
5808           sparc*-*linux*)
5809             LD="${LD-ld} -m elf64_sparc"
5810             ;;
5811         esac
5812         ;;
5813     esac
5814   fi
5815   rm -rf conftest*
5816   ;;
5817
5818 *-*-sco3.2v5*)
5819   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820   SAVE_CFLAGS="$CFLAGS"
5821   CFLAGS="$CFLAGS -belf"
5822   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5823 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5824 if test "${lt_cv_cc_needs_belf+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   ac_ext=c
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833      cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839
5840 int
5841 main ()
5842 {
5843
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850   (eval $ac_link) 2>conftest.er1
5851   ac_status=$?
5852   grep -v '^ *+' conftest.er1 >conftest.err
5853   rm -f conftest.er1
5854   cat conftest.err >&5
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); } &&
5857          { ac_try='test -z "$ac_c_werror_flag"
5858                          || test ! -s conftest.err'
5859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860   (eval $ac_try) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; } &&
5864          { ac_try='test -s conftest$ac_exeext'
5865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866   (eval $ac_try) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; }; then
5870   lt_cv_cc_needs_belf=yes
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 lt_cv_cc_needs_belf=no
5876 fi
5877 rm -f conftest.err conftest.$ac_objext \
5878       conftest$ac_exeext conftest.$ac_ext
5879      ac_ext=c
5880 ac_cpp='$CPP $CPPFLAGS'
5881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884
5885 fi
5886 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5888   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5889     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5890     CFLAGS="$SAVE_CFLAGS"
5891   fi
5892   ;;
5893 sparc*-*solaris*)
5894   # Find out which ABI we are using.
5895   echo 'int i;' > conftest.$ac_ext
5896   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897   (eval $ac_compile) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; then
5901     case `/usr/bin/file conftest.o` in
5902     *64-bit*)
5903       case $lt_cv_prog_gnu_ld in
5904       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5905       *)    LD="${LD-ld} -64" ;;
5906       esac
5907       ;;
5908     esac
5909   fi
5910   rm -rf conftest*
5911   ;;
5912 esac
5913
5914 need_locks="$enable_libtool_lock"
5915
5916 ac_ext=c
5917 ac_cpp='$CPP $CPPFLAGS'
5918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5923 # On Suns, sometimes $CPP names a directory.
5924 if test -n "$CPP" && test -d "$CPP"; then
5925   CPP=
5926 fi
5927 if test -z "$CPP"; then
5928   if test "${ac_cv_prog_CPP+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931       # Double quotes because CPP needs to be expanded
5932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5933     do
5934       ac_preproc_ok=false
5935 for ac_c_preproc_warn_flag in '' yes
5936 do
5937   # Use a header file that comes with gcc, so configuring glibc
5938   # with a fresh cross-compiler works.
5939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940   # <limits.h> exists even on freestanding compilers.
5941   # On the NeXT, cc -E runs the code through the compiler's parser,
5942   # not just through cpp. "Syntax error" is here to catch this case.
5943   cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #ifdef __STDC__
5950 # include <limits.h>
5951 #else
5952 # include <assert.h>
5953 #endif
5954                      Syntax error
5955 _ACEOF
5956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } >/dev/null; then
5964   if test -s conftest.err; then
5965     ac_cpp_err=$ac_c_preproc_warn_flag
5966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5967   else
5968     ac_cpp_err=
5969   fi
5970 else
5971   ac_cpp_err=yes
5972 fi
5973 if test -z "$ac_cpp_err"; then
5974   :
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979   # Broken: fails on valid input.
5980 continue
5981 fi
5982 rm -f conftest.err conftest.$ac_ext
5983
5984   # OK, works on sane cases.  Now check whether non-existent headers
5985   # can be detected and how.
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5996   ac_status=$?
5997   grep -v '^ *+' conftest.er1 >conftest.err
5998   rm -f conftest.er1
5999   cat conftest.err >&5
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } >/dev/null; then
6002   if test -s conftest.err; then
6003     ac_cpp_err=$ac_c_preproc_warn_flag
6004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6005   else
6006     ac_cpp_err=
6007   fi
6008 else
6009   ac_cpp_err=yes
6010 fi
6011 if test -z "$ac_cpp_err"; then
6012   # Broken: success on invalid input.
6013 continue
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018   # Passes both tests.
6019 ac_preproc_ok=:
6020 break
6021 fi
6022 rm -f conftest.err conftest.$ac_ext
6023
6024 done
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.err conftest.$ac_ext
6027 if $ac_preproc_ok; then
6028   break
6029 fi
6030
6031     done
6032     ac_cv_prog_CPP=$CPP
6033
6034 fi
6035   CPP=$ac_cv_prog_CPP
6036 else
6037   ac_cv_prog_CPP=$CPP
6038 fi
6039 echo "$as_me:$LINENO: result: $CPP" >&5
6040 echo "${ECHO_T}$CPP" >&6
6041 ac_preproc_ok=false
6042 for ac_c_preproc_warn_flag in '' yes
6043 do
6044   # Use a header file that comes with gcc, so configuring glibc
6045   # with a fresh cross-compiler works.
6046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047   # <limits.h> exists even on freestanding compilers.
6048   # On the NeXT, cc -E runs the code through the compiler's parser,
6049   # not just through cpp. "Syntax error" is here to catch this case.
6050   cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h.  */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h.  */
6056 #ifdef __STDC__
6057 # include <limits.h>
6058 #else
6059 # include <assert.h>
6060 #endif
6061                      Syntax error
6062 _ACEOF
6063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
6068   cat conftest.err >&5
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } >/dev/null; then
6071   if test -s conftest.err; then
6072     ac_cpp_err=$ac_c_preproc_warn_flag
6073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074   else
6075     ac_cpp_err=
6076   fi
6077 else
6078   ac_cpp_err=yes
6079 fi
6080 if test -z "$ac_cpp_err"; then
6081   :
6082 else
6083   echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086   # Broken: fails on valid input.
6087 continue
6088 fi
6089 rm -f conftest.err conftest.$ac_ext
6090
6091   # OK, works on sane cases.  Now check whether non-existent headers
6092   # can be detected and how.
6093   cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #include <ac_nonexistent.h>
6100 _ACEOF
6101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } >/dev/null; then
6109   if test -s conftest.err; then
6110     ac_cpp_err=$ac_c_preproc_warn_flag
6111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6112   else
6113     ac_cpp_err=
6114   fi
6115 else
6116   ac_cpp_err=yes
6117 fi
6118 if test -z "$ac_cpp_err"; then
6119   # Broken: success on invalid input.
6120 continue
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125   # Passes both tests.
6126 ac_preproc_ok=:
6127 break
6128 fi
6129 rm -f conftest.err conftest.$ac_ext
6130
6131 done
6132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6133 rm -f conftest.err conftest.$ac_ext
6134 if $ac_preproc_ok; then
6135   :
6136 else
6137   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6138 See \`config.log' for more details." >&5
6139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6140 See \`config.log' for more details." >&2;}
6141    { (exit 1); exit 1; }; }
6142 fi
6143
6144 ac_ext=c
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6153 if test "${ac_cv_header_stdc+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 #include <stdlib.h>
6163 #include <stdarg.h>
6164 #include <string.h>
6165 #include <float.h>
6166
6167 int
6168 main ()
6169 {
6170
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177   (eval $ac_compile) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } &&
6184          { ac_try='test -z "$ac_c_werror_flag"
6185                          || test ! -s conftest.err'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; } &&
6191          { ac_try='test -s conftest.$ac_objext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_header_stdc=yes
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_cv_header_stdc=no
6203 fi
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205
6206 if test $ac_cv_header_stdc = yes; then
6207   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6208   cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 #include <string.h>
6215
6216 _ACEOF
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218   $EGREP "memchr" >/dev/null 2>&1; then
6219   :
6220 else
6221   ac_cv_header_stdc=no
6222 fi
6223 rm -f conftest*
6224
6225 fi
6226
6227 if test $ac_cv_header_stdc = yes; then
6228   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include <stdlib.h>
6236
6237 _ACEOF
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239   $EGREP "free" >/dev/null 2>&1; then
6240   :
6241 else
6242   ac_cv_header_stdc=no
6243 fi
6244 rm -f conftest*
6245
6246 fi
6247
6248 if test $ac_cv_header_stdc = yes; then
6249   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6250   if test "$cross_compiling" = yes; then
6251   :
6252 else
6253   cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259 #include <ctype.h>
6260 #if ((' ' & 0x0FF) == 0x020)
6261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6263 #else
6264 # define ISLOWER(c) \
6265                    (('a' <= (c) && (c) <= 'i') \
6266                      || ('j' <= (c) && (c) <= 'r') \
6267                      || ('s' <= (c) && (c) <= 'z'))
6268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6269 #endif
6270
6271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6272 int
6273 main ()
6274 {
6275   int i;
6276   for (i = 0; i < 256; i++)
6277     if (XOR (islower (i), ISLOWER (i))
6278         || toupper (i) != TOUPPER (i))
6279       exit(2);
6280   exit (0);
6281 }
6282 _ACEOF
6283 rm -f conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; }; then
6294   :
6295 else
6296   echo "$as_me: program exited with status $ac_status" >&5
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ( exit $ac_status )
6301 ac_cv_header_stdc=no
6302 fi
6303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6304 fi
6305 fi
6306 fi
6307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6309 if test $ac_cv_header_stdc = yes; then
6310
6311 cat >>confdefs.h <<\_ACEOF
6312 #define STDC_HEADERS 1
6313 _ACEOF
6314
6315 fi
6316
6317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6328                   inttypes.h stdint.h unistd.h
6329 do
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h.  */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h.  */
6342 $ac_includes_default
6343
6344 #include <$ac_header>
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348   (eval $ac_compile) 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } &&
6355          { ac_try='test -z "$ac_c_werror_flag"
6356                          || test ! -s conftest.err'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; } &&
6362          { ac_try='test -s conftest.$ac_objext'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   eval "$as_ac_Header=yes"
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 eval "$as_ac_Header=no"
6374 fi
6375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380   cat >>confdefs.h <<_ACEOF
6381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6382 _ACEOF
6383
6384 fi
6385
6386 done
6387
6388
6389
6390 for ac_header in dlfcn.h
6391 do
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 $ac_includes_default
6405
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"
6418                          || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   eval "$as_ac_Header=yes"
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 eval "$as_ac_Header=no"
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442   cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6445
6446 fi
6447
6448 done
6449
6450
6451
6452 # This can be used to rebuild libtool when needed
6453 LIBTOOL_DEPS="$ltmain"
6454
6455 # Always use our own libtool.
6456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482 test -z "$LN_S" && LN_S="ln -s"
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 if test -n "${ZSH_VERSION+set}" ; then
6498    setopt NO_GLOB_SUBST
6499 fi
6500
6501 echo "$as_me:$LINENO: checking for objdir" >&5
6502 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6503 if test "${lt_cv_objdir+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   rm -f .libs 2>/dev/null
6507 mkdir .libs 2>/dev/null
6508 if test -d .libs; then
6509   lt_cv_objdir=.libs
6510 else
6511   # MS-DOS does not allow filenames that begin with a dot.
6512   lt_cv_objdir=_libs
6513 fi
6514 rmdir .libs 2>/dev/null
6515 fi
6516 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6517 echo "${ECHO_T}$lt_cv_objdir" >&6
6518 objdir=$lt_cv_objdir
6519
6520
6521
6522
6523
6524 cat >>confdefs.h <<_ACEOF
6525 #define LT_OBJDIR "$lt_cv_objdir/"
6526 _ACEOF
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544 case $host_os in
6545 aix3*)
6546   # AIX sometimes has problems with the GCC collect2 program.  For some
6547   # reason, if we set the COLLECT_NAMES environment variable, the problems
6548   # vanish in a puff of smoke.
6549   if test "X${COLLECT_NAMES+set}" != Xset; then
6550     COLLECT_NAMES=
6551     export COLLECT_NAMES
6552   fi
6553   ;;
6554 esac
6555
6556 # Sed substitution that helps us do robust quoting.  It backslashifies
6557 # metacharacters that are still active within double-quoted strings.
6558 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6559
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6562
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6566
6567 # Sed substitution to delay expansion of an escaped single quote.
6568 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6569
6570 # Sed substitution to avoid accidental globbing in evaled expressions
6571 no_glob_subst='s/\*/\\\*/g'
6572
6573 # Global variables:
6574 ofile=libtool
6575 can_build_shared=yes
6576
6577 # All known linkers require a `.a' archive for static linking (except MSVC,
6578 # which needs '.lib').
6579 libext=a
6580
6581 with_gnu_ld="$lt_cv_prog_gnu_ld"
6582
6583 old_CC="$CC"
6584 old_CFLAGS="$CFLAGS"
6585
6586 # Set sane defaults for various variables
6587 test -z "$CC" && CC=cc
6588 test -z "$LTCC" && LTCC=$CC
6589 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6590 test -z "$LD" && LD=ld
6591 test -z "$ac_objext" && ac_objext=o
6592
6593 for cc_temp in $compiler""; do
6594   case $cc_temp in
6595     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6596     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6597     \-*) ;;
6598     *) break;;
6599   esac
6600 done
6601 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6602
6603
6604 # Only perform the check for file, if the check method requires it
6605 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6606 case $deplibs_check_method in
6607 file_magic*)
6608   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6609     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6610 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   case $MAGIC_CMD in
6615 [\\/*] |  ?:[\\/]*)
6616   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6617   ;;
6618 *)
6619   lt_save_MAGIC_CMD="$MAGIC_CMD"
6620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6621   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6622   for ac_dir in $ac_dummy; do
6623     IFS="$lt_save_ifs"
6624     test -z "$ac_dir" && ac_dir=.
6625     if test -f $ac_dir/${ac_tool_prefix}file; then
6626       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6627       if test -n "$file_magic_test_file"; then
6628         case $deplibs_check_method in
6629         "file_magic "*)
6630           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6631           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6632           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6633             $EGREP "$file_magic_regex" > /dev/null; then
6634             :
6635           else
6636             cat <<_LT_EOF 1>&2
6637
6638 *** Warning: the command libtool uses to detect shared libraries,
6639 *** $file_magic_cmd, produces output that libtool cannot recognize.
6640 *** The result is that libtool may fail to recognize shared libraries
6641 *** as such.  This will affect the creation of libtool libraries that
6642 *** depend on shared libraries, but programs linked with such libtool
6643 *** libraries will work regardless of this problem.  Nevertheless, you
6644 *** may want to report the problem to your system manager and/or to
6645 *** bug-libtool@gnu.org
6646
6647 _LT_EOF
6648           fi ;;
6649         esac
6650       fi
6651       break
6652     fi
6653   done
6654   IFS="$lt_save_ifs"
6655   MAGIC_CMD="$lt_save_MAGIC_CMD"
6656   ;;
6657 esac
6658 fi
6659
6660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6661 if test -n "$MAGIC_CMD"; then
6662   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6663 echo "${ECHO_T}$MAGIC_CMD" >&6
6664 else
6665   echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6
6667 fi
6668
6669
6670
6671
6672
6673 if test -z "$lt_cv_path_MAGIC_CMD"; then
6674   if test -n "$ac_tool_prefix"; then
6675     echo "$as_me:$LINENO: checking for file" >&5
6676 echo $ECHO_N "checking for file... $ECHO_C" >&6
6677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   case $MAGIC_CMD in
6681 [\\/*] |  ?:[\\/]*)
6682   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6683   ;;
6684 *)
6685   lt_save_MAGIC_CMD="$MAGIC_CMD"
6686   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6687   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6688   for ac_dir in $ac_dummy; do
6689     IFS="$lt_save_ifs"
6690     test -z "$ac_dir" && ac_dir=.
6691     if test -f $ac_dir/file; then
6692       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6693       if test -n "$file_magic_test_file"; then
6694         case $deplibs_check_method in
6695         "file_magic "*)
6696           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6697           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6699             $EGREP "$file_magic_regex" > /dev/null; then
6700             :
6701           else
6702             cat <<_LT_EOF 1>&2
6703
6704 *** Warning: the command libtool uses to detect shared libraries,
6705 *** $file_magic_cmd, produces output that libtool cannot recognize.
6706 *** The result is that libtool may fail to recognize shared libraries
6707 *** as such.  This will affect the creation of libtool libraries that
6708 *** depend on shared libraries, but programs linked with such libtool
6709 *** libraries will work regardless of this problem.  Nevertheless, you
6710 *** may want to report the problem to your system manager and/or to
6711 *** bug-libtool@gnu.org
6712
6713 _LT_EOF
6714           fi ;;
6715         esac
6716       fi
6717       break
6718     fi
6719   done
6720   IFS="$lt_save_ifs"
6721   MAGIC_CMD="$lt_save_MAGIC_CMD"
6722   ;;
6723 esac
6724 fi
6725
6726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727 if test -n "$MAGIC_CMD"; then
6728   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6729 echo "${ECHO_T}$MAGIC_CMD" >&6
6730 else
6731   echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6
6733 fi
6734
6735
6736   else
6737     MAGIC_CMD=:
6738   fi
6739 fi
6740
6741   fi
6742   ;;
6743 esac
6744
6745 # Use C for the default configuration in the libtool script
6746
6747 lt_save_CC="$CC"
6748 ac_ext=c
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754
6755 # Source file extension for C test sources.
6756 ac_ext=c
6757
6758 # Object file extension for compiled C test sources.
6759 objext=o
6760 objext=$objext
6761
6762 # Code to be used in simple compile tests
6763 lt_simple_compile_test_code="int some_variable = 0;"
6764
6765 # Code to be used in simple link tests
6766 lt_simple_link_test_code='int main(){return(0);}'
6767
6768
6769
6770
6771
6772
6773
6774 # If no C compiler was specified, use CC.
6775 LTCC=${LTCC-"$CC"}
6776
6777 # If no C compiler flags were specified, use CFLAGS.
6778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6779
6780 # Allow CC to be a program name with arguments.
6781 compiler=$CC
6782
6783 # Save the default compiler, since it gets overwritten when the other
6784 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6785 compiler_DEFAULT=$CC
6786
6787 # save warnings/boilerplate of simple test code
6788 ac_outfile=conftest.$ac_objext
6789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6791 _lt_compiler_boilerplate=`cat conftest.err`
6792 $RM conftest*
6793
6794 ac_outfile=conftest.$ac_objext
6795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6797 _lt_linker_boilerplate=`cat conftest.err`
6798 $RM conftest*
6799
6800
6801 ## CAVEAT EMPTOR:
6802 ## There is no encapsulation within the following macros, do not change
6803 ## the running order or otherwise move them around unless you know exactly
6804 ## what you are doing...
6805 if test -n "$compiler"; then
6806
6807 lt_prog_compiler_no_builtin_flag=
6808
6809 if test "$GCC" = yes; then
6810   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6811
6812   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6813 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6814 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   lt_cv_prog_compiler_rtti_exceptions=no
6818    ac_outfile=conftest.$ac_objext
6819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6820    lt_compiler_flag="-fno-rtti -fno-exceptions"
6821    # Insert the option either (1) after the last *FLAGS variable, or
6822    # (2) before a word containing "conftest.", or (3) at the end.
6823    # Note that $ac_compile itself does not contain backslashes and begins
6824    # with a dollar sign (not a hyphen), so the echo should work correctly.
6825    # The option is referenced via a variable to avoid confusing sed.
6826    lt_compile=`echo "$ac_compile" | $SED \
6827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6829    -e 's:$: $lt_compiler_flag:'`
6830    (eval echo "\"\$as_me:6830: $lt_compile\"" >&5)
6831    (eval "$lt_compile" 2>conftest.err)
6832    ac_status=$?
6833    cat conftest.err >&5
6834    echo "$as_me:6834: \$? = $ac_status" >&5
6835    if (exit $ac_status) && test -s "$ac_outfile"; then
6836      # The compiler can only warn and ignore the option if not recognized
6837      # So say no if there are warnings other than the usual output.
6838      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6839      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6840      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6841        lt_cv_prog_compiler_rtti_exceptions=yes
6842      fi
6843    fi
6844    $RM conftest*
6845
6846 fi
6847 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6848 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6849
6850 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6851     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6852 else
6853     :
6854 fi
6855
6856 fi
6857
6858
6859
6860
6861
6862
6863   lt_prog_compiler_wl=
6864 lt_prog_compiler_pic=
6865 lt_prog_compiler_static=
6866
6867 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6869
6870   if test "$GCC" = yes; then
6871     lt_prog_compiler_wl='-Wl,'
6872     lt_prog_compiler_static='-static'
6873
6874     case $host_os in
6875       aix*)
6876       # All AIX code is PIC.
6877       if test "$host_cpu" = ia64; then
6878         # AIX 5 now supports IA64 processor
6879         lt_prog_compiler_static='-Bstatic'
6880       fi
6881       ;;
6882
6883     amigaos*)
6884       if test "$host_cpu" = m68k; then
6885         # FIXME: we need at least 68020 code to build shared libraries, but
6886         # adding the `-m68020' flag to GCC prevents building anything better,
6887         # like `-m68040'.
6888         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6889       fi
6890       ;;
6891
6892     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6893       # PIC is the default for these OSes.
6894       ;;
6895
6896     mingw* | cygwin* | pw32* | os2*)
6897       # This hack is so that the source file can tell whether it is being
6898       # built for inclusion in a dll (and should export symbols for example).
6899       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6900       # (--disable-auto-import) libraries
6901       lt_prog_compiler_pic='-DDLL_EXPORT'
6902       ;;
6903
6904     darwin* | rhapsody*)
6905       # PIC is the default on this platform
6906       # Common symbols not allowed in MH_DYLIB files
6907       lt_prog_compiler_pic='-fno-common'
6908       ;;
6909
6910     hpux*)
6911       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6912       # not for PA HP-UX.
6913       case $host_cpu in
6914       hppa*64*|ia64*)
6915         # +Z the default
6916         ;;
6917       *)
6918         lt_prog_compiler_pic='-fPIC'
6919         ;;
6920       esac
6921       ;;
6922
6923     interix[3-9]*)
6924       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6925       # Instead, we relocate shared libraries at runtime.
6926       ;;
6927
6928     msdosdjgpp*)
6929       # Just because we use GCC doesn't mean we suddenly get shared libraries
6930       # on systems that don't support them.
6931       lt_prog_compiler_can_build_shared=no
6932       enable_shared=no
6933       ;;
6934
6935     *nto* | *qnx*)
6936       # QNX uses GNU C++, but need to define -shared option too, otherwise
6937       # it will coredump.
6938       lt_prog_compiler_pic='-fPIC -shared'
6939       ;;
6940
6941     sysv4*MP*)
6942       if test -d /usr/nec; then
6943         lt_prog_compiler_pic=-Kconform_pic
6944       fi
6945       ;;
6946
6947     *)
6948       lt_prog_compiler_pic='-fPIC'
6949       ;;
6950     esac
6951   else
6952     # PORTME Check for flag to pass linker flags through the system compiler.
6953     case $host_os in
6954     aix*)
6955       lt_prog_compiler_wl='-Wl,'
6956       if test "$host_cpu" = ia64; then
6957         # AIX 5 now supports IA64 processor
6958         lt_prog_compiler_static='-Bstatic'
6959       else
6960         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6961       fi
6962       ;;
6963     darwin*)
6964       # PIC is the default on this platform
6965       # Common symbols not allowed in MH_DYLIB files
6966       case $cc_basename in
6967       xlc*)
6968         lt_prog_compiler_pic='-qnocommon'
6969         lt_prog_compiler_wl='-Wl,'
6970         ;;
6971       esac
6972       ;;
6973
6974     mingw* | cygwin* | pw32* | os2*)
6975       # This hack is so that the source file can tell whether it is being
6976       # built for inclusion in a dll (and should export symbols for example).
6977       lt_prog_compiler_pic='-DDLL_EXPORT'
6978       ;;
6979
6980     hpux9* | hpux10* | hpux11*)
6981       lt_prog_compiler_wl='-Wl,'
6982       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6983       # not for PA HP-UX.
6984       case $host_cpu in
6985       hppa*64*|ia64*)
6986         # +Z the default
6987         ;;
6988       *)
6989         lt_prog_compiler_pic='+Z'
6990         ;;
6991       esac
6992       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6993       lt_prog_compiler_static='${wl}-a ${wl}archive'
6994       ;;
6995
6996     irix5* | irix6* | nonstopux*)
6997       lt_prog_compiler_wl='-Wl,'
6998       # PIC (with -KPIC) is the default.
6999       lt_prog_compiler_static='-non_shared'
7000       ;;
7001
7002     linux* | k*bsd*-gnu)
7003       case $cc_basename in
7004       icc* | ecc*)
7005         lt_prog_compiler_wl='-Wl,'
7006         lt_prog_compiler_pic='-KPIC'
7007         lt_prog_compiler_static='-static'
7008         ;;
7009       pgcc* | pgf77* | pgf90* | pgf95*)
7010         # Portland Group compilers (*not* the Pentium gcc compiler,
7011         # which looks to be a dead project)
7012         lt_prog_compiler_wl='-Wl,'
7013         lt_prog_compiler_pic='-fpic'
7014         lt_prog_compiler_static='-Bstatic'
7015         ;;
7016       ccc*)
7017         lt_prog_compiler_wl='-Wl,'
7018         # All Alpha code is PIC.
7019         lt_prog_compiler_static='-non_shared'
7020         ;;
7021       *)
7022         case `$CC -V 2>&1 | sed 5q` in
7023         *Sun\ C*)
7024           # Sun C 5.9
7025           lt_prog_compiler_pic='-KPIC'
7026           lt_prog_compiler_static='-Bstatic'
7027           lt_prog_compiler_wl='-Wl,'
7028           ;;
7029         *Sun\ F*)
7030           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7031           lt_prog_compiler_pic='-KPIC'
7032           lt_prog_compiler_static='-Bstatic'
7033           lt_prog_compiler_wl=''
7034           ;;
7035         esac
7036         ;;
7037       esac
7038       ;;
7039
7040     newsos6)
7041       lt_prog_compiler_pic='-KPIC'
7042       lt_prog_compiler_static='-Bstatic'
7043       ;;
7044
7045     *nto* | *qnx*)
7046       # QNX uses GNU C++, but need to define -shared option too, otherwise
7047       # it will coredump.
7048       lt_prog_compiler_pic='-fPIC -shared'
7049       ;;
7050
7051     osf3* | osf4* | osf5*)
7052       lt_prog_compiler_wl='-Wl,'
7053       # All OSF/1 code is PIC.
7054       lt_prog_compiler_static='-non_shared'
7055       ;;
7056
7057     rdos*)
7058       lt_prog_compiler_static='-non_shared'
7059       ;;
7060
7061     solaris*)
7062       lt_prog_compiler_pic='-KPIC'
7063       lt_prog_compiler_static='-Bstatic'
7064       case $cc_basename in
7065       f77* | f90* | f95*)
7066         lt_prog_compiler_wl='-Qoption ld ';;
7067       *)
7068         lt_prog_compiler_wl='-Wl,';;
7069       esac
7070       ;;
7071
7072     sunos4*)
7073       lt_prog_compiler_wl='-Qoption ld '
7074       lt_prog_compiler_pic='-PIC'
7075       lt_prog_compiler_static='-Bstatic'
7076       ;;
7077
7078     sysv4 | sysv4.2uw2* | sysv4.3*)
7079       lt_prog_compiler_wl='-Wl,'
7080       lt_prog_compiler_pic='-KPIC'
7081       lt_prog_compiler_static='-Bstatic'
7082       ;;
7083
7084     sysv4*MP*)
7085       if test -d /usr/nec ;then
7086         lt_prog_compiler_pic='-Kconform_pic'
7087         lt_prog_compiler_static='-Bstatic'
7088       fi
7089       ;;
7090
7091     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7092       lt_prog_compiler_wl='-Wl,'
7093       lt_prog_compiler_pic='-KPIC'
7094       lt_prog_compiler_static='-Bstatic'
7095       ;;
7096
7097     unicos*)
7098       lt_prog_compiler_wl='-Wl,'
7099       lt_prog_compiler_can_build_shared=no
7100       ;;
7101
7102     uts4*)
7103       lt_prog_compiler_pic='-pic'
7104       lt_prog_compiler_static='-Bstatic'
7105       ;;
7106
7107     *)
7108       lt_prog_compiler_can_build_shared=no
7109       ;;
7110     esac
7111   fi
7112
7113 case $host_os in
7114   # For platforms which do not support PIC, -DPIC is meaningless:
7115   *djgpp*)
7116     lt_prog_compiler_pic=
7117     ;;
7118   *)
7119     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7120     ;;
7121 esac
7122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7123 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7124
7125
7126
7127
7128
7129
7130 #
7131 # Check to make sure the PIC flag actually works.
7132 #
7133 if test -n "$lt_prog_compiler_pic"; then
7134   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7136 if test "${lt_prog_compiler_pic_works+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   lt_prog_compiler_pic_works=no
7140    ac_outfile=conftest.$ac_objext
7141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7142    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7143    # Insert the option either (1) after the last *FLAGS variable, or
7144    # (2) before a word containing "conftest.", or (3) at the end.
7145    # Note that $ac_compile itself does not contain backslashes and begins
7146    # with a dollar sign (not a hyphen), so the echo should work correctly.
7147    # The option is referenced via a variable to avoid confusing sed.
7148    lt_compile=`echo "$ac_compile" | $SED \
7149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151    -e 's:$: $lt_compiler_flag:'`
7152    (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
7153    (eval "$lt_compile" 2>conftest.err)
7154    ac_status=$?
7155    cat conftest.err >&5
7156    echo "$as_me:7156: \$? = $ac_status" >&5
7157    if (exit $ac_status) && test -s "$ac_outfile"; then
7158      # The compiler can only warn and ignore the option if not recognized
7159      # So say no if there are warnings other than the usual output.
7160      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7163        lt_prog_compiler_pic_works=yes
7164      fi
7165    fi
7166    $RM conftest*
7167
7168 fi
7169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7170 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7171
7172 if test x"$lt_prog_compiler_pic_works" = xyes; then
7173     case $lt_prog_compiler_pic in
7174      "" | " "*) ;;
7175      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7176      esac
7177 else
7178     lt_prog_compiler_pic=
7179      lt_prog_compiler_can_build_shared=no
7180 fi
7181
7182 fi
7183
7184
7185
7186
7187
7188
7189 #
7190 # Check to make sure the static flag actually works.
7191 #
7192 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7193 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7194 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7195 if test "${lt_prog_compiler_static_works+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   lt_prog_compiler_static_works=no
7199    save_LDFLAGS="$LDFLAGS"
7200    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7201    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7202    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7203      # The linker can only warn and ignore the option if not recognized
7204      # So say no if there are warnings
7205      if test -s conftest.err; then
7206        # Append any errors to the config.log.
7207        cat conftest.err 1>&5
7208        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7209        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7210        if diff conftest.exp conftest.er2 >/dev/null; then
7211          lt_prog_compiler_static_works=yes
7212        fi
7213      else
7214        lt_prog_compiler_static_works=yes
7215      fi
7216    fi
7217    $RM conftest*
7218    LDFLAGS="$save_LDFLAGS"
7219
7220 fi
7221 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7222 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7223
7224 if test x"$lt_prog_compiler_static_works" = xyes; then
7225     :
7226 else
7227     lt_prog_compiler_static=
7228 fi
7229
7230
7231
7232
7233
7234
7235
7236   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7237 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7238 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   lt_cv_prog_compiler_c_o=no
7242    $RM -r conftest 2>/dev/null
7243    mkdir conftest
7244    cd conftest
7245    mkdir out
7246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7247
7248    lt_compiler_flag="-o out/conftest2.$ac_objext"
7249    # Insert the option either (1) after the last *FLAGS variable, or
7250    # (2) before a word containing "conftest.", or (3) at the end.
7251    # Note that $ac_compile itself does not contain backslashes and begins
7252    # with a dollar sign (not a hyphen), so the echo should work correctly.
7253    lt_compile=`echo "$ac_compile" | $SED \
7254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7256    -e 's:$: $lt_compiler_flag:'`
7257    (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
7258    (eval "$lt_compile" 2>out/conftest.err)
7259    ac_status=$?
7260    cat out/conftest.err >&5
7261    echo "$as_me:7261: \$? = $ac_status" >&5
7262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7263    then
7264      # The compiler can only warn and ignore the option if not recognized
7265      # So say no if there are warnings
7266      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7269        lt_cv_prog_compiler_c_o=yes
7270      fi
7271    fi
7272    chmod u+w . 2>&5
7273    $RM conftest*
7274    # SGI C++ compiler will create directory out/ii_files/ for
7275    # template instantiation
7276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7277    $RM out/* && rmdir out
7278    cd ..
7279    $RM -r conftest
7280    $RM conftest*
7281
7282 fi
7283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7285
7286
7287
7288
7289
7290
7291   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7293 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   lt_cv_prog_compiler_c_o=no
7297    $RM -r conftest 2>/dev/null
7298    mkdir conftest
7299    cd conftest
7300    mkdir out
7301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7302
7303    lt_compiler_flag="-o out/conftest2.$ac_objext"
7304    # Insert the option either (1) after the last *FLAGS variable, or
7305    # (2) before a word containing "conftest.", or (3) at the end.
7306    # Note that $ac_compile itself does not contain backslashes and begins
7307    # with a dollar sign (not a hyphen), so the echo should work correctly.
7308    lt_compile=`echo "$ac_compile" | $SED \
7309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7311    -e 's:$: $lt_compiler_flag:'`
7312    (eval echo "\"\$as_me:7312: $lt_compile\"" >&5)
7313    (eval "$lt_compile" 2>out/conftest.err)
7314    ac_status=$?
7315    cat out/conftest.err >&5
7316    echo "$as_me:7316: \$? = $ac_status" >&5
7317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7318    then
7319      # The compiler can only warn and ignore the option if not recognized
7320      # So say no if there are warnings
7321      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7322      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7323      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7324        lt_cv_prog_compiler_c_o=yes
7325      fi
7326    fi
7327    chmod u+w . 2>&5
7328    $RM conftest*
7329    # SGI C++ compiler will create directory out/ii_files/ for
7330    # template instantiation
7331    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7332    $RM out/* && rmdir out
7333    cd ..
7334    $RM -r conftest
7335    $RM conftest*
7336
7337 fi
7338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7339 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7340
7341
7342
7343
7344 hard_links="nottested"
7345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7346   # do not overwrite the value of need_locks provided by the user
7347   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7349   hard_links=yes
7350   $RM conftest*
7351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7352   touch conftest.a
7353   ln conftest.a conftest.b 2>&5 || hard_links=no
7354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7355   echo "$as_me:$LINENO: result: $hard_links" >&5
7356 echo "${ECHO_T}$hard_links" >&6
7357   if test "$hard_links" = no; then
7358     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7360     need_locks=warn
7361   fi
7362 else
7363   need_locks=no
7364 fi
7365
7366
7367
7368
7369
7370
7371   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7373
7374   runpath_var=
7375   allow_undefined_flag=
7376   always_export_symbols=no
7377   archive_cmds=
7378   archive_expsym_cmds=
7379   compiler_needs_object=no
7380   enable_shared_with_static_runtimes=no
7381   export_dynamic_flag_spec=
7382   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7383   hardcode_automatic=no
7384   hardcode_direct=no
7385   hardcode_direct_absolute=no
7386   hardcode_libdir_flag_spec=
7387   hardcode_libdir_flag_spec_ld=
7388   hardcode_libdir_separator=
7389   hardcode_minus_L=no
7390   hardcode_shlibpath_var=unsupported
7391   inherit_rpath=no
7392   link_all_deplibs=unknown
7393   module_cmds=
7394   module_expsym_cmds=
7395   old_archive_from_new_cmds=
7396   old_archive_from_expsyms_cmds=
7397   thread_safe_flag_spec=
7398   whole_archive_flag_spec=
7399   # include_expsyms should be a list of space-separated symbols to be *always*
7400   # included in the symbol list
7401   include_expsyms=
7402   # exclude_expsyms can be an extended regexp of symbols to exclude
7403   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7404   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7405   # as well as any symbol that contains `d'.
7406   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7407   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7408   # platforms (ab)use it in PIC code, but their linkers get confused if
7409   # the symbol is explicitly referenced.  Since portable code cannot
7410   # rely on this symbol name, it's probably fine to never include it in
7411   # preloaded symbol tables.
7412   extract_expsyms_cmds=
7413
7414   case $host_os in
7415   cygwin* | mingw* | pw32*)
7416     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7417     # When not using gcc, we currently assume that we are using
7418     # Microsoft Visual C++.
7419     if test "$GCC" != yes; then
7420       with_gnu_ld=no
7421     fi
7422     ;;
7423   interix*)
7424     # we just hope/assume this is gcc and not c89 (= MSVC++)
7425     with_gnu_ld=yes
7426     ;;
7427   openbsd*)
7428     with_gnu_ld=no
7429     ;;
7430   esac
7431
7432   ld_shlibs=yes
7433   if test "$with_gnu_ld" = yes; then
7434     # If archive_cmds runs LD, not CC, wlarc should be empty
7435     wlarc='${wl}'
7436
7437     # Set some defaults for GNU ld with shared library support. These
7438     # are reset later if shared libraries are not supported. Putting them
7439     # here allows them to be overridden if necessary.
7440     runpath_var=LD_RUN_PATH
7441     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7442     export_dynamic_flag_spec='${wl}--export-dynamic'
7443     # ancient GNU ld didn't support --whole-archive et. al.
7444     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7445       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7446     else
7447       whole_archive_flag_spec=
7448     fi
7449     supports_anon_versioning=no
7450     case `$LD -v 2>&1` in
7451       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7452       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7453       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7454       *\ 2.11.*) ;; # other 2.11 versions
7455       *) supports_anon_versioning=yes ;;
7456     esac
7457
7458     # See if GNU ld supports shared libraries.
7459     case $host_os in
7460     aix3* | aix4* | aix5*)
7461       # On AIX/PPC, the GNU linker is very broken
7462       if test "$host_cpu" != ia64; then
7463         ld_shlibs=no
7464         cat <<_LT_EOF 1>&2
7465
7466 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7467 *** to be unable to reliably create shared libraries on AIX.
7468 *** Therefore, libtool is disabling shared libraries support.  If you
7469 *** really care for shared libraries, you may want to modify your PATH
7470 *** so that a non-GNU linker is found, and then restart.
7471
7472 _LT_EOF
7473       fi
7474       ;;
7475
7476     amigaos*)
7477       if test "$host_cpu" = m68k; then
7478         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)'
7479         hardcode_libdir_flag_spec='-L$libdir'
7480         hardcode_minus_L=yes
7481       fi
7482
7483       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7484       # that the semantics of dynamic libraries on AmigaOS, at least up
7485       # to version 4, is to share data among multiple programs linked
7486       # with the same dynamic library.  Since this doesn't match the
7487       # behavior of shared libraries on other platforms, we can't use
7488       # them.
7489       ld_shlibs=no
7490       ;;
7491
7492     beos*)
7493       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7494         allow_undefined_flag=unsupported
7495         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7496         # support --undefined.  This deserves some investigation.  FIXME
7497         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7498       else
7499         ld_shlibs=no
7500       fi
7501       ;;
7502
7503     cygwin* | mingw* | pw32*)
7504       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7505       # as there is no search path for DLLs.
7506       hardcode_libdir_flag_spec='-L$libdir'
7507       allow_undefined_flag=unsupported
7508       always_export_symbols=no
7509       enable_shared_with_static_runtimes=yes
7510       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7511
7512       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7513         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7514         # If the export-symbols file already is a .def file (1st line
7515         # is EXPORTS), use it as is; otherwise, prepend...
7516         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7517           cp $export_symbols $output_objdir/$soname.def;
7518         else
7519           echo EXPORTS > $output_objdir/$soname.def;
7520           cat $export_symbols >> $output_objdir/$soname.def;
7521         fi~
7522         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7523       else
7524         ld_shlibs=no
7525       fi
7526       ;;
7527
7528     interix[3-9]*)
7529       hardcode_direct=no
7530       hardcode_shlibpath_var=no
7531       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7532       export_dynamic_flag_spec='${wl}-E'
7533       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7534       # Instead, shared libraries are loaded at an image base (0x10000000 by
7535       # default) and relocated if they conflict, which is a slow very memory
7536       # consuming and fragmenting process.  To avoid this, we pick a random,
7537       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7538       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7539       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7540       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'
7541       ;;
7542
7543     gnu* | linux* | tpf* | k*bsd*-gnu)
7544       tmp_diet=no
7545       if test "$host_os" = linux-dietlibc; then
7546         case $cc_basename in
7547           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7548         esac
7549       fi
7550       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7551          && test "$tmp_diet" = no
7552       then
7553         tmp_addflag=
7554         case $cc_basename,$host_cpu in
7555         pgcc*)                          # Portland Group C compiler
7556           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'
7557           tmp_addflag=' $pic_flag'
7558           ;;
7559         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7560           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'
7561           tmp_addflag=' $pic_flag -Mnomain' ;;
7562         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7563           tmp_addflag=' -i_dynamic' ;;
7564         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7565           tmp_addflag=' -i_dynamic -nofor_main' ;;
7566         ifc* | ifort*)                  # Intel Fortran compiler
7567           tmp_addflag=' -nofor_main' ;;
7568         esac
7569         case `$CC -V 2>&1 | sed 5q` in
7570         *Sun\ C*)                       # Sun C 5.9
7571           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'
7572           compiler_needs_object=yes
7573           tmp_sharedflag='-G' ;;
7574         *Sun\ F*)                       # Sun Fortran 8.3
7575           tmp_sharedflag='-G' ;;
7576         *)
7577           tmp_sharedflag='-shared' ;;
7578         esac
7579         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7580
7581         if test "x$supports_anon_versioning" = xyes; then
7582           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7583             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7584             echo "local: *; };" >> $output_objdir/$libname.ver~
7585             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7586         fi
7587       else
7588         ld_shlibs=no
7589       fi
7590       ;;
7591
7592     netbsd*)
7593       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7594         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7595         wlarc=
7596       else
7597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7598         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7599       fi
7600       ;;
7601
7602     solaris*)
7603       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7604         ld_shlibs=no
7605         cat <<_LT_EOF 1>&2
7606
7607 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7608 *** create shared libraries on Solaris systems.  Therefore, libtool
7609 *** is disabling shared libraries support.  We urge you to upgrade GNU
7610 *** binutils to release 2.9.1 or newer.  Another option is to modify
7611 *** your PATH or compiler configuration so that the native linker is
7612 *** used, and then restart.
7613
7614 _LT_EOF
7615       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7616         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7618       else
7619         ld_shlibs=no
7620       fi
7621       ;;
7622
7623     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7624       case `$LD -v 2>&1` in
7625         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7626         ld_shlibs=no
7627         cat <<_LT_EOF 1>&2
7628
7629 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7630 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7631 *** is disabling shared libraries support.  We urge you to upgrade GNU
7632 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7633 *** your PATH or compiler configuration so that the native linker is
7634 *** used, and then restart.
7635
7636 _LT_EOF
7637         ;;
7638         *)
7639           # For security reasons, it is highly recommended that you always
7640           # use absolute paths for naming shared libraries, and exclude the
7641           # DT_RUNPATH tag from executables and libraries.  But doing so
7642           # requires that you compile everything twice, which is a pain.
7643           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7644             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7645             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7647           else
7648             ld_shlibs=no
7649           fi
7650         ;;
7651       esac
7652       ;;
7653
7654     sunos4*)
7655       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7656       wlarc=
7657       hardcode_direct=yes
7658       hardcode_shlibpath_var=no
7659       ;;
7660
7661     *)
7662       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7663         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7664         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7665       else
7666         ld_shlibs=no
7667       fi
7668       ;;
7669     esac
7670
7671     if test "$ld_shlibs" = no; then
7672       runpath_var=
7673       hardcode_libdir_flag_spec=
7674       export_dynamic_flag_spec=
7675       whole_archive_flag_spec=
7676     fi
7677   else
7678     # PORTME fill in a description of your system's linker (not GNU ld)
7679     case $host_os in
7680     aix3*)
7681       allow_undefined_flag=unsupported
7682       always_export_symbols=yes
7683       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'
7684       # Note: this linker hardcodes the directories in LIBPATH if there
7685       # are no directories specified by -L.
7686       hardcode_minus_L=yes
7687       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7688         # Neither direct hardcoding nor static linking is supported with a
7689         # broken collect2.
7690         hardcode_direct=unsupported
7691       fi
7692       ;;
7693
7694     aix4* | aix5*)
7695       if test "$host_cpu" = ia64; then
7696         # On IA64, the linker does run time linking by default, so we don't
7697         # have to do anything special.
7698         aix_use_runtimelinking=no
7699         exp_sym_flag='-Bexport'
7700         no_entry_flag=""
7701       else
7702         # If we're using GNU nm, then we don't want the "-C" option.
7703         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7704         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7705           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'
7706         else
7707           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'
7708         fi
7709         aix_use_runtimelinking=no
7710
7711         # Test if we are trying to use run time linking or normal
7712         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7713         # need to do runtime linking.
7714         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7715           for ld_flag in $LDFLAGS; do
7716           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7717             aix_use_runtimelinking=yes
7718             break
7719           fi
7720           done
7721           ;;
7722         esac
7723
7724         exp_sym_flag='-bexport'
7725         no_entry_flag='-bnoentry'
7726       fi
7727
7728       # When large executables or shared objects are built, AIX ld can
7729       # have problems creating the table of contents.  If linking a library
7730       # or program results in "error TOC overflow" add -mminimal-toc to
7731       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7732       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7733
7734       archive_cmds=''
7735       hardcode_direct=yes
7736       hardcode_direct_absolute=yes
7737       hardcode_libdir_separator=':'
7738       link_all_deplibs=yes
7739       file_list_spec='${wl}-f,'
7740
7741       if test "$GCC" = yes; then
7742         case $host_os in aix4.[012]|aix4.[012].*)
7743         # We only want to do this on AIX 4.2 and lower, the check
7744         # below for broken collect2 doesn't work under 4.3+
7745           collect2name=`${CC} -print-prog-name=collect2`
7746           if test -f "$collect2name" &&
7747            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7748           then
7749           # We have reworked collect2
7750           :
7751           else
7752           # We have old collect2
7753           hardcode_direct=unsupported
7754           # It fails to find uninstalled libraries when the uninstalled
7755           # path is not listed in the libpath.  Setting hardcode_minus_L
7756           # to unsupported forces relinking
7757           hardcode_minus_L=yes
7758           hardcode_libdir_flag_spec='-L$libdir'
7759           hardcode_libdir_separator=
7760           fi
7761           ;;
7762         esac
7763         shared_flag='-shared'
7764         if test "$aix_use_runtimelinking" = yes; then
7765           shared_flag="$shared_flag "'${wl}-G'
7766         fi
7767       else
7768         # not using gcc
7769         if test "$host_cpu" = ia64; then
7770         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7771         # chokes on -Wl,-G. The following line is correct:
7772           shared_flag='-G'
7773         else
7774           if test "$aix_use_runtimelinking" = yes; then
7775             shared_flag='${wl}-G'
7776           else
7777             shared_flag='${wl}-bM:SRE'
7778           fi
7779         fi
7780       fi
7781
7782       # It seems that -bexpall does not export symbols beginning with
7783       # underscore (_), so it is better to generate a list of symbols to export.
7784       always_export_symbols=yes
7785       if test "$aix_use_runtimelinking" = yes; then
7786         # Warning - without using the other runtime loading flags (-brtl),
7787         # -berok will link without error, but may produce a broken library.
7788         allow_undefined_flag='-berok'
7789         # Determine the default libpath from the value encoded in an
7790         # empty executable.
7791         cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h.  */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h.  */
7797
7798 int
7799 main ()
7800 {
7801
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext conftest$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808   (eval $ac_link) 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } &&
7815          { ac_try='test -z "$ac_c_werror_flag"
7816                          || test ! -s conftest.err'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest$ac_exeext'
7823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824   (eval $ac_try) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); }; }; then
7828
7829 lt_aix_libpath_sed='
7830     /Import File Strings/,/^$/ {
7831         /^0/ {
7832             s/^0  *\(.*\)$/\1/
7833             p
7834         }
7835     }'
7836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7837 # Check for a 64-bit object if we didn't find anything.
7838 if test -z "$aix_libpath"; then
7839   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7840 fi
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 fi
7846 rm -f conftest.err conftest.$ac_objext \
7847       conftest$ac_exeext conftest.$ac_ext
7848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7849
7850         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7851         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"
7852       else
7853         if test "$host_cpu" = ia64; then
7854           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7855           allow_undefined_flag="-z nodefs"
7856           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"
7857         else
7858          # Determine the default libpath from the value encoded in an
7859          # empty executable.
7860          cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866
7867 int
7868 main ()
7869 {
7870
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877   (eval $ac_link) 2>conftest.er1
7878   ac_status=$?
7879   grep -v '^ *+' conftest.er1 >conftest.err
7880   rm -f conftest.er1
7881   cat conftest.err >&5
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } &&
7884          { ac_try='test -z "$ac_c_werror_flag"
7885                          || test ! -s conftest.err'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; } &&
7891          { ac_try='test -s conftest$ac_exeext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897
7898 lt_aix_libpath_sed='
7899     /Import File Strings/,/^$/ {
7900         /^0/ {
7901             s/^0  *\(.*\)$/\1/
7902             p
7903         }
7904     }'
7905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7906 # Check for a 64-bit object if we didn't find anything.
7907 if test -z "$aix_libpath"; then
7908   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7909 fi
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 fi
7915 rm -f conftest.err conftest.$ac_objext \
7916       conftest$ac_exeext conftest.$ac_ext
7917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918
7919          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920           # Warning - without using the other run time loading flags,
7921           # -berok will link without error, but may produce a broken library.
7922           no_undefined_flag=' ${wl}-bernotok'
7923           allow_undefined_flag=' ${wl}-berok'
7924           # Exported symbols can be pulled into shared objects from archives
7925           whole_archive_flag_spec='$convenience'
7926           archive_cmds_need_lc=yes
7927           # This is similar to how AIX traditionally builds its shared libraries.
7928           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'
7929         fi
7930       fi
7931       ;;
7932
7933     amigaos*)
7934       if test "$host_cpu" = m68k; then
7935         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)'
7936         hardcode_libdir_flag_spec='-L$libdir'
7937         hardcode_minus_L=yes
7938       fi
7939       # see comment about different semantics on the GNU ld section
7940       ld_shlibs=no
7941       ;;
7942
7943     bsdi[45]*)
7944       export_dynamic_flag_spec=-rdynamic
7945       ;;
7946
7947     cygwin* | mingw* | pw32*)
7948       # When not using gcc, we currently assume that we are using
7949       # Microsoft Visual C++.
7950       # hardcode_libdir_flag_spec is actually meaningless, as there is
7951       # no search path for DLLs.
7952       hardcode_libdir_flag_spec=' '
7953       allow_undefined_flag=unsupported
7954       # Tell ltmain to make .lib files, not .a files.
7955       libext=lib
7956       # Tell ltmain to make .dll files, not .so files.
7957       shrext_cmds=".dll"
7958       # FIXME: Setting linknames here is a bad hack.
7959       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7960       # The linker will automatically build a .lib file if we build a DLL.
7961       old_archive_from_new_cmds='true'
7962       # FIXME: Should let the user specify the lib program.
7963       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7964       fix_srcfile_path='`cygpath -w "$srcfile"`'
7965       enable_shared_with_static_runtimes=yes
7966       ;;
7967
7968     darwin* | rhapsody*)
7969       case $host_os in
7970       rhapsody* | darwin1.[012])
7971         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7972         ;;
7973       *) # Darwin 1.3 on
7974         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7975         10.[012])
7976           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7977           ;;
7978         10.*)
7979           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7980           ;;
7981         esac
7982         ;;
7983       esac
7984       archive_cmds_need_lc=no
7985       hardcode_direct=no
7986       hardcode_automatic=yes
7987       hardcode_shlibpath_var=unsupported
7988       whole_archive_flag_spec=''
7989       link_all_deplibs=yes
7990       if test "$GCC" = yes ; then
7991         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   lt_cv_apple_cc_single_mod=no
7995         if test -z "${LT_MULTI_MODULE}"; then
7996           # By default we will add the -single_module flag. You can override
7997           # by either setting the environment variable LT_MULTI_MODULE
7998           # non-empty at configure time, or by adding -multi-module to the
7999           # link flags.
8000           echo "int foo(void){return 1;}" > conftest.c
8001           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8002               -dynamiclib ${wl}-single_module conftest.c
8003           if test -f libconftest.dylib; then
8004               lt_cv_apple_cc_single_mod=yes
8005               rm libconftest.dylib
8006           fi
8007           rm conftest.$ac_ext
8008         fi
8009 fi
8010
8011         output_verbose_link_cmd=echo
8012         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8013           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8014           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8015         else
8016           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8017           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8018         fi
8019         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8020         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8021       else
8022         case $cc_basename in
8023         xlc*)
8024           output_verbose_link_cmd=echo
8025           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8026           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8027           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8028           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8029           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030           ;;
8031         *)
8032           ld_shlibs=no
8033           ;;
8034         esac
8035       fi
8036       ;;
8037
8038     dgux*)
8039       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040       hardcode_libdir_flag_spec='-L$libdir'
8041       hardcode_shlibpath_var=no
8042       ;;
8043
8044     freebsd1*)
8045       ld_shlibs=no
8046       ;;
8047
8048     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8049     # support.  Future versions do this automatically, but an explicit c++rt0.o
8050     # does not break anything, and helps significantly (at the cost of a little
8051     # extra space).
8052     freebsd2.2*)
8053       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8054       hardcode_libdir_flag_spec='-R$libdir'
8055       hardcode_direct=yes
8056       hardcode_shlibpath_var=no
8057       ;;
8058
8059     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8060     freebsd2*)
8061       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8062       hardcode_direct=yes
8063       hardcode_minus_L=yes
8064       hardcode_shlibpath_var=no
8065       ;;
8066
8067     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8068     freebsd* | dragonfly*)
8069       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8070       hardcode_libdir_flag_spec='-R$libdir'
8071       hardcode_direct=yes
8072       hardcode_shlibpath_var=no
8073       ;;
8074
8075     hpux9*)
8076       if test "$GCC" = yes; then
8077         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'
8078       else
8079         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'
8080       fi
8081       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8082       hardcode_libdir_separator=:
8083       hardcode_direct=yes
8084
8085       # hardcode_minus_L: Not really in the search PATH,
8086       # but as the default location of the library.
8087       hardcode_minus_L=yes
8088       export_dynamic_flag_spec='${wl}-E'
8089       ;;
8090
8091     hpux10*)
8092       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8093         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8094       else
8095         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8096       fi
8097       if test "$with_gnu_ld" = no; then
8098         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099         hardcode_libdir_flag_spec_ld='+b $libdir'
8100         hardcode_libdir_separator=:
8101         hardcode_direct=yes
8102         hardcode_direct_absolute=yes
8103         export_dynamic_flag_spec='${wl}-E'
8104         # hardcode_minus_L: Not really in the search PATH,
8105         # but as the default location of the library.
8106         hardcode_minus_L=yes
8107       fi
8108       ;;
8109
8110     hpux11*)
8111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8112         case $host_cpu in
8113         hppa*64*)
8114           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115           ;;
8116         ia64*)
8117           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8118           ;;
8119         *)
8120           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8121           ;;
8122         esac
8123       else
8124         case $host_cpu in
8125         hppa*64*)
8126           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127           ;;
8128         ia64*)
8129           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8130           ;;
8131         *)
8132           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8133           ;;
8134         esac
8135       fi
8136       if test "$with_gnu_ld" = no; then
8137         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8138         hardcode_libdir_separator=:
8139
8140         case $host_cpu in
8141         hppa*64*|ia64*)
8142           hardcode_direct=no
8143           hardcode_shlibpath_var=no
8144           ;;
8145         *)
8146           hardcode_direct=yes
8147           hardcode_direct_absolute=yes
8148           export_dynamic_flag_spec='${wl}-E'
8149
8150           # hardcode_minus_L: Not really in the search PATH,
8151           # but as the default location of the library.
8152           hardcode_minus_L=yes
8153           ;;
8154         esac
8155       fi
8156       ;;
8157
8158     irix5* | irix6* | nonstopux*)
8159       if test "$GCC" = yes; then
8160         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'
8161         # Try to use the -exported_symbol ld option, if it does not
8162         # work, assume that -exports_file does not work either and
8163         # implicitly export all symbols.
8164         save_LDFLAGS="$LDFLAGS"
8165         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8166         cat >conftest.$ac_ext <<_ACEOF
8167 int foo(void) {}
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171   (eval $ac_link) 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag"
8179                          || test ! -s conftest.err'
8180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181   (eval $ac_try) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; } &&
8185          { ac_try='test -s conftest$ac_exeext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   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'
8192
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 fi
8198 rm -f conftest.err conftest.$ac_objext \
8199       conftest$ac_exeext conftest.$ac_ext
8200         LDFLAGS="$save_LDFLAGS"
8201       else
8202         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'
8203         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'
8204       fi
8205       archive_cmds_need_lc='no'
8206       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207       hardcode_libdir_separator=:
8208       inherit_rpath=yes
8209       link_all_deplibs=yes
8210       ;;
8211
8212     netbsd*)
8213       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8214         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8215       else
8216         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8217       fi
8218       hardcode_libdir_flag_spec='-R$libdir'
8219       hardcode_direct=yes
8220       hardcode_shlibpath_var=no
8221       ;;
8222
8223     newsos6)
8224       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225       hardcode_direct=yes
8226       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227       hardcode_libdir_separator=:
8228       hardcode_shlibpath_var=no
8229       ;;
8230
8231     *nto* | *qnx*)
8232       ;;
8233
8234     openbsd*)
8235       hardcode_direct=yes
8236       hardcode_shlibpath_var=no
8237       hardcode_direct_absolute=yes
8238       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8239         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8240         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8241         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242         export_dynamic_flag_spec='${wl}-E'
8243       else
8244         case $host_os in
8245         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8246           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247           hardcode_libdir_flag_spec='-R$libdir'
8248           ;;
8249         *)
8250           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252           ;;
8253         esac
8254       fi
8255       ;;
8256
8257     os2*)
8258       hardcode_libdir_flag_spec='-L$libdir'
8259       hardcode_minus_L=yes
8260       allow_undefined_flag=unsupported
8261       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'
8262       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8263       ;;
8264
8265     osf3*)
8266       if test "$GCC" = yes; then
8267         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8268         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'
8269       else
8270         allow_undefined_flag=' -expect_unresolved \*'
8271         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'
8272       fi
8273       archive_cmds_need_lc='no'
8274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275       hardcode_libdir_separator=:
8276       ;;
8277
8278     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8279       if test "$GCC" = yes; then
8280         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8281         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'
8282         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283       else
8284         allow_undefined_flag=' -expect_unresolved \*'
8285         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'
8286         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~
8287         $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'
8288
8289         # Both c and cxx compiler support -rpath directly
8290         hardcode_libdir_flag_spec='-rpath $libdir'
8291       fi
8292       archive_cmds_need_lc='no'
8293       hardcode_libdir_separator=:
8294       ;;
8295
8296     solaris*)
8297       no_undefined_flag=' -z defs'
8298       if test "$GCC" = yes; then
8299         wlarc='${wl}'
8300         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8302           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8303       else
8304         case `$CC -V 2>&1` in
8305         *"Compilers 5.0"*)
8306           wlarc=''
8307           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8309           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8310           ;;
8311         *)
8312           wlarc='${wl}'
8313           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8314           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8316           ;;
8317         esac
8318       fi
8319       hardcode_libdir_flag_spec='-R$libdir'
8320       hardcode_shlibpath_var=no
8321       case $host_os in
8322       solaris2.[0-5] | solaris2.[0-5].*) ;;
8323       *)
8324         # The compiler driver will combine and reorder linker options,
8325         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8326         # but is careful enough not to reorder.
8327         # Supported since Solaris 2.6 (maybe 2.5.1?)
8328         if test "$GCC" = yes; then
8329           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8330         else
8331           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8332         fi
8333         ;;
8334       esac
8335       link_all_deplibs=yes
8336       ;;
8337
8338     sunos4*)
8339       if test "x$host_vendor" = xsequent; then
8340         # Use $CC to link under sequent, because it throws in some extra .o
8341         # files that make .init and .fini sections work.
8342         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8343       else
8344         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8345       fi
8346       hardcode_libdir_flag_spec='-L$libdir'
8347       hardcode_direct=yes
8348       hardcode_minus_L=yes
8349       hardcode_shlibpath_var=no
8350       ;;
8351
8352     sysv4)
8353       case $host_vendor in
8354         sni)
8355           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356           hardcode_direct=yes # is this really true???
8357         ;;
8358         siemens)
8359           ## LD is ld it makes a PLAMLIB
8360           ## CC just makes a GrossModule.
8361           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8362           reload_cmds='$CC -r -o $output$reload_objs'
8363           hardcode_direct=no
8364         ;;
8365         motorola)
8366           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8368         ;;
8369       esac
8370       runpath_var='LD_RUN_PATH'
8371       hardcode_shlibpath_var=no
8372       ;;
8373
8374     sysv4.3*)
8375       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376       hardcode_shlibpath_var=no
8377       export_dynamic_flag_spec='-Bexport'
8378       ;;
8379
8380     sysv4*MP*)
8381       if test -d /usr/nec; then
8382         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383         hardcode_shlibpath_var=no
8384         runpath_var=LD_RUN_PATH
8385         hardcode_runpath_var=yes
8386         ld_shlibs=yes
8387       fi
8388       ;;
8389
8390     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8391       no_undefined_flag='${wl}-z,text'
8392       archive_cmds_need_lc=no
8393       hardcode_shlibpath_var=no
8394       runpath_var='LD_RUN_PATH'
8395
8396       if test "$GCC" = yes; then
8397         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8399       else
8400         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8402       fi
8403       ;;
8404
8405     sysv5* | sco3.2v5* | sco5v6*)
8406       # Note: We can NOT use -z defs as we might desire, because we do not
8407       # link with -lc, and that would cause any symbols used from libc to
8408       # always be unresolved, which means just about no library would
8409       # ever link correctly.  If we're not using GNU ld we use -z text
8410       # though, which does catch some bad symbols but isn't as heavy-handed
8411       # as -z defs.
8412       no_undefined_flag='${wl}-z,text'
8413       allow_undefined_flag='${wl}-z,nodefs'
8414       archive_cmds_need_lc=no
8415       hardcode_shlibpath_var=no
8416       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8417       hardcode_libdir_separator=':'
8418       link_all_deplibs=yes
8419       export_dynamic_flag_spec='${wl}-Bexport'
8420       runpath_var='LD_RUN_PATH'
8421
8422       if test "$GCC" = yes; then
8423         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425       else
8426         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428       fi
8429       ;;
8430
8431     uts4*)
8432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433       hardcode_libdir_flag_spec='-L$libdir'
8434       hardcode_shlibpath_var=no
8435       ;;
8436
8437     *)
8438       ld_shlibs=no
8439       ;;
8440     esac
8441
8442     if test x$host_vendor = xsni; then
8443       case $host in
8444       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8445         export_dynamic_flag_spec='${wl}-Blargedynsym'
8446         ;;
8447       esac
8448     fi
8449   fi
8450
8451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8452 echo "${ECHO_T}$ld_shlibs" >&6
8453 test "$ld_shlibs" = no && can_build_shared=no
8454
8455 with_gnu_ld=$with_gnu_ld
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 #
8472 # Do we need to explicitly link libc?
8473 #
8474 case "x$archive_cmds_need_lc" in
8475 x|xyes)
8476   # Assume -lc should be added
8477   archive_cmds_need_lc=yes
8478
8479   if test "$enable_shared" = yes && test "$GCC" = yes; then
8480     case $archive_cmds in
8481     *'~'*)
8482       # FIXME: we may have to deal with multi-command sequences.
8483       ;;
8484     '$CC '*)
8485       # Test whether the compiler implicitly links with -lc since on some
8486       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487       # to ld, don't add -lc before -lgcc.
8488       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8490       $RM conftest*
8491       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494   (eval $ac_compile) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } 2>conftest.err; then
8498         soname=conftest
8499         lib=conftest
8500         libobjs=conftest.$ac_objext
8501         deplibs=
8502         wl=$lt_prog_compiler_wl
8503         pic_flag=$lt_prog_compiler_pic
8504         compiler_flags=-v
8505         linker_flags=-v
8506         verstring=
8507         output_objdir=.
8508         libname=conftest
8509         lt_save_allow_undefined_flag=$allow_undefined_flag
8510         allow_undefined_flag=
8511         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }
8516         then
8517           archive_cmds_need_lc=no
8518         else
8519           archive_cmds_need_lc=yes
8520         fi
8521         allow_undefined_flag=$lt_save_allow_undefined_flag
8522       else
8523         cat conftest.err 1>&5
8524       fi
8525       $RM conftest*
8526       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528       ;;
8529     esac
8530   fi
8531   ;;
8532 esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8692 withGCC=$GCC
8693 if test "$withGCC" = yes; then
8694   case $host_os in
8695     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8696     *) lt_awk_arg="/^libraries:/" ;;
8697   esac
8698   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8699   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8700     # if the path contains ";" then we assume it to be the separator
8701     # otherwise default to the standard path separator (i.e. ":") - it is
8702     # assumed that no part of a normal pathname contains ";" but that should
8703     # okay in the real world where ";" in dirpaths is itself problematic.
8704     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8705   else
8706     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8707   fi
8708   # Ok, now we have the path, separated by spaces, we can step through it
8709   # and add multilib dir if necessary.
8710   lt_tmp_lt_search_path_spec=
8711   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8712   for lt_sys_path in $lt_search_path_spec; do
8713     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8714       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8715     else
8716       test -d "$lt_sys_path" && \
8717         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8718     fi
8719   done
8720   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8721 BEGIN {RS=" "; FS="/|\n";} {
8722   lt_foo="";
8723   lt_count=0;
8724   for (lt_i = NF; lt_i > 0; lt_i--) {
8725     if ($lt_i != "" && $lt_i != ".") {
8726       if ($lt_i == "..") {
8727         lt_count++;
8728       } else {
8729         if (lt_count == 0) {
8730           lt_foo="/" $lt_i lt_foo;
8731         } else {
8732           lt_count--;
8733         }
8734       }
8735     }
8736   }
8737   if (lt_foo != "") { lt_freq[lt_foo]++; }
8738   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8739 }'`
8740   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8741 else
8742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743 fi
8744 library_names_spec=
8745 libname_spec='lib$name'
8746 soname_spec=
8747 shrext_cmds=".so"
8748 postinstall_cmds=
8749 postuninstall_cmds=
8750 finish_cmds=
8751 finish_eval=
8752 shlibpath_var=
8753 shlibpath_overrides_runpath=unknown
8754 version_type=none
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 need_lib_prefix=unknown
8758 hardcode_into_libs=no
8759
8760 # when you set need_version to no, make sure it does not cause -set_version
8761 # flags to be left without arguments
8762 need_version=unknown
8763
8764 case $host_os in
8765 aix3*)
8766   version_type=linux
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8768   shlibpath_var=LIBPATH
8769
8770   # AIX 3 has no versioning support, so we append a major version to the name.
8771   soname_spec='${libname}${release}${shared_ext}$major'
8772   ;;
8773
8774 aix4* | aix5*)
8775   version_type=linux
8776   need_lib_prefix=no
8777   need_version=no
8778   hardcode_into_libs=yes
8779   if test "$host_cpu" = ia64; then
8780     # AIX 5 supports IA64
8781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8782     shlibpath_var=LD_LIBRARY_PATH
8783   else
8784     # With GCC up to 2.95.x, collect2 would create an import file
8785     # for dependence libraries.  The import file would start with
8786     # the line `#! .'.  This would cause the generated library to
8787     # depend on `.', always an invalid library.  This was fixed in
8788     # development snapshots of GCC prior to 3.0.
8789     case $host_os in
8790       aix4 | aix4.[01] | aix4.[01].*)
8791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8792            echo ' yes '
8793            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8794         :
8795       else
8796         can_build_shared=no
8797       fi
8798       ;;
8799     esac
8800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8801     # soname into executable. Probably we can add versioning support to
8802     # collect2, so additional links can be useful in future.
8803     if test "$aix_use_runtimelinking" = yes; then
8804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8805       # instead of lib<name>.a to let people know that these are not
8806       # typical AIX shared libraries.
8807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808     else
8809       # We preserve .a as extension for shared libraries through AIX4.2
8810       # and later when we are not doing run time linking.
8811       library_names_spec='${libname}${release}.a $libname.a'
8812       soname_spec='${libname}${release}${shared_ext}$major'
8813     fi
8814     shlibpath_var=LIBPATH
8815   fi
8816   ;;
8817
8818 amigaos*)
8819   if test "$host_cpu" = m68k; then
8820     library_names_spec='$libname.ixlibrary $libname.a'
8821     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8822     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'
8823   else
8824     dynamic_linker=no
8825   fi
8826   ;;
8827
8828 beos*)
8829   library_names_spec='${libname}${shared_ext}'
8830   dynamic_linker="$host_os ld.so"
8831   shlibpath_var=LIBRARY_PATH
8832   ;;
8833
8834 bsdi[45]*)
8835   version_type=linux
8836   need_version=no
8837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838   soname_spec='${libname}${release}${shared_ext}$major'
8839   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843   # the default ld.so.conf also contains /usr/contrib/lib and
8844   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845   # libtool to hard-code these into programs
8846   ;;
8847
8848 cygwin* | mingw* | pw32*)
8849   version_type=windows
8850   shrext_cmds=".dll"
8851   need_version=no
8852   need_lib_prefix=no
8853
8854   case $withGCC,$host_os in
8855   yes,cygwin* | yes,mingw* | yes,pw32*)
8856     library_names_spec='$libname.dll.a'
8857     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858     postinstall_cmds='base_file=`basename \${file}`~
8859       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8860       dldir=$destdir/`dirname \$dlpath`~
8861       test -d \$dldir || mkdir -p \$dldir~
8862       $install_prog $dir/$dlname \$dldir/$dlname~
8863       chmod a+x \$dldir/$dlname~
8864       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8865         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8866       fi'
8867     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868       dlpath=$dir/\$dldll~
8869        $RM \$dlpath'
8870     shlibpath_overrides_runpath=yes
8871
8872     case $host_os in
8873     cygwin*)
8874       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877       ;;
8878     mingw*)
8879       # MinGW DLLs use traditional 'lib' prefix
8880       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8883         # It is most probably a Windows format PATH printed by
8884         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885         # path with ; separators, and with drive letters. We can handle the
8886         # drive letters (cygwin fileutils understands them), so leave them,
8887         # especially as we might pass files found there to a mingw objdump,
8888         # which wouldn't understand a cygwinified path. Ahh.
8889         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890       else
8891         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8892       fi
8893       ;;
8894     pw32*)
8895       # pw32 DLLs use 'pw' prefix rather than 'lib'
8896       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897       ;;
8898     esac
8899     ;;
8900
8901   *)
8902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903     ;;
8904   esac
8905   dynamic_linker='Win32 ld.exe'
8906   # FIXME: first we should search . and the directory the executable is in
8907   shlibpath_var=PATH
8908   ;;
8909
8910 darwin* | rhapsody*)
8911   dynamic_linker="$host_os dyld"
8912   version_type=darwin
8913   need_lib_prefix=no
8914   need_version=no
8915   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916   soname_spec='${libname}${release}${major}$shared_ext'
8917   shlibpath_overrides_runpath=yes
8918   shlibpath_var=DYLD_LIBRARY_PATH
8919   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8920
8921   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8922   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8923   ;;
8924
8925 dgux*)
8926   version_type=linux
8927   need_lib_prefix=no
8928   need_version=no
8929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8930   soname_spec='${libname}${release}${shared_ext}$major'
8931   shlibpath_var=LD_LIBRARY_PATH
8932   ;;
8933
8934 freebsd1*)
8935   dynamic_linker=no
8936   ;;
8937
8938 freebsd* | dragonfly*)
8939   # DragonFly does not have aout.  When/if they implement a new
8940   # versioning mechanism, adjust this.
8941   if test -x /usr/bin/objformat; then
8942     objformat=`/usr/bin/objformat`
8943   else
8944     case $host_os in
8945     freebsd[123]*) objformat=aout ;;
8946     *) objformat=elf ;;
8947     esac
8948   fi
8949   version_type=freebsd-$objformat
8950   case $version_type in
8951     freebsd-elf*)
8952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8953       need_version=no
8954       need_lib_prefix=no
8955       ;;
8956     freebsd-*)
8957       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8958       need_version=yes
8959       ;;
8960   esac
8961   shlibpath_var=LD_LIBRARY_PATH
8962   case $host_os in
8963   freebsd2*)
8964     shlibpath_overrides_runpath=yes
8965     ;;
8966   freebsd3.[01]* | freebsdelf3.[01]*)
8967     shlibpath_overrides_runpath=yes
8968     hardcode_into_libs=yes
8969     ;;
8970   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8971   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8972     shlibpath_overrides_runpath=no
8973     hardcode_into_libs=yes
8974     ;;
8975   *) # from 4.6 on, and DragonFly
8976     shlibpath_overrides_runpath=yes
8977     hardcode_into_libs=yes
8978     ;;
8979   esac
8980   ;;
8981
8982 gnu*)
8983   version_type=linux
8984   need_lib_prefix=no
8985   need_version=no
8986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8987   soname_spec='${libname}${release}${shared_ext}$major'
8988   shlibpath_var=LD_LIBRARY_PATH
8989   hardcode_into_libs=yes
8990   ;;
8991
8992 hpux9* | hpux10* | hpux11*)
8993   # Give a soname corresponding to the major version so that dld.sl refuses to
8994   # link against other versions.
8995   version_type=sunos
8996   need_lib_prefix=no
8997   need_version=no
8998   case $host_cpu in
8999   ia64*)
9000     shrext_cmds='.so'
9001     hardcode_into_libs=yes
9002     dynamic_linker="$host_os dld.so"
9003     shlibpath_var=LD_LIBRARY_PATH
9004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006     soname_spec='${libname}${release}${shared_ext}$major'
9007     if test "X$HPUX_IA64_MODE" = X32; then
9008       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9009     else
9010       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9011     fi
9012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013     ;;
9014   hppa*64*)
9015     shrext_cmds='.sl'
9016     hardcode_into_libs=yes
9017     dynamic_linker="$host_os dld.sl"
9018     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021     soname_spec='${libname}${release}${shared_ext}$major'
9022     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024     ;;
9025   *)
9026     shrext_cmds='.sl'
9027     dynamic_linker="$host_os dld.sl"
9028     shlibpath_var=SHLIB_PATH
9029     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031     soname_spec='${libname}${release}${shared_ext}$major'
9032     ;;
9033   esac
9034   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9035   postinstall_cmds='chmod 555 $lib'
9036   ;;
9037
9038 interix[3-9]*)
9039   version_type=linux
9040   need_lib_prefix=no
9041   need_version=no
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9045   shlibpath_var=LD_LIBRARY_PATH
9046   shlibpath_overrides_runpath=no
9047   hardcode_into_libs=yes
9048   ;;
9049
9050 irix5* | irix6* | nonstopux*)
9051   case $host_os in
9052     nonstopux*) version_type=nonstopux ;;
9053     *)
9054         if test "$lt_cv_prog_gnu_ld" = yes; then
9055                 version_type=linux
9056         else
9057                 version_type=irix
9058         fi ;;
9059   esac
9060   need_lib_prefix=no
9061   need_version=no
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9064   case $host_os in
9065   irix5* | nonstopux*)
9066     libsuff= shlibsuff=
9067     ;;
9068   *)
9069     case $LD in # libtool.m4 will add one of these switches to LD
9070     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071       libsuff= shlibsuff= libmagic=32-bit;;
9072     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073       libsuff=32 shlibsuff=N32 libmagic=N32;;
9074     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076     *) libsuff= shlibsuff= libmagic=never-match;;
9077     esac
9078     ;;
9079   esac
9080   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081   shlibpath_overrides_runpath=no
9082   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084   hardcode_into_libs=yes
9085   ;;
9086
9087 # No shared lib support for Linux oldld, aout, or coff.
9088 linux*oldld* | linux*aout* | linux*coff*)
9089   dynamic_linker=no
9090   ;;
9091
9092 # This must be Linux ELF.
9093 linux* | k*bsd*-gnu)
9094   version_type=linux
9095   need_lib_prefix=no
9096   need_version=no
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   shlibpath_overrides_runpath=no
9102   # Some binutils ld are patched to set DT_RUNPATH
9103   save_LDFLAGS=$LDFLAGS
9104   save_libdir=$libdir
9105   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9106        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9107   cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113
9114 int
9115 main ()
9116 {
9117
9118   ;
9119   return 0;
9120 }
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   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9145   shlibpath_overrides_runpath=yes
9146 fi
9147
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 fi
9153 rm -f conftest.err conftest.$ac_objext \
9154       conftest$ac_exeext conftest.$ac_ext
9155   LDFLAGS=$save_LDFLAGS
9156   libdir=$save_libdir
9157
9158   # This implies no fast_install, which is unacceptable.
9159   # Some rework will be needed to allow for fast_install
9160   # before this can be enabled.
9161   hardcode_into_libs=yes
9162
9163   # Append ld.so.conf contents to the search path
9164   if test -f /etc/ld.so.conf; then
9165     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9167   fi
9168
9169   # We used to test for /lib/ld.so.1 and disable shared libraries on
9170   # powerpc, because MkLinux only supported shared libraries with the
9171   # GNU dynamic linker.  Since this was broken with cross compilers,
9172   # most powerpc-linux boxes support dynamic linking these days and
9173   # people can always --disable-shared, the test was removed, and we
9174   # assume the GNU/Linux dynamic linker is in use.
9175   dynamic_linker='GNU/Linux ld.so'
9176   ;;
9177
9178 netbsd*)
9179   version_type=sunos
9180   need_lib_prefix=no
9181   need_version=no
9182   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9185     dynamic_linker='NetBSD (a.out) ld.so'
9186   else
9187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188     soname_spec='${libname}${release}${shared_ext}$major'
9189     dynamic_linker='NetBSD ld.elf_so'
9190   fi
9191   shlibpath_var=LD_LIBRARY_PATH
9192   shlibpath_overrides_runpath=yes
9193   hardcode_into_libs=yes
9194   ;;
9195
9196 newsos6)
9197   version_type=linux
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   ;;
9202
9203 *nto* | *qnx*)
9204   version_type=qnx
9205   need_lib_prefix=no
9206   need_version=no
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208   soname_spec='${libname}${release}${shared_ext}$major'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=no
9211   hardcode_into_libs=yes
9212   dynamic_linker='ldqnx.so'
9213   ;;
9214
9215 openbsd*)
9216   version_type=sunos
9217   sys_lib_dlsearch_path_spec="/usr/lib"
9218   need_lib_prefix=no
9219   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9220   case $host_os in
9221     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9222     *)                          need_version=no  ;;
9223   esac
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9228     case $host_os in
9229       openbsd2.[89] | openbsd2.[89].*)
9230         shlibpath_overrides_runpath=no
9231         ;;
9232       *)
9233         shlibpath_overrides_runpath=yes
9234         ;;
9235       esac
9236   else
9237     shlibpath_overrides_runpath=yes
9238   fi
9239   ;;
9240
9241 os2*)
9242   libname_spec='$name'
9243   shrext_cmds=".dll"
9244   need_lib_prefix=no
9245   library_names_spec='$libname${shared_ext} $libname.a'
9246   dynamic_linker='OS/2 ld.exe'
9247   shlibpath_var=LIBPATH
9248   ;;
9249
9250 osf3* | osf4* | osf5*)
9251   version_type=osf
9252   need_lib_prefix=no
9253   need_version=no
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9259   ;;
9260
9261 rdos*)
9262   dynamic_linker=no
9263   ;;
9264
9265 solaris*)
9266   version_type=linux
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   shlibpath_overrides_runpath=yes
9273   hardcode_into_libs=yes
9274   # ldd complains unless libraries are executable
9275   postinstall_cmds='chmod +x $lib'
9276   ;;
9277
9278 sunos4*)
9279   version_type=sunos
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=yes
9284   if test "$with_gnu_ld" = yes; then
9285     need_lib_prefix=no
9286   fi
9287   need_version=yes
9288   ;;
9289
9290 sysv4 | sysv4.3*)
9291   version_type=linux
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   case $host_vendor in
9296     sni)
9297       shlibpath_overrides_runpath=no
9298       need_lib_prefix=no
9299       runpath_var=LD_RUN_PATH
9300       ;;
9301     siemens)
9302       need_lib_prefix=no
9303       ;;
9304     motorola)
9305       need_lib_prefix=no
9306       need_version=no
9307       shlibpath_overrides_runpath=no
9308       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9309       ;;
9310   esac
9311   ;;
9312
9313 sysv4*MP*)
9314   if test -d /usr/nec ;then
9315     version_type=linux
9316     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9317     soname_spec='$libname${shared_ext}.$major'
9318     shlibpath_var=LD_LIBRARY_PATH
9319   fi
9320   ;;
9321
9322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9323   version_type=freebsd-elf
9324   need_lib_prefix=no
9325   need_version=no
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   shlibpath_var=LD_LIBRARY_PATH
9329   shlibpath_overrides_runpath=yes
9330   hardcode_into_libs=yes
9331   if test "$with_gnu_ld" = yes; then
9332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9333   else
9334     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9335     case $host_os in
9336       sco3.2v5*)
9337         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9338         ;;
9339     esac
9340   fi
9341   sys_lib_dlsearch_path_spec='/usr/lib'
9342   ;;
9343
9344 tpf*)
9345   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9346   version_type=linux
9347   need_lib_prefix=no
9348   need_version=no
9349   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=no
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 uts4*)
9356   version_type=linux
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   ;;
9361
9362 *)
9363   dynamic_linker=no
9364   ;;
9365 esac
9366 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9367 echo "${ECHO_T}$dynamic_linker" >&6
9368 test "$dynamic_linker" = no && can_build_shared=no
9369
9370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9371 if test "$GCC" = yes; then
9372   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9373 fi
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9462 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9463 hardcode_action=
9464 if test -n "$hardcode_libdir_flag_spec" ||
9465    test -n "$runpath_var" ||
9466    test "X$hardcode_automatic" = "Xyes" ; then
9467
9468   # We can hardcode non-existent directories.
9469   if test "$hardcode_direct" != no &&
9470      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9471      # have to relink, otherwise we might link with an installed library
9472      # when we should be linking with a yet-to-be-installed one
9473      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9474      test "$hardcode_minus_L" != no; then
9475     # Linking always hardcodes the temporary library directory.
9476     hardcode_action=relink
9477   else
9478     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9479     hardcode_action=immediate
9480   fi
9481 else
9482   # We cannot hardcode anything, or else we can only hardcode existing
9483   # directories.
9484   hardcode_action=unsupported
9485 fi
9486 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9487 echo "${ECHO_T}$hardcode_action" >&6
9488
9489 if test "$hardcode_action" = relink ||
9490    test "$inherit_rpath" = yes; then
9491   # Fast installation is not supported
9492   enable_fast_install=no
9493 elif test "$shlibpath_overrides_runpath" = yes ||
9494      test "$enable_shared" = no; then
9495   # Fast installation is not necessary
9496   enable_fast_install=needless
9497 fi
9498
9499
9500
9501
9502
9503
9504   if test "x$enable_dlopen" != xyes; then
9505   enable_dlopen=unknown
9506   enable_dlopen_self=unknown
9507   enable_dlopen_self_static=unknown
9508 else
9509   lt_cv_dlopen=no
9510   lt_cv_dlopen_libs=
9511
9512   case $host_os in
9513   beos*)
9514     lt_cv_dlopen="load_add_on"
9515     lt_cv_dlopen_libs=
9516     lt_cv_dlopen_self=yes
9517     ;;
9518
9519   mingw* | pw32*)
9520     lt_cv_dlopen="LoadLibrary"
9521     lt_cv_dlopen_libs=
9522     ;;
9523
9524   cygwin*)
9525     lt_cv_dlopen="dlopen"
9526     lt_cv_dlopen_libs=
9527     ;;
9528
9529   darwin*)
9530   # if libdl is installed we need to link against it
9531     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-ldl  $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544
9545 /* Override any gcc2 internal prototype to avoid an error.  */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 /* We use char because int might match the return type of a gcc2
9550    builtin and then its argument prototype would still apply.  */
9551 char dlopen ();
9552 int
9553 main ()
9554 {
9555 dlopen ();
9556   ;
9557   return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562   (eval $ac_link) 2>conftest.er1
9563   ac_status=$?
9564   grep -v '^ *+' conftest.er1 >conftest.err
9565   rm -f conftest.er1
9566   cat conftest.err >&5
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } &&
9569          { ac_try='test -z "$ac_c_werror_flag"
9570                          || test ! -s conftest.err'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; } &&
9576          { ac_try='test -s conftest$ac_exeext'
9577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578   (eval $ac_try) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; }; then
9582   ac_cv_lib_dl_dlopen=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ac_cv_lib_dl_dlopen=no
9588 fi
9589 rm -f conftest.err conftest.$ac_objext \
9590       conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9595 if test $ac_cv_lib_dl_dlopen = yes; then
9596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9597 else
9598
9599     lt_cv_dlopen="dyld"
9600     lt_cv_dlopen_libs=
9601     lt_cv_dlopen_self=yes
9602
9603 fi
9604
9605     ;;
9606
9607   *)
9608     echo "$as_me:$LINENO: checking for shl_load" >&5
9609 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9610 if test "${ac_cv_func_shl_load+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9621 #define shl_load innocuous_shl_load
9622
9623 /* System header to define __stub macros and hopefully few prototypes,
9624     which can conflict with char shl_load (); below.
9625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626     <limits.h> exists even on freestanding compilers.  */
9627
9628 #ifdef __STDC__
9629 # include <limits.h>
9630 #else
9631 # include <assert.h>
9632 #endif
9633
9634 #undef shl_load
9635
9636 /* Override any gcc2 internal prototype to avoid an error.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 {
9640 #endif
9641 /* We use char because int might match the return type of a gcc2
9642    builtin and then its argument prototype would still apply.  */
9643 char shl_load ();
9644 /* The GNU C library defines this for functions which it implements
9645     to always fail with ENOSYS.  Some functions are actually named
9646     something starting with __ and the normal name is an alias.  */
9647 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9648 choke me
9649 #else
9650 char (*f) () = shl_load;
9651 #endif
9652 #ifdef __cplusplus
9653 }
9654 #endif
9655
9656 int
9657 main ()
9658 {
9659 return f != shl_load;
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666   (eval $ac_link) 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } &&
9673          { ac_try='test -z "$ac_c_werror_flag"
9674                          || test ! -s conftest.err'
9675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676   (eval $ac_try) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; } &&
9680          { ac_try='test -s conftest$ac_exeext'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; }; then
9686   ac_cv_func_shl_load=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_cv_func_shl_load=no
9692 fi
9693 rm -f conftest.err conftest.$ac_objext \
9694       conftest$ac_exeext conftest.$ac_ext
9695 fi
9696 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9697 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9698 if test $ac_cv_func_shl_load = yes; then
9699   lt_cv_dlopen="shl_load"
9700 else
9701   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9702 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9703 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   ac_check_lib_save_LIBS=$LIBS
9707 LIBS="-ldld  $LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 /* Override any gcc2 internal prototype to avoid an error.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 /* We use char because int might match the return type of a gcc2
9720    builtin and then its argument prototype would still apply.  */
9721 char shl_load ();
9722 int
9723 main ()
9724 {
9725 shl_load ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732   (eval $ac_link) 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag"
9740                          || test ! -s conftest.err'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; } &&
9746          { ac_try='test -s conftest$ac_exeext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_lib_dld_shl_load=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_lib_dld_shl_load=no
9758 fi
9759 rm -f conftest.err conftest.$ac_objext \
9760       conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9764 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9765 if test $ac_cv_lib_dld_shl_load = yes; then
9766   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9767 else
9768   echo "$as_me:$LINENO: checking for dlopen" >&5
9769 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9770 if test "${ac_cv_func_dlopen+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9781 #define dlopen innocuous_dlopen
9782
9783 /* System header to define __stub macros and hopefully few prototypes,
9784     which can conflict with char dlopen (); below.
9785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9786     <limits.h> exists even on freestanding compilers.  */
9787
9788 #ifdef __STDC__
9789 # include <limits.h>
9790 #else
9791 # include <assert.h>
9792 #endif
9793
9794 #undef dlopen
9795
9796 /* Override any gcc2 internal prototype to avoid an error.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 {
9800 #endif
9801 /* We use char because int might match the return type of a gcc2
9802    builtin and then its argument prototype would still apply.  */
9803 char dlopen ();
9804 /* The GNU C library defines this for functions which it implements
9805     to always fail with ENOSYS.  Some functions are actually named
9806     something starting with __ and the normal name is an alias.  */
9807 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9808 choke me
9809 #else
9810 char (*f) () = dlopen;
9811 #endif
9812 #ifdef __cplusplus
9813 }
9814 #endif
9815
9816 int
9817 main ()
9818 {
9819 return f != dlopen;
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826   (eval $ac_link) 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag"
9834                          || test ! -s conftest.err'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; } &&
9840          { ac_try='test -s conftest$ac_exeext'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_cv_func_dlopen=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_func_dlopen=no
9852 fi
9853 rm -f conftest.err conftest.$ac_objext \
9854       conftest$ac_exeext conftest.$ac_ext
9855 fi
9856 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9857 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9858 if test $ac_cv_func_dlopen = yes; then
9859   lt_cv_dlopen="dlopen"
9860 else
9861   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864   echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866   ac_check_lib_save_LIBS=$LIBS
9867 LIBS="-ldl  $LIBS"
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874
9875 /* Override any gcc2 internal prototype to avoid an error.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880    builtin and then its argument prototype would still apply.  */
9881 char dlopen ();
9882 int
9883 main ()
9884 {
9885 dlopen ();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892   (eval $ac_link) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_c_werror_flag"
9900                          || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_lib_dl_dlopen=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_cv_lib_dl_dlopen=no
9918 fi
9919 rm -f conftest.err conftest.$ac_objext \
9920       conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9922 fi
9923 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9924 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9925 if test $ac_cv_lib_dl_dlopen = yes; then
9926   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9927 else
9928   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9929 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9930 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-lsvld  $LIBS"
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 /* Override any gcc2 internal prototype to avoid an error.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 /* We use char because int might match the return type of a gcc2
9947    builtin and then its argument prototype would still apply.  */
9948 char dlopen ();
9949 int
9950 main ()
9951 {
9952 dlopen ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959   (eval $ac_link) 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -z "$ac_c_werror_flag"
9967                          || test ! -s conftest.err'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; }; then
9979   ac_cv_lib_svld_dlopen=yes
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ac_cv_lib_svld_dlopen=no
9985 fi
9986 rm -f conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9989 fi
9990 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9992 if test $ac_cv_lib_svld_dlopen = yes; then
9993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9994 else
9995   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9996 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   ac_check_lib_save_LIBS=$LIBS
10001 LIBS="-ldld  $LIBS"
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008
10009 /* Override any gcc2 internal prototype to avoid an error.  */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 /* We use char because int might match the return type of a gcc2
10014    builtin and then its argument prototype would still apply.  */
10015 char dld_link ();
10016 int
10017 main ()
10018 {
10019 dld_link ();
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026   (eval $ac_link) 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } &&
10033          { ac_try='test -z "$ac_c_werror_flag"
10034                          || test ! -s conftest.err'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest$ac_exeext'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_lib_dld_dld_link=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_lib_dld_dld_link=no
10052 fi
10053 rm -f conftest.err conftest.$ac_objext \
10054       conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10056 fi
10057 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10059 if test $ac_cv_lib_dld_dld_link = yes; then
10060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10061 fi
10062
10063
10064 fi
10065
10066
10067 fi
10068
10069
10070 fi
10071
10072
10073 fi
10074
10075
10076 fi
10077
10078     ;;
10079   esac
10080
10081   if test "x$lt_cv_dlopen" != xno; then
10082     enable_dlopen=yes
10083   else
10084     enable_dlopen=no
10085   fi
10086
10087   case $lt_cv_dlopen in
10088   dlopen)
10089     save_CPPFLAGS="$CPPFLAGS"
10090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10091
10092     save_LDFLAGS="$LDFLAGS"
10093     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10094
10095     save_LIBS="$LIBS"
10096     LIBS="$lt_cv_dlopen_libs $LIBS"
10097
10098     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10100 if test "${lt_cv_dlopen_self+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103           if test "$cross_compiling" = yes; then :
10104   lt_cv_dlopen_self=cross
10105 else
10106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10107   lt_status=$lt_dlunknown
10108   cat > conftest.$ac_ext <<_LT_EOF
10109 #line 10109 "configure"
10110 #include "confdefs.h"
10111
10112 #if HAVE_DLFCN_H
10113 #include <dlfcn.h>
10114 #endif
10115
10116 #include <stdio.h>
10117
10118 #ifdef RTLD_GLOBAL
10119 #  define LT_DLGLOBAL           RTLD_GLOBAL
10120 #else
10121 #  ifdef DL_GLOBAL
10122 #    define LT_DLGLOBAL         DL_GLOBAL
10123 #  else
10124 #    define LT_DLGLOBAL         0
10125 #  endif
10126 #endif
10127
10128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10129    find out it does not work in some platform. */
10130 #ifndef LT_DLLAZY_OR_NOW
10131 #  ifdef RTLD_LAZY
10132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10133 #  else
10134 #    ifdef DL_LAZY
10135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10136 #    else
10137 #      ifdef RTLD_NOW
10138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10139 #      else
10140 #        ifdef DL_NOW
10141 #          define LT_DLLAZY_OR_NOW      DL_NOW
10142 #        else
10143 #          define LT_DLLAZY_OR_NOW      0
10144 #        endif
10145 #      endif
10146 #    endif
10147 #  endif
10148 #endif
10149
10150 #ifdef __cplusplus
10151 extern "C" void exit (int);
10152 #endif
10153
10154 void fnord() { int i=42;}
10155 int main ()
10156 {
10157   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10158   int status = $lt_dlunknown;
10159
10160   if (self)
10161     {
10162       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10164       /* dlclose (self); */
10165     }
10166   else
10167     puts (dlerror ());
10168
10169     exit (status);
10170 }
10171 _LT_EOF
10172   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173   (eval $ac_link) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10177     (./conftest; exit; ) >&5 2>/dev/null
10178     lt_status=$?
10179     case x$lt_status in
10180       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10181       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10182       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10183     esac
10184   else :
10185     # compilation failed
10186     lt_cv_dlopen_self=no
10187   fi
10188 fi
10189 rm -fr conftest*
10190
10191
10192 fi
10193 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10194 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10195
10196     if test "x$lt_cv_dlopen_self" = xyes; then
10197       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10198       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10199 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10200 if test "${lt_cv_dlopen_self_static+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203           if test "$cross_compiling" = yes; then :
10204   lt_cv_dlopen_self_static=cross
10205 else
10206   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10207   lt_status=$lt_dlunknown
10208   cat > conftest.$ac_ext <<_LT_EOF
10209 #line 10209 "configure"
10210 #include "confdefs.h"
10211
10212 #if HAVE_DLFCN_H
10213 #include <dlfcn.h>
10214 #endif
10215
10216 #include <stdio.h>
10217
10218 #ifdef RTLD_GLOBAL
10219 #  define LT_DLGLOBAL           RTLD_GLOBAL
10220 #else
10221 #  ifdef DL_GLOBAL
10222 #    define LT_DLGLOBAL         DL_GLOBAL
10223 #  else
10224 #    define LT_DLGLOBAL         0
10225 #  endif
10226 #endif
10227
10228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10229    find out it does not work in some platform. */
10230 #ifndef LT_DLLAZY_OR_NOW
10231 #  ifdef RTLD_LAZY
10232 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10233 #  else
10234 #    ifdef DL_LAZY
10235 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10236 #    else
10237 #      ifdef RTLD_NOW
10238 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10239 #      else
10240 #        ifdef DL_NOW
10241 #          define LT_DLLAZY_OR_NOW      DL_NOW
10242 #        else
10243 #          define LT_DLLAZY_OR_NOW      0
10244 #        endif
10245 #      endif
10246 #    endif
10247 #  endif
10248 #endif
10249
10250 #ifdef __cplusplus
10251 extern "C" void exit (int);
10252 #endif
10253
10254 void fnord() { int i=42;}
10255 int main ()
10256 {
10257   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10258   int status = $lt_dlunknown;
10259
10260   if (self)
10261     {
10262       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10263       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10264       /* dlclose (self); */
10265     }
10266   else
10267     puts (dlerror ());
10268
10269     exit (status);
10270 }
10271 _LT_EOF
10272   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273   (eval $ac_link) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10277     (./conftest; exit; ) >&5 2>/dev/null
10278     lt_status=$?
10279     case x$lt_status in
10280       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10281       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10282       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10283     esac
10284   else :
10285     # compilation failed
10286     lt_cv_dlopen_self_static=no
10287   fi
10288 fi
10289 rm -fr conftest*
10290
10291
10292 fi
10293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10295     fi
10296
10297     CPPFLAGS="$save_CPPFLAGS"
10298     LDFLAGS="$save_LDFLAGS"
10299     LIBS="$save_LIBS"
10300     ;;
10301   esac
10302
10303   case $lt_cv_dlopen_self in
10304   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10305   *) enable_dlopen_self=unknown ;;
10306   esac
10307
10308   case $lt_cv_dlopen_self_static in
10309   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10310   *) enable_dlopen_self_static=unknown ;;
10311   esac
10312 fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330 striplib=
10331 old_striplib=
10332 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10333 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10335   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10336   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10337   echo "$as_me:$LINENO: result: yes" >&5
10338 echo "${ECHO_T}yes" >&6
10339 else
10340 # FIXME - insert some real tests, host_os isn't really good enough
10341   case $host_os in
10342   darwin*)
10343     if test -n "$STRIP" ; then
10344       striplib="$STRIP -x"
10345       old_striplib="$STRIP -S"
10346       echo "$as_me:$LINENO: result: yes" >&5
10347 echo "${ECHO_T}yes" >&6
10348     else
10349       echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10351     fi
10352     ;;
10353   *)
10354     echo "$as_me:$LINENO: result: no" >&5
10355 echo "${ECHO_T}no" >&6
10356     ;;
10357   esac
10358 fi
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371   # Report which library types will actually be built
10372   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10373 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10374   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10375 echo "${ECHO_T}$can_build_shared" >&6
10376
10377   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10378 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10379   test "$can_build_shared" = "no" && enable_shared=no
10380
10381   # On AIX, shared libraries and static libraries use the same namespace, and
10382   # are all built from PIC.
10383   case $host_os in
10384   aix3*)
10385     test "$enable_shared" = yes && enable_static=no
10386     if test -n "$RANLIB"; then
10387       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10388       postinstall_cmds='$RANLIB $lib'
10389     fi
10390     ;;
10391
10392   aix4* | aix5*)
10393     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10394       test "$enable_shared" = yes && enable_static=no
10395     fi
10396     ;;
10397   esac
10398   echo "$as_me:$LINENO: result: $enable_shared" >&5
10399 echo "${ECHO_T}$enable_shared" >&6
10400
10401   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10402 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10403   # Make sure either enable_shared or enable_static is yes.
10404   test "$enable_shared" = yes || enable_static=yes
10405   echo "$as_me:$LINENO: result: $enable_static" >&5
10406 echo "${ECHO_T}$enable_static" >&6
10407
10408
10409
10410
10411 fi
10412 ac_ext=c
10413 ac_cpp='$CPP $CPPFLAGS'
10414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417
10418 CC="$lt_save_CC"
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432                   ac_config_commands="$ac_config_commands libtool"
10433
10434
10435
10436
10437 # Only expand once:
10438
10439
10440
10441 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10442 if test "${enable_64_bit_bfd+set}" = set; then
10443   enableval="$enable_64_bit_bfd"
10444   case "${enableval}" in
10445   yes)  want64=true  ;;
10446   no)   want64=false ;;
10447   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10448 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10449    { (exit 1); exit 1; }; } ;;
10450 esac
10451 else
10452   want64=false
10453 fi;
10454 # Check whether --enable-targets or --disable-targets was given.
10455 if test "${enable_targets+set}" = set; then
10456   enableval="$enable_targets"
10457   case "${enableval}" in
10458   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10459 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10460    { (exit 1); exit 1; }; }
10461             ;;
10462   no)       enable_targets= ;;
10463   *)        enable_targets=$enableval ;;
10464 esac
10465 fi;
10466 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10467 if test "${enable_commonbfdlib+set}" = set; then
10468   enableval="$enable_commonbfdlib"
10469   case "${enableval}" in
10470   yes) commonbfdlib=true ;;
10471   no)  commonbfdlib=false ;;
10472   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10473 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10474    { (exit 1); exit 1; }; } ;;
10475 esac
10476 fi;
10477
10478 # Check whether --with-mmap or --without-mmap was given.
10479 if test "${with_mmap+set}" = set; then
10480   withval="$with_mmap"
10481   case "${withval}" in
10482   yes)  want_mmap=true ;;
10483   no)   want_mmap=false ;;
10484   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10485 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10486    { (exit 1); exit 1; }; } ;;
10487 esac
10488 else
10489   want_mmap=false
10490 fi;
10491 # Check whether --enable-secureplt or --disable-secureplt was given.
10492 if test "${enable_secureplt+set}" = set; then
10493   enableval="$enable_secureplt"
10494   case "${enableval}" in
10495   yes)  use_secureplt=true  ;;
10496   no)   use_secureplt=false ;;
10497   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10498 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10499    { (exit 1); exit 1; }; } ;;
10500 esac
10501 else
10502   use_secureplt=false
10503 fi; if test $use_secureplt = true; then
10504
10505 cat >>confdefs.h <<\_ACEOF
10506 #define USE_SECUREPLT 1
10507 _ACEOF
10508
10509 fi
10510
10511 DEBUGDIR=${libdir}/debug
10512
10513 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10514 if test "${with_separate_debug_dir+set}" = set; then
10515   withval="$with_separate_debug_dir"
10516   DEBUGDIR="${withval}"
10517 fi;
10518
10519
10520 # Check to see if we should allow the generation of
10521 # symbols with the ELF standard's STT_COMMON type.
10522 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10523 if test "${enable_elf_stt_common+set}" = set; then
10524   enableval="$enable_elf_stt_common"
10525   case "${enableval}" in
10526   yes) want_elf_stt_common=true ;;
10527   no)  want_elf_stt_common=false ;;
10528   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10529 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10530    { (exit 1); exit 1; }; } ;;
10531  esac
10532 else
10533   # We have to choose a default behaviour.  For native builds we could
10534 # test whether the loader supports the STT_COMMON type, but that would
10535 # mean that built binaries could not be exported to older systems where
10536 # the loader does not support it. So by default we always choose to
10537 # disable this feature.
10538   want_elf_stt_common=false
10539 fi; if test $want_elf_stt_common = true; then
10540
10541 cat >>confdefs.h <<\_ACEOF
10542 #define USE_STT_COMMON 1
10543 _ACEOF
10544
10545 fi
10546
10547
10548
10549 # Check whether --with-pkgversion or --without-pkgversion was given.
10550 if test "${with_pkgversion+set}" = set; then
10551   withval="$with_pkgversion"
10552   case "$withval" in
10553       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10554 echo "$as_me: error: package version not specified" >&2;}
10555    { (exit 1); exit 1; }; } ;;
10556       no)  PKGVERSION= ;;
10557       *)   PKGVERSION="($withval) " ;;
10558      esac
10559 else
10560   PKGVERSION="(GNU Binutils) "
10561
10562 fi;
10563
10564
10565
10566
10567 # Check whether --with-bugurl or --without-bugurl was given.
10568 if test "${with_bugurl+set}" = set; then
10569   withval="$with_bugurl"
10570   case "$withval" in
10571       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10572 echo "$as_me: error: bug URL not specified" >&2;}
10573    { (exit 1); exit 1; }; } ;;
10574       no)  BUGURL=
10575            ;;
10576       *)   BUGURL="$withval"
10577            ;;
10578      esac
10579 else
10580   BUGURL="http://www.sourceware.org/bugzilla/"
10581
10582 fi;
10583   case ${BUGURL} in
10584   "")
10585     REPORT_BUGS_TO=
10586     REPORT_BUGS_TEXI=
10587     ;;
10588   *)
10589     REPORT_BUGS_TO="<$BUGURL>"
10590     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10591     ;;
10592   esac;
10593
10594
10595
10596
10597
10598 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10599
10600 # Check whether --enable-werror or --disable-werror was given.
10601 if test "${enable_werror+set}" = set; then
10602   enableval="$enable_werror"
10603   case "${enableval}" in
10604      yes | y) ERROR_ON_WARNING="yes" ;;
10605      no | n)  ERROR_ON_WARNING="no" ;;
10606      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608    { (exit 1); exit 1; }; } ;;
10609    esac
10610 fi;
10611
10612 # Enable -Wno-format by default when using gcc on mingw
10613 case "${host}" in
10614   *-*-mingw32*)
10615     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10617     fi
10618     ;;
10619   *) ;;
10620 esac
10621
10622 # Enable -Werror by default when using gcc
10623 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10624     ERROR_ON_WARNING=yes
10625 fi
10626
10627 NO_WERROR=
10628 if test "${ERROR_ON_WARNING}" = yes ; then
10629     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10630     NO_WERROR="-Wno-error"
10631 fi
10632
10633 if test "${GCC}" = yes ; then
10634   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10635 fi
10636
10637 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10638 if test "${enable_build_warnings+set}" = set; then
10639   enableval="$enable_build_warnings"
10640   case "${enableval}" in
10641   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10642   no)   if test "${GCC}" = yes ; then
10643           WARN_CFLAGS="-w"
10644         fi;;
10645   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10646         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10647   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10648         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10649   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10650 esac
10651 fi;
10652
10653 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10654   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10655 fi
10656
10657
10658
10659
10660
10661           ac_config_headers="$ac_config_headers config.h:config.in"
10662
10663
10664 if test -z "$target" ; then
10665     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10666 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10667    { (exit 1); exit 1; }; }
10668 fi
10669
10670 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10671 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10672     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10673 if test "${enable_maintainer_mode+set}" = set; then
10674   enableval="$enable_maintainer_mode"
10675   USE_MAINTAINER_MODE=$enableval
10676 else
10677   USE_MAINTAINER_MODE=no
10678 fi;
10679   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10680 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10681
10682
10683 if test $USE_MAINTAINER_MODE = yes; then
10684   MAINTAINER_MODE_TRUE=
10685   MAINTAINER_MODE_FALSE='#'
10686 else
10687   MAINTAINER_MODE_TRUE='#'
10688   MAINTAINER_MODE_FALSE=
10689 fi
10690
10691   MAINT=$MAINTAINER_MODE_TRUE
10692
10693
10694
10695
10696 if false; then
10697   GENINSRC_NEVER_TRUE=
10698   GENINSRC_NEVER_FALSE='#'
10699 else
10700   GENINSRC_NEVER_TRUE='#'
10701   GENINSRC_NEVER_FALSE=
10702 fi
10703
10704  case ${build_alias} in
10705   "") build_noncanonical=${build} ;;
10706   *) build_noncanonical=${build_alias} ;;
10707 esac
10708
10709  case ${host_alias} in
10710   "") host_noncanonical=${build_noncanonical} ;;
10711   *) host_noncanonical=${host_alias} ;;
10712 esac
10713
10714  case ${target_alias} in
10715   "") target_noncanonical=${host_noncanonical} ;;
10716   *) target_noncanonical=${target_alias} ;;
10717 esac
10718
10719 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10720 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10721   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10722 if test "${enable_install_libbfd+set}" = set; then
10723   enableval="$enable_install_libbfd"
10724   install_libbfd_p=$enableval
10725 else
10726   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10727         install_libbfd_p=yes
10728       else
10729         install_libbfd_p=no
10730       fi
10731 fi;
10732   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10733 echo "${ECHO_T}$install_libbfd_p" >&6
10734
10735
10736 if test $install_libbfd_p = yes; then
10737   INSTALL_LIBBFD_TRUE=
10738   INSTALL_LIBBFD_FALSE='#'
10739 else
10740   INSTALL_LIBBFD_TRUE='#'
10741   INSTALL_LIBBFD_FALSE=
10742 fi
10743
10744   # Need _noncanonical variables for this.
10745
10746
10747
10748
10749   # libbfd.a is a host library containing target dependent code
10750   bfdlibdir='$(libdir)'
10751   bfdincludedir='$(includedir)'
10752   if test "${host}" != "${target}"; then
10753     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10754     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10755   fi
10756
10757
10758
10759
10760
10761
10762 host64=false
10763 target64=false
10764 bfd_default_target_size=32
10765
10766 # host stuff:
10767
10768 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
10769 # If we haven't got the data from the intl directory,
10770 # assume NLS is disabled.
10771 USE_NLS=no
10772 LIBINTL=
10773 LIBINTL_DEP=
10774 INCINTL=
10775 XGETTEXT=
10776 GMSGFMT=
10777 POSUB=
10778
10779 if test -f  ../intl/config.intl; then
10780   .  ../intl/config.intl
10781 fi
10782 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10783 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10784 if test x"$USE_NLS" != xyes; then
10785   echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10787 else
10788   echo "$as_me:$LINENO: result: yes" >&5
10789 echo "${ECHO_T}yes" >&6
10790
10791 cat >>confdefs.h <<\_ACEOF
10792 #define ENABLE_NLS 1
10793 _ACEOF
10794
10795
10796   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10797 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10798   # Look for .po and .gmo files in the source directory.
10799   CATALOGS=
10800   XLINGUAS=
10801   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10802     # If there aren't any .gmo files the shell will give us the
10803     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10804     # weeded out.
10805     case "$cat" in *\**)
10806       continue;;
10807     esac
10808     # The quadruple backslash is collapsed to a double backslash
10809     # by the backticks, then collapsed again by the double quotes,
10810     # leaving us with one backslash in the sed expression (right
10811     # before the dot that mustn't act as a wildcard).
10812     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10813     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10814     # The user is allowed to set LINGUAS to a list of languages to
10815     # install catalogs for.  If it's empty that means "all of them."
10816     if test "x$LINGUAS" = x; then
10817       CATALOGS="$CATALOGS $cat"
10818       XLINGUAS="$XLINGUAS $lang"
10819     else
10820       case "$LINGUAS" in *$lang*)
10821         CATALOGS="$CATALOGS $cat"
10822         XLINGUAS="$XLINGUAS $lang"
10823         ;;
10824       esac
10825     fi
10826   done
10827   LINGUAS="$XLINGUAS"
10828   echo "$as_me:$LINENO: result: $LINGUAS" >&5
10829 echo "${ECHO_T}$LINGUAS" >&6
10830
10831
10832     DATADIRNAME=share
10833
10834   INSTOBJEXT=.mo
10835
10836   GENCAT=gencat
10837
10838   CATOBJEXT=.gmo
10839
10840 fi
10841
10842         MKINSTALLDIRS=
10843   if test -n "$ac_aux_dir"; then
10844     case "$ac_aux_dir" in
10845       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10846       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10847     esac
10848   fi
10849   if test -z "$MKINSTALLDIRS"; then
10850     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10851   fi
10852
10853
10854
10855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10857     # Check whether --enable-nls or --disable-nls was given.
10858 if test "${enable_nls+set}" = set; then
10859   enableval="$enable_nls"
10860   USE_NLS=$enableval
10861 else
10862   USE_NLS=yes
10863 fi;
10864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10865 echo "${ECHO_T}$USE_NLS" >&6
10866
10867
10868
10869
10870
10871
10872 # Prepare PATH_SEPARATOR.
10873 # The user is always right.
10874 if test "${PATH_SEPARATOR+set}" != set; then
10875   echo "#! /bin/sh" >conf$$.sh
10876   echo  "exit 0"   >>conf$$.sh
10877   chmod +x conf$$.sh
10878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10879     PATH_SEPARATOR=';'
10880   else
10881     PATH_SEPARATOR=:
10882   fi
10883   rm -f conf$$.sh
10884 fi
10885
10886 # Find out how to test for executable files. Don't use a zero-byte file,
10887 # as systems may use methods other than mode bits to determine executability.
10888 cat >conf$$.file <<_ASEOF
10889 #! /bin/sh
10890 exit 0
10891 _ASEOF
10892 chmod +x conf$$.file
10893 if test -x conf$$.file >/dev/null 2>&1; then
10894   ac_executable_p="test -x"
10895 else
10896   ac_executable_p="test -f"
10897 fi
10898 rm -f conf$$.file
10899
10900 # Extract the first word of "msgfmt", so it can be a program name with args.
10901 set dummy msgfmt; ac_word=$2
10902 echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904 if test "${ac_cv_path_MSGFMT+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   case "$MSGFMT" in
10908   [\\/]* | ?:[\\/]*)
10909     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10910     ;;
10911   *)
10912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10913     for ac_dir in $PATH; do
10914       IFS="$ac_save_IFS"
10915       test -z "$ac_dir" && ac_dir=.
10916       for ac_exec_ext in '' $ac_executable_extensions; do
10917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10918           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10919      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10920             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10921             break 2
10922           fi
10923         fi
10924       done
10925     done
10926     IFS="$ac_save_IFS"
10927   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10928     ;;
10929 esac
10930 fi
10931 MSGFMT="$ac_cv_path_MSGFMT"
10932 if test "$MSGFMT" != ":"; then
10933   echo "$as_me:$LINENO: result: $MSGFMT" >&5
10934 echo "${ECHO_T}$MSGFMT" >&6
10935 else
10936   echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6
10938 fi
10939
10940   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10941 set dummy gmsgfmt; ac_word=$2
10942 echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   case $GMSGFMT in
10948   [\\/]* | ?:[\\/]*)
10949   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10950   ;;
10951   *)
10952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955   IFS=$as_save_IFS
10956   test -z "$as_dir" && as_dir=.
10957   for ac_exec_ext in '' $ac_executable_extensions; do
10958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961     break 2
10962   fi
10963 done
10964 done
10965
10966   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10967   ;;
10968 esac
10969 fi
10970 GMSGFMT=$ac_cv_path_GMSGFMT
10971
10972 if test -n "$GMSGFMT"; then
10973   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10974 echo "${ECHO_T}$GMSGFMT" >&6
10975 else
10976   echo "$as_me:$LINENO: result: no" >&5
10977 echo "${ECHO_T}no" >&6
10978 fi
10979
10980
10981
10982 # Prepare PATH_SEPARATOR.
10983 # The user is always right.
10984 if test "${PATH_SEPARATOR+set}" != set; then
10985   echo "#! /bin/sh" >conf$$.sh
10986   echo  "exit 0"   >>conf$$.sh
10987   chmod +x conf$$.sh
10988   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10989     PATH_SEPARATOR=';'
10990   else
10991     PATH_SEPARATOR=:
10992   fi
10993   rm -f conf$$.sh
10994 fi
10995
10996 # Find out how to test for executable files. Don't use a zero-byte file,
10997 # as systems may use methods other than mode bits to determine executability.
10998 cat >conf$$.file <<_ASEOF
10999 #! /bin/sh
11000 exit 0
11001 _ASEOF
11002 chmod +x conf$$.file
11003 if test -x conf$$.file >/dev/null 2>&1; then
11004   ac_executable_p="test -x"
11005 else
11006   ac_executable_p="test -f"
11007 fi
11008 rm -f conf$$.file
11009
11010 # Extract the first word of "xgettext", so it can be a program name with args.
11011 set dummy xgettext; ac_word=$2
11012 echo "$as_me:$LINENO: checking for $ac_word" >&5
11013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11014 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11015   echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017   case "$XGETTEXT" in
11018   [\\/]* | ?:[\\/]*)
11019     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11020     ;;
11021   *)
11022     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11023     for ac_dir in $PATH; do
11024       IFS="$ac_save_IFS"
11025       test -z "$ac_dir" && ac_dir=.
11026       for ac_exec_ext in '' $ac_executable_extensions; do
11027         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11028           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11029      (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
11030             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11031             break 2
11032           fi
11033         fi
11034       done
11035     done
11036     IFS="$ac_save_IFS"
11037   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11038     ;;
11039 esac
11040 fi
11041 XGETTEXT="$ac_cv_path_XGETTEXT"
11042 if test "$XGETTEXT" != ":"; then
11043   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11044 echo "${ECHO_T}$XGETTEXT" >&6
11045 else
11046   echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6
11048 fi
11049
11050     rm -f messages.po
11051
11052
11053 # Prepare PATH_SEPARATOR.
11054 # The user is always right.
11055 if test "${PATH_SEPARATOR+set}" != set; then
11056   echo "#! /bin/sh" >conf$$.sh
11057   echo  "exit 0"   >>conf$$.sh
11058   chmod +x conf$$.sh
11059   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11060     PATH_SEPARATOR=';'
11061   else
11062     PATH_SEPARATOR=:
11063   fi
11064   rm -f conf$$.sh
11065 fi
11066
11067 # Find out how to test for executable files. Don't use a zero-byte file,
11068 # as systems may use methods other than mode bits to determine executability.
11069 cat >conf$$.file <<_ASEOF
11070 #! /bin/sh
11071 exit 0
11072 _ASEOF
11073 chmod +x conf$$.file
11074 if test -x conf$$.file >/dev/null 2>&1; then
11075   ac_executable_p="test -x"
11076 else
11077   ac_executable_p="test -f"
11078 fi
11079 rm -f conf$$.file
11080
11081 # Extract the first word of "msgmerge", so it can be a program name with args.
11082 set dummy msgmerge; ac_word=$2
11083 echo "$as_me:$LINENO: checking for $ac_word" >&5
11084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11085 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   case "$MSGMERGE" in
11089   [\\/]* | ?:[\\/]*)
11090     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11091     ;;
11092   *)
11093     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11094     for ac_dir in $PATH; do
11095       IFS="$ac_save_IFS"
11096       test -z "$ac_dir" && ac_dir=.
11097       for ac_exec_ext in '' $ac_executable_extensions; do
11098         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11099           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11100             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11101             break 2
11102           fi
11103         fi
11104       done
11105     done
11106     IFS="$ac_save_IFS"
11107   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11108     ;;
11109 esac
11110 fi
11111 MSGMERGE="$ac_cv_path_MSGMERGE"
11112 if test "$MSGMERGE" != ":"; then
11113   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11114 echo "${ECHO_T}$MSGMERGE" >&6
11115 else
11116   echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11118 fi
11119
11120
11121       if test "$GMSGFMT" != ":"; then
11122             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11123        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11124       : ;
11125     else
11126       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11127       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11128 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11129       GMSGFMT=":"
11130     fi
11131   fi
11132
11133       if test "$XGETTEXT" != ":"; then
11134             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11135        (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
11136       : ;
11137     else
11138       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11139 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11140       XGETTEXT=":"
11141     fi
11142         rm -f messages.po
11143   fi
11144
11145             ac_config_commands="$ac_config_commands default-1"
11146
11147
11148
11149 # Permit host specific settings.
11150 . ${srcdir}/configure.host
11151
11152
11153 # Find a good install program.  We prefer a C program (faster),
11154 # so one script is as good as another.  But avoid the broken or
11155 # incompatible versions:
11156 # SysV /etc/install, /usr/sbin/install
11157 # SunOS /usr/etc/install
11158 # IRIX /sbin/install
11159 # AIX /bin/install
11160 # AmigaOS /C/install, which installs bootblocks on floppy discs
11161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11164 # OS/2's system install, which has a completely different semantic
11165 # ./install, which can be erroneously created by make from ./install.sh.
11166 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11167 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11168 if test -z "$INSTALL"; then
11169 if test "${ac_cv_path_install+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11174 do
11175   IFS=$as_save_IFS
11176   test -z "$as_dir" && as_dir=.
11177   # Account for people who put trailing slashes in PATH elements.
11178 case $as_dir/ in
11179   ./ | .// | /cC/* | \
11180   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11181   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11182   /usr/ucb/* ) ;;
11183   *)
11184     # OSF1 and SCO ODT 3.0 have their own names for install.
11185     # Don't use installbsd from OSF since it installs stuff as root
11186     # by default.
11187     for ac_prog in ginstall scoinst install; do
11188       for ac_exec_ext in '' $ac_executable_extensions; do
11189         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11190           if test $ac_prog = install &&
11191             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11192             # AIX install.  It has an incompatible calling convention.
11193             :
11194           elif test $ac_prog = install &&
11195             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11196             # program-specific install script used by HP pwplus--don't use.
11197             :
11198           else
11199             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11200             break 3
11201           fi
11202         fi
11203       done
11204     done
11205     ;;
11206 esac
11207 done
11208
11209
11210 fi
11211   if test "${ac_cv_path_install+set}" = set; then
11212     INSTALL=$ac_cv_path_install
11213   else
11214     # As a last resort, use the slow shell script.  We don't cache a
11215     # path for INSTALL within a source directory, because that will
11216     # break other packages using the cache if that directory is
11217     # removed, or if the path is relative.
11218     INSTALL=$ac_install_sh
11219   fi
11220 fi
11221 echo "$as_me:$LINENO: result: $INSTALL" >&5
11222 echo "${ECHO_T}$INSTALL" >&6
11223
11224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11225 # It thinks the first close brace ends the variable substitution.
11226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11227
11228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11229
11230 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11231
11232
11233 BFD_HOST_64BIT_LONG=0
11234 BFD_HOST_64BIT_LONG_LONG=0
11235 BFD_HOST_64_BIT_DEFINED=0
11236 BFD_HOST_64_BIT=
11237 BFD_HOST_U_64_BIT=
11238 BFD_HOSTPTR_T="unsigned long"
11239
11240 echo "$as_me:$LINENO: checking for long long" >&5
11241 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11242 if test "${ac_cv_type_long_long+set}" = set; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 $ac_includes_default
11252 int
11253 main ()
11254 {
11255 if ((long long *) 0)
11256   return 0;
11257 if (sizeof (long long))
11258   return 0;
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265   (eval $ac_compile) 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag"
11273                          || test ! -s conftest.err'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_type_long_long=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_cv_type_long_long=no
11291 fi
11292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 fi
11294 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11295 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11296
11297 echo "$as_me:$LINENO: checking size of long long" >&5
11298 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11299 if test "${ac_cv_sizeof_long_long+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   if test "$ac_cv_type_long_long" = yes; then
11303   # The cast to unsigned long works around a bug in the HP C Compiler
11304   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11305   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11306   # This bug is HP SR number 8606223364.
11307   if test "$cross_compiling" = yes; then
11308   # Depending upon the size, compute the lo and hi bounds.
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 $ac_includes_default
11316 int
11317 main ()
11318 {
11319 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11320 test_array [0] = 0
11321
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328   (eval $ac_compile) 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } &&
11335          { ac_try='test -z "$ac_c_werror_flag"
11336                          || test ! -s conftest.err'
11337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338   (eval $ac_try) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; } &&
11342          { ac_try='test -s conftest.$ac_objext'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   ac_lo=0 ac_mid=0
11349   while :; do
11350     cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h.  */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h.  */
11356 $ac_includes_default
11357 int
11358 main ()
11359 {
11360 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11361 test_array [0] = 0
11362
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369   (eval $ac_compile) 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } &&
11376          { ac_try='test -z "$ac_c_werror_flag"
11377                          || test ! -s conftest.err'
11378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379   (eval $ac_try) 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; } &&
11383          { ac_try='test -s conftest.$ac_objext'
11384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385   (eval $ac_try) 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); }; }; then
11389   ac_hi=$ac_mid; break
11390 else
11391   echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_lo=`expr $ac_mid + 1`
11395                     if test $ac_lo -le $ac_mid; then
11396                       ac_lo= ac_hi=
11397                       break
11398                     fi
11399                     ac_mid=`expr 2 '*' $ac_mid + 1`
11400 fi
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402   done
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h.  */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h.  */
11413 $ac_includes_default
11414 int
11415 main ()
11416 {
11417 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11418 test_array [0] = 0
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11426   (eval $ac_compile) 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -z "$ac_c_werror_flag"
11434                          || test ! -s conftest.err'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; } &&
11440          { ac_try='test -s conftest.$ac_objext'
11441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442   (eval $ac_try) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   ac_hi=-1 ac_mid=-1
11447   while :; do
11448     cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454 $ac_includes_default
11455 int
11456 main ()
11457 {
11458 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11459 test_array [0] = 0
11460
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467   (eval $ac_compile) 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag"
11475                          || test ! -s conftest.err'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; } &&
11481          { ac_try='test -s conftest.$ac_objext'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }; then
11487   ac_lo=$ac_mid; break
11488 else
11489   echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11491
11492 ac_hi=`expr '(' $ac_mid ')' - 1`
11493                        if test $ac_mid -le $ac_hi; then
11494                          ac_lo= ac_hi=
11495                          break
11496                        fi
11497                        ac_mid=`expr 2 '*' $ac_mid`
11498 fi
11499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11500   done
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 ac_lo= ac_hi=
11506 fi
11507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11508 fi
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11510 # Binary search between lo and hi bounds.
11511 while test "x$ac_lo" != "x$ac_hi"; do
11512   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11513   cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 $ac_includes_default
11520 int
11521 main ()
11522 {
11523 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11524 test_array [0] = 0
11525
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532   (eval $ac_compile) 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -z "$ac_c_werror_flag"
11540                          || test ! -s conftest.err'
11541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542   (eval $ac_try) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; } &&
11546          { ac_try='test -s conftest.$ac_objext'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_hi=$ac_mid
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_lo=`expr '(' $ac_mid ')' + 1`
11558 fi
11559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11560 done
11561 case $ac_lo in
11562 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11563 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11564 See \`config.log' for more details." >&5
11565 echo "$as_me: error: cannot compute sizeof (long long), 77
11566 See \`config.log' for more details." >&2;}
11567    { (exit 1); exit 1; }; } ;;
11568 esac
11569 else
11570   if test "$cross_compiling" = yes; then
11571   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11572 See \`config.log' for more details." >&5
11573 echo "$as_me: error: cannot run test program while cross compiling
11574 See \`config.log' for more details." >&2;}
11575    { (exit 1); exit 1; }; }
11576 else
11577   cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583 $ac_includes_default
11584 long longval () { return (long) (sizeof (long long)); }
11585 unsigned long ulongval () { return (long) (sizeof (long long)); }
11586 #include <stdio.h>
11587 #include <stdlib.h>
11588 int
11589 main ()
11590 {
11591
11592   FILE *f = fopen ("conftest.val", "w");
11593   if (! f)
11594     exit (1);
11595   if (((long) (sizeof (long long))) < 0)
11596     {
11597       long i = longval ();
11598       if (i != ((long) (sizeof (long long))))
11599         exit (1);
11600       fprintf (f, "%ld\n", i);
11601     }
11602   else
11603     {
11604       unsigned long i = ulongval ();
11605       if (i != ((long) (sizeof (long long))))
11606         exit (1);
11607       fprintf (f, "%lu\n", i);
11608     }
11609   exit (ferror (f) || fclose (f) != 0);
11610
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617   (eval $ac_link) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_cv_sizeof_long_long=`cat conftest.val`
11627 else
11628   echo "$as_me: program exited with status $ac_status" >&5
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ( exit $ac_status )
11633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11634 See \`config.log' for more details." >&5
11635 echo "$as_me: error: cannot compute sizeof (long long), 77
11636 See \`config.log' for more details." >&2;}
11637    { (exit 1); exit 1; }; }
11638 fi
11639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11640 fi
11641 fi
11642 rm -f conftest.val
11643 else
11644   ac_cv_sizeof_long_long=0
11645 fi
11646 fi
11647 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11648 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11649 cat >>confdefs.h <<_ACEOF
11650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11651 _ACEOF
11652
11653
11654 echo "$as_me:$LINENO: checking for void *" >&5
11655 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11656 if test "${ac_cv_type_void_p+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 $ac_includes_default
11666 int
11667 main ()
11668 {
11669 if ((void * *) 0)
11670   return 0;
11671 if (sizeof (void *))
11672   return 0;
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679   (eval $ac_compile) 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } &&
11686          { ac_try='test -z "$ac_c_werror_flag"
11687                          || test ! -s conftest.err'
11688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689   (eval $ac_try) 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; } &&
11693          { ac_try='test -s conftest.$ac_objext'
11694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }; then
11699   ac_cv_type_void_p=yes
11700 else
11701   echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 ac_cv_type_void_p=no
11705 fi
11706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11707 fi
11708 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11709 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11710
11711 echo "$as_me:$LINENO: checking size of void *" >&5
11712 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11713 if test "${ac_cv_sizeof_void_p+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   if test "$ac_cv_type_void_p" = yes; then
11717   # The cast to unsigned long works around a bug in the HP C Compiler
11718   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11719   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11720   # This bug is HP SR number 8606223364.
11721   if test "$cross_compiling" = yes; then
11722   # Depending upon the size, compute the lo and hi bounds.
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729 $ac_includes_default
11730 int
11731 main ()
11732 {
11733 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11734 test_array [0] = 0
11735
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742   (eval $ac_compile) 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_c_werror_flag"
11750                          || test ! -s conftest.err'
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); }; } &&
11756          { ac_try='test -s conftest.$ac_objext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   ac_lo=0 ac_mid=0
11763   while :; do
11764     cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 $ac_includes_default
11771 int
11772 main ()
11773 {
11774 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11775 test_array [0] = 0
11776
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783   (eval $ac_compile) 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -z "$ac_c_werror_flag"
11791                          || test ! -s conftest.err'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; } &&
11797          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11803   ac_hi=$ac_mid; break
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_lo=`expr $ac_mid + 1`
11809                     if test $ac_lo -le $ac_mid; then
11810                       ac_lo= ac_hi=
11811                       break
11812                     fi
11813                     ac_mid=`expr 2 '*' $ac_mid + 1`
11814 fi
11815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816   done
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 $ac_includes_default
11828 int
11829 main ()
11830 {
11831 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11832 test_array [0] = 0
11833
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11840   (eval $ac_compile) 2>conftest.er1
11841   ac_status=$?
11842   grep -v '^ *+' conftest.er1 >conftest.err
11843   rm -f conftest.er1
11844   cat conftest.err >&5
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -z "$ac_c_werror_flag"
11848                          || test ! -s conftest.err'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; } &&
11854          { ac_try='test -s conftest.$ac_objext'
11855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856   (eval $ac_try) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }; then
11860   ac_hi=-1 ac_mid=-1
11861   while :; do
11862     cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868 $ac_includes_default
11869 int
11870 main ()
11871 {
11872 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11873 test_array [0] = 0
11874
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881   (eval $ac_compile) 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag"
11889                          || test ! -s conftest.err'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; } &&
11895          { ac_try='test -s conftest.$ac_objext'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   ac_lo=$ac_mid; break
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_hi=`expr '(' $ac_mid ')' - 1`
11907                        if test $ac_mid -le $ac_hi; then
11908                          ac_lo= ac_hi=
11909                          break
11910                        fi
11911                        ac_mid=`expr 2 '*' $ac_mid`
11912 fi
11913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11914   done
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_lo= ac_hi=
11920 fi
11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922 fi
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 # Binary search between lo and hi bounds.
11925 while test "x$ac_lo" != "x$ac_hi"; do
11926   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11927   cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 $ac_includes_default
11934 int
11935 main ()
11936 {
11937 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11938 test_array [0] = 0
11939
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946   (eval $ac_compile) 2>conftest.er1
11947   ac_status=$?
11948   grep -v '^ *+' conftest.er1 >conftest.err
11949   rm -f conftest.er1
11950   cat conftest.err >&5
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } &&
11953          { ac_try='test -z "$ac_c_werror_flag"
11954                          || test ! -s conftest.err'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; } &&
11960          { ac_try='test -s conftest.$ac_objext'
11961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962   (eval $ac_try) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   ac_hi=$ac_mid
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 ac_lo=`expr '(' $ac_mid ')' + 1`
11972 fi
11973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 done
11975 case $ac_lo in
11976 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11977 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11978 See \`config.log' for more details." >&5
11979 echo "$as_me: error: cannot compute sizeof (void *), 77
11980 See \`config.log' for more details." >&2;}
11981    { (exit 1); exit 1; }; } ;;
11982 esac
11983 else
11984   if test "$cross_compiling" = yes; then
11985   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11986 See \`config.log' for more details." >&5
11987 echo "$as_me: error: cannot run test program while cross compiling
11988 See \`config.log' for more details." >&2;}
11989    { (exit 1); exit 1; }; }
11990 else
11991   cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h.  */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h.  */
11997 $ac_includes_default
11998 long longval () { return (long) (sizeof (void *)); }
11999 unsigned long ulongval () { return (long) (sizeof (void *)); }
12000 #include <stdio.h>
12001 #include <stdlib.h>
12002 int
12003 main ()
12004 {
12005
12006   FILE *f = fopen ("conftest.val", "w");
12007   if (! f)
12008     exit (1);
12009   if (((long) (sizeof (void *))) < 0)
12010     {
12011       long i = longval ();
12012       if (i != ((long) (sizeof (void *))))
12013         exit (1);
12014       fprintf (f, "%ld\n", i);
12015     }
12016   else
12017     {
12018       unsigned long i = ulongval ();
12019       if (i != ((long) (sizeof (void *))))
12020         exit (1);
12021       fprintf (f, "%lu\n", i);
12022     }
12023   exit (ferror (f) || fclose (f) != 0);
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   ac_cv_sizeof_void_p=`cat conftest.val`
12041 else
12042   echo "$as_me: program exited with status $ac_status" >&5
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ( exit $ac_status )
12047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12048 See \`config.log' for more details." >&5
12049 echo "$as_me: error: cannot compute sizeof (void *), 77
12050 See \`config.log' for more details." >&2;}
12051    { (exit 1); exit 1; }; }
12052 fi
12053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12054 fi
12055 fi
12056 rm -f conftest.val
12057 else
12058   ac_cv_sizeof_void_p=0
12059 fi
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12062 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12063 cat >>confdefs.h <<_ACEOF
12064 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12065 _ACEOF
12066
12067
12068 echo "$as_me:$LINENO: checking for long" >&5
12069 echo $ECHO_N "checking for long... $ECHO_C" >&6
12070 if test "${ac_cv_type_long+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 $ac_includes_default
12080 int
12081 main ()
12082 {
12083 if ((long *) 0)
12084   return 0;
12085 if (sizeof (long))
12086   return 0;
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093   (eval $ac_compile) 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -z "$ac_c_werror_flag"
12101                          || test ! -s conftest.err'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; } &&
12107          { ac_try='test -s conftest.$ac_objext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   ac_cv_type_long=yes
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 ac_cv_type_long=no
12119 fi
12120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12121 fi
12122 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12123 echo "${ECHO_T}$ac_cv_type_long" >&6
12124
12125 echo "$as_me:$LINENO: checking size of long" >&5
12126 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12127 if test "${ac_cv_sizeof_long+set}" = set; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130   if test "$ac_cv_type_long" = yes; then
12131   # The cast to unsigned long works around a bug in the HP C Compiler
12132   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12133   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12134   # This bug is HP SR number 8606223364.
12135   if test "$cross_compiling" = yes; then
12136   # Depending upon the size, compute the lo and hi bounds.
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 int
12145 main ()
12146 {
12147 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12148 test_array [0] = 0
12149
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156   (eval $ac_compile) 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_c_werror_flag"
12164                          || test ! -s conftest.err'
12165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166   (eval $ac_try) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172   (eval $ac_try) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; }; then
12176   ac_lo=0 ac_mid=0
12177   while :; do
12178     cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 $ac_includes_default
12185 int
12186 main ()
12187 {
12188 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12189 test_array [0] = 0
12190
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197   (eval $ac_compile) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"
12205                          || test ! -s conftest.err'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest.$ac_objext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   ac_hi=$ac_mid; break
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_lo=`expr $ac_mid + 1`
12223                     if test $ac_lo -le $ac_mid; then
12224                       ac_lo= ac_hi=
12225                       break
12226                     fi
12227                     ac_mid=`expr 2 '*' $ac_mid + 1`
12228 fi
12229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230   done
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241 $ac_includes_default
12242 int
12243 main ()
12244 {
12245 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12246 test_array [0] = 0
12247
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254   (eval $ac_compile) 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } &&
12261          { ac_try='test -z "$ac_c_werror_flag"
12262                          || test ! -s conftest.err'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest.$ac_objext'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; }; then
12274   ac_hi=-1 ac_mid=-1
12275   while :; do
12276     cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h.  */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h.  */
12282 $ac_includes_default
12283 int
12284 main ()
12285 {
12286 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12287 test_array [0] = 0
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295   (eval $ac_compile) 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } &&
12302          { ac_try='test -z "$ac_c_werror_flag"
12303                          || test ! -s conftest.err'
12304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305   (eval $ac_try) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; } &&
12309          { ac_try='test -s conftest.$ac_objext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_lo=$ac_mid; break
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_hi=`expr '(' $ac_mid ')' - 1`
12321                        if test $ac_mid -le $ac_hi; then
12322                          ac_lo= ac_hi=
12323                          break
12324                        fi
12325                        ac_mid=`expr 2 '*' $ac_mid`
12326 fi
12327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328   done
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ac_lo= ac_hi=
12334 fi
12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 # Binary search between lo and hi bounds.
12339 while test "x$ac_lo" != "x$ac_hi"; do
12340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12341   cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348 int
12349 main ()
12350 {
12351 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12352 test_array [0] = 0
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag"
12368                          || test ! -s conftest.err'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; } &&
12374          { ac_try='test -s conftest.$ac_objext'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380   ac_hi=$ac_mid
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 ac_lo=`expr '(' $ac_mid ')' + 1`
12386 fi
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 done
12389 case $ac_lo in
12390 ?*) ac_cv_sizeof_long=$ac_lo;;
12391 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12392 See \`config.log' for more details." >&5
12393 echo "$as_me: error: cannot compute sizeof (long), 77
12394 See \`config.log' for more details." >&2;}
12395    { (exit 1); exit 1; }; } ;;
12396 esac
12397 else
12398   if test "$cross_compiling" = yes; then
12399   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12400 See \`config.log' for more details." >&5
12401 echo "$as_me: error: cannot run test program while cross compiling
12402 See \`config.log' for more details." >&2;}
12403    { (exit 1); exit 1; }; }
12404 else
12405   cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 $ac_includes_default
12412 long longval () { return (long) (sizeof (long)); }
12413 unsigned long ulongval () { return (long) (sizeof (long)); }
12414 #include <stdio.h>
12415 #include <stdlib.h>
12416 int
12417 main ()
12418 {
12419
12420   FILE *f = fopen ("conftest.val", "w");
12421   if (! f)
12422     exit (1);
12423   if (((long) (sizeof (long))) < 0)
12424     {
12425       long i = longval ();
12426       if (i != ((long) (sizeof (long))))
12427         exit (1);
12428       fprintf (f, "%ld\n", i);
12429     }
12430   else
12431     {
12432       unsigned long i = ulongval ();
12433       if (i != ((long) (sizeof (long))))
12434         exit (1);
12435       fprintf (f, "%lu\n", i);
12436     }
12437   exit (ferror (f) || fclose (f) != 0);
12438
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445   (eval $ac_link) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_cv_sizeof_long=`cat conftest.val`
12455 else
12456   echo "$as_me: program exited with status $ac_status" >&5
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ( exit $ac_status )
12461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12462 See \`config.log' for more details." >&5
12463 echo "$as_me: error: cannot compute sizeof (long), 77
12464 See \`config.log' for more details." >&2;}
12465    { (exit 1); exit 1; }; }
12466 fi
12467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12468 fi
12469 fi
12470 rm -f conftest.val
12471 else
12472   ac_cv_sizeof_long=0
12473 fi
12474 fi
12475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12476 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12477 cat >>confdefs.h <<_ACEOF
12478 #define SIZEOF_LONG $ac_cv_sizeof_long
12479 _ACEOF
12480
12481
12482
12483 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12484   host64=true
12485 fi
12486
12487 if test "x${ac_cv_sizeof_long}" = "x8"; then
12488   BFD_HOST_64BIT_LONG=1
12489   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12490   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12491 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12492   BFD_HOST_64BIT_LONG_LONG=1
12493   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12494   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12495   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12496     BFD_HOSTPTR_T="unsigned long long"
12497   fi
12498 fi
12499
12500 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12501   BFD_HOST_64_BIT_DEFINED=1
12502   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12503   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12504 fi
12505
12506
12507
12508
12509
12510
12511
12512
12513 # Put a plausible default for CC_FOR_BUILD in Makefile.
12514 if test -z "$CC_FOR_BUILD"; then
12515   if test "x$cross_compiling" = "xno"; then
12516     CC_FOR_BUILD='$(CC)'
12517   else
12518     CC_FOR_BUILD=gcc
12519   fi
12520 fi
12521
12522 # Also set EXEEXT_FOR_BUILD.
12523 if test "x$cross_compiling" = "xno"; then
12524   EXEEXT_FOR_BUILD='$(EXEEXT)'
12525 else
12526   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12527 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12528 if test "${bfd_cv_build_exeext+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   rm -f conftest*
12532      echo 'int main () { return 0; }' > conftest.c
12533      bfd_cv_build_exeext=
12534      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12535      for file in conftest.*; do
12536        case $file in
12537        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12538        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12539        esac
12540      done
12541      rm -f conftest*
12542      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12543 fi
12544 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12545 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12546   EXEEXT_FOR_BUILD=""
12547   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12548 fi
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12559 do
12560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12562   echo "$as_me:$LINENO: checking for $ac_header" >&5
12563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 fi
12567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12569 else
12570   # Is the header compilable?
12571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 $ac_includes_default
12580 #include <$ac_header>
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584   (eval $ac_compile) 2>conftest.er1
12585   ac_status=$?
12586   grep -v '^ *+' conftest.er1 >conftest.err
12587   rm -f conftest.er1
12588   cat conftest.err >&5
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } &&
12591          { ac_try='test -z "$ac_c_werror_flag"
12592                          || test ! -s conftest.err'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; } &&
12598          { ac_try='test -s conftest.$ac_objext'
12599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600   (eval $ac_try) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; }; then
12604   ac_header_compiler=yes
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609 ac_header_compiler=no
12610 fi
12611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613 echo "${ECHO_T}$ac_header_compiler" >&6
12614
12615 # Is the header present?
12616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 #include <$ac_header>
12625 _ACEOF
12626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } >/dev/null; then
12634   if test -s conftest.err; then
12635     ac_cpp_err=$ac_c_preproc_warn_flag
12636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12637   else
12638     ac_cpp_err=
12639   fi
12640 else
12641   ac_cpp_err=yes
12642 fi
12643 if test -z "$ac_cpp_err"; then
12644   ac_header_preproc=yes
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649   ac_header_preproc=no
12650 fi
12651 rm -f conftest.err conftest.$ac_ext
12652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653 echo "${ECHO_T}$ac_header_preproc" >&6
12654
12655 # So?  What about this header?
12656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657   yes:no: )
12658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662     ac_header_preproc=yes
12663     ;;
12664   no:yes:* )
12665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12677     (
12678       cat <<\_ASBOX
12679 ## ------------------------------------------ ##
12680 ## Report this to the AC_PACKAGE_NAME lists.  ##
12681 ## ------------------------------------------ ##
12682 _ASBOX
12683     ) |
12684       sed "s/^/$as_me: WARNING:     /" >&2
12685     ;;
12686 esac
12687 echo "$as_me:$LINENO: checking for $ac_header" >&5
12688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   eval "$as_ac_Header=\$ac_header_preproc"
12693 fi
12694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12696
12697 fi
12698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12699   cat >>confdefs.h <<_ACEOF
12700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12701 _ACEOF
12702
12703 fi
12704
12705 done
12706
12707
12708
12709
12710 for ac_header in fcntl.h sys/file.h sys/time.h
12711 do
12712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714   echo "$as_me:$LINENO: checking for $ac_header" >&5
12715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 fi
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12721 else
12722   # Is the header compilable?
12723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731 $ac_includes_default
12732 #include <$ac_header>
12733 _ACEOF
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736   (eval $ac_compile) 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } &&
12743          { ac_try='test -z "$ac_c_werror_flag"
12744                          || test ! -s conftest.err'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; } &&
12750          { ac_try='test -s conftest.$ac_objext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_header_compiler=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 ac_header_compiler=no
12762 fi
12763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12765 echo "${ECHO_T}$ac_header_compiler" >&6
12766
12767 # Is the header present?
12768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <$ac_header>
12777 _ACEOF
12778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } >/dev/null; then
12786   if test -s conftest.err; then
12787     ac_cpp_err=$ac_c_preproc_warn_flag
12788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12789   else
12790     ac_cpp_err=
12791   fi
12792 else
12793   ac_cpp_err=yes
12794 fi
12795 if test -z "$ac_cpp_err"; then
12796   ac_header_preproc=yes
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801   ac_header_preproc=no
12802 fi
12803 rm -f conftest.err conftest.$ac_ext
12804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12805 echo "${ECHO_T}$ac_header_preproc" >&6
12806
12807 # So?  What about this header?
12808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12809   yes:no: )
12810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12814     ac_header_preproc=yes
12815     ;;
12816   no:yes:* )
12817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12829     (
12830       cat <<\_ASBOX
12831 ## ------------------------------------------ ##
12832 ## Report this to the AC_PACKAGE_NAME lists.  ##
12833 ## ------------------------------------------ ##
12834 _ASBOX
12835     ) |
12836       sed "s/^/$as_me: WARNING:     /" >&2
12837     ;;
12838 esac
12839 echo "$as_me:$LINENO: checking for $ac_header" >&5
12840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   eval "$as_ac_Header=\$ac_header_preproc"
12845 fi
12846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12848
12849 fi
12850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12851   cat >>confdefs.h <<_ACEOF
12852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12853 _ACEOF
12854
12855 fi
12856
12857 done
12858
12859
12860
12861 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12862
12863 acx_cv_header_stdint=stddef.h
12864 acx_cv_header_stdint_kind="(already complete)"
12865 for i in stdint.h $inttype_headers; do
12866   unset ac_cv_type_uintptr_t
12867   unset ac_cv_type_uintmax_t
12868   unset ac_cv_type_int_least32_t
12869   unset ac_cv_type_int_fast32_t
12870   unset ac_cv_type_uint64_t
12871   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12872   echo "$as_me:$LINENO: checking for uintmax_t" >&5
12873 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12874 if test "${ac_cv_type_uintmax_t+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883 #include <sys/types.h>
12884 #include <$i>
12885
12886 int
12887 main ()
12888 {
12889 if ((uintmax_t *) 0)
12890   return 0;
12891 if (sizeof (uintmax_t))
12892   return 0;
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899   (eval $ac_compile) 2>conftest.er1
12900   ac_status=$?
12901   grep -v '^ *+' conftest.er1 >conftest.err
12902   rm -f conftest.er1
12903   cat conftest.err >&5
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } &&
12906          { ac_try='test -z "$ac_c_werror_flag"
12907                          || test ! -s conftest.err'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; } &&
12913          { ac_try='test -s conftest.$ac_objext'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   ac_cv_type_uintmax_t=yes
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_cv_type_uintmax_t=no
12925 fi
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 fi
12928 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12929 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12930 if test $ac_cv_type_uintmax_t = yes; then
12931   acx_cv_header_stdint=$i
12932 else
12933   continue
12934 fi
12935
12936   echo "$as_me:$LINENO: checking for uintptr_t" >&5
12937 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12938 if test "${ac_cv_type_uintptr_t+set}" = set; then
12939   echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941   cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 #include <sys/types.h>
12948 #include <$i>
12949
12950 int
12951 main ()
12952 {
12953 if ((uintptr_t *) 0)
12954   return 0;
12955 if (sizeof (uintptr_t))
12956   return 0;
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963   (eval $ac_compile) 2>conftest.er1
12964   ac_status=$?
12965   grep -v '^ *+' conftest.er1 >conftest.err
12966   rm -f conftest.er1
12967   cat conftest.err >&5
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); } &&
12970          { ac_try='test -z "$ac_c_werror_flag"
12971                          || test ! -s conftest.err'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } &&
12977          { ac_try='test -s conftest.$ac_objext'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   ac_cv_type_uintptr_t=yes
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_cv_type_uintptr_t=no
12989 fi
12990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12993 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12994 if test $ac_cv_type_uintptr_t = yes; then
12995   :
12996 else
12997   acx_cv_header_stdint_kind="(mostly complete)"
12998 fi
12999
13000   echo "$as_me:$LINENO: checking for int_least32_t" >&5
13001 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13002 if test "${ac_cv_type_int_least32_t+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h.  */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h.  */
13011 #include <sys/types.h>
13012 #include <$i>
13013
13014 int
13015 main ()
13016 {
13017 if ((int_least32_t *) 0)
13018   return 0;
13019 if (sizeof (int_least32_t))
13020   return 0;
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027   (eval $ac_compile) 2>conftest.er1
13028   ac_status=$?
13029   grep -v '^ *+' conftest.er1 >conftest.err
13030   rm -f conftest.er1
13031   cat conftest.err >&5
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -z "$ac_c_werror_flag"
13035                          || test ! -s conftest.err'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; } &&
13041          { ac_try='test -s conftest.$ac_objext'
13042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043   (eval $ac_try) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_cv_type_int_least32_t=yes
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_cv_type_int_least32_t=no
13053 fi
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13057 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13058 if test $ac_cv_type_int_least32_t = yes; then
13059   :
13060 else
13061   acx_cv_header_stdint_kind="(mostly complete)"
13062 fi
13063
13064   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13065 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13066 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h.  */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h.  */
13075 #include <sys/types.h>
13076 #include <$i>
13077
13078 int
13079 main ()
13080 {
13081 if ((int_fast32_t *) 0)
13082   return 0;
13083 if (sizeof (int_fast32_t))
13084   return 0;
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091   (eval $ac_compile) 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } &&
13098          { ac_try='test -z "$ac_c_werror_flag"
13099                          || test ! -s conftest.err'
13100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101   (eval $ac_try) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }; } &&
13105          { ac_try='test -s conftest.$ac_objext'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111   ac_cv_type_int_fast32_t=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 ac_cv_type_int_fast32_t=no
13117 fi
13118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13121 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13122 if test $ac_cv_type_int_fast32_t = yes; then
13123   :
13124 else
13125   acx_cv_header_stdint_kind="(mostly complete)"
13126 fi
13127
13128   echo "$as_me:$LINENO: checking for uint64_t" >&5
13129 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13130 if test "${ac_cv_type_uint64_t+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 #include <sys/types.h>
13140 #include <$i>
13141
13142 int
13143 main ()
13144 {
13145 if ((uint64_t *) 0)
13146   return 0;
13147 if (sizeof (uint64_t))
13148   return 0;
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155   (eval $ac_compile) 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } &&
13162          { ac_try='test -z "$ac_c_werror_flag"
13163                          || test ! -s conftest.err'
13164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165   (eval $ac_try) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); }; } &&
13169          { ac_try='test -s conftest.$ac_objext'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_cv_type_uint64_t=yes
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ac_cv_type_uint64_t=no
13181 fi
13182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13185 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13186 if test $ac_cv_type_uint64_t = yes; then
13187   :
13188 else
13189   acx_cv_header_stdint_kind="(lacks uint64_t)"
13190 fi
13191
13192   break
13193 done
13194 if test "$acx_cv_header_stdint" = stddef.h; then
13195   acx_cv_header_stdint_kind="(lacks uintmax_t)"
13196   for i in stdint.h $inttype_headers; do
13197     unset ac_cv_type_uintptr_t
13198     unset ac_cv_type_uint32_t
13199     unset ac_cv_type_uint64_t
13200     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13201     echo "$as_me:$LINENO: checking for uint32_t" >&5
13202 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13203 if test "${ac_cv_type_uint32_t+set}" = set; then
13204   echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206   cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212 #include <sys/types.h>
13213 #include <$i>
13214
13215 int
13216 main ()
13217 {
13218 if ((uint32_t *) 0)
13219   return 0;
13220 if (sizeof (uint32_t))
13221   return 0;
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228   (eval $ac_compile) 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } &&
13235          { ac_try='test -z "$ac_c_werror_flag"
13236                          || test ! -s conftest.err'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_cv_type_uint32_t=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 ac_cv_type_uint32_t=no
13254 fi
13255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi
13257 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13258 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13259 if test $ac_cv_type_uint32_t = yes; then
13260   acx_cv_header_stdint=$i
13261 else
13262   continue
13263 fi
13264
13265     echo "$as_me:$LINENO: checking for uint64_t" >&5
13266 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13267 if test "${ac_cv_type_uint64_t+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 #include <sys/types.h>
13277 #include <$i>
13278
13279 int
13280 main ()
13281 {
13282 if ((uint64_t *) 0)
13283   return 0;
13284 if (sizeof (uint64_t))
13285   return 0;
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292   (eval $ac_compile) 2>conftest.er1
13293   ac_status=$?
13294   grep -v '^ *+' conftest.er1 >conftest.err
13295   rm -f conftest.er1
13296   cat conftest.err >&5
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } &&
13299          { ac_try='test -z "$ac_c_werror_flag"
13300                          || test ! -s conftest.err'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; } &&
13306          { ac_try='test -s conftest.$ac_objext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_type_uint64_t=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_type_uint64_t=no
13318 fi
13319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13322 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13323
13324     echo "$as_me:$LINENO: checking for uintptr_t" >&5
13325 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13326 if test "${ac_cv_type_uintptr_t+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329   cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h.  */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h.  */
13335 #include <sys/types.h>
13336 #include <$i>
13337
13338 int
13339 main ()
13340 {
13341 if ((uintptr_t *) 0)
13342   return 0;
13343 if (sizeof (uintptr_t))
13344   return 0;
13345   ;
13346   return 0;
13347 }
13348 _ACEOF
13349 rm -f conftest.$ac_objext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351   (eval $ac_compile) 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } &&
13358          { ac_try='test -z "$ac_c_werror_flag"
13359                          || test ! -s conftest.err'
13360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361   (eval $ac_try) 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }; } &&
13365          { ac_try='test -s conftest.$ac_objext'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; }; then
13371   ac_cv_type_uintptr_t=yes
13372 else
13373   echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13375
13376 ac_cv_type_uintptr_t=no
13377 fi
13378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13379 fi
13380 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13381 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13382
13383     break
13384   done
13385 fi
13386 if test "$acx_cv_header_stdint" = stddef.h; then
13387   acx_cv_header_stdint_kind="(u_intXX_t style)"
13388   for i in sys/types.h $inttype_headers; do
13389     unset ac_cv_type_u_int32_t
13390     unset ac_cv_type_u_int64_t
13391     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13392     echo "$as_me:$LINENO: checking for u_int32_t" >&5
13393 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13394 if test "${ac_cv_type_u_int32_t+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397   cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13403 #include <sys/types.h>
13404 #include <$i>
13405
13406 int
13407 main ()
13408 {
13409 if ((u_int32_t *) 0)
13410   return 0;
13411 if (sizeof (u_int32_t))
13412   return 0;
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13419   (eval $ac_compile) 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag"
13427                          || test ! -s conftest.err'
13428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429   (eval $ac_try) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); }; } &&
13433          { ac_try='test -s conftest.$ac_objext'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_cv_type_u_int32_t=yes
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 ac_cv_type_u_int32_t=no
13445 fi
13446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13449 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13450 if test $ac_cv_type_u_int32_t = yes; then
13451   acx_cv_header_stdint=$i
13452 else
13453   continue
13454 fi
13455
13456     echo "$as_me:$LINENO: checking for u_int64_t" >&5
13457 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13458 if test "${ac_cv_type_u_int64_t+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467 #include <sys/types.h>
13468 #include <$i>
13469
13470 int
13471 main ()
13472 {
13473 if ((u_int64_t *) 0)
13474   return 0;
13475 if (sizeof (u_int64_t))
13476   return 0;
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13483   (eval $ac_compile) 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag"
13491                          || test ! -s conftest.err'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; } &&
13497          { ac_try='test -s conftest.$ac_objext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_type_u_int64_t=yes
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_cv_type_u_int64_t=no
13509 fi
13510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13511 fi
13512 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13513 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13514
13515     break
13516   done
13517 fi
13518 if test "$acx_cv_header_stdint" = stddef.h; then
13519   acx_cv_header_stdint_kind="(using manual detection)"
13520 fi
13521
13522 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13523 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13524 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13525 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13526 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13527
13528 # ----------------- Summarize what we found so far
13529
13530 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13531 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13532
13533 case `$as_basename bfd_stdint.h ||
13534 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13535          Xbfd_stdint.h : 'X\(//\)$' \| \
13536          Xbfd_stdint.h : 'X\(/\)$' \| \
13537          .     : '\(.\)' 2>/dev/null ||
13538 echo X/bfd_stdint.h |
13539     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13540           /^X\/\(\/\/\)$/{ s//\1/; q; }
13541           /^X\/\(\/\).*/{ s//\1/; q; }
13542           s/.*/./; q'` in
13543   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13544 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13545   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13546 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13547   *) ;;
13548 esac
13549
13550 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13551 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13552
13553 # ----------------- done included file, check C basic types --------
13554
13555 # Lacking an uintptr_t?  Test size of void *
13556 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13557   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13558 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13559 if test "${ac_cv_type_void_p+set}" = set; then
13560   echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562   cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 $ac_includes_default
13569 int
13570 main ()
13571 {
13572 if ((void * *) 0)
13573   return 0;
13574 if (sizeof (void *))
13575   return 0;
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>conftest.er1
13583   ac_status=$?
13584   grep -v '^ *+' conftest.er1 >conftest.err
13585   rm -f conftest.er1
13586   cat conftest.err >&5
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } &&
13589          { ac_try='test -z "$ac_c_werror_flag"
13590                          || test ! -s conftest.err'
13591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592   (eval $ac_try) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); }; } &&
13596          { ac_try='test -s conftest.$ac_objext'
13597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598   (eval $ac_try) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; }; then
13602   ac_cv_type_void_p=yes
13603 else
13604   echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13606
13607 ac_cv_type_void_p=no
13608 fi
13609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13610 fi
13611 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13612 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13613
13614 echo "$as_me:$LINENO: checking size of void *" >&5
13615 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13616 if test "${ac_cv_sizeof_void_p+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   if test "$ac_cv_type_void_p" = yes; then
13620   # The cast to unsigned long works around a bug in the HP C Compiler
13621   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13622   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13623   # This bug is HP SR number 8606223364.
13624   if test "$cross_compiling" = yes; then
13625   # Depending upon the size, compute the lo and hi bounds.
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h.  */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h.  */
13632 $ac_includes_default
13633 int
13634 main ()
13635 {
13636 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13637 test_array [0] = 0
13638
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645   (eval $ac_compile) 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -z "$ac_c_werror_flag"
13653                          || test ! -s conftest.err'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; } &&
13659          { ac_try='test -s conftest.$ac_objext'
13660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661   (eval $ac_try) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_lo=0 ac_mid=0
13666   while :; do
13667     cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 $ac_includes_default
13674 int
13675 main ()
13676 {
13677 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13678 test_array [0] = 0
13679
13680   ;
13681   return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686   (eval $ac_compile) 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag"
13694                          || test ! -s conftest.err'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; } &&
13700          { ac_try='test -s conftest.$ac_objext'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706   ac_hi=$ac_mid; break
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 ac_lo=`expr $ac_mid + 1`
13712                     if test $ac_lo -le $ac_mid; then
13713                       ac_lo= ac_hi=
13714                       break
13715                     fi
13716                     ac_mid=`expr 2 '*' $ac_mid + 1`
13717 fi
13718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13719   done
13720 else
13721   echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 $ac_includes_default
13731 int
13732 main ()
13733 {
13734 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13735 test_array [0] = 0
13736
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743   (eval $ac_compile) 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -z "$ac_c_werror_flag"
13751                          || test ! -s conftest.err'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; } &&
13757          { ac_try='test -s conftest.$ac_objext'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_hi=-1 ac_mid=-1
13764   while :; do
13765     cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 $ac_includes_default
13772 int
13773 main ()
13774 {
13775 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13776 test_array [0] = 0
13777
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784   (eval $ac_compile) 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } &&
13791          { ac_try='test -z "$ac_c_werror_flag"
13792                          || test ! -s conftest.err'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; } &&
13798          { ac_try='test -s conftest.$ac_objext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_lo=$ac_mid; break
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 ac_hi=`expr '(' $ac_mid ')' - 1`
13810                        if test $ac_mid -le $ac_hi; then
13811                          ac_lo= ac_hi=
13812                          break
13813                        fi
13814                        ac_mid=`expr 2 '*' $ac_mid`
13815 fi
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817   done
13818 else
13819   echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_lo= ac_hi=
13823 fi
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 # Binary search between lo and hi bounds.
13828 while test "x$ac_lo" != "x$ac_hi"; do
13829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13830   cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836 $ac_includes_default
13837 int
13838 main ()
13839 {
13840 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13841 test_array [0] = 0
13842
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849   (eval $ac_compile) 2>conftest.er1
13850   ac_status=$?
13851   grep -v '^ *+' conftest.er1 >conftest.err
13852   rm -f conftest.er1
13853   cat conftest.err >&5
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -z "$ac_c_werror_flag"
13857                          || test ! -s conftest.err'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest.$ac_objext'
13864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865   (eval $ac_try) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_hi=$ac_mid
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 ac_lo=`expr '(' $ac_mid ')' + 1`
13875 fi
13876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13877 done
13878 case $ac_lo in
13879 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13881 See \`config.log' for more details." >&5
13882 echo "$as_me: error: cannot compute sizeof (void *), 77
13883 See \`config.log' for more details." >&2;}
13884    { (exit 1); exit 1; }; } ;;
13885 esac
13886 else
13887   if test "$cross_compiling" = yes; then
13888   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13889 See \`config.log' for more details." >&5
13890 echo "$as_me: error: cannot run test program while cross compiling
13891 See \`config.log' for more details." >&2;}
13892    { (exit 1); exit 1; }; }
13893 else
13894   cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h.  */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h.  */
13900 $ac_includes_default
13901 long longval () { return (long) (sizeof (void *)); }
13902 unsigned long ulongval () { return (long) (sizeof (void *)); }
13903 #include <stdio.h>
13904 #include <stdlib.h>
13905 int
13906 main ()
13907 {
13908
13909   FILE *f = fopen ("conftest.val", "w");
13910   if (! f)
13911     exit (1);
13912   if (((long) (sizeof (void *))) < 0)
13913     {
13914       long i = longval ();
13915       if (i != ((long) (sizeof (void *))))
13916         exit (1);
13917       fprintf (f, "%ld\n", i);
13918     }
13919   else
13920     {
13921       unsigned long i = ulongval ();
13922       if (i != ((long) (sizeof (void *))))
13923         exit (1);
13924       fprintf (f, "%lu\n", i);
13925     }
13926   exit (ferror (f) || fclose (f) != 0);
13927
13928   ;
13929   return 0;
13930 }
13931 _ACEOF
13932 rm -f conftest$ac_exeext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934   (eval $ac_link) 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_cv_sizeof_void_p=`cat conftest.val`
13944 else
13945   echo "$as_me: program exited with status $ac_status" >&5
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949 ( exit $ac_status )
13950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13951 See \`config.log' for more details." >&5
13952 echo "$as_me: error: cannot compute sizeof (void *), 77
13953 See \`config.log' for more details." >&2;}
13954    { (exit 1); exit 1; }; }
13955 fi
13956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 fi
13959 rm -f conftest.val
13960 else
13961   ac_cv_sizeof_void_p=0
13962 fi
13963 fi
13964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13965 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13966 cat >>confdefs.h <<_ACEOF
13967 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13968 _ACEOF
13969
13970  ;;
13971 esac
13972
13973 # Lacking an uint64_t?  Test size of long
13974 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13975   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13976 echo $ECHO_N "checking for long... $ECHO_C" >&6
13977 if test "${ac_cv_type_long+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h.  */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h.  */
13986 $ac_includes_default
13987 int
13988 main ()
13989 {
13990 if ((long *) 0)
13991   return 0;
13992 if (sizeof (long))
13993   return 0;
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag"
14008                          || test ! -s conftest.err'
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); }; } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_cv_type_long=yes
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_cv_type_long=no
14026 fi
14027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14030 echo "${ECHO_T}$ac_cv_type_long" >&6
14031
14032 echo "$as_me:$LINENO: checking size of long" >&5
14033 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14034 if test "${ac_cv_sizeof_long+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   if test "$ac_cv_type_long" = yes; then
14038   # The cast to unsigned long works around a bug in the HP C Compiler
14039   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14040   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14041   # This bug is HP SR number 8606223364.
14042   if test "$cross_compiling" = yes; then
14043   # Depending upon the size, compute the lo and hi bounds.
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 $ac_includes_default
14051 int
14052 main ()
14053 {
14054 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14055 test_array [0] = 0
14056
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063   (eval $ac_compile) 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_c_werror_flag"
14071                          || test ! -s conftest.err'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; } &&
14077          { ac_try='test -s conftest.$ac_objext'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_lo=0 ac_mid=0
14084   while :; do
14085     cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h.  */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h.  */
14091 $ac_includes_default
14092 int
14093 main ()
14094 {
14095 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14096 test_array [0] = 0
14097
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104   (eval $ac_compile) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_c_werror_flag"
14112                          || test ! -s conftest.err'
14113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114   (eval $ac_try) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest.$ac_objext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   ac_hi=$ac_mid; break
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129 ac_lo=`expr $ac_mid + 1`
14130                     if test $ac_lo -le $ac_mid; then
14131                       ac_lo= ac_hi=
14132                       break
14133                     fi
14134                     ac_mid=`expr 2 '*' $ac_mid + 1`
14135 fi
14136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14137   done
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 $ac_includes_default
14149 int
14150 main ()
14151 {
14152 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14153 test_array [0] = 0
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -z "$ac_c_werror_flag"
14169                          || test ! -s conftest.err'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; } &&
14175          { ac_try='test -s conftest.$ac_objext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_hi=-1 ac_mid=-1
14182   while :; do
14183     cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 $ac_includes_default
14190 int
14191 main ()
14192 {
14193 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14194 test_array [0] = 0
14195
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202   (eval $ac_compile) 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } &&
14209          { ac_try='test -z "$ac_c_werror_flag"
14210                          || test ! -s conftest.err'
14211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212   (eval $ac_try) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; } &&
14216          { ac_try='test -s conftest.$ac_objext'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_lo=$ac_mid; break
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_hi=`expr '(' $ac_mid ')' - 1`
14228                        if test $ac_mid -le $ac_hi; then
14229                          ac_lo= ac_hi=
14230                          break
14231                        fi
14232                        ac_mid=`expr 2 '*' $ac_mid`
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235   done
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_lo= ac_hi=
14241 fi
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245 # Binary search between lo and hi bounds.
14246 while test "x$ac_lo" != "x$ac_hi"; do
14247   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14248   cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 int
14256 main ()
14257 {
14258 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14259 test_array [0] = 0
14260
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } &&
14274          { ac_try='test -z "$ac_c_werror_flag"
14275                          || test ! -s conftest.err'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   ac_hi=$ac_mid
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_lo=`expr '(' $ac_mid ')' + 1`
14293 fi
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14295 done
14296 case $ac_lo in
14297 ?*) ac_cv_sizeof_long=$ac_lo;;
14298 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14299 See \`config.log' for more details." >&5
14300 echo "$as_me: error: cannot compute sizeof (long), 77
14301 See \`config.log' for more details." >&2;}
14302    { (exit 1); exit 1; }; } ;;
14303 esac
14304 else
14305   if test "$cross_compiling" = yes; then
14306   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14307 See \`config.log' for more details." >&5
14308 echo "$as_me: error: cannot run test program while cross compiling
14309 See \`config.log' for more details." >&2;}
14310    { (exit 1); exit 1; }; }
14311 else
14312   cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 $ac_includes_default
14319 long longval () { return (long) (sizeof (long)); }
14320 unsigned long ulongval () { return (long) (sizeof (long)); }
14321 #include <stdio.h>
14322 #include <stdlib.h>
14323 int
14324 main ()
14325 {
14326
14327   FILE *f = fopen ("conftest.val", "w");
14328   if (! f)
14329     exit (1);
14330   if (((long) (sizeof (long))) < 0)
14331     {
14332       long i = longval ();
14333       if (i != ((long) (sizeof (long))))
14334         exit (1);
14335       fprintf (f, "%ld\n", i);
14336     }
14337   else
14338     {
14339       unsigned long i = ulongval ();
14340       if (i != ((long) (sizeof (long))))
14341         exit (1);
14342       fprintf (f, "%lu\n", i);
14343     }
14344   exit (ferror (f) || fclose (f) != 0);
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest$ac_exeext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14352   (eval $ac_link) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357   (eval $ac_try) 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; }; then
14361   ac_cv_sizeof_long=`cat conftest.val`
14362 else
14363   echo "$as_me: program exited with status $ac_status" >&5
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ( exit $ac_status )
14368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14369 See \`config.log' for more details." >&5
14370 echo "$as_me: error: cannot compute sizeof (long), 77
14371 See \`config.log' for more details." >&2;}
14372    { (exit 1); exit 1; }; }
14373 fi
14374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 fi
14377 rm -f conftest.val
14378 else
14379   ac_cv_sizeof_long=0
14380 fi
14381 fi
14382 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14383 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14384 cat >>confdefs.h <<_ACEOF
14385 #define SIZEOF_LONG $ac_cv_sizeof_long
14386 _ACEOF
14387
14388  ;;
14389 esac
14390
14391 if test $acx_cv_header_stdint = stddef.h; then
14392   # Lacking a good header?  Test size of everything and deduce all types.
14393   echo "$as_me:$LINENO: checking for int" >&5
14394 echo $ECHO_N "checking for int... $ECHO_C" >&6
14395 if test "${ac_cv_type_int+set}" = set; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 $ac_includes_default
14405 int
14406 main ()
14407 {
14408 if ((int *) 0)
14409   return 0;
14410 if (sizeof (int))
14411   return 0;
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418   (eval $ac_compile) 2>conftest.er1
14419   ac_status=$?
14420   grep -v '^ *+' conftest.er1 >conftest.err
14421   rm -f conftest.er1
14422   cat conftest.err >&5
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } &&
14425          { ac_try='test -z "$ac_c_werror_flag"
14426                          || test ! -s conftest.err'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; } &&
14432          { ac_try='test -s conftest.$ac_objext'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438   ac_cv_type_int=yes
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_cv_type_int=no
14444 fi
14445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14446 fi
14447 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14448 echo "${ECHO_T}$ac_cv_type_int" >&6
14449
14450 echo "$as_me:$LINENO: checking size of int" >&5
14451 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14452 if test "${ac_cv_sizeof_int+set}" = set; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455   if test "$ac_cv_type_int" = yes; then
14456   # The cast to unsigned long works around a bug in the HP C Compiler
14457   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14458   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14459   # This bug is HP SR number 8606223364.
14460   if test "$cross_compiling" = yes; then
14461   # Depending upon the size, compute the lo and hi bounds.
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 $ac_includes_default
14469 int
14470 main ()
14471 {
14472 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14473 test_array [0] = 0
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481   (eval $ac_compile) 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } &&
14488          { ac_try='test -z "$ac_c_werror_flag"
14489                          || test ! -s conftest.err'
14490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491   (eval $ac_try) 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }; } &&
14495          { ac_try='test -s conftest.$ac_objext'
14496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497   (eval $ac_try) 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); }; }; then
14501   ac_lo=0 ac_mid=0
14502   while :; do
14503     cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509 $ac_includes_default
14510 int
14511 main ()
14512 {
14513 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14514 test_array [0] = 0
14515
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } &&
14529          { ac_try='test -z "$ac_c_werror_flag"
14530                          || test ! -s conftest.err'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; } &&
14536          { ac_try='test -s conftest.$ac_objext'
14537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538   (eval $ac_try) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542   ac_hi=$ac_mid; break
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 ac_lo=`expr $ac_mid + 1`
14548                     if test $ac_lo -le $ac_mid; then
14549                       ac_lo= ac_hi=
14550                       break
14551                     fi
14552                     ac_mid=`expr 2 '*' $ac_mid + 1`
14553 fi
14554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555   done
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 $ac_includes_default
14567 int
14568 main ()
14569 {
14570 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14571 test_array [0] = 0
14572
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579   (eval $ac_compile) 2>conftest.er1
14580   ac_status=$?
14581   grep -v '^ *+' conftest.er1 >conftest.err
14582   rm -f conftest.er1
14583   cat conftest.err >&5
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -z "$ac_c_werror_flag"
14587                          || test ! -s conftest.err'
14588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589   (eval $ac_try) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; } &&
14593          { ac_try='test -s conftest.$ac_objext'
14594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595   (eval $ac_try) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599   ac_hi=-1 ac_mid=-1
14600   while :; do
14601     cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 $ac_includes_default
14608 int
14609 main ()
14610 {
14611 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14612 test_array [0] = 0
14613
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620   (eval $ac_compile) 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag"
14628                          || test ! -s conftest.err'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest.$ac_objext'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   ac_lo=$ac_mid; break
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_hi=`expr '(' $ac_mid ')' - 1`
14646                        if test $ac_mid -le $ac_hi; then
14647                          ac_lo= ac_hi=
14648                          break
14649                        fi
14650                        ac_mid=`expr 2 '*' $ac_mid`
14651 fi
14652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653   done
14654 else
14655   echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ac_lo= ac_hi=
14659 fi
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661 fi
14662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14663 # Binary search between lo and hi bounds.
14664 while test "x$ac_lo" != "x$ac_hi"; do
14665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14666   cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672 $ac_includes_default
14673 int
14674 main ()
14675 {
14676 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14677 test_array [0] = 0
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685   (eval $ac_compile) 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -z "$ac_c_werror_flag"
14693                          || test ! -s conftest.err'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; } &&
14699          { ac_try='test -s conftest.$ac_objext'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; }; then
14705   ac_hi=$ac_mid
14706 else
14707   echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 ac_lo=`expr '(' $ac_mid ')' + 1`
14711 fi
14712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 done
14714 case $ac_lo in
14715 ?*) ac_cv_sizeof_int=$ac_lo;;
14716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14717 See \`config.log' for more details." >&5
14718 echo "$as_me: error: cannot compute sizeof (int), 77
14719 See \`config.log' for more details." >&2;}
14720    { (exit 1); exit 1; }; } ;;
14721 esac
14722 else
14723   if test "$cross_compiling" = yes; then
14724   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14725 See \`config.log' for more details." >&5
14726 echo "$as_me: error: cannot run test program while cross compiling
14727 See \`config.log' for more details." >&2;}
14728    { (exit 1); exit 1; }; }
14729 else
14730   cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736 $ac_includes_default
14737 long longval () { return (long) (sizeof (int)); }
14738 unsigned long ulongval () { return (long) (sizeof (int)); }
14739 #include <stdio.h>
14740 #include <stdlib.h>
14741 int
14742 main ()
14743 {
14744
14745   FILE *f = fopen ("conftest.val", "w");
14746   if (! f)
14747     exit (1);
14748   if (((long) (sizeof (int))) < 0)
14749     {
14750       long i = longval ();
14751       if (i != ((long) (sizeof (int))))
14752         exit (1);
14753       fprintf (f, "%ld\n", i);
14754     }
14755   else
14756     {
14757       unsigned long i = ulongval ();
14758       if (i != ((long) (sizeof (int))))
14759         exit (1);
14760       fprintf (f, "%lu\n", i);
14761     }
14762   exit (ferror (f) || fclose (f) != 0);
14763
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770   (eval $ac_link) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775   (eval $ac_try) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); }; }; then
14779   ac_cv_sizeof_int=`cat conftest.val`
14780 else
14781   echo "$as_me: program exited with status $ac_status" >&5
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 ( exit $ac_status )
14786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14787 See \`config.log' for more details." >&5
14788 echo "$as_me: error: cannot compute sizeof (int), 77
14789 See \`config.log' for more details." >&2;}
14790    { (exit 1); exit 1; }; }
14791 fi
14792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 fi
14795 rm -f conftest.val
14796 else
14797   ac_cv_sizeof_int=0
14798 fi
14799 fi
14800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14801 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14802 cat >>confdefs.h <<_ACEOF
14803 #define SIZEOF_INT $ac_cv_sizeof_int
14804 _ACEOF
14805
14806
14807   echo "$as_me:$LINENO: checking for short" >&5
14808 echo $ECHO_N "checking for short... $ECHO_C" >&6
14809 if test "${ac_cv_type_short+set}" = set; then
14810   echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812   cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 $ac_includes_default
14819 int
14820 main ()
14821 {
14822 if ((short *) 0)
14823   return 0;
14824 if (sizeof (short))
14825   return 0;
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832   (eval $ac_compile) 2>conftest.er1
14833   ac_status=$?
14834   grep -v '^ *+' conftest.er1 >conftest.err
14835   rm -f conftest.er1
14836   cat conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -z "$ac_c_werror_flag"
14840                          || test ! -s conftest.err'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; } &&
14846          { ac_try='test -s conftest.$ac_objext'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; }; then
14852   ac_cv_type_short=yes
14853 else
14854   echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 ac_cv_type_short=no
14858 fi
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14860 fi
14861 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14862 echo "${ECHO_T}$ac_cv_type_short" >&6
14863
14864 echo "$as_me:$LINENO: checking size of short" >&5
14865 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14866 if test "${ac_cv_sizeof_short+set}" = set; then
14867   echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869   if test "$ac_cv_type_short" = yes; then
14870   # The cast to unsigned long works around a bug in the HP C Compiler
14871   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14872   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14873   # This bug is HP SR number 8606223364.
14874   if test "$cross_compiling" = yes; then
14875   # Depending upon the size, compute the lo and hi bounds.
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 $ac_includes_default
14883 int
14884 main ()
14885 {
14886 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14887 test_array [0] = 0
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest.$ac_objext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895   (eval $ac_compile) 2>conftest.er1
14896   ac_status=$?
14897   grep -v '^ *+' conftest.er1 >conftest.err
14898   rm -f conftest.er1
14899   cat conftest.err >&5
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); } &&
14902          { ac_try='test -z "$ac_c_werror_flag"
14903                          || test ! -s conftest.err'
14904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905   (eval $ac_try) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; } &&
14909          { ac_try='test -s conftest.$ac_objext'
14910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911   (eval $ac_try) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   ac_lo=0 ac_mid=0
14916   while :; do
14917     cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923 $ac_includes_default
14924 int
14925 main ()
14926 {
14927 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14928 test_array [0] = 0
14929
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14936   (eval $ac_compile) 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -z "$ac_c_werror_flag"
14944                          || test ! -s conftest.err'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_hi=$ac_mid; break
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 ac_lo=`expr $ac_mid + 1`
14962                     if test $ac_lo -le $ac_mid; then
14963                       ac_lo= ac_hi=
14964                       break
14965                     fi
14966                     ac_mid=`expr 2 '*' $ac_mid + 1`
14967 fi
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969   done
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 $ac_includes_default
14981 int
14982 main ()
14983 {
14984 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14985 test_array [0] = 0
14986
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993   (eval $ac_compile) 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } &&
15000          { ac_try='test -z "$ac_c_werror_flag"
15001                          || test ! -s conftest.err'
15002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003   (eval $ac_try) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; } &&
15007          { ac_try='test -s conftest.$ac_objext'
15008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009   (eval $ac_try) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_hi=-1 ac_mid=-1
15014   while :; do
15015     cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021 $ac_includes_default
15022 int
15023 main ()
15024 {
15025 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15026 test_array [0] = 0
15027
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034   (eval $ac_compile) 2>conftest.er1
15035   ac_status=$?
15036   grep -v '^ *+' conftest.er1 >conftest.err
15037   rm -f conftest.er1
15038   cat conftest.err >&5
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); } &&
15041          { ac_try='test -z "$ac_c_werror_flag"
15042                          || test ! -s conftest.err'
15043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044   (eval $ac_try) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_lo=$ac_mid; break
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059 ac_hi=`expr '(' $ac_mid ')' - 1`
15060                        if test $ac_mid -le $ac_hi; then
15061                          ac_lo= ac_hi=
15062                          break
15063                        fi
15064                        ac_mid=`expr 2 '*' $ac_mid`
15065 fi
15066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15067   done
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_lo= ac_hi=
15073 fi
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 fi
15076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15077 # Binary search between lo and hi bounds.
15078 while test "x$ac_lo" != "x$ac_hi"; do
15079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15091 test_array [0] = 0
15092
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099   (eval $ac_compile) 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -z "$ac_c_werror_flag"
15107                          || test ! -s conftest.err'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; } &&
15113          { ac_try='test -s conftest.$ac_objext'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; }; then
15119   ac_hi=$ac_mid
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_lo=`expr '(' $ac_mid ')' + 1`
15125 fi
15126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15127 done
15128 case $ac_lo in
15129 ?*) ac_cv_sizeof_short=$ac_lo;;
15130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15131 See \`config.log' for more details." >&5
15132 echo "$as_me: error: cannot compute sizeof (short), 77
15133 See \`config.log' for more details." >&2;}
15134    { (exit 1); exit 1; }; } ;;
15135 esac
15136 else
15137   if test "$cross_compiling" = yes; then
15138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15139 See \`config.log' for more details." >&5
15140 echo "$as_me: error: cannot run test program while cross compiling
15141 See \`config.log' for more details." >&2;}
15142    { (exit 1); exit 1; }; }
15143 else
15144   cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 long longval () { return (long) (sizeof (short)); }
15152 unsigned long ulongval () { return (long) (sizeof (short)); }
15153 #include <stdio.h>
15154 #include <stdlib.h>
15155 int
15156 main ()
15157 {
15158
15159   FILE *f = fopen ("conftest.val", "w");
15160   if (! f)
15161     exit (1);
15162   if (((long) (sizeof (short))) < 0)
15163     {
15164       long i = longval ();
15165       if (i != ((long) (sizeof (short))))
15166         exit (1);
15167       fprintf (f, "%ld\n", i);
15168     }
15169   else
15170     {
15171       unsigned long i = ulongval ();
15172       if (i != ((long) (sizeof (short))))
15173         exit (1);
15174       fprintf (f, "%lu\n", i);
15175     }
15176   exit (ferror (f) || fclose (f) != 0);
15177
15178   ;
15179   return 0;
15180 }
15181 _ACEOF
15182 rm -f conftest$ac_exeext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15184   (eval $ac_link) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193   ac_cv_sizeof_short=`cat conftest.val`
15194 else
15195   echo "$as_me: program exited with status $ac_status" >&5
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ( exit $ac_status )
15200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15201 See \`config.log' for more details." >&5
15202 echo "$as_me: error: cannot compute sizeof (short), 77
15203 See \`config.log' for more details." >&2;}
15204    { (exit 1); exit 1; }; }
15205 fi
15206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15207 fi
15208 fi
15209 rm -f conftest.val
15210 else
15211   ac_cv_sizeof_short=0
15212 fi
15213 fi
15214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15215 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15216 cat >>confdefs.h <<_ACEOF
15217 #define SIZEOF_SHORT $ac_cv_sizeof_short
15218 _ACEOF
15219
15220
15221   echo "$as_me:$LINENO: checking for char" >&5
15222 echo $ECHO_N "checking for char... $ECHO_C" >&6
15223 if test "${ac_cv_type_char+set}" = set; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226   cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h.  */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h.  */
15232 $ac_includes_default
15233 int
15234 main ()
15235 {
15236 if ((char *) 0)
15237   return 0;
15238 if (sizeof (char))
15239   return 0;
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246   (eval $ac_compile) 2>conftest.er1
15247   ac_status=$?
15248   grep -v '^ *+' conftest.er1 >conftest.err
15249   rm -f conftest.er1
15250   cat conftest.err >&5
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } &&
15253          { ac_try='test -z "$ac_c_werror_flag"
15254                          || test ! -s conftest.err'
15255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256   (eval $ac_try) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }; } &&
15260          { ac_try='test -s conftest.$ac_objext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266   ac_cv_type_char=yes
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_cv_type_char=no
15272 fi
15273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15274 fi
15275 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15276 echo "${ECHO_T}$ac_cv_type_char" >&6
15277
15278 echo "$as_me:$LINENO: checking size of char" >&5
15279 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15280 if test "${ac_cv_sizeof_char+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   if test "$ac_cv_type_char" = yes; then
15284   # The cast to unsigned long works around a bug in the HP C Compiler
15285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15287   # This bug is HP SR number 8606223364.
15288   if test "$cross_compiling" = yes; then
15289   # Depending upon the size, compute the lo and hi bounds.
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 $ac_includes_default
15297 int
15298 main ()
15299 {
15300 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15301 test_array [0] = 0
15302
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309   (eval $ac_compile) 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag"
15317                          || test ! -s conftest.err'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_lo=0 ac_mid=0
15330   while :; do
15331     cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 $ac_includes_default
15338 int
15339 main ()
15340 {
15341 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15342 test_array [0] = 0
15343
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15350   (eval $ac_compile) 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag"
15358                          || test ! -s conftest.err'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest.$ac_objext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370   ac_hi=$ac_mid; break
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 ac_lo=`expr $ac_mid + 1`
15376                     if test $ac_lo -le $ac_mid; then
15377                       ac_lo= ac_hi=
15378                       break
15379                     fi
15380                     ac_mid=`expr 2 '*' $ac_mid + 1`
15381 fi
15382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383   done
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h.  */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h.  */
15394 $ac_includes_default
15395 int
15396 main ()
15397 {
15398 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15399 test_array [0] = 0
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407   (eval $ac_compile) 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag"
15415                          || test ! -s conftest.err'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; } &&
15421          { ac_try='test -s conftest.$ac_objext'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; }; then
15427   ac_hi=-1 ac_mid=-1
15428   while :; do
15429     cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 $ac_includes_default
15436 int
15437 main ()
15438 {
15439 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15440 test_array [0] = 0
15441
15442   ;
15443   return 0;
15444 }
15445 _ACEOF
15446 rm -f conftest.$ac_objext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448   (eval $ac_compile) 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } &&
15455          { ac_try='test -z "$ac_c_werror_flag"
15456                          || test ! -s conftest.err'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; } &&
15462          { ac_try='test -s conftest.$ac_objext'
15463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464   (eval $ac_try) 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; }; then
15468   ac_lo=$ac_mid; break
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 ac_hi=`expr '(' $ac_mid ')' - 1`
15474                        if test $ac_mid -le $ac_hi; then
15475                          ac_lo= ac_hi=
15476                          break
15477                        fi
15478                        ac_mid=`expr 2 '*' $ac_mid`
15479 fi
15480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15481   done
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_lo= ac_hi=
15487 fi
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15489 fi
15490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15491 # Binary search between lo and hi bounds.
15492 while test "x$ac_lo" != "x$ac_hi"; do
15493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 $ac_includes_default
15501 int
15502 main ()
15503 {
15504 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15505 test_array [0] = 0
15506
15507   ;
15508   return 0;
15509 }
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513   (eval $ac_compile) 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } &&
15520          { ac_try='test -z "$ac_c_werror_flag"
15521                          || test ! -s conftest.err'
15522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523   (eval $ac_try) 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; } &&
15527          { ac_try='test -s conftest.$ac_objext'
15528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529   (eval $ac_try) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; }; then
15533   ac_hi=$ac_mid
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 ac_lo=`expr '(' $ac_mid ')' + 1`
15539 fi
15540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15541 done
15542 case $ac_lo in
15543 ?*) ac_cv_sizeof_char=$ac_lo;;
15544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15545 See \`config.log' for more details." >&5
15546 echo "$as_me: error: cannot compute sizeof (char), 77
15547 See \`config.log' for more details." >&2;}
15548    { (exit 1); exit 1; }; } ;;
15549 esac
15550 else
15551   if test "$cross_compiling" = yes; then
15552   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15553 See \`config.log' for more details." >&5
15554 echo "$as_me: error: cannot run test program while cross compiling
15555 See \`config.log' for more details." >&2;}
15556    { (exit 1); exit 1; }; }
15557 else
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 long longval () { return (long) (sizeof (char)); }
15566 unsigned long ulongval () { return (long) (sizeof (char)); }
15567 #include <stdio.h>
15568 #include <stdlib.h>
15569 int
15570 main ()
15571 {
15572
15573   FILE *f = fopen ("conftest.val", "w");
15574   if (! f)
15575     exit (1);
15576   if (((long) (sizeof (char))) < 0)
15577     {
15578       long i = longval ();
15579       if (i != ((long) (sizeof (char))))
15580         exit (1);
15581       fprintf (f, "%ld\n", i);
15582     }
15583   else
15584     {
15585       unsigned long i = ulongval ();
15586       if (i != ((long) (sizeof (char))))
15587         exit (1);
15588       fprintf (f, "%lu\n", i);
15589     }
15590   exit (ferror (f) || fclose (f) != 0);
15591
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598   (eval $ac_link) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603   (eval $ac_try) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; }; then
15607   ac_cv_sizeof_char=`cat conftest.val`
15608 else
15609   echo "$as_me: program exited with status $ac_status" >&5
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ( exit $ac_status )
15614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15615 See \`config.log' for more details." >&5
15616 echo "$as_me: error: cannot compute sizeof (char), 77
15617 See \`config.log' for more details." >&2;}
15618    { (exit 1); exit 1; }; }
15619 fi
15620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 fi
15623 rm -f conftest.val
15624 else
15625   ac_cv_sizeof_char=0
15626 fi
15627 fi
15628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15629 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15630 cat >>confdefs.h <<_ACEOF
15631 #define SIZEOF_CHAR $ac_cv_sizeof_char
15632 _ACEOF
15633
15634
15635
15636   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15637 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15638   case "$ac_cv_sizeof_char" in
15639     1) acx_cv_type_int8_t=char ;;
15640     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15641 echo "$as_me: error: no 8-bit type" >&2;}
15642    { (exit please report a bug); exit please report a bug; }; }
15643   esac
15644   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15645 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15646
15647   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15648 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15649   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15650     2:*) acx_cv_type_int16_t=int ;;
15651     *:2) acx_cv_type_int16_t=short ;;
15652     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15653 echo "$as_me: error: no 16-bit type" >&2;}
15654    { (exit please report a bug); exit please report a bug; }; }
15655   esac
15656   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15657 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15658
15659   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15660 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15661   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15662     4:*) acx_cv_type_int32_t=int ;;
15663     *:4) acx_cv_type_int32_t=long ;;
15664     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15665 echo "$as_me: error: no 32-bit type" >&2;}
15666    { (exit please report a bug); exit please report a bug; }; }
15667   esac
15668   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15669 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15670 fi
15671
15672 # These tests are here to make the output prettier
15673
15674 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15675   case "$ac_cv_sizeof_long" in
15676     8) acx_cv_type_int64_t=long ;;
15677   esac
15678   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15679 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15680   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15681 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15682 fi
15683
15684 # Now we can use the above types
15685
15686 if test "$ac_cv_type_uintptr_t" != yes; then
15687   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15688 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15689   case $ac_cv_sizeof_void_p in
15690     2) acx_cv_type_intptr_t=int16_t ;;
15691     4) acx_cv_type_intptr_t=int32_t ;;
15692     8) acx_cv_type_intptr_t=int64_t ;;
15693     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15694 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15695    { (exit please report a bug); exit please report a bug; }; }
15696   esac
15697   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15698 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15699 fi
15700
15701 # ----------------- done all checks, emit header -------------
15702           ac_config_commands="$ac_config_commands bfd_stdint.h"
15703
15704
15705
15706 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15707 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15708 if test "${ac_cv_header_time+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 #include <sys/types.h>
15718 #include <sys/time.h>
15719 #include <time.h>
15720
15721 int
15722 main ()
15723 {
15724 if ((struct tm *) 0)
15725 return 0;
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732   (eval $ac_compile) 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -z "$ac_c_werror_flag"
15740                          || test ! -s conftest.err'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; } &&
15746          { ac_try='test -s conftest.$ac_objext'
15747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748   (eval $ac_try) 2>&5
15749   ac_status=$?
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); }; }; then
15752   ac_cv_header_time=yes
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 ac_cv_header_time=no
15758 fi
15759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15760 fi
15761 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15762 echo "${ECHO_T}$ac_cv_header_time" >&6
15763 if test $ac_cv_header_time = yes; then
15764
15765 cat >>confdefs.h <<\_ACEOF
15766 #define TIME_WITH_SYS_TIME 1
15767 _ACEOF
15768
15769 fi
15770
15771
15772
15773
15774
15775
15776 ac_header_dirent=no
15777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15778   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784   cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 #include <sys/types.h>
15791 #include <$ac_hdr>
15792
15793 int
15794 main ()
15795 {
15796 if ((DIR *) 0)
15797 return 0;
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15804   (eval $ac_compile) 2>conftest.er1
15805   ac_status=$?
15806   grep -v '^ *+' conftest.er1 >conftest.err
15807   rm -f conftest.er1
15808   cat conftest.err >&5
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); } &&
15811          { ac_try='test -z "$ac_c_werror_flag"
15812                          || test ! -s conftest.err'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; } &&
15818          { ac_try='test -s conftest.$ac_objext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   eval "$as_ac_Header=yes"
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 eval "$as_ac_Header=no"
15830 fi
15831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832 fi
15833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15836   cat >>confdefs.h <<_ACEOF
15837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15838 _ACEOF
15839
15840 ac_header_dirent=$ac_hdr; break
15841 fi
15842
15843 done
15844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15845 if test $ac_header_dirent = dirent.h; then
15846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
15847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15848 if test "${ac_cv_search_opendir+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   ac_func_search_save_LIBS=$LIBS
15852 ac_cv_search_opendir=no
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859
15860 /* Override any gcc2 internal prototype to avoid an error.  */
15861 #ifdef __cplusplus
15862 extern "C"
15863 #endif
15864 /* We use char because int might match the return type of a gcc2
15865    builtin and then its argument prototype would still apply.  */
15866 char opendir ();
15867 int
15868 main ()
15869 {
15870 opendir ();
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877   (eval $ac_link) 2>conftest.er1
15878   ac_status=$?
15879   grep -v '^ *+' conftest.er1 >conftest.err
15880   rm -f conftest.er1
15881   cat conftest.err >&5
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); } &&
15884          { ac_try='test -z "$ac_c_werror_flag"
15885                          || test ! -s conftest.err'
15886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887   (eval $ac_try) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); }; } &&
15891          { ac_try='test -s conftest$ac_exeext'
15892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893   (eval $ac_try) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; }; then
15897   ac_cv_search_opendir="none required"
15898 else
15899   echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 fi
15903 rm -f conftest.err conftest.$ac_objext \
15904       conftest$ac_exeext conftest.$ac_ext
15905 if test "$ac_cv_search_opendir" = no; then
15906   for ac_lib in dir; do
15907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15908     cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914
15915 /* Override any gcc2 internal prototype to avoid an error.  */
15916 #ifdef __cplusplus
15917 extern "C"
15918 #endif
15919 /* We use char because int might match the return type of a gcc2
15920    builtin and then its argument prototype would still apply.  */
15921 char opendir ();
15922 int
15923 main ()
15924 {
15925 opendir ();
15926   ;
15927   return 0;
15928 }
15929 _ACEOF
15930 rm -f conftest.$ac_objext conftest$ac_exeext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15932   (eval $ac_link) 2>conftest.er1
15933   ac_status=$?
15934   grep -v '^ *+' conftest.er1 >conftest.err
15935   rm -f conftest.er1
15936   cat conftest.err >&5
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -z "$ac_c_werror_flag"
15940                          || test ! -s conftest.err'
15941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942   (eval $ac_try) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; } &&
15946          { ac_try='test -s conftest$ac_exeext'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   ac_cv_search_opendir="-l$ac_lib"
15953 break
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 fi
15959 rm -f conftest.err conftest.$ac_objext \
15960       conftest$ac_exeext conftest.$ac_ext
15961   done
15962 fi
15963 LIBS=$ac_func_search_save_LIBS
15964 fi
15965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15967 if test "$ac_cv_search_opendir" != no; then
15968   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15969
15970 fi
15971
15972 else
15973   echo "$as_me:$LINENO: checking for library containing opendir" >&5
15974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15975 if test "${ac_cv_search_opendir+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   ac_func_search_save_LIBS=$LIBS
15979 ac_cv_search_opendir=no
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986
15987 /* Override any gcc2 internal prototype to avoid an error.  */
15988 #ifdef __cplusplus
15989 extern "C"
15990 #endif
15991 /* We use char because int might match the return type of a gcc2
15992    builtin and then its argument prototype would still apply.  */
15993 char opendir ();
15994 int
15995 main ()
15996 {
15997 opendir ();
15998   ;
15999   return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004   (eval $ac_link) 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -z "$ac_c_werror_flag"
16012                          || test ! -s conftest.err'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; } &&
16018          { ac_try='test -s conftest$ac_exeext'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024   ac_cv_search_opendir="none required"
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 fi
16030 rm -f conftest.err conftest.$ac_objext \
16031       conftest$ac_exeext conftest.$ac_ext
16032 if test "$ac_cv_search_opendir" = no; then
16033   for ac_lib in x; do
16034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16035     cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041
16042 /* Override any gcc2 internal prototype to avoid an error.  */
16043 #ifdef __cplusplus
16044 extern "C"
16045 #endif
16046 /* We use char because int might match the return type of a gcc2
16047    builtin and then its argument prototype would still apply.  */
16048 char opendir ();
16049 int
16050 main ()
16051 {
16052 opendir ();
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059   (eval $ac_link) 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } &&
16066          { ac_try='test -z "$ac_c_werror_flag"
16067                          || test ! -s conftest.err'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest$ac_exeext'
16074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075   (eval $ac_try) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   ac_cv_search_opendir="-l$ac_lib"
16080 break
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 fi
16086 rm -f conftest.err conftest.$ac_objext \
16087       conftest$ac_exeext conftest.$ac_ext
16088   done
16089 fi
16090 LIBS=$ac_func_search_save_LIBS
16091 fi
16092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16094 if test "$ac_cv_search_opendir" != no; then
16095   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16096
16097 fi
16098
16099 fi
16100
16101 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16102 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16103 if test "${gcc_cv_header_string+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112 #include <string.h>
16113 #include <strings.h>
16114 int
16115 main ()
16116 {
16117
16118   ;
16119   return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124   (eval $ac_compile) 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } &&
16131          { ac_try='test -z "$ac_c_werror_flag"
16132                          || test ! -s conftest.err'
16133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134   (eval $ac_try) 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); }; } &&
16138          { ac_try='test -s conftest.$ac_objext'
16139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140   (eval $ac_try) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; }; then
16144   gcc_cv_header_string=yes
16145 else
16146   echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 gcc_cv_header_string=no
16150 fi
16151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16154 echo "${ECHO_T}$gcc_cv_header_string" >&6
16155 if test $gcc_cv_header_string = yes; then
16156
16157 cat >>confdefs.h <<\_ACEOF
16158 #define STRING_WITH_STRINGS 1
16159 _ACEOF
16160
16161 fi
16162
16163
16164
16165
16166
16167
16168
16169
16170 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16171 do
16172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16173 echo "$as_me:$LINENO: checking for $ac_func" >&5
16174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16175 if eval "test \"\${$as_ac_var+set}\" = set"; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16186 #define $ac_func innocuous_$ac_func
16187
16188 /* System header to define __stub macros and hopefully few prototypes,
16189     which can conflict with char $ac_func (); below.
16190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191     <limits.h> exists even on freestanding compilers.  */
16192
16193 #ifdef __STDC__
16194 # include <limits.h>
16195 #else
16196 # include <assert.h>
16197 #endif
16198
16199 #undef $ac_func
16200
16201 /* Override any gcc2 internal prototype to avoid an error.  */
16202 #ifdef __cplusplus
16203 extern "C"
16204 {
16205 #endif
16206 /* We use char because int might match the return type of a gcc2
16207    builtin and then its argument prototype would still apply.  */
16208 char $ac_func ();
16209 /* The GNU C library defines this for functions which it implements
16210     to always fail with ENOSYS.  Some functions are actually named
16211     something starting with __ and the normal name is an alias.  */
16212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16213 choke me
16214 #else
16215 char (*f) () = $ac_func;
16216 #endif
16217 #ifdef __cplusplus
16218 }
16219 #endif
16220
16221 int
16222 main ()
16223 {
16224 return f != $ac_func;
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16231   (eval $ac_link) 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_c_werror_flag"
16239                          || test ! -s conftest.err'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; } &&
16245          { ac_try='test -s conftest$ac_exeext'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   eval "$as_ac_var=yes"
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 eval "$as_ac_var=no"
16257 fi
16258 rm -f conftest.err conftest.$ac_objext \
16259       conftest$ac_exeext conftest.$ac_ext
16260 fi
16261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16263 if test `eval echo '${'$as_ac_var'}'` = yes; then
16264   cat >>confdefs.h <<_ACEOF
16265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16266 _ACEOF
16267
16268 fi
16269 done
16270
16271
16272 for ac_func in strtoull
16273 do
16274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16275 echo "$as_me:$LINENO: checking for $ac_func" >&5
16276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16277 if eval "test \"\${$as_ac_var+set}\" = set"; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16288 #define $ac_func innocuous_$ac_func
16289
16290 /* System header to define __stub macros and hopefully few prototypes,
16291     which can conflict with char $ac_func (); below.
16292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16293     <limits.h> exists even on freestanding compilers.  */
16294
16295 #ifdef __STDC__
16296 # include <limits.h>
16297 #else
16298 # include <assert.h>
16299 #endif
16300
16301 #undef $ac_func
16302
16303 /* Override any gcc2 internal prototype to avoid an error.  */
16304 #ifdef __cplusplus
16305 extern "C"
16306 {
16307 #endif
16308 /* We use char because int might match the return type of a gcc2
16309    builtin and then its argument prototype would still apply.  */
16310 char $ac_func ();
16311 /* The GNU C library defines this for functions which it implements
16312     to always fail with ENOSYS.  Some functions are actually named
16313     something starting with __ and the normal name is an alias.  */
16314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16315 choke me
16316 #else
16317 char (*f) () = $ac_func;
16318 #endif
16319 #ifdef __cplusplus
16320 }
16321 #endif
16322
16323 int
16324 main ()
16325 {
16326 return f != $ac_func;
16327   ;
16328   return 0;
16329 }
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333   (eval $ac_link) 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_c_werror_flag"
16341                          || test ! -s conftest.err'
16342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343   (eval $ac_try) 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349   (eval $ac_try) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353   eval "$as_ac_var=yes"
16354 else
16355   echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358 eval "$as_ac_var=no"
16359 fi
16360 rm -f conftest.err conftest.$ac_objext \
16361       conftest$ac_exeext conftest.$ac_ext
16362 fi
16363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16365 if test `eval echo '${'$as_ac_var'}'` = yes; then
16366   cat >>confdefs.h <<_ACEOF
16367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16368 _ACEOF
16369
16370 fi
16371 done
16372
16373
16374 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16375 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16376 if test "${ac_cv_have_decl_basename+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379   cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h.  */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h.  */
16385 $ac_includes_default
16386 int
16387 main ()
16388 {
16389 #ifndef basename
16390   char *p = (char *) basename;
16391 #endif
16392
16393   ;
16394   return 0;
16395 }
16396 _ACEOF
16397 rm -f conftest.$ac_objext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16399   (eval $ac_compile) 2>conftest.er1
16400   ac_status=$?
16401   grep -v '^ *+' conftest.er1 >conftest.err
16402   rm -f conftest.er1
16403   cat conftest.err >&5
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); } &&
16406          { ac_try='test -z "$ac_c_werror_flag"
16407                          || test ! -s conftest.err'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; } &&
16413          { ac_try='test -s conftest.$ac_objext'
16414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415   (eval $ac_try) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; }; then
16419   ac_cv_have_decl_basename=yes
16420 else
16421   echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16423
16424 ac_cv_have_decl_basename=no
16425 fi
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 fi
16428 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16429 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16430 if test $ac_cv_have_decl_basename = yes; then
16431
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_DECL_BASENAME 1
16434 _ACEOF
16435
16436
16437 else
16438   cat >>confdefs.h <<_ACEOF
16439 #define HAVE_DECL_BASENAME 0
16440 _ACEOF
16441
16442
16443 fi
16444
16445
16446 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16447 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16448 if test "${ac_cv_have_decl_ftello+set}" = set; then
16449   echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451   cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 $ac_includes_default
16458 int
16459 main ()
16460 {
16461 #ifndef ftello
16462   char *p = (char *) ftello;
16463 #endif
16464
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16471   (eval $ac_compile) 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -z "$ac_c_werror_flag"
16479                          || test ! -s conftest.err'
16480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481   (eval $ac_try) 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; } &&
16485          { ac_try='test -s conftest.$ac_objext'
16486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487   (eval $ac_try) 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); }; }; then
16491   ac_cv_have_decl_ftello=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496 ac_cv_have_decl_ftello=no
16497 fi
16498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16501 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16502 if test $ac_cv_have_decl_ftello = yes; then
16503
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_DECL_FTELLO 1
16506 _ACEOF
16507
16508
16509 else
16510   cat >>confdefs.h <<_ACEOF
16511 #define HAVE_DECL_FTELLO 0
16512 _ACEOF
16513
16514
16515 fi
16516
16517
16518 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16519 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16520 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523   cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 $ac_includes_default
16530 int
16531 main ()
16532 {
16533 #ifndef ftello64
16534   char *p = (char *) ftello64;
16535 #endif
16536
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543   (eval $ac_compile) 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } &&
16550          { ac_try='test -z "$ac_c_werror_flag"
16551                          || test ! -s conftest.err'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; } &&
16557          { ac_try='test -s conftest.$ac_objext'
16558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559   (eval $ac_try) 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); }; }; then
16563   ac_cv_have_decl_ftello64=yes
16564 else
16565   echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568 ac_cv_have_decl_ftello64=no
16569 fi
16570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16571 fi
16572 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16573 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16574 if test $ac_cv_have_decl_ftello64 = yes; then
16575
16576 cat >>confdefs.h <<_ACEOF
16577 #define HAVE_DECL_FTELLO64 1
16578 _ACEOF
16579
16580
16581 else
16582   cat >>confdefs.h <<_ACEOF
16583 #define HAVE_DECL_FTELLO64 0
16584 _ACEOF
16585
16586
16587 fi
16588
16589
16590 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16591 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16592 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 int
16603 main ()
16604 {
16605 #ifndef fseeko
16606   char *p = (char *) fseeko;
16607 #endif
16608
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag"
16623                          || test ! -s conftest.err'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; } &&
16629          { ac_try='test -s conftest.$ac_objext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635   ac_cv_have_decl_fseeko=yes
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640 ac_cv_have_decl_fseeko=no
16641 fi
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16643 fi
16644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16645 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16646 if test $ac_cv_have_decl_fseeko = yes; then
16647
16648 cat >>confdefs.h <<_ACEOF
16649 #define HAVE_DECL_FSEEKO 1
16650 _ACEOF
16651
16652
16653 else
16654   cat >>confdefs.h <<_ACEOF
16655 #define HAVE_DECL_FSEEKO 0
16656 _ACEOF
16657
16658
16659 fi
16660
16661
16662 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16663 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16664 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673 $ac_includes_default
16674 int
16675 main ()
16676 {
16677 #ifndef fseeko64
16678   char *p = (char *) fseeko64;
16679 #endif
16680
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687   (eval $ac_compile) 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag"
16695                          || test ! -s conftest.err'
16696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697   (eval $ac_try) 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; } &&
16701          { ac_try='test -s conftest.$ac_objext'
16702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703   (eval $ac_try) 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); }; }; then
16707   ac_cv_have_decl_fseeko64=yes
16708 else
16709   echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 ac_cv_have_decl_fseeko64=no
16713 fi
16714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16717 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16718 if test $ac_cv_have_decl_fseeko64 = yes; then
16719
16720 cat >>confdefs.h <<_ACEOF
16721 #define HAVE_DECL_FSEEKO64 1
16722 _ACEOF
16723
16724
16725 else
16726   cat >>confdefs.h <<_ACEOF
16727 #define HAVE_DECL_FSEEKO64 0
16728 _ACEOF
16729
16730
16731 fi
16732
16733
16734
16735
16736 case "${host}" in
16737 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16738
16739 cat >>confdefs.h <<\_ACEOF
16740 #define USE_BINARY_FOPEN 1
16741 _ACEOF
16742  ;;
16743 esac
16744
16745 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16746 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16747 if test "${ac_cv_have_decl_ffs+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 $ac_includes_default
16757 int
16758 main ()
16759 {
16760 #ifndef ffs
16761   char *p = (char *) ffs;
16762 #endif
16763
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770   (eval $ac_compile) 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } &&
16777          { ac_try='test -z "$ac_c_werror_flag"
16778                          || test ! -s conftest.err'
16779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780   (eval $ac_try) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; } &&
16784          { ac_try='test -s conftest.$ac_objext'
16785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786   (eval $ac_try) 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; }; then
16790   ac_cv_have_decl_ffs=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_cv_have_decl_ffs=no
16796 fi
16797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16798 fi
16799 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16800 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16801 if test $ac_cv_have_decl_ffs = yes; then
16802
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_DECL_FFS 1
16805 _ACEOF
16806
16807
16808 else
16809   cat >>confdefs.h <<_ACEOF
16810 #define HAVE_DECL_FFS 0
16811 _ACEOF
16812
16813
16814 fi
16815
16816
16817 echo "$as_me:$LINENO: checking whether free is declared" >&5
16818 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16819 if test "${ac_cv_have_decl_free+set}" = set; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
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 #ifndef free
16833   char *p = (char *) free;
16834 #endif
16835
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842   (eval $ac_compile) 2>conftest.er1
16843   ac_status=$?
16844   grep -v '^ *+' conftest.er1 >conftest.err
16845   rm -f conftest.er1
16846   cat conftest.err >&5
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } &&
16849          { ac_try='test -z "$ac_c_werror_flag"
16850                          || test ! -s conftest.err'
16851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852   (eval $ac_try) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; } &&
16856          { ac_try='test -s conftest.$ac_objext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_cv_have_decl_free=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 ac_cv_have_decl_free=no
16868 fi
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16872 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16873 if test $ac_cv_have_decl_free = yes; then
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_DECL_FREE 1
16877 _ACEOF
16878
16879
16880 else
16881   cat >>confdefs.h <<_ACEOF
16882 #define HAVE_DECL_FREE 0
16883 _ACEOF
16884
16885
16886 fi
16887
16888
16889 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16890 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16891 if test "${ac_cv_have_decl_getenv+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 $ac_includes_default
16901 int
16902 main ()
16903 {
16904 #ifndef getenv
16905   char *p = (char *) getenv;
16906 #endif
16907
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914   (eval $ac_compile) 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } &&
16921          { ac_try='test -z "$ac_c_werror_flag"
16922                          || test ! -s conftest.err'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; } &&
16928          { ac_try='test -s conftest.$ac_objext'
16929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930   (eval $ac_try) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_have_decl_getenv=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_have_decl_getenv=no
16940 fi
16941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16944 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16945 if test $ac_cv_have_decl_getenv = yes; then
16946
16947 cat >>confdefs.h <<_ACEOF
16948 #define HAVE_DECL_GETENV 1
16949 _ACEOF
16950
16951
16952 else
16953   cat >>confdefs.h <<_ACEOF
16954 #define HAVE_DECL_GETENV 0
16955 _ACEOF
16956
16957
16958 fi
16959
16960
16961 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16962 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16963 if test "${ac_cv_have_decl_malloc+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 $ac_includes_default
16973 int
16974 main ()
16975 {
16976 #ifndef malloc
16977   char *p = (char *) malloc;
16978 #endif
16979
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986   (eval $ac_compile) 2>conftest.er1
16987   ac_status=$?
16988   grep -v '^ *+' conftest.er1 >conftest.err
16989   rm -f conftest.er1
16990   cat conftest.err >&5
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } &&
16993          { ac_try='test -z "$ac_c_werror_flag"
16994                          || test ! -s conftest.err'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; } &&
17000          { ac_try='test -s conftest.$ac_objext'
17001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002   (eval $ac_try) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; }; then
17006   ac_cv_have_decl_malloc=yes
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_cv_have_decl_malloc=no
17012 fi
17013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17014 fi
17015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17016 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17017 if test $ac_cv_have_decl_malloc = yes; then
17018
17019 cat >>confdefs.h <<_ACEOF
17020 #define HAVE_DECL_MALLOC 1
17021 _ACEOF
17022
17023
17024 else
17025   cat >>confdefs.h <<_ACEOF
17026 #define HAVE_DECL_MALLOC 0
17027 _ACEOF
17028
17029
17030 fi
17031
17032
17033 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17034 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17035 if test "${ac_cv_have_decl_realloc+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17044 $ac_includes_default
17045 int
17046 main ()
17047 {
17048 #ifndef realloc
17049   char *p = (char *) realloc;
17050 #endif
17051
17052   ;
17053   return 0;
17054 }
17055 _ACEOF
17056 rm -f conftest.$ac_objext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058   (eval $ac_compile) 2>conftest.er1
17059   ac_status=$?
17060   grep -v '^ *+' conftest.er1 >conftest.err
17061   rm -f conftest.er1
17062   cat conftest.err >&5
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } &&
17065          { ac_try='test -z "$ac_c_werror_flag"
17066                          || test ! -s conftest.err'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; } &&
17072          { ac_try='test -s conftest.$ac_objext'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; }; then
17078   ac_cv_have_decl_realloc=yes
17079 else
17080   echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17082
17083 ac_cv_have_decl_realloc=no
17084 fi
17085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17086 fi
17087 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17088 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17089 if test $ac_cv_have_decl_realloc = yes; then
17090
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_DECL_REALLOC 1
17093 _ACEOF
17094
17095
17096 else
17097   cat >>confdefs.h <<_ACEOF
17098 #define HAVE_DECL_REALLOC 0
17099 _ACEOF
17100
17101
17102 fi
17103
17104
17105 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17106 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17107 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116 $ac_includes_default
17117 int
17118 main ()
17119 {
17120 #ifndef stpcpy
17121   char *p = (char *) stpcpy;
17122 #endif
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130   (eval $ac_compile) 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag"
17138                          || test ! -s conftest.err'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest.$ac_objext'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150   ac_cv_have_decl_stpcpy=yes
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 ac_cv_have_decl_stpcpy=no
17156 fi
17157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17158 fi
17159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17160 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17161 if test $ac_cv_have_decl_stpcpy = yes; then
17162
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_DECL_STPCPY 1
17165 _ACEOF
17166
17167
17168 else
17169   cat >>confdefs.h <<_ACEOF
17170 #define HAVE_DECL_STPCPY 0
17171 _ACEOF
17172
17173
17174 fi
17175
17176
17177 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17178 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17179 if test "${ac_cv_have_decl_strstr+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 $ac_includes_default
17189 int
17190 main ()
17191 {
17192 #ifndef strstr
17193   char *p = (char *) strstr;
17194 #endif
17195
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202   (eval $ac_compile) 2>conftest.er1
17203   ac_status=$?
17204   grep -v '^ *+' conftest.er1 >conftest.err
17205   rm -f conftest.er1
17206   cat conftest.err >&5
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); } &&
17209          { ac_try='test -z "$ac_c_werror_flag"
17210                          || test ! -s conftest.err'
17211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212   (eval $ac_try) 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; } &&
17216          { ac_try='test -s conftest.$ac_objext'
17217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218   (eval $ac_try) 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; }; then
17222   ac_cv_have_decl_strstr=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227 ac_cv_have_decl_strstr=no
17228 fi
17229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17230 fi
17231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17232 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17233 if test $ac_cv_have_decl_strstr = yes; then
17234
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_DECL_STRSTR 1
17237 _ACEOF
17238
17239
17240 else
17241   cat >>confdefs.h <<_ACEOF
17242 #define HAVE_DECL_STRSTR 0
17243 _ACEOF
17244
17245
17246 fi
17247
17248
17249 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17250 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17251 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 $ac_includes_default
17261 int
17262 main ()
17263 {
17264 #ifndef snprintf
17265   char *p = (char *) snprintf;
17266 #endif
17267
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274   (eval $ac_compile) 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } &&
17281          { ac_try='test -z "$ac_c_werror_flag"
17282                          || test ! -s conftest.err'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; } &&
17288          { ac_try='test -s conftest.$ac_objext'
17289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290   (eval $ac_try) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; }; then
17294   ac_cv_have_decl_snprintf=yes
17295 else
17296   echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17298
17299 ac_cv_have_decl_snprintf=no
17300 fi
17301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17302 fi
17303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17304 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17305 if test $ac_cv_have_decl_snprintf = yes; then
17306
17307 cat >>confdefs.h <<_ACEOF
17308 #define HAVE_DECL_SNPRINTF 1
17309 _ACEOF
17310
17311
17312 else
17313   cat >>confdefs.h <<_ACEOF
17314 #define HAVE_DECL_SNPRINTF 0
17315 _ACEOF
17316
17317
17318 fi
17319
17320
17321 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17322 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17323 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332 $ac_includes_default
17333 int
17334 main ()
17335 {
17336 #ifndef vsnprintf
17337   char *p = (char *) vsnprintf;
17338 #endif
17339
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext
17345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346   (eval $ac_compile) 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } &&
17353          { ac_try='test -z "$ac_c_werror_flag"
17354                          || test ! -s conftest.err'
17355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356   (eval $ac_try) 2>&5
17357   ac_status=$?
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); }; } &&
17360          { ac_try='test -s conftest.$ac_objext'
17361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362   (eval $ac_try) 2>&5
17363   ac_status=$?
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); }; }; then
17366   ac_cv_have_decl_vsnprintf=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_cv_have_decl_vsnprintf=no
17372 fi
17373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17374 fi
17375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17376 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17377 if test $ac_cv_have_decl_vsnprintf = yes; then
17378
17379 cat >>confdefs.h <<_ACEOF
17380 #define HAVE_DECL_VSNPRINTF 1
17381 _ACEOF
17382
17383
17384 else
17385   cat >>confdefs.h <<_ACEOF
17386 #define HAVE_DECL_VSNPRINTF 0
17387 _ACEOF
17388
17389
17390 fi
17391
17392
17393
17394 # If we are configured native, pick a core file support file.
17395 COREFILE=
17396 COREFLAG=
17397 TRAD_HEADER=
17398 if test "${target}" = "${host}"; then
17399   case "${host}" in
17400   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17401         COREFILE=''
17402         ;;
17403   alpha*-*-linux-*)
17404         COREFILE=trad-core.lo
17405         TRAD_HEADER='"hosts/alphalinux.h"'
17406         ;;
17407   alpha*-*-netbsd* | alpha*-*-openbsd*)
17408         COREFILE=netbsd-core.lo
17409         ;;
17410   alpha*-*-*)           COREFILE=osf-core.lo ;;
17411   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17412                         COREFILE='' ;;
17413   arm-*-netbsd* | arm-*-openbsd*)
17414         COREFILE=netbsd-core.lo
17415         ;;
17416   arm-*-riscix)         COREFILE=trad-core.lo ;;
17417   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
17418   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
17419   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
17420   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
17421                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17422   hppa*-*-netbsd* | hppa*-*-openbsd*)
17423         COREFILE=netbsd-core.lo
17424         ;;
17425
17426   i370-*-*)
17427         COREFILE=trad-core.lo
17428         TRAD_HEADER='"hosts/i370linux.h"'
17429         ;;
17430
17431   i[3-7]86-sequent-bsd*)
17432         COREFILE=trad-core.lo
17433         TRAD_HEADER='"hosts/symmetry.h"'
17434         ;;
17435   i[3-7]86-sequent-sysv4*) ;;
17436   i[3-7]86-sequent-sysv*)
17437         COREFILE=trad-core.lo
17438         TRAD_HEADER='"hosts/symmetry.h"'
17439         ;;
17440   i[3-7]86-*-bsdi)
17441         COREFILE=
17442         ;;
17443   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*)
17444         COREFILE=trad-core.lo
17445         TRAD_HEADER='"hosts/i386bsd.h"'
17446         ;;
17447   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
17448         COREFILE=''
17449         TRAD_HEADER='"hosts/i386bsd.h"'
17450         ;;
17451   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17452         COREFILE=netbsd-core.lo
17453         ;;
17454   i[3-7]86-esix-sysv3*)
17455         COREFILE=trad-core.lo
17456         TRAD_HEADER='"hosts/esix.h"'
17457         ;;
17458   i[3-7]86-*-sco3.2v5*)
17459         COREFILE=sco5-core.lo
17460         ;;
17461   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17462         COREFILE=trad-core.lo
17463         TRAD_HEADER='"hosts/i386sco.h"'
17464         ;;
17465   i[3-7]86-*-mach3*)
17466         COREFILE=trad-core.lo
17467         TRAD_HEADER='"hosts/i386mach3.h"'
17468         ;;
17469   i[3-7]86-*-linux-*)
17470         COREFILE=trad-core.lo
17471         TRAD_HEADER='"hosts/i386linux.h"'
17472         ;;
17473   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
17474   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
17475   i860-*-mach3* | i860-*-osf1*)
17476         COREFILE=trad-core.lo
17477         TRAD_HEADER='"hosts/i860mach3.h"'
17478         ;;
17479   mips-*-netbsd* | mips*-*-openbsd*)
17480         COREFILE=netbsd-core.lo
17481         ;;
17482   mips-dec-*)
17483         COREFILE=trad-core.lo
17484         TRAD_HEADER='"hosts/decstation.h"'
17485         ;;
17486   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
17487   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
17488   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
17489   mips-*-sysv4*)        ;;
17490   mips-*-sysv* | mips-*-riscos*)
17491         COREFILE=trad-core.lo
17492         TRAD_HEADER='"hosts/riscos.h"'
17493         ;;
17494   mips-sony-bsd*)
17495         COREFILE=trad-core.lo
17496         TRAD_HEADER='"hosts/news-mips.h"'
17497         ;;
17498   m68*-bull*-sysv*)
17499         COREFILE=trad-core.lo
17500         TRAD_HEADER='"hosts/dpx2.h"'
17501         ;;
17502   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
17503   m68*-hp-bsd*)
17504         COREFILE=trad-core.lo
17505         TRAD_HEADER='"hosts/hp300bsd.h"'
17506         ;;
17507   m68*-*-linux-*)
17508         COREFILE=trad-core.lo
17509         TRAD_HEADER='"hosts/m68klinux.h"'
17510         ;;
17511   m68*-motorola-sysv*)
17512         COREFILE=trad-core.lo
17513         TRAD_HEADER='"hosts/delta68.h"'
17514         ;;
17515   m68*-sony-*)
17516         COREFILE=trad-core.lo
17517         TRAD_HEADER='"hosts/news.h"'
17518         ;;
17519   m68*-*-netbsd* | m68*-*-openbsd*)
17520         COREFILE=netbsd-core.lo
17521         ;;
17522   m68*-apple-aux*)
17523         COREFILE=trad-core.lo
17524         TRAD_HEADER='"hosts/m68kaux.h"'
17525         ;;
17526   m88*-*-sysv4*)
17527         ;;
17528   m88*-motorola-sysv*)
17529         COREFILE=ptrace-core.lo
17530         ;;
17531   m88*-*-mach3*)
17532         COREFILE=trad-core.lo
17533         TRAD_HEADER='"hosts/m88kmach3.h"'
17534         ;;
17535   m88*-*-openbsd*)
17536         COREFILE=netbsd-core.lo
17537         ;;
17538   ns32k-pc532-mach)
17539         COREFILE=trad-core.lo
17540         TRAD_HEADER='"hosts/pc532mach.h"'
17541         ;;
17542   ns32k-*-netbsd* | ns32k-*-openbsd*)
17543         COREFILE=netbsd-core.lo
17544         ;;
17545   rs6000-*-lynx*)
17546         COREFILE=lynx-core.lo
17547         ;;
17548   rs6000-*-aix5.* | powerpc-*-aix5.*)
17549         COREFILE=rs6000-core.lo
17550         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17551         ;;
17552   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17553         COREFILE=rs6000-core.lo
17554         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17555         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17556         # have c_impl as a member of struct core_dumpx
17557         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17558 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17559         cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565 #include <core.h>
17566 int
17567 main ()
17568 {
17569 struct core_dumpx c; c.c_impl = 0;
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576   (eval $ac_compile) 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_c_werror_flag"
17584                          || test ! -s conftest.err'
17585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586   (eval $ac_try) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest.$ac_objext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_ST_C_IMPL 1
17599 _ACEOF
17600
17601           echo "$as_me:$LINENO: result: yes" >&5
17602 echo "${ECHO_T}yes" >&6
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6
17609 fi
17610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17611         ;;
17612   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
17613   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
17614   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
17615   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
17616   powerpc-*-beos*)      ;;
17617   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17618                         COREFILE='' ;;
17619   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
17620   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
17621   s390*-*-*)            COREFILE=trad-core.lo ;;
17622   sh*-*-netbsd* | sh*-*-openbsd*)
17623         COREFILE=netbsd-core.lo
17624         ;;
17625   sparc-*-netbsd* | sparc*-*-openbsd*)
17626         COREFILE=netbsd-core.lo
17627         ;;
17628   tahoe-*-*)
17629         COREFILE=trad-core.lo
17630         TRAD_HEADER='"hosts/tahoe.h"'
17631         ;;
17632   vax-*-netbsd* | vax-*-openbsd*)
17633         COREFILE=netbsd-core.lo
17634         ;;
17635   vax-*-ultrix2*)
17636         COREFILE=trad-core.lo
17637         TRAD_HEADER='"hosts/vaxult2.h"'
17638         ;;
17639   vax-*-ultrix*)
17640         COREFILE=trad-core.lo
17641         TRAD_HEADER='"hosts/vaxult2.h"'
17642         ;;
17643   vax-*-linux-*)
17644         COREFILE=trad-core.lo
17645         TRAD_HEADER='"hosts/vaxlinux.h"'
17646         ;;
17647   vax-*-*)
17648         COREFILE=trad-core.lo
17649         TRAD_HEADER='"hosts/vaxbsd.h"'
17650         ;;
17651   x86_64-*-netbsd* | x86_64-*-openbsd*)
17652         COREFILE=netbsd-core.lo
17653         ;;
17654   esac
17655
17656   case "$COREFILE" in
17657   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
17658   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
17659   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
17660   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
17661   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
17662   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
17663   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
17664   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
17665   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
17666   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17667   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17668   esac
17669
17670   # ELF corefile support has several flavors, but all of
17671   # them use something called <sys/procfs.h>
17672
17673 for ac_header in sys/procfs.h
17674 do
17675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17677   echo "$as_me:$LINENO: checking for $ac_header" >&5
17678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 fi
17682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17684 else
17685   # Is the header compilable?
17686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 $ac_includes_default
17695 #include <$ac_header>
17696 _ACEOF
17697 rm -f conftest.$ac_objext
17698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17699   (eval $ac_compile) 2>conftest.er1
17700   ac_status=$?
17701   grep -v '^ *+' conftest.er1 >conftest.err
17702   rm -f conftest.er1
17703   cat conftest.err >&5
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } &&
17706          { ac_try='test -z "$ac_c_werror_flag"
17707                          || test ! -s conftest.err'
17708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709   (eval $ac_try) 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; } &&
17713          { ac_try='test -s conftest.$ac_objext'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_header_compiler=yes
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 ac_header_compiler=no
17725 fi
17726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17728 echo "${ECHO_T}$ac_header_compiler" >&6
17729
17730 # Is the header present?
17731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 #include <$ac_header>
17740 _ACEOF
17741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17743   ac_status=$?
17744   grep -v '^ *+' conftest.er1 >conftest.err
17745   rm -f conftest.er1
17746   cat conftest.err >&5
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); } >/dev/null; then
17749   if test -s conftest.err; then
17750     ac_cpp_err=$ac_c_preproc_warn_flag
17751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17752   else
17753     ac_cpp_err=
17754   fi
17755 else
17756   ac_cpp_err=yes
17757 fi
17758 if test -z "$ac_cpp_err"; then
17759   ac_header_preproc=yes
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764   ac_header_preproc=no
17765 fi
17766 rm -f conftest.err conftest.$ac_ext
17767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17768 echo "${ECHO_T}$ac_header_preproc" >&6
17769
17770 # So?  What about this header?
17771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17772   yes:no: )
17773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17777     ac_header_preproc=yes
17778     ;;
17779   no:yes:* )
17780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17792     (
17793       cat <<\_ASBOX
17794 ## ------------------------------------------ ##
17795 ## Report this to the AC_PACKAGE_NAME lists.  ##
17796 ## ------------------------------------------ ##
17797 _ASBOX
17798     ) |
17799       sed "s/^/$as_me: WARNING:     /" >&2
17800     ;;
17801 esac
17802 echo "$as_me:$LINENO: checking for $ac_header" >&5
17803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17805   echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807   eval "$as_ac_Header=\$ac_header_preproc"
17808 fi
17809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17811
17812 fi
17813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17814   cat >>confdefs.h <<_ACEOF
17815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17816 _ACEOF
17817
17818 fi
17819
17820 done
17821
17822   if test "$ac_cv_header_sys_procfs_h" = yes; then
17823     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17824 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17825  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17826   echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834
17835 #define _SYSCALL32
17836 #include <sys/procfs.h>
17837 int
17838 main ()
17839 {
17840 prstatus_t avar
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847   (eval $ac_compile) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest.$ac_objext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   bfd_cv_have_sys_procfs_type_prstatus_t=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 bfd_cv_have_sys_procfs_type_prstatus_t=no
17873
17874 fi
17875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 fi
17877
17878  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17879
17880 cat >>confdefs.h <<\_ACEOF
17881 #define HAVE_PRSTATUS_T 1
17882 _ACEOF
17883
17884  fi
17885  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17886 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17887
17888     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17889 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17890  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17891   echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893   cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899
17900 #define _SYSCALL32
17901 #include <sys/procfs.h>
17902 int
17903 main ()
17904 {
17905 prstatus32_t avar
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   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17938
17939 fi
17940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17941 fi
17942
17943  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_PRSTATUS32_T 1
17947 _ACEOF
17948
17949  fi
17950  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17951 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17952
17953     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17954 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17955  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17956   echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958   cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964
17965 #define _SYSCALL32
17966 #include <sys/procfs.h>
17967 int
17968 main ()
17969 {
17970 prstatus_t avar; void* aref = (void*) &avar.pr_who
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977   (eval $ac_compile) 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } &&
17984          { ac_try='test -z "$ac_c_werror_flag"
17985                          || test ! -s conftest.err'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest.$ac_objext'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17998 else
17999   echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18003
18004 fi
18005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006 fi
18007
18008  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18009
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_PRSTATUS_T_PR_WHO 1
18012 _ACEOF
18013
18014  fi
18015  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18016 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18017
18018     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18019 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18020  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18021   echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023   cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029
18030 #define _SYSCALL32
18031 #include <sys/procfs.h>
18032 int
18033 main ()
18034 {
18035 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18042   (eval $ac_compile) 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } &&
18049          { ac_try='test -z "$ac_c_werror_flag"
18050                          || test ! -s conftest.err'
18051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052   (eval $ac_try) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; } &&
18056          { ac_try='test -s conftest.$ac_objext'
18057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058   (eval $ac_try) 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; }; then
18062   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18068
18069 fi
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 fi
18072
18073  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18074
18075 cat >>confdefs.h <<\_ACEOF
18076 #define HAVE_PRSTATUS32_T_PR_WHO 1
18077 _ACEOF
18078
18079  fi
18080  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18081 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18082
18083     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18084 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18085  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18086   echo $ECHO_N "(cached) $ECHO_C" >&6
18087 else
18088   cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h.  */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h.  */
18094
18095 #define _SYSCALL32
18096 #include <sys/procfs.h>
18097 int
18098 main ()
18099 {
18100 pstatus_t avar
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107   (eval $ac_compile) 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag"
18115                          || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest.$ac_objext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   bfd_cv_have_sys_procfs_type_pstatus_t=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 bfd_cv_have_sys_procfs_type_pstatus_t=no
18133
18134 fi
18135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18136 fi
18137
18138  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18139
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_PSTATUS_T 1
18142 _ACEOF
18143
18144  fi
18145  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18146 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18147
18148     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18149 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18150  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159
18160 #define _SYSCALL32
18161 #include <sys/procfs.h>
18162 int
18163 main ()
18164 {
18165 pxstatus_t avar
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172   (eval $ac_compile) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"
18180                          || test ! -s conftest.err'
18181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182   (eval $ac_try) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188   (eval $ac_try) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18198
18199 fi
18200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18201 fi
18202
18203  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18204
18205 cat >>confdefs.h <<\_ACEOF
18206 #define HAVE_PXSTATUS_T 1
18207 _ACEOF
18208
18209  fi
18210  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18211 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18212
18213     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18214 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18215  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18216   echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218   cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 #define _SYSCALL32
18226 #include <sys/procfs.h>
18227 int
18228 main ()
18229 {
18230 pstatus32_t avar
18231   ;
18232   return 0;
18233 }
18234 _ACEOF
18235 rm -f conftest.$ac_objext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18237   (eval $ac_compile) 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } &&
18244          { ac_try='test -z "$ac_c_werror_flag"
18245                          || test ! -s conftest.err'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; } &&
18251          { ac_try='test -s conftest.$ac_objext'
18252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253   (eval $ac_try) 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; }; then
18257   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18258 else
18259   echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18261
18262 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18263
18264 fi
18265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18266 fi
18267
18268  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18269
18270 cat >>confdefs.h <<\_ACEOF
18271 #define HAVE_PSTATUS32_T 1
18272 _ACEOF
18273
18274  fi
18275  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18276 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18277
18278     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18279 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18280  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290 #define _SYSCALL32
18291 #include <sys/procfs.h>
18292 int
18293 main ()
18294 {
18295 prpsinfo_t avar
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302   (eval $ac_compile) 2>conftest.er1
18303   ac_status=$?
18304   grep -v '^ *+' conftest.er1 >conftest.err
18305   rm -f conftest.er1
18306   cat conftest.err >&5
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); } &&
18309          { ac_try='test -z "$ac_c_werror_flag"
18310                          || test ! -s conftest.err'
18311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312   (eval $ac_try) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; } &&
18316          { ac_try='test -s conftest.$ac_objext'
18317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318   (eval $ac_try) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18328
18329 fi
18330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18331 fi
18332
18333  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18334
18335 cat >>confdefs.h <<\_ACEOF
18336 #define HAVE_PRPSINFO_T 1
18337 _ACEOF
18338
18339  fi
18340  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18341 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18342
18343     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18344 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18345  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h.  */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h.  */
18354
18355 #define _SYSCALL32
18356 #include <sys/procfs.h>
18357 int
18358 main ()
18359 {
18360 prpsinfo32_t avar
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18367   (eval $ac_compile) 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -z "$ac_c_werror_flag"
18375                          || test ! -s conftest.err'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; } &&
18381          { ac_try='test -s conftest.$ac_objext'
18382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383   (eval $ac_try) 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18388 else
18389   echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18393
18394 fi
18395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18396 fi
18397
18398  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18399
18400 cat >>confdefs.h <<\_ACEOF
18401 #define HAVE_PRPSINFO32_T 1
18402 _ACEOF
18403
18404  fi
18405  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18406 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18407
18408     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18409 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18410  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419
18420 #define _SYSCALL32
18421 #include <sys/procfs.h>
18422 int
18423 main ()
18424 {
18425 psinfo_t avar
18426   ;
18427   return 0;
18428 }
18429 _ACEOF
18430 rm -f conftest.$ac_objext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18432   (eval $ac_compile) 2>conftest.er1
18433   ac_status=$?
18434   grep -v '^ *+' conftest.er1 >conftest.err
18435   rm -f conftest.er1
18436   cat conftest.err >&5
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } &&
18439          { ac_try='test -z "$ac_c_werror_flag"
18440                          || test ! -s conftest.err'
18441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442   (eval $ac_try) 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); }; } &&
18446          { ac_try='test -s conftest.$ac_objext'
18447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448   (eval $ac_try) 2>&5
18449   ac_status=$?
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); }; }; then
18452   bfd_cv_have_sys_procfs_type_psinfo_t=yes
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 bfd_cv_have_sys_procfs_type_psinfo_t=no
18458
18459 fi
18460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18461 fi
18462
18463  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18464
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_PSINFO_T 1
18467 _ACEOF
18468
18469  fi
18470  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18471 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18472
18473     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18474 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18475  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484
18485 #define _SYSCALL32
18486 #include <sys/procfs.h>
18487 int
18488 main ()
18489 {
18490 psinfo32_t avar
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497   (eval $ac_compile) 2>conftest.er1
18498   ac_status=$?
18499   grep -v '^ *+' conftest.er1 >conftest.err
18500   rm -f conftest.er1
18501   cat conftest.err >&5
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); } &&
18504          { ac_try='test -z "$ac_c_werror_flag"
18505                          || test ! -s conftest.err'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; } &&
18511          { ac_try='test -s conftest.$ac_objext'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18523
18524 fi
18525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18526 fi
18527
18528  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18529
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE_PSINFO32_T 1
18532 _ACEOF
18533
18534  fi
18535  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18536 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18537
18538     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18539 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18540  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549
18550 #define _SYSCALL32
18551 #include <sys/procfs.h>
18552 int
18553 main ()
18554 {
18555 lwpstatus_t avar
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562   (eval $ac_compile) 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_c_werror_flag"
18570                          || test ! -s conftest.err'
18571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572   (eval $ac_try) 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; } &&
18576          { ac_try='test -s conftest.$ac_objext'
18577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578   (eval $ac_try) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18588
18589 fi
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18591 fi
18592
18593  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18594
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_LWPSTATUS_T 1
18597 _ACEOF
18598
18599  fi
18600  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18601 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18602
18603     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18604 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18605  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h.  */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h.  */
18614
18615 #define _SYSCALL32
18616 #include <sys/procfs.h>
18617 int
18618 main ()
18619 {
18620 lwpxstatus_t avar
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627   (eval $ac_compile) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag"
18635                          || test ! -s conftest.err'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest.$ac_objext'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18653
18654 fi
18655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18656 fi
18657
18658  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18659
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE_LWPXSTATUS_T 1
18662 _ACEOF
18663
18664  fi
18665  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18666 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18667
18668     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18669 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18670  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h.  */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h.  */
18679
18680 #define _SYSCALL32
18681 #include <sys/procfs.h>
18682 int
18683 main ()
18684 {
18685 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext
18691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18692   (eval $ac_compile) 2>conftest.er1
18693   ac_status=$?
18694   grep -v '^ *+' conftest.er1 >conftest.err
18695   rm -f conftest.er1
18696   cat conftest.err >&5
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); } &&
18699          { ac_try='test -z "$ac_c_werror_flag"
18700                          || test ! -s conftest.err'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest.$ac_objext'
18707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708   (eval $ac_try) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18718
18719 fi
18720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18721 fi
18722
18723  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18727 _ACEOF
18728
18729  fi
18730  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18731 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18732
18733     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18734 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18735  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744
18745 #define _SYSCALL32
18746 #include <sys/procfs.h>
18747 int
18748 main ()
18749 {
18750 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757   (eval $ac_compile) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest.$ac_objext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18783
18784 fi
18785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18786 fi
18787
18788  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18789
18790 cat >>confdefs.h <<\_ACEOF
18791 #define HAVE_LWPSTATUS_T_PR_REG 1
18792 _ACEOF
18793
18794  fi
18795  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18796 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18797
18798     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18799 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18800  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809
18810 #define _SYSCALL32
18811 #include <sys/procfs.h>
18812 int
18813 main ()
18814 {
18815 win32_pstatus_t avar
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822   (eval $ac_compile) 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } &&
18829          { ac_try='test -z "$ac_c_werror_flag"
18830                          || test ! -s conftest.err'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; } &&
18836          { ac_try='test -s conftest.$ac_objext'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; }; then
18842   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18848
18849 fi
18850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18851 fi
18852
18853  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18854
18855 cat >>confdefs.h <<\_ACEOF
18856 #define HAVE_WIN32_PSTATUS_T 1
18857 _ACEOF
18858
18859  fi
18860  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18861 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18862
18863   fi
18864 fi
18865
18866
18867 if test -n "$TRAD_HEADER"; then
18868
18869 cat >>confdefs.h <<_ACEOF
18870 #define TRAD_HEADER $TRAD_HEADER
18871 _ACEOF
18872
18873 fi
18874
18875 # Horrible hacks to build DLLs on Windows.
18876 WIN32LDFLAGS=
18877 WIN32LIBADD=
18878 case "${host}" in
18879 *-*-cygwin*)
18880   if test "$enable_shared" = "yes"; then
18881     WIN32LDFLAGS="-no-undefined"
18882     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18883   fi
18884   ;;
18885 *-*-linux*)
18886   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18887   # libiberty.a.
18888   case "${host}" in
18889   mips*-*-linux*)
18890     # Linux/MIPS uses PIC by default.
18891     if test "$enable_shared" = "yes"; then
18892       WIN32LIBADD="-L../libiberty -liberty"
18893     fi
18894     ;;
18895   *)
18896     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18897     if test -n "$x"; then
18898       WIN32LIBADD="-L../libiberty/pic -liberty"
18899     fi
18900   ;;
18901   esac
18902   ;;
18903 esac
18904
18905
18906
18907 # target stuff:
18908
18909 # Canonicalize the secondary target names.
18910 if test -n "$enable_targets" ; then
18911     for targ in `echo $enable_targets | sed 's/,/ /g'`
18912     do
18913         result=`$ac_config_sub $targ 2>/dev/null`
18914         if test -n "$result" ; then
18915             canon_targets="$canon_targets $result"
18916         else
18917             # Allow targets that config.sub doesn't recognize, like "all".
18918             canon_targets="$canon_targets $targ"
18919         fi
18920     done
18921 fi
18922
18923 all_targets=false
18924 defvec=
18925 selvecs=
18926 assocvecs=
18927 selarchs=
18928 TDEFINES=
18929 for targ in $target $canon_targets
18930 do
18931     if test "x$targ" = "xall"; then
18932         all_targets=true
18933         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18934     else
18935         . $srcdir/config.bfd
18936         if test "x$targ" = "x$target"; then
18937             defvec=$targ_defvec
18938         fi
18939         selvecs="$selvecs $targ_defvec $targ_selvecs"
18940         selarchs="$selarchs $targ_archs"
18941         TDEFINES="$TDEFINES $targ_cflags"
18942     fi
18943 done
18944
18945
18946 # This processing still needs to be done if we're to decide properly whether
18947 # 64-bit support needs to be compiled in.  Currently, it will be included if
18948 # the default or any other explicitly requested target requires it; it
18949 # will not be included on a 32-bit host if no 64-bit target is requested, and
18950 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18951 # used.
18952
18953 # uniq the default and selected vectors in all the configured targets.
18954 f=""
18955 for i in $selvecs ; do
18956     case " $f " in
18957     *" $i "*) ;;
18958     *) f="$f $i" ;;
18959     esac
18960 done
18961 selvecs="$f"
18962
18963
18964 # uniq the associated vectors in all the configured targets.
18965 f=""
18966 for i in $assocvecs ; do
18967     case " $f " in
18968     *" $i "*) ;;
18969     *) f="$f $i" ;;
18970     esac
18971 done
18972 assocvecs="$f"
18973
18974
18975 # uniq the architectures in all the configured targets.
18976 f=""
18977 for i in $selarchs ; do
18978     case " $f " in
18979     *" $i "*) ;;
18980     *) f="$f $i" ;;
18981     esac
18982 done
18983 selarchs="$f"
18984
18985 # Target backend .o files.
18986 tb=
18987
18988 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
18989
18990 for vec in $selvecs
18991 do
18992     target_size=32
18993     case "$vec" in
18994     # This list is alphabetized to make it easy to compare
18995     # with the two vector lists in targets.c.  For the same reason,
18996     # use one entry per line, even though this leads to long lines.
18997     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
18998     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18999     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
19000     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
19001     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
19002     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
19003     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19004     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19005     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19006     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19007     arm_wince_pe_big_vec)       tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19008     arm_wince_pe_little_vec)    tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19009     arm_wince_pei_big_vec)      tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19010     arm_wince_pei_little_vec)   tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19011     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
19012     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
19013     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
19014     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19015     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19016     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19017     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19018     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
19019     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
19020     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19021     bfd_efi_app_x86_64_vec)     tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19022     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19023     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19024     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19025     bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19026     bfd_elf32_bfinfdpic_vec)    tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19027     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19028     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19029     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19030     bfd_elf32_bigarm_symbian_vec)
19031                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19032     bfd_elf32_bigarm_vxworks_vec)
19033                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19034     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19035     bfd_elf32_bigmips_vxworks_vec)
19036                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19037     bfd_elf32_cr16_vec)         tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19038     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19039     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19040     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19041     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19042     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19043     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19044     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19045     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19046     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19047     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19048     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19049     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19050     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19051     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19052     bfd_elf32_i386_dragonfly_vec)
19053                                 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19054     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19055     bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19056     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19057     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19058     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19059     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19060     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19061     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19062     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19063     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19064     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19065     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19066     bfd_elf32_littlearm_symbian_vec)
19067                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19068     bfd_elf32_littlearm_vxworks_vec)
19069                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19070     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19071     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19072     bfd_elf32_littlemips_vxworks_vec)
19073                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19074     bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19075     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19076     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19077     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19078     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19079     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19080     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19081     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19082     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19083     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19084     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19085     bfd_elf32_mep_vec)          tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19086     bfd_elf32_mep_little_vec)   tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19087     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19088     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19089     bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19090     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19091     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19092     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19093     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19094     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19095     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19096     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19097     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
19098     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
19099     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19100     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19101     bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19102     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19103     bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32.lo $elf" ;;
19104     bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32.lo $elf" ;;
19105     # FIXME: We include cofflink.lo not because it's needed for
19106     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19107     # which needs it but does not list it.  Should be fixed in right place.
19108     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19109     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19110     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19111     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19112     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19113     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19114     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19115     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19116     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19117     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19118     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19119     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19120     bfd_elf32_shlvxworks_vec)   tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19121     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19122     bfd_elf32_shvxworks_vec)    tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19123     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19124     bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19125     bfd_elf32_spu_vec)          tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19126     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19127     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19128     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19129     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19130     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19131     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19132     bfd_elf32_xc16x_vec)                tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19133     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19134     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19135     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19136     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19137     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19138     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 ;;
19139     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19140     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19141     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19142     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19143     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19144     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19145     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 ;;
19146     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19147     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19148     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19149     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19150     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19151     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19152     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19153     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19154     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19155     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19156     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19157     bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19158     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 ;;
19159     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 ;;
19160     bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19161     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19162     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
19163     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19164     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19165     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19166     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19167     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
19168     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19169     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19170     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19171     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19172     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19173     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
19174     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
19175     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
19176     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
19177     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
19178     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
19179     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
19180     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
19181     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
19182     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
19183     x86_64coff_vec)             tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19184     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
19185     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
19186     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
19187     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19188     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19189     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
19190     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
19191     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
19192     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
19193     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19194     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19195     x86_64pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19196     x86_64pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19197     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
19198     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
19199     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
19200     ieee_vec)                   tb="$tb ieee.lo" ;;
19201     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19202     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19203     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
19204     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19205     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
19206     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
19207     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
19208     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
19209     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
19210     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
19211     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
19212     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
19213     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
19214     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
19215     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19216     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19217     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19218     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19219     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19220     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19221     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
19222     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19223     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19224     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19225     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19226     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
19227     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19228     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19229     pef_vec)                    tb="$tb pef.lo" ;;
19230     pef_xlib_vec)               tb="$tb pef.lo" ;;
19231     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
19232     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19233     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
19234     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
19235     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19236     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19237     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
19238     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
19239     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
19240     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
19241     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19242     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19243     som_vec)                    tb="$tb som.lo" ;;
19244     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
19245     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
19246     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
19247     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19248     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19249     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
19250     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
19251     sym_vec)                    tb="$tb xsym.lo" ;;
19252     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
19253     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
19254     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
19255     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19256     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
19257     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19258     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
19259     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19260     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19261     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
19262     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19263     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
19264     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19265     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
19266     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
19267     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
19268     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
19269     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
19270     versados_vec)               tb="$tb versados.lo" ;;
19271     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19272     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19273     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
19274     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
19275     z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
19276     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19277
19278     # These appear out of order in targets.c
19279     srec_vec)                   tb="$tb srec.lo" ;;
19280     symbolsrec_vec)             tb="$tb srec.lo" ;;
19281     tekhex_vec)                 tb="$tb tekhex.lo" ;;
19282     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
19283     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
19284
19285     "")                 ;;
19286     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19287 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19288    { (exit 1); exit 1; }; } ;;
19289     esac
19290
19291     if test ${target_size} = 64; then
19292         target64=true
19293     fi
19294     if test x"${vec}" = x"${defvec}"; then
19295         bfd_default_target_size=${target_size}
19296     fi
19297 done
19298
19299 # Target architecture .o files.
19300 # A couple of CPUs use shorter file names to avoid problems on DOS
19301 # filesystems.
19302 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19303
19304 # Weed out duplicate .o files.
19305 f=""
19306 for i in $tb ; do
19307     case " $f " in
19308     *" $i "*) ;;
19309     *) f="$f $i" ;;
19310     esac
19311 done
19312 tb="$f"
19313
19314 f=""
19315 for i in $ta ; do
19316     case " $f " in
19317     *" $i "*) ;;
19318     *) f="$f $i" ;;
19319     esac
19320 done
19321 ta="$f"
19322
19323 bfd_backends="$tb"
19324 bfd_machines="$ta"
19325
19326 if test x${all_targets} = xtrue ; then
19327   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19328   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19329   selvecs=
19330   havevecs=
19331   selarchs=
19332   test -n "$assocvecs" &&
19333     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19334 else    # all_targets is true
19335   # Only set these if they will be nonempty, for the clever echo.
19336   havevecs=
19337   assocvecs=
19338   test -n "$selvecs" &&
19339     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19340   test -n "$selvecs" &&
19341     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19342   test -n "$selarchs" &&
19343     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19344 fi      # all_targets is true
19345
19346 case ${host64}-${target64}-${want64} in
19347   *true*)
19348     wordsize=64
19349     bfd64_libs='$(BFD64_LIBS)'
19350     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19351     if test $BFD_HOST_64_BIT_DEFINED = 0; then
19352       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19353 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19354       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19355 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19356     fi
19357     if test -n "$GCC" ; then
19358        bad_64bit_gcc=no;
19359        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19360 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19361        # Add more tests for gcc versions with non-working 64-bit support here.
19362        cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 :__GNUC__:__GNUC_MINOR__:__i386__:
19369 _ACEOF
19370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19371   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19372   bad_64bit_gcc=yes;
19373                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19374 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19375 else
19376   echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19378 fi
19379 rm -f conftest*
19380
19381        if test $bad_64bit_gcc = yes ; then
19382          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19383 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19384    { (exit 1); exit 1; }; }
19385        fi
19386     fi
19387     ;;
19388   false-false-false)
19389     wordsize=32
19390     all_backends='$(BFD32_BACKENDS)'
19391     ;;
19392 esac
19393
19394
19395
19396
19397
19398
19399
19400
19401 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
19402 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19403 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
19404 # Hopefully a reasonable assumption since fseeko et.al. should be
19405 # upward compatible.
19406
19407
19408
19409
19410
19411 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19412 do
19413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19414 echo "$as_me:$LINENO: checking for $ac_func" >&5
19415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19416 if eval "test \"\${$as_ac_var+set}\" = set"; then
19417   echo $ECHO_N "(cached) $ECHO_C" >&6
19418 else
19419   cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19427 #define $ac_func innocuous_$ac_func
19428
19429 /* System header to define __stub macros and hopefully few prototypes,
19430     which can conflict with char $ac_func (); below.
19431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19432     <limits.h> exists even on freestanding compilers.  */
19433
19434 #ifdef __STDC__
19435 # include <limits.h>
19436 #else
19437 # include <assert.h>
19438 #endif
19439
19440 #undef $ac_func
19441
19442 /* Override any gcc2 internal prototype to avoid an error.  */
19443 #ifdef __cplusplus
19444 extern "C"
19445 {
19446 #endif
19447 /* We use char because int might match the return type of a gcc2
19448    builtin and then its argument prototype would still apply.  */
19449 char $ac_func ();
19450 /* The GNU C library defines this for functions which it implements
19451     to always fail with ENOSYS.  Some functions are actually named
19452     something starting with __ and the normal name is an alias.  */
19453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19454 choke me
19455 #else
19456 char (*f) () = $ac_func;
19457 #endif
19458 #ifdef __cplusplus
19459 }
19460 #endif
19461
19462 int
19463 main ()
19464 {
19465 return f != $ac_func;
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472   (eval $ac_link) 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -z "$ac_c_werror_flag"
19480                          || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest$ac_exeext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   eval "$as_ac_var=yes"
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 eval "$as_ac_var=no"
19498 fi
19499 rm -f conftest.err conftest.$ac_objext \
19500       conftest$ac_exeext conftest.$ac_ext
19501 fi
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19504 if test `eval echo '${'$as_ac_var'}'` = yes; then
19505   cat >>confdefs.h <<_ACEOF
19506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19507 _ACEOF
19508
19509 fi
19510 done
19511
19512 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19513     echo "$as_me:$LINENO: checking for off_t" >&5
19514 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19515 if test "${ac_cv_type_off_t+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 $ac_includes_default
19525 int
19526 main ()
19527 {
19528 if ((off_t *) 0)
19529   return 0;
19530 if (sizeof (off_t))
19531   return 0;
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538   (eval $ac_compile) 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag"
19546                          || test ! -s conftest.err'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558   ac_cv_type_off_t=yes
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_cv_type_off_t=no
19564 fi
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 fi
19567 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19568 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19569
19570 echo "$as_me:$LINENO: checking size of off_t" >&5
19571 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19572 if test "${ac_cv_sizeof_off_t+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   if test "$ac_cv_type_off_t" = yes; then
19576   # The cast to unsigned long works around a bug in the HP C Compiler
19577   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19578   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19579   # This bug is HP SR number 8606223364.
19580   if test "$cross_compiling" = yes; then
19581   # Depending upon the size, compute the lo and hi bounds.
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 $ac_includes_default
19589 int
19590 main ()
19591 {
19592 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19593 test_array [0] = 0
19594
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601   (eval $ac_compile) 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } &&
19608          { ac_try='test -z "$ac_c_werror_flag"
19609                          || test ! -s conftest.err'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617   (eval $ac_try) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   ac_lo=0 ac_mid=0
19622   while :; do
19623     cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 $ac_includes_default
19630 int
19631 main ()
19632 {
19633 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19634 test_array [0] = 0
19635
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642   (eval $ac_compile) 2>conftest.er1
19643   ac_status=$?
19644   grep -v '^ *+' conftest.er1 >conftest.err
19645   rm -f conftest.er1
19646   cat conftest.err >&5
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); } &&
19649          { ac_try='test -z "$ac_c_werror_flag"
19650                          || test ! -s conftest.err'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; } &&
19656          { ac_try='test -s conftest.$ac_objext'
19657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658   (eval $ac_try) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; }; then
19662   ac_hi=$ac_mid; break
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_lo=`expr $ac_mid + 1`
19668                     if test $ac_lo -le $ac_mid; then
19669                       ac_lo= ac_hi=
19670                       break
19671                     fi
19672                     ac_mid=`expr 2 '*' $ac_mid + 1`
19673 fi
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19675   done
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686 $ac_includes_default
19687 int
19688 main ()
19689 {
19690 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19691 test_array [0] = 0
19692
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699   (eval $ac_compile) 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_c_werror_flag"
19707                          || test ! -s conftest.err'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; } &&
19713          { ac_try='test -s conftest.$ac_objext'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; }; then
19719   ac_hi=-1 ac_mid=-1
19720   while :; do
19721     cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 $ac_includes_default
19728 int
19729 main ()
19730 {
19731 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19732 test_array [0] = 0
19733
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740   (eval $ac_compile) 2>conftest.er1
19741   ac_status=$?
19742   grep -v '^ *+' conftest.er1 >conftest.err
19743   rm -f conftest.er1
19744   cat conftest.err >&5
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } &&
19747          { ac_try='test -z "$ac_c_werror_flag"
19748                          || test ! -s conftest.err'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; } &&
19754          { ac_try='test -s conftest.$ac_objext'
19755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756   (eval $ac_try) 2>&5
19757   ac_status=$?
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); }; }; then
19760   ac_lo=$ac_mid; break
19761 else
19762   echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ac_hi=`expr '(' $ac_mid ')' - 1`
19766                        if test $ac_mid -le $ac_hi; then
19767                          ac_lo= ac_hi=
19768                          break
19769                        fi
19770                        ac_mid=`expr 2 '*' $ac_mid`
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773   done
19774 else
19775   echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_lo= ac_hi=
19779 fi
19780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19781 fi
19782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19783 # Binary search between lo and hi bounds.
19784 while test "x$ac_lo" != "x$ac_hi"; do
19785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19786   cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 $ac_includes_default
19793 int
19794 main ()
19795 {
19796 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19797 test_array [0] = 0
19798
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805   (eval $ac_compile) 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -z "$ac_c_werror_flag"
19813                          || test ! -s conftest.err'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest.$ac_objext'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ac_hi=$ac_mid
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_lo=`expr '(' $ac_mid ')' + 1`
19831 fi
19832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19833 done
19834 case $ac_lo in
19835 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19837 See \`config.log' for more details." >&5
19838 echo "$as_me: error: cannot compute sizeof (off_t), 77
19839 See \`config.log' for more details." >&2;}
19840    { (exit 1); exit 1; }; } ;;
19841 esac
19842 else
19843   if test "$cross_compiling" = yes; then
19844   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19845 See \`config.log' for more details." >&5
19846 echo "$as_me: error: cannot run test program while cross compiling
19847 See \`config.log' for more details." >&2;}
19848    { (exit 1); exit 1; }; }
19849 else
19850   cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 $ac_includes_default
19857 long longval () { return (long) (sizeof (off_t)); }
19858 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19859 #include <stdio.h>
19860 #include <stdlib.h>
19861 int
19862 main ()
19863 {
19864
19865   FILE *f = fopen ("conftest.val", "w");
19866   if (! f)
19867     exit (1);
19868   if (((long) (sizeof (off_t))) < 0)
19869     {
19870       long i = longval ();
19871       if (i != ((long) (sizeof (off_t))))
19872         exit (1);
19873       fprintf (f, "%ld\n", i);
19874     }
19875   else
19876     {
19877       unsigned long i = ulongval ();
19878       if (i != ((long) (sizeof (off_t))))
19879         exit (1);
19880       fprintf (f, "%lu\n", i);
19881     }
19882   exit (ferror (f) || fclose (f) != 0);
19883
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890   (eval $ac_link) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895   (eval $ac_try) 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; }; then
19899   ac_cv_sizeof_off_t=`cat conftest.val`
19900 else
19901   echo "$as_me: program exited with status $ac_status" >&5
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ( exit $ac_status )
19906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19907 See \`config.log' for more details." >&5
19908 echo "$as_me: error: cannot compute sizeof (off_t), 77
19909 See \`config.log' for more details." >&2;}
19910    { (exit 1); exit 1; }; }
19911 fi
19912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19913 fi
19914 fi
19915 rm -f conftest.val
19916 else
19917   ac_cv_sizeof_off_t=0
19918 fi
19919 fi
19920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19921 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19922 cat >>confdefs.h <<_ACEOF
19923 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19924 _ACEOF
19925
19926
19927 fi
19928 echo "$as_me:$LINENO: checking file_ptr type" >&5
19929 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19930 bfd_file_ptr="long"
19931 bfd_ufile_ptr="unsigned long"
19932 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19933         -o x"${ac_cv_sizeof_off_t}" = x8; then
19934     bfd_file_ptr=BFD_HOST_64_BIT
19935     bfd_ufile_ptr=BFD_HOST_U_64_BIT
19936 fi
19937 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19938 echo "${ECHO_T}$bfd_file_ptr" >&6
19939
19940
19941
19942
19943 tdefaults=""
19944 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19945 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19946 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19947 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19948 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19949
19950
19951
19952
19953 for ac_header in stdlib.h unistd.h
19954 do
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19957   echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 fi
19962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19964 else
19965   # Is the header compilable?
19966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 $ac_includes_default
19975 #include <$ac_header>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979   (eval $ac_compile) 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } &&
19986          { ac_try='test -z "$ac_c_werror_flag"
19987                          || test ! -s conftest.err'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; } &&
19993          { ac_try='test -s conftest.$ac_objext'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_header_compiler=yes
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_header_compiler=no
20005 fi
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20008 echo "${ECHO_T}$ac_header_compiler" >&6
20009
20010 # Is the header present?
20011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 #include <$ac_header>
20020 _ACEOF
20021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } >/dev/null; then
20029   if test -s conftest.err; then
20030     ac_cpp_err=$ac_c_preproc_warn_flag
20031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20032   else
20033     ac_cpp_err=
20034   fi
20035 else
20036   ac_cpp_err=yes
20037 fi
20038 if test -z "$ac_cpp_err"; then
20039   ac_header_preproc=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044   ac_header_preproc=no
20045 fi
20046 rm -f conftest.err conftest.$ac_ext
20047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20048 echo "${ECHO_T}$ac_header_preproc" >&6
20049
20050 # So?  What about this header?
20051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20052   yes:no: )
20053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20057     ac_header_preproc=yes
20058     ;;
20059   no:yes:* )
20060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20072     (
20073       cat <<\_ASBOX
20074 ## ------------------------------------------ ##
20075 ## Report this to the AC_PACKAGE_NAME lists.  ##
20076 ## ------------------------------------------ ##
20077 _ASBOX
20078     ) |
20079       sed "s/^/$as_me: WARNING:     /" >&2
20080     ;;
20081 esac
20082 echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   eval "$as_ac_Header=\$ac_header_preproc"
20088 fi
20089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20091
20092 fi
20093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20094   cat >>confdefs.h <<_ACEOF
20095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20096 _ACEOF
20097
20098 fi
20099
20100 done
20101
20102
20103 for ac_func in getpagesize
20104 do
20105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20106 echo "$as_me:$LINENO: checking for $ac_func" >&5
20107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_var+set}\" = set"; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111   cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20119 #define $ac_func innocuous_$ac_func
20120
20121 /* System header to define __stub macros and hopefully few prototypes,
20122     which can conflict with char $ac_func (); below.
20123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20124     <limits.h> exists even on freestanding compilers.  */
20125
20126 #ifdef __STDC__
20127 # include <limits.h>
20128 #else
20129 # include <assert.h>
20130 #endif
20131
20132 #undef $ac_func
20133
20134 /* Override any gcc2 internal prototype to avoid an error.  */
20135 #ifdef __cplusplus
20136 extern "C"
20137 {
20138 #endif
20139 /* We use char because int might match the return type of a gcc2
20140    builtin and then its argument prototype would still apply.  */
20141 char $ac_func ();
20142 /* The GNU C library defines this for functions which it implements
20143     to always fail with ENOSYS.  Some functions are actually named
20144     something starting with __ and the normal name is an alias.  */
20145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20146 choke me
20147 #else
20148 char (*f) () = $ac_func;
20149 #endif
20150 #ifdef __cplusplus
20151 }
20152 #endif
20153
20154 int
20155 main ()
20156 {
20157 return f != $ac_func;
20158   ;
20159   return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20164   (eval $ac_link) 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } &&
20171          { ac_try='test -z "$ac_c_werror_flag"
20172                          || test ! -s conftest.err'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; } &&
20178          { ac_try='test -s conftest$ac_exeext'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   eval "$as_ac_var=yes"
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 eval "$as_ac_var=no"
20190 fi
20191 rm -f conftest.err conftest.$ac_objext \
20192       conftest$ac_exeext conftest.$ac_ext
20193 fi
20194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20196 if test `eval echo '${'$as_ac_var'}'` = yes; then
20197   cat >>confdefs.h <<_ACEOF
20198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199 _ACEOF
20200
20201 fi
20202 done
20203
20204 echo "$as_me:$LINENO: checking for working mmap" >&5
20205 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20206 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   if test "$cross_compiling" = yes; then
20210   ac_cv_func_mmap_fixed_mapped=no
20211 else
20212   cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h.  */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h.  */
20218 $ac_includes_default
20219 /* malloc might have been renamed as rpl_malloc. */
20220 #undef malloc
20221
20222 /* Thanks to Mike Haertel and Jim Avera for this test.
20223    Here is a matrix of mmap possibilities:
20224         mmap private not fixed
20225         mmap private fixed at somewhere currently unmapped
20226         mmap private fixed at somewhere already mapped
20227         mmap shared not fixed
20228         mmap shared fixed at somewhere currently unmapped
20229         mmap shared fixed at somewhere already mapped
20230    For private mappings, we should verify that changes cannot be read()
20231    back from the file, nor mmap's back from the file at a different
20232    address.  (There have been systems where private was not correctly
20233    implemented like the infamous i386 svr4.0, and systems where the
20234    VM page cache was not coherent with the file system buffer cache
20235    like early versions of FreeBSD and possibly contemporary NetBSD.)
20236    For shared mappings, we should conversely verify that changes get
20237    propagated back to all the places they're supposed to be.
20238
20239    Grep wants private fixed already mapped.
20240    The main things grep needs to know about mmap are:
20241    * does it exist and is it safe to write into the mmap'd area
20242    * how to use it (BSD variants)  */
20243
20244 #include <fcntl.h>
20245 #include <sys/mman.h>
20246
20247 #if !STDC_HEADERS && !HAVE_STDLIB_H
20248 char *malloc ();
20249 #endif
20250
20251 /* This mess was copied from the GNU getpagesize.h.  */
20252 #if !HAVE_GETPAGESIZE
20253 /* Assume that all systems that can run configure have sys/param.h.  */
20254 # if !HAVE_SYS_PARAM_H
20255 #  define HAVE_SYS_PARAM_H 1
20256 # endif
20257
20258 # ifdef _SC_PAGESIZE
20259 #  define getpagesize() sysconf(_SC_PAGESIZE)
20260 # else /* no _SC_PAGESIZE */
20261 #  if HAVE_SYS_PARAM_H
20262 #   include <sys/param.h>
20263 #   ifdef EXEC_PAGESIZE
20264 #    define getpagesize() EXEC_PAGESIZE
20265 #   else /* no EXEC_PAGESIZE */
20266 #    ifdef NBPG
20267 #     define getpagesize() NBPG * CLSIZE
20268 #     ifndef CLSIZE
20269 #      define CLSIZE 1
20270 #     endif /* no CLSIZE */
20271 #    else /* no NBPG */
20272 #     ifdef NBPC
20273 #      define getpagesize() NBPC
20274 #     else /* no NBPC */
20275 #      ifdef PAGESIZE
20276 #       define getpagesize() PAGESIZE
20277 #      endif /* PAGESIZE */
20278 #     endif /* no NBPC */
20279 #    endif /* no NBPG */
20280 #   endif /* no EXEC_PAGESIZE */
20281 #  else /* no HAVE_SYS_PARAM_H */
20282 #   define getpagesize() 8192   /* punt totally */
20283 #  endif /* no HAVE_SYS_PARAM_H */
20284 # endif /* no _SC_PAGESIZE */
20285
20286 #endif /* no HAVE_GETPAGESIZE */
20287
20288 int
20289 main ()
20290 {
20291   char *data, *data2, *data3;
20292   int i, pagesize;
20293   int fd;
20294
20295   pagesize = getpagesize ();
20296
20297   /* First, make a file with some known garbage in it. */
20298   data = (char *) malloc (pagesize);
20299   if (!data)
20300     exit (1);
20301   for (i = 0; i < pagesize; ++i)
20302     *(data + i) = rand ();
20303   umask (0);
20304   fd = creat ("conftest.mmap", 0600);
20305   if (fd < 0)
20306     exit (1);
20307   if (write (fd, data, pagesize) != pagesize)
20308     exit (1);
20309   close (fd);
20310
20311   /* Next, try to mmap the file at a fixed address which already has
20312      something else allocated at it.  If we can, also make sure that
20313      we see the same garbage.  */
20314   fd = open ("conftest.mmap", O_RDWR);
20315   if (fd < 0)
20316     exit (1);
20317   data2 = (char *) malloc (2 * pagesize);
20318   if (!data2)
20319     exit (1);
20320   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20321   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20322                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20323     exit (1);
20324   for (i = 0; i < pagesize; ++i)
20325     if (*(data + i) != *(data2 + i))
20326       exit (1);
20327
20328   /* Finally, make sure that changes to the mapped area do not
20329      percolate back to the file as seen by read().  (This is a bug on
20330      some variants of i386 svr4.0.)  */
20331   for (i = 0; i < pagesize; ++i)
20332     *(data2 + i) = *(data2 + i) + 1;
20333   data3 = (char *) malloc (pagesize);
20334   if (!data3)
20335     exit (1);
20336   if (read (fd, data3, pagesize) != pagesize)
20337     exit (1);
20338   for (i = 0; i < pagesize; ++i)
20339     if (*(data + i) != *(data3 + i))
20340       exit (1);
20341   close (fd);
20342   exit (0);
20343 }
20344 _ACEOF
20345 rm -f conftest$ac_exeext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347   (eval $ac_link) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352   (eval $ac_try) 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   ac_cv_func_mmap_fixed_mapped=yes
20357 else
20358   echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ( exit $ac_status )
20363 ac_cv_func_mmap_fixed_mapped=no
20364 fi
20365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20366 fi
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20369 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20370 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define HAVE_MMAP 1
20374 _ACEOF
20375
20376 fi
20377 rm -f conftest.mmap
20378
20379
20380
20381 for ac_func in madvise mprotect
20382 do
20383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20384 echo "$as_me:$LINENO: checking for $ac_func" >&5
20385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20386 if eval "test \"\${$as_ac_var+set}\" = set"; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20397 #define $ac_func innocuous_$ac_func
20398
20399 /* System header to define __stub macros and hopefully few prototypes,
20400     which can conflict with char $ac_func (); below.
20401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20402     <limits.h> exists even on freestanding compilers.  */
20403
20404 #ifdef __STDC__
20405 # include <limits.h>
20406 #else
20407 # include <assert.h>
20408 #endif
20409
20410 #undef $ac_func
20411
20412 /* Override any gcc2 internal prototype to avoid an error.  */
20413 #ifdef __cplusplus
20414 extern "C"
20415 {
20416 #endif
20417 /* We use char because int might match the return type of a gcc2
20418    builtin and then its argument prototype would still apply.  */
20419 char $ac_func ();
20420 /* The GNU C library defines this for functions which it implements
20421     to always fail with ENOSYS.  Some functions are actually named
20422     something starting with __ and the normal name is an alias.  */
20423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20424 choke me
20425 #else
20426 char (*f) () = $ac_func;
20427 #endif
20428 #ifdef __cplusplus
20429 }
20430 #endif
20431
20432 int
20433 main ()
20434 {
20435 return f != $ac_func;
20436   ;
20437   return 0;
20438 }
20439 _ACEOF
20440 rm -f conftest.$ac_objext conftest$ac_exeext
20441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20442   (eval $ac_link) 2>conftest.er1
20443   ac_status=$?
20444   grep -v '^ *+' conftest.er1 >conftest.err
20445   rm -f conftest.er1
20446   cat conftest.err >&5
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } &&
20449          { ac_try='test -z "$ac_c_werror_flag"
20450                          || test ! -s conftest.err'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; } &&
20456          { ac_try='test -s conftest$ac_exeext'
20457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458   (eval $ac_try) 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); }; }; then
20462   eval "$as_ac_var=yes"
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 eval "$as_ac_var=no"
20468 fi
20469 rm -f conftest.err conftest.$ac_objext \
20470       conftest$ac_exeext conftest.$ac_ext
20471 fi
20472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20474 if test `eval echo '${'$as_ac_var'}'` = yes; then
20475   cat >>confdefs.h <<_ACEOF
20476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20477 _ACEOF
20478
20479 fi
20480 done
20481
20482 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20483   true+yes )
20484 cat >>confdefs.h <<\_ACEOF
20485 #define USE_MMAP 1
20486 _ACEOF
20487  ;;
20488 esac
20489
20490 rm -f doc/config.status
20491                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20492
20493
20494           ac_config_commands="$ac_config_commands default"
20495
20496
20497
20498
20499
20500
20501 cat >confcache <<\_ACEOF
20502 # This file is a shell script that caches the results of configure
20503 # tests run on this system so they can be shared between configure
20504 # scripts and configure runs, see configure's option --config-cache.
20505 # It is not useful on other systems.  If it contains results you don't
20506 # want to keep, you may remove or edit it.
20507 #
20508 # config.status only pays attention to the cache file if you give it
20509 # the --recheck option to rerun configure.
20510 #
20511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20513 # following values.
20514
20515 _ACEOF
20516
20517 # The following way of writing the cache mishandles newlines in values,
20518 # but we know of no workaround that is simple, portable, and efficient.
20519 # So, don't put newlines in cache variables' values.
20520 # Ultrix sh set writes to stderr and can't be redirected directly,
20521 # and sets the high bit in the cache file unless we assign to the vars.
20522 {
20523   (set) 2>&1 |
20524     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20525     *ac_space=\ *)
20526       # `set' does not quote correctly, so add quotes (double-quote
20527       # substitution turns \\\\ into \\, and sed turns \\ into \).
20528       sed -n \
20529         "s/'/'\\\\''/g;
20530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20531       ;;
20532     *)
20533       # `set' quotes correctly as required by POSIX, so do not add quotes.
20534       sed -n \
20535         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20536       ;;
20537     esac;
20538 } |
20539   sed '
20540      t clear
20541      : clear
20542      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20543      t end
20544      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20545      : end' >>confcache
20546 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20547   if test -w $cache_file; then
20548     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20549     cat confcache >$cache_file
20550   else
20551     echo "not updating unwritable cache $cache_file"
20552   fi
20553 fi
20554 rm -f confcache
20555
20556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20557 # Let make expand exec_prefix.
20558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20559
20560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20562 # trailing colons and then remove the whole line if VPATH becomes empty
20563 # (actually we leave an empty line to preserve line numbers).
20564 if test "x$srcdir" = x.; then
20565   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20566 s/:*\$(srcdir):*/:/;
20567 s/:*\${srcdir}:*/:/;
20568 s/:*@srcdir@:*/:/;
20569 s/^\([^=]*=[     ]*\):*/\1/;
20570 s/:*$//;
20571 s/^[^=]*=[       ]*$//;
20572 }'
20573 fi
20574
20575 DEFS=-DHAVE_CONFIG_H
20576
20577 ac_libobjs=
20578 ac_ltlibobjs=
20579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20580   # 1. Remove the extension, and $U if already installed.
20581   ac_i=`echo "$ac_i" |
20582          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20583   # 2. Add them.
20584   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20585   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20586 done
20587 LIBOBJS=$ac_libobjs
20588
20589 LTLIBOBJS=$ac_ltlibobjs
20590
20591
20592 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20593   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20594 Usually this means the macro was only invoked conditionally." >&5
20595 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20596 Usually this means the macro was only invoked conditionally." >&2;}
20597    { (exit 1); exit 1; }; }
20598 fi
20599 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20600   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20601 Usually this means the macro was only invoked conditionally." >&5
20602 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20603 Usually this means the macro was only invoked conditionally." >&2;}
20604    { (exit 1); exit 1; }; }
20605 fi
20606 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20607   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20608 Usually this means the macro was only invoked conditionally." >&5
20609 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20610 Usually this means the macro was only invoked conditionally." >&2;}
20611    { (exit 1); exit 1; }; }
20612 fi
20613 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20614   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20615 Usually this means the macro was only invoked conditionally." >&5
20616 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20617 Usually this means the macro was only invoked conditionally." >&2;}
20618    { (exit 1); exit 1; }; }
20619 fi
20620 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20621   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20622 Usually this means the macro was only invoked conditionally." >&5
20623 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20624 Usually this means the macro was only invoked conditionally." >&2;}
20625    { (exit 1); exit 1; }; }
20626 fi
20627
20628 : ${CONFIG_STATUS=./config.status}
20629 ac_clean_files_save=$ac_clean_files
20630 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20631 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20632 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20633 cat >$CONFIG_STATUS <<_ACEOF
20634 #! $SHELL
20635 # Generated by $as_me.
20636 # Run this file to recreate the current configuration.
20637 # Compiler output produced by configure, useful for debugging
20638 # configure, is in config.log if it exists.
20639
20640 debug=false
20641 ac_cs_recheck=false
20642 ac_cs_silent=false
20643 SHELL=\${CONFIG_SHELL-$SHELL}
20644 _ACEOF
20645
20646 cat >>$CONFIG_STATUS <<\_ACEOF
20647 ## --------------------- ##
20648 ## M4sh Initialization.  ##
20649 ## --------------------- ##
20650
20651 # Be Bourne compatible
20652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20653   emulate sh
20654   NULLCMD=:
20655   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20656   # is contrary to our usage.  Disable this feature.
20657   alias -g '${1+"$@"}'='"$@"'
20658 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20659   set -o posix
20660 fi
20661 DUALCASE=1; export DUALCASE # for MKS sh
20662
20663 # Support unset when possible.
20664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20665   as_unset=unset
20666 else
20667   as_unset=false
20668 fi
20669
20670
20671 # Work around bugs in pre-3.0 UWIN ksh.
20672 $as_unset ENV MAIL MAILPATH
20673 PS1='$ '
20674 PS2='> '
20675 PS4='+ '
20676
20677 # NLS nuisances.
20678 for as_var in \
20679   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20680   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20681   LC_TELEPHONE LC_TIME
20682 do
20683   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20684     eval $as_var=C; export $as_var
20685   else
20686     $as_unset $as_var
20687   fi
20688 done
20689
20690 # Required to use basename.
20691 if expr a : '\(a\)' >/dev/null 2>&1; then
20692   as_expr=expr
20693 else
20694   as_expr=false
20695 fi
20696
20697 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20698   as_basename=basename
20699 else
20700   as_basename=false
20701 fi
20702
20703
20704 # Name of the executable.
20705 as_me=`$as_basename "$0" ||
20706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20707          X"$0" : 'X\(//\)$' \| \
20708          X"$0" : 'X\(/\)$' \| \
20709          .     : '\(.\)' 2>/dev/null ||
20710 echo X/"$0" |
20711     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20712           /^X\/\(\/\/\)$/{ s//\1/; q; }
20713           /^X\/\(\/\).*/{ s//\1/; q; }
20714           s/.*/./; q'`
20715
20716
20717 # PATH needs CR, and LINENO needs CR and PATH.
20718 # Avoid depending upon Character Ranges.
20719 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20720 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20721 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20722 as_cr_digits='0123456789'
20723 as_cr_alnum=$as_cr_Letters$as_cr_digits
20724
20725 # The user is always right.
20726 if test "${PATH_SEPARATOR+set}" != set; then
20727   echo "#! /bin/sh" >conf$$.sh
20728   echo  "exit 0"   >>conf$$.sh
20729   chmod +x conf$$.sh
20730   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20731     PATH_SEPARATOR=';'
20732   else
20733     PATH_SEPARATOR=:
20734   fi
20735   rm -f conf$$.sh
20736 fi
20737
20738
20739   as_lineno_1=$LINENO
20740   as_lineno_2=$LINENO
20741   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20742   test "x$as_lineno_1" != "x$as_lineno_2" &&
20743   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20744   # Find who we are.  Look in the path if we contain no path at all
20745   # relative or not.
20746   case $0 in
20747     *[\\/]* ) as_myself=$0 ;;
20748     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $PATH
20750 do
20751   IFS=$as_save_IFS
20752   test -z "$as_dir" && as_dir=.
20753   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20754 done
20755
20756        ;;
20757   esac
20758   # We did not find ourselves, most probably we were run as `sh COMMAND'
20759   # in which case we are not to be found in the path.
20760   if test "x$as_myself" = x; then
20761     as_myself=$0
20762   fi
20763   if test ! -f "$as_myself"; then
20764     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20765 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20766    { (exit 1); exit 1; }; }
20767   fi
20768   case $CONFIG_SHELL in
20769   '')
20770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20771 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20772 do
20773   IFS=$as_save_IFS
20774   test -z "$as_dir" && as_dir=.
20775   for as_base in sh bash ksh sh5; do
20776          case $as_dir in
20777          /*)
20778            if ("$as_dir/$as_base" -c '
20779   as_lineno_1=$LINENO
20780   as_lineno_2=$LINENO
20781   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20782   test "x$as_lineno_1" != "x$as_lineno_2" &&
20783   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20784              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20785              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20786              CONFIG_SHELL=$as_dir/$as_base
20787              export CONFIG_SHELL
20788              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20789            fi;;
20790          esac
20791        done
20792 done
20793 ;;
20794   esac
20795
20796   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20797   # uniformly replaced by the line number.  The first 'sed' inserts a
20798   # line-number line before each line; the second 'sed' does the real
20799   # work.  The second script uses 'N' to pair each line-number line
20800   # with the numbered line, and appends trailing '-' during
20801   # substitution so that $LINENO is not a special case at line end.
20802   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20803   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20804   sed '=' <$as_myself |
20805     sed '
20806       N
20807       s,$,-,
20808       : loop
20809       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20810       t loop
20811       s,-$,,
20812       s,^['$as_cr_digits']*\n,,
20813     ' >$as_me.lineno &&
20814   chmod +x $as_me.lineno ||
20815     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20816 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20817    { (exit 1); exit 1; }; }
20818
20819   # Don't try to exec as it changes $[0], causing all sort of problems
20820   # (the dirname of $[0] is not the place where we might find the
20821   # original and so on.  Autoconf is especially sensible to this).
20822   . ./$as_me.lineno
20823   # Exit status is that of the last command.
20824   exit
20825 }
20826
20827
20828 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20829   *c*,-n*) ECHO_N= ECHO_C='
20830 ' ECHO_T='      ' ;;
20831   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20832   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20833 esac
20834
20835 if expr a : '\(a\)' >/dev/null 2>&1; then
20836   as_expr=expr
20837 else
20838   as_expr=false
20839 fi
20840
20841 rm -f conf$$ conf$$.exe conf$$.file
20842 echo >conf$$.file
20843 if ln -s conf$$.file conf$$ 2>/dev/null; then
20844   # We could just check for DJGPP; but this test a) works b) is more generic
20845   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20846   if test -f conf$$.exe; then
20847     # Don't use ln at all; we don't have any links
20848     as_ln_s='cp -p'
20849   else
20850     as_ln_s='ln -s'
20851   fi
20852 elif ln conf$$.file conf$$ 2>/dev/null; then
20853   as_ln_s=ln
20854 else
20855   as_ln_s='cp -p'
20856 fi
20857 rm -f conf$$ conf$$.exe conf$$.file
20858
20859 if mkdir -p . 2>/dev/null; then
20860   as_mkdir_p=:
20861 else
20862   test -d ./-p && rmdir ./-p
20863   as_mkdir_p=false
20864 fi
20865
20866 as_executable_p="test -f"
20867
20868 # Sed expression to map a string onto a valid CPP name.
20869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20870
20871 # Sed expression to map a string onto a valid variable name.
20872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20873
20874
20875 # IFS
20876 # We need space, tab and new line, in precisely that order.
20877 as_nl='
20878 '
20879 IFS="   $as_nl"
20880
20881 # CDPATH.
20882 $as_unset CDPATH
20883
20884 exec 6>&1
20885
20886 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20887 # report actual input values of CONFIG_FILES etc. instead of their
20888 # values after options handling.  Logging --version etc. is OK.
20889 exec 5>>config.log
20890 {
20891   echo
20892   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20893 ## Running $as_me. ##
20894 _ASBOX
20895 } >&5
20896 cat >&5 <<_CSEOF
20897
20898 This file was extended by $as_me, which was
20899 generated by GNU Autoconf 2.59.  Invocation command line was
20900
20901   CONFIG_FILES    = $CONFIG_FILES
20902   CONFIG_HEADERS  = $CONFIG_HEADERS
20903   CONFIG_LINKS    = $CONFIG_LINKS
20904   CONFIG_COMMANDS = $CONFIG_COMMANDS
20905   $ $0 $@
20906
20907 _CSEOF
20908 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20909 echo >&5
20910 _ACEOF
20911
20912 # Files that config.status was made for.
20913 if test -n "$ac_config_files"; then
20914   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20915 fi
20916
20917 if test -n "$ac_config_headers"; then
20918   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20919 fi
20920
20921 if test -n "$ac_config_links"; then
20922   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20923 fi
20924
20925 if test -n "$ac_config_commands"; then
20926   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20927 fi
20928
20929 cat >>$CONFIG_STATUS <<\_ACEOF
20930
20931 ac_cs_usage="\
20932 \`$as_me' instantiates files from templates according to the
20933 current configuration.
20934
20935 Usage: $0 [OPTIONS] [FILE]...
20936
20937   -h, --help       print this help, then exit
20938   -V, --version    print version number, then exit
20939   -q, --quiet      do not print progress messages
20940   -d, --debug      don't remove temporary files
20941       --recheck    update $as_me by reconfiguring in the same conditions
20942   --file=FILE[:TEMPLATE]
20943                    instantiate the configuration file FILE
20944   --header=FILE[:TEMPLATE]
20945                    instantiate the configuration header FILE
20946
20947 Configuration files:
20948 $config_files
20949
20950 Configuration headers:
20951 $config_headers
20952
20953 Configuration commands:
20954 $config_commands
20955
20956 Report bugs to <bug-autoconf@gnu.org>."
20957 _ACEOF
20958
20959 cat >>$CONFIG_STATUS <<_ACEOF
20960 ac_cs_version="\\
20961 config.status
20962 configured by $0, generated by GNU Autoconf 2.59,
20963   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20964
20965 Copyright (C) 2003 Free Software Foundation, Inc.
20966 This config.status script is free software; the Free Software Foundation
20967 gives unlimited permission to copy, distribute and modify it."
20968 srcdir=$srcdir
20969 INSTALL="$INSTALL"
20970 _ACEOF
20971
20972 cat >>$CONFIG_STATUS <<\_ACEOF
20973 # If no file are specified by the user, then we need to provide default
20974 # value.  By we need to know if files were specified by the user.
20975 ac_need_defaults=:
20976 while test $# != 0
20977 do
20978   case $1 in
20979   --*=*)
20980     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20981     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20982     ac_shift=:
20983     ;;
20984   -*)
20985     ac_option=$1
20986     ac_optarg=$2
20987     ac_shift=shift
20988     ;;
20989   *) # This is not an option, so the user has probably given explicit
20990      # arguments.
20991      ac_option=$1
20992      ac_need_defaults=false;;
20993   esac
20994
20995   case $ac_option in
20996   # Handling of the options.
20997 _ACEOF
20998 cat >>$CONFIG_STATUS <<\_ACEOF
20999   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21000     ac_cs_recheck=: ;;
21001   --version | --vers* | -V )
21002     echo "$ac_cs_version"; exit 0 ;;
21003   --he | --h)
21004     # Conflict between --help and --header
21005     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21006 Try \`$0 --help' for more information." >&5
21007 echo "$as_me: error: ambiguous option: $1
21008 Try \`$0 --help' for more information." >&2;}
21009    { (exit 1); exit 1; }; };;
21010   --help | --hel | -h )
21011     echo "$ac_cs_usage"; exit 0 ;;
21012   --debug | --d* | -d )
21013     debug=: ;;
21014   --file | --fil | --fi | --f )
21015     $ac_shift
21016     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21017     ac_need_defaults=false;;
21018   --header | --heade | --head | --hea )
21019     $ac_shift
21020     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21021     ac_need_defaults=false;;
21022   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21023   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21024     ac_cs_silent=: ;;
21025
21026   # This is an error.
21027   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21028 Try \`$0 --help' for more information." >&5
21029 echo "$as_me: error: unrecognized option: $1
21030 Try \`$0 --help' for more information." >&2;}
21031    { (exit 1); exit 1; }; } ;;
21032
21033   *) ac_config_targets="$ac_config_targets $1" ;;
21034
21035   esac
21036   shift
21037 done
21038
21039 ac_configure_extra_args=
21040
21041 if $ac_cs_silent; then
21042   exec 6>/dev/null
21043   ac_configure_extra_args="$ac_configure_extra_args --silent"
21044 fi
21045
21046 _ACEOF
21047 cat >>$CONFIG_STATUS <<_ACEOF
21048 if \$ac_cs_recheck; then
21049   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21050   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21051 fi
21052
21053 _ACEOF
21054
21055 cat >>$CONFIG_STATUS <<_ACEOF
21056 #
21057 # INIT-COMMANDS section.
21058 #
21059
21060 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21061
21062
21063 # The HP-UX ksh and POSIX shell print the target directory to stdout
21064 # if CDPATH is set.
21065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21066
21067 sed_quote_subst='$sed_quote_subst'
21068 double_quote_subst='$double_quote_subst'
21069 delay_variable_subst='$delay_variable_subst'
21070 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21071 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21072 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21073 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21074 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21075 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21076 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21077 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21078 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21079 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21080 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21081 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21082 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21083 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21084 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21085 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21086 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21087 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21088 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21089 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21090 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21091 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21092 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21093 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21094 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21095 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21096 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21097 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21098 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21099 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21100 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21101 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21102 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21103 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21104 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21105 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21106 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21107 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21108 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21109 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21110 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21111 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21112 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21113 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"`'
21114 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21115 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21116 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21117 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21118 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21119 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21120 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21121 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21122 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21123 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21124 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21125 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21126 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21128 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21129 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21130 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21131 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21132 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21133 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21134 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21135 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21136 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21137 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21138 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21139 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21140 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21141 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21142 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21143 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21144 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21145 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21146 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21147 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21148 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21149 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21150 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21151 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21152 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21153 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21154 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21155 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21156 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21157 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21158 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21159 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21160 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21161 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21162 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21163 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21164 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21165 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21166 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21167 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21168 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21169 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21170 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21171 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21172 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21173 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21174 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21175 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21176 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21177 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21178 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21179 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21180 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21181
21182 LTCC='$LTCC'
21183 LTCFLAGS='$LTCFLAGS'
21184 compiler='$compiler_DEFAULT'
21185
21186 # Quote evaled strings.
21187 for var in SED \
21188 GREP \
21189 EGREP \
21190 FGREP \
21191 LD \
21192 NM \
21193 LN_S \
21194 lt_SP2NL \
21195 lt_NL2SP \
21196 reload_flag \
21197 deplibs_check_method \
21198 file_magic_cmd \
21199 AR \
21200 AR_FLAGS \
21201 STRIP \
21202 RANLIB \
21203 CC \
21204 CFLAGS \
21205 compiler \
21206 lt_cv_sys_global_symbol_pipe \
21207 lt_cv_sys_global_symbol_to_cdecl \
21208 lt_cv_sys_global_symbol_to_c_name_address \
21209 SHELL \
21210 ECHO \
21211 lt_prog_compiler_no_builtin_flag \
21212 lt_prog_compiler_wl \
21213 lt_prog_compiler_pic \
21214 lt_prog_compiler_static \
21215 lt_cv_prog_compiler_c_o \
21216 need_locks \
21217 shrext_cmds \
21218 export_dynamic_flag_spec \
21219 whole_archive_flag_spec \
21220 compiler_needs_object \
21221 with_gnu_ld \
21222 allow_undefined_flag \
21223 no_undefined_flag \
21224 hardcode_libdir_flag_spec \
21225 hardcode_libdir_flag_spec_ld \
21226 hardcode_libdir_separator \
21227 fix_srcfile_path \
21228 exclude_expsyms \
21229 include_expsyms \
21230 file_list_spec \
21231 variables_saved_for_relink \
21232 libname_spec \
21233 library_names_spec \
21234 soname_spec \
21235 finish_eval \
21236 old_striplib \
21237 striplib; do
21238     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21239     *[\\\\\\\`\\"\\\$]*)
21240       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21241       ;;
21242     *)
21243       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21244       ;;
21245     esac
21246 done
21247
21248 # Double-quote double-evaled strings.
21249 for var in reload_cmds \
21250 old_postinstall_cmds \
21251 old_postuninstall_cmds \
21252 old_archive_cmds \
21253 extract_expsyms_cmds \
21254 old_archive_from_new_cmds \
21255 old_archive_from_expsyms_cmds \
21256 archive_cmds \
21257 archive_expsym_cmds \
21258 module_cmds \
21259 module_expsym_cmds \
21260 export_symbols_cmds \
21261 prelink_cmds \
21262 postinstall_cmds \
21263 postuninstall_cmds \
21264 finish_cmds \
21265 sys_lib_search_path_spec \
21266 sys_lib_dlsearch_path_spec; do
21267     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21268     *[\\\\\\\`\\"\\\$]*)
21269       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21270       ;;
21271     *)
21272       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21273       ;;
21274     esac
21275 done
21276
21277 # Fix-up fallback echo if it was mangled by the above quoting rules.
21278 case \$lt_ECHO in
21279 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21280   ;;
21281 esac
21282
21283 ac_aux_dir='$ac_aux_dir'
21284 xsi_shell='$xsi_shell'
21285 lt_shell_append='$lt_shell_append'
21286
21287 # See if we are running on zsh, and set the options which allow our
21288 # commands through without removal of \ escapes INIT.
21289 if test -n "\${ZSH_VERSION+set}" ; then
21290    setopt NO_GLOB_SUBST
21291 fi
21292
21293
21294     PACKAGE='$PACKAGE'
21295     VERSION='$VERSION'
21296     TIMESTAMP='$TIMESTAMP'
21297     RM='$RM'
21298     ofile='$ofile'
21299
21300
21301
21302 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21303     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21304     # from automake.
21305     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21306     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21307     LINGUAS="${LINGUAS-%UNSET%}"
21308
21309
21310 GCC="$GCC"
21311 CC="$CC"
21312 acx_cv_header_stdint="$acx_cv_header_stdint"
21313 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21314 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21315 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21316 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21317 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21318 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21319 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21320 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21321 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21322 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21323 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21324 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21325 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21326
21327
21328
21329 _ACEOF
21330
21331
21332
21333 cat >>$CONFIG_STATUS <<\_ACEOF
21334 for ac_config_target in $ac_config_targets
21335 do
21336   case "$ac_config_target" in
21337   # Handling of arguments.
21338   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21339   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21340   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21341   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21342   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21343   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21344   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21345   "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21346   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21347   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21348   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21349 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21350    { (exit 1); exit 1; }; };;
21351   esac
21352 done
21353
21354 # If the user did not use the arguments to specify the items to instantiate,
21355 # then the envvar interface is used.  Set only those that are not.
21356 # We use the long form for the default assignment because of an extremely
21357 # bizarre bug on SunOS 4.1.3.
21358 if $ac_need_defaults; then
21359   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21360   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21361   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21362 fi
21363
21364 # Have a temporary directory for convenience.  Make it in the build tree
21365 # simply because there is no reason to put it here, and in addition,
21366 # creating and moving files from /tmp can sometimes cause problems.
21367 # Create a temporary directory, and hook for its removal unless debugging.
21368 $debug ||
21369 {
21370   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21371   trap '{ (exit 1); exit 1; }' 1 2 13 15
21372 }
21373
21374 # Create a (secure) tmp directory for tmp files.
21375
21376 {
21377   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21378   test -n "$tmp" && test -d "$tmp"
21379 }  ||
21380 {
21381   tmp=./confstat$$-$RANDOM
21382   (umask 077 && mkdir $tmp)
21383 } ||
21384 {
21385    echo "$me: cannot create a temporary directory in ." >&2
21386    { (exit 1); exit 1; }
21387 }
21388
21389 _ACEOF
21390
21391 cat >>$CONFIG_STATUS <<_ACEOF
21392
21393 #
21394 # CONFIG_FILES section.
21395 #
21396
21397 # No need to generate the scripts if there are no CONFIG_FILES.
21398 # This happens for instance when ./config.status config.h
21399 if test -n "\$CONFIG_FILES"; then
21400   # Protect against being on the right side of a sed subst in config.status.
21401   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21402    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21403 s,@SHELL@,$SHELL,;t t
21404 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21405 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21406 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21407 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21408 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21409 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21410 s,@exec_prefix@,$exec_prefix,;t t
21411 s,@prefix@,$prefix,;t t
21412 s,@program_transform_name@,$program_transform_name,;t t
21413 s,@bindir@,$bindir,;t t
21414 s,@sbindir@,$sbindir,;t t
21415 s,@libexecdir@,$libexecdir,;t t
21416 s,@datadir@,$datadir,;t t
21417 s,@sysconfdir@,$sysconfdir,;t t
21418 s,@sharedstatedir@,$sharedstatedir,;t t
21419 s,@localstatedir@,$localstatedir,;t t
21420 s,@libdir@,$libdir,;t t
21421 s,@includedir@,$includedir,;t t
21422 s,@oldincludedir@,$oldincludedir,;t t
21423 s,@infodir@,$infodir,;t t
21424 s,@mandir@,$mandir,;t t
21425 s,@build_alias@,$build_alias,;t t
21426 s,@host_alias@,$host_alias,;t t
21427 s,@target_alias@,$target_alias,;t t
21428 s,@DEFS@,$DEFS,;t t
21429 s,@ECHO_C@,$ECHO_C,;t t
21430 s,@ECHO_N@,$ECHO_N,;t t
21431 s,@ECHO_T@,$ECHO_T,;t t
21432 s,@LIBS@,$LIBS,;t t
21433 s,@build@,$build,;t t
21434 s,@build_cpu@,$build_cpu,;t t
21435 s,@build_vendor@,$build_vendor,;t t
21436 s,@build_os@,$build_os,;t t
21437 s,@host@,$host,;t t
21438 s,@host_cpu@,$host_cpu,;t t
21439 s,@host_vendor@,$host_vendor,;t t
21440 s,@host_os@,$host_os,;t t
21441 s,@target@,$target,;t t
21442 s,@target_cpu@,$target_cpu,;t t
21443 s,@target_vendor@,$target_vendor,;t t
21444 s,@target_os@,$target_os,;t t
21445 s,@CC@,$CC,;t t
21446 s,@CFLAGS@,$CFLAGS,;t t
21447 s,@LDFLAGS@,$LDFLAGS,;t t
21448 s,@CPPFLAGS@,$CPPFLAGS,;t t
21449 s,@ac_ct_CC@,$ac_ct_CC,;t t
21450 s,@EXEEXT@,$EXEEXT,;t t
21451 s,@OBJEXT@,$OBJEXT,;t t
21452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21453 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21454 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21455 s,@CYGPATH_W@,$CYGPATH_W,;t t
21456 s,@PACKAGE@,$PACKAGE,;t t
21457 s,@VERSION@,$VERSION,;t t
21458 s,@ACLOCAL@,$ACLOCAL,;t t
21459 s,@AUTOCONF@,$AUTOCONF,;t t
21460 s,@AUTOMAKE@,$AUTOMAKE,;t t
21461 s,@AUTOHEADER@,$AUTOHEADER,;t t
21462 s,@MAKEINFO@,$MAKEINFO,;t t
21463 s,@install_sh@,$install_sh,;t t
21464 s,@STRIP@,$STRIP,;t t
21465 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21466 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21467 s,@mkdir_p@,$mkdir_p,;t t
21468 s,@AWK@,$AWK,;t t
21469 s,@SET_MAKE@,$SET_MAKE,;t t
21470 s,@am__leading_dot@,$am__leading_dot,;t t
21471 s,@AMTAR@,$AMTAR,;t t
21472 s,@am__tar@,$am__tar,;t t
21473 s,@am__untar@,$am__untar,;t t
21474 s,@DEPDIR@,$DEPDIR,;t t
21475 s,@am__include@,$am__include,;t t
21476 s,@am__quote@,$am__quote,;t t
21477 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21478 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21479 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21480 s,@CCDEPMODE@,$CCDEPMODE,;t t
21481 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21482 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21483 s,@AR@,$AR,;t t
21484 s,@ac_ct_AR@,$ac_ct_AR,;t t
21485 s,@RANLIB@,$RANLIB,;t t
21486 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21487 s,@LIBTOOL@,$LIBTOOL,;t t
21488 s,@SED@,$SED,;t t
21489 s,@EGREP@,$EGREP,;t t
21490 s,@FGREP@,$FGREP,;t t
21491 s,@GREP@,$GREP,;t t
21492 s,@LD@,$LD,;t t
21493 s,@DUMPBIN@,$DUMPBIN,;t t
21494 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21495 s,@NM@,$NM,;t t
21496 s,@LN_S@,$LN_S,;t t
21497 s,@lt_ECHO@,$lt_ECHO,;t t
21498 s,@CPP@,$CPP,;t t
21499 s,@DEBUGDIR@,$DEBUGDIR,;t t
21500 s,@PKGVERSION@,$PKGVERSION,;t t
21501 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21502 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21503 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21504 s,@NO_WERROR@,$NO_WERROR,;t t
21505 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21506 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21507 s,@MAINT@,$MAINT,;t t
21508 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21509 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21510 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21511 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21512 s,@host_noncanonical@,$host_noncanonical,;t t
21513 s,@target_noncanonical@,$target_noncanonical,;t t
21514 s,@bfdlibdir@,$bfdlibdir,;t t
21515 s,@bfdincludedir@,$bfdincludedir,;t t
21516 s,@USE_NLS@,$USE_NLS,;t t
21517 s,@LIBINTL@,$LIBINTL,;t t
21518 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21519 s,@INCINTL@,$INCINTL,;t t
21520 s,@XGETTEXT@,$XGETTEXT,;t t
21521 s,@GMSGFMT@,$GMSGFMT,;t t
21522 s,@POSUB@,$POSUB,;t t
21523 s,@CATALOGS@,$CATALOGS,;t t
21524 s,@DATADIRNAME@,$DATADIRNAME,;t t
21525 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21526 s,@GENCAT@,$GENCAT,;t t
21527 s,@CATOBJEXT@,$CATOBJEXT,;t t
21528 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21529 s,@MSGFMT@,$MSGFMT,;t t
21530 s,@MSGMERGE@,$MSGMERGE,;t t
21531 s,@HDEFINES@,$HDEFINES,;t t
21532 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21533 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21534 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21535 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21536 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21537 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21538 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21539 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21540 s,@COREFILE@,$COREFILE,;t t
21541 s,@COREFLAG@,$COREFLAG,;t t
21542 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21543 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21544 s,@TDEFINES@,$TDEFINES,;t t
21545 s,@wordsize@,$wordsize,;t t
21546 s,@bfd64_libs@,$bfd64_libs,;t t
21547 s,@all_backends@,$all_backends,;t t
21548 s,@bfd_backends@,$bfd_backends,;t t
21549 s,@bfd_machines@,$bfd_machines,;t t
21550 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21551 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21552 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21553 s,@tdefaults@,$tdefaults,;t t
21554 s,@datarootdir@,$datarootdir,;t t
21555 s,@docdir@,$docdir,;t t
21556 s,@htmldir@,$htmldir,;t t
21557 s,@LIBOBJS@,$LIBOBJS,;t t
21558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21559 CEOF
21560
21561 _ACEOF
21562
21563   cat >>$CONFIG_STATUS <<\_ACEOF
21564   # Split the substitutions into bite-sized pieces for seds with
21565   # small command number limits, like on Digital OSF/1 and HP-UX.
21566   ac_max_sed_lines=48
21567   ac_sed_frag=1 # Number of current file.
21568   ac_beg=1 # First line for current file.
21569   ac_end=$ac_max_sed_lines # Line after last line for current file.
21570   ac_more_lines=:
21571   ac_sed_cmds=
21572   while $ac_more_lines; do
21573     if test $ac_beg -gt 1; then
21574       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21575     else
21576       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21577     fi
21578     if test ! -s $tmp/subs.frag; then
21579       ac_more_lines=false
21580     else
21581       # The purpose of the label and of the branching condition is to
21582       # speed up the sed processing (if there are no `@' at all, there
21583       # is no need to browse any of the substitutions).
21584       # These are the two extra sed commands mentioned above.
21585       (echo ':t
21586   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21587       if test -z "$ac_sed_cmds"; then
21588         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21589       else
21590         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21591       fi
21592       ac_sed_frag=`expr $ac_sed_frag + 1`
21593       ac_beg=$ac_end
21594       ac_end=`expr $ac_end + $ac_max_sed_lines`
21595     fi
21596   done
21597   if test -z "$ac_sed_cmds"; then
21598     ac_sed_cmds=cat
21599   fi
21600 fi # test -n "$CONFIG_FILES"
21601
21602 _ACEOF
21603 cat >>$CONFIG_STATUS <<\_ACEOF
21604 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21605   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21606   case $ac_file in
21607   - | *:- | *:-:* ) # input from stdin
21608         cat >$tmp/stdin
21609         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21611   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21613   * )   ac_file_in=$ac_file.in ;;
21614   esac
21615
21616   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21617   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21619          X"$ac_file" : 'X\(//\)[^/]' \| \
21620          X"$ac_file" : 'X\(//\)$' \| \
21621          X"$ac_file" : 'X\(/\)' \| \
21622          .     : '\(.\)' 2>/dev/null ||
21623 echo X"$ac_file" |
21624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21626           /^X\(\/\/\)$/{ s//\1/; q; }
21627           /^X\(\/\).*/{ s//\1/; q; }
21628           s/.*/./; q'`
21629   { if $as_mkdir_p; then
21630     mkdir -p "$ac_dir"
21631   else
21632     as_dir="$ac_dir"
21633     as_dirs=
21634     while test ! -d "$as_dir"; do
21635       as_dirs="$as_dir $as_dirs"
21636       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21638          X"$as_dir" : 'X\(//\)[^/]' \| \
21639          X"$as_dir" : 'X\(//\)$' \| \
21640          X"$as_dir" : 'X\(/\)' \| \
21641          .     : '\(.\)' 2>/dev/null ||
21642 echo X"$as_dir" |
21643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21645           /^X\(\/\/\)$/{ s//\1/; q; }
21646           /^X\(\/\).*/{ s//\1/; q; }
21647           s/.*/./; q'`
21648     done
21649     test ! -n "$as_dirs" || mkdir $as_dirs
21650   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21652    { (exit 1); exit 1; }; }; }
21653
21654   ac_builddir=.
21655
21656 if test "$ac_dir" != .; then
21657   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21658   # A "../" for each directory in $ac_dir_suffix.
21659   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21660 else
21661   ac_dir_suffix= ac_top_builddir=
21662 fi
21663
21664 case $srcdir in
21665   .)  # No --srcdir option.  We are building in place.
21666     ac_srcdir=.
21667     if test -z "$ac_top_builddir"; then
21668        ac_top_srcdir=.
21669     else
21670        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21671     fi ;;
21672   [\\/]* | ?:[\\/]* )  # Absolute path.
21673     ac_srcdir=$srcdir$ac_dir_suffix;
21674     ac_top_srcdir=$srcdir ;;
21675   *) # Relative path.
21676     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21677     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21678 esac
21679
21680 # Do not use `cd foo && pwd` to compute absolute paths, because
21681 # the directories may not exist.
21682 case `pwd` in
21683 .) ac_abs_builddir="$ac_dir";;
21684 *)
21685   case "$ac_dir" in
21686   .) ac_abs_builddir=`pwd`;;
21687   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21688   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21689   esac;;
21690 esac
21691 case $ac_abs_builddir in
21692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21693 *)
21694   case ${ac_top_builddir}. in
21695   .) ac_abs_top_builddir=$ac_abs_builddir;;
21696   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21697   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21698   esac;;
21699 esac
21700 case $ac_abs_builddir in
21701 .) ac_abs_srcdir=$ac_srcdir;;
21702 *)
21703   case $ac_srcdir in
21704   .) ac_abs_srcdir=$ac_abs_builddir;;
21705   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21706   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21707   esac;;
21708 esac
21709 case $ac_abs_builddir in
21710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21711 *)
21712   case $ac_top_srcdir in
21713   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21714   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21715   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21716   esac;;
21717 esac
21718
21719
21720   case $INSTALL in
21721   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21722   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21723   esac
21724
21725   if test x"$ac_file" != x-; then
21726     { echo "$as_me:$LINENO: creating $ac_file" >&5
21727 echo "$as_me: creating $ac_file" >&6;}
21728     rm -f "$ac_file"
21729   fi
21730   # Let's still pretend it is `configure' which instantiates (i.e., don't
21731   # use $as_me), people would be surprised to read:
21732   #    /* config.h.  Generated by config.status.  */
21733   if test x"$ac_file" = x-; then
21734     configure_input=
21735   else
21736     configure_input="$ac_file.  "
21737   fi
21738   configure_input=$configure_input"Generated from `echo $ac_file_in |
21739                                      sed 's,.*/,,'` by configure."
21740
21741   # First look for the input files in the build tree, otherwise in the
21742   # src tree.
21743   ac_file_inputs=`IFS=:
21744     for f in $ac_file_in; do
21745       case $f in
21746       -) echo $tmp/stdin ;;
21747       [\\/$]*)
21748          # Absolute (can't be DOS-style, as IFS=:)
21749          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21750 echo "$as_me: error: cannot find input file: $f" >&2;}
21751    { (exit 1); exit 1; }; }
21752          echo "$f";;
21753       *) # Relative
21754          if test -f "$f"; then
21755            # Build tree
21756            echo "$f"
21757          elif test -f "$srcdir/$f"; then
21758            # Source tree
21759            echo "$srcdir/$f"
21760          else
21761            # /dev/null tree
21762            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21763 echo "$as_me: error: cannot find input file: $f" >&2;}
21764    { (exit 1); exit 1; }; }
21765          fi;;
21766       esac
21767     done` || { (exit 1); exit 1; }
21768 _ACEOF
21769 cat >>$CONFIG_STATUS <<_ACEOF
21770   sed "$ac_vpsub
21771 $extrasub
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21774 :t
21775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21776 s,@configure_input@,$configure_input,;t t
21777 s,@srcdir@,$ac_srcdir,;t t
21778 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21779 s,@top_srcdir@,$ac_top_srcdir,;t t
21780 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21781 s,@builddir@,$ac_builddir,;t t
21782 s,@abs_builddir@,$ac_abs_builddir,;t t
21783 s,@top_builddir@,$ac_top_builddir,;t t
21784 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21785 s,@INSTALL@,$ac_INSTALL,;t t
21786 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21787   rm -f $tmp/stdin
21788   if test x"$ac_file" != x-; then
21789     mv $tmp/out $ac_file
21790   else
21791     cat $tmp/out
21792     rm -f $tmp/out
21793   fi
21794
21795 done
21796 _ACEOF
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798
21799 #
21800 # CONFIG_HEADER section.
21801 #
21802
21803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21805 #
21806 # ac_d sets the value in "#define NAME VALUE" lines.
21807 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21808 ac_dB='[         ].*$,\1#\2'
21809 ac_dC=' '
21810 ac_dD=',;t'
21811 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21812 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21813 ac_uB='$,\1#\2define\3'
21814 ac_uC=' '
21815 ac_uD=',;t'
21816
21817 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21818   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21819   case $ac_file in
21820   - | *:- | *:-:* ) # input from stdin
21821         cat >$tmp/stdin
21822         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21823         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21824   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21825         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21826   * )   ac_file_in=$ac_file.in ;;
21827   esac
21828
21829   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21830 echo "$as_me: creating $ac_file" >&6;}
21831
21832   # First look for the input files in the build tree, otherwise in the
21833   # src tree.
21834   ac_file_inputs=`IFS=:
21835     for f in $ac_file_in; do
21836       case $f in
21837       -) echo $tmp/stdin ;;
21838       [\\/$]*)
21839          # Absolute (can't be DOS-style, as IFS=:)
21840          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21841 echo "$as_me: error: cannot find input file: $f" >&2;}
21842    { (exit 1); exit 1; }; }
21843          # Do quote $f, to prevent DOS paths from being IFS'd.
21844          echo "$f";;
21845       *) # Relative
21846          if test -f "$f"; then
21847            # Build tree
21848            echo "$f"
21849          elif test -f "$srcdir/$f"; then
21850            # Source tree
21851            echo "$srcdir/$f"
21852          else
21853            # /dev/null tree
21854            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21855 echo "$as_me: error: cannot find input file: $f" >&2;}
21856    { (exit 1); exit 1; }; }
21857          fi;;
21858       esac
21859     done` || { (exit 1); exit 1; }
21860   # Remove the trailing spaces.
21861   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21862
21863 _ACEOF
21864
21865 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21866 # `conftest.undefs', that substitutes the proper values into
21867 # config.h.in to produce config.h.  The first handles `#define'
21868 # templates, and the second `#undef' templates.
21869 # And first: Protect against being on the right side of a sed subst in
21870 # config.status.  Protect against being in an unquoted here document
21871 # in config.status.
21872 rm -f conftest.defines conftest.undefs
21873 # Using a here document instead of a string reduces the quoting nightmare.
21874 # Putting comments in sed scripts is not portable.
21875 #
21876 # `end' is used to avoid that the second main sed command (meant for
21877 # 0-ary CPP macros) applies to n-ary macro definitions.
21878 # See the Autoconf documentation for `clear'.
21879 cat >confdef2sed.sed <<\_ACEOF
21880 s/[\\&,]/\\&/g
21881 s,[\\$`],\\&,g
21882 t clear
21883 : clear
21884 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21885 t end
21886 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21887 : end
21888 _ACEOF
21889 # If some macros were called several times there might be several times
21890 # the same #defines, which is useless.  Nevertheless, we may not want to
21891 # sort them, since we want the *last* AC-DEFINE to be honored.
21892 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21893 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21894 rm -f confdef2sed.sed
21895
21896 # This sed command replaces #undef with comments.  This is necessary, for
21897 # example, in the case of _POSIX_SOURCE, which is predefined and required
21898 # on some systems where configure will not decide to define it.
21899 cat >>conftest.undefs <<\_ACEOF
21900 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21901 _ACEOF
21902
21903 # Break up conftest.defines because some shells have a limit on the size
21904 # of here documents, and old seds have small limits too (100 cmds).
21905 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21906 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21907 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21908 echo '  :' >>$CONFIG_STATUS
21909 rm -f conftest.tail
21910 while grep . conftest.defines >/dev/null
21911 do
21912   # Write a limited-size here document to $tmp/defines.sed.
21913   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21914   # Speed up: don't consider the non `#define' lines.
21915   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21916   # Work around the forget-to-reset-the-flag bug.
21917   echo 't clr' >>$CONFIG_STATUS
21918   echo ': clr' >>$CONFIG_STATUS
21919   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21920   echo 'CEOF
21921   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21922   rm -f $tmp/in
21923   mv $tmp/out $tmp/in
21924 ' >>$CONFIG_STATUS
21925   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21926   rm -f conftest.defines
21927   mv conftest.tail conftest.defines
21928 done
21929 rm -f conftest.defines
21930 echo '  fi # grep' >>$CONFIG_STATUS
21931 echo >>$CONFIG_STATUS
21932
21933 # Break up conftest.undefs because some shells have a limit on the size
21934 # of here documents, and old seds have small limits too (100 cmds).
21935 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21936 rm -f conftest.tail
21937 while grep . conftest.undefs >/dev/null
21938 do
21939   # Write a limited-size here document to $tmp/undefs.sed.
21940   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21941   # Speed up: don't consider the non `#undef'
21942   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21943   # Work around the forget-to-reset-the-flag bug.
21944   echo 't clr' >>$CONFIG_STATUS
21945   echo ': clr' >>$CONFIG_STATUS
21946   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21947   echo 'CEOF
21948   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21949   rm -f $tmp/in
21950   mv $tmp/out $tmp/in
21951 ' >>$CONFIG_STATUS
21952   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21953   rm -f conftest.undefs
21954   mv conftest.tail conftest.undefs
21955 done
21956 rm -f conftest.undefs
21957
21958 cat >>$CONFIG_STATUS <<\_ACEOF
21959   # Let's still pretend it is `configure' which instantiates (i.e., don't
21960   # use $as_me), people would be surprised to read:
21961   #    /* config.h.  Generated by config.status.  */
21962   if test x"$ac_file" = x-; then
21963     echo "/* Generated by configure.  */" >$tmp/config.h
21964   else
21965     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21966   fi
21967   cat $tmp/in >>$tmp/config.h
21968   rm -f $tmp/in
21969   if test x"$ac_file" != x-; then
21970     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21971       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21972 echo "$as_me: $ac_file is unchanged" >&6;}
21973     else
21974       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21976          X"$ac_file" : 'X\(//\)[^/]' \| \
21977          X"$ac_file" : 'X\(//\)$' \| \
21978          X"$ac_file" : 'X\(/\)' \| \
21979          .     : '\(.\)' 2>/dev/null ||
21980 echo X"$ac_file" |
21981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21983           /^X\(\/\/\)$/{ s//\1/; q; }
21984           /^X\(\/\).*/{ s//\1/; q; }
21985           s/.*/./; q'`
21986       { if $as_mkdir_p; then
21987     mkdir -p "$ac_dir"
21988   else
21989     as_dir="$ac_dir"
21990     as_dirs=
21991     while test ! -d "$as_dir"; do
21992       as_dirs="$as_dir $as_dirs"
21993       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21995          X"$as_dir" : 'X\(//\)[^/]' \| \
21996          X"$as_dir" : 'X\(//\)$' \| \
21997          X"$as_dir" : 'X\(/\)' \| \
21998          .     : '\(.\)' 2>/dev/null ||
21999 echo X"$as_dir" |
22000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22001           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22002           /^X\(\/\/\)$/{ s//\1/; q; }
22003           /^X\(\/\).*/{ s//\1/; q; }
22004           s/.*/./; q'`
22005     done
22006     test ! -n "$as_dirs" || mkdir $as_dirs
22007   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22008 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22009    { (exit 1); exit 1; }; }; }
22010
22011       rm -f $ac_file
22012       mv $tmp/config.h $ac_file
22013     fi
22014   else
22015     cat $tmp/config.h
22016     rm -f $tmp/config.h
22017   fi
22018 # Compute $ac_file's index in $config_headers.
22019 _am_stamp_count=1
22020 for _am_header in $config_headers :; do
22021   case $_am_header in
22022     $ac_file | $ac_file:* )
22023       break ;;
22024     * )
22025       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22026   esac
22027 done
22028 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22029 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22030          X$ac_file : 'X\(//\)[^/]' \| \
22031          X$ac_file : 'X\(//\)$' \| \
22032          X$ac_file : 'X\(/\)' \| \
22033          .     : '\(.\)' 2>/dev/null ||
22034 echo X$ac_file |
22035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22037           /^X\(\/\/\)$/{ s//\1/; q; }
22038           /^X\(\/\).*/{ s//\1/; q; }
22039           s/.*/./; q'`/stamp-h$_am_stamp_count
22040 done
22041 _ACEOF
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043
22044 #
22045 # CONFIG_COMMANDS section.
22046 #
22047 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22048   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22049   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22050   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22051 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22052          X"$ac_dest" : 'X\(//\)[^/]' \| \
22053          X"$ac_dest" : 'X\(//\)$' \| \
22054          X"$ac_dest" : 'X\(/\)' \| \
22055          .     : '\(.\)' 2>/dev/null ||
22056 echo X"$ac_dest" |
22057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22059           /^X\(\/\/\)$/{ s//\1/; q; }
22060           /^X\(\/\).*/{ s//\1/; q; }
22061           s/.*/./; q'`
22062   { if $as_mkdir_p; then
22063     mkdir -p "$ac_dir"
22064   else
22065     as_dir="$ac_dir"
22066     as_dirs=
22067     while test ! -d "$as_dir"; do
22068       as_dirs="$as_dir $as_dirs"
22069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071          X"$as_dir" : 'X\(//\)[^/]' \| \
22072          X"$as_dir" : 'X\(//\)$' \| \
22073          X"$as_dir" : 'X\(/\)' \| \
22074          .     : '\(.\)' 2>/dev/null ||
22075 echo X"$as_dir" |
22076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22078           /^X\(\/\/\)$/{ s//\1/; q; }
22079           /^X\(\/\).*/{ s//\1/; q; }
22080           s/.*/./; q'`
22081     done
22082     test ! -n "$as_dirs" || mkdir $as_dirs
22083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22085    { (exit 1); exit 1; }; }; }
22086
22087   ac_builddir=.
22088
22089 if test "$ac_dir" != .; then
22090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22091   # A "../" for each directory in $ac_dir_suffix.
22092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22093 else
22094   ac_dir_suffix= ac_top_builddir=
22095 fi
22096
22097 case $srcdir in
22098   .)  # No --srcdir option.  We are building in place.
22099     ac_srcdir=.
22100     if test -z "$ac_top_builddir"; then
22101        ac_top_srcdir=.
22102     else
22103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22104     fi ;;
22105   [\\/]* | ?:[\\/]* )  # Absolute path.
22106     ac_srcdir=$srcdir$ac_dir_suffix;
22107     ac_top_srcdir=$srcdir ;;
22108   *) # Relative path.
22109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22111 esac
22112
22113 # Do not use `cd foo && pwd` to compute absolute paths, because
22114 # the directories may not exist.
22115 case `pwd` in
22116 .) ac_abs_builddir="$ac_dir";;
22117 *)
22118   case "$ac_dir" in
22119   .) ac_abs_builddir=`pwd`;;
22120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22122   esac;;
22123 esac
22124 case $ac_abs_builddir in
22125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22126 *)
22127   case ${ac_top_builddir}. in
22128   .) ac_abs_top_builddir=$ac_abs_builddir;;
22129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22131   esac;;
22132 esac
22133 case $ac_abs_builddir in
22134 .) ac_abs_srcdir=$ac_srcdir;;
22135 *)
22136   case $ac_srcdir in
22137   .) ac_abs_srcdir=$ac_abs_builddir;;
22138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22140   esac;;
22141 esac
22142 case $ac_abs_builddir in
22143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22144 *)
22145   case $ac_top_srcdir in
22146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22149   esac;;
22150 esac
22151
22152
22153   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22154 echo "$as_me: executing $ac_dest commands" >&6;}
22155   case $ac_dest in
22156     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22157   # Strip MF so we end up with the name of the file.
22158   mf=`echo "$mf" | sed -e 's/:.*$//'`
22159   # Check whether this is an Automake generated Makefile or not.
22160   # We used to match only the files named `Makefile.in', but
22161   # some people rename them; so instead we look at the file content.
22162   # Grep'ing the first line is not enough: some people post-process
22163   # each Makefile.in and add a new line on top of each file to say so.
22164   # So let's grep whole file.
22165   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22166     dirpart=`(dirname "$mf") 2>/dev/null ||
22167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168          X"$mf" : 'X\(//\)[^/]' \| \
22169          X"$mf" : 'X\(//\)$' \| \
22170          X"$mf" : 'X\(/\)' \| \
22171          .     : '\(.\)' 2>/dev/null ||
22172 echo X"$mf" |
22173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22175           /^X\(\/\/\)$/{ s//\1/; q; }
22176           /^X\(\/\).*/{ s//\1/; q; }
22177           s/.*/./; q'`
22178   else
22179     continue
22180   fi
22181   # Extract the definition of DEPDIR, am__include, and am__quote
22182   # from the Makefile without running `make'.
22183   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22184   test -z "$DEPDIR" && continue
22185   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22186   test -z "am__include" && continue
22187   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22188   # When using ansi2knr, U may be empty or an underscore; expand it
22189   U=`sed -n 's/^U = //p' < "$mf"`
22190   # Find all dependency output files, they are included files with
22191   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22192   # simplest approach to changing $(DEPDIR) to its actual value in the
22193   # expansion.
22194   for file in `sed -n "
22195     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22196        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22197     # Make sure the directory exists.
22198     test -f "$dirpart/$file" && continue
22199     fdir=`(dirname "$file") 2>/dev/null ||
22200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201          X"$file" : 'X\(//\)[^/]' \| \
22202          X"$file" : 'X\(//\)$' \| \
22203          X"$file" : 'X\(/\)' \| \
22204          .     : '\(.\)' 2>/dev/null ||
22205 echo X"$file" |
22206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22208           /^X\(\/\/\)$/{ s//\1/; q; }
22209           /^X\(\/\).*/{ s//\1/; q; }
22210           s/.*/./; q'`
22211     { if $as_mkdir_p; then
22212     mkdir -p $dirpart/$fdir
22213   else
22214     as_dir=$dirpart/$fdir
22215     as_dirs=
22216     while test ! -d "$as_dir"; do
22217       as_dirs="$as_dir $as_dirs"
22218       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220          X"$as_dir" : 'X\(//\)[^/]' \| \
22221          X"$as_dir" : 'X\(//\)$' \| \
22222          X"$as_dir" : 'X\(/\)' \| \
22223          .     : '\(.\)' 2>/dev/null ||
22224 echo X"$as_dir" |
22225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22226           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22227           /^X\(\/\/\)$/{ s//\1/; q; }
22228           /^X\(\/\).*/{ s//\1/; q; }
22229           s/.*/./; q'`
22230     done
22231     test ! -n "$as_dirs" || mkdir $as_dirs
22232   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22233 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22234    { (exit 1); exit 1; }; }; }
22235
22236     # echo "creating $dirpart/$file"
22237     echo '# dummy' > "$dirpart/$file"
22238   done
22239 done
22240  ;;
22241     libtool )
22242
22243     # See if we are running on zsh, and set the options which allow our
22244     # commands through without removal of \ escapes.
22245     if test -n "${ZSH_VERSION+set}" ; then
22246       setopt NO_GLOB_SUBST
22247     fi
22248
22249     cfgfile="${ofile}T"
22250     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22251     $RM "$cfgfile"
22252
22253     cat <<_LT_EOF >> "$cfgfile"
22254 #! $SHELL
22255
22256 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22257 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22260 #
22261 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22262 # 2006, 2007 Free Software Foundation, Inc.
22263 #
22264 # This file is part of GNU Libtool:
22265 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22266 #
22267 # This program is free software; you can redistribute it and/or modify
22268 # it under the terms of the GNU General Public License as published by
22269 # the Free Software Foundation; either version 2 of the License, or
22270 # (at your option) any later version.
22271 #
22272 # This program is distributed in the hope that it will be useful, but
22273 # WITHOUT ANY WARRANTY; without even the implied warranty of
22274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22275 # General Public License for more details.
22276 #
22277 # You should have received a copy of the GNU General Public License
22278 # along with this program; if not, a copy can be downloaded from
22279 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22280 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22281 # MA 02110-1301, USA.
22282 #
22283 # As a special exception to the GNU General Public License, if you
22284 # distribute this file as part of a program that contains a
22285 # configuration script generated by Autoconf, you may include it under
22286 # the same distribution terms that you use for the rest of that program.
22287
22288
22289 # The names of the tagged configurations supported by this script.
22290 available_tags=""
22291
22292 # ### BEGIN LIBTOOL CONFIG
22293
22294 # Whether or not to build shared libraries.
22295 build_libtool_libs=$enable_shared
22296
22297 # Which release of libtool.m4 was used?
22298 macro_version=$macro_version
22299 macro_revision=$macro_revision
22300
22301 # Whether or not to build static libraries.
22302 build_old_libs=$enable_static
22303
22304 # What type of objects to build.
22305 pic_mode=$pic_mode
22306
22307 # Whether or not to optimize for fast installation.
22308 fast_install=$enable_fast_install
22309
22310 # The host system.
22311 host_alias=$host_alias
22312 host=$host
22313 host_os=$host_os
22314
22315 # The build system.
22316 build_alias=$build_alias
22317 build=$build
22318 build_os=$build_os
22319
22320 # A sed program that does not truncate output.
22321 SED=$lt_SED
22322
22323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22324 Xsed="\$SED -e 1s/^X//"
22325
22326 # A grep program that handles long lines.
22327 GREP=$lt_GREP
22328
22329 # An ERE matcher.
22330 EGREP=$lt_EGREP
22331
22332 # A literal string matcher.
22333 FGREP=$lt_FGREP
22334
22335 # A BSD- or MS-compatible name lister.
22336 NM=$lt_NM
22337
22338 # Whether we need soft or hard links.
22339 LN_S=$lt_LN_S
22340
22341 # What is the maximum length of a command?
22342 max_cmd_len=$max_cmd_len
22343
22344 # Object file suffix (normally "o").
22345 objext=$ac_objext
22346
22347 # Executable file suffix (normally "").
22348 exeext=$exeext
22349
22350 # whether the shell understands "unset".
22351 lt_unset=$lt_unset
22352
22353 # turn spaces into newlines.
22354 SP2NL=$lt_lt_SP2NL
22355
22356 # turn newlines into spaces.
22357 NL2SP=$lt_lt_NL2SP
22358
22359 # How to create reloadable object files.
22360 reload_flag=$lt_reload_flag
22361 reload_cmds=$lt_reload_cmds
22362
22363 # Method to check whether dependent libraries are shared objects.
22364 deplibs_check_method=$lt_deplibs_check_method
22365
22366 # Command to use when deplibs_check_method == "file_magic".
22367 file_magic_cmd=$lt_file_magic_cmd
22368
22369 # The archiver.
22370 AR=$lt_AR
22371 AR_FLAGS=$lt_AR_FLAGS
22372
22373 # A symbol stripping program.
22374 STRIP=$lt_STRIP
22375
22376 # Commands used to install an old-style archive.
22377 RANLIB=$lt_RANLIB
22378 old_postinstall_cmds=$lt_old_postinstall_cmds
22379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22380
22381 # A C compiler.
22382 LTCC=$lt_CC
22383
22384 # LTCC compiler flags.
22385 LTCFLAGS=$lt_CFLAGS
22386
22387 # Take the output of nm and produce a listing of raw symbols and C names.
22388 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22389
22390 # Transform the output of nm in a proper C declaration.
22391 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22392
22393 # Transform the output of nm in a C name address pair.
22394 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22395
22396 # The name of the directory that contains temporary libtool files.
22397 objdir=$objdir
22398
22399 # Shell to use when invoking shell scripts.
22400 SHELL=$lt_SHELL
22401
22402 # An echo program that does not interpret backslashes.
22403 ECHO=$lt_ECHO
22404
22405 # Used to examine libraries when file_magic_cmd begins with "file".
22406 MAGIC_CMD=$MAGIC_CMD
22407
22408 # Must we lock files when doing compilation?
22409 need_locks=$lt_need_locks
22410
22411 # Old archive suffix (normally "a").
22412 libext=$libext
22413
22414 # Shared library suffix (normally ".so").
22415 shrext_cmds=$lt_shrext_cmds
22416
22417 # The commands to extract the exported symbol list from a shared archive.
22418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22419
22420 # Variables whose values should be saved in libtool wrapper scripts and
22421 # restored at link time.
22422 variables_saved_for_relink=$lt_variables_saved_for_relink
22423
22424 # Do we need the "lib" prefix for modules?
22425 need_lib_prefix=$need_lib_prefix
22426
22427 # Do we need a version for libraries?
22428 need_version=$need_version
22429
22430 # Library versioning type.
22431 version_type=$version_type
22432
22433 # Shared library runtime path variable.
22434 runpath_var=$runpath_var
22435
22436 # Shared library path variable.
22437 shlibpath_var=$shlibpath_var
22438
22439 # Is shlibpath searched before the hard-coded library search path?
22440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22441
22442 # Format of library name prefix.
22443 libname_spec=$lt_libname_spec
22444
22445 # List of archive names.  First name is the real one, the rest are links.
22446 # The last name is the one that the linker finds with -lNAME
22447 library_names_spec=$lt_library_names_spec
22448
22449 # The coded name of the library, if different from the real name.
22450 soname_spec=$lt_soname_spec
22451
22452 # Command to use after installation of a shared archive.
22453 postinstall_cmds=$lt_postinstall_cmds
22454
22455 # Command to use after uninstallation of a shared archive.
22456 postuninstall_cmds=$lt_postuninstall_cmds
22457
22458 # Commands used to finish a libtool library installation in a directory.
22459 finish_cmds=$lt_finish_cmds
22460
22461 # As "finish_cmds", except a single script fragment to be evaled but
22462 # not shown.
22463 finish_eval=$lt_finish_eval
22464
22465 # Whether we should hardcode library paths into libraries.
22466 hardcode_into_libs=$hardcode_into_libs
22467
22468 # Compile-time system search path for libraries.
22469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22470
22471 # Run-time system search path for libraries.
22472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22473
22474 # Whether dlopen is supported.
22475 dlopen_support=$enable_dlopen
22476
22477 # Whether dlopen of programs is supported.
22478 dlopen_self=$enable_dlopen_self
22479
22480 # Whether dlopen of statically linked programs is supported.
22481 dlopen_self_static=$enable_dlopen_self_static
22482
22483 # Commands to strip libraries.
22484 old_striplib=$lt_old_striplib
22485 striplib=$lt_striplib
22486
22487
22488 # The linker used to build libraries.
22489 LD=$lt_LD
22490
22491 # Commands used to build an old-style archive.
22492 old_archive_cmds=$lt_old_archive_cmds
22493
22494 # A language specific compiler.
22495 CC=$lt_compiler
22496
22497 # Is the compiler the GNU compiler?
22498 with_gcc=$GCC
22499
22500 # Compiler flag to turn off builtin functions.
22501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22502
22503 # How to pass a linker flag through the compiler.
22504 wl=$lt_lt_prog_compiler_wl
22505
22506 # Additional compiler flags for building library objects.
22507 pic_flag=$lt_lt_prog_compiler_pic
22508
22509 # Compiler flag to prevent dynamic linking.
22510 link_static_flag=$lt_lt_prog_compiler_static
22511
22512 # Does compiler simultaneously support -c and -o options?
22513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22514
22515 # Whether or not to add -lc for building shared libraries.
22516 build_libtool_need_lc=$archive_cmds_need_lc
22517
22518 # Whether or not to disallow shared libs when runtime libs are static.
22519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22520
22521 # Compiler flag to allow reflexive dlopens.
22522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22523
22524 # Compiler flag to generate shared objects directly from archives.
22525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22526
22527 # Whether the compiler copes with passing no objects directly.
22528 compiler_needs_object=$lt_compiler_needs_object
22529
22530 # Create an old-style archive from a shared archive.
22531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22532
22533 # Create a temporary old-style archive to link instead of a shared archive.
22534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22535
22536 # Commands used to build a shared archive.
22537 archive_cmds=$lt_archive_cmds
22538 archive_expsym_cmds=$lt_archive_expsym_cmds
22539
22540 # Commands used to build a loadable module if different from building
22541 # a shared archive.
22542 module_cmds=$lt_module_cmds
22543 module_expsym_cmds=$lt_module_expsym_cmds
22544
22545 # Whether we are building with GNU ld or not.
22546 with_gnu_ld=$lt_with_gnu_ld
22547
22548 # Flag that allows shared libraries with undefined symbols to be built.
22549 allow_undefined_flag=$lt_allow_undefined_flag
22550
22551 # Flag that enforces no undefined symbols.
22552 no_undefined_flag=$lt_no_undefined_flag
22553
22554 # Flag to hardcode \$libdir into a binary during linking.
22555 # This must work even if \$libdir does not exist
22556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22557
22558 # If ld is used when linking, flag to hardcode \$libdir into a binary
22559 # during linking.  This must work even if \$libdir does not exist.
22560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22561
22562 # Whether we need a single "-rpath" flag with a separated argument.
22563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22564
22565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22566 # DIR into the resulting binary.
22567 hardcode_direct=$hardcode_direct
22568
22569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22570 # DIR into the resulting binary and the resulting library dependency is
22571 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22572 # library is relocated.
22573 hardcode_direct_absolute=$hardcode_direct_absolute
22574
22575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22576 # into the resulting binary.
22577 hardcode_minus_L=$hardcode_minus_L
22578
22579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22580 # into the resulting binary.
22581 hardcode_shlibpath_var=$hardcode_shlibpath_var
22582
22583 # Set to "yes" if building a shared library automatically hardcodes DIR
22584 # into the library and all subsequent libraries and executables linked
22585 # against it.
22586 hardcode_automatic=$hardcode_automatic
22587
22588 # Set to yes if linker adds runtime paths of dependent libraries
22589 # to runtime path list.
22590 inherit_rpath=$inherit_rpath
22591
22592 # Whether libtool must link a program against all its dependency libraries.
22593 link_all_deplibs=$link_all_deplibs
22594
22595 # Fix the shell variable \$srcfile for the compiler.
22596 fix_srcfile_path=$lt_fix_srcfile_path
22597
22598 # Set to "yes" if exported symbols are required.
22599 always_export_symbols=$always_export_symbols
22600
22601 # The commands to list exported symbols.
22602 export_symbols_cmds=$lt_export_symbols_cmds
22603
22604 # Symbols that should not be listed in the preloaded symbols.
22605 exclude_expsyms=$lt_exclude_expsyms
22606
22607 # Symbols that must always be exported.
22608 include_expsyms=$lt_include_expsyms
22609
22610 # Commands necessary for linking programs (against libraries) with templates.
22611 prelink_cmds=$lt_prelink_cmds
22612
22613 # Specify filename containing input files.
22614 file_list_spec=$lt_file_list_spec
22615
22616 # How to hardcode a shared library path into an executable.
22617 hardcode_action=$hardcode_action
22618
22619 # ### END LIBTOOL CONFIG
22620
22621 _LT_EOF
22622
22623   case $host_os in
22624   aix3*)
22625     cat <<\_LT_EOF >> "$cfgfile"
22626 # AIX sometimes has problems with the GCC collect2 program.  For some
22627 # reason, if we set the COLLECT_NAMES environment variable, the problems
22628 # vanish in a puff of smoke.
22629 if test "X${COLLECT_NAMES+set}" != Xset; then
22630   COLLECT_NAMES=
22631   export COLLECT_NAMES
22632 fi
22633 _LT_EOF
22634     ;;
22635   esac
22636
22637
22638 ltmain="$ac_aux_dir/ltmain.sh"
22639
22640
22641   # We use sed instead of cat because bash on DJGPP gets confused if
22642   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22643   # text mode, it properly converts lines to CR/LF.  This bash problem
22644   # is reportedly fixed, but why not run on old versions too?
22645   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22646     || (rm -f "$cfgfile"; exit 1)
22647
22648   case $xsi_shell in
22649   yes)
22650     cat << \_LT_EOF >> "$cfgfile"
22651 # func_dirname file append nondir_replacement
22652 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22653 # otherwise set result to NONDIR_REPLACEMENT.
22654 func_dirname ()
22655 {
22656   case ${1} in
22657     */*) func_dirname_result="${1%/*}${2}" ;;
22658     *  ) func_dirname_result="${3}" ;;
22659   esac
22660 }
22661
22662 # func_basename file
22663 func_basename ()
22664 {
22665   func_basename_result="${1##*/}"
22666 }
22667
22668 # func_stripname prefix suffix name
22669 # strip PREFIX and SUFFIX off of NAME.
22670 # PREFIX and SUFFIX must not contain globbing or regex special
22671 # characters, hashes, percent signs, but SUFFIX may contain a leading
22672 # dot (in which case that matches only a dot).
22673 func_stripname ()
22674 {
22675   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22676   # positional parameters, so assign one to ordinary parameter first.
22677   func_stripname_result=${3}
22678   func_stripname_result=${func_stripname_result#"${1}"}
22679   func_stripname_result=${func_stripname_result%"${2}"}
22680 }
22681
22682 # func_opt_split
22683 func_opt_split ()
22684 {
22685   func_opt_split_opt=${1%%=*}
22686   func_opt_split_arg=${1#*=}
22687 }
22688
22689 # func_lo2o object
22690 func_lo2o ()
22691 {
22692   case ${1} in
22693     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22694     *)    func_lo2o_result=${1} ;;
22695   esac
22696 }
22697 _LT_EOF
22698     ;;
22699   *) # Bourne compatible functions.
22700     cat << \_LT_EOF >> "$cfgfile"
22701 # func_dirname file append nondir_replacement
22702 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22703 # otherwise set result to NONDIR_REPLACEMENT.
22704 func_dirname ()
22705 {
22706   # Extract subdirectory from the argument.
22707   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22708   if test "X$func_dirname_result" = "X${1}"; then
22709     func_dirname_result="${3}"
22710   else
22711     func_dirname_result="$func_dirname_result${2}"
22712   fi
22713 }
22714
22715 # func_basename file
22716 func_basename ()
22717 {
22718   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22719 }
22720
22721 # func_stripname prefix suffix name
22722 # strip PREFIX and SUFFIX off of NAME.
22723 # PREFIX and SUFFIX must not contain globbing or regex special
22724 # characters, hashes, percent signs, but SUFFIX may contain a leading
22725 # dot (in which case that matches only a dot).
22726 # func_strip_suffix prefix name
22727 func_stripname ()
22728 {
22729   case ${2} in
22730     .*) func_stripname_result=`$ECHO "X${3}" \
22731            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22732     *)  func_stripname_result=`$ECHO "X${3}" \
22733            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22734   esac
22735 }
22736
22737 # sed scripts:
22738 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22739 my_sed_long_arg='1s/^-[^=]*=//'
22740
22741 # func_opt_split
22742 func_opt_split ()
22743 {
22744   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22745   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22746 }
22747
22748 # func_lo2o object
22749 func_lo2o ()
22750 {
22751   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22752 }
22753 _LT_EOF
22754 esac
22755
22756 case $lt_shell_append in
22757   yes)
22758     cat << \_LT_EOF >> "$cfgfile"
22759
22760 # func_append var value
22761 # Append VALUE to the end of shell variable VAR.
22762 func_append ()
22763 {
22764   eval "$1+=\$2"
22765 }
22766 _LT_EOF
22767     ;;
22768   *)
22769     cat << \_LT_EOF >> "$cfgfile"
22770
22771 # func_append var value
22772 # Append VALUE to the end of shell variable VAR.
22773 func_append ()
22774 {
22775   eval "$1=\$$1\$2"
22776 }
22777 _LT_EOF
22778     ;;
22779   esac
22780
22781
22782   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22783     || (rm -f "$cfgfile"; exit 1)
22784
22785   mv -f "$cfgfile" "$ofile" ||
22786     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22787   chmod +x "$ofile"
22788
22789  ;;
22790     default-1 )
22791     for ac_file in $CONFIG_FILES; do
22792       # Support "outfile[:infile[:infile...]]"
22793       case "$ac_file" in
22794         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22795       esac
22796       # PO directories have a Makefile.in generated from Makefile.in.in.
22797       case "$ac_file" in */Makefile.in)
22798         # Adjust a relative srcdir.
22799         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22800         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22801         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22802         # In autoconf-2.13 it is called $ac_given_srcdir.
22803         # In autoconf-2.50 it is called $srcdir.
22804         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22805         case "$ac_given_srcdir" in
22806           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22807           /*) top_srcdir="$ac_given_srcdir" ;;
22808           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22809         esac
22810         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22811           rm -f "$ac_dir/POTFILES"
22812           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22813           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22814           POMAKEFILEDEPS="POTFILES.in"
22815           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22816           # on $ac_dir but don't depend on user-specified configuration
22817           # parameters.
22818           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22819             # The LINGUAS file contains the set of available languages.
22820             if test -n "$OBSOLETE_ALL_LINGUAS"; then
22821               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22822             fi
22823             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22824             # Hide the ALL_LINGUAS assigment from automake.
22825             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22826             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22827           else
22828             # The set of available languages was given in configure.in.
22829             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22830           fi
22831           case "$ac_given_srcdir" in
22832             .) srcdirpre= ;;
22833             *) srcdirpre='$(srcdir)/' ;;
22834           esac
22835           POFILES=
22836           GMOFILES=
22837           UPDATEPOFILES=
22838           DUMMYPOFILES=
22839           for lang in $ALL_LINGUAS; do
22840             POFILES="$POFILES $srcdirpre$lang.po"
22841             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22842             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22843             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22844           done
22845           # CATALOGS depends on both $ac_dir and the user's LINGUAS
22846           # environment variable.
22847           INST_LINGUAS=
22848           if test -n "$ALL_LINGUAS"; then
22849             for presentlang in $ALL_LINGUAS; do
22850               useit=no
22851               if test "%UNSET%" != "$LINGUAS"; then
22852                 desiredlanguages="$LINGUAS"
22853               else
22854                 desiredlanguages="$ALL_LINGUAS"
22855               fi
22856               for desiredlang in $desiredlanguages; do
22857                 # Use the presentlang catalog if desiredlang is
22858                 #   a. equal to presentlang, or
22859                 #   b. a variant of presentlang (because in this case,
22860                 #      presentlang can be used as a fallback for messages
22861                 #      which are not translated in the desiredlang catalog).
22862                 case "$desiredlang" in
22863                   "$presentlang"*) useit=yes;;
22864                 esac
22865               done
22866               if test $useit = yes; then
22867                 INST_LINGUAS="$INST_LINGUAS $presentlang"
22868               fi
22869             done
22870           fi
22871           CATALOGS=
22872           if test -n "$INST_LINGUAS"; then
22873             for lang in $INST_LINGUAS; do
22874               CATALOGS="$CATALOGS $lang.gmo"
22875             done
22876           fi
22877           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22878           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"
22879           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22880             if test -f "$f"; then
22881               case "$f" in
22882                 *.orig | *.bak | *~) ;;
22883                 *) cat "$f" >> "$ac_dir/Makefile" ;;
22884               esac
22885             fi
22886           done
22887         fi
22888         ;;
22889       esac
22890     done ;;
22891     bfd_stdint.h )
22892 if test "$GCC" = yes; then
22893   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22894 else
22895   echo "/* generated for $CC */" > tmp-stdint.h
22896 fi
22897
22898 sed 's/^ *//' >> tmp-stdint.h <<EOF
22899
22900   #ifndef GCC_GENERATED_STDINT_H
22901   #define GCC_GENERATED_STDINT_H 1
22902
22903   #include <sys/types.h>
22904 EOF
22905
22906 if test "$acx_cv_header_stdint" != stdint.h; then
22907   echo "#include <stddef.h>" >> tmp-stdint.h
22908 fi
22909 if test "$acx_cv_header_stdint" != stddef.h; then
22910   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22911 fi
22912
22913 sed 's/^ *//' >> tmp-stdint.h <<EOF
22914   /* glibc uses these symbols as guards to prevent redefinitions.  */
22915   #ifdef __int8_t_defined
22916   #define _INT8_T
22917   #define _INT16_T
22918   #define _INT32_T
22919   #endif
22920   #ifdef __uint32_t_defined
22921   #define _UINT32_T
22922   #endif
22923
22924 EOF
22925
22926 # ----------------- done header, emit basic int types -------------
22927 if test "$acx_cv_header_stdint" = stddef.h; then
22928   sed 's/^ *//' >> tmp-stdint.h <<EOF
22929
22930     #ifndef _UINT8_T
22931     #define _UINT8_T
22932     #ifndef __uint8_t_defined
22933     #define __uint8_t_defined
22934     typedef unsigned $acx_cv_type_int8_t uint8_t;
22935     #endif
22936     #endif
22937
22938     #ifndef _UINT16_T
22939     #define _UINT16_T
22940     #ifndef __uint16_t_defined
22941     #define __uint16_t_defined
22942     typedef unsigned $acx_cv_type_int16_t uint16_t;
22943     #endif
22944     #endif
22945
22946     #ifndef _UINT32_T
22947     #define _UINT32_T
22948     #ifndef __uint32_t_defined
22949     #define __uint32_t_defined
22950     typedef unsigned $acx_cv_type_int32_t uint32_t;
22951     #endif
22952     #endif
22953
22954     #ifndef _INT8_T
22955     #define _INT8_T
22956     #ifndef __int8_t_defined
22957     #define __int8_t_defined
22958     typedef $acx_cv_type_int8_t int8_t;
22959     #endif
22960     #endif
22961
22962     #ifndef _INT16_T
22963     #define _INT16_T
22964     #ifndef __int16_t_defined
22965     #define __int16_t_defined
22966     typedef $acx_cv_type_int16_t int16_t;
22967     #endif
22968     #endif
22969
22970     #ifndef _INT32_T
22971     #define _INT32_T
22972     #ifndef __int32_t_defined
22973     #define __int32_t_defined
22974     typedef $acx_cv_type_int32_t int32_t;
22975     #endif
22976     #endif
22977 EOF
22978 elif test "$ac_cv_type_u_int32_t" = yes; then
22979   sed 's/^ *//' >> tmp-stdint.h <<EOF
22980
22981     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22982     #ifndef _INT8_T
22983     #define _INT8_T
22984     #endif
22985     #ifndef _INT16_T
22986     #define _INT16_T
22987     #endif
22988     #ifndef _INT32_T
22989     #define _INT32_T
22990     #endif
22991
22992     #ifndef _UINT8_T
22993     #define _UINT8_T
22994     #ifndef __uint8_t_defined
22995     #define __uint8_t_defined
22996     typedef u_int8_t uint8_t;
22997     #endif
22998     #endif
22999
23000     #ifndef _UINT16_T
23001     #define _UINT16_T
23002     #ifndef __uint16_t_defined
23003     #define __uint16_t_defined
23004     typedef u_int16_t uint16_t;
23005     #endif
23006     #endif
23007
23008     #ifndef _UINT32_T
23009     #define _UINT32_T
23010     #ifndef __uint32_t_defined
23011     #define __uint32_t_defined
23012     typedef u_int32_t uint32_t;
23013     #endif
23014     #endif
23015 EOF
23016 else
23017   sed 's/^ *//' >> tmp-stdint.h <<EOF
23018
23019     /* Some systems have guard macros to prevent redefinitions, define them.  */
23020     #ifndef _INT8_T
23021     #define _INT8_T
23022     #endif
23023     #ifndef _INT16_T
23024     #define _INT16_T
23025     #endif
23026     #ifndef _INT32_T
23027     #define _INT32_T
23028     #endif
23029     #ifndef _UINT8_T
23030     #define _UINT8_T
23031     #endif
23032     #ifndef _UINT16_T
23033     #define _UINT16_T
23034     #endif
23035     #ifndef _UINT32_T
23036     #define _UINT32_T
23037     #endif
23038 EOF
23039 fi
23040
23041 # ------------- done basic int types, emit int64_t types ------------
23042 if test "$ac_cv_type_uint64_t" = yes; then
23043   sed 's/^ *//' >> tmp-stdint.h <<EOF
23044
23045     /* system headers have good uint64_t and int64_t */
23046     #ifndef _INT64_T
23047     #define _INT64_T
23048     #endif
23049     #ifndef _UINT64_T
23050     #define _UINT64_T
23051     #endif
23052 EOF
23053 elif test "$ac_cv_type_u_int64_t" = yes; then
23054   sed 's/^ *//' >> tmp-stdint.h <<EOF
23055
23056     /* system headers have an u_int64_t (and int64_t) */
23057     #ifndef _INT64_T
23058     #define _INT64_T
23059     #endif
23060     #ifndef _UINT64_T
23061     #define _UINT64_T
23062     #ifndef __uint64_t_defined
23063     #define __uint64_t_defined
23064     typedef u_int64_t uint64_t;
23065     #endif
23066     #endif
23067 EOF
23068 elif test -n "$acx_cv_type_int64_t"; then
23069   sed 's/^ *//' >> tmp-stdint.h <<EOF
23070
23071     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23072     #ifndef _INT64_T
23073     #define _INT64_T
23074     typedef $acx_cv_type_int64_t int64_t;
23075     #endif
23076     #ifndef _UINT64_T
23077     #define _UINT64_T
23078     #ifndef __uint64_t_defined
23079     #define __uint64_t_defined
23080     typedef unsigned $acx_cv_type_int64_t uint64_t;
23081     #endif
23082     #endif
23083 EOF
23084 else
23085   sed 's/^ *//' >> tmp-stdint.h <<EOF
23086
23087     /* some common heuristics for int64_t, using compiler-specific tests */
23088     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23089     #ifndef _INT64_T
23090     #define _INT64_T
23091     #ifndef __int64_t_defined
23092     typedef long long int64_t;
23093     #endif
23094     #endif
23095     #ifndef _UINT64_T
23096     #define _UINT64_T
23097     typedef unsigned long long uint64_t;
23098     #endif
23099
23100     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23101     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23102        does not implement __extension__.  But that compiler doesn't define
23103        __GNUC_MINOR__.  */
23104     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23105     # define __extension__
23106     # endif
23107
23108     # ifndef _INT64_T
23109     # define _INT64_T
23110     __extension__ typedef long long int64_t;
23111     # endif
23112     # ifndef _UINT64_T
23113     # define _UINT64_T
23114     __extension__ typedef unsigned long long uint64_t;
23115     # endif
23116
23117     #elif !defined __STRICT_ANSI__
23118     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23119
23120     #  ifndef _INT64_T
23121     #  define _INT64_T
23122     typedef __int64 int64_t;
23123     #  endif
23124     #  ifndef _UINT64_T
23125     #  define _UINT64_T
23126     typedef unsigned __int64 uint64_t;
23127     #  endif
23128     # endif /* compiler */
23129
23130     #endif /* ANSI version */
23131 EOF
23132 fi
23133
23134 # ------------- done int64_t types, emit intptr types ------------
23135 if test "$ac_cv_type_uintptr_t" != yes; then
23136   sed 's/^ *//' >> tmp-stdint.h <<EOF
23137
23138     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23139     #ifndef __uintptr_t_defined
23140     typedef u$acx_cv_type_intptr_t uintptr_t;
23141     #endif
23142     #ifndef __intptr_t_defined
23143     typedef $acx_cv_type_intptr_t  intptr_t;
23144     #endif
23145 EOF
23146 fi
23147
23148 # ------------- done intptr types, emit int_least types ------------
23149 if test "$ac_cv_type_int_least32_t" != yes; then
23150   sed 's/^ *//' >> tmp-stdint.h <<EOF
23151
23152     /* Define int_least types */
23153     typedef int8_t     int_least8_t;
23154     typedef int16_t    int_least16_t;
23155     typedef int32_t    int_least32_t;
23156     #ifdef _INT64_T
23157     typedef int64_t    int_least64_t;
23158     #endif
23159
23160     typedef uint8_t    uint_least8_t;
23161     typedef uint16_t   uint_least16_t;
23162     typedef uint32_t   uint_least32_t;
23163     #ifdef _UINT64_T
23164     typedef uint64_t   uint_least64_t;
23165     #endif
23166 EOF
23167 fi
23168
23169 # ------------- done intptr types, emit int_fast types ------------
23170 if test "$ac_cv_type_int_fast32_t" != yes; then
23171       sed 's/^ *//' >> tmp-stdint.h <<EOF
23172
23173     /* Define int_fast types.  short is often slow */
23174     typedef int8_t       int_fast8_t;
23175     typedef int          int_fast16_t;
23176     typedef int32_t      int_fast32_t;
23177     #ifdef _INT64_T
23178     typedef int64_t      int_fast64_t;
23179     #endif
23180
23181     typedef uint8_t      uint_fast8_t;
23182     typedef unsigned int uint_fast16_t;
23183     typedef uint32_t     uint_fast32_t;
23184     #ifdef _UINT64_T
23185     typedef uint64_t     uint_fast64_t;
23186     #endif
23187 EOF
23188 fi
23189
23190 if test "$ac_cv_type_uintmax_t" != yes; then
23191   sed 's/^ *//' >> tmp-stdint.h <<EOF
23192
23193     /* Define intmax based on what we found */
23194     #ifdef _INT64_T
23195     typedef int64_t       intmax_t;
23196     #else
23197     typedef long          intmax_t;
23198     #endif
23199     #ifdef _UINT64_T
23200     typedef uint64_t      uintmax_t;
23201     #else
23202     typedef unsigned long uintmax_t;
23203     #endif
23204 EOF
23205 fi
23206
23207 sed 's/^ *//' >> tmp-stdint.h <<EOF
23208
23209   #endif /* GCC_GENERATED_STDINT_H */
23210 EOF
23211
23212 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23213   rm -f tmp-stdint.h
23214 else
23215   mv -f tmp-stdint.h bfd_stdint.h
23216 fi
23217
23218  ;;
23219     default )
23220 case "$srcdir" in
23221   .) srcdirpre= ;;
23222   *) srcdirpre='$(srcdir)/' ;;
23223 esac
23224 POFILES=
23225 GMOFILES=
23226 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23227   if test $lang != dummy; then
23228     POFILES="$POFILES $srcdirpre$lang.po"
23229     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23230   fi
23231 done
23232 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23233     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23234     -e "s,@POFILES@,$POFILES," \
23235     -e "s,@GMOFILES@,$GMOFILES," \
23236     po/Makefile.in > po/Makefile ;;
23237   esac
23238 done
23239 _ACEOF
23240
23241 cat >>$CONFIG_STATUS <<\_ACEOF
23242
23243 { (exit 0); exit 0; }
23244 _ACEOF
23245 chmod +x $CONFIG_STATUS
23246 ac_clean_files=$ac_clean_files_save
23247
23248
23249 # configure is writing to config.log, and then calls config.status.
23250 # config.status does its own redirection, appending to config.log.
23251 # Unfortunately, on DOS this fails, as config.log is still kept open
23252 # by configure, so config.status won't be able to write to it; its
23253 # output is simply discarded.  So we exec the FD to /dev/null,
23254 # effectively closing config.log, so it can be properly (re)opened and
23255 # appended to by config.status.  When coming back to configure, we
23256 # need to make the FD available again.
23257 if test "$no_create" != yes; then
23258   ac_cs_success=:
23259   ac_config_status_args=
23260   test "$silent" = yes &&
23261     ac_config_status_args="$ac_config_status_args --quiet"
23262   exec 5>/dev/null
23263   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23264   exec 5>>config.log
23265   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23266   # would make configure fail if this is the last instruction.
23267   $ac_cs_success || { (exit 1); exit 1; }
23268 fi
23269
23270