xref: /netbsd-src/external/gpl3/binutils/dist/opcodes/configure (revision 6a9b3088d8d2341ca1454531d365c15fe9c1c589)
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $ECHO works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if 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
277fi
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
283if 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
381fi
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
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.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${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.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="z8k-dis.c"
424# Factoring default headers for most tests.
425ac_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
461ac_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 CPP EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463ac_pwd=`pwd`
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
503ac_prev=
504for ac_option
505do
506  # If the previous option needs an argument, assign it.
507  if test -n "$ac_prev"; then
508    eval "$ac_prev=\$ac_option"
509    ac_prev=
510    continue
511  fi
512
513  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515  # Accept the important Cygnus configure options, so we can diagnose typos.
516
517  case $ac_option in
518
519  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520    ac_prev=bindir ;;
521  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522    bindir=$ac_optarg ;;
523
524  -build | --build | --buil | --bui | --bu)
525    ac_prev=build_alias ;;
526  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527    build_alias=$ac_optarg ;;
528
529  -cache-file | --cache-file | --cache-fil | --cache-fi \
530  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531    ac_prev=cache_file ;;
532  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534    cache_file=$ac_optarg ;;
535
536  --config-cache | -C)
537    cache_file=config.cache ;;
538
539  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540    ac_prev=datadir ;;
541  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542  | --da=*)
543    datadir=$ac_optarg ;;
544
545  -disable-* | --disable-*)
546    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547    # Reject names that are not valid shell variable names.
548    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550   { (exit 1); exit 1; }; }
551    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552    eval "enable_$ac_feature=no" ;;
553
554  -enable-* | --enable-*)
555    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556    # Reject names that are not valid shell variable names.
557    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559   { (exit 1); exit 1; }; }
560    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561    case $ac_option in
562      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563      *) ac_optarg=yes ;;
564    esac
565    eval "enable_$ac_feature='$ac_optarg'" ;;
566
567  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569  | --exec | --exe | --ex)
570    ac_prev=exec_prefix ;;
571  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573  | --exec=* | --exe=* | --ex=*)
574    exec_prefix=$ac_optarg ;;
575
576  -gas | --gas | --ga | --g)
577    # Obsolete; use --with-gas.
578    with_gas=yes ;;
579
580  -help | --help | --hel | --he | -h)
581    ac_init_help=long ;;
582  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583    ac_init_help=recursive ;;
584  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585    ac_init_help=short ;;
586
587  -host | --host | --hos | --ho)
588    ac_prev=host_alias ;;
589  -host=* | --host=* | --hos=* | --ho=*)
590    host_alias=$ac_optarg ;;
591
592  -includedir | --includedir | --includedi | --included | --include \
593  | --includ | --inclu | --incl | --inc)
594    ac_prev=includedir ;;
595  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596  | --includ=* | --inclu=* | --incl=* | --inc=*)
597    includedir=$ac_optarg ;;
598
599  -infodir | --infodir | --infodi | --infod | --info | --inf)
600    ac_prev=infodir ;;
601  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602    infodir=$ac_optarg ;;
603
604  -libdir | --libdir | --libdi | --libd)
605    ac_prev=libdir ;;
606  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607    libdir=$ac_optarg ;;
608
609  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610  | --libexe | --libex | --libe)
611    ac_prev=libexecdir ;;
612  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613  | --libexe=* | --libex=* | --libe=*)
614    libexecdir=$ac_optarg ;;
615
616  -localstatedir | --localstatedir | --localstatedi | --localstated \
617  | --localstate | --localstat | --localsta | --localst \
618  | --locals | --local | --loca | --loc | --lo)
619    ac_prev=localstatedir ;;
620  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623    localstatedir=$ac_optarg ;;
624
625  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626    ac_prev=mandir ;;
627  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628    mandir=$ac_optarg ;;
629
630  -nfp | --nfp | --nf)
631    # Obsolete; use --without-fp.
632    with_fp=no ;;
633
634  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635  | --no-cr | --no-c | -n)
636    no_create=yes ;;
637
638  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640    no_recursion=yes ;;
641
642  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644  | --oldin | --oldi | --old | --ol | --o)
645    ac_prev=oldincludedir ;;
646  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649    oldincludedir=$ac_optarg ;;
650
651  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652    ac_prev=prefix ;;
653  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654    prefix=$ac_optarg ;;
655
656  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657  | --program-pre | --program-pr | --program-p)
658    ac_prev=program_prefix ;;
659  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661    program_prefix=$ac_optarg ;;
662
663  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664  | --program-suf | --program-su | --program-s)
665    ac_prev=program_suffix ;;
666  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668    program_suffix=$ac_optarg ;;
669
670  -program-transform-name | --program-transform-name \
671  | --program-transform-nam | --program-transform-na \
672  | --program-transform-n | --program-transform- \
673  | --program-transform | --program-transfor \
674  | --program-transfo | --program-transf \
675  | --program-trans | --program-tran \
676  | --progr-tra | --program-tr | --program-t)
677    ac_prev=program_transform_name ;;
678  -program-transform-name=* | --program-transform-name=* \
679  | --program-transform-nam=* | --program-transform-na=* \
680  | --program-transform-n=* | --program-transform-=* \
681  | --program-transform=* | --program-transfor=* \
682  | --program-transfo=* | --program-transf=* \
683  | --program-trans=* | --program-tran=* \
684  | --progr-tra=* | --program-tr=* | --program-t=*)
685    program_transform_name=$ac_optarg ;;
686
687  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688  | -silent | --silent | --silen | --sile | --sil)
689    silent=yes ;;
690
691  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692    ac_prev=sbindir ;;
693  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694  | --sbi=* | --sb=*)
695    sbindir=$ac_optarg ;;
696
697  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699  | --sharedst | --shareds | --shared | --share | --shar \
700  | --sha | --sh)
701    ac_prev=sharedstatedir ;;
702  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705  | --sha=* | --sh=*)
706    sharedstatedir=$ac_optarg ;;
707
708  -site | --site | --sit)
709    ac_prev=site ;;
710  -site=* | --site=* | --sit=*)
711    site=$ac_optarg ;;
712
713  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714    ac_prev=srcdir ;;
715  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716    srcdir=$ac_optarg ;;
717
718  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719  | --syscon | --sysco | --sysc | --sys | --sy)
720    ac_prev=sysconfdir ;;
721  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723    sysconfdir=$ac_optarg ;;
724
725  -target | --target | --targe | --targ | --tar | --ta | --t)
726    ac_prev=target_alias ;;
727  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728    target_alias=$ac_optarg ;;
729
730  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731    verbose=yes ;;
732
733  -version | --version | --versio | --versi | --vers | -V)
734    ac_init_version=: ;;
735
736  -with-* | --with-*)
737    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738    # Reject names that are not valid shell variable names.
739    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740      { echo "$as_me: error: invalid package name: $ac_package" >&2
741   { (exit 1); exit 1; }; }
742    ac_package=`echo $ac_package| sed 's/-/_/g'`
743    case $ac_option in
744      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745      *) ac_optarg=yes ;;
746    esac
747    eval "with_$ac_package='$ac_optarg'" ;;
748
749  -without-* | --without-*)
750    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package | sed 's/-/_/g'`
756    eval "with_$ac_package=no" ;;
757
758  --x)
759    # Obsolete; use --with-x.
760    with_x=yes ;;
761
762  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763  | --x-incl | --x-inc | --x-in | --x-i)
764    ac_prev=x_includes ;;
765  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767    x_includes=$ac_optarg ;;
768
769  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771    ac_prev=x_libraries ;;
772  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774    x_libraries=$ac_optarg ;;
775
776  -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778   { (exit 1); exit 1; }; }
779    ;;
780
781  *=*)
782    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783    # Reject names that are not valid shell variable names.
784    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786   { (exit 1); exit 1; }; }
787    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788    eval "$ac_envvar='$ac_optarg'"
789    export $ac_envvar ;;
790
791  *)
792    # FIXME: should be removed in autoconf 3.0.
793    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797    ;;
798
799  esac
800done
801
802if test -n "$ac_prev"; then
803  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804  { echo "$as_me: error: missing argument to $ac_option" >&2
805   { (exit 1); exit 1; }; }
806fi
807
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811  eval ac_val=$`echo $ac_var`
812  case $ac_val in
813    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815   { (exit 1); exit 1; }; };;
816  esac
817done
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821	      localstatedir libdir includedir oldincludedir infodir mandir
822do
823  eval ac_val=$`echo $ac_var`
824  case $ac_val in
825    [\\/$]* | ?:[\\/]* ) ;;
826    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827   { (exit 1); exit 1; }; };;
828  esac
829done
830
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840  if test "x$build_alias" = x; then
841    cross_compiling=maybe
842    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843    If a cross compiler is detected then cross compile mode will be used." >&2
844  elif test "x$build_alias" != "x$host_alias"; then
845    cross_compiling=yes
846  fi
847fi
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857  ac_srcdir_defaulted=yes
858  # Try the directory containing this script, then its parent.
859  ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861	 X"$0" : 'X\(//\)[^/]' \| \
862	 X"$0" : 'X\(//\)$' \| \
863	 X"$0" : 'X\(/\)' \| \
864	 .     : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868  	  /^X\(\/\/\)$/{ s//\1/; q; }
869  	  /^X\(\/\).*/{ s//\1/; q; }
870  	  s/.*/./; q'`
871  srcdir=$ac_confdir
872  if test ! -r $srcdir/$ac_unique_file; then
873    srcdir=..
874  fi
875else
876  ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879  if test "$ac_srcdir_defaulted" = yes; then
880    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881   { (exit 1); exit 1; }; }
882  else
883    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884   { (exit 1); exit 1; }; }
885  fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889   { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928  # Omit some internal or obsolete options to make the list less imposing.
929  # This message is too long to be a string in the A/UX 3.1 sh.
930  cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
932
933Usage: $0 [OPTION]... [VAR=VALUE]...
934
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938Defaults for the options are specified in brackets.
939
940Configuration:
941  -h, --help              display this help and exit
942      --help=short        display options specific to this package
943      --help=recursive    display the short help of all the included packages
944  -V, --version           display version information and exit
945  -q, --quiet, --silent   do not print \`checking...' messages
946      --cache-file=FILE   cache test results in FILE [disabled]
947  -C, --config-cache      alias for \`--cache-file=config.cache'
948  -n, --no-create         do not create output files
949      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953  cat <<_ACEOF
954Installation directories:
955  --prefix=PREFIX         install architecture-independent files in PREFIX
956			  [$ac_default_prefix]
957  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958			  [PREFIX]
959
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
964
965For better control, use the options below.
966
967Fine tuning of the installation directories:
968  --bindir=DIR           user executables [EPREFIX/bin]
969  --sbindir=DIR          system admin executables [EPREFIX/sbin]
970  --libexecdir=DIR       program executables [EPREFIX/libexec]
971  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975  --libdir=DIR           object code libraries [EPREFIX/lib]
976  --includedir=DIR       C header files [PREFIX/include]
977  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978  --infodir=DIR          info documentation [PREFIX/info]
979  --mandir=DIR           man documentation [PREFIX/man]
980_ACEOF
981
982  cat <<\_ACEOF
983
984Program names:
985  --program-prefix=PREFIX            prepend PREFIX to installed program names
986  --program-suffix=SUFFIX            append SUFFIX to installed program names
987  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989System types:
990  --build=BUILD     configure for building on BUILD [guessed]
991  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992  --target=TARGET   configure for building compilers for TARGET [HOST]
993_ACEOF
994fi
995
996if test -n "$ac_init_help"; then
997
998  cat <<\_ACEOF
999
1000Optional Features:
1001  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003  --disable-dependency-tracking  speeds up one-time build
1004  --enable-dependency-tracking   do not reject slow dependency extractors
1005  --enable-shared[=PKGS]
1006                          build shared libraries [default=no]
1007  --enable-static[=PKGS]
1008                          build static libraries [default=yes]
1009  --enable-fast-install[=PKGS]
1010                          optimize for fast installation [default=yes]
1011  --disable-libtool-lock  avoid locking (might break parallel builds)
1012  --enable-targets        alternative target configurations
1013  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014  --enable-werror         treat compile warnings as errors
1015  --enable-build-warnings enable build-time compiler warnings
1016  --enable-maintainer-mode  enable make rules and dependencies not useful
1017			  (and sometimes confusing) to the casual installer
1018  --enable-install-libbfd controls installation of libbfd and related headers
1019  --disable-nls           do not use Native Language Support
1020  --enable-cgen-maint=dir    build cgen generated files
1021
1022Optional Packages:
1023  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025  --with-pic              try to use only PIC/non-PIC objects [default=use
1026                          both]
1027  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1028
1029Some influential environment variables:
1030  CC          C compiler command
1031  CFLAGS      C compiler flags
1032  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1033              nonstandard directory <lib dir>
1034  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035              headers in a nonstandard directory <include dir>
1036  CPP         C preprocessor
1037
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041_ACEOF
1042fi
1043
1044if test "$ac_init_help" = "recursive"; then
1045  # If there are subdirs, report their specific --help.
1046  ac_popdir=`pwd`
1047  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048    test -d $ac_dir || continue
1049    ac_builddir=.
1050
1051if test "$ac_dir" != .; then
1052  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053  # A "../" for each directory in $ac_dir_suffix.
1054  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055else
1056  ac_dir_suffix= ac_top_builddir=
1057fi
1058
1059case $srcdir in
1060  .)  # No --srcdir option.  We are building in place.
1061    ac_srcdir=.
1062    if test -z "$ac_top_builddir"; then
1063       ac_top_srcdir=.
1064    else
1065       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066    fi ;;
1067  [\\/]* | ?:[\\/]* )  # Absolute path.
1068    ac_srcdir=$srcdir$ac_dir_suffix;
1069    ac_top_srcdir=$srcdir ;;
1070  *) # Relative path.
1071    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073esac
1074
1075# Do not use `cd foo && pwd` to compute absolute paths, because
1076# the directories may not exist.
1077case `pwd` in
1078.) ac_abs_builddir="$ac_dir";;
1079*)
1080  case "$ac_dir" in
1081  .) ac_abs_builddir=`pwd`;;
1082  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084  esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_top_builddir=${ac_top_builddir}.;;
1088*)
1089  case ${ac_top_builddir}. in
1090  .) ac_abs_top_builddir=$ac_abs_builddir;;
1091  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093  esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_srcdir=$ac_srcdir;;
1097*)
1098  case $ac_srcdir in
1099  .) ac_abs_srcdir=$ac_abs_builddir;;
1100  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102  esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_top_srcdir=$ac_top_srcdir;;
1106*)
1107  case $ac_top_srcdir in
1108  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111  esac;;
1112esac
1113
1114    cd $ac_dir
1115    # Check for guested configure; otherwise get Cygnus style configure.
1116    if test -f $ac_srcdir/configure.gnu; then
1117      echo
1118      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119    elif test -f $ac_srcdir/configure; then
1120      echo
1121      $SHELL $ac_srcdir/configure  --help=recursive
1122    elif test -f $ac_srcdir/configure.ac ||
1123	   test -f $ac_srcdir/configure.in; then
1124      echo
1125      $ac_configure --help
1126    else
1127      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128    fi
1129    cd $ac_popdir
1130  done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135  cat <<\_ACEOF
1136
1137Copyright (C) 2003 Free Software Foundation, Inc.
1138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
1140_ACEOF
1141  exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
1147
1148It was created by $as_me, which was
1149generated by GNU Autoconf 2.59.  Invocation command line was
1150
1151  $ $0 $@
1152
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1168
1169/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1170/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1173/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1174/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1175/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182  IFS=$as_save_IFS
1183  test -z "$as_dir" && as_dir=.
1184  echo "PATH: $as_dir"
1185done
1186
1187} >&5
1188
1189cat >&5 <<_ACEOF
1190
1191
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
1201# Strip out --silent because we don't want to record it for future runs.
1202# Also quote any args containing shell meta-characters.
1203# Make two passes to allow for proper duplicate-argument suppression.
1204ac_configure_args=
1205ac_configure_args0=
1206ac_configure_args1=
1207ac_sep=
1208ac_must_keep_next=false
1209for ac_pass in 1 2
1210do
1211  for ac_arg
1212  do
1213    case $ac_arg in
1214    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216    | -silent | --silent | --silen | --sile | --sil)
1217      continue ;;
1218    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220    esac
1221    case $ac_pass in
1222    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223    2)
1224      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225      if test $ac_must_keep_next = true; then
1226	ac_must_keep_next=false # Got value, back to normal.
1227      else
1228	case $ac_arg in
1229	  *=* | --config-cache | -C | -disable-* | --disable-* \
1230	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232	  | -with-* | --with-* | -without-* | --without-* | --x)
1233	    case "$ac_configure_args0 " in
1234	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235	    esac
1236	    ;;
1237	  -* ) ac_must_keep_next=true ;;
1238	esac
1239      fi
1240      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241      # Get rid of the leading space.
1242      ac_sep=" "
1243      ;;
1244    esac
1245  done
1246done
1247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log.  We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256  # Save into config.log some information that might help in debugging.
1257  {
1258    echo
1259
1260    cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265    echo
1266    # The following way of writing the cache mishandles newlines in values,
1267{
1268  (set) 2>&1 |
1269    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270    *ac_space=\ *)
1271      sed -n \
1272	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274      ;;
1275    *)
1276      sed -n \
1277	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278      ;;
1279    esac;
1280}
1281    echo
1282
1283    cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288    echo
1289    for ac_var in $ac_subst_vars
1290    do
1291      eval ac_val=$`echo $ac_var`
1292      echo "$ac_var='"'"'$ac_val'"'"'"
1293    done | sort
1294    echo
1295
1296    if test -n "$ac_subst_files"; then
1297      cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302      echo
1303      for ac_var in $ac_subst_files
1304      do
1305	eval ac_val=$`echo $ac_var`
1306	echo "$ac_var='"'"'$ac_val'"'"'"
1307      done | sort
1308      echo
1309    fi
1310
1311    if test -s confdefs.h; then
1312      cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317      echo
1318      sed "/^$/d" confdefs.h | sort
1319      echo
1320    fi
1321    test "$ac_signal" != 0 &&
1322      echo "$as_me: caught signal $ac_signal"
1323    echo "$as_me: exit $exit_status"
1324  } >&5
1325  rm -f core *.core &&
1326  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327    exit $exit_status
1328     ' 0
1329for ac_signal in 1 2 13 15; do
1330  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369  if test "x$prefix" != xNONE; then
1370    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371  else
1372    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373  fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376  if test -r "$ac_site_file"; then
1377    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379    sed 's/^/| /' "$ac_site_file" >&5
1380    . "$ac_site_file"
1381  fi
1382done
1383
1384if test -r "$cache_file"; then
1385  # Some versions of bash will fail to source /dev/null (special
1386  # files actually), so we avoid doing that.
1387  if test -f "$cache_file"; then
1388    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390    case $cache_file in
1391      [\\/]* | ?:[\\/]* ) . $cache_file;;
1392      *)                      . ./$cache_file;;
1393    esac
1394  fi
1395else
1396  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398  >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
1405	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407  eval ac_new_set=\$ac_env_${ac_var}_set
1408  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409  eval ac_new_val="\$ac_env_${ac_var}_value"
1410  case $ac_old_set,$ac_new_set in
1411    set,)
1412      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414      ac_cache_corrupted=: ;;
1415    ,set)
1416      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418      ac_cache_corrupted=: ;;
1419    ,);;
1420    *)
1421      if test "x$ac_old_val" != "x$ac_new_val"; then
1422        # differences in whitespace do not lead to failure.
1423        ac_old_val_w=`echo x $ac_old_val`
1424        ac_new_val_w=`echo x $ac_new_val`
1425        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1426          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428          ac_cache_corrupted=:
1429        else
1430          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1431echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1432          eval $ac_var=\$ac_old_val
1433        fi
1434        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1435echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1436        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1437echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1438      fi;;
1439  esac
1440  # Pass precious variables to config.status.
1441  if test "$ac_new_set" = set; then
1442    case $ac_new_val in
1443    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445    *) ac_arg=$ac_var=$ac_new_val ;;
1446    esac
1447    case " $ac_configure_args " in
1448      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1449      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450    esac
1451  fi
1452done
1453if $ac_cache_corrupted; then
1454  { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1455echo "$as_me: error: in \`$ac_pwd':" >&2;}
1456  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1457echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1458  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1459echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1460   { (exit 1); exit 1; }; }
1461fi
1462
1463ac_ext=c
1464ac_cpp='$CPP $CPPFLAGS'
1465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492ac_aux_dir=
1493for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1494  if test -f $ac_dir/install-sh; then
1495    ac_aux_dir=$ac_dir
1496    ac_install_sh="$ac_aux_dir/install-sh -c"
1497    break
1498  elif test -f $ac_dir/install.sh; then
1499    ac_aux_dir=$ac_dir
1500    ac_install_sh="$ac_aux_dir/install.sh -c"
1501    break
1502  elif test -f $ac_dir/shtool; then
1503    ac_aux_dir=$ac_dir
1504    ac_install_sh="$ac_aux_dir/shtool install -c"
1505    break
1506  fi
1507done
1508if test -z "$ac_aux_dir"; then
1509  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1510echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1511   { (exit 1); exit 1; }; }
1512fi
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517# Make sure we can run config.sub.
1518$ac_config_sub sun4 >/dev/null 2>&1 ||
1519  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521   { (exit 1); exit 1; }; }
1522
1523echo "$as_me:$LINENO: checking build system type" >&5
1524echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525if test "${ac_cv_build+set}" = set; then
1526  echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528  ac_cv_build_alias=$build_alias
1529test -z "$ac_cv_build_alias" &&
1530  ac_cv_build_alias=`$ac_config_guess`
1531test -z "$ac_cv_build_alias" &&
1532  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534   { (exit 1); exit 1; }; }
1535ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538   { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542echo "${ECHO_T}$ac_cv_build" >&6
1543build=$ac_cv_build
1544build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking host system type" >&5
1550echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551if test "${ac_cv_host+set}" = set; then
1552  echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554  ac_cv_host_alias=$host_alias
1555test -z "$ac_cv_host_alias" &&
1556  ac_cv_host_alias=$ac_cv_build_alias
1557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560   { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564echo "${ECHO_T}$ac_cv_host" >&6
1565host=$ac_cv_host
1566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking target system type" >&5
1572echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573if test "${ac_cv_target+set}" = set; then
1574  echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576  ac_cv_target_alias=$target_alias
1577test "x$ac_cv_target_alias" = "x" &&
1578  ac_cv_target_alias=$ac_cv_host_alias
1579ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582   { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586echo "${ECHO_T}$ac_cv_target" >&6
1587target=$ac_cv_target
1588target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593# The aliases save the names the user supplied, while $host etc.
1594# will get canonicalized.
1595test -n "$target_alias" &&
1596  test "$program_prefix$program_suffix$program_transform_name" = \
1597    NONENONEs,x,x, &&
1598  program_prefix=${target_alias}-
1599ac_ext=c
1600ac_cpp='$CPP $CPPFLAGS'
1601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1603ac_compiler_gnu=$ac_cv_c_compiler_gnu
1604if test -n "$ac_tool_prefix"; then
1605  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1606set dummy ${ac_tool_prefix}gcc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_CC+set}" = set; then
1610  echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612  if test -n "$CC"; then
1613  ac_cv_prog_CC="$CC" # Let the user override the test.
1614else
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618  IFS=$as_save_IFS
1619  test -z "$as_dir" && as_dir=.
1620  for ac_exec_ext in '' $ac_executable_extensions; do
1621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624    break 2
1625  fi
1626done
1627done
1628
1629fi
1630fi
1631CC=$ac_cv_prog_CC
1632if test -n "$CC"; then
1633  echo "$as_me:$LINENO: result: $CC" >&5
1634echo "${ECHO_T}$CC" >&6
1635else
1636  echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638fi
1639
1640fi
1641if test -z "$ac_cv_prog_CC"; then
1642  ac_ct_CC=$CC
1643  # Extract the first word of "gcc", so it can be a program name with args.
1644set dummy gcc; ac_word=$2
1645echo "$as_me:$LINENO: checking for $ac_word" >&5
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648  echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650  if test -n "$ac_ct_CC"; then
1651  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656  IFS=$as_save_IFS
1657  test -z "$as_dir" && as_dir=.
1658  for ac_exec_ext in '' $ac_executable_extensions; do
1659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660    ac_cv_prog_ac_ct_CC="gcc"
1661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662    break 2
1663  fi
1664done
1665done
1666
1667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
1671  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
1674  echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
1676fi
1677
1678  CC=$ac_ct_CC
1679else
1680  CC="$ac_cv_prog_CC"
1681fi
1682
1683if test -z "$CC"; then
1684  if test -n "$ac_tool_prefix"; then
1685  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1686set dummy ${ac_tool_prefix}cc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_CC+set}" = set; then
1690  echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692  if test -n "$CC"; then
1693  ac_cv_prog_CC="$CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698  IFS=$as_save_IFS
1699  test -z "$as_dir" && as_dir=.
1700  for ac_exec_ext in '' $ac_executable_extensions; do
1701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702    ac_cv_prog_CC="${ac_tool_prefix}cc"
1703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704    break 2
1705  fi
1706done
1707done
1708
1709fi
1710fi
1711CC=$ac_cv_prog_CC
1712if test -n "$CC"; then
1713  echo "$as_me:$LINENO: result: $CC" >&5
1714echo "${ECHO_T}$CC" >&6
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720fi
1721if test -z "$ac_cv_prog_CC"; then
1722  ac_ct_CC=$CC
1723  # Extract the first word of "cc", so it can be a program name with args.
1724set dummy cc; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728  echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730  if test -n "$ac_ct_CC"; then
1731  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736  IFS=$as_save_IFS
1737  test -z "$as_dir" && as_dir=.
1738  for ac_exec_ext in '' $ac_executable_extensions; do
1739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740    ac_cv_prog_ac_ct_CC="cc"
1741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742    break 2
1743  fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754  echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758  CC=$ac_ct_CC
1759else
1760  CC="$ac_cv_prog_CC"
1761fi
1762
1763fi
1764if test -z "$CC"; then
1765  # Extract the first word of "cc", so it can be a program name with args.
1766set dummy cc; ac_word=$2
1767echo "$as_me:$LINENO: checking for $ac_word" >&5
1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_CC+set}" = set; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  if test -n "$CC"; then
1773  ac_cv_prog_CC="$CC" # Let the user override the test.
1774else
1775  ac_prog_rejected=no
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1784       ac_prog_rejected=yes
1785       continue
1786     fi
1787    ac_cv_prog_CC="cc"
1788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789    break 2
1790  fi
1791done
1792done
1793
1794if test $ac_prog_rejected = yes; then
1795  # We found a bogon in the path, so make sure we never use it.
1796  set dummy $ac_cv_prog_CC
1797  shift
1798  if test $# != 0; then
1799    # We chose a different compiler from the bogus one.
1800    # However, it has the same basename, so the bogon will be chosen
1801    # first if we set CC to just the basename; use the full file name.
1802    shift
1803    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804  fi
1805fi
1806fi
1807fi
1808CC=$ac_cv_prog_CC
1809if test -n "$CC"; then
1810  echo "$as_me:$LINENO: result: $CC" >&5
1811echo "${ECHO_T}$CC" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817fi
1818if test -z "$CC"; then
1819  if test -n "$ac_tool_prefix"; then
1820  for ac_prog in cl
1821  do
1822    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_CC+set}" = set; then
1827  echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829  if test -n "$CC"; then
1830  ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835  IFS=$as_save_IFS
1836  test -z "$as_dir" && as_dir=.
1837  for ac_exec_ext in '' $ac_executable_extensions; do
1838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841    break 2
1842  fi
1843done
1844done
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850  echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6
1852else
1853  echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857    test -n "$CC" && break
1858  done
1859fi
1860if test -z "$CC"; then
1861  ac_ct_CC=$CC
1862  for ac_prog in cl
1863do
1864  # Extract the first word of "$ac_prog", so it can be a program name with args.
1865set dummy $ac_prog; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  if test -n "$ac_ct_CC"; then
1872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877  IFS=$as_save_IFS
1878  test -z "$as_dir" && as_dir=.
1879  for ac_exec_ext in '' $ac_executable_extensions; do
1880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881    ac_cv_prog_ac_ct_CC="$ac_prog"
1882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883    break 2
1884  fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895  echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899  test -n "$ac_ct_CC" && break
1900done
1901
1902  CC=$ac_ct_CC
1903fi
1904
1905fi
1906
1907
1908test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1909echo "$as_me: error: in \`$ac_pwd':" >&2;}
1910{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1911See \`config.log' for more details." >&5
1912echo "$as_me: error: no acceptable C compiler found in \$PATH
1913See \`config.log' for more details." >&2;}
1914   { (exit 1); exit 1; }; }; }
1915
1916# Provide some information about the compiler.
1917echo "$as_me:$LINENO:" \
1918     "checking for C compiler version" >&5
1919ac_compiler=`set X $ac_compile; echo $2`
1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921  (eval $ac_compiler --version </dev/null >&5) 2>&5
1922  ac_status=$?
1923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924  (exit $ac_status); }
1925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926  (eval $ac_compiler -v </dev/null >&5) 2>&5
1927  ac_status=$?
1928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929  (exit $ac_status); }
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931  (eval $ac_compiler -V </dev/null >&5) 2>&5
1932  ac_status=$?
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); }
1935
1936cat >conftest.$ac_ext <<_ACEOF
1937/* confdefs.h.  */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h.  */
1942
1943int
1944main ()
1945{
1946
1947  ;
1948  return 0;
1949}
1950_ACEOF
1951ac_clean_files_save=$ac_clean_files
1952ac_clean_files="$ac_clean_files a.out a.exe b.out"
1953# Try to create an executable without -o first, disregard a.out.
1954# It will help us diagnose broken compilers, and finding out an intuition
1955# of exeext.
1956echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1958ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960  (eval $ac_link_default) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }; then
1964  # Find the output, starting from the most likely.  This scheme is
1965# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966# resort.
1967
1968# Be careful to initialize this variable, since it used to be cached.
1969# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970ac_cv_exeext=
1971# b.out is created by i960 compilers.
1972for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973do
1974  test -f "$ac_file" || continue
1975  case $ac_file in
1976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977	;;
1978    conftest.$ac_ext )
1979	# This is the source file.
1980	;;
1981    [ab].out )
1982	# We found the default executable, but exeext='' is most
1983	# certainly right.
1984	break;;
1985    *.* )
1986	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987	# FIXME: I believe we export ac_cv_exeext for Libtool,
1988	# but it would be cool to find out if it's true.  Does anybody
1989	# maintain Libtool? --akim.
1990	export ac_cv_exeext
1991	break;;
1992    * )
1993	break;;
1994  esac
1995done
1996else
1997  echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003See \`config.log' for more details." >&5
2004echo "$as_me: error: C compiler cannot create executables
2005See \`config.log' for more details." >&2;}
2006   { (exit 77); exit 77; }; }; }
2007fi
2008
2009ac_exeext=$ac_cv_exeext
2010echo "$as_me:$LINENO: result: $ac_file" >&5
2011echo "${ECHO_T}$ac_file" >&6
2012
2013# Check the compiler produces executables we can run.  If not, either
2014# the compiler is broken, or we cross compile.
2015echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2016echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2017# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2018# If not cross compiling, check that we can run a simple program.
2019if test "$cross_compiling" != yes; then
2020  if { ac_try='./$ac_file'
2021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022  (eval $ac_try) 2>&5
2023  ac_status=$?
2024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025  (exit $ac_status); }; }; then
2026    cross_compiling=no
2027  else
2028    if test "$cross_compiling" = maybe; then
2029	cross_compiling=yes
2030    else
2031	{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2032echo "$as_me: error: in \`$ac_pwd':" >&2;}
2033{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&5
2036echo "$as_me: error: cannot run C compiled programs.
2037If you meant to cross compile, use \`--host'.
2038See \`config.log' for more details." >&2;}
2039   { (exit 1); exit 1; }; }; }
2040    fi
2041  fi
2042fi
2043echo "$as_me:$LINENO: result: yes" >&5
2044echo "${ECHO_T}yes" >&6
2045
2046rm -f a.out a.exe conftest$ac_cv_exeext b.out
2047ac_clean_files=$ac_clean_files_save
2048# Check the compiler produces executables we can run.  If not, either
2049# the compiler is broken, or we cross compile.
2050echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2051echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2052echo "$as_me:$LINENO: result: $cross_compiling" >&5
2053echo "${ECHO_T}$cross_compiling" >&6
2054
2055echo "$as_me:$LINENO: checking for suffix of executables" >&5
2056echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2058  (eval $ac_link) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; then
2062  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2063# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2064# work properly (i.e., refer to `conftest.exe'), while it won't with
2065# `rm'.
2066for ac_file in conftest.exe conftest conftest.*; do
2067  test -f "$ac_file" || continue
2068  case $ac_file in
2069    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2070    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071	  export ac_cv_exeext
2072	  break;;
2073    * ) break;;
2074  esac
2075done
2076else
2077  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2082See \`config.log' for more details." >&2;}
2083   { (exit 1); exit 1; }; }; }
2084fi
2085
2086rm -f conftest$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2088echo "${ECHO_T}$ac_cv_exeext" >&6
2089
2090rm -f conftest.$ac_ext
2091EXEEXT=$ac_cv_exeext
2092ac_exeext=$EXEEXT
2093echo "$as_me:$LINENO: checking for suffix of object files" >&5
2094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2095if test "${ac_cv_objext+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  cat >conftest.$ac_ext <<_ACEOF
2099/* confdefs.h.  */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h.  */
2104
2105int
2106main ()
2107{
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113rm -f conftest.o conftest.obj
2114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115  (eval $ac_compile) 2>&5
2116  ac_status=$?
2117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  (exit $ac_status); }; then
2119  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2120  case $ac_file in
2121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2122    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2123       break;;
2124  esac
2125done
2126else
2127  echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
2130{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&2;}
2136   { (exit 1); exit 1; }; }; }
2137fi
2138
2139rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142echo "${ECHO_T}$ac_cv_objext" >&6
2143OBJEXT=$ac_cv_objext
2144ac_objext=$OBJEXT
2145echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148  echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150  cat >conftest.$ac_ext <<_ACEOF
2151/* confdefs.h.  */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h.  */
2156
2157int
2158main ()
2159{
2160#ifndef __GNUC__
2161       choke me
2162#endif
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170  (eval $ac_compile) 2>conftest.er1
2171  ac_status=$?
2172  grep -v '^ *+' conftest.er1 >conftest.err
2173  rm -f conftest.er1
2174  cat conftest.err >&5
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); } &&
2177	 { ac_try='test -z "$ac_c_werror_flag"
2178			 || test ! -s conftest.err'
2179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180  (eval $ac_try) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; } &&
2184	 { ac_try='test -s conftest.$ac_objext'
2185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186  (eval $ac_try) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }; }; then
2190  ac_compiler_gnu=yes
2191else
2192  echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210  echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212  cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h.  */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h.  */
2218
2219int
2220main ()
2221{
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229  (eval $ac_compile) 2>conftest.er1
2230  ac_status=$?
2231  grep -v '^ *+' conftest.er1 >conftest.err
2232  rm -f conftest.er1
2233  cat conftest.err >&5
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); } &&
2236	 { ac_try='test -z "$ac_c_werror_flag"
2237			 || test ! -s conftest.err'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; } &&
2243	 { ac_try='test -s conftest.$ac_objext'
2244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245  (eval $ac_try) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; }; then
2249  ac_cv_prog_cc_g=yes
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254ac_cv_prog_cc_g=no
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260if test "$ac_test_CFLAGS" = set; then
2261  CFLAGS=$ac_save_CFLAGS
2262elif test $ac_cv_prog_cc_g = yes; then
2263  if test "$GCC" = yes; then
2264    CFLAGS="-g -O2"
2265  else
2266    CFLAGS="-g"
2267  fi
2268else
2269  if test "$GCC" = yes; then
2270    CFLAGS="-O2"
2271  else
2272    CFLAGS=
2273  fi
2274fi
2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h.  */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h.  */
2288#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296     char **p;
2297     int i;
2298{
2299  return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303  char *s;
2304  va_list v;
2305  va_start (v,p);
2306  s = g (p, va_arg (v,int));
2307  va_end (v);
2308  return s;
2309}
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2312   function prototypes and stuff, but not '\xHH' hex character constants.
2313   These don't provoke an error unfortunately, instead are silently treated
2314   as 'x'.  The following induces an error, until -std1 is added to get
2315   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2316   array size at least.  It's necessary to write '\x00'==0 to get something
2317   that's true only with -std1.  */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX			-qlanglvl=ansi
2337# Ultrix and OSF/1	-std1
2338# HP-UX 10.20 and later	-Ae
2339# HP-UX older versions	-Aa -D_HPUX_SOURCE
2340# SVR4			-Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343  CC="$ac_save_CC $ac_arg"
2344  rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>conftest.er1
2347  ac_status=$?
2348  grep -v '^ *+' conftest.er1 >conftest.err
2349  rm -f conftest.er1
2350  cat conftest.err >&5
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); } &&
2353	 { ac_try='test -z "$ac_c_werror_flag"
2354			 || test ! -s conftest.err'
2355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356  (eval $ac_try) 2>&5
2357  ac_status=$?
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); }; } &&
2360	 { ac_try='test -s conftest.$ac_objext'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; }; then
2366  ac_cv_prog_cc_stdc=$ac_arg
2367break
2368else
2369  echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372fi
2373rm -f conftest.err conftest.$ac_objext
2374done
2375rm -f conftest.$ac_ext conftest.$ac_objext
2376CC=$ac_save_CC
2377
2378fi
2379
2380case "x$ac_cv_prog_cc_stdc" in
2381  x|xno)
2382    echo "$as_me:$LINENO: result: none needed" >&5
2383echo "${ECHO_T}none needed" >&6 ;;
2384  *)
2385    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387    CC="$CC $ac_cv_prog_cc_stdc" ;;
2388esac
2389
2390# Some people use a C++ compiler to compile C.  Since we use `exit',
2391# in C++ we need to declare it.  In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396  choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408	 { ac_try='test -z "$ac_c_werror_flag"
2409			 || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415	 { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  for ac_declaration in \
2422   '' \
2423   'extern "C" void std::exit (int) throw (); using std::exit;' \
2424   'extern "C" void std::exit (int); using std::exit;' \
2425   'extern "C" void exit (int) throw ();' \
2426   'extern "C" void exit (int);' \
2427   'void exit (int);'
2428do
2429  cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h.  */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h.  */
2435$ac_declaration
2436#include <stdlib.h>
2437int
2438main ()
2439{
2440exit (42);
2441  ;
2442  return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447  (eval $ac_compile) 2>conftest.er1
2448  ac_status=$?
2449  grep -v '^ *+' conftest.er1 >conftest.err
2450  rm -f conftest.er1
2451  cat conftest.err >&5
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); } &&
2454	 { ac_try='test -z "$ac_c_werror_flag"
2455			 || test ! -s conftest.err'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; } &&
2461	 { ac_try='test -s conftest.$ac_objext'
2462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463  (eval $ac_try) 2>&5
2464  ac_status=$?
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; }; then
2467  :
2468else
2469  echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472continue
2473fi
2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475  cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h.  */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h.  */
2481$ac_declaration
2482int
2483main ()
2484{
2485exit (42);
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492  (eval $ac_compile) 2>conftest.er1
2493  ac_status=$?
2494  grep -v '^ *+' conftest.er1 >conftest.err
2495  rm -f conftest.er1
2496  cat conftest.err >&5
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); } &&
2499	 { ac_try='test -z "$ac_c_werror_flag"
2500			 || test ! -s conftest.err'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; } &&
2506	 { ac_try='test -s conftest.$ac_objext'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; }; then
2512  break
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520rm -f conftest*
2521if test -n "$ac_declaration"; then
2522  echo '#ifdef __cplusplus' >>confdefs.h
2523  echo $ac_declaration      >>confdefs.h
2524  echo '#endif'             >>confdefs.h
2525fi
2526
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540echo "$as_me:$LINENO: checking for library containing strerror" >&5
2541echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2542if test "${ac_cv_search_strerror+set}" = set; then
2543  echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545  ac_func_search_save_LIBS=$LIBS
2546ac_cv_search_strerror=no
2547cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h.  */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h.  */
2553
2554/* Override any gcc2 internal prototype to avoid an error.  */
2555#ifdef __cplusplus
2556extern "C"
2557#endif
2558/* We use char because int might match the return type of a gcc2
2559   builtin and then its argument prototype would still apply.  */
2560char strerror ();
2561int
2562main ()
2563{
2564strerror ();
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext conftest$ac_exeext
2570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571  (eval $ac_link) 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578	 { ac_try='test -z "$ac_c_werror_flag"
2579			 || test ! -s conftest.err'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; } &&
2585	 { ac_try='test -s conftest$ac_exeext'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  ac_cv_search_strerror="none required"
2592else
2593  echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596fi
2597rm -f conftest.err conftest.$ac_objext \
2598      conftest$ac_exeext conftest.$ac_ext
2599if test "$ac_cv_search_strerror" = no; then
2600  for ac_lib in cposix; do
2601    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2602    cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h.  */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h.  */
2608
2609/* Override any gcc2 internal prototype to avoid an error.  */
2610#ifdef __cplusplus
2611extern "C"
2612#endif
2613/* We use char because int might match the return type of a gcc2
2614   builtin and then its argument prototype would still apply.  */
2615char strerror ();
2616int
2617main ()
2618{
2619strerror ();
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624rm -f conftest.$ac_objext conftest$ac_exeext
2625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626  (eval $ac_link) 2>conftest.er1
2627  ac_status=$?
2628  grep -v '^ *+' conftest.er1 >conftest.err
2629  rm -f conftest.er1
2630  cat conftest.err >&5
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633	 { ac_try='test -z "$ac_c_werror_flag"
2634			 || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640	 { ac_try='test -s conftest$ac_exeext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  ac_cv_search_strerror="-l$ac_lib"
2647break
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652fi
2653rm -f conftest.err conftest.$ac_objext \
2654      conftest$ac_exeext conftest.$ac_ext
2655  done
2656fi
2657LIBS=$ac_func_search_save_LIBS
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2660echo "${ECHO_T}$ac_cv_search_strerror" >&6
2661if test "$ac_cv_search_strerror" != no; then
2662  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2663
2664fi
2665
2666
2667# We currently only use the version number for the name of any shared
2668# library.  For user convenience, we always use the same version
2669# number that BFD is using.
2670BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671
2672am__api_version="1.9"
2673# Find a good install program.  We prefer a C program (faster),
2674# so one script is as good as another.  But avoid the broken or
2675# incompatible versions:
2676# SysV /etc/install, /usr/sbin/install
2677# SunOS /usr/etc/install
2678# IRIX /sbin/install
2679# AIX /bin/install
2680# AmigaOS /C/install, which installs bootblocks on floppy discs
2681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684# OS/2's system install, which has a completely different semantic
2685# ./install, which can be erroneously created by make from ./install.sh.
2686# Reject install programs that cannot install multiple files.
2687echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2688echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2689if test -z "$INSTALL"; then
2690if test "${ac_cv_path_install+set}" = set; then
2691  echo $ECHO_N "(cached) $ECHO_C" >&6
2692else
2693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698  # Account for people who put trailing slashes in PATH elements.
2699case $as_dir/ in
2700  ./ | .// | /cC/* | \
2701  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2703  /usr/ucb/* ) ;;
2704  *)
2705    # OSF1 and SCO ODT 3.0 have their own names for install.
2706    # Don't use installbsd from OSF since it installs stuff as root
2707    # by default.
2708    for ac_prog in ginstall scoinst install; do
2709      for ac_exec_ext in '' $ac_executable_extensions; do
2710	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2711	  if test $ac_prog = install &&
2712	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713	    # AIX install.  It has an incompatible calling convention.
2714	    :
2715	  elif test $ac_prog = install &&
2716	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717	    # program-specific install script used by HP pwplus--don't use.
2718	    :
2719	  else
2720	    rm -rf conftest.one conftest.two conftest.dir
2721	    echo one > conftest.one
2722	    echo two > conftest.two
2723	    mkdir conftest.dir
2724	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725	      test -s conftest.one && test -s conftest.two &&
2726	      test -s conftest.dir/conftest.one &&
2727	      test -s conftest.dir/conftest.two
2728	    then
2729	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730	      break 3
2731	    fi
2732	  fi
2733	fi
2734      done
2735    done
2736    ;;
2737esac
2738done
2739
2740rm -rf conftest.one conftest.two conftest.dir
2741
2742fi
2743  if test "${ac_cv_path_install+set}" = set; then
2744    INSTALL=$ac_cv_path_install
2745  else
2746    # As a last resort, use the slow shell script.  Don't cache a
2747    # value for INSTALL within a source directory, because that will
2748    # break other packages using the cache if that directory is
2749    # removed, or if the value is a relative name.
2750    INSTALL=$ac_install_sh
2751  fi
2752fi
2753echo "$as_me:$LINENO: result: $INSTALL" >&5
2754echo "${ECHO_T}$INSTALL" >&6
2755
2756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757# It thinks the first close brace ends the variable substitution.
2758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
2760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
2764echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2765echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2766# Just in case
2767sleep 1
2768echo timestamp > conftest.file
2769# Do `set' in a subshell so we don't clobber the current shell's
2770# arguments.  Must try -L first in case configure is actually a
2771# symlink; some systems play weird games with the mod time of symlinks
2772# (eg FreeBSD returns the mod time of the symlink's containing
2773# directory).
2774if (
2775   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2776   if test "$*" = "X"; then
2777      # -L didn't work.
2778      set X `ls -t $srcdir/configure conftest.file`
2779   fi
2780   rm -f conftest.file
2781   if test "$*" != "X $srcdir/configure conftest.file" \
2782      && test "$*" != "X conftest.file $srcdir/configure"; then
2783
2784      # If neither matched, then we have a broken ls.  This can happen
2785      # if, for instance, CONFIG_SHELL is bash and it inherits a
2786      # broken ls alias from the environment.  This has actually
2787      # happened.  Such a system could not be considered "sane".
2788      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2789alias in your environment" >&5
2790echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2791alias in your environment" >&2;}
2792   { (exit 1); exit 1; }; }
2793   fi
2794
2795   test "$2" = conftest.file
2796   )
2797then
2798   # Ok.
2799   :
2800else
2801   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2802Check your system clock" >&5
2803echo "$as_me: error: newly created file is older than distributed files!
2804Check your system clock" >&2;}
2805   { (exit 1); exit 1; }; }
2806fi
2807echo "$as_me:$LINENO: result: yes" >&5
2808echo "${ECHO_T}yes" >&6
2809test "$program_prefix" != NONE &&
2810  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2811# Use a double $ so make ignores it.
2812test "$program_suffix" != NONE &&
2813  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2814# Double any \ or $.  echo might interpret backslashes.
2815# By default was `s,x,x', remove it if useless.
2816cat <<\_ACEOF >conftest.sed
2817s/[\\$]/&&/g;s/;s,x,x,$//
2818_ACEOF
2819program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2820rm conftest.sed
2821
2822# expand $ac_aux_dir to an absolute path
2823am_aux_dir=`cd $ac_aux_dir && pwd`
2824
2825test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2826# Use eval to expand $SHELL
2827if eval "$MISSING --run true"; then
2828  am_missing_run="$MISSING --run "
2829else
2830  am_missing_run=
2831  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2832echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833fi
2834
2835if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2836  # We used to keeping the `.' as first argument, in order to
2837  # allow $(mkdir_p) to be used without argument.  As in
2838  #   $(mkdir_p) $(somedir)
2839  # where $(somedir) is conditionally defined.  However this is wrong
2840  # for two reasons:
2841  #  1. if the package is installed by a user who cannot write `.'
2842  #     make install will fail,
2843  #  2. the above comment should most certainly read
2844  #     $(mkdir_p) $(DESTDIR)$(somedir)
2845  #     so it does not work when $(somedir) is undefined and
2846  #     $(DESTDIR) is not.
2847  #  To support the latter case, we have to write
2848  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2849  #  so the `.' trick is pointless.
2850  mkdir_p='mkdir -p --'
2851else
2852  # On NextStep and OpenStep, the `mkdir' command does not
2853  # recognize any option.  It will interpret all options as
2854  # directories to create, and then abort because `.' already
2855  # exists.
2856  for d in ./-p ./--version;
2857  do
2858    test -d $d && rmdir $d
2859  done
2860  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2861  if test -f "$ac_aux_dir/mkinstalldirs"; then
2862    mkdir_p='$(mkinstalldirs)'
2863  else
2864    mkdir_p='$(install_sh) -d'
2865  fi
2866fi
2867
2868for ac_prog in gawk mawk nawk awk
2869do
2870  # Extract the first word of "$ac_prog", so it can be a program name with args.
2871set dummy $ac_prog; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_AWK+set}" = set; then
2875  echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877  if test -n "$AWK"; then
2878  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885  for ac_exec_ext in '' $ac_executable_extensions; do
2886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_AWK="$ac_prog"
2888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892done
2893
2894fi
2895fi
2896AWK=$ac_cv_prog_AWK
2897if test -n "$AWK"; then
2898  echo "$as_me:$LINENO: result: $AWK" >&5
2899echo "${ECHO_T}$AWK" >&6
2900else
2901  echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905  test -n "$AWK" && break
2906done
2907
2908echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2910set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2911if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2912  echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914  cat >conftest.make <<\_ACEOF
2915all:
2916	@echo 'ac_maketemp="$(MAKE)"'
2917_ACEOF
2918# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2919eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2920if test -n "$ac_maketemp"; then
2921  eval ac_cv_prog_make_${ac_make}_set=yes
2922else
2923  eval ac_cv_prog_make_${ac_make}_set=no
2924fi
2925rm -f conftest.make
2926fi
2927if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2928  echo "$as_me:$LINENO: result: yes" >&5
2929echo "${ECHO_T}yes" >&6
2930  SET_MAKE=
2931else
2932  echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934  SET_MAKE="MAKE=${MAKE-make}"
2935fi
2936
2937rm -rf .tst 2>/dev/null
2938mkdir .tst 2>/dev/null
2939if test -d .tst; then
2940  am__leading_dot=.
2941else
2942  am__leading_dot=_
2943fi
2944rmdir .tst 2>/dev/null
2945
2946DEPDIR="${am__leading_dot}deps"
2947
2948          ac_config_commands="$ac_config_commands depfiles"
2949
2950
2951am_make=${MAKE-make}
2952cat > confinc << 'END'
2953am__doit:
2954	@echo done
2955.PHONY: am__doit
2956END
2957# If we don't find an include directive, just comment out the code.
2958echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2959echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2960am__include="#"
2961am__quote=
2962_am_result=none
2963# First try GNU make style include.
2964echo "include confinc" > confmf
2965# We grep out `Entering directory' and `Leaving directory'
2966# messages which can occur if `w' ends up in MAKEFLAGS.
2967# In particular we don't look at `^make:' because GNU make might
2968# be invoked under some other name (usually "gmake"), in which
2969# case it prints its new name instead of `make'.
2970if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2971   am__include=include
2972   am__quote=
2973   _am_result=GNU
2974fi
2975# Now try BSD make style include.
2976if test "$am__include" = "#"; then
2977   echo '.include "confinc"' > confmf
2978   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2979      am__include=.include
2980      am__quote="\""
2981      _am_result=BSD
2982   fi
2983fi
2984
2985
2986echo "$as_me:$LINENO: result: $_am_result" >&5
2987echo "${ECHO_T}$_am_result" >&6
2988rm -f confinc confmf
2989
2990# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2991if test "${enable_dependency_tracking+set}" = set; then
2992  enableval="$enable_dependency_tracking"
2993
2994fi;
2995if test "x$enable_dependency_tracking" != xno; then
2996  am_depcomp="$ac_aux_dir/depcomp"
2997  AMDEPBACKSLASH='\'
2998fi
2999
3000
3001if test "x$enable_dependency_tracking" != xno; then
3002  AMDEP_TRUE=
3003  AMDEP_FALSE='#'
3004else
3005  AMDEP_TRUE='#'
3006  AMDEP_FALSE=
3007fi
3008
3009
3010
3011# test to see if srcdir already configured
3012if test "`cd $srcdir && pwd`" != "`pwd`" &&
3013   test -f $srcdir/config.status; then
3014  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3015echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3016   { (exit 1); exit 1; }; }
3017fi
3018
3019# test whether we have cygpath
3020if test -z "$CYGPATH_W"; then
3021  if (cygpath --version) >/dev/null 2>/dev/null; then
3022    CYGPATH_W='cygpath -w'
3023  else
3024    CYGPATH_W=echo
3025  fi
3026fi
3027
3028
3029# Define the identity of the package.
3030 PACKAGE=opcodes
3031 VERSION=${BFD_VERSION}
3032
3033
3034cat >>confdefs.h <<_ACEOF
3035#define PACKAGE "$PACKAGE"
3036_ACEOF
3037
3038
3039cat >>confdefs.h <<_ACEOF
3040#define VERSION "$VERSION"
3041_ACEOF
3042
3043# Some tools Automake needs.
3044
3045ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3046
3047
3048AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3049
3050
3051AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3052
3053
3054AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3055
3056
3057MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058
3059install_sh=${install_sh-"$am_aux_dir/install-sh"}
3060
3061# Installed binaries are usually stripped using `strip' when the user
3062# run `make install-strip'.  However `strip' might not be the right
3063# tool to use in cross-compilation environments, therefore Automake
3064# will honor the `STRIP' environment variable to overrule this program.
3065if test "$cross_compiling" != no; then
3066  if test -n "$ac_tool_prefix"; then
3067  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068set dummy ${ac_tool_prefix}strip; ac_word=$2
3069echo "$as_me:$LINENO: checking for $ac_word" >&5
3070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3071if test "${ac_cv_prog_STRIP+set}" = set; then
3072  echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074  if test -n "$STRIP"; then
3075  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082  for ac_exec_ext in '' $ac_executable_extensions; do
3083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089done
3090
3091fi
3092fi
3093STRIP=$ac_cv_prog_STRIP
3094if test -n "$STRIP"; then
3095  echo "$as_me:$LINENO: result: $STRIP" >&5
3096echo "${ECHO_T}$STRIP" >&6
3097else
3098  echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100fi
3101
3102fi
3103if test -z "$ac_cv_prog_STRIP"; then
3104  ac_ct_STRIP=$STRIP
3105  # Extract the first word of "strip", so it can be a program name with args.
3106set dummy strip; ac_word=$2
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3110  echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112  if test -n "$ac_ct_STRIP"; then
3113  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120  for ac_exec_ext in '' $ac_executable_extensions; do
3121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_STRIP="strip"
3123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127done
3128
3129  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3130fi
3131fi
3132ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3133if test -n "$ac_ct_STRIP"; then
3134  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3135echo "${ECHO_T}$ac_ct_STRIP" >&6
3136else
3137  echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139fi
3140
3141  STRIP=$ac_ct_STRIP
3142else
3143  STRIP="$ac_cv_prog_STRIP"
3144fi
3145
3146fi
3147INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3148
3149# We need awk for the "check" target.  The system "awk" is bad on
3150# some platforms.
3151# Always define AMTAR for backward compatibility.
3152
3153AMTAR=${AMTAR-"${am_missing_run}tar"}
3154
3155am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3156
3157
3158
3159
3160depcc="$CC"   am_compiler_list=
3161
3162echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3163echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3164if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3168  # We make a subdir and do the tests there.  Otherwise we can end up
3169  # making bogus files that we don't know about and never remove.  For
3170  # instance it was reported that on HP-UX the gcc test will end up
3171  # making a dummy file named `D' -- because `-MD' means `put the output
3172  # in D'.
3173  mkdir conftest.dir
3174  # Copy depcomp to subdir because otherwise we won't find it if we're
3175  # using a relative directory.
3176  cp "$am_depcomp" conftest.dir
3177  cd conftest.dir
3178  # We will build objects and dependencies in a subdirectory because
3179  # it helps to detect inapplicable dependency modes.  For instance
3180  # both Tru64's cc and ICC support -MD to output dependencies as a
3181  # side effect of compilation, but ICC will put the dependencies in
3182  # the current directory while Tru64 will put them in the object
3183  # directory.
3184  mkdir sub
3185
3186  am_cv_CC_dependencies_compiler_type=none
3187  if test "$am_compiler_list" = ""; then
3188     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189  fi
3190  for depmode in $am_compiler_list; do
3191    # Setup a source with many dependencies, because some compilers
3192    # like to wrap large dependency lists on column 80 (with \), and
3193    # we should not choose a depcomp mode which is confused by this.
3194    #
3195    # We need to recreate these files for each test, as the compiler may
3196    # overwrite some of them when testing with obscure command lines.
3197    # This happens at least with the AIX C compiler.
3198    : > sub/conftest.c
3199    for i in 1 2 3 4 5 6; do
3200      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3201      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3202      # Solaris 8's {/usr,}/bin/sh.
3203      touch sub/conftst$i.h
3204    done
3205    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206
3207    case $depmode in
3208    nosideeffect)
3209      # after this tag, mechanisms are not by side-effect, so they'll
3210      # only be used when explicitly requested
3211      if test "x$enable_dependency_tracking" = xyes; then
3212	continue
3213      else
3214	break
3215      fi
3216      ;;
3217    none) break ;;
3218    esac
3219    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3220    # mode.  It turns out that the SunPro C++ compiler does not properly
3221    # handle `-M -o', and we need to detect this.
3222    if depmode=$depmode \
3223       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3224       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3225       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3226         >/dev/null 2>conftest.err &&
3227       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3228       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3229       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3230      # icc doesn't choke on unknown options, it will just issue warnings
3231      # or remarks (even with -Werror).  So we grep stderr for any message
3232      # that says an option was ignored or not supported.
3233      # When given -MP, icc 7.0 and 7.1 complain thusly:
3234      #   icc: Command line warning: ignoring option '-M'; no argument required
3235      # The diagnosis changed in icc 8.0:
3236      #   icc: Command line remark: option '-MP' not supported
3237      if (grep 'ignoring option' conftest.err ||
3238          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3239        am_cv_CC_dependencies_compiler_type=$depmode
3240        break
3241      fi
3242    fi
3243  done
3244
3245  cd ..
3246  rm -rf conftest.dir
3247else
3248  am_cv_CC_dependencies_compiler_type=none
3249fi
3250
3251fi
3252echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3253echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3254CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3255
3256
3257
3258if
3259  test "x$enable_dependency_tracking" != xno \
3260  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3261  am__fastdepCC_TRUE=
3262  am__fastdepCC_FALSE='#'
3263else
3264  am__fastdepCC_TRUE='#'
3265  am__fastdepCC_FALSE=
3266fi
3267
3268
3269
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_CC+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  if test -n "$CC"; then
3285  ac_cv_prog_CC="$CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
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_CC="${ac_tool_prefix}gcc"
3295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299done
3300
3301fi
3302fi
3303CC=$ac_cv_prog_CC
3304if test -n "$CC"; then
3305  echo "$as_me:$LINENO: result: $CC" >&5
3306echo "${ECHO_T}$CC" >&6
3307else
3308  echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
3312fi
3313if test -z "$ac_cv_prog_CC"; then
3314  ac_ct_CC=$CC
3315  # Extract the first word of "gcc", so it can be a program name with args.
3316set dummy gcc; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  if test -n "$ac_ct_CC"; then
3323  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330  for ac_exec_ext in '' $ac_executable_extensions; do
3331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_ac_ct_CC="gcc"
3333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337done
3338
3339fi
3340fi
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3344echo "${ECHO_T}$ac_ct_CC" >&6
3345else
3346  echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
3349
3350  CC=$ac_ct_CC
3351else
3352  CC="$ac_cv_prog_CC"
3353fi
3354
3355if test -z "$CC"; then
3356  if test -n "$ac_tool_prefix"; then
3357  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358set dummy ${ac_tool_prefix}cc; ac_word=$2
3359echo "$as_me:$LINENO: checking for $ac_word" >&5
3360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361if test "${ac_cv_prog_CC+set}" = set; then
3362  echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364  if test -n "$CC"; then
3365  ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372  for ac_exec_ext in '' $ac_executable_extensions; do
3373  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374    ac_cv_prog_CC="${ac_tool_prefix}cc"
3375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379done
3380
3381fi
3382fi
3383CC=$ac_cv_prog_CC
3384if test -n "$CC"; then
3385  echo "$as_me:$LINENO: result: $CC" >&5
3386echo "${ECHO_T}$CC" >&6
3387else
3388  echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
3390fi
3391
3392fi
3393if test -z "$ac_cv_prog_CC"; then
3394  ac_ct_CC=$CC
3395  # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
3397echo "$as_me:$LINENO: checking for $ac_word" >&5
3398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3400  echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402  if test -n "$ac_ct_CC"; then
3403  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404else
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410  for ac_exec_ext in '' $ac_executable_extensions; do
3411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    ac_cv_prog_ac_ct_CC="cc"
3413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414    break 2
3415  fi
3416done
3417done
3418
3419fi
3420fi
3421ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422if test -n "$ac_ct_CC"; then
3423  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3424echo "${ECHO_T}$ac_ct_CC" >&6
3425else
3426  echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428fi
3429
3430  CC=$ac_ct_CC
3431else
3432  CC="$ac_cv_prog_CC"
3433fi
3434
3435fi
3436if test -z "$CC"; then
3437  # Extract the first word of "cc", so it can be a program name with args.
3438set dummy cc; ac_word=$2
3439echo "$as_me:$LINENO: checking for $ac_word" >&5
3440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441if test "${ac_cv_prog_CC+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444  if test -n "$CC"; then
3445  ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447  ac_prog_rejected=no
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451  IFS=$as_save_IFS
3452  test -z "$as_dir" && as_dir=.
3453  for ac_exec_ext in '' $ac_executable_extensions; do
3454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456       ac_prog_rejected=yes
3457       continue
3458     fi
3459    ac_cv_prog_CC="cc"
3460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461    break 2
3462  fi
3463done
3464done
3465
3466if test $ac_prog_rejected = yes; then
3467  # We found a bogon in the path, so make sure we never use it.
3468  set dummy $ac_cv_prog_CC
3469  shift
3470  if test $# != 0; then
3471    # We chose a different compiler from the bogus one.
3472    # However, it has the same basename, so the bogon will be chosen
3473    # first if we set CC to just the basename; use the full file name.
3474    shift
3475    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476  fi
3477fi
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  echo "$as_me:$LINENO: result: $CC" >&5
3483echo "${ECHO_T}$CC" >&6
3484else
3485  echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
3487fi
3488
3489fi
3490if test -z "$CC"; then
3491  if test -n "$ac_tool_prefix"; then
3492  for ac_prog in cl
3493  do
3494    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496echo "$as_me:$LINENO: checking for $ac_word" >&5
3497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498if test "${ac_cv_prog_CC+set}" = set; then
3499  echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501  if test -n "$CC"; then
3502  ac_cv_prog_CC="$CC" # Let the user override the test.
3503else
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509  for ac_exec_ext in '' $ac_executable_extensions; do
3510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516done
3517
3518fi
3519fi
3520CC=$ac_cv_prog_CC
3521if test -n "$CC"; then
3522  echo "$as_me:$LINENO: result: $CC" >&5
3523echo "${ECHO_T}$CC" >&6
3524else
3525  echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527fi
3528
3529    test -n "$CC" && break
3530  done
3531fi
3532if test -z "$CC"; then
3533  ac_ct_CC=$CC
3534  for ac_prog in cl
3535do
3536  # Extract the first word of "$ac_prog", so it can be a program name with args.
3537set dummy $ac_prog; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3541  echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543  if test -n "$ac_ct_CC"; then
3544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551  for ac_exec_ext in '' $ac_executable_extensions; do
3552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553    ac_cv_prog_ac_ct_CC="$ac_prog"
3554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558done
3559
3560fi
3561fi
3562ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563if test -n "$ac_ct_CC"; then
3564  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3565echo "${ECHO_T}$ac_ct_CC" >&6
3566else
3567  echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570
3571  test -n "$ac_ct_CC" && break
3572done
3573
3574  CC=$ac_ct_CC
3575fi
3576
3577fi
3578
3579
3580test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3581echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3583See \`config.log' for more details." >&5
3584echo "$as_me: error: no acceptable C compiler found in \$PATH
3585See \`config.log' for more details." >&2;}
3586   { (exit 1); exit 1; }; }; }
3587
3588# Provide some information about the compiler.
3589echo "$as_me:$LINENO:" \
3590     "checking for C compiler version" >&5
3591ac_compiler=`set X $ac_compile; echo $2`
3592{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3593  (eval $ac_compiler --version </dev/null >&5) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }
3597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3598  (eval $ac_compiler -v </dev/null >&5) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }
3602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3603  (eval $ac_compiler -V </dev/null >&5) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }
3607
3608echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3609echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3610if test "${ac_cv_c_compiler_gnu+set}" = set; then
3611  echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613  cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h.  */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623#ifndef __GNUC__
3624       choke me
3625#endif
3626
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631rm -f conftest.$ac_objext
3632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633  (eval $ac_compile) 2>conftest.er1
3634  ac_status=$?
3635  grep -v '^ *+' conftest.er1 >conftest.err
3636  rm -f conftest.er1
3637  cat conftest.err >&5
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); } &&
3640	 { ac_try='test -z "$ac_c_werror_flag"
3641			 || test ! -s conftest.err'
3642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643  (eval $ac_try) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }; } &&
3647	 { ac_try='test -s conftest.$ac_objext'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; }; then
3653  ac_compiler_gnu=yes
3654else
3655  echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658ac_compiler_gnu=no
3659fi
3660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3661ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663fi
3664echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3665echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3666GCC=`test $ac_compiler_gnu = yes && echo yes`
3667ac_test_CFLAGS=${CFLAGS+set}
3668ac_save_CFLAGS=$CFLAGS
3669CFLAGS="-g"
3670echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3672if test "${ac_cv_prog_cc_g+set}" = set; then
3673  echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675  cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h.  */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h.  */
3681
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690rm -f conftest.$ac_objext
3691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692  (eval $ac_compile) 2>conftest.er1
3693  ac_status=$?
3694  grep -v '^ *+' conftest.er1 >conftest.err
3695  rm -f conftest.er1
3696  cat conftest.err >&5
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); } &&
3699	 { ac_try='test -z "$ac_c_werror_flag"
3700			 || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706	 { ac_try='test -s conftest.$ac_objext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  ac_cv_prog_cc_g=yes
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717ac_cv_prog_cc_g=no
3718fi
3719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3722echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3723if test "$ac_test_CFLAGS" = set; then
3724  CFLAGS=$ac_save_CFLAGS
3725elif test $ac_cv_prog_cc_g = yes; then
3726  if test "$GCC" = yes; then
3727    CFLAGS="-g -O2"
3728  else
3729    CFLAGS="-g"
3730  fi
3731else
3732  if test "$GCC" = yes; then
3733    CFLAGS="-O2"
3734  else
3735    CFLAGS=
3736  fi
3737fi
3738echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3739echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3740if test "${ac_cv_prog_cc_stdc+set}" = set; then
3741  echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743  ac_cv_prog_cc_stdc=no
3744ac_save_CC=$CC
3745cat >conftest.$ac_ext <<_ACEOF
3746/* confdefs.h.  */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h.  */
3751#include <stdarg.h>
3752#include <stdio.h>
3753#include <sys/types.h>
3754#include <sys/stat.h>
3755/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3756struct buf { int x; };
3757FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758static char *e (p, i)
3759     char **p;
3760     int i;
3761{
3762  return p[i];
3763}
3764static char *f (char * (*g) (char **, int), char **p, ...)
3765{
3766  char *s;
3767  va_list v;
3768  va_start (v,p);
3769  s = g (p, va_arg (v,int));
3770  va_end (v);
3771  return s;
3772}
3773
3774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3775   function prototypes and stuff, but not '\xHH' hex character constants.
3776   These don't provoke an error unfortunately, instead are silently treated
3777   as 'x'.  The following induces an error, until -std1 is added to get
3778   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3779   array size at least.  It's necessary to write '\x00'==0 to get something
3780   that's true only with -std1.  */
3781int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782
3783int test (int i, double x);
3784struct s1 {int (*f) (int a);};
3785struct s2 {int (*f) (double a);};
3786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787int argc;
3788char **argv;
3789int
3790main ()
3791{
3792return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797# Don't try gcc -ansi; that turns off useful extensions and
3798# breaks some systems' header files.
3799# AIX			-qlanglvl=ansi
3800# Ultrix and OSF/1	-std1
3801# HP-UX 10.20 and later	-Ae
3802# HP-UX older versions	-Aa -D_HPUX_SOURCE
3803# SVR4			-Xc -D__EXTENSIONS__
3804for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805do
3806  CC="$ac_save_CC $ac_arg"
3807  rm -f conftest.$ac_objext
3808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809  (eval $ac_compile) 2>conftest.er1
3810  ac_status=$?
3811  grep -v '^ *+' conftest.er1 >conftest.err
3812  rm -f conftest.er1
3813  cat conftest.err >&5
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); } &&
3816	 { ac_try='test -z "$ac_c_werror_flag"
3817			 || test ! -s conftest.err'
3818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819  (eval $ac_try) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; } &&
3823	 { ac_try='test -s conftest.$ac_objext'
3824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825  (eval $ac_try) 2>&5
3826  ac_status=$?
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); }; }; then
3829  ac_cv_prog_cc_stdc=$ac_arg
3830break
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835fi
3836rm -f conftest.err conftest.$ac_objext
3837done
3838rm -f conftest.$ac_ext conftest.$ac_objext
3839CC=$ac_save_CC
3840
3841fi
3842
3843case "x$ac_cv_prog_cc_stdc" in
3844  x|xno)
3845    echo "$as_me:$LINENO: result: none needed" >&5
3846echo "${ECHO_T}none needed" >&6 ;;
3847  *)
3848    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3849echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3850    CC="$CC $ac_cv_prog_cc_stdc" ;;
3851esac
3852
3853# Some people use a C++ compiler to compile C.  Since we use `exit',
3854# in C++ we need to declare it.  In case someone uses the same compiler
3855# for both compiling C and C++ we need to have the C++ compiler decide
3856# the declaration of exit, since it's the most demanding environment.
3857cat >conftest.$ac_ext <<_ACEOF
3858#ifndef __cplusplus
3859  choke me
3860#endif
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864  (eval $ac_compile) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871	 { ac_try='test -z "$ac_c_werror_flag"
3872			 || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878	 { ac_try='test -s conftest.$ac_objext'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  for ac_declaration in \
3885   '' \
3886   'extern "C" void std::exit (int) throw (); using std::exit;' \
3887   'extern "C" void std::exit (int); using std::exit;' \
3888   'extern "C" void exit (int) throw ();' \
3889   'extern "C" void exit (int);' \
3890   'void exit (int);'
3891do
3892  cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h.  */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h.  */
3898$ac_declaration
3899#include <stdlib.h>
3900int
3901main ()
3902{
3903exit (42);
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext
3909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910  (eval $ac_compile) 2>conftest.er1
3911  ac_status=$?
3912  grep -v '^ *+' conftest.er1 >conftest.err
3913  rm -f conftest.er1
3914  cat conftest.err >&5
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); } &&
3917	 { ac_try='test -z "$ac_c_werror_flag"
3918			 || test ! -s conftest.err'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; } &&
3924	 { ac_try='test -s conftest.$ac_objext'
3925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926  (eval $ac_try) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); }; }; then
3930  :
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935continue
3936fi
3937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938  cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h.  */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h.  */
3944$ac_declaration
3945int
3946main ()
3947{
3948exit (42);
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext
3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955  (eval $ac_compile) 2>conftest.er1
3956  ac_status=$?
3957  grep -v '^ *+' conftest.er1 >conftest.err
3958  rm -f conftest.er1
3959  cat conftest.err >&5
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } &&
3962	 { ac_try='test -z "$ac_c_werror_flag"
3963			 || test ! -s conftest.err'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; } &&
3969	 { ac_try='test -s conftest.$ac_objext'
3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971  (eval $ac_try) 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; }; then
3975  break
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980fi
3981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982done
3983rm -f conftest*
3984if test -n "$ac_declaration"; then
3985  echo '#ifdef __cplusplus' >>confdefs.h
3986  echo $ac_declaration      >>confdefs.h
3987  echo '#endif'             >>confdefs.h
3988fi
3989
3990else
3991  echo "$as_me: failed program was:" >&5
3992sed 's/^/| /' conftest.$ac_ext >&5
3993
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996ac_ext=c
3997ac_cpp='$CPP $CPPFLAGS'
3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002
4003cat >>confdefs.h <<\_ACEOF
4004#define _GNU_SOURCE 1
4005_ACEOF
4006
4007
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4015# On Suns, sometimes $CPP names a directory.
4016if test -n "$CPP" && test -d "$CPP"; then
4017  CPP=
4018fi
4019if test -z "$CPP"; then
4020  if test "${ac_cv_prog_CPP+set}" = set; then
4021  echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023      # Double quotes because CPP needs to be expanded
4024    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025    do
4026      ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029  # Use a header file that comes with gcc, so configuring glibc
4030  # with a fresh cross-compiler works.
4031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032  # <limits.h> exists even on freestanding compilers.
4033  # On the NeXT, cc -E runs the code through the compiler's parser,
4034  # not just through cpp. "Syntax error" is here to catch this case.
4035  cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046		     Syntax error
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050  ac_status=$?
4051  grep -v '^ *+' conftest.er1 >conftest.err
4052  rm -f conftest.er1
4053  cat conftest.err >&5
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } >/dev/null; then
4056  if test -s conftest.err; then
4057    ac_cpp_err=$ac_c_preproc_warn_flag
4058    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059  else
4060    ac_cpp_err=
4061  fi
4062else
4063  ac_cpp_err=yes
4064fi
4065if test -z "$ac_cpp_err"; then
4066  :
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071  # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.$ac_ext
4075
4076  # OK, works on sane cases.  Now check whether non-existent headers
4077  # can be detected and how.
4078  cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h.  */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h.  */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088  ac_status=$?
4089  grep -v '^ *+' conftest.er1 >conftest.err
4090  rm -f conftest.er1
4091  cat conftest.err >&5
4092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093  (exit $ac_status); } >/dev/null; then
4094  if test -s conftest.err; then
4095    ac_cpp_err=$ac_c_preproc_warn_flag
4096    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097  else
4098    ac_cpp_err=
4099  fi
4100else
4101  ac_cpp_err=yes
4102fi
4103if test -z "$ac_cpp_err"; then
4104  # Broken: success on invalid input.
4105continue
4106else
4107  echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110  # Passes both tests.
4111ac_preproc_ok=:
4112break
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115
4116done
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then
4120  break
4121fi
4122
4123    done
4124    ac_cv_prog_CPP=$CPP
4125
4126fi
4127  CPP=$ac_cv_prog_CPP
4128else
4129  ac_cv_prog_CPP=$CPP
4130fi
4131echo "$as_me:$LINENO: result: $CPP" >&5
4132echo "${ECHO_T}$CPP" >&6
4133ac_preproc_ok=false
4134for ac_c_preproc_warn_flag in '' yes
4135do
4136  # Use a header file that comes with gcc, so configuring glibc
4137  # with a fresh cross-compiler works.
4138  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139  # <limits.h> exists even on freestanding compilers.
4140  # On the NeXT, cc -E runs the code through the compiler's parser,
4141  # not just through cpp. "Syntax error" is here to catch this case.
4142  cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h.  */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h.  */
4148#ifdef __STDC__
4149# include <limits.h>
4150#else
4151# include <assert.h>
4152#endif
4153		     Syntax error
4154_ACEOF
4155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } >/dev/null; then
4163  if test -s conftest.err; then
4164    ac_cpp_err=$ac_c_preproc_warn_flag
4165    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4166  else
4167    ac_cpp_err=
4168  fi
4169else
4170  ac_cpp_err=yes
4171fi
4172if test -z "$ac_cpp_err"; then
4173  :
4174else
4175  echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178  # Broken: fails on valid input.
4179continue
4180fi
4181rm -f conftest.err conftest.$ac_ext
4182
4183  # OK, works on sane cases.  Now check whether non-existent headers
4184  # can be detected and how.
4185  cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h.  */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h.  */
4191#include <ac_nonexistent.h>
4192_ACEOF
4193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195  ac_status=$?
4196  grep -v '^ *+' conftest.er1 >conftest.err
4197  rm -f conftest.er1
4198  cat conftest.err >&5
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); } >/dev/null; then
4201  if test -s conftest.err; then
4202    ac_cpp_err=$ac_c_preproc_warn_flag
4203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204  else
4205    ac_cpp_err=
4206  fi
4207else
4208  ac_cpp_err=yes
4209fi
4210if test -z "$ac_cpp_err"; then
4211  # Broken: success on invalid input.
4212continue
4213else
4214  echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217  # Passes both tests.
4218ac_preproc_ok=:
4219break
4220fi
4221rm -f conftest.err conftest.$ac_ext
4222
4223done
4224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225rm -f conftest.err conftest.$ac_ext
4226if $ac_preproc_ok; then
4227  :
4228else
4229  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4230echo "$as_me: error: in \`$ac_pwd':" >&2;}
4231{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&5
4233echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4234See \`config.log' for more details." >&2;}
4235   { (exit 1); exit 1; }; }; }
4236fi
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245echo "$as_me:$LINENO: checking for egrep" >&5
4246echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247if test "${ac_cv_prog_egrep+set}" = set; then
4248  echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251    then ac_cv_prog_egrep='grep -E'
4252    else ac_cv_prog_egrep='egrep'
4253    fi
4254fi
4255echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
4258
4259
4260echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4261echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4262if test "${ac_cv_header_stdc+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h.  */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h.  */
4271#include <stdlib.h>
4272#include <stdarg.h>
4273#include <string.h>
4274#include <float.h>
4275
4276int
4277main ()
4278{
4279
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext
4285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286  (eval $ac_compile) 2>conftest.er1
4287  ac_status=$?
4288  grep -v '^ *+' conftest.er1 >conftest.err
4289  rm -f conftest.er1
4290  cat conftest.err >&5
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); } &&
4293	 { ac_try='test -z "$ac_c_werror_flag"
4294			 || test ! -s conftest.err'
4295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); }; } &&
4300	 { ac_try='test -s conftest.$ac_objext'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; }; then
4306  ac_cv_header_stdc=yes
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311ac_cv_header_stdc=no
4312fi
4313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314
4315if test $ac_cv_header_stdc = yes; then
4316  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4317  cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h.  */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h.  */
4323#include <string.h>
4324
4325_ACEOF
4326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327  $EGREP "memchr" >/dev/null 2>&1; then
4328  :
4329else
4330  ac_cv_header_stdc=no
4331fi
4332rm -f conftest*
4333
4334fi
4335
4336if test $ac_cv_header_stdc = yes; then
4337  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4338  cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344#include <stdlib.h>
4345
4346_ACEOF
4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348  $EGREP "free" >/dev/null 2>&1; then
4349  :
4350else
4351  ac_cv_header_stdc=no
4352fi
4353rm -f conftest*
4354
4355fi
4356
4357if test $ac_cv_header_stdc = yes; then
4358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359  if test "$cross_compiling" = yes; then
4360  :
4361else
4362  cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h.  */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h.  */
4368#include <ctype.h>
4369#if ((' ' & 0x0FF) == 0x020)
4370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372#else
4373# define ISLOWER(c) \
4374		   (('a' <= (c) && (c) <= 'i') \
4375		     || ('j' <= (c) && (c) <= 'r') \
4376		     || ('s' <= (c) && (c) <= 'z'))
4377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378#endif
4379
4380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381int
4382main ()
4383{
4384  int i;
4385  for (i = 0; i < 256; i++)
4386    if (XOR (islower (i), ISLOWER (i))
4387	|| toupper (i) != TOUPPER (i))
4388      exit(2);
4389  exit (0);
4390}
4391_ACEOF
4392rm -f conftest$ac_exeext
4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394  (eval $ac_link) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; }; then
4403  :
4404else
4405  echo "$as_me: program exited with status $ac_status" >&5
4406echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409( exit $ac_status )
4410ac_cv_header_stdc=no
4411fi
4412rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4413fi
4414fi
4415fi
4416echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4417echo "${ECHO_T}$ac_cv_header_stdc" >&6
4418if test $ac_cv_header_stdc = yes; then
4419
4420cat >>confdefs.h <<\_ACEOF
4421#define STDC_HEADERS 1
4422_ACEOF
4423
4424fi
4425
4426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4437		  inttypes.h stdint.h unistd.h
4438do
4439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440echo "$as_me:$LINENO: checking for $ac_header" >&5
4441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443  echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445  cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h.  */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h.  */
4451$ac_includes_default
4452
4453#include <$ac_header>
4454_ACEOF
4455rm -f conftest.$ac_objext
4456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457  (eval $ac_compile) 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } &&
4464	 { ac_try='test -z "$ac_c_werror_flag"
4465			 || test ! -s conftest.err'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; } &&
4471	 { ac_try='test -s conftest.$ac_objext'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; }; then
4477  eval "$as_ac_Header=yes"
4478else
4479  echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482eval "$as_ac_Header=no"
4483fi
4484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485fi
4486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489  cat >>confdefs.h <<_ACEOF
4490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491_ACEOF
4492
4493fi
4494
4495done
4496
4497
4498
4499  if test "${ac_cv_header_minix_config_h+set}" = set; then
4500  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4501echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4502if test "${ac_cv_header_minix_config_h+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504fi
4505echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4506echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4507else
4508  # Is the header compilable?
4509echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4510echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4511cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h.  */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h.  */
4517$ac_includes_default
4518#include <minix/config.h>
4519_ACEOF
4520rm -f conftest.$ac_objext
4521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522  (eval $ac_compile) 2>conftest.er1
4523  ac_status=$?
4524  grep -v '^ *+' conftest.er1 >conftest.err
4525  rm -f conftest.er1
4526  cat conftest.err >&5
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); } &&
4529	 { ac_try='test -z "$ac_c_werror_flag"
4530			 || test ! -s conftest.err'
4531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532  (eval $ac_try) 2>&5
4533  ac_status=$?
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); }; } &&
4536	 { ac_try='test -s conftest.$ac_objext'
4537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538  (eval $ac_try) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; }; then
4542  ac_header_compiler=yes
4543else
4544  echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547ac_header_compiler=no
4548fi
4549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4551echo "${ECHO_T}$ac_header_compiler" >&6
4552
4553# Is the header present?
4554echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4555echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4556cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h.  */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h.  */
4562#include <minix/config.h>
4563_ACEOF
4564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4565  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4566  ac_status=$?
4567  grep -v '^ *+' conftest.er1 >conftest.err
4568  rm -f conftest.er1
4569  cat conftest.err >&5
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); } >/dev/null; then
4572  if test -s conftest.err; then
4573    ac_cpp_err=$ac_c_preproc_warn_flag
4574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4575  else
4576    ac_cpp_err=
4577  fi
4578else
4579  ac_cpp_err=yes
4580fi
4581if test -z "$ac_cpp_err"; then
4582  ac_header_preproc=yes
4583else
4584  echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587  ac_header_preproc=no
4588fi
4589rm -f conftest.err conftest.$ac_ext
4590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4591echo "${ECHO_T}$ac_header_preproc" >&6
4592
4593# So?  What about this header?
4594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4595  yes:no: )
4596    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4597echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4598    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4599echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4600    ac_header_preproc=yes
4601    ;;
4602  no:yes:* )
4603    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4604echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4605    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4606echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4607    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4608echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4609    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4610echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4611    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4612echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4613    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4614echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4615    (
4616      cat <<\_ASBOX
4617## ------------------------------------------ ##
4618## Report this to the AC_PACKAGE_NAME lists.  ##
4619## ------------------------------------------ ##
4620_ASBOX
4621    ) |
4622      sed "s/^/$as_me: WARNING:     /" >&2
4623    ;;
4624esac
4625echo "$as_me:$LINENO: checking for minix/config.h" >&5
4626echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4627if test "${ac_cv_header_minix_config_h+set}" = set; then
4628  echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630  ac_cv_header_minix_config_h=$ac_header_preproc
4631fi
4632echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4633echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4634
4635fi
4636if test $ac_cv_header_minix_config_h = yes; then
4637  MINIX=yes
4638else
4639  MINIX=
4640fi
4641
4642
4643  if test "$MINIX" = yes; then
4644
4645cat >>confdefs.h <<\_ACEOF
4646#define _POSIX_SOURCE 1
4647_ACEOF
4648
4649
4650cat >>confdefs.h <<\_ACEOF
4651#define _POSIX_1_SOURCE 2
4652_ACEOF
4653
4654
4655cat >>confdefs.h <<\_ACEOF
4656#define _MINIX 1
4657_ACEOF
4658
4659  fi
4660
4661
4662
4663  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4664echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4665if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h.  */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h.  */
4674
4675#	  define __EXTENSIONS__ 1
4676	  $ac_includes_default
4677int
4678main ()
4679{
4680
4681  ;
4682  return 0;
4683}
4684_ACEOF
4685rm -f conftest.$ac_objext
4686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687  (eval $ac_compile) 2>conftest.er1
4688  ac_status=$?
4689  grep -v '^ *+' conftest.er1 >conftest.err
4690  rm -f conftest.er1
4691  cat conftest.err >&5
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); } &&
4694	 { ac_try='test -z "$ac_c_werror_flag"
4695			 || test ! -s conftest.err'
4696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697  (eval $ac_try) 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }; } &&
4701	 { ac_try='test -s conftest.$ac_objext'
4702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703  (eval $ac_try) 2>&5
4704  ac_status=$?
4705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706  (exit $ac_status); }; }; then
4707  ac_cv_safe_to_define___extensions__=yes
4708else
4709  echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712ac_cv_safe_to_define___extensions__=no
4713fi
4714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi
4716echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4717echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4718  test $ac_cv_safe_to_define___extensions__ = yes &&
4719    cat >>confdefs.h <<\_ACEOF
4720#define __EXTENSIONS__ 1
4721_ACEOF
4722
4723  cat >>confdefs.h <<\_ACEOF
4724#define _ALL_SOURCE 1
4725_ACEOF
4726
4727  cat >>confdefs.h <<\_ACEOF
4728#define _GNU_SOURCE 1
4729_ACEOF
4730
4731  cat >>confdefs.h <<\_ACEOF
4732#define _POSIX_PTHREAD_SEMANTICS 1
4733_ACEOF
4734
4735  cat >>confdefs.h <<\_ACEOF
4736#define _TANDEM_SOURCE 1
4737_ACEOF
4738
4739
4740
4741if test -n "$ac_tool_prefix"; then
4742  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}ar; ac_word=$2
4744echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746if test "${ac_cv_prog_AR+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  if test -n "$AR"; then
4750  ac_cv_prog_AR="$AR" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757  for ac_exec_ext in '' $ac_executable_extensions; do
4758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_AR="${ac_tool_prefix}ar"
4760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764done
4765
4766fi
4767fi
4768AR=$ac_cv_prog_AR
4769if test -n "$AR"; then
4770  echo "$as_me:$LINENO: result: $AR" >&5
4771echo "${ECHO_T}$AR" >&6
4772else
4773  echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777fi
4778if test -z "$ac_cv_prog_AR"; then
4779  ac_ct_AR=$AR
4780  # Extract the first word of "ar", so it can be a program name with args.
4781set dummy ar; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  if test -n "$ac_ct_AR"; then
4788  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795  for ac_exec_ext in '' $ac_executable_extensions; do
4796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_prog_ac_ct_AR="ar"
4798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802done
4803
4804fi
4805fi
4806ac_ct_AR=$ac_cv_prog_ac_ct_AR
4807if test -n "$ac_ct_AR"; then
4808  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4809echo "${ECHO_T}$ac_ct_AR" >&6
4810else
4811  echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
4815  AR=$ac_ct_AR
4816else
4817  AR="$ac_cv_prog_AR"
4818fi
4819
4820if test -n "$ac_tool_prefix"; then
4821  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_prog_RANLIB+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  if test -n "$RANLIB"; then
4829  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836  for ac_exec_ext in '' $ac_executable_extensions; do
4837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843done
4844
4845fi
4846fi
4847RANLIB=$ac_cv_prog_RANLIB
4848if test -n "$RANLIB"; then
4849  echo "$as_me:$LINENO: result: $RANLIB" >&5
4850echo "${ECHO_T}$RANLIB" >&6
4851else
4852  echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854fi
4855
4856fi
4857if test -z "$ac_cv_prog_RANLIB"; then
4858  ac_ct_RANLIB=$RANLIB
4859  # Extract the first word of "ranlib", so it can be a program name with args.
4860set dummy ranlib; ac_word=$2
4861echo "$as_me:$LINENO: checking for $ac_word" >&5
4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  if test -n "$ac_ct_RANLIB"; then
4867  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872  IFS=$as_save_IFS
4873  test -z "$as_dir" && as_dir=.
4874  for ac_exec_ext in '' $ac_executable_extensions; do
4875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876    ac_cv_prog_ac_ct_RANLIB="ranlib"
4877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878    break 2
4879  fi
4880done
4881done
4882
4883  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4884fi
4885fi
4886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887if test -n "$ac_ct_RANLIB"; then
4888  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4889echo "${ECHO_T}$ac_ct_RANLIB" >&6
4890else
4891  echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893fi
4894
4895  RANLIB=$ac_ct_RANLIB
4896else
4897  RANLIB="$ac_cv_prog_RANLIB"
4898fi
4899
4900
4901# Check whether --enable-shared or --disable-shared was given.
4902if test "${enable_shared+set}" = set; then
4903  enableval="$enable_shared"
4904  p=${PACKAGE-default}
4905    case $enableval in
4906    yes) enable_shared=yes ;;
4907    no) enable_shared=no ;;
4908    *)
4909      enable_shared=no
4910      # Look at the argument we got.  We use all the common list separators.
4911      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4912      for pkg in $enableval; do
4913	IFS="$lt_save_ifs"
4914	if test "X$pkg" = "X$p"; then
4915	  enable_shared=yes
4916	fi
4917      done
4918      IFS="$lt_save_ifs"
4919      ;;
4920    esac
4921else
4922  enable_shared=no
4923fi;
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935macro_version='2.1a'
4936macro_revision='1.2435'
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949ltmain="$ac_aux_dir/ltmain.sh"
4950
4951# Set options
4952
4953enable_dlopen=no
4954
4955
4956enable_win32_dll=no
4957
4958
4959
4960# Check whether --enable-static or --disable-static was given.
4961if test "${enable_static+set}" = set; then
4962  enableval="$enable_static"
4963  p=${PACKAGE-default}
4964    case $enableval in
4965    yes) enable_static=yes ;;
4966    no) enable_static=no ;;
4967    *)
4968     enable_static=no
4969      # Look at the argument we got.  We use all the common list separators.
4970      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4971      for pkg in $enableval; do
4972	IFS="$lt_save_ifs"
4973	if test "X$pkg" = "X$p"; then
4974	  enable_static=yes
4975	fi
4976      done
4977      IFS="$lt_save_ifs"
4978      ;;
4979    esac
4980else
4981  enable_static=yes
4982fi;
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992# Check whether --with-pic or --without-pic was given.
4993if test "${with_pic+set}" = set; then
4994  withval="$with_pic"
4995  pic_mode="$withval"
4996else
4997  pic_mode=default
4998fi;
4999
5000test -z "$pic_mode" && pic_mode=default
5001
5002
5003
5004
5005
5006
5007
5008# Check whether --enable-fast-install or --disable-fast-install was given.
5009if test "${enable_fast_install+set}" = set; then
5010  enableval="$enable_fast_install"
5011  p=${PACKAGE-default}
5012    case $enableval in
5013    yes) enable_fast_install=yes ;;
5014    no) enable_fast_install=no ;;
5015    *)
5016      enable_fast_install=no
5017      # Look at the argument we got.  We use all the common list separators.
5018      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5019      for pkg in $enableval; do
5020	IFS="$lt_save_ifs"
5021	if test "X$pkg" = "X$p"; then
5022	  enable_fast_install=yes
5023	fi
5024      done
5025      IFS="$lt_save_ifs"
5026      ;;
5027    esac
5028else
5029  enable_fast_install=yes
5030fi;
5031
5032
5033
5034
5035
5036
5037
5038
5039echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5040echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5041if test "${lt_cv_path_SED+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  # Loop through the user's path and test for sed and gsed.
5045# Then use that list of sed's as ones to test for truncation.
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049  IFS=$as_save_IFS
5050  test -z "$as_dir" && as_dir=.
5051  for lt_ac_prog in sed gsed; do
5052    for ac_exec_ext in '' $ac_executable_extensions; do
5053      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5054        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5055      fi
5056    done
5057  done
5058done
5059IFS=$as_save_IFS
5060lt_ac_max=0
5061lt_ac_count=0
5062# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5063# along with /bin/sed that truncates output.
5064for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5065  test ! -f $lt_ac_sed && continue
5066  cat /dev/null > conftest.in
5067  lt_ac_count=0
5068  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5069  # Check for GNU sed and select it if it is found.
5070  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5071    lt_cv_path_SED=$lt_ac_sed
5072    break
5073  fi
5074  while true; do
5075    cat conftest.in conftest.in >conftest.tmp
5076    mv conftest.tmp conftest.in
5077    cp conftest.in conftest.nl
5078    echo >>conftest.nl
5079    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5080    cmp -s conftest.out conftest.nl || break
5081    # 10000 chars as input seems more than enough
5082    test $lt_ac_count -gt 10 && break
5083    lt_ac_count=`expr $lt_ac_count + 1`
5084    if test $lt_ac_count -gt $lt_ac_max; then
5085      lt_ac_max=$lt_ac_count
5086      lt_cv_path_SED=$lt_ac_sed
5087    fi
5088  done
5089done
5090
5091fi
5092
5093SED=$lt_cv_path_SED
5094
5095echo "$as_me:$LINENO: result: $SED" >&5
5096echo "${ECHO_T}$SED" >&6
5097
5098test -z "$SED" && SED=sed
5099Xsed="$SED -e 1s/^X//"
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111echo "$as_me:$LINENO: checking for fgrep" >&5
5112echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5113if test "${ac_cv_prog_fgrep+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5117    then ac_cv_prog_fgrep='grep -F'
5118    else ac_cv_prog_fgrep='fgrep'
5119    fi
5120fi
5121echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5122echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5123 FGREP=$ac_cv_prog_fgrep
5124
5125
5126test -z "$GREP" && GREP=grep
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146# Check whether --with-gnu-ld or --without-gnu-ld was given.
5147if test "${with_gnu_ld+set}" = set; then
5148  withval="$with_gnu_ld"
5149  test "$withval" = no || with_gnu_ld=yes
5150else
5151  with_gnu_ld=no
5152fi;
5153ac_prog=ld
5154if test "$GCC" = yes; then
5155  # Check if gcc -print-prog-name=ld gives a path.
5156  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5157echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5158  case $host in
5159  *-*-mingw*)
5160    # gcc leaves a trailing carriage return which upsets mingw
5161    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5162  *)
5163    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5164  esac
5165  case $ac_prog in
5166    # Accept absolute paths.
5167    [\\/]* | ?:[\\/]*)
5168      re_direlt='/[^/][^/]*/\.\./'
5169      # Canonicalize the pathname of ld
5170      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5171      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5172	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5173      done
5174      test -z "$LD" && LD="$ac_prog"
5175      ;;
5176  "")
5177    # If it fails, then pretend we aren't using GCC.
5178    ac_prog=ld
5179    ;;
5180  *)
5181    # If it is relative, then search for the first ld in PATH.
5182    with_gnu_ld=unknown
5183    ;;
5184  esac
5185elif test "$with_gnu_ld" = yes; then
5186  echo "$as_me:$LINENO: checking for GNU ld" >&5
5187echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5188else
5189  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5190echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5191fi
5192if test "${lt_cv_path_LD+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  if test -z "$LD"; then
5196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5197  for ac_dir in $PATH; do
5198    IFS="$lt_save_ifs"
5199    test -z "$ac_dir" && ac_dir=.
5200    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5201      lt_cv_path_LD="$ac_dir/$ac_prog"
5202      # Check to see if the program is GNU ld.  I'd rather use --version,
5203      # but apparently some variants of GNU ld only accept -v.
5204      # Break only if it was the GNU/non-GNU ld that we prefer.
5205      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5206      *GNU* | *'with BFD'*)
5207	test "$with_gnu_ld" != no && break
5208	;;
5209      *)
5210	test "$with_gnu_ld" != yes && break
5211	;;
5212      esac
5213    fi
5214  done
5215  IFS="$lt_save_ifs"
5216else
5217  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5218fi
5219fi
5220
5221LD="$lt_cv_path_LD"
5222if test -n "$LD"; then
5223  echo "$as_me:$LINENO: result: $LD" >&5
5224echo "${ECHO_T}$LD" >&6
5225else
5226  echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5230echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5231   { (exit 1); exit 1; }; }
5232echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5233echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5234if test "${lt_cv_prog_gnu_ld+set}" = set; then
5235  echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5238case `$LD -v 2>&1 </dev/null` in
5239*GNU* | *'with BFD'*)
5240  lt_cv_prog_gnu_ld=yes
5241  ;;
5242*)
5243  lt_cv_prog_gnu_ld=no
5244  ;;
5245esac
5246fi
5247echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5248echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5249with_gnu_ld=$lt_cv_prog_gnu_ld
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5261echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5262if test "${lt_cv_path_NM+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265  if test -n "$NM"; then
5266  # Let the user override the test.
5267  lt_cv_path_NM="$NM"
5268else
5269  lt_nm_to_check="${ac_tool_prefix}nm"
5270  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5271    lt_nm_to_check="$lt_nm_to_check nm"
5272  fi
5273  for lt_tmp_nm in $lt_nm_to_check; do
5274    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5275    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5276      IFS="$lt_save_ifs"
5277      test -z "$ac_dir" && ac_dir=.
5278      tmp_nm="$ac_dir/$lt_tmp_nm"
5279      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5280	# Check to see if the nm accepts a BSD-compat flag.
5281	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5282	#   nm: unknown option "B" ignored
5283	# Tru64's nm complains that /dev/null is an invalid object file
5284	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5285	*/dev/null* | *'Invalid file or object type'*)
5286	  lt_cv_path_NM="$tmp_nm -B"
5287	  break
5288	  ;;
5289	*)
5290	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5291	  */dev/null*)
5292	    lt_cv_path_NM="$tmp_nm -p"
5293	    break
5294	    ;;
5295	  *)
5296	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5297	    continue # so that we can try to find one that supports BSD flags
5298	    ;;
5299	  esac
5300	  ;;
5301	esac
5302      fi
5303    done
5304    IFS="$lt_save_ifs"
5305  done
5306  : ${lt_cv_path_NM=no}
5307fi
5308fi
5309echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5310echo "${ECHO_T}$lt_cv_path_NM" >&6
5311if test "$lt_cv_path_NM" != "no"; then
5312  NM="$lt_cv_path_NM"
5313else
5314  # Didn't find any BSD compatible name lister, look for dumpbin.
5315  if test -n "$ac_tool_prefix"; then
5316  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5317  do
5318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  if test -n "$DUMPBIN"; then
5326  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333  for ac_exec_ext in '' $ac_executable_extensions; do
5334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340done
5341
5342fi
5343fi
5344DUMPBIN=$ac_cv_prog_DUMPBIN
5345if test -n "$DUMPBIN"; then
5346  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5347echo "${ECHO_T}$DUMPBIN" >&6
5348else
5349  echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351fi
5352
5353    test -n "$DUMPBIN" && break
5354  done
5355fi
5356if test -z "$DUMPBIN"; then
5357  ac_ct_DUMPBIN=$DUMPBIN
5358  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5359do
5360  # Extract the first word of "$ac_prog", so it can be a program name with args.
5361set dummy $ac_prog; ac_word=$2
5362echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  if test -n "$ac_ct_DUMPBIN"; then
5368  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373  IFS=$as_save_IFS
5374  test -z "$as_dir" && as_dir=.
5375  for ac_exec_ext in '' $ac_executable_extensions; do
5376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379    break 2
5380  fi
5381done
5382done
5383
5384fi
5385fi
5386ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5387if test -n "$ac_ct_DUMPBIN"; then
5388  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5389echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5390else
5391  echo "$as_me:$LINENO: result: no" >&5
5392echo "${ECHO_T}no" >&6
5393fi
5394
5395  test -n "$ac_ct_DUMPBIN" && break
5396done
5397test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5398
5399  DUMPBIN=$ac_ct_DUMPBIN
5400fi
5401
5402
5403  if test "$DUMPBIN" != ":"; then
5404    NM="$DUMPBIN"
5405  fi
5406fi
5407test -z "$NM" && NM=nm
5408
5409
5410
5411
5412
5413
5414echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5415echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5416if test "${lt_cv_nm_interface+set}" = set; then
5417  echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419  lt_cv_nm_interface="BSD nm"
5420  echo "int some_variable = 0;" > conftest.$ac_ext
5421  (eval echo "\"\$as_me:5421: $ac_compile\"" >&5)
5422  (eval "$ac_compile" 2>conftest.err)
5423  cat conftest.err >&5
5424  (eval echo "\"\$as_me:5424: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5425  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5426  cat conftest.err >&5
5427  (eval echo "\"\$as_me:5427: output\"" >&5)
5428  cat conftest.out >&5
5429  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5430    lt_cv_nm_interface="MS dumpbin"
5431  fi
5432  rm -f conftest*
5433fi
5434echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5435echo "${ECHO_T}$lt_cv_nm_interface" >&6
5436
5437echo "$as_me:$LINENO: checking whether ln -s works" >&5
5438echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5439LN_S=$as_ln_s
5440if test "$LN_S" = "ln -s"; then
5441  echo "$as_me:$LINENO: result: yes" >&5
5442echo "${ECHO_T}yes" >&6
5443else
5444  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5445echo "${ECHO_T}no, using $LN_S" >&6
5446fi
5447
5448# find the maximum length of command line arguments
5449echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5450echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5451if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5452  echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454    i=0
5455  teststring="ABCD"
5456
5457  case $build_os in
5458  msdosdjgpp*)
5459    # On DJGPP, this test can blow up pretty badly due to problems in libc
5460    # (any single argument exceeding 2000 bytes causes a buffer overrun
5461    # during glob expansion).  Even if it were fixed, the result of this
5462    # check would be larger than it should be.
5463    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5464    ;;
5465
5466  gnu*)
5467    # Under GNU Hurd, this test is not required because there is
5468    # no limit to the length of command line arguments.
5469    # Libtool will interpret -1 as no limit whatsoever
5470    lt_cv_sys_max_cmd_len=-1;
5471    ;;
5472
5473  cygwin* | mingw*)
5474    # On Win9x/ME, this test blows up -- it succeeds, but takes
5475    # about 5 minutes as the teststring grows exponentially.
5476    # Worse, since 9x/ME are not pre-emptively multitasking,
5477    # you end up with a "frozen" computer, even though with patience
5478    # the test eventually succeeds (with a max line length of 256k).
5479    # Instead, let's just punt: use the minimum linelength reported by
5480    # all of the supported platforms: 8192 (on NT/2K/XP).
5481    lt_cv_sys_max_cmd_len=8192;
5482    ;;
5483
5484  amigaos*)
5485    # On AmigaOS with pdksh, this test takes hours, literally.
5486    # So we just punt and use a minimum line length of 8192.
5487    lt_cv_sys_max_cmd_len=8192;
5488    ;;
5489
5490  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5491    # This has been around since 386BSD, at least.  Likely further.
5492    if test -x /sbin/sysctl; then
5493      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5494    elif test -x /usr/sbin/sysctl; then
5495      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5496    else
5497      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5498    fi
5499    # And add a safety zone
5500    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5501    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5502    ;;
5503
5504  interix*)
5505    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5506    lt_cv_sys_max_cmd_len=196608
5507    ;;
5508
5509  osf*)
5510    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5511    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5512    # nice to cause kernel panics so lets avoid the loop below.
5513    # First set a reasonable default.
5514    lt_cv_sys_max_cmd_len=16384
5515    #
5516    if test -x /sbin/sysconfig; then
5517      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5518        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5519      esac
5520    fi
5521    ;;
5522  sco3.2v5*)
5523    lt_cv_sys_max_cmd_len=102400
5524    ;;
5525  sysv5* | sco5v6* | sysv4.2uw2*)
5526    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5527    if test -n "$kargmax"; then
5528      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5529    else
5530      lt_cv_sys_max_cmd_len=32768
5531    fi
5532    ;;
5533  *)
5534    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5535    if test -n $lt_cv_sys_max_cmd_len; then
5536      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5537      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5538    else
5539      # Make teststring a little bigger before we do anything with it.
5540      # a 1K string should be a reasonable start.
5541      for i in 1 2 3 4 5 6 7 8 ; do
5542        teststring=$teststring$teststring
5543      done
5544      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5545      # If test is not a shell built-in, we'll probably end up computing a
5546      # maximum length that is only half of the actual maximum length, but
5547      # we can't tell.
5548      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5549	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5550	      test $i != 17 # 1/2 MB should be enough
5551      do
5552        i=`expr $i + 1`
5553        teststring=$teststring$teststring
5554      done
5555      # Only check the string length outside the loop.
5556      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5557      teststring=
5558      # Add a significant safety factor because C++ compilers can tack on
5559      # massive amounts of additional arguments before passing them to the
5560      # linker.  It appears as though 1/2 is a usable value.
5561      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5562    fi
5563    ;;
5564  esac
5565
5566fi
5567
5568if test -n $lt_cv_sys_max_cmd_len ; then
5569  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5570echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5571else
5572  echo "$as_me:$LINENO: result: none" >&5
5573echo "${ECHO_T}none" >&6
5574fi
5575max_cmd_len=$lt_cv_sys_max_cmd_len
5576
5577
5578
5579
5580
5581
5582
5583: ${CP="cp -f"}
5584: ${MV="mv -f"}
5585: ${RM="rm -f"}
5586
5587echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5588echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5589# Try some XSI features
5590xsi_shell=no
5591( _lt_dummy="a/b/c"
5592  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5593      = c,a/b,, ) >/dev/null 2>&1 \
5594  && xsi_shell=yes
5595echo "$as_me:$LINENO: result: $xsi_shell" >&5
5596echo "${ECHO_T}$xsi_shell" >&6
5597
5598
5599echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5600echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5601lt_shell_append=no
5602( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5603    >/dev/null 2>&1 \
5604  && lt_shell_append=yes
5605echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5606echo "${ECHO_T}$lt_shell_append" >&6
5607
5608
5609if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5610  lt_unset=unset
5611else
5612  lt_unset=false
5613fi
5614
5615
5616
5617
5618
5619# test EBCDIC or ASCII
5620case `echo X|tr X '\101'` in
5621 A) # ASCII based system
5622    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5623  lt_SP2NL='tr \040 \012'
5624  lt_NL2SP='tr \015\012 \040\040'
5625  ;;
5626 *) # EBCDIC based system
5627  lt_SP2NL='tr \100 \n'
5628  lt_NL2SP='tr \r\n \100\100'
5629  ;;
5630esac
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5641echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5642if test "${lt_cv_ld_reload_flag+set}" = set; then
5643  echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645  lt_cv_ld_reload_flag='-r'
5646fi
5647echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5648echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5649reload_flag=$lt_cv_ld_reload_flag
5650case $reload_flag in
5651"" | " "*) ;;
5652*) reload_flag=" $reload_flag" ;;
5653esac
5654reload_cmds='$LD$reload_flag -o $output$reload_objs'
5655case $host_os in
5656  darwin*)
5657    if test "$GCC" = yes; then
5658      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5659    else
5660      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661    fi
5662    ;;
5663esac
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5675echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5676if test "${lt_cv_deplibs_check_method+set}" = set; then
5677  echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679  lt_cv_file_magic_cmd='$MAGIC_CMD'
5680lt_cv_file_magic_test_file=
5681lt_cv_deplibs_check_method='unknown'
5682# Need to set the preceding variable on all platforms that support
5683# interlibrary dependencies.
5684# 'none' -- dependencies not supported.
5685# `unknown' -- same as none, but documents that we really don't know.
5686# 'pass_all' -- all dependencies passed with no checks.
5687# 'test_compile' -- check by making test program.
5688# 'file_magic [[regex]]' -- check by looking for files in library path
5689# which responds to the $file_magic_cmd with a given extended regex.
5690# If you have `file' or equivalent on your system and you're not sure
5691# whether `pass_all' will *always* work, you probably want this one.
5692
5693case $host_os in
5694aix[4-9]*)
5695  lt_cv_deplibs_check_method=pass_all
5696  ;;
5697
5698beos*)
5699  lt_cv_deplibs_check_method=pass_all
5700  ;;
5701
5702bsdi[45]*)
5703  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704  lt_cv_file_magic_cmd='/usr/bin/file -L'
5705  lt_cv_file_magic_test_file=/shlib/libc.so
5706  ;;
5707
5708cygwin*)
5709  # func_win32_libid is a shell function defined in ltmain.sh
5710  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711  lt_cv_file_magic_cmd='func_win32_libid'
5712  ;;
5713
5714mingw* | pw32*)
5715  # Base MSYS/MinGW do not provide the 'file' command needed by
5716  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5717  # unless we find 'file', for example because we are cross-compiling.
5718  if ( file / ) >/dev/null 2>&1; then
5719    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5720    lt_cv_file_magic_cmd='func_win32_libid'
5721  else
5722    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5723    lt_cv_file_magic_cmd='$OBJDUMP -f'
5724  fi
5725  ;;
5726
5727darwin* | rhapsody*)
5728  lt_cv_deplibs_check_method=pass_all
5729  ;;
5730
5731freebsd* | dragonfly*)
5732  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5733    case $host_cpu in
5734    i*86 )
5735      # Not sure whether the presence of OpenBSD here was a mistake.
5736      # Let's accept both of them until this is cleared up.
5737      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5738      lt_cv_file_magic_cmd=/usr/bin/file
5739      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5740      ;;
5741    esac
5742  else
5743    lt_cv_deplibs_check_method=pass_all
5744  fi
5745  ;;
5746
5747gnu*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751hpux10.20* | hpux11*)
5752  lt_cv_file_magic_cmd=/usr/bin/file
5753  case $host_cpu in
5754  ia64*)
5755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5756    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5757    ;;
5758  hppa*64*)
5759    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]'
5760    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5761    ;;
5762  *)
5763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5764    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5765    ;;
5766  esac
5767  ;;
5768
5769interix[3-9]*)
5770  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5771  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5772  ;;
5773
5774irix5* | irix6* | nonstopux*)
5775  case $LD in
5776  *-32|*"-32 ") libmagic=32-bit;;
5777  *-n32|*"-n32 ") libmagic=N32;;
5778  *-64|*"-64 ") libmagic=64-bit;;
5779  *) libmagic=never-match;;
5780  esac
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784# This must be Linux ELF.
5785linux* | k*bsd*-gnu)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789netbsd*)
5790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792  else
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5794  fi
5795  ;;
5796
5797newos6*)
5798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5799  lt_cv_file_magic_cmd=/usr/bin/file
5800  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801  ;;
5802
5803*nto* | *qnx*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807openbsd*)
5808  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810  else
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812  fi
5813  ;;
5814
5815osf3* | osf4* | osf5*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819rdos*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823solaris*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831sysv4 | sysv4.3*)
5832  case $host_vendor in
5833  motorola)
5834    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]'
5835    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5836    ;;
5837  ncr)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  sequent)
5841    lt_cv_file_magic_cmd='/bin/file'
5842    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5843    ;;
5844  sni)
5845    lt_cv_file_magic_cmd='/bin/file'
5846    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5847    lt_cv_file_magic_test_file=/lib/libc.so
5848    ;;
5849  siemens)
5850    lt_cv_deplibs_check_method=pass_all
5851    ;;
5852  pc)
5853    lt_cv_deplibs_check_method=pass_all
5854    ;;
5855  esac
5856  ;;
5857
5858tpf*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861esac
5862
5863fi
5864echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5865echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5866file_magic_cmd=$lt_cv_file_magic_cmd
5867deplibs_check_method=$lt_cv_deplibs_check_method
5868test -z "$deplibs_check_method" && deplibs_check_method=unknown
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881if test -n "$ac_tool_prefix"; then
5882  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}ar; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_AR+set}" = set; then
5887  echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889  if test -n "$AR"; then
5890  ac_cv_prog_AR="$AR" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897  for ac_exec_ext in '' $ac_executable_extensions; do
5898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899    ac_cv_prog_AR="${ac_tool_prefix}ar"
5900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904done
5905
5906fi
5907fi
5908AR=$ac_cv_prog_AR
5909if test -n "$AR"; then
5910  echo "$as_me:$LINENO: result: $AR" >&5
5911echo "${ECHO_T}$AR" >&6
5912else
5913  echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917fi
5918if test -z "$ac_cv_prog_AR"; then
5919  ac_ct_AR=$AR
5920  # Extract the first word of "ar", so it can be a program name with args.
5921set dummy ar; ac_word=$2
5922echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  if test -n "$ac_ct_AR"; then
5928  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935  for ac_exec_ext in '' $ac_executable_extensions; do
5936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937    ac_cv_prog_ac_ct_AR="ar"
5938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939    break 2
5940  fi
5941done
5942done
5943
5944  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5945fi
5946fi
5947ac_ct_AR=$ac_cv_prog_ac_ct_AR
5948if test -n "$ac_ct_AR"; then
5949  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5950echo "${ECHO_T}$ac_ct_AR" >&6
5951else
5952  echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954fi
5955
5956  AR=$ac_ct_AR
5957else
5958  AR="$ac_cv_prog_AR"
5959fi
5960
5961test -z "$AR" && AR=ar
5962test -z "$AR_FLAGS" && AR_FLAGS=cru
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974if test -n "$ac_tool_prefix"; then
5975  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5976set dummy ${ac_tool_prefix}strip; ac_word=$2
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_STRIP+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$STRIP"; then
5983  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998
5999fi
6000fi
6001STRIP=$ac_cv_prog_STRIP
6002if test -n "$STRIP"; then
6003  echo "$as_me:$LINENO: result: $STRIP" >&5
6004echo "${ECHO_T}$STRIP" >&6
6005else
6006  echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
6008fi
6009
6010fi
6011if test -z "$ac_cv_prog_STRIP"; then
6012  ac_ct_STRIP=$STRIP
6013  # Extract the first word of "strip", so it can be a program name with args.
6014set dummy strip; ac_word=$2
6015echo "$as_me:$LINENO: checking for $ac_word" >&5
6016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6018  echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020  if test -n "$ac_ct_STRIP"; then
6021  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026  IFS=$as_save_IFS
6027  test -z "$as_dir" && as_dir=.
6028  for ac_exec_ext in '' $ac_executable_extensions; do
6029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030    ac_cv_prog_ac_ct_STRIP="strip"
6031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032    break 2
6033  fi
6034done
6035done
6036
6037  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6038fi
6039fi
6040ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6041if test -n "$ac_ct_STRIP"; then
6042  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6043echo "${ECHO_T}$ac_ct_STRIP" >&6
6044else
6045  echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
6047fi
6048
6049  STRIP=$ac_ct_STRIP
6050else
6051  STRIP="$ac_cv_prog_STRIP"
6052fi
6053
6054test -z "$STRIP" && STRIP=:
6055
6056
6057
6058
6059
6060
6061if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6064echo "$as_me:$LINENO: checking for $ac_word" >&5
6065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066if test "${ac_cv_prog_RANLIB+set}" = set; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069  if test -n "$RANLIB"; then
6070  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077  for ac_exec_ext in '' $ac_executable_extensions; do
6078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084done
6085
6086fi
6087fi
6088RANLIB=$ac_cv_prog_RANLIB
6089if test -n "$RANLIB"; then
6090  echo "$as_me:$LINENO: result: $RANLIB" >&5
6091echo "${ECHO_T}$RANLIB" >&6
6092else
6093  echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095fi
6096
6097fi
6098if test -z "$ac_cv_prog_RANLIB"; then
6099  ac_ct_RANLIB=$RANLIB
6100  # Extract the first word of "ranlib", so it can be a program name with args.
6101set dummy ranlib; ac_word=$2
6102echo "$as_me:$LINENO: checking for $ac_word" >&5
6103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107  if test -n "$ac_ct_RANLIB"; then
6108  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115  for ac_exec_ext in '' $ac_executable_extensions; do
6116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117    ac_cv_prog_ac_ct_RANLIB="ranlib"
6118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119    break 2
6120  fi
6121done
6122done
6123
6124  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6125fi
6126fi
6127ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6128if test -n "$ac_ct_RANLIB"; then
6129  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6130echo "${ECHO_T}$ac_ct_RANLIB" >&6
6131else
6132  echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134fi
6135
6136  RANLIB=$ac_ct_RANLIB
6137else
6138  RANLIB="$ac_cv_prog_RANLIB"
6139fi
6140
6141test -z "$RANLIB" && RANLIB=:
6142
6143
6144
6145
6146
6147
6148# Determine commands to create old-style static archives.
6149old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6150old_postinstall_cmds='chmod 644 $oldlib'
6151old_postuninstall_cmds=
6152
6153if test -n "$RANLIB"; then
6154  case $host_os in
6155  openbsd*)
6156    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6157    ;;
6158  *)
6159    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6160    ;;
6161  esac
6162  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6163fi
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198# If no C compiler was specified, use CC.
6199LTCC=${LTCC-"$CC"}
6200
6201# If no C compiler flags were specified, use CFLAGS.
6202LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6203
6204# Allow CC to be a program name with arguments.
6205compiler=$CC
6206
6207
6208# Check for command to grab the raw symbol name followed by C symbol from nm.
6209echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6210echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6211if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214
6215# These are sane defaults that work on at least a few old systems.
6216# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6217
6218# Character class describing NM global symbol codes.
6219symcode='[BCDEGRST]'
6220
6221# Regexp to match symbols that can be accessed directly from C.
6222sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6223
6224# Define system-specific variables.
6225case $host_os in
6226aix*)
6227  symcode='[BCDT]'
6228  ;;
6229cygwin* | mingw* | pw32*)
6230  symcode='[ABCDGISTW]'
6231  ;;
6232hpux*)
6233  if test "$host_cpu" = ia64; then
6234    symcode='[ABCDEGRST]'
6235  fi
6236  ;;
6237irix* | nonstopux*)
6238  symcode='[BCDEGRST]'
6239  ;;
6240osf*)
6241  symcode='[BCDEGQRST]'
6242  ;;
6243solaris*)
6244  symcode='[BDRT]'
6245  ;;
6246sco3.2v5*)
6247  symcode='[DT]'
6248  ;;
6249sysv4.2uw2*)
6250  symcode='[DT]'
6251  ;;
6252sysv5* | sco5v6* | unixware* | OpenUNIX*)
6253  symcode='[ABDT]'
6254  ;;
6255sysv4)
6256  symcode='[DFNSTU]'
6257  ;;
6258esac
6259
6260# If we're using GNU nm, then use its standard symbol codes.
6261case `$NM -V 2>&1` in
6262*GNU* | *'with BFD'*)
6263  symcode='[ABCDGIRSTW]' ;;
6264esac
6265
6266# Transform an extracted symbol line into a proper C declaration.
6267# Some systems (esp. on ia64) link data and code symbols differently,
6268# so use this general approach.
6269lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6270
6271# Transform an extracted symbol line into symbol name and symbol address
6272lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6273
6274# Handle CRLF in mingw tool chain
6275opt_cr=
6276case $build_os in
6277mingw*)
6278  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6279  ;;
6280esac
6281
6282# Try without a prefix underscore, then with it.
6283for ac_symprfx in "" "_"; do
6284
6285  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6286  symxfrm="\\1 $ac_symprfx\\2 \\2"
6287
6288  # Write the raw and C identifiers.
6289  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6290    # Fake it for dumpbin and say T for any non-static function
6291    # and D for any global variable.
6292    # Also find C++ and __fastcall symbols from MSVC++,
6293    # which start with @ or ?.
6294    lt_cv_sys_global_symbol_pipe="$AWK '"\
6295"     {last_section=section; section=\$ 3};"\
6296"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6297"     \$ 0!~/External *\|/{next};"\
6298"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6299"     {if(hide[section]) next};"\
6300"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6301"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6302"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6303"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6304"     ' prfx=^$ac_symprfx"
6305  else
6306    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6307  fi
6308
6309  # Check to see that the pipe works correctly.
6310  pipe_works=no
6311
6312  rm -f conftest*
6313  cat > conftest.$ac_ext <<_LT_EOF
6314#ifdef __cplusplus
6315extern "C" {
6316#endif
6317char nm_test_var;
6318void nm_test_func(void);
6319void nm_test_func(void){}
6320#ifdef __cplusplus
6321}
6322#endif
6323int main(){nm_test_var='a';nm_test_func();return(0);}
6324_LT_EOF
6325
6326  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327  (eval $ac_compile) 2>&5
6328  ac_status=$?
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); }; then
6331    # Now try to grab the symbols.
6332    nlist=conftest.nm
6333    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6334  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); } && test -s "$nlist"; then
6338      # Try sorting and uniquifying the output.
6339      if sort "$nlist" | uniq > "$nlist"T; then
6340	mv -f "$nlist"T "$nlist"
6341      else
6342	rm -f "$nlist"T
6343      fi
6344
6345      # Make sure that we snagged all the symbols we need.
6346      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6347	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6348	  cat <<_LT_EOF > conftest.$ac_ext
6349#ifdef __cplusplus
6350extern "C" {
6351#endif
6352
6353_LT_EOF
6354	  # Now generate the symbol file.
6355	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6356
6357	  cat <<_LT_EOF >> conftest.$ac_ext
6358
6359/* The mapping between symbol names and symbols.  */
6360const struct {
6361  const char *name;
6362  void       *address;
6363}
6364lt__PROGRAM__LTX_preloaded_symbols[] =
6365{
6366  { "@PROGRAM@", (void *) 0 },
6367_LT_EOF
6368	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6369	  cat <<\_LT_EOF >> conftest.$ac_ext
6370  {0, (void *) 0}
6371};
6372
6373/* This works around a problem in FreeBSD linker */
6374#ifdef FREEBSD_WORKAROUND
6375static const void *lt_preloaded_setup() {
6376  return lt__PROGRAM__LTX_preloaded_symbols;
6377}
6378#endif
6379
6380#ifdef __cplusplus
6381}
6382#endif
6383_LT_EOF
6384	  # Now try linking the two files.
6385	  mv conftest.$ac_objext conftstm.$ac_objext
6386	  lt_save_LIBS="$LIBS"
6387	  lt_save_CFLAGS="$CFLAGS"
6388	  LIBS="conftstm.$ac_objext"
6389	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6390	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391  (eval $ac_link) 2>&5
6392  ac_status=$?
6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6395	    pipe_works=yes
6396	  fi
6397	  LIBS="$lt_save_LIBS"
6398	  CFLAGS="$lt_save_CFLAGS"
6399	else
6400	  echo "cannot find nm_test_func in $nlist" >&5
6401	fi
6402      else
6403	echo "cannot find nm_test_var in $nlist" >&5
6404      fi
6405    else
6406      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6407    fi
6408  else
6409    echo "$progname: failed program was:" >&5
6410    cat conftest.$ac_ext >&5
6411  fi
6412  rm -f conftest* conftst*
6413
6414  # Do not use the global_symbol_pipe unless it works.
6415  if test "$pipe_works" = yes; then
6416    break
6417  else
6418    lt_cv_sys_global_symbol_pipe=
6419  fi
6420done
6421
6422fi
6423
6424if test -z "$lt_cv_sys_global_symbol_pipe"; then
6425  lt_cv_sys_global_symbol_to_cdecl=
6426fi
6427if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6428  echo "$as_me:$LINENO: result: failed" >&5
6429echo "${ECHO_T}failed" >&6
6430else
6431  echo "$as_me:$LINENO: result: ok" >&5
6432echo "${ECHO_T}ok" >&6
6433fi
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6452if test "${enable_libtool_lock+set}" = set; then
6453  enableval="$enable_libtool_lock"
6454
6455fi;
6456test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6457
6458# Some flags need to be propagated to the compiler or linker for good
6459# libtool support.
6460case $host in
6461ia64-*-hpux*)
6462  # Find out which ABI we are using.
6463  echo 'int i;' > conftest.$ac_ext
6464  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465  (eval $ac_compile) 2>&5
6466  ac_status=$?
6467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468  (exit $ac_status); }; then
6469    case `/usr/bin/file conftest.$ac_objext` in
6470      *ELF-32*)
6471	HPUX_IA64_MODE="32"
6472	;;
6473      *ELF-64*)
6474	HPUX_IA64_MODE="64"
6475	;;
6476    esac
6477  fi
6478  rm -rf conftest*
6479  ;;
6480*-*-irix6*)
6481  # Find out which ABI we are using.
6482  echo '#line 6482 "configure"' > conftest.$ac_ext
6483  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484  (eval $ac_compile) 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }; then
6488    if test "$lt_cv_prog_gnu_ld" = yes; then
6489      case `/usr/bin/file conftest.$ac_objext` in
6490	*32-bit*)
6491	  LD="${LD-ld} -melf32bsmip"
6492	  ;;
6493	*N32*)
6494	  LD="${LD-ld} -melf32bmipn32"
6495	  ;;
6496	*64-bit*)
6497	  LD="${LD-ld} -melf64bmip"
6498	;;
6499      esac
6500    else
6501      case `/usr/bin/file conftest.$ac_objext` in
6502	*32-bit*)
6503	  LD="${LD-ld} -32"
6504	  ;;
6505	*N32*)
6506	  LD="${LD-ld} -n32"
6507	  ;;
6508	*64-bit*)
6509	  LD="${LD-ld} -64"
6510	  ;;
6511      esac
6512    fi
6513  fi
6514  rm -rf conftest*
6515  ;;
6516
6517x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6518s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6519  # Find out which ABI we are using.
6520  echo 'int i;' > conftest.$ac_ext
6521  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522  (eval $ac_compile) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); }; then
6526    case `/usr/bin/file conftest.o` in
6527      *32-bit*)
6528	case $host in
6529	  x86_64-*kfreebsd*-gnu)
6530	    LD="${LD-ld} -m elf_i386_fbsd"
6531	    ;;
6532	  x86_64-*linux*)
6533	    LD="${LD-ld} -m elf_i386"
6534	    ;;
6535	  ppc64-*linux*|powerpc64-*linux*)
6536	    LD="${LD-ld} -m elf32ppclinux"
6537	    ;;
6538	  s390x-*linux*)
6539	    LD="${LD-ld} -m elf_s390"
6540	    ;;
6541	  sparc64-*linux*)
6542	    LD="${LD-ld} -m elf32_sparc"
6543	    ;;
6544	esac
6545	;;
6546      *64-bit*)
6547	case $host in
6548	  x86_64-*kfreebsd*-gnu)
6549	    LD="${LD-ld} -m elf_x86_64_fbsd"
6550	    ;;
6551	  x86_64-*linux*)
6552	    LD="${LD-ld} -m elf_x86_64"
6553	    ;;
6554	  ppc*-*linux*|powerpc*-*linux*)
6555	    LD="${LD-ld} -m elf64ppc"
6556	    ;;
6557	  s390*-*linux*|s390*-*tpf*)
6558	    LD="${LD-ld} -m elf64_s390"
6559	    ;;
6560	  sparc*-*linux*)
6561	    LD="${LD-ld} -m elf64_sparc"
6562	    ;;
6563	esac
6564	;;
6565    esac
6566  fi
6567  rm -rf conftest*
6568  ;;
6569
6570*-*-sco3.2v5*)
6571  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6572  SAVE_CFLAGS="$CFLAGS"
6573  CFLAGS="$CFLAGS -belf"
6574  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6575echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6576if test "${lt_cv_cc_needs_belf+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  ac_ext=c
6580ac_cpp='$CPP $CPPFLAGS'
6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585     cat >conftest.$ac_ext <<_ACEOF
6586/* confdefs.h.  */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h.  */
6591
6592int
6593main ()
6594{
6595
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } &&
6609	 { ac_try='test -z "$ac_c_werror_flag"
6610			 || test ! -s conftest.err'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; } &&
6616	 { ac_try='test -s conftest$ac_exeext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  lt_cv_cc_needs_belf=yes
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627lt_cv_cc_needs_belf=no
6628fi
6629rm -f conftest.err conftest.$ac_objext \
6630      conftest$ac_exeext conftest.$ac_ext
6631     ac_ext=c
6632ac_cpp='$CPP $CPPFLAGS'
6633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637fi
6638echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6639echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6640  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6641    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6642    CFLAGS="$SAVE_CFLAGS"
6643  fi
6644  ;;
6645sparc*-*solaris*)
6646  # Find out which ABI we are using.
6647  echo 'int i;' > conftest.$ac_ext
6648  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649  (eval $ac_compile) 2>&5
6650  ac_status=$?
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); }; then
6653    case `/usr/bin/file conftest.o` in
6654    *64-bit*)
6655      case $lt_cv_prog_gnu_ld in
6656      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6657      *)    LD="${LD-ld} -64" ;;
6658      esac
6659      ;;
6660    esac
6661  fi
6662  rm -rf conftest*
6663  ;;
6664esac
6665
6666need_locks="$enable_libtool_lock"
6667
6668
6669for ac_header in dlfcn.h
6670do
6671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6672echo "$as_me:$LINENO: checking for $ac_header" >&5
6673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h.  */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h.  */
6683$ac_includes_default
6684
6685#include <$ac_header>
6686_ACEOF
6687rm -f conftest.$ac_objext
6688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } &&
6696	 { ac_try='test -z "$ac_c_werror_flag"
6697			 || test ! -s conftest.err'
6698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699  (eval $ac_try) 2>&5
6700  ac_status=$?
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); }; } &&
6703	 { ac_try='test -s conftest.$ac_objext'
6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705  (eval $ac_try) 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; }; then
6709  eval "$as_ac_Header=yes"
6710else
6711  echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714eval "$as_ac_Header=no"
6715fi
6716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi
6718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720if test `eval echo '${'$as_ac_Header'}'` = yes; then
6721  cat >>confdefs.h <<_ACEOF
6722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723_ACEOF
6724
6725fi
6726
6727done
6728
6729
6730
6731# This can be used to rebuild libtool when needed
6732LIBTOOL_DEPS="$ltmain"
6733
6734# Always use our own libtool.
6735LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761test -z "$LN_S" && LN_S="ln -s"
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776if test -n "${ZSH_VERSION+set}" ; then
6777   setopt NO_GLOB_SUBST
6778fi
6779
6780echo "$as_me:$LINENO: checking for objdir" >&5
6781echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6782if test "${lt_cv_objdir+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  rm -f .libs 2>/dev/null
6786mkdir .libs 2>/dev/null
6787if test -d .libs; then
6788  lt_cv_objdir=.libs
6789else
6790  # MS-DOS does not allow filenames that begin with a dot.
6791  lt_cv_objdir=_libs
6792fi
6793rmdir .libs 2>/dev/null
6794fi
6795echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6796echo "${ECHO_T}$lt_cv_objdir" >&6
6797objdir=$lt_cv_objdir
6798
6799
6800
6801
6802
6803cat >>confdefs.h <<_ACEOF
6804#define LT_OBJDIR "$lt_cv_objdir/"
6805_ACEOF
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823case $host_os in
6824aix3*)
6825  # AIX sometimes has problems with the GCC collect2 program.  For some
6826  # reason, if we set the COLLECT_NAMES environment variable, the problems
6827  # vanish in a puff of smoke.
6828  if test "X${COLLECT_NAMES+set}" != Xset; then
6829    COLLECT_NAMES=
6830    export COLLECT_NAMES
6831  fi
6832  ;;
6833esac
6834
6835# Sed substitution that helps us do robust quoting.  It backslashifies
6836# metacharacters that are still active within double-quoted strings.
6837sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6838
6839# Same as above, but do not quote variable references.
6840double_quote_subst='s/\(["`\\]\)/\\\1/g'
6841
6842# Sed substitution to delay expansion of an escaped shell variable in a
6843# double_quote_subst'ed string.
6844delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6845
6846# Sed substitution to delay expansion of an escaped single quote.
6847delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6848
6849# Sed substitution to avoid accidental globbing in evaled expressions
6850no_glob_subst='s/\*/\\\*/g'
6851
6852# Global variables:
6853ofile=libtool
6854can_build_shared=yes
6855
6856# All known linkers require a `.a' archive for static linking (except MSVC,
6857# which needs '.lib').
6858libext=a
6859
6860with_gnu_ld="$lt_cv_prog_gnu_ld"
6861
6862old_CC="$CC"
6863old_CFLAGS="$CFLAGS"
6864
6865# Set sane defaults for various variables
6866test -z "$CC" && CC=cc
6867test -z "$LTCC" && LTCC=$CC
6868test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6869test -z "$LD" && LD=ld
6870test -z "$ac_objext" && ac_objext=o
6871
6872for cc_temp in $compiler""; do
6873  case $cc_temp in
6874    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6875    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6876    \-*) ;;
6877    *) break;;
6878  esac
6879done
6880cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6881
6882
6883# Only perform the check for file, if the check method requires it
6884test -z "$MAGIC_CMD" && MAGIC_CMD=file
6885case $deplibs_check_method in
6886file_magic*)
6887  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6888    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6889echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6890if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  case $MAGIC_CMD in
6894[\\/*] |  ?:[\\/]*)
6895  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6896  ;;
6897*)
6898  lt_save_MAGIC_CMD="$MAGIC_CMD"
6899  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6900  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6901  for ac_dir in $ac_dummy; do
6902    IFS="$lt_save_ifs"
6903    test -z "$ac_dir" && ac_dir=.
6904    if test -f $ac_dir/${ac_tool_prefix}file; then
6905      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6906      if test -n "$file_magic_test_file"; then
6907	case $deplibs_check_method in
6908	"file_magic "*)
6909	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6910	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6911	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6912	    $EGREP "$file_magic_regex" > /dev/null; then
6913	    :
6914	  else
6915	    cat <<_LT_EOF 1>&2
6916
6917*** Warning: the command libtool uses to detect shared libraries,
6918*** $file_magic_cmd, produces output that libtool cannot recognize.
6919*** The result is that libtool may fail to recognize shared libraries
6920*** as such.  This will affect the creation of libtool libraries that
6921*** depend on shared libraries, but programs linked with such libtool
6922*** libraries will work regardless of this problem.  Nevertheless, you
6923*** may want to report the problem to your system manager and/or to
6924*** bug-libtool@gnu.org
6925
6926_LT_EOF
6927	  fi ;;
6928	esac
6929      fi
6930      break
6931    fi
6932  done
6933  IFS="$lt_save_ifs"
6934  MAGIC_CMD="$lt_save_MAGIC_CMD"
6935  ;;
6936esac
6937fi
6938
6939MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940if test -n "$MAGIC_CMD"; then
6941  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6942echo "${ECHO_T}$MAGIC_CMD" >&6
6943else
6944  echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
6946fi
6947
6948
6949
6950
6951
6952if test -z "$lt_cv_path_MAGIC_CMD"; then
6953  if test -n "$ac_tool_prefix"; then
6954    echo "$as_me:$LINENO: checking for file" >&5
6955echo $ECHO_N "checking for file... $ECHO_C" >&6
6956if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  case $MAGIC_CMD in
6960[\\/*] |  ?:[\\/]*)
6961  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6962  ;;
6963*)
6964  lt_save_MAGIC_CMD="$MAGIC_CMD"
6965  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6967  for ac_dir in $ac_dummy; do
6968    IFS="$lt_save_ifs"
6969    test -z "$ac_dir" && ac_dir=.
6970    if test -f $ac_dir/file; then
6971      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6972      if test -n "$file_magic_test_file"; then
6973	case $deplibs_check_method in
6974	"file_magic "*)
6975	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6976	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6977	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6978	    $EGREP "$file_magic_regex" > /dev/null; then
6979	    :
6980	  else
6981	    cat <<_LT_EOF 1>&2
6982
6983*** Warning: the command libtool uses to detect shared libraries,
6984*** $file_magic_cmd, produces output that libtool cannot recognize.
6985*** The result is that libtool may fail to recognize shared libraries
6986*** as such.  This will affect the creation of libtool libraries that
6987*** depend on shared libraries, but programs linked with such libtool
6988*** libraries will work regardless of this problem.  Nevertheless, you
6989*** may want to report the problem to your system manager and/or to
6990*** bug-libtool@gnu.org
6991
6992_LT_EOF
6993	  fi ;;
6994	esac
6995      fi
6996      break
6997    fi
6998  done
6999  IFS="$lt_save_ifs"
7000  MAGIC_CMD="$lt_save_MAGIC_CMD"
7001  ;;
7002esac
7003fi
7004
7005MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7006if test -n "$MAGIC_CMD"; then
7007  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7008echo "${ECHO_T}$MAGIC_CMD" >&6
7009else
7010  echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
7012fi
7013
7014
7015  else
7016    MAGIC_CMD=:
7017  fi
7018fi
7019
7020  fi
7021  ;;
7022esac
7023
7024# Use C for the default configuration in the libtool script
7025
7026lt_save_CC="$CC"
7027ac_ext=c
7028ac_cpp='$CPP $CPPFLAGS'
7029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033
7034# Source file extension for C test sources.
7035ac_ext=c
7036
7037# Object file extension for compiled C test sources.
7038objext=o
7039objext=$objext
7040
7041# Code to be used in simple compile tests
7042lt_simple_compile_test_code="int some_variable = 0;"
7043
7044# Code to be used in simple link tests
7045lt_simple_link_test_code='int main(){return(0);}'
7046
7047
7048
7049
7050
7051
7052
7053# If no C compiler was specified, use CC.
7054LTCC=${LTCC-"$CC"}
7055
7056# If no C compiler flags were specified, use CFLAGS.
7057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7058
7059# Allow CC to be a program name with arguments.
7060compiler=$CC
7061
7062# Save the default compiler, since it gets overwritten when the other
7063# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7064compiler_DEFAULT=$CC
7065
7066# save warnings/boilerplate of simple test code
7067ac_outfile=conftest.$ac_objext
7068echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7070_lt_compiler_boilerplate=`cat conftest.err`
7071$RM conftest*
7072
7073ac_outfile=conftest.$ac_objext
7074echo "$lt_simple_link_test_code" >conftest.$ac_ext
7075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7076_lt_linker_boilerplate=`cat conftest.err`
7077$RM conftest*
7078
7079
7080## CAVEAT EMPTOR:
7081## There is no encapsulation within the following macros, do not change
7082## the running order or otherwise move them around unless you know exactly
7083## what you are doing...
7084if test -n "$compiler"; then
7085
7086lt_prog_compiler_no_builtin_flag=
7087
7088if test "$GCC" = yes; then
7089  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7090
7091  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7092echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7093if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096  lt_cv_prog_compiler_rtti_exceptions=no
7097   ac_outfile=conftest.$ac_objext
7098   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7099   lt_compiler_flag="-fno-rtti -fno-exceptions"
7100   # Insert the option either (1) after the last *FLAGS variable, or
7101   # (2) before a word containing "conftest.", or (3) at the end.
7102   # Note that $ac_compile itself does not contain backslashes and begins
7103   # with a dollar sign (not a hyphen), so the echo should work correctly.
7104   # The option is referenced via a variable to avoid confusing sed.
7105   lt_compile=`echo "$ac_compile" | $SED \
7106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7108   -e 's:$: $lt_compiler_flag:'`
7109   (eval echo "\"\$as_me:7109: $lt_compile\"" >&5)
7110   (eval "$lt_compile" 2>conftest.err)
7111   ac_status=$?
7112   cat conftest.err >&5
7113   echo "$as_me:7113: \$? = $ac_status" >&5
7114   if (exit $ac_status) && test -s "$ac_outfile"; then
7115     # The compiler can only warn and ignore the option if not recognized
7116     # So say no if there are warnings other than the usual output.
7117     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7118     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7119     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7120       lt_cv_prog_compiler_rtti_exceptions=yes
7121     fi
7122   fi
7123   $RM conftest*
7124
7125fi
7126echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7127echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7128
7129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7130    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7131else
7132    :
7133fi
7134
7135fi
7136
7137
7138
7139
7140
7141
7142  lt_prog_compiler_wl=
7143lt_prog_compiler_pic=
7144lt_prog_compiler_static=
7145
7146echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7147echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7148
7149  if test "$GCC" = yes; then
7150    lt_prog_compiler_wl='-Wl,'
7151    lt_prog_compiler_static='-static'
7152
7153    case $host_os in
7154      aix*)
7155      # All AIX code is PIC.
7156      if test "$host_cpu" = ia64; then
7157	# AIX 5 now supports IA64 processor
7158	lt_prog_compiler_static='-Bstatic'
7159      fi
7160      ;;
7161
7162    amigaos*)
7163      if test "$host_cpu" = m68k; then
7164        # FIXME: we need at least 68020 code to build shared libraries, but
7165        # adding the `-m68020' flag to GCC prevents building anything better,
7166        # like `-m68040'.
7167        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7168      fi
7169      ;;
7170
7171    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7172      # PIC is the default for these OSes.
7173      ;;
7174
7175    mingw* | cygwin* | pw32* | os2*)
7176      # This hack is so that the source file can tell whether it is being
7177      # built for inclusion in a dll (and should export symbols for example).
7178      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7179      # (--disable-auto-import) libraries
7180      lt_prog_compiler_pic='-DDLL_EXPORT'
7181      ;;
7182
7183    darwin* | rhapsody*)
7184      # PIC is the default on this platform
7185      # Common symbols not allowed in MH_DYLIB files
7186      lt_prog_compiler_pic='-fno-common'
7187      ;;
7188
7189    hpux*)
7190      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7191      # not for PA HP-UX.
7192      case $host_cpu in
7193      hppa*64*|ia64*)
7194	# +Z the default
7195	;;
7196      *)
7197	lt_prog_compiler_pic='-fPIC'
7198	;;
7199      esac
7200      ;;
7201
7202    interix[3-9]*)
7203      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7204      # Instead, we relocate shared libraries at runtime.
7205      ;;
7206
7207    msdosdjgpp*)
7208      # Just because we use GCC doesn't mean we suddenly get shared libraries
7209      # on systems that don't support them.
7210      lt_prog_compiler_can_build_shared=no
7211      enable_shared=no
7212      ;;
7213
7214    *nto* | *qnx*)
7215      # QNX uses GNU C++, but need to define -shared option too, otherwise
7216      # it will coredump.
7217      lt_prog_compiler_pic='-fPIC -shared'
7218      ;;
7219
7220    sysv4*MP*)
7221      if test -d /usr/nec; then
7222	lt_prog_compiler_pic=-Kconform_pic
7223      fi
7224      ;;
7225
7226    *)
7227      lt_prog_compiler_pic='-fPIC'
7228      ;;
7229    esac
7230  else
7231    # PORTME Check for flag to pass linker flags through the system compiler.
7232    case $host_os in
7233    aix*)
7234      lt_prog_compiler_wl='-Wl,'
7235      if test "$host_cpu" = ia64; then
7236	# AIX 5 now supports IA64 processor
7237	lt_prog_compiler_static='-Bstatic'
7238      else
7239	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7240      fi
7241      ;;
7242    darwin*)
7243      # PIC is the default on this platform
7244      # Common symbols not allowed in MH_DYLIB files
7245      case $cc_basename in
7246      xlc*)
7247        lt_prog_compiler_pic='-qnocommon'
7248        lt_prog_compiler_wl='-Wl,'
7249        ;;
7250      esac
7251      ;;
7252
7253    mingw* | cygwin* | pw32* | os2*)
7254      # This hack is so that the source file can tell whether it is being
7255      # built for inclusion in a dll (and should export symbols for example).
7256      lt_prog_compiler_pic='-DDLL_EXPORT'
7257      ;;
7258
7259    hpux9* | hpux10* | hpux11*)
7260      lt_prog_compiler_wl='-Wl,'
7261      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7262      # not for PA HP-UX.
7263      case $host_cpu in
7264      hppa*64*|ia64*)
7265	# +Z the default
7266	;;
7267      *)
7268	lt_prog_compiler_pic='+Z'
7269	;;
7270      esac
7271      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7272      lt_prog_compiler_static='${wl}-a ${wl}archive'
7273      ;;
7274
7275    irix5* | irix6* | nonstopux*)
7276      lt_prog_compiler_wl='-Wl,'
7277      # PIC (with -KPIC) is the default.
7278      lt_prog_compiler_static='-non_shared'
7279      ;;
7280
7281    linux* | k*bsd*-gnu)
7282      case $cc_basename in
7283      icc* | ecc*)
7284	lt_prog_compiler_wl='-Wl,'
7285	lt_prog_compiler_pic='-KPIC'
7286	lt_prog_compiler_static='-static'
7287        ;;
7288      pgcc* | pgf77* | pgf90* | pgf95*)
7289        # Portland Group compilers (*not* the Pentium gcc compiler,
7290	# which looks to be a dead project)
7291	lt_prog_compiler_wl='-Wl,'
7292	lt_prog_compiler_pic='-fpic'
7293	lt_prog_compiler_static='-Bstatic'
7294        ;;
7295      ccc*)
7296        lt_prog_compiler_wl='-Wl,'
7297        # All Alpha code is PIC.
7298        lt_prog_compiler_static='-non_shared'
7299        ;;
7300      *)
7301	case `$CC -V 2>&1 | sed 5q` in
7302	*Sun\ C*)
7303	  # Sun C 5.9
7304	  lt_prog_compiler_pic='-KPIC'
7305	  lt_prog_compiler_static='-Bstatic'
7306	  lt_prog_compiler_wl='-Wl,'
7307	  ;;
7308	*Sun\ F*)
7309	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7310	  lt_prog_compiler_pic='-KPIC'
7311	  lt_prog_compiler_static='-Bstatic'
7312	  lt_prog_compiler_wl=''
7313	  ;;
7314	esac
7315	;;
7316      esac
7317      ;;
7318
7319    newsos6)
7320      lt_prog_compiler_pic='-KPIC'
7321      lt_prog_compiler_static='-Bstatic'
7322      ;;
7323
7324    *nto* | *qnx*)
7325      # QNX uses GNU C++, but need to define -shared option too, otherwise
7326      # it will coredump.
7327      lt_prog_compiler_pic='-fPIC -shared'
7328      ;;
7329
7330    osf3* | osf4* | osf5*)
7331      lt_prog_compiler_wl='-Wl,'
7332      # All OSF/1 code is PIC.
7333      lt_prog_compiler_static='-non_shared'
7334      ;;
7335
7336    rdos*)
7337      lt_prog_compiler_static='-non_shared'
7338      ;;
7339
7340    solaris*)
7341      lt_prog_compiler_pic='-KPIC'
7342      lt_prog_compiler_static='-Bstatic'
7343      case $cc_basename in
7344      f77* | f90* | f95*)
7345	lt_prog_compiler_wl='-Qoption ld ';;
7346      *)
7347	lt_prog_compiler_wl='-Wl,';;
7348      esac
7349      ;;
7350
7351    sunos4*)
7352      lt_prog_compiler_wl='-Qoption ld '
7353      lt_prog_compiler_pic='-PIC'
7354      lt_prog_compiler_static='-Bstatic'
7355      ;;
7356
7357    sysv4 | sysv4.2uw2* | sysv4.3*)
7358      lt_prog_compiler_wl='-Wl,'
7359      lt_prog_compiler_pic='-KPIC'
7360      lt_prog_compiler_static='-Bstatic'
7361      ;;
7362
7363    sysv4*MP*)
7364      if test -d /usr/nec ;then
7365	lt_prog_compiler_pic='-Kconform_pic'
7366	lt_prog_compiler_static='-Bstatic'
7367      fi
7368      ;;
7369
7370    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7371      lt_prog_compiler_wl='-Wl,'
7372      lt_prog_compiler_pic='-KPIC'
7373      lt_prog_compiler_static='-Bstatic'
7374      ;;
7375
7376    unicos*)
7377      lt_prog_compiler_wl='-Wl,'
7378      lt_prog_compiler_can_build_shared=no
7379      ;;
7380
7381    uts4*)
7382      lt_prog_compiler_pic='-pic'
7383      lt_prog_compiler_static='-Bstatic'
7384      ;;
7385
7386    *)
7387      lt_prog_compiler_can_build_shared=no
7388      ;;
7389    esac
7390  fi
7391
7392case $host_os in
7393  # For platforms which do not support PIC, -DPIC is meaningless:
7394  *djgpp*)
7395    lt_prog_compiler_pic=
7396    ;;
7397  *)
7398    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7399    ;;
7400esac
7401echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7402echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7403
7404
7405
7406
7407
7408
7409#
7410# Check to make sure the PIC flag actually works.
7411#
7412if test -n "$lt_prog_compiler_pic"; then
7413  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7415if test "${lt_prog_compiler_pic_works+set}" = set; then
7416  echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418  lt_prog_compiler_pic_works=no
7419   ac_outfile=conftest.$ac_objext
7420   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7421   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7422   # Insert the option either (1) after the last *FLAGS variable, or
7423   # (2) before a word containing "conftest.", or (3) at the end.
7424   # Note that $ac_compile itself does not contain backslashes and begins
7425   # with a dollar sign (not a hyphen), so the echo should work correctly.
7426   # The option is referenced via a variable to avoid confusing sed.
7427   lt_compile=`echo "$ac_compile" | $SED \
7428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7430   -e 's:$: $lt_compiler_flag:'`
7431   (eval echo "\"\$as_me:7431: $lt_compile\"" >&5)
7432   (eval "$lt_compile" 2>conftest.err)
7433   ac_status=$?
7434   cat conftest.err >&5
7435   echo "$as_me:7435: \$? = $ac_status" >&5
7436   if (exit $ac_status) && test -s "$ac_outfile"; then
7437     # The compiler can only warn and ignore the option if not recognized
7438     # So say no if there are warnings other than the usual output.
7439     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7440     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7442       lt_prog_compiler_pic_works=yes
7443     fi
7444   fi
7445   $RM conftest*
7446
7447fi
7448echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7449echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7450
7451if test x"$lt_prog_compiler_pic_works" = xyes; then
7452    case $lt_prog_compiler_pic in
7453     "" | " "*) ;;
7454     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7455     esac
7456else
7457    lt_prog_compiler_pic=
7458     lt_prog_compiler_can_build_shared=no
7459fi
7460
7461fi
7462
7463
7464
7465
7466
7467
7468#
7469# Check to make sure the static flag actually works.
7470#
7471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7472echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7473echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7474if test "${lt_prog_compiler_static_works+set}" = set; then
7475  echo $ECHO_N "(cached) $ECHO_C" >&6
7476else
7477  lt_prog_compiler_static_works=no
7478   save_LDFLAGS="$LDFLAGS"
7479   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7480   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7481   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7482     # The linker can only warn and ignore the option if not recognized
7483     # So say no if there are warnings
7484     if test -s conftest.err; then
7485       # Append any errors to the config.log.
7486       cat conftest.err 1>&5
7487       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7488       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7489       if diff conftest.exp conftest.er2 >/dev/null; then
7490         lt_prog_compiler_static_works=yes
7491       fi
7492     else
7493       lt_prog_compiler_static_works=yes
7494     fi
7495   fi
7496   $RM conftest*
7497   LDFLAGS="$save_LDFLAGS"
7498
7499fi
7500echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7501echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7502
7503if test x"$lt_prog_compiler_static_works" = xyes; then
7504    :
7505else
7506    lt_prog_compiler_static=
7507fi
7508
7509
7510
7511
7512
7513
7514
7515  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7517if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7518  echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520  lt_cv_prog_compiler_c_o=no
7521   $RM -r conftest 2>/dev/null
7522   mkdir conftest
7523   cd conftest
7524   mkdir out
7525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7526
7527   lt_compiler_flag="-o out/conftest2.$ac_objext"
7528   # Insert the option either (1) after the last *FLAGS variable, or
7529   # (2) before a word containing "conftest.", or (3) at the end.
7530   # Note that $ac_compile itself does not contain backslashes and begins
7531   # with a dollar sign (not a hyphen), so the echo should work correctly.
7532   lt_compile=`echo "$ac_compile" | $SED \
7533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7535   -e 's:$: $lt_compiler_flag:'`
7536   (eval echo "\"\$as_me:7536: $lt_compile\"" >&5)
7537   (eval "$lt_compile" 2>out/conftest.err)
7538   ac_status=$?
7539   cat out/conftest.err >&5
7540   echo "$as_me:7540: \$? = $ac_status" >&5
7541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7542   then
7543     # The compiler can only warn and ignore the option if not recognized
7544     # So say no if there are warnings
7545     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7546     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7547     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7548       lt_cv_prog_compiler_c_o=yes
7549     fi
7550   fi
7551   chmod u+w . 2>&5
7552   $RM conftest*
7553   # SGI C++ compiler will create directory out/ii_files/ for
7554   # template instantiation
7555   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7556   $RM out/* && rmdir out
7557   cd ..
7558   $RM -r conftest
7559   $RM conftest*
7560
7561fi
7562echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7563echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7564
7565
7566
7567
7568
7569
7570  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7572if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7573  echo $ECHO_N "(cached) $ECHO_C" >&6
7574else
7575  lt_cv_prog_compiler_c_o=no
7576   $RM -r conftest 2>/dev/null
7577   mkdir conftest
7578   cd conftest
7579   mkdir out
7580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581
7582   lt_compiler_flag="-o out/conftest2.$ac_objext"
7583   # Insert the option either (1) after the last *FLAGS variable, or
7584   # (2) before a word containing "conftest.", or (3) at the end.
7585   # Note that $ac_compile itself does not contain backslashes and begins
7586   # with a dollar sign (not a hyphen), so the echo should work correctly.
7587   lt_compile=`echo "$ac_compile" | $SED \
7588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590   -e 's:$: $lt_compiler_flag:'`
7591   (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592   (eval "$lt_compile" 2>out/conftest.err)
7593   ac_status=$?
7594   cat out/conftest.err >&5
7595   echo "$as_me:7595: \$? = $ac_status" >&5
7596   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7597   then
7598     # The compiler can only warn and ignore the option if not recognized
7599     # So say no if there are warnings
7600     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7601     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7602     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7603       lt_cv_prog_compiler_c_o=yes
7604     fi
7605   fi
7606   chmod u+w . 2>&5
7607   $RM conftest*
7608   # SGI C++ compiler will create directory out/ii_files/ for
7609   # template instantiation
7610   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7611   $RM out/* && rmdir out
7612   cd ..
7613   $RM -r conftest
7614   $RM conftest*
7615
7616fi
7617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7619
7620
7621
7622
7623hard_links="nottested"
7624if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7625  # do not overwrite the value of need_locks provided by the user
7626  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7628  hard_links=yes
7629  $RM conftest*
7630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7631  touch conftest.a
7632  ln conftest.a conftest.b 2>&5 || hard_links=no
7633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7634  echo "$as_me:$LINENO: result: $hard_links" >&5
7635echo "${ECHO_T}$hard_links" >&6
7636  if test "$hard_links" = no; then
7637    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7639    need_locks=warn
7640  fi
7641else
7642  need_locks=no
7643fi
7644
7645
7646
7647
7648
7649
7650  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7651echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7652
7653  runpath_var=
7654  allow_undefined_flag=
7655  always_export_symbols=no
7656  archive_cmds=
7657  archive_expsym_cmds=
7658  compiler_needs_object=no
7659  enable_shared_with_static_runtimes=no
7660  export_dynamic_flag_spec=
7661  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7662  hardcode_automatic=no
7663  hardcode_direct=no
7664  hardcode_direct_absolute=no
7665  hardcode_libdir_flag_spec=
7666  hardcode_libdir_flag_spec_ld=
7667  hardcode_libdir_separator=
7668  hardcode_minus_L=no
7669  hardcode_shlibpath_var=unsupported
7670  inherit_rpath=no
7671  link_all_deplibs=unknown
7672  module_cmds=
7673  module_expsym_cmds=
7674  old_archive_from_new_cmds=
7675  old_archive_from_expsyms_cmds=
7676  thread_safe_flag_spec=
7677  whole_archive_flag_spec=
7678  # include_expsyms should be a list of space-separated symbols to be *always*
7679  # included in the symbol list
7680  include_expsyms=
7681  # exclude_expsyms can be an extended regexp of symbols to exclude
7682  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7683  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7684  # as well as any symbol that contains `d'.
7685  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7686  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7687  # platforms (ab)use it in PIC code, but their linkers get confused if
7688  # the symbol is explicitly referenced.  Since portable code cannot
7689  # rely on this symbol name, it's probably fine to never include it in
7690  # preloaded symbol tables.
7691  extract_expsyms_cmds=
7692
7693  case $host_os in
7694  cygwin* | mingw* | pw32*)
7695    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7696    # When not using gcc, we currently assume that we are using
7697    # Microsoft Visual C++.
7698    if test "$GCC" != yes; then
7699      with_gnu_ld=no
7700    fi
7701    ;;
7702  interix*)
7703    # we just hope/assume this is gcc and not c89 (= MSVC++)
7704    with_gnu_ld=yes
7705    ;;
7706  openbsd*)
7707    with_gnu_ld=no
7708    ;;
7709  esac
7710
7711  ld_shlibs=yes
7712  if test "$with_gnu_ld" = yes; then
7713    # If archive_cmds runs LD, not CC, wlarc should be empty
7714    wlarc='${wl}'
7715
7716    # Set some defaults for GNU ld with shared library support. These
7717    # are reset later if shared libraries are not supported. Putting them
7718    # here allows them to be overridden if necessary.
7719    runpath_var=LD_RUN_PATH
7720    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7721    export_dynamic_flag_spec='${wl}--export-dynamic'
7722    # ancient GNU ld didn't support --whole-archive et. al.
7723    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7724      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7725    else
7726      whole_archive_flag_spec=
7727    fi
7728    supports_anon_versioning=no
7729    case `$LD -v 2>&1` in
7730      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7731      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7732      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7733      *\ 2.11.*) ;; # other 2.11 versions
7734      *) supports_anon_versioning=yes ;;
7735    esac
7736
7737    # See if GNU ld supports shared libraries.
7738    case $host_os in
7739    aix[3-9]*)
7740      # On AIX/PPC, the GNU linker is very broken
7741      if test "$host_cpu" != ia64; then
7742	ld_shlibs=no
7743	cat <<_LT_EOF 1>&2
7744
7745*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7746*** to be unable to reliably create shared libraries on AIX.
7747*** Therefore, libtool is disabling shared libraries support.  If you
7748*** really care for shared libraries, you may want to modify your PATH
7749*** so that a non-GNU linker is found, and then restart.
7750
7751_LT_EOF
7752      fi
7753      ;;
7754
7755    amigaos*)
7756      if test "$host_cpu" = m68k; then
7757        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)'
7758        hardcode_libdir_flag_spec='-L$libdir'
7759        hardcode_minus_L=yes
7760      fi
7761
7762      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7763      # that the semantics of dynamic libraries on AmigaOS, at least up
7764      # to version 4, is to share data among multiple programs linked
7765      # with the same dynamic library.  Since this doesn't match the
7766      # behavior of shared libraries on other platforms, we can't use
7767      # them.
7768      ld_shlibs=no
7769      ;;
7770
7771    beos*)
7772      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7773	allow_undefined_flag=unsupported
7774	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7775	# support --undefined.  This deserves some investigation.  FIXME
7776	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777      else
7778	ld_shlibs=no
7779      fi
7780      ;;
7781
7782    cygwin* | mingw* | pw32*)
7783      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7784      # as there is no search path for DLLs.
7785      hardcode_libdir_flag_spec='-L$libdir'
7786      allow_undefined_flag=unsupported
7787      always_export_symbols=no
7788      enable_shared_with_static_runtimes=yes
7789      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7790
7791      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7792        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7793	# If the export-symbols file already is a .def file (1st line
7794	# is EXPORTS), use it as is; otherwise, prepend...
7795	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7796	  cp $export_symbols $output_objdir/$soname.def;
7797	else
7798	  echo EXPORTS > $output_objdir/$soname.def;
7799	  cat $export_symbols >> $output_objdir/$soname.def;
7800	fi~
7801	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7802      else
7803	ld_shlibs=no
7804      fi
7805      ;;
7806
7807    interix[3-9]*)
7808      hardcode_direct=no
7809      hardcode_shlibpath_var=no
7810      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7811      export_dynamic_flag_spec='${wl}-E'
7812      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7813      # Instead, shared libraries are loaded at an image base (0x10000000 by
7814      # default) and relocated if they conflict, which is a slow very memory
7815      # consuming and fragmenting process.  To avoid this, we pick a random,
7816      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7817      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7818      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7819      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'
7820      ;;
7821
7822    gnu* | linux* | tpf* | k*bsd*-gnu)
7823      tmp_diet=no
7824      if test "$host_os" = linux-dietlibc; then
7825	case $cc_basename in
7826	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7827	esac
7828      fi
7829      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7830	 && test "$tmp_diet" = no
7831      then
7832	tmp_addflag=
7833	case $cc_basename,$host_cpu in
7834        pgcc*)				# Portland Group C compiler
7835	  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'
7836	  tmp_addflag=' $pic_flag'
7837	  ;;
7838	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7839	  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'
7840	  tmp_addflag=' $pic_flag -Mnomain' ;;
7841	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7842	  tmp_addflag=' -i_dynamic' ;;
7843	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7844	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7845	ifc* | ifort*)			# Intel Fortran compiler
7846	  tmp_addflag=' -nofor_main' ;;
7847	esac
7848	case `$CC -V 2>&1 | sed 5q` in
7849	*Sun\ C*)			# Sun C 5.9
7850	  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'
7851	  compiler_needs_object=yes
7852	  tmp_sharedflag='-G' ;;
7853	*Sun\ F*)			# Sun Fortran 8.3
7854	  tmp_sharedflag='-G' ;;
7855	*)
7856	  tmp_sharedflag='-shared' ;;
7857	esac
7858	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7859
7860        if test "x$supports_anon_versioning" = xyes; then
7861          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7862	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7863	    echo "local: *; };" >> $output_objdir/$libname.ver~
7864	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7865        fi
7866      else
7867        ld_shlibs=no
7868      fi
7869      ;;
7870
7871    netbsd*)
7872      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7873	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7874	wlarc=
7875      else
7876	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7878      fi
7879      ;;
7880
7881    solaris*)
7882      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7883	ld_shlibs=no
7884	cat <<_LT_EOF 1>&2
7885
7886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7887*** create shared libraries on Solaris systems.  Therefore, libtool
7888*** is disabling shared libraries support.  We urge you to upgrade GNU
7889*** binutils to release 2.9.1 or newer.  Another option is to modify
7890*** your PATH or compiler configuration so that the native linker is
7891*** used, and then restart.
7892
7893_LT_EOF
7894      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7895	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897      else
7898	ld_shlibs=no
7899      fi
7900      ;;
7901
7902    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7903      case `$LD -v 2>&1` in
7904        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7905	ld_shlibs=no
7906	cat <<_LT_EOF 1>&2
7907
7908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7909*** reliably create shared libraries on SCO systems.  Therefore, libtool
7910*** is disabling shared libraries support.  We urge you to upgrade GNU
7911*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7912*** your PATH or compiler configuration so that the native linker is
7913*** used, and then restart.
7914
7915_LT_EOF
7916	;;
7917	*)
7918	  # For security reasons, it is highly recommended that you always
7919	  # use absolute paths for naming shared libraries, and exclude the
7920	  # DT_RUNPATH tag from executables and libraries.  But doing so
7921	  # requires that you compile everything twice, which is a pain.
7922	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7923	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7924	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7925	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7926	  else
7927	    ld_shlibs=no
7928	  fi
7929	;;
7930      esac
7931      ;;
7932
7933    sunos4*)
7934      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7935      wlarc=
7936      hardcode_direct=yes
7937      hardcode_shlibpath_var=no
7938      ;;
7939
7940    *)
7941      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7942	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7944      else
7945	ld_shlibs=no
7946      fi
7947      ;;
7948    esac
7949
7950    if test "$ld_shlibs" = no; then
7951      runpath_var=
7952      hardcode_libdir_flag_spec=
7953      export_dynamic_flag_spec=
7954      whole_archive_flag_spec=
7955    fi
7956  else
7957    # PORTME fill in a description of your system's linker (not GNU ld)
7958    case $host_os in
7959    aix3*)
7960      allow_undefined_flag=unsupported
7961      always_export_symbols=yes
7962      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'
7963      # Note: this linker hardcodes the directories in LIBPATH if there
7964      # are no directories specified by -L.
7965      hardcode_minus_L=yes
7966      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7967	# Neither direct hardcoding nor static linking is supported with a
7968	# broken collect2.
7969	hardcode_direct=unsupported
7970      fi
7971      ;;
7972
7973    aix[4-9]*)
7974      if test "$host_cpu" = ia64; then
7975	# On IA64, the linker does run time linking by default, so we don't
7976	# have to do anything special.
7977	aix_use_runtimelinking=no
7978	exp_sym_flag='-Bexport'
7979	no_entry_flag=""
7980      else
7981	# If we're using GNU nm, then we don't want the "-C" option.
7982	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7983	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7984	  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'
7985	else
7986	  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'
7987	fi
7988	aix_use_runtimelinking=no
7989
7990	# Test if we are trying to use run time linking or normal
7991	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7992	# need to do runtime linking.
7993	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7994	  for ld_flag in $LDFLAGS; do
7995	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7996	    aix_use_runtimelinking=yes
7997	    break
7998	  fi
7999	  done
8000	  ;;
8001	esac
8002
8003	exp_sym_flag='-bexport'
8004	no_entry_flag='-bnoentry'
8005      fi
8006
8007      # When large executables or shared objects are built, AIX ld can
8008      # have problems creating the table of contents.  If linking a library
8009      # or program results in "error TOC overflow" add -mminimal-toc to
8010      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8011      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8012
8013      archive_cmds=''
8014      hardcode_direct=yes
8015      hardcode_direct_absolute=yes
8016      hardcode_libdir_separator=':'
8017      link_all_deplibs=yes
8018      file_list_spec='${wl}-f,'
8019
8020      if test "$GCC" = yes; then
8021	case $host_os in aix4.[012]|aix4.[012].*)
8022	# We only want to do this on AIX 4.2 and lower, the check
8023	# below for broken collect2 doesn't work under 4.3+
8024	  collect2name=`${CC} -print-prog-name=collect2`
8025	  if test -f "$collect2name" &&
8026	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8027	  then
8028	  # We have reworked collect2
8029	  :
8030	  else
8031	  # We have old collect2
8032	  hardcode_direct=unsupported
8033	  # It fails to find uninstalled libraries when the uninstalled
8034	  # path is not listed in the libpath.  Setting hardcode_minus_L
8035	  # to unsupported forces relinking
8036	  hardcode_minus_L=yes
8037	  hardcode_libdir_flag_spec='-L$libdir'
8038	  hardcode_libdir_separator=
8039	  fi
8040	  ;;
8041	esac
8042	shared_flag='-shared'
8043	if test "$aix_use_runtimelinking" = yes; then
8044	  shared_flag="$shared_flag "'${wl}-G'
8045	fi
8046      else
8047	# not using gcc
8048	if test "$host_cpu" = ia64; then
8049	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8050	# chokes on -Wl,-G. The following line is correct:
8051	  shared_flag='-G'
8052	else
8053	  if test "$aix_use_runtimelinking" = yes; then
8054	    shared_flag='${wl}-G'
8055	  else
8056	    shared_flag='${wl}-bM:SRE'
8057	  fi
8058	fi
8059      fi
8060
8061      # It seems that -bexpall does not export symbols beginning with
8062      # underscore (_), so it is better to generate a list of symbols to export.
8063      always_export_symbols=yes
8064      if test "$aix_use_runtimelinking" = yes; then
8065	# Warning - without using the other runtime loading flags (-brtl),
8066	# -berok will link without error, but may produce a broken library.
8067	allow_undefined_flag='-berok'
8068        # Determine the default libpath from the value encoded in an
8069        # empty executable.
8070        cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h.  */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h.  */
8076
8077int
8078main ()
8079{
8080
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087  (eval $ac_link) 2>conftest.er1
8088  ac_status=$?
8089  grep -v '^ *+' conftest.er1 >conftest.err
8090  rm -f conftest.er1
8091  cat conftest.err >&5
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); } &&
8094	 { ac_try='test -z "$ac_c_werror_flag"
8095			 || test ! -s conftest.err'
8096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097  (eval $ac_try) 2>&5
8098  ac_status=$?
8099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100  (exit $ac_status); }; } &&
8101	 { ac_try='test -s conftest$ac_exeext'
8102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103  (eval $ac_try) 2>&5
8104  ac_status=$?
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); }; }; then
8107
8108lt_aix_libpath_sed='
8109    /Import File Strings/,/^$/ {
8110	/^0/ {
8111	    s/^0  *\(.*\)$/\1/
8112	    p
8113	}
8114    }'
8115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8116# Check for a 64-bit object if we didn't find anything.
8117if test -z "$aix_libpath"; then
8118  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8119fi
8120else
8121  echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124fi
8125rm -f conftest.err conftest.$ac_objext \
8126      conftest$ac_exeext conftest.$ac_ext
8127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8128
8129        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8130        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"
8131      else
8132	if test "$host_cpu" = ia64; then
8133	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8134	  allow_undefined_flag="-z nodefs"
8135	  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"
8136	else
8137	 # Determine the default libpath from the value encoded in an
8138	 # empty executable.
8139	 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h.  */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h.  */
8145
8146int
8147main ()
8148{
8149
8150  ;
8151  return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156  (eval $ac_link) 2>conftest.er1
8157  ac_status=$?
8158  grep -v '^ *+' conftest.er1 >conftest.err
8159  rm -f conftest.er1
8160  cat conftest.err >&5
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); } &&
8163	 { ac_try='test -z "$ac_c_werror_flag"
8164			 || test ! -s conftest.err'
8165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166  (eval $ac_try) 2>&5
8167  ac_status=$?
8168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169  (exit $ac_status); }; } &&
8170	 { ac_try='test -s conftest$ac_exeext'
8171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172  (eval $ac_try) 2>&5
8173  ac_status=$?
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); }; }; then
8176
8177lt_aix_libpath_sed='
8178    /Import File Strings/,/^$/ {
8179	/^0/ {
8180	    s/^0  *\(.*\)$/\1/
8181	    p
8182	}
8183    }'
8184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8185# Check for a 64-bit object if we didn't find anything.
8186if test -z "$aix_libpath"; then
8187  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8188fi
8189else
8190  echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193fi
8194rm -f conftest.err conftest.$ac_objext \
8195      conftest$ac_exeext conftest.$ac_ext
8196if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8197
8198	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8199	  # Warning - without using the other run time loading flags,
8200	  # -berok will link without error, but may produce a broken library.
8201	  no_undefined_flag=' ${wl}-bernotok'
8202	  allow_undefined_flag=' ${wl}-berok'
8203	  # Exported symbols can be pulled into shared objects from archives
8204	  whole_archive_flag_spec='$convenience'
8205	  archive_cmds_need_lc=yes
8206	  # This is similar to how AIX traditionally builds its shared libraries.
8207	  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'
8208	fi
8209      fi
8210      ;;
8211
8212    amigaos*)
8213      if test "$host_cpu" = m68k; then
8214        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)'
8215        hardcode_libdir_flag_spec='-L$libdir'
8216        hardcode_minus_L=yes
8217      fi
8218      # see comment about different semantics on the GNU ld section
8219      ld_shlibs=no
8220      ;;
8221
8222    bsdi[45]*)
8223      export_dynamic_flag_spec=-rdynamic
8224      ;;
8225
8226    cygwin* | mingw* | pw32*)
8227      # When not using gcc, we currently assume that we are using
8228      # Microsoft Visual C++.
8229      # hardcode_libdir_flag_spec is actually meaningless, as there is
8230      # no search path for DLLs.
8231      hardcode_libdir_flag_spec=' '
8232      allow_undefined_flag=unsupported
8233      # Tell ltmain to make .lib files, not .a files.
8234      libext=lib
8235      # Tell ltmain to make .dll files, not .so files.
8236      shrext_cmds=".dll"
8237      # FIXME: Setting linknames here is a bad hack.
8238      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8239      # The linker will automatically build a .lib file if we build a DLL.
8240      old_archive_from_new_cmds='true'
8241      # FIXME: Should let the user specify the lib program.
8242      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8243      fix_srcfile_path='`cygpath -w "$srcfile"`'
8244      enable_shared_with_static_runtimes=yes
8245      ;;
8246
8247    darwin* | rhapsody*)
8248      case $host_os in
8249      rhapsody* | darwin1.[012])
8250	allow_undefined_flag='${wl}-undefined ${wl}suppress'
8251	;;
8252      *) # Darwin 1.3 on
8253	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8254	10.[012])
8255	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8256	  ;;
8257	10.*)
8258	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8259	  ;;
8260	esac
8261	;;
8262      esac
8263      archive_cmds_need_lc=no
8264      hardcode_direct=no
8265      hardcode_automatic=yes
8266      hardcode_shlibpath_var=unsupported
8267      whole_archive_flag_spec=''
8268      link_all_deplibs=yes
8269      if test "$GCC" = yes ; then
8270	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8271  echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273  lt_cv_apple_cc_single_mod=no
8274	if test -z "${LT_MULTI_MODULE}"; then
8275	  # By default we will add the -single_module flag. You can override
8276	  # by either setting the environment variable LT_MULTI_MODULE
8277	  # non-empty at configure time, or by adding -multi-module to the
8278	  # link flags.
8279	  echo "int foo(void){return 1;}" > conftest.c
8280	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8281	      -dynamiclib ${wl}-single_module conftest.c
8282	  if test -f libconftest.dylib; then
8283	      lt_cv_apple_cc_single_mod=yes
8284	      rm libconftest.dylib
8285	  fi
8286	  rm conftest.$ac_ext
8287	fi
8288fi
8289
8290	output_verbose_link_cmd=echo
8291	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8292	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8293	  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}'
8294	else
8295	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8296	  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}'
8297	fi
8298	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8299	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}'
8300      else
8301	case $cc_basename in
8302	xlc*)
8303	  output_verbose_link_cmd=echo
8304	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8305	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8306	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8307	  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}'
8308	  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}'
8309	  ;;
8310	*)
8311	  ld_shlibs=no
8312	  ;;
8313	esac
8314      fi
8315      ;;
8316
8317    dgux*)
8318      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8319      hardcode_libdir_flag_spec='-L$libdir'
8320      hardcode_shlibpath_var=no
8321      ;;
8322
8323    freebsd1*)
8324      ld_shlibs=no
8325      ;;
8326
8327    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8328    # support.  Future versions do this automatically, but an explicit c++rt0.o
8329    # does not break anything, and helps significantly (at the cost of a little
8330    # extra space).
8331    freebsd2.2*)
8332      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8333      hardcode_libdir_flag_spec='-R$libdir'
8334      hardcode_direct=yes
8335      hardcode_shlibpath_var=no
8336      ;;
8337
8338    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8339    freebsd2*)
8340      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8341      hardcode_direct=yes
8342      hardcode_minus_L=yes
8343      hardcode_shlibpath_var=no
8344      ;;
8345
8346    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8347    freebsd* | dragonfly*)
8348      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8349      hardcode_libdir_flag_spec='-R$libdir'
8350      hardcode_direct=yes
8351      hardcode_shlibpath_var=no
8352      ;;
8353
8354    hpux9*)
8355      if test "$GCC" = yes; then
8356	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'
8357      else
8358	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'
8359      fi
8360      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8361      hardcode_libdir_separator=:
8362      hardcode_direct=yes
8363
8364      # hardcode_minus_L: Not really in the search PATH,
8365      # but as the default location of the library.
8366      hardcode_minus_L=yes
8367      export_dynamic_flag_spec='${wl}-E'
8368      ;;
8369
8370    hpux10*)
8371      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8372	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8373      else
8374	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8375      fi
8376      if test "$with_gnu_ld" = no; then
8377	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8378	hardcode_libdir_flag_spec_ld='+b $libdir'
8379	hardcode_libdir_separator=:
8380	hardcode_direct=yes
8381	hardcode_direct_absolute=yes
8382	export_dynamic_flag_spec='${wl}-E'
8383	# hardcode_minus_L: Not really in the search PATH,
8384	# but as the default location of the library.
8385	hardcode_minus_L=yes
8386      fi
8387      ;;
8388
8389    hpux11*)
8390      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8391	case $host_cpu in
8392	hppa*64*)
8393	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8394	  ;;
8395	ia64*)
8396	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8397	  ;;
8398	*)
8399	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8400	  ;;
8401	esac
8402      else
8403	case $host_cpu in
8404	hppa*64*)
8405	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406	  ;;
8407	ia64*)
8408	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8409	  ;;
8410	*)
8411	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8412	  ;;
8413	esac
8414      fi
8415      if test "$with_gnu_ld" = no; then
8416	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8417	hardcode_libdir_separator=:
8418
8419	case $host_cpu in
8420	hppa*64*|ia64*)
8421	  hardcode_direct=no
8422	  hardcode_shlibpath_var=no
8423	  ;;
8424	*)
8425	  hardcode_direct=yes
8426	  hardcode_direct_absolute=yes
8427	  export_dynamic_flag_spec='${wl}-E'
8428
8429	  # hardcode_minus_L: Not really in the search PATH,
8430	  # but as the default location of the library.
8431	  hardcode_minus_L=yes
8432	  ;;
8433	esac
8434      fi
8435      ;;
8436
8437    irix5* | irix6* | nonstopux*)
8438      if test "$GCC" = yes; then
8439	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'
8440	# Try to use the -exported_symbol ld option, if it does not
8441	# work, assume that -exports_file does not work either and
8442	# implicitly export all symbols.
8443        save_LDFLAGS="$LDFLAGS"
8444        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8445        cat >conftest.$ac_ext <<_ACEOF
8446int foo(void) {}
8447_ACEOF
8448rm -f conftest.$ac_objext conftest$ac_exeext
8449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450  (eval $ac_link) 2>conftest.er1
8451  ac_status=$?
8452  grep -v '^ *+' conftest.er1 >conftest.err
8453  rm -f conftest.er1
8454  cat conftest.err >&5
8455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456  (exit $ac_status); } &&
8457	 { ac_try='test -z "$ac_c_werror_flag"
8458			 || test ! -s conftest.err'
8459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460  (eval $ac_try) 2>&5
8461  ac_status=$?
8462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463  (exit $ac_status); }; } &&
8464	 { ac_try='test -s conftest$ac_exeext'
8465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466  (eval $ac_try) 2>&5
8467  ac_status=$?
8468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469  (exit $ac_status); }; }; then
8470  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'
8471
8472else
8473  echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476fi
8477rm -f conftest.err conftest.$ac_objext \
8478      conftest$ac_exeext conftest.$ac_ext
8479        LDFLAGS="$save_LDFLAGS"
8480      else
8481	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'
8482	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'
8483      fi
8484      archive_cmds_need_lc='no'
8485      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486      hardcode_libdir_separator=:
8487      inherit_rpath=yes
8488      link_all_deplibs=yes
8489      ;;
8490
8491    netbsd*)
8492      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8493	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8494      else
8495	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8496      fi
8497      hardcode_libdir_flag_spec='-R$libdir'
8498      hardcode_direct=yes
8499      hardcode_shlibpath_var=no
8500      ;;
8501
8502    newsos6)
8503      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504      hardcode_direct=yes
8505      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506      hardcode_libdir_separator=:
8507      hardcode_shlibpath_var=no
8508      ;;
8509
8510    *nto* | *qnx*)
8511      ;;
8512
8513    openbsd*)
8514      hardcode_direct=yes
8515      hardcode_shlibpath_var=no
8516      hardcode_direct_absolute=yes
8517      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8518	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8519	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8520	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521	export_dynamic_flag_spec='${wl}-E'
8522      else
8523        case $host_os in
8524	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8525	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526	  hardcode_libdir_flag_spec='-R$libdir'
8527	  ;;
8528	*)
8529	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8530	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8531	  ;;
8532        esac
8533      fi
8534      ;;
8535
8536    os2*)
8537      hardcode_libdir_flag_spec='-L$libdir'
8538      hardcode_minus_L=yes
8539      allow_undefined_flag=unsupported
8540      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'
8541      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8542      ;;
8543
8544    osf3*)
8545      if test "$GCC" = yes; then
8546	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8547	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'
8548      else
8549	allow_undefined_flag=' -expect_unresolved \*'
8550	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'
8551      fi
8552      archive_cmds_need_lc='no'
8553      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554      hardcode_libdir_separator=:
8555      ;;
8556
8557    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8558      if test "$GCC" = yes; then
8559	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8560	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'
8561	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562      else
8563	allow_undefined_flag=' -expect_unresolved \*'
8564	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'
8565	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~
8566	$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'
8567
8568	# Both c and cxx compiler support -rpath directly
8569	hardcode_libdir_flag_spec='-rpath $libdir'
8570      fi
8571      archive_cmds_need_lc='no'
8572      hardcode_libdir_separator=:
8573      ;;
8574
8575    solaris*)
8576      no_undefined_flag=' -z defs'
8577      if test "$GCC" = yes; then
8578	wlarc='${wl}'
8579	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8581	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8582      else
8583	case `$CC -V 2>&1` in
8584	*"Compilers 5.0"*)
8585	  wlarc=''
8586	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8588	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8589	  ;;
8590	*)
8591	  wlarc='${wl}'
8592	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8594	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8595	  ;;
8596	esac
8597      fi
8598      hardcode_libdir_flag_spec='-R$libdir'
8599      hardcode_shlibpath_var=no
8600      case $host_os in
8601      solaris2.[0-5] | solaris2.[0-5].*) ;;
8602      *)
8603	# The compiler driver will combine and reorder linker options,
8604	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8605	# but is careful enough not to reorder.
8606	# Supported since Solaris 2.6 (maybe 2.5.1?)
8607	if test "$GCC" = yes; then
8608	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8609	else
8610	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8611	fi
8612	;;
8613      esac
8614      link_all_deplibs=yes
8615      ;;
8616
8617    sunos4*)
8618      if test "x$host_vendor" = xsequent; then
8619	# Use $CC to link under sequent, because it throws in some extra .o
8620	# files that make .init and .fini sections work.
8621	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622      else
8623	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8624      fi
8625      hardcode_libdir_flag_spec='-L$libdir'
8626      hardcode_direct=yes
8627      hardcode_minus_L=yes
8628      hardcode_shlibpath_var=no
8629      ;;
8630
8631    sysv4)
8632      case $host_vendor in
8633	sni)
8634	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635	  hardcode_direct=yes # is this really true???
8636	;;
8637	siemens)
8638	  ## LD is ld it makes a PLAMLIB
8639	  ## CC just makes a GrossModule.
8640	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8641	  reload_cmds='$CC -r -o $output$reload_objs'
8642	  hardcode_direct=no
8643        ;;
8644	motorola)
8645	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8647	;;
8648      esac
8649      runpath_var='LD_RUN_PATH'
8650      hardcode_shlibpath_var=no
8651      ;;
8652
8653    sysv4.3*)
8654      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655      hardcode_shlibpath_var=no
8656      export_dynamic_flag_spec='-Bexport'
8657      ;;
8658
8659    sysv4*MP*)
8660      if test -d /usr/nec; then
8661	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662	hardcode_shlibpath_var=no
8663	runpath_var=LD_RUN_PATH
8664	hardcode_runpath_var=yes
8665	ld_shlibs=yes
8666      fi
8667      ;;
8668
8669    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8670      no_undefined_flag='${wl}-z,text'
8671      archive_cmds_need_lc=no
8672      hardcode_shlibpath_var=no
8673      runpath_var='LD_RUN_PATH'
8674
8675      if test "$GCC" = yes; then
8676	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678      else
8679	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681      fi
8682      ;;
8683
8684    sysv5* | sco3.2v5* | sco5v6*)
8685      # Note: We can NOT use -z defs as we might desire, because we do not
8686      # link with -lc, and that would cause any symbols used from libc to
8687      # always be unresolved, which means just about no library would
8688      # ever link correctly.  If we're not using GNU ld we use -z text
8689      # though, which does catch some bad symbols but isn't as heavy-handed
8690      # as -z defs.
8691      no_undefined_flag='${wl}-z,text'
8692      allow_undefined_flag='${wl}-z,nodefs'
8693      archive_cmds_need_lc=no
8694      hardcode_shlibpath_var=no
8695      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8696      hardcode_libdir_separator=':'
8697      link_all_deplibs=yes
8698      export_dynamic_flag_spec='${wl}-Bexport'
8699      runpath_var='LD_RUN_PATH'
8700
8701      if test "$GCC" = yes; then
8702	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8703	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704      else
8705	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707      fi
8708      ;;
8709
8710    uts4*)
8711      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712      hardcode_libdir_flag_spec='-L$libdir'
8713      hardcode_shlibpath_var=no
8714      ;;
8715
8716    *)
8717      ld_shlibs=no
8718      ;;
8719    esac
8720
8721    if test x$host_vendor = xsni; then
8722      case $host in
8723      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8724	export_dynamic_flag_spec='${wl}-Blargedynsym'
8725	;;
8726      esac
8727    fi
8728  fi
8729
8730echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731echo "${ECHO_T}$ld_shlibs" >&6
8732test "$ld_shlibs" = no && can_build_shared=no
8733
8734with_gnu_ld=$with_gnu_ld
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750#
8751# Do we need to explicitly link libc?
8752#
8753case "x$archive_cmds_need_lc" in
8754x|xyes)
8755  # Assume -lc should be added
8756  archive_cmds_need_lc=yes
8757
8758  if test "$enable_shared" = yes && test "$GCC" = yes; then
8759    case $archive_cmds in
8760    *'~'*)
8761      # FIXME: we may have to deal with multi-command sequences.
8762      ;;
8763    '$CC '*)
8764      # Test whether the compiler implicitly links with -lc since on some
8765      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8766      # to ld, don't add -lc before -lgcc.
8767      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8768echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8769      $RM conftest*
8770      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771
8772      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773  (eval $ac_compile) 2>&5
8774  ac_status=$?
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); } 2>conftest.err; then
8777        soname=conftest
8778        lib=conftest
8779        libobjs=conftest.$ac_objext
8780        deplibs=
8781        wl=$lt_prog_compiler_wl
8782	pic_flag=$lt_prog_compiler_pic
8783        compiler_flags=-v
8784        linker_flags=-v
8785        verstring=
8786        output_objdir=.
8787        libname=conftest
8788        lt_save_allow_undefined_flag=$allow_undefined_flag
8789        allow_undefined_flag=
8790        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8791  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8792  ac_status=$?
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); }
8795        then
8796	  archive_cmds_need_lc=no
8797        else
8798	  archive_cmds_need_lc=yes
8799        fi
8800        allow_undefined_flag=$lt_save_allow_undefined_flag
8801      else
8802        cat conftest.err 1>&5
8803      fi
8804      $RM conftest*
8805      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8806echo "${ECHO_T}$archive_cmds_need_lc" >&6
8807      ;;
8808    esac
8809  fi
8810  ;;
8811esac
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8970echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8971withGCC=$GCC
8972if test "$withGCC" = yes; then
8973  case $host_os in
8974    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8975    *) lt_awk_arg="/^libraries:/" ;;
8976  esac
8977  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8979    # if the path contains ";" then we assume it to be the separator
8980    # otherwise default to the standard path separator (i.e. ":") - it is
8981    # assumed that no part of a normal pathname contains ";" but that should
8982    # okay in the real world where ";" in dirpaths is itself problematic.
8983    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8984  else
8985    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8986  fi
8987  # Ok, now we have the path, separated by spaces, we can step through it
8988  # and add multilib dir if necessary.
8989  lt_tmp_lt_search_path_spec=
8990  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8991  for lt_sys_path in $lt_search_path_spec; do
8992    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8993      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8994    else
8995      test -d "$lt_sys_path" && \
8996	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8997    fi
8998  done
8999  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9000BEGIN {RS=" "; FS="/|\n";} {
9001  lt_foo="";
9002  lt_count=0;
9003  for (lt_i = NF; lt_i > 0; lt_i--) {
9004    if ($lt_i != "" && $lt_i != ".") {
9005      if ($lt_i == "..") {
9006        lt_count++;
9007      } else {
9008        if (lt_count == 0) {
9009          lt_foo="/" $lt_i lt_foo;
9010        } else {
9011          lt_count--;
9012        }
9013      }
9014    }
9015  }
9016  if (lt_foo != "") { lt_freq[lt_foo]++; }
9017  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9018}'`
9019  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9020else
9021  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9022fi
9023library_names_spec=
9024libname_spec='lib$name'
9025soname_spec=
9026shrext_cmds=".so"
9027postinstall_cmds=
9028postuninstall_cmds=
9029finish_cmds=
9030finish_eval=
9031shlibpath_var=
9032shlibpath_overrides_runpath=unknown
9033version_type=none
9034dynamic_linker="$host_os ld.so"
9035sys_lib_dlsearch_path_spec="/lib /usr/lib"
9036need_lib_prefix=unknown
9037hardcode_into_libs=no
9038
9039# when you set need_version to no, make sure it does not cause -set_version
9040# flags to be left without arguments
9041need_version=unknown
9042
9043case $host_os in
9044aix3*)
9045  version_type=linux
9046  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9047  shlibpath_var=LIBPATH
9048
9049  # AIX 3 has no versioning support, so we append a major version to the name.
9050  soname_spec='${libname}${release}${shared_ext}$major'
9051  ;;
9052
9053aix[4-9]*)
9054  version_type=linux
9055  need_lib_prefix=no
9056  need_version=no
9057  hardcode_into_libs=yes
9058  if test "$host_cpu" = ia64; then
9059    # AIX 5 supports IA64
9060    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9061    shlibpath_var=LD_LIBRARY_PATH
9062  else
9063    # With GCC up to 2.95.x, collect2 would create an import file
9064    # for dependence libraries.  The import file would start with
9065    # the line `#! .'.  This would cause the generated library to
9066    # depend on `.', always an invalid library.  This was fixed in
9067    # development snapshots of GCC prior to 3.0.
9068    case $host_os in
9069      aix4 | aix4.[01] | aix4.[01].*)
9070      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9071	   echo ' yes '
9072	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9073	:
9074      else
9075	can_build_shared=no
9076      fi
9077      ;;
9078    esac
9079    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9080    # soname into executable. Probably we can add versioning support to
9081    # collect2, so additional links can be useful in future.
9082    if test "$aix_use_runtimelinking" = yes; then
9083      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9084      # instead of lib<name>.a to let people know that these are not
9085      # typical AIX shared libraries.
9086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087    else
9088      # We preserve .a as extension for shared libraries through AIX4.2
9089      # and later when we are not doing run time linking.
9090      library_names_spec='${libname}${release}.a $libname.a'
9091      soname_spec='${libname}${release}${shared_ext}$major'
9092    fi
9093    shlibpath_var=LIBPATH
9094  fi
9095  ;;
9096
9097amigaos*)
9098  if test "$host_cpu" = m68k; then
9099    library_names_spec='$libname.ixlibrary $libname.a'
9100    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9101    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'
9102  else
9103    dynamic_linker=no
9104  fi
9105  ;;
9106
9107beos*)
9108  library_names_spec='${libname}${shared_ext}'
9109  dynamic_linker="$host_os ld.so"
9110  shlibpath_var=LIBRARY_PATH
9111  ;;
9112
9113bsdi[45]*)
9114  version_type=linux
9115  need_version=no
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9119  shlibpath_var=LD_LIBRARY_PATH
9120  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9121  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9122  # the default ld.so.conf also contains /usr/contrib/lib and
9123  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9124  # libtool to hard-code these into programs
9125  ;;
9126
9127cygwin* | mingw* | pw32*)
9128  version_type=windows
9129  shrext_cmds=".dll"
9130  need_version=no
9131  need_lib_prefix=no
9132
9133  case $withGCC,$host_os in
9134  yes,cygwin* | yes,mingw* | yes,pw32*)
9135    library_names_spec='$libname.dll.a'
9136    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9137    postinstall_cmds='base_file=`basename \${file}`~
9138      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9139      dldir=$destdir/`dirname \$dlpath`~
9140      test -d \$dldir || mkdir -p \$dldir~
9141      $install_prog $dir/$dlname \$dldir/$dlname~
9142      chmod a+x \$dldir/$dlname~
9143      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9144        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9145      fi'
9146    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9147      dlpath=$dir/\$dldll~
9148       $RM \$dlpath'
9149    shlibpath_overrides_runpath=yes
9150
9151    case $host_os in
9152    cygwin*)
9153      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9154      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9156      ;;
9157    mingw*)
9158      # MinGW DLLs use traditional 'lib' prefix
9159      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9160      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9162        # It is most probably a Windows format PATH printed by
9163        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9164        # path with ; separators, and with drive letters. We can handle the
9165        # drive letters (cygwin fileutils understands them), so leave them,
9166        # especially as we might pass files found there to a mingw objdump,
9167        # which wouldn't understand a cygwinified path. Ahh.
9168        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9169      else
9170        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9171      fi
9172      ;;
9173    pw32*)
9174      # pw32 DLLs use 'pw' prefix rather than 'lib'
9175      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9176      ;;
9177    esac
9178    ;;
9179
9180  *)
9181    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9182    ;;
9183  esac
9184  dynamic_linker='Win32 ld.exe'
9185  # FIXME: first we should search . and the directory the executable is in
9186  shlibpath_var=PATH
9187  ;;
9188
9189darwin* | rhapsody*)
9190  dynamic_linker="$host_os dyld"
9191  version_type=darwin
9192  need_lib_prefix=no
9193  need_version=no
9194  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9195  soname_spec='${libname}${release}${major}$shared_ext'
9196  shlibpath_overrides_runpath=yes
9197  shlibpath_var=DYLD_LIBRARY_PATH
9198  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9199
9200  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9201  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9202  ;;
9203
9204dgux*)
9205  version_type=linux
9206  need_lib_prefix=no
9207  need_version=no
9208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209  soname_spec='${libname}${release}${shared_ext}$major'
9210  shlibpath_var=LD_LIBRARY_PATH
9211  ;;
9212
9213freebsd1*)
9214  dynamic_linker=no
9215  ;;
9216
9217freebsd* | dragonfly*)
9218  # DragonFly does not have aout.  When/if they implement a new
9219  # versioning mechanism, adjust this.
9220  if test -x /usr/bin/objformat; then
9221    objformat=`/usr/bin/objformat`
9222  else
9223    case $host_os in
9224    freebsd[123]*) objformat=aout ;;
9225    *) objformat=elf ;;
9226    esac
9227  fi
9228  version_type=freebsd-$objformat
9229  case $version_type in
9230    freebsd-elf*)
9231      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9232      need_version=no
9233      need_lib_prefix=no
9234      ;;
9235    freebsd-*)
9236      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9237      need_version=yes
9238      ;;
9239  esac
9240  shlibpath_var=LD_LIBRARY_PATH
9241  case $host_os in
9242  freebsd2*)
9243    shlibpath_overrides_runpath=yes
9244    ;;
9245  freebsd3.[01]* | freebsdelf3.[01]*)
9246    shlibpath_overrides_runpath=yes
9247    hardcode_into_libs=yes
9248    ;;
9249  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9250  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9251    shlibpath_overrides_runpath=no
9252    hardcode_into_libs=yes
9253    ;;
9254  *) # from 4.6 on, and DragonFly
9255    shlibpath_overrides_runpath=yes
9256    hardcode_into_libs=yes
9257    ;;
9258  esac
9259  ;;
9260
9261gnu*)
9262  version_type=linux
9263  need_lib_prefix=no
9264  need_version=no
9265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266  soname_spec='${libname}${release}${shared_ext}$major'
9267  shlibpath_var=LD_LIBRARY_PATH
9268  hardcode_into_libs=yes
9269  ;;
9270
9271hpux9* | hpux10* | hpux11*)
9272  # Give a soname corresponding to the major version so that dld.sl refuses to
9273  # link against other versions.
9274  version_type=sunos
9275  need_lib_prefix=no
9276  need_version=no
9277  case $host_cpu in
9278  ia64*)
9279    shrext_cmds='.so'
9280    hardcode_into_libs=yes
9281    dynamic_linker="$host_os dld.so"
9282    shlibpath_var=LD_LIBRARY_PATH
9283    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285    soname_spec='${libname}${release}${shared_ext}$major'
9286    if test "X$HPUX_IA64_MODE" = X32; then
9287      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9288    else
9289      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9290    fi
9291    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9292    ;;
9293  hppa*64*)
9294    shrext_cmds='.sl'
9295    hardcode_into_libs=yes
9296    dynamic_linker="$host_os dld.sl"
9297    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300    soname_spec='${libname}${release}${shared_ext}$major'
9301    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303    ;;
9304  *)
9305    shrext_cmds='.sl'
9306    dynamic_linker="$host_os dld.sl"
9307    shlibpath_var=SHLIB_PATH
9308    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310    soname_spec='${libname}${release}${shared_ext}$major'
9311    ;;
9312  esac
9313  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314  postinstall_cmds='chmod 555 $lib'
9315  ;;
9316
9317interix[3-9]*)
9318  version_type=linux
9319  need_lib_prefix=no
9320  need_version=no
9321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9322  soname_spec='${libname}${release}${shared_ext}$major'
9323  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9324  shlibpath_var=LD_LIBRARY_PATH
9325  shlibpath_overrides_runpath=no
9326  hardcode_into_libs=yes
9327  ;;
9328
9329irix5* | irix6* | nonstopux*)
9330  case $host_os in
9331    nonstopux*) version_type=nonstopux ;;
9332    *)
9333	if test "$lt_cv_prog_gnu_ld" = yes; then
9334		version_type=linux
9335	else
9336		version_type=irix
9337	fi ;;
9338  esac
9339  need_lib_prefix=no
9340  need_version=no
9341  soname_spec='${libname}${release}${shared_ext}$major'
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9343  case $host_os in
9344  irix5* | nonstopux*)
9345    libsuff= shlibsuff=
9346    ;;
9347  *)
9348    case $LD in # libtool.m4 will add one of these switches to LD
9349    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9350      libsuff= shlibsuff= libmagic=32-bit;;
9351    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9352      libsuff=32 shlibsuff=N32 libmagic=N32;;
9353    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9354      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9355    *) libsuff= shlibsuff= libmagic=never-match;;
9356    esac
9357    ;;
9358  esac
9359  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9360  shlibpath_overrides_runpath=no
9361  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9362  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9363  hardcode_into_libs=yes
9364  ;;
9365
9366# No shared lib support for Linux oldld, aout, or coff.
9367linux*oldld* | linux*aout* | linux*coff*)
9368  dynamic_linker=no
9369  ;;
9370
9371# This must be Linux ELF.
9372linux* | k*bsd*-gnu)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9379  shlibpath_var=LD_LIBRARY_PATH
9380  shlibpath_overrides_runpath=no
9381  # Some binutils ld are patched to set DT_RUNPATH
9382  save_LDFLAGS=$LDFLAGS
9383  save_libdir=$libdir
9384  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9385       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9386  cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392
9393int
9394main ()
9395{
9396
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403  (eval $ac_link) 2>conftest.er1
9404  ac_status=$?
9405  grep -v '^ *+' conftest.er1 >conftest.err
9406  rm -f conftest.er1
9407  cat conftest.err >&5
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); } &&
9410	 { ac_try='test -z "$ac_c_werror_flag"
9411			 || test ! -s conftest.err'
9412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413  (eval $ac_try) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; } &&
9417	 { ac_try='test -s conftest$ac_exeext'
9418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419  (eval $ac_try) 2>&5
9420  ac_status=$?
9421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); }; }; then
9423  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9424  shlibpath_overrides_runpath=yes
9425fi
9426
9427else
9428  echo "$as_me: failed program was:" >&5
9429sed 's/^/| /' conftest.$ac_ext >&5
9430
9431fi
9432rm -f conftest.err conftest.$ac_objext \
9433      conftest$ac_exeext conftest.$ac_ext
9434  LDFLAGS=$save_LDFLAGS
9435  libdir=$save_libdir
9436
9437  # This implies no fast_install, which is unacceptable.
9438  # Some rework will be needed to allow for fast_install
9439  # before this can be enabled.
9440  hardcode_into_libs=yes
9441
9442  # Append ld.so.conf contents to the search path
9443  if test -f /etc/ld.so.conf; then
9444    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' ' '`
9445    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9446  fi
9447
9448  # We used to test for /lib/ld.so.1 and disable shared libraries on
9449  # powerpc, because MkLinux only supported shared libraries with the
9450  # GNU dynamic linker.  Since this was broken with cross compilers,
9451  # most powerpc-linux boxes support dynamic linking these days and
9452  # people can always --disable-shared, the test was removed, and we
9453  # assume the GNU/Linux dynamic linker is in use.
9454  dynamic_linker='GNU/Linux ld.so'
9455  ;;
9456
9457netbsd*)
9458  version_type=sunos
9459  need_lib_prefix=no
9460  need_version=no
9461  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9464    dynamic_linker='NetBSD (a.out) ld.so'
9465  else
9466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467    soname_spec='${libname}${release}${shared_ext}$major'
9468    dynamic_linker='NetBSD ld.elf_so'
9469  fi
9470  shlibpath_var=LD_LIBRARY_PATH
9471  shlibpath_overrides_runpath=yes
9472  hardcode_into_libs=yes
9473  ;;
9474
9475newsos6)
9476  version_type=linux
9477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478  shlibpath_var=LD_LIBRARY_PATH
9479  shlibpath_overrides_runpath=yes
9480  ;;
9481
9482*nto* | *qnx*)
9483  version_type=qnx
9484  need_lib_prefix=no
9485  need_version=no
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  shlibpath_overrides_runpath=no
9490  hardcode_into_libs=yes
9491  dynamic_linker='ldqnx.so'
9492  ;;
9493
9494openbsd*)
9495  version_type=sunos
9496  sys_lib_dlsearch_path_spec="/usr/lib"
9497  need_lib_prefix=no
9498  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9499  case $host_os in
9500    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9501    *)				need_version=no  ;;
9502  esac
9503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9505  shlibpath_var=LD_LIBRARY_PATH
9506  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9507    case $host_os in
9508      openbsd2.[89] | openbsd2.[89].*)
9509	shlibpath_overrides_runpath=no
9510	;;
9511      *)
9512	shlibpath_overrides_runpath=yes
9513	;;
9514      esac
9515  else
9516    shlibpath_overrides_runpath=yes
9517  fi
9518  ;;
9519
9520os2*)
9521  libname_spec='$name'
9522  shrext_cmds=".dll"
9523  need_lib_prefix=no
9524  library_names_spec='$libname${shared_ext} $libname.a'
9525  dynamic_linker='OS/2 ld.exe'
9526  shlibpath_var=LIBPATH
9527  ;;
9528
9529osf3* | osf4* | osf5*)
9530  version_type=osf
9531  need_lib_prefix=no
9532  need_version=no
9533  soname_spec='${libname}${release}${shared_ext}$major'
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535  shlibpath_var=LD_LIBRARY_PATH
9536  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9537  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9538  ;;
9539
9540rdos*)
9541  dynamic_linker=no
9542  ;;
9543
9544solaris*)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  shlibpath_var=LD_LIBRARY_PATH
9551  shlibpath_overrides_runpath=yes
9552  hardcode_into_libs=yes
9553  # ldd complains unless libraries are executable
9554  postinstall_cmds='chmod +x $lib'
9555  ;;
9556
9557sunos4*)
9558  version_type=sunos
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9560  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9561  shlibpath_var=LD_LIBRARY_PATH
9562  shlibpath_overrides_runpath=yes
9563  if test "$with_gnu_ld" = yes; then
9564    need_lib_prefix=no
9565  fi
9566  need_version=yes
9567  ;;
9568
9569sysv4 | sysv4.3*)
9570  version_type=linux
9571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572  soname_spec='${libname}${release}${shared_ext}$major'
9573  shlibpath_var=LD_LIBRARY_PATH
9574  case $host_vendor in
9575    sni)
9576      shlibpath_overrides_runpath=no
9577      need_lib_prefix=no
9578      runpath_var=LD_RUN_PATH
9579      ;;
9580    siemens)
9581      need_lib_prefix=no
9582      ;;
9583    motorola)
9584      need_lib_prefix=no
9585      need_version=no
9586      shlibpath_overrides_runpath=no
9587      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9588      ;;
9589  esac
9590  ;;
9591
9592sysv4*MP*)
9593  if test -d /usr/nec ;then
9594    version_type=linux
9595    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9596    soname_spec='$libname${shared_ext}.$major'
9597    shlibpath_var=LD_LIBRARY_PATH
9598  fi
9599  ;;
9600
9601sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9602  version_type=freebsd-elf
9603  need_lib_prefix=no
9604  need_version=no
9605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=yes
9609  hardcode_into_libs=yes
9610  if test "$with_gnu_ld" = yes; then
9611    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9612  else
9613    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9614    case $host_os in
9615      sco3.2v5*)
9616        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9617	;;
9618    esac
9619  fi
9620  sys_lib_dlsearch_path_spec='/usr/lib'
9621  ;;
9622
9623tpf*)
9624  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9625  version_type=linux
9626  need_lib_prefix=no
9627  need_version=no
9628  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629  shlibpath_var=LD_LIBRARY_PATH
9630  shlibpath_overrides_runpath=no
9631  hardcode_into_libs=yes
9632  ;;
9633
9634uts4*)
9635  version_type=linux
9636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637  soname_spec='${libname}${release}${shared_ext}$major'
9638  shlibpath_var=LD_LIBRARY_PATH
9639  ;;
9640
9641*)
9642  dynamic_linker=no
9643  ;;
9644esac
9645echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9646echo "${ECHO_T}$dynamic_linker" >&6
9647test "$dynamic_linker" = no && can_build_shared=no
9648
9649variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9650if test "$GCC" = yes; then
9651  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9652fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9742hardcode_action=
9743if test -n "$hardcode_libdir_flag_spec" ||
9744   test -n "$runpath_var" ||
9745   test "X$hardcode_automatic" = "Xyes" ; then
9746
9747  # We can hardcode non-existent directories.
9748  if test "$hardcode_direct" != no &&
9749     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9750     # have to relink, otherwise we might link with an installed library
9751     # when we should be linking with a yet-to-be-installed one
9752     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9753     test "$hardcode_minus_L" != no; then
9754    # Linking always hardcodes the temporary library directory.
9755    hardcode_action=relink
9756  else
9757    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9758    hardcode_action=immediate
9759  fi
9760else
9761  # We cannot hardcode anything, or else we can only hardcode existing
9762  # directories.
9763  hardcode_action=unsupported
9764fi
9765echo "$as_me:$LINENO: result: $hardcode_action" >&5
9766echo "${ECHO_T}$hardcode_action" >&6
9767
9768if test "$hardcode_action" = relink ||
9769   test "$inherit_rpath" = yes; then
9770  # Fast installation is not supported
9771  enable_fast_install=no
9772elif test "$shlibpath_overrides_runpath" = yes ||
9773     test "$enable_shared" = no; then
9774  # Fast installation is not necessary
9775  enable_fast_install=needless
9776fi
9777
9778
9779
9780
9781
9782
9783  if test "x$enable_dlopen" != xyes; then
9784  enable_dlopen=unknown
9785  enable_dlopen_self=unknown
9786  enable_dlopen_self_static=unknown
9787else
9788  lt_cv_dlopen=no
9789  lt_cv_dlopen_libs=
9790
9791  case $host_os in
9792  beos*)
9793    lt_cv_dlopen="load_add_on"
9794    lt_cv_dlopen_libs=
9795    lt_cv_dlopen_self=yes
9796    ;;
9797
9798  mingw* | pw32*)
9799    lt_cv_dlopen="LoadLibrary"
9800    lt_cv_dlopen_libs=
9801    ;;
9802
9803  cygwin*)
9804    lt_cv_dlopen="dlopen"
9805    lt_cv_dlopen_libs=
9806    ;;
9807
9808  darwin*)
9809  # if libdl is installed we need to link against it
9810    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9811echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9812if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9813  echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815  ac_check_lib_save_LIBS=$LIBS
9816LIBS="-ldl  $LIBS"
9817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h.  */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h.  */
9823
9824/* Override any gcc2 internal prototype to avoid an error.  */
9825#ifdef __cplusplus
9826extern "C"
9827#endif
9828/* We use char because int might match the return type of a gcc2
9829   builtin and then its argument prototype would still apply.  */
9830char dlopen ();
9831int
9832main ()
9833{
9834dlopen ();
9835  ;
9836  return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841  (eval $ac_link) 2>conftest.er1
9842  ac_status=$?
9843  grep -v '^ *+' conftest.er1 >conftest.err
9844  rm -f conftest.er1
9845  cat conftest.err >&5
9846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847  (exit $ac_status); } &&
9848	 { ac_try='test -z "$ac_c_werror_flag"
9849			 || test ! -s conftest.err'
9850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851  (eval $ac_try) 2>&5
9852  ac_status=$?
9853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854  (exit $ac_status); }; } &&
9855	 { ac_try='test -s conftest$ac_exeext'
9856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857  (eval $ac_try) 2>&5
9858  ac_status=$?
9859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860  (exit $ac_status); }; }; then
9861  ac_cv_lib_dl_dlopen=yes
9862else
9863  echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866ac_cv_lib_dl_dlopen=no
9867fi
9868rm -f conftest.err conftest.$ac_objext \
9869      conftest$ac_exeext conftest.$ac_ext
9870LIBS=$ac_check_lib_save_LIBS
9871fi
9872echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9873echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9874if test $ac_cv_lib_dl_dlopen = yes; then
9875  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9876else
9877
9878    lt_cv_dlopen="dyld"
9879    lt_cv_dlopen_libs=
9880    lt_cv_dlopen_self=yes
9881
9882fi
9883
9884    ;;
9885
9886  *)
9887    echo "$as_me:$LINENO: checking for shl_load" >&5
9888echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9889if test "${ac_cv_func_shl_load+set}" = set; then
9890  echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892  cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h.  */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h.  */
9898/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9900#define shl_load innocuous_shl_load
9901
9902/* System header to define __stub macros and hopefully few prototypes,
9903    which can conflict with char shl_load (); below.
9904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905    <limits.h> exists even on freestanding compilers.  */
9906
9907#ifdef __STDC__
9908# include <limits.h>
9909#else
9910# include <assert.h>
9911#endif
9912
9913#undef shl_load
9914
9915/* Override any gcc2 internal prototype to avoid an error.  */
9916#ifdef __cplusplus
9917extern "C"
9918{
9919#endif
9920/* We use char because int might match the return type of a gcc2
9921   builtin and then its argument prototype would still apply.  */
9922char shl_load ();
9923/* The GNU C library defines this for functions which it implements
9924    to always fail with ENOSYS.  Some functions are actually named
9925    something starting with __ and the normal name is an alias.  */
9926#if defined (__stub_shl_load) || defined (__stub___shl_load)
9927choke me
9928#else
9929char (*f) () = shl_load;
9930#endif
9931#ifdef __cplusplus
9932}
9933#endif
9934
9935int
9936main ()
9937{
9938return f != shl_load;
9939  ;
9940  return 0;
9941}
9942_ACEOF
9943rm -f conftest.$ac_objext conftest$ac_exeext
9944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945  (eval $ac_link) 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } &&
9952	 { ac_try='test -z "$ac_c_werror_flag"
9953			 || test ! -s conftest.err'
9954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955  (eval $ac_try) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; } &&
9959	 { ac_try='test -s conftest$ac_exeext'
9960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961  (eval $ac_try) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; }; then
9965  ac_cv_func_shl_load=yes
9966else
9967  echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970ac_cv_func_shl_load=no
9971fi
9972rm -f conftest.err conftest.$ac_objext \
9973      conftest$ac_exeext conftest.$ac_ext
9974fi
9975echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9976echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9977if test $ac_cv_func_shl_load = yes; then
9978  lt_cv_dlopen="shl_load"
9979else
9980  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9981echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9982if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9983  echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985  ac_check_lib_save_LIBS=$LIBS
9986LIBS="-ldld  $LIBS"
9987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h.  */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h.  */
9993
9994/* Override any gcc2 internal prototype to avoid an error.  */
9995#ifdef __cplusplus
9996extern "C"
9997#endif
9998/* We use char because int might match the return type of a gcc2
9999   builtin and then its argument prototype would still apply.  */
10000char shl_load ();
10001int
10002main ()
10003{
10004shl_load ();
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011  (eval $ac_link) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } &&
10018	 { ac_try='test -z "$ac_c_werror_flag"
10019			 || test ! -s conftest.err'
10020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021  (eval $ac_try) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); }; } &&
10025	 { ac_try='test -s conftest$ac_exeext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031  ac_cv_lib_dld_shl_load=yes
10032else
10033  echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036ac_cv_lib_dld_shl_load=no
10037fi
10038rm -f conftest.err conftest.$ac_objext \
10039      conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS
10041fi
10042echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10043echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10044if test $ac_cv_lib_dld_shl_load = yes; then
10045  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10046else
10047  echo "$as_me:$LINENO: checking for dlopen" >&5
10048echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10049if test "${ac_cv_func_dlopen+set}" = set; then
10050  echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052  cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h.  */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h.  */
10058/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10060#define dlopen innocuous_dlopen
10061
10062/* System header to define __stub macros and hopefully few prototypes,
10063    which can conflict with char dlopen (); below.
10064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065    <limits.h> exists even on freestanding compilers.  */
10066
10067#ifdef __STDC__
10068# include <limits.h>
10069#else
10070# include <assert.h>
10071#endif
10072
10073#undef dlopen
10074
10075/* Override any gcc2 internal prototype to avoid an error.  */
10076#ifdef __cplusplus
10077extern "C"
10078{
10079#endif
10080/* We use char because int might match the return type of a gcc2
10081   builtin and then its argument prototype would still apply.  */
10082char dlopen ();
10083/* The GNU C library defines this for functions which it implements
10084    to always fail with ENOSYS.  Some functions are actually named
10085    something starting with __ and the normal name is an alias.  */
10086#if defined (__stub_dlopen) || defined (__stub___dlopen)
10087choke me
10088#else
10089char (*f) () = dlopen;
10090#endif
10091#ifdef __cplusplus
10092}
10093#endif
10094
10095int
10096main ()
10097{
10098return f != dlopen;
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103rm -f conftest.$ac_objext conftest$ac_exeext
10104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105  (eval $ac_link) 2>conftest.er1
10106  ac_status=$?
10107  grep -v '^ *+' conftest.er1 >conftest.err
10108  rm -f conftest.er1
10109  cat conftest.err >&5
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); } &&
10112	 { ac_try='test -z "$ac_c_werror_flag"
10113			 || test ! -s conftest.err'
10114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115  (eval $ac_try) 2>&5
10116  ac_status=$?
10117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118  (exit $ac_status); }; } &&
10119	 { ac_try='test -s conftest$ac_exeext'
10120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121  (eval $ac_try) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); }; }; then
10125  ac_cv_func_dlopen=yes
10126else
10127  echo "$as_me: failed program was:" >&5
10128sed 's/^/| /' conftest.$ac_ext >&5
10129
10130ac_cv_func_dlopen=no
10131fi
10132rm -f conftest.err conftest.$ac_objext \
10133      conftest$ac_exeext conftest.$ac_ext
10134fi
10135echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10136echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10137if test $ac_cv_func_dlopen = yes; then
10138  lt_cv_dlopen="dlopen"
10139else
10140  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10141echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10143  echo $ECHO_N "(cached) $ECHO_C" >&6
10144else
10145  ac_check_lib_save_LIBS=$LIBS
10146LIBS="-ldl  $LIBS"
10147cat >conftest.$ac_ext <<_ACEOF
10148/* confdefs.h.  */
10149_ACEOF
10150cat confdefs.h >>conftest.$ac_ext
10151cat >>conftest.$ac_ext <<_ACEOF
10152/* end confdefs.h.  */
10153
10154/* Override any gcc2 internal prototype to avoid an error.  */
10155#ifdef __cplusplus
10156extern "C"
10157#endif
10158/* We use char because int might match the return type of a gcc2
10159   builtin and then its argument prototype would still apply.  */
10160char dlopen ();
10161int
10162main ()
10163{
10164dlopen ();
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext conftest$ac_exeext
10170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171  (eval $ac_link) 2>conftest.er1
10172  ac_status=$?
10173  grep -v '^ *+' conftest.er1 >conftest.err
10174  rm -f conftest.er1
10175  cat conftest.err >&5
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } &&
10178	 { ac_try='test -z "$ac_c_werror_flag"
10179			 || test ! -s conftest.err'
10180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181  (eval $ac_try) 2>&5
10182  ac_status=$?
10183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184  (exit $ac_status); }; } &&
10185	 { ac_try='test -s conftest$ac_exeext'
10186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187  (eval $ac_try) 2>&5
10188  ac_status=$?
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); }; }; then
10191  ac_cv_lib_dl_dlopen=yes
10192else
10193  echo "$as_me: failed program was:" >&5
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196ac_cv_lib_dl_dlopen=no
10197fi
10198rm -f conftest.err conftest.$ac_objext \
10199      conftest$ac_exeext conftest.$ac_ext
10200LIBS=$ac_check_lib_save_LIBS
10201fi
10202echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10203echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10204if test $ac_cv_lib_dl_dlopen = yes; then
10205  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10206else
10207  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10208echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10209if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10210  echo $ECHO_N "(cached) $ECHO_C" >&6
10211else
10212  ac_check_lib_save_LIBS=$LIBS
10213LIBS="-lsvld  $LIBS"
10214cat >conftest.$ac_ext <<_ACEOF
10215/* confdefs.h.  */
10216_ACEOF
10217cat confdefs.h >>conftest.$ac_ext
10218cat >>conftest.$ac_ext <<_ACEOF
10219/* end confdefs.h.  */
10220
10221/* Override any gcc2 internal prototype to avoid an error.  */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225/* We use char because int might match the return type of a gcc2
10226   builtin and then its argument prototype would still apply.  */
10227char dlopen ();
10228int
10229main ()
10230{
10231dlopen ();
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236rm -f conftest.$ac_objext conftest$ac_exeext
10237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238  (eval $ac_link) 2>conftest.er1
10239  ac_status=$?
10240  grep -v '^ *+' conftest.er1 >conftest.err
10241  rm -f conftest.er1
10242  cat conftest.err >&5
10243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244  (exit $ac_status); } &&
10245	 { ac_try='test -z "$ac_c_werror_flag"
10246			 || test ! -s conftest.err'
10247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248  (eval $ac_try) 2>&5
10249  ac_status=$?
10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); }; } &&
10252	 { ac_try='test -s conftest$ac_exeext'
10253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254  (eval $ac_try) 2>&5
10255  ac_status=$?
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); }; }; then
10258  ac_cv_lib_svld_dlopen=yes
10259else
10260  echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263ac_cv_lib_svld_dlopen=no
10264fi
10265rm -f conftest.err conftest.$ac_objext \
10266      conftest$ac_exeext conftest.$ac_ext
10267LIBS=$ac_check_lib_save_LIBS
10268fi
10269echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10270echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10271if test $ac_cv_lib_svld_dlopen = yes; then
10272  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10273else
10274  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10275echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10276if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10277  echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279  ac_check_lib_save_LIBS=$LIBS
10280LIBS="-ldld  $LIBS"
10281cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h.  */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h.  */
10287
10288/* Override any gcc2 internal prototype to avoid an error.  */
10289#ifdef __cplusplus
10290extern "C"
10291#endif
10292/* We use char because int might match the return type of a gcc2
10293   builtin and then its argument prototype would still apply.  */
10294char dld_link ();
10295int
10296main ()
10297{
10298dld_link ();
10299  ;
10300  return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext conftest$ac_exeext
10304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305  (eval $ac_link) 2>conftest.er1
10306  ac_status=$?
10307  grep -v '^ *+' conftest.er1 >conftest.err
10308  rm -f conftest.er1
10309  cat conftest.err >&5
10310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); } &&
10312	 { ac_try='test -z "$ac_c_werror_flag"
10313			 || test ! -s conftest.err'
10314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315  (eval $ac_try) 2>&5
10316  ac_status=$?
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); }; } &&
10319	 { ac_try='test -s conftest$ac_exeext'
10320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321  (eval $ac_try) 2>&5
10322  ac_status=$?
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); }; }; then
10325  ac_cv_lib_dld_dld_link=yes
10326else
10327  echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330ac_cv_lib_dld_dld_link=no
10331fi
10332rm -f conftest.err conftest.$ac_objext \
10333      conftest$ac_exeext conftest.$ac_ext
10334LIBS=$ac_check_lib_save_LIBS
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10337echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10338if test $ac_cv_lib_dld_dld_link = yes; then
10339  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351
10352fi
10353
10354
10355fi
10356
10357    ;;
10358  esac
10359
10360  if test "x$lt_cv_dlopen" != xno; then
10361    enable_dlopen=yes
10362  else
10363    enable_dlopen=no
10364  fi
10365
10366  case $lt_cv_dlopen in
10367  dlopen)
10368    save_CPPFLAGS="$CPPFLAGS"
10369    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10370
10371    save_LDFLAGS="$LDFLAGS"
10372    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10373
10374    save_LIBS="$LIBS"
10375    LIBS="$lt_cv_dlopen_libs $LIBS"
10376
10377    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10378echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10379if test "${lt_cv_dlopen_self+set}" = set; then
10380  echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382  	  if test "$cross_compiling" = yes; then :
10383  lt_cv_dlopen_self=cross
10384else
10385  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386  lt_status=$lt_dlunknown
10387  cat > conftest.$ac_ext <<_LT_EOF
10388#line 10388 "configure"
10389#include "confdefs.h"
10390
10391#if HAVE_DLFCN_H
10392#include <dlfcn.h>
10393#endif
10394
10395#include <stdio.h>
10396
10397#ifdef RTLD_GLOBAL
10398#  define LT_DLGLOBAL		RTLD_GLOBAL
10399#else
10400#  ifdef DL_GLOBAL
10401#    define LT_DLGLOBAL		DL_GLOBAL
10402#  else
10403#    define LT_DLGLOBAL		0
10404#  endif
10405#endif
10406
10407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408   find out it does not work in some platform. */
10409#ifndef LT_DLLAZY_OR_NOW
10410#  ifdef RTLD_LAZY
10411#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10412#  else
10413#    ifdef DL_LAZY
10414#      define LT_DLLAZY_OR_NOW		DL_LAZY
10415#    else
10416#      ifdef RTLD_NOW
10417#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10418#      else
10419#        ifdef DL_NOW
10420#          define LT_DLLAZY_OR_NOW	DL_NOW
10421#        else
10422#          define LT_DLLAZY_OR_NOW	0
10423#        endif
10424#      endif
10425#    endif
10426#  endif
10427#endif
10428
10429#ifdef __cplusplus
10430extern "C" void exit (int);
10431#endif
10432
10433void fnord() { int i=42;}
10434int main ()
10435{
10436  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437  int status = $lt_dlunknown;
10438
10439  if (self)
10440    {
10441      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10442      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443      /* dlclose (self); */
10444    }
10445  else
10446    puts (dlerror ());
10447
10448    exit (status);
10449}
10450_LT_EOF
10451  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452  (eval $ac_link) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10456    (./conftest; exit; ) >&5 2>/dev/null
10457    lt_status=$?
10458    case x$lt_status in
10459      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10460      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10461      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10462    esac
10463  else :
10464    # compilation failed
10465    lt_cv_dlopen_self=no
10466  fi
10467fi
10468rm -fr conftest*
10469
10470
10471fi
10472echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10473echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10474
10475    if test "x$lt_cv_dlopen_self" = xyes; then
10476      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10477      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10478echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10479if test "${lt_cv_dlopen_self_static+set}" = set; then
10480  echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482  	  if test "$cross_compiling" = yes; then :
10483  lt_cv_dlopen_self_static=cross
10484else
10485  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10486  lt_status=$lt_dlunknown
10487  cat > conftest.$ac_ext <<_LT_EOF
10488#line 10488 "configure"
10489#include "confdefs.h"
10490
10491#if HAVE_DLFCN_H
10492#include <dlfcn.h>
10493#endif
10494
10495#include <stdio.h>
10496
10497#ifdef RTLD_GLOBAL
10498#  define LT_DLGLOBAL		RTLD_GLOBAL
10499#else
10500#  ifdef DL_GLOBAL
10501#    define LT_DLGLOBAL		DL_GLOBAL
10502#  else
10503#    define LT_DLGLOBAL		0
10504#  endif
10505#endif
10506
10507/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10508   find out it does not work in some platform. */
10509#ifndef LT_DLLAZY_OR_NOW
10510#  ifdef RTLD_LAZY
10511#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10512#  else
10513#    ifdef DL_LAZY
10514#      define LT_DLLAZY_OR_NOW		DL_LAZY
10515#    else
10516#      ifdef RTLD_NOW
10517#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10518#      else
10519#        ifdef DL_NOW
10520#          define LT_DLLAZY_OR_NOW	DL_NOW
10521#        else
10522#          define LT_DLLAZY_OR_NOW	0
10523#        endif
10524#      endif
10525#    endif
10526#  endif
10527#endif
10528
10529#ifdef __cplusplus
10530extern "C" void exit (int);
10531#endif
10532
10533void fnord() { int i=42;}
10534int main ()
10535{
10536  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10537  int status = $lt_dlunknown;
10538
10539  if (self)
10540    {
10541      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10542      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10543      /* dlclose (self); */
10544    }
10545  else
10546    puts (dlerror ());
10547
10548    exit (status);
10549}
10550_LT_EOF
10551  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552  (eval $ac_link) 2>&5
10553  ac_status=$?
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556    (./conftest; exit; ) >&5 2>/dev/null
10557    lt_status=$?
10558    case x$lt_status in
10559      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10560      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10561      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10562    esac
10563  else :
10564    # compilation failed
10565    lt_cv_dlopen_self_static=no
10566  fi
10567fi
10568rm -fr conftest*
10569
10570
10571fi
10572echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10573echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10574    fi
10575
10576    CPPFLAGS="$save_CPPFLAGS"
10577    LDFLAGS="$save_LDFLAGS"
10578    LIBS="$save_LIBS"
10579    ;;
10580  esac
10581
10582  case $lt_cv_dlopen_self in
10583  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10584  *) enable_dlopen_self=unknown ;;
10585  esac
10586
10587  case $lt_cv_dlopen_self_static in
10588  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10589  *) enable_dlopen_self_static=unknown ;;
10590  esac
10591fi
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609striplib=
10610old_striplib=
10611echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10612echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10613if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10614  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10615  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10616  echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618else
10619# FIXME - insert some real tests, host_os isn't really good enough
10620  case $host_os in
10621  darwin*)
10622    if test -n "$STRIP" ; then
10623      striplib="$STRIP -x"
10624      old_striplib="$STRIP -S"
10625      echo "$as_me:$LINENO: result: yes" >&5
10626echo "${ECHO_T}yes" >&6
10627    else
10628      echo "$as_me:$LINENO: result: no" >&5
10629echo "${ECHO_T}no" >&6
10630    fi
10631    ;;
10632  *)
10633    echo "$as_me:$LINENO: result: no" >&5
10634echo "${ECHO_T}no" >&6
10635    ;;
10636  esac
10637fi
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650  # Report which library types will actually be built
10651  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10652echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10653  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10654echo "${ECHO_T}$can_build_shared" >&6
10655
10656  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10657echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10658  test "$can_build_shared" = "no" && enable_shared=no
10659
10660  # On AIX, shared libraries and static libraries use the same namespace, and
10661  # are all built from PIC.
10662  case $host_os in
10663  aix3*)
10664    test "$enable_shared" = yes && enable_static=no
10665    if test -n "$RANLIB"; then
10666      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10667      postinstall_cmds='$RANLIB $lib'
10668    fi
10669    ;;
10670
10671  aix[4-9]*)
10672    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10673      test "$enable_shared" = yes && enable_static=no
10674    fi
10675    ;;
10676  esac
10677  echo "$as_me:$LINENO: result: $enable_shared" >&5
10678echo "${ECHO_T}$enable_shared" >&6
10679
10680  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10681echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10682  # Make sure either enable_shared or enable_static is yes.
10683  test "$enable_shared" = yes || enable_static=yes
10684  echo "$as_me:$LINENO: result: $enable_static" >&5
10685echo "${ECHO_T}$enable_static" >&6
10686
10687
10688
10689
10690fi
10691ac_ext=c
10692ac_cpp='$CPP $CPPFLAGS'
10693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10695ac_compiler_gnu=$ac_cv_c_compiler_gnu
10696
10697CC="$lt_save_CC"
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711                  ac_config_commands="$ac_config_commands libtool"
10712
10713
10714
10715
10716# Only expand once:
10717
10718
10719
10720# Check whether --enable-targets or --disable-targets was given.
10721if test "${enable_targets+set}" = set; then
10722  enableval="$enable_targets"
10723  case "${enableval}" in
10724  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10725echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10726   { (exit 1); exit 1; }; }
10727            ;;
10728  no)       enable_targets= ;;
10729  *)        enable_targets=$enableval ;;
10730esac
10731fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10732if test "${enable_commonbfdlib+set}" = set; then
10733  enableval="$enable_commonbfdlib"
10734  case "${enableval}" in
10735  yes) commonbfdlib=true ;;
10736  no)  commonbfdlib=false ;;
10737  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10738echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10739   { (exit 1); exit 1; }; } ;;
10740esac
10741fi;
10742
10743GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10744
10745# Check whether --enable-werror or --disable-werror was given.
10746if test "${enable_werror+set}" = set; then
10747  enableval="$enable_werror"
10748  case "${enableval}" in
10749     yes | y) ERROR_ON_WARNING="yes" ;;
10750     no | n)  ERROR_ON_WARNING="no" ;;
10751     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10752echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10753   { (exit 1); exit 1; }; } ;;
10754   esac
10755fi;
10756
10757# Enable -Wno-format by default when using gcc on mingw
10758case "${host}" in
10759  *-*-mingw32*)
10760    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10761      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10762    fi
10763    ;;
10764  *) ;;
10765esac
10766
10767# Enable -Werror by default when using gcc
10768if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10769    ERROR_ON_WARNING=yes
10770fi
10771
10772NO_WERROR=
10773if test "${ERROR_ON_WARNING}" = yes ; then
10774    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10775    NO_WERROR="-Wno-error"
10776fi
10777
10778if test "${GCC}" = yes ; then
10779  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10780fi
10781
10782# Check whether --enable-build-warnings or --disable-build-warnings was given.
10783if test "${enable_build_warnings+set}" = set; then
10784  enableval="$enable_build_warnings"
10785  case "${enableval}" in
10786  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10787  no)	if test "${GCC}" = yes ; then
10788	  WARN_CFLAGS="-w"
10789	fi;;
10790  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10791        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10792  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10793        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10794  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10795esac
10796fi;
10797
10798if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10799  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10800fi
10801
10802
10803
10804
10805
10806          ac_config_headers="$ac_config_headers config.h:config.in"
10807
10808
10809if test -z "$target" ; then
10810    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10811echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10812   { (exit 1); exit 1; }; }
10813fi
10814
10815echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10816echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10817    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10818if test "${enable_maintainer_mode+set}" = set; then
10819  enableval="$enable_maintainer_mode"
10820  USE_MAINTAINER_MODE=$enableval
10821else
10822  USE_MAINTAINER_MODE=no
10823fi;
10824  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10825echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10826
10827
10828if test $USE_MAINTAINER_MODE = yes; then
10829  MAINTAINER_MODE_TRUE=
10830  MAINTAINER_MODE_FALSE='#'
10831else
10832  MAINTAINER_MODE_TRUE='#'
10833  MAINTAINER_MODE_FALSE=
10834fi
10835
10836  MAINT=$MAINTAINER_MODE_TRUE
10837
10838
10839 case ${build_alias} in
10840  "") build_noncanonical=${build} ;;
10841  *) build_noncanonical=${build_alias} ;;
10842esac
10843
10844 case ${host_alias} in
10845  "") host_noncanonical=${build_noncanonical} ;;
10846  *) host_noncanonical=${host_alias} ;;
10847esac
10848
10849 case ${target_alias} in
10850  "") target_noncanonical=${host_noncanonical} ;;
10851  *) target_noncanonical=${target_alias} ;;
10852esac
10853
10854echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10855echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10856  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10857if test "${enable_install_libbfd+set}" = set; then
10858  enableval="$enable_install_libbfd"
10859  install_libbfd_p=$enableval
10860else
10861  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10862        install_libbfd_p=yes
10863      else
10864        install_libbfd_p=no
10865      fi
10866fi;
10867  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10868echo "${ECHO_T}$install_libbfd_p" >&6
10869
10870
10871if test $install_libbfd_p = yes; then
10872  INSTALL_LIBBFD_TRUE=
10873  INSTALL_LIBBFD_FALSE='#'
10874else
10875  INSTALL_LIBBFD_TRUE='#'
10876  INSTALL_LIBBFD_FALSE=
10877fi
10878
10879  # Need _noncanonical variables for this.
10880
10881
10882
10883
10884  # libbfd.a is a host library containing target dependent code
10885  bfdlibdir='$(libdir)'
10886  bfdincludedir='$(includedir)'
10887  if test "${host}" != "${target}"; then
10888    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10889    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10890  fi
10891
10892
10893
10894
10895
10896
10897# host-specific stuff:
10898
10899ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10900# If we haven't got the data from the intl directory,
10901# assume NLS is disabled.
10902USE_NLS=no
10903LIBINTL=
10904LIBINTL_DEP=
10905INCINTL=
10906XGETTEXT=
10907GMSGFMT=
10908POSUB=
10909
10910if test -f  ../intl/config.intl; then
10911  .  ../intl/config.intl
10912fi
10913echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10914echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10915if test x"$USE_NLS" != xyes; then
10916  echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
10918else
10919  echo "$as_me:$LINENO: result: yes" >&5
10920echo "${ECHO_T}yes" >&6
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define ENABLE_NLS 1
10924_ACEOF
10925
10926
10927  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10928echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10929  # Look for .po and .gmo files in the source directory.
10930  CATALOGS=
10931  XLINGUAS=
10932  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10933    # If there aren't any .gmo files the shell will give us the
10934    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10935    # weeded out.
10936    case "$cat" in *\**)
10937      continue;;
10938    esac
10939    # The quadruple backslash is collapsed to a double backslash
10940    # by the backticks, then collapsed again by the double quotes,
10941    # leaving us with one backslash in the sed expression (right
10942    # before the dot that mustn't act as a wildcard).
10943    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10944    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10945    # The user is allowed to set LINGUAS to a list of languages to
10946    # install catalogs for.  If it's empty that means "all of them."
10947    if test "x$LINGUAS" = x; then
10948      CATALOGS="$CATALOGS $cat"
10949      XLINGUAS="$XLINGUAS $lang"
10950    else
10951      case "$LINGUAS" in *$lang*)
10952        CATALOGS="$CATALOGS $cat"
10953        XLINGUAS="$XLINGUAS $lang"
10954        ;;
10955      esac
10956    fi
10957  done
10958  LINGUAS="$XLINGUAS"
10959  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10960echo "${ECHO_T}$LINGUAS" >&6
10961
10962
10963    DATADIRNAME=share
10964
10965  INSTOBJEXT=.mo
10966
10967  GENCAT=gencat
10968
10969  CATOBJEXT=.gmo
10970
10971fi
10972
10973        MKINSTALLDIRS=
10974  if test -n "$ac_aux_dir"; then
10975    case "$ac_aux_dir" in
10976      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10977      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10978    esac
10979  fi
10980  if test -z "$MKINSTALLDIRS"; then
10981    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10982  fi
10983
10984
10985
10986  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10987echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10988    # Check whether --enable-nls or --disable-nls was given.
10989if test "${enable_nls+set}" = set; then
10990  enableval="$enable_nls"
10991  USE_NLS=$enableval
10992else
10993  USE_NLS=yes
10994fi;
10995  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10996echo "${ECHO_T}$USE_NLS" >&6
10997
10998
10999
11000
11001
11002
11003# Prepare PATH_SEPARATOR.
11004# The user is always right.
11005if test "${PATH_SEPARATOR+set}" != set; then
11006  echo "#! /bin/sh" >conf$$.sh
11007  echo  "exit 0"   >>conf$$.sh
11008  chmod +x conf$$.sh
11009  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11010    PATH_SEPARATOR=';'
11011  else
11012    PATH_SEPARATOR=:
11013  fi
11014  rm -f conf$$.sh
11015fi
11016
11017# Find out how to test for executable files. Don't use a zero-byte file,
11018# as systems may use methods other than mode bits to determine executability.
11019cat >conf$$.file <<_ASEOF
11020#! /bin/sh
11021exit 0
11022_ASEOF
11023chmod +x conf$$.file
11024if test -x conf$$.file >/dev/null 2>&1; then
11025  ac_executable_p="test -x"
11026else
11027  ac_executable_p="test -f"
11028fi
11029rm -f conf$$.file
11030
11031# Extract the first word of "msgfmt", so it can be a program name with args.
11032set dummy msgfmt; ac_word=$2
11033echo "$as_me:$LINENO: checking for $ac_word" >&5
11034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11035if test "${ac_cv_path_MSGFMT+set}" = set; then
11036  echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038  case "$MSGFMT" in
11039  [\\/]* | ?:[\\/]*)
11040    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11041    ;;
11042  *)
11043    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11044    for ac_dir in $PATH; do
11045      IFS="$ac_save_IFS"
11046      test -z "$ac_dir" && ac_dir=.
11047      for ac_exec_ext in '' $ac_executable_extensions; do
11048        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11049          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11050     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11051            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11052            break 2
11053          fi
11054        fi
11055      done
11056    done
11057    IFS="$ac_save_IFS"
11058  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11059    ;;
11060esac
11061fi
11062MSGFMT="$ac_cv_path_MSGFMT"
11063if test "$MSGFMT" != ":"; then
11064  echo "$as_me:$LINENO: result: $MSGFMT" >&5
11065echo "${ECHO_T}$MSGFMT" >&6
11066else
11067  echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
11069fi
11070
11071  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11072set dummy gmsgfmt; ac_word=$2
11073echo "$as_me:$LINENO: checking for $ac_word" >&5
11074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075if test "${ac_cv_path_GMSGFMT+set}" = set; then
11076  echo $ECHO_N "(cached) $ECHO_C" >&6
11077else
11078  case $GMSGFMT in
11079  [\\/]* | ?:[\\/]*)
11080  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11081  ;;
11082  *)
11083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086  IFS=$as_save_IFS
11087  test -z "$as_dir" && as_dir=.
11088  for ac_exec_ext in '' $ac_executable_extensions; do
11089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11092    break 2
11093  fi
11094done
11095done
11096
11097  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11098  ;;
11099esac
11100fi
11101GMSGFMT=$ac_cv_path_GMSGFMT
11102
11103if test -n "$GMSGFMT"; then
11104  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11105echo "${ECHO_T}$GMSGFMT" >&6
11106else
11107  echo "$as_me:$LINENO: result: no" >&5
11108echo "${ECHO_T}no" >&6
11109fi
11110
11111
11112
11113# Prepare PATH_SEPARATOR.
11114# The user is always right.
11115if test "${PATH_SEPARATOR+set}" != set; then
11116  echo "#! /bin/sh" >conf$$.sh
11117  echo  "exit 0"   >>conf$$.sh
11118  chmod +x conf$$.sh
11119  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11120    PATH_SEPARATOR=';'
11121  else
11122    PATH_SEPARATOR=:
11123  fi
11124  rm -f conf$$.sh
11125fi
11126
11127# Find out how to test for executable files. Don't use a zero-byte file,
11128# as systems may use methods other than mode bits to determine executability.
11129cat >conf$$.file <<_ASEOF
11130#! /bin/sh
11131exit 0
11132_ASEOF
11133chmod +x conf$$.file
11134if test -x conf$$.file >/dev/null 2>&1; then
11135  ac_executable_p="test -x"
11136else
11137  ac_executable_p="test -f"
11138fi
11139rm -f conf$$.file
11140
11141# Extract the first word of "xgettext", so it can be a program name with args.
11142set dummy xgettext; ac_word=$2
11143echo "$as_me:$LINENO: checking for $ac_word" >&5
11144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11145if test "${ac_cv_path_XGETTEXT+set}" = set; then
11146  echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148  case "$XGETTEXT" in
11149  [\\/]* | ?:[\\/]*)
11150    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11151    ;;
11152  *)
11153    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11154    for ac_dir in $PATH; do
11155      IFS="$ac_save_IFS"
11156      test -z "$ac_dir" && ac_dir=.
11157      for ac_exec_ext in '' $ac_executable_extensions; do
11158        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11159          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11160     (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
11161            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11162            break 2
11163          fi
11164        fi
11165      done
11166    done
11167    IFS="$ac_save_IFS"
11168  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11169    ;;
11170esac
11171fi
11172XGETTEXT="$ac_cv_path_XGETTEXT"
11173if test "$XGETTEXT" != ":"; then
11174  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11175echo "${ECHO_T}$XGETTEXT" >&6
11176else
11177  echo "$as_me:$LINENO: result: no" >&5
11178echo "${ECHO_T}no" >&6
11179fi
11180
11181    rm -f messages.po
11182
11183
11184# Prepare PATH_SEPARATOR.
11185# The user is always right.
11186if test "${PATH_SEPARATOR+set}" != set; then
11187  echo "#! /bin/sh" >conf$$.sh
11188  echo  "exit 0"   >>conf$$.sh
11189  chmod +x conf$$.sh
11190  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11191    PATH_SEPARATOR=';'
11192  else
11193    PATH_SEPARATOR=:
11194  fi
11195  rm -f conf$$.sh
11196fi
11197
11198# Find out how to test for executable files. Don't use a zero-byte file,
11199# as systems may use methods other than mode bits to determine executability.
11200cat >conf$$.file <<_ASEOF
11201#! /bin/sh
11202exit 0
11203_ASEOF
11204chmod +x conf$$.file
11205if test -x conf$$.file >/dev/null 2>&1; then
11206  ac_executable_p="test -x"
11207else
11208  ac_executable_p="test -f"
11209fi
11210rm -f conf$$.file
11211
11212# Extract the first word of "msgmerge", so it can be a program name with args.
11213set dummy msgmerge; ac_word=$2
11214echo "$as_me:$LINENO: checking for $ac_word" >&5
11215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11216if test "${ac_cv_path_MSGMERGE+set}" = set; then
11217  echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219  case "$MSGMERGE" in
11220  [\\/]* | ?:[\\/]*)
11221    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11222    ;;
11223  *)
11224    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11225    for ac_dir in $PATH; do
11226      IFS="$ac_save_IFS"
11227      test -z "$ac_dir" && ac_dir=.
11228      for ac_exec_ext in '' $ac_executable_extensions; do
11229        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11230          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11231            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11232            break 2
11233          fi
11234        fi
11235      done
11236    done
11237    IFS="$ac_save_IFS"
11238  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11239    ;;
11240esac
11241fi
11242MSGMERGE="$ac_cv_path_MSGMERGE"
11243if test "$MSGMERGE" != ":"; then
11244  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11245echo "${ECHO_T}$MSGMERGE" >&6
11246else
11247  echo "$as_me:$LINENO: result: no" >&5
11248echo "${ECHO_T}no" >&6
11249fi
11250
11251
11252      if test "$GMSGFMT" != ":"; then
11253            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11254       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11255      : ;
11256    else
11257      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11258      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11259echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11260      GMSGFMT=":"
11261    fi
11262  fi
11263
11264      if test "$XGETTEXT" != ":"; then
11265            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11266       (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
11267      : ;
11268    else
11269      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11270echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11271      XGETTEXT=":"
11272    fi
11273        rm -f messages.po
11274  fi
11275
11276            ac_config_commands="$ac_config_commands default-1"
11277
11278
11279
11280. ${srcdir}/../bfd/configure.host
11281
11282# Put a plausible default for CC_FOR_BUILD in Makefile.
11283if test -z "$CC_FOR_BUILD"; then
11284  if test "x$cross_compiling" = "xno"; then
11285    CC_FOR_BUILD='$(CC)'
11286  else
11287    CC_FOR_BUILD=gcc
11288  fi
11289fi
11290
11291# Also set EXEEXT_FOR_BUILD.
11292if test "x$cross_compiling" = "xno"; then
11293  EXEEXT_FOR_BUILD='$(EXEEXT)'
11294else
11295  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11296echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11297if test "${bfd_cv_build_exeext+set}" = set; then
11298  echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300  rm -f conftest*
11301     echo 'int main () { return 0; }' > conftest.c
11302     bfd_cv_build_exeext=
11303     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11304     for file in conftest.*; do
11305       case $file in
11306       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11307       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11308       esac
11309     done
11310     rm -f conftest*
11311     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11312fi
11313echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11314echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11315  EXEEXT_FOR_BUILD=""
11316  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11317fi
11318
11319
11320
11321# Find a good install program.  We prefer a C program (faster),
11322# so one script is as good as another.  But avoid the broken or
11323# incompatible versions:
11324# SysV /etc/install, /usr/sbin/install
11325# SunOS /usr/etc/install
11326# IRIX /sbin/install
11327# AIX /bin/install
11328# AmigaOS /C/install, which installs bootblocks on floppy discs
11329# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11330# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11331# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11332# OS/2's system install, which has a completely different semantic
11333# ./install, which can be erroneously created by make from ./install.sh.
11334# Reject install programs that cannot install multiple files.
11335echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11336echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11337if test -z "$INSTALL"; then
11338if test "${ac_cv_path_install+set}" = set; then
11339  echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $PATH
11343do
11344  IFS=$as_save_IFS
11345  test -z "$as_dir" && as_dir=.
11346  # Account for people who put trailing slashes in PATH elements.
11347case $as_dir/ in
11348  ./ | .// | /cC/* | \
11349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11350  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11351  /usr/ucb/* ) ;;
11352  *)
11353    # OSF1 and SCO ODT 3.0 have their own names for install.
11354    # Don't use installbsd from OSF since it installs stuff as root
11355    # by default.
11356    for ac_prog in ginstall scoinst install; do
11357      for ac_exec_ext in '' $ac_executable_extensions; do
11358	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11359	  if test $ac_prog = install &&
11360	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11361	    # AIX install.  It has an incompatible calling convention.
11362	    :
11363	  elif test $ac_prog = install &&
11364	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11365	    # program-specific install script used by HP pwplus--don't use.
11366	    :
11367	  else
11368	    rm -rf conftest.one conftest.two conftest.dir
11369	    echo one > conftest.one
11370	    echo two > conftest.two
11371	    mkdir conftest.dir
11372	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11373	      test -s conftest.one && test -s conftest.two &&
11374	      test -s conftest.dir/conftest.one &&
11375	      test -s conftest.dir/conftest.two
11376	    then
11377	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11378	      break 3
11379	    fi
11380	  fi
11381	fi
11382      done
11383    done
11384    ;;
11385esac
11386done
11387
11388rm -rf conftest.one conftest.two conftest.dir
11389
11390fi
11391  if test "${ac_cv_path_install+set}" = set; then
11392    INSTALL=$ac_cv_path_install
11393  else
11394    # As a last resort, use the slow shell script.  Don't cache a
11395    # value for INSTALL within a source directory, because that will
11396    # break other packages using the cache if that directory is
11397    # removed, or if the value is a relative name.
11398    INSTALL=$ac_install_sh
11399  fi
11400fi
11401echo "$as_me:$LINENO: result: $INSTALL" >&5
11402echo "${ECHO_T}$INSTALL" >&6
11403
11404# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11405# It thinks the first close brace ends the variable substitution.
11406test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11407
11408test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11409
11410test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11411
11412
11413
11414
11415
11416
11417for ac_header in string.h strings.h stdlib.h limits.h
11418do
11419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11420if eval "test \"\${$as_ac_Header+set}\" = set"; then
11421  echo "$as_me:$LINENO: checking for $ac_header" >&5
11422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11423if eval "test \"\${$as_ac_Header+set}\" = set"; then
11424  echo $ECHO_N "(cached) $ECHO_C" >&6
11425fi
11426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11428else
11429  # Is the header compilable?
11430echo "$as_me:$LINENO: checking $ac_header usability" >&5
11431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11432cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h.  */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h.  */
11438$ac_includes_default
11439#include <$ac_header>
11440_ACEOF
11441rm -f conftest.$ac_objext
11442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443  (eval $ac_compile) 2>conftest.er1
11444  ac_status=$?
11445  grep -v '^ *+' conftest.er1 >conftest.err
11446  rm -f conftest.er1
11447  cat conftest.err >&5
11448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449  (exit $ac_status); } &&
11450	 { ac_try='test -z "$ac_c_werror_flag"
11451			 || test ! -s conftest.err'
11452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453  (eval $ac_try) 2>&5
11454  ac_status=$?
11455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456  (exit $ac_status); }; } &&
11457	 { ac_try='test -s conftest.$ac_objext'
11458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459  (eval $ac_try) 2>&5
11460  ac_status=$?
11461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462  (exit $ac_status); }; }; then
11463  ac_header_compiler=yes
11464else
11465  echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468ac_header_compiler=no
11469fi
11470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472echo "${ECHO_T}$ac_header_compiler" >&6
11473
11474# Is the header present?
11475echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11477cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h.  */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h.  */
11483#include <$ac_header>
11484_ACEOF
11485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11487  ac_status=$?
11488  grep -v '^ *+' conftest.er1 >conftest.err
11489  rm -f conftest.er1
11490  cat conftest.err >&5
11491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492  (exit $ac_status); } >/dev/null; then
11493  if test -s conftest.err; then
11494    ac_cpp_err=$ac_c_preproc_warn_flag
11495    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11496  else
11497    ac_cpp_err=
11498  fi
11499else
11500  ac_cpp_err=yes
11501fi
11502if test -z "$ac_cpp_err"; then
11503  ac_header_preproc=yes
11504else
11505  echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508  ac_header_preproc=no
11509fi
11510rm -f conftest.err conftest.$ac_ext
11511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512echo "${ECHO_T}$ac_header_preproc" >&6
11513
11514# So?  What about this header?
11515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516  yes:no: )
11517    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521    ac_header_preproc=yes
11522    ;;
11523  no:yes:* )
11524    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11527echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11528    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11531echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536    (
11537      cat <<\_ASBOX
11538## ------------------------------------------ ##
11539## Report this to the AC_PACKAGE_NAME lists.  ##
11540## ------------------------------------------ ##
11541_ASBOX
11542    ) |
11543      sed "s/^/$as_me: WARNING:     /" >&2
11544    ;;
11545esac
11546echo "$as_me:$LINENO: checking for $ac_header" >&5
11547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11548if eval "test \"\${$as_ac_Header+set}\" = set"; then
11549  echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551  eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11555
11556fi
11557if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558  cat >>confdefs.h <<_ACEOF
11559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560_ACEOF
11561
11562fi
11563
11564done
11565
11566
11567echo "$as_me:$LINENO: checking whether basename is declared" >&5
11568echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11569if test "${ac_cv_have_decl_basename+set}" = set; then
11570  echo $ECHO_N "(cached) $ECHO_C" >&6
11571else
11572  cat >conftest.$ac_ext <<_ACEOF
11573/* confdefs.h.  */
11574_ACEOF
11575cat confdefs.h >>conftest.$ac_ext
11576cat >>conftest.$ac_ext <<_ACEOF
11577/* end confdefs.h.  */
11578$ac_includes_default
11579int
11580main ()
11581{
11582#ifndef basename
11583  char *p = (char *) basename;
11584#endif
11585
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592  (eval $ac_compile) 2>conftest.er1
11593  ac_status=$?
11594  grep -v '^ *+' conftest.er1 >conftest.err
11595  rm -f conftest.er1
11596  cat conftest.err >&5
11597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598  (exit $ac_status); } &&
11599	 { ac_try='test -z "$ac_c_werror_flag"
11600			 || test ! -s conftest.err'
11601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602  (eval $ac_try) 2>&5
11603  ac_status=$?
11604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605  (exit $ac_status); }; } &&
11606	 { ac_try='test -s conftest.$ac_objext'
11607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608  (eval $ac_try) 2>&5
11609  ac_status=$?
11610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611  (exit $ac_status); }; }; then
11612  ac_cv_have_decl_basename=yes
11613else
11614  echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617ac_cv_have_decl_basename=no
11618fi
11619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11620fi
11621echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11622echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11623if test $ac_cv_have_decl_basename = yes; then
11624
11625cat >>confdefs.h <<_ACEOF
11626#define HAVE_DECL_BASENAME 1
11627_ACEOF
11628
11629
11630else
11631  cat >>confdefs.h <<_ACEOF
11632#define HAVE_DECL_BASENAME 0
11633_ACEOF
11634
11635
11636fi
11637echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11638echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11639if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11640  echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642  cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h.  */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h.  */
11648$ac_includes_default
11649int
11650main ()
11651{
11652#ifndef stpcpy
11653  char *p = (char *) stpcpy;
11654#endif
11655
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext
11661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662  (eval $ac_compile) 2>conftest.er1
11663  ac_status=$?
11664  grep -v '^ *+' conftest.er1 >conftest.err
11665  rm -f conftest.er1
11666  cat conftest.err >&5
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); } &&
11669	 { ac_try='test -z "$ac_c_werror_flag"
11670			 || test ! -s conftest.err'
11671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672  (eval $ac_try) 2>&5
11673  ac_status=$?
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); }; } &&
11676	 { ac_try='test -s conftest.$ac_objext'
11677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678  (eval $ac_try) 2>&5
11679  ac_status=$?
11680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681  (exit $ac_status); }; }; then
11682  ac_cv_have_decl_stpcpy=yes
11683else
11684  echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687ac_cv_have_decl_stpcpy=no
11688fi
11689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11692echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11693if test $ac_cv_have_decl_stpcpy = yes; then
11694
11695cat >>confdefs.h <<_ACEOF
11696#define HAVE_DECL_STPCPY 1
11697_ACEOF
11698
11699
11700else
11701  cat >>confdefs.h <<_ACEOF
11702#define HAVE_DECL_STPCPY 0
11703_ACEOF
11704
11705
11706fi
11707
11708
11709
11710cgen_maint=no
11711cgendir='$(srcdir)/../cgen'
11712
11713# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11714if test "${enable_cgen_maint+set}" = set; then
11715  enableval="$enable_cgen_maint"
11716  case "${enableval}" in
11717  yes)	cgen_maint=yes ;;
11718  no)	cgen_maint=no ;;
11719  *)
11720	# argument is cgen install directory (not implemented yet).
11721	# Having a `share' directory might be more appropriate for the .scm,
11722	# .cpu, etc. files.
11723	cgen_maint=yes
11724	cgendir=${cgen_maint}/lib/cgen
11725	;;
11726esac
11727fi;
11728
11729if test x${cgen_maint} = xyes; then
11730  CGEN_MAINT_TRUE=
11731  CGEN_MAINT_FALSE='#'
11732else
11733  CGEN_MAINT_TRUE='#'
11734  CGEN_MAINT_FALSE=
11735fi
11736
11737
11738
11739using_cgen=no
11740
11741# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11742SHARED_LDFLAGS=
11743SHARED_LIBADD=
11744SHARED_DEPENDENCIES=
11745if test "$enable_shared" = "yes"; then
11746  case "${host}" in
11747    *-*-cygwin*)
11748      SHARED_LDFLAGS="-no-undefined"
11749      SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11750      ;;
11751   *-*-darwin*)
11752     SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11753     SHARED_DEPENDENCIES="../bfd/libbfd.la"
11754     ;;
11755    *)
11756      case "$host_vendor" in
11757        hp)
11758          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11759	  ;;
11760	*)
11761          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11762	  ;;
11763      esac
11764      SHARED_DEPENDENCIES="../bfd/libbfd.la"
11765      ;;
11766  esac
11767fi
11768
11769
11770
11771
11772# target-specific stuff:
11773
11774# Canonicalize the secondary target names.
11775if test -n "$enable_targets" ; then
11776    for targ in `echo $enable_targets | sed 's/,/ /g'`
11777    do
11778	result=`$ac_config_sub $targ 2>/dev/null`
11779	if test -n "$result" ; then
11780	    canon_targets="$canon_targets $result"
11781	else
11782	    # Allow targets that config.sub doesn't recognize, like "all".
11783	    canon_targets="$canon_targets $targ"
11784	fi
11785    done
11786fi
11787
11788all_targets=false
11789selarchs=
11790for targ in $target $canon_targets
11791do
11792    if test "x$targ" = "xall" ; then
11793        all_targets=true
11794    else
11795	. $srcdir/../bfd/config.bfd
11796	selarchs="$selarchs $targ_archs"
11797    fi
11798done
11799
11800# Utility var, documents generic cgen support files.
11801
11802cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11803
11804# We don't do any links based on the target system, just makefile config.
11805
11806if test x${all_targets} = xfalse ; then
11807
11808    # Target architecture .o files.
11809    ta=
11810
11811    for arch in $selarchs
11812    do
11813	ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11814	archdefs="$archdefs -DARCH_$ad"
11815	case "$arch" in
11816	bfd_alpha_arch)		ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11817	bfd_arc_arch)		ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11818	bfd_arm_arch)		ta="$ta arm-dis.lo" ;;
11819	bfd_avr_arch)		ta="$ta avr-dis.lo" ;;
11820	bfd_bfin_arch)		ta="$ta bfin-dis.lo" ;;
11821	bfd_cr16_arch)    	ta="$ta cr16-dis.lo cr16-opc.lo" ;;
11822	bfd_cris_arch)		ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11823	bfd_crx_arch)    	ta="$ta crx-dis.lo crx-opc.lo" ;;
11824	bfd_d10v_arch)		ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11825	bfd_d30v_arch)		ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11826	bfd_dlx_arch)		ta="$ta dlx-dis.lo" ;;
11827	bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11828	bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11829	bfd_h8300_arch)		ta="$ta h8300-dis.lo" ;;
11830	bfd_h8500_arch)		ta="$ta h8500-dis.lo" ;;
11831	bfd_hppa_arch)		ta="$ta hppa-dis.lo" ;;
11832	bfd_i370_arch)		ta="$ta i370-dis.lo i370-opc.lo" ;;
11833	bfd_i386_arch)		ta="$ta i386-dis.lo i386-opc.lo" ;;
11834	bfd_i860_arch)		ta="$ta i860-dis.lo" ;;
11835	bfd_i960_arch)		ta="$ta i960-dis.lo" ;;
11836	bfd_ia64_arch)		ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11837	bfd_ip2k_arch)		ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11838        bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11839	bfd_m32c_arch)		ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11840	bfd_m32r_arch)		ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
11841	bfd_m68hc11_arch)	ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11842	bfd_m68hc12_arch)	ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11843	bfd_m68k_arch)		ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11844	bfd_m88k_arch)		ta="$ta m88k-dis.lo" ;;
11845	bfd_maxq_arch)		ta="$ta maxq-dis.lo" ;;
11846	bfd_mcore_arch)		ta="$ta mcore-dis.lo" ;;
11847	bfd_mep_arch)		ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11848	bfd_mips_arch)		ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11849	bfd_mmix_arch)		ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11850	bfd_mn10200_arch)	ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11851	bfd_mn10300_arch)	ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11852	bfd_mt_arch)		ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11853	bfd_msp430_arch)	ta="$ta msp430-dis.lo" ;;
11854	bfd_ns32k_arch)		ta="$ta ns32k-dis.lo" ;;
11855	bfd_openrisc_arch)	ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11856	bfd_or32_arch)		ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11857	bfd_pdp11_arch)		ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11858	bfd_pj_arch)	        ta="$ta pj-dis.lo pj-opc.lo" ;;
11859	bfd_powerpc_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11860	bfd_powerpc_64_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11861	bfd_pyramid_arch)	;;
11862	bfd_romp_arch)		;;
11863	bfd_rs6000_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11864	bfd_s390_arch)		ta="$ta s390-dis.lo s390-opc.lo" ;;
11865	bfd_score_arch)         ta="$ta score-dis.lo" ;;
11866	bfd_sh_arch)
11867	  # We can't decide what we want just from the CPU family.
11868	  # We want SH5 support unless a specific version of sh is
11869	  # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11870	  # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11871	  for t in $target $canon_targets; do
11872	    # For NetBSD we do NOT want SH5 support unless sh5 or sh64
11873	    # is specified
11874	    case $t in
11875	      sh5*-* | sh64*-*) # let the case below handle it
11876				;;
11877	      sh*-*-netbsd* | sh*l*-*-netbsd*)
11878				continue ;;
11879	      esac
11880	    case $t in
11881	      all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11882	      sh-*-linux* | shl-*-linux*)
11883				ta="$ta sh64-dis.lo sh64-opc.lo"
11884				archdefs="$archdefs -DINCLUDE_SHMEDIA"
11885				break;;
11886	    esac;
11887	  done
11888				ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11889	bfd_sparc_arch)		ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11890	bfd_spu_arch)		ta="$ta spu-dis.lo spu-opc.lo" ;;
11891	bfd_tahoe_arch)		;;
11892	bfd_tic30_arch)		ta="$ta tic30-dis.lo" ;;
11893        bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
11894	bfd_tic54x_arch)	ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11895	bfd_tic80_arch)		ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11896	bfd_v850_arch)		ta="$ta v850-opc.lo v850-dis.lo" ;;
11897	bfd_v850e_arch)		ta="$ta v850-opc.lo v850-dis.lo" ;;
11898	bfd_v850ea_arch)	ta="$ta v850-opc.lo v850-dis.lo" ;;
11899	bfd_vax_arch)		ta="$ta vax-dis.lo" ;;
11900	bfd_w65_arch)		ta="$ta w65-dis.lo" ;;
11901	bfd_we32k_arch)		;;
11902	bfd_xc16x_arch)		ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11903	bfd_xstormy16_arch)	ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11904	bfd_xtensa_arch)	ta="$ta xtensa-dis.lo" ;;
11905	bfd_z80_arch)		ta="$ta z80-dis.lo" ;;
11906	bfd_z8k_arch)		ta="$ta z8k-dis.lo" ;;
11907
11908	"")			;;
11909	*)		{ { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11910echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11911   { (exit 1); exit 1; }; } ;;
11912	esac
11913    done
11914
11915    if test $using_cgen = yes ; then
11916	ta="$ta $cgen_files"
11917    fi
11918
11919    # Weed out duplicate .o files.
11920    f=""
11921    for i in $ta ; do
11922	case " $f " in
11923	*" $i "*) ;;
11924	*) f="$f $i" ;;
11925	esac
11926    done
11927    ta="$f"
11928
11929    # And duplicate -D flags.
11930    f=""
11931    for i in $archdefs ; do
11932	case " $f " in
11933	*" $i "*) ;;
11934	*) f="$f $i" ;;
11935	esac
11936    done
11937    archdefs="$f"
11938
11939    BFD_MACHINES="$ta"
11940
11941else	# all_targets is true
11942    archdefs=-DARCH_all
11943    BFD_MACHINES='$(ALL_MACHINES)'
11944fi
11945
11946
11947
11948
11949                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11950
11951cat >confcache <<\_ACEOF
11952# This file is a shell script that caches the results of configure
11953# tests run on this system so they can be shared between configure
11954# scripts and configure runs, see configure's option --config-cache.
11955# It is not useful on other systems.  If it contains results you don't
11956# want to keep, you may remove or edit it.
11957#
11958# config.status only pays attention to the cache file if you give it
11959# the --recheck option to rerun configure.
11960#
11961# `ac_cv_env_foo' variables (set or unset) will be overridden when
11962# loading this file, other *unset* `ac_cv_foo' will be assigned the
11963# following values.
11964
11965_ACEOF
11966
11967# The following way of writing the cache mishandles newlines in values,
11968# but we know of no workaround that is simple, portable, and efficient.
11969# So, don't put newlines in cache variables' values.
11970# Ultrix sh set writes to stderr and can't be redirected directly,
11971# and sets the high bit in the cache file unless we assign to the vars.
11972{
11973  (set) 2>&1 |
11974    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11975    *ac_space=\ *)
11976      # `set' does not quote correctly, so add quotes (double-quote
11977      # substitution turns \\\\ into \\, and sed turns \\ into \).
11978      sed -n \
11979	"s/'/'\\\\''/g;
11980	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11981      ;;
11982    *)
11983      # `set' quotes correctly as required by POSIX, so do not add quotes.
11984      sed -n \
11985	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11986      ;;
11987    esac;
11988} |
11989  sed '
11990     t clear
11991     : clear
11992     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11993     t end
11994     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11995     : end' >>confcache
11996if diff $cache_file confcache >/dev/null 2>&1; then :; else
11997  if test -w $cache_file; then
11998    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11999    cat confcache >$cache_file
12000  else
12001    echo "not updating unwritable cache $cache_file"
12002  fi
12003fi
12004rm -f confcache
12005
12006test "x$prefix" = xNONE && prefix=$ac_default_prefix
12007# Let make expand exec_prefix.
12008test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12009
12010# VPATH may cause trouble with some makes, so we remove $(srcdir),
12011# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12012# trailing colons and then remove the whole line if VPATH becomes empty
12013# (actually we leave an empty line to preserve line numbers).
12014if test "x$srcdir" = x.; then
12015  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12016s/:*\$(srcdir):*/:/;
12017s/:*\${srcdir}:*/:/;
12018s/:*@srcdir@:*/:/;
12019s/^\([^=]*=[	 ]*\):*/\1/;
12020s/:*$//;
12021s/^[^=]*=[	 ]*$//;
12022}'
12023fi
12024
12025DEFS=-DHAVE_CONFIG_H
12026
12027ac_libobjs=
12028ac_ltlibobjs=
12029for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12030  # 1. Remove the extension, and $U if already installed.
12031  ac_i=`echo "$ac_i" |
12032	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12033  # 2. Add them.
12034  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12035  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12036done
12037LIBOBJS=$ac_libobjs
12038
12039LTLIBOBJS=$ac_ltlibobjs
12040
12041
12042if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12043  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12044Usually this means the macro was only invoked conditionally." >&5
12045echo "$as_me: error: conditional \"AMDEP\" was never defined.
12046Usually this means the macro was only invoked conditionally." >&2;}
12047   { (exit 1); exit 1; }; }
12048fi
12049if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12050  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12051Usually this means the macro was only invoked conditionally." >&5
12052echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12053Usually this means the macro was only invoked conditionally." >&2;}
12054   { (exit 1); exit 1; }; }
12055fi
12056if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12057  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12058Usually this means the macro was only invoked conditionally." >&5
12059echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12060Usually this means the macro was only invoked conditionally." >&2;}
12061   { (exit 1); exit 1; }; }
12062fi
12063if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12064  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12065Usually this means the macro was only invoked conditionally." >&5
12066echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12067Usually this means the macro was only invoked conditionally." >&2;}
12068   { (exit 1); exit 1; }; }
12069fi
12070if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
12071  { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
12072Usually this means the macro was only invoked conditionally." >&5
12073echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
12074Usually this means the macro was only invoked conditionally." >&2;}
12075   { (exit 1); exit 1; }; }
12076fi
12077
12078: ${CONFIG_STATUS=./config.status}
12079ac_clean_files_save=$ac_clean_files
12080ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12081{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12082echo "$as_me: creating $CONFIG_STATUS" >&6;}
12083cat >$CONFIG_STATUS <<_ACEOF
12084#! $SHELL
12085# Generated by $as_me.
12086# Run this file to recreate the current configuration.
12087# Compiler output produced by configure, useful for debugging
12088# configure, is in config.log if it exists.
12089
12090debug=false
12091ac_cs_recheck=false
12092ac_cs_silent=false
12093SHELL=\${CONFIG_SHELL-$SHELL}
12094_ACEOF
12095
12096cat >>$CONFIG_STATUS <<\_ACEOF
12097## --------------------- ##
12098## M4sh Initialization.  ##
12099## --------------------- ##
12100
12101# Be Bourne compatible
12102if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12103  emulate sh
12104  NULLCMD=:
12105  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12106  # is contrary to our usage.  Disable this feature.
12107  alias -g '${1+"$@"}'='"$@"'
12108elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12109  set -o posix
12110fi
12111DUALCASE=1; export DUALCASE # for MKS sh
12112
12113# Support unset when possible.
12114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12115  as_unset=unset
12116else
12117  as_unset=false
12118fi
12119
12120
12121# Work around bugs in pre-3.0 UWIN ksh.
12122$as_unset ENV MAIL MAILPATH
12123PS1='$ '
12124PS2='> '
12125PS4='+ '
12126
12127# NLS nuisances.
12128for as_var in \
12129  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12130  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12131  LC_TELEPHONE LC_TIME
12132do
12133  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12134    eval $as_var=C; export $as_var
12135  else
12136    $as_unset $as_var
12137  fi
12138done
12139
12140# Required to use basename.
12141if expr a : '\(a\)' >/dev/null 2>&1; then
12142  as_expr=expr
12143else
12144  as_expr=false
12145fi
12146
12147if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12148  as_basename=basename
12149else
12150  as_basename=false
12151fi
12152
12153
12154# Name of the executable.
12155as_me=`$as_basename "$0" ||
12156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12157	 X"$0" : 'X\(//\)$' \| \
12158	 X"$0" : 'X\(/\)$' \| \
12159	 .     : '\(.\)' 2>/dev/null ||
12160echo X/"$0" |
12161    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12162  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12163  	  /^X\/\(\/\).*/{ s//\1/; q; }
12164  	  s/.*/./; q'`
12165
12166
12167# PATH needs CR, and LINENO needs CR and PATH.
12168# Avoid depending upon Character Ranges.
12169as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12171as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12172as_cr_digits='0123456789'
12173as_cr_alnum=$as_cr_Letters$as_cr_digits
12174
12175# The user is always right.
12176if test "${PATH_SEPARATOR+set}" != set; then
12177  echo "#! /bin/sh" >conf$$.sh
12178  echo  "exit 0"   >>conf$$.sh
12179  chmod +x conf$$.sh
12180  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12181    PATH_SEPARATOR=';'
12182  else
12183    PATH_SEPARATOR=:
12184  fi
12185  rm -f conf$$.sh
12186fi
12187
12188
12189  as_lineno_1=$LINENO
12190  as_lineno_2=$LINENO
12191  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12192  test "x$as_lineno_1" != "x$as_lineno_2" &&
12193  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12194  # Find who we are.  Look in the path if we contain no path at all
12195  # relative or not.
12196  case $0 in
12197    *[\\/]* ) as_myself=$0 ;;
12198    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199for as_dir in $PATH
12200do
12201  IFS=$as_save_IFS
12202  test -z "$as_dir" && as_dir=.
12203  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12204done
12205
12206       ;;
12207  esac
12208  # We did not find ourselves, most probably we were run as `sh COMMAND'
12209  # in which case we are not to be found in the path.
12210  if test "x$as_myself" = x; then
12211    as_myself=$0
12212  fi
12213  if test ! -f "$as_myself"; then
12214    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12215echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12216   { (exit 1); exit 1; }; }
12217  fi
12218  case $CONFIG_SHELL in
12219  '')
12220    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12222do
12223  IFS=$as_save_IFS
12224  test -z "$as_dir" && as_dir=.
12225  for as_base in sh bash ksh sh5; do
12226	 case $as_dir in
12227	 /*)
12228	   if ("$as_dir/$as_base" -c '
12229  as_lineno_1=$LINENO
12230  as_lineno_2=$LINENO
12231  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12232  test "x$as_lineno_1" != "x$as_lineno_2" &&
12233  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12234	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12235	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12236	     CONFIG_SHELL=$as_dir/$as_base
12237	     export CONFIG_SHELL
12238	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12239	   fi;;
12240	 esac
12241       done
12242done
12243;;
12244  esac
12245
12246  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12247  # uniformly replaced by the line number.  The first 'sed' inserts a
12248  # line-number line before each line; the second 'sed' does the real
12249  # work.  The second script uses 'N' to pair each line-number line
12250  # with the numbered line, and appends trailing '-' during
12251  # substitution so that $LINENO is not a special case at line end.
12252  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12253  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12254  sed '=' <$as_myself |
12255    sed '
12256      N
12257      s,$,-,
12258      : loop
12259      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12260      t loop
12261      s,-$,,
12262      s,^['$as_cr_digits']*\n,,
12263    ' >$as_me.lineno &&
12264  chmod +x $as_me.lineno ||
12265    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12266echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12267   { (exit 1); exit 1; }; }
12268
12269  # Don't try to exec as it changes $[0], causing all sort of problems
12270  # (the dirname of $[0] is not the place where we might find the
12271  # original and so on.  Autoconf is especially sensible to this).
12272  . ./$as_me.lineno
12273  # Exit status is that of the last command.
12274  exit
12275}
12276
12277
12278case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12279  *c*,-n*) ECHO_N= ECHO_C='
12280' ECHO_T='	' ;;
12281  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12282  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12283esac
12284
12285if expr a : '\(a\)' >/dev/null 2>&1; then
12286  as_expr=expr
12287else
12288  as_expr=false
12289fi
12290
12291rm -f conf$$ conf$$.exe conf$$.file
12292echo >conf$$.file
12293if ln -s conf$$.file conf$$ 2>/dev/null; then
12294  # We could just check for DJGPP; but this test a) works b) is more generic
12295  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12296  if test -f conf$$.exe; then
12297    # Don't use ln at all; we don't have any links
12298    as_ln_s='cp -p'
12299  else
12300    as_ln_s='ln -s'
12301  fi
12302elif ln conf$$.file conf$$ 2>/dev/null; then
12303  as_ln_s=ln
12304else
12305  as_ln_s='cp -p'
12306fi
12307rm -f conf$$ conf$$.exe conf$$.file
12308
12309if mkdir -p . 2>/dev/null; then
12310  as_mkdir_p=:
12311else
12312  test -d ./-p && rmdir ./-p
12313  as_mkdir_p=false
12314fi
12315
12316as_executable_p="test -f"
12317
12318# Sed expression to map a string onto a valid CPP name.
12319as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12320
12321# Sed expression to map a string onto a valid variable name.
12322as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12323
12324
12325# IFS
12326# We need space, tab and new line, in precisely that order.
12327as_nl='
12328'
12329IFS=" 	$as_nl"
12330
12331# CDPATH.
12332$as_unset CDPATH
12333
12334exec 6>&1
12335
12336# Open the log real soon, to keep \$[0] and so on meaningful, and to
12337# report actual input values of CONFIG_FILES etc. instead of their
12338# values after options handling.  Logging --version etc. is OK.
12339exec 5>>config.log
12340{
12341  echo
12342  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12343## Running $as_me. ##
12344_ASBOX
12345} >&5
12346cat >&5 <<_CSEOF
12347
12348This file was extended by $as_me, which was
12349generated by GNU Autoconf 2.59.  Invocation command line was
12350
12351  CONFIG_FILES    = $CONFIG_FILES
12352  CONFIG_HEADERS  = $CONFIG_HEADERS
12353  CONFIG_LINKS    = $CONFIG_LINKS
12354  CONFIG_COMMANDS = $CONFIG_COMMANDS
12355  $ $0 $@
12356
12357_CSEOF
12358echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12359echo >&5
12360_ACEOF
12361
12362# Files that config.status was made for.
12363if test -n "$ac_config_files"; then
12364  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12365fi
12366
12367if test -n "$ac_config_headers"; then
12368  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12369fi
12370
12371if test -n "$ac_config_links"; then
12372  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12373fi
12374
12375if test -n "$ac_config_commands"; then
12376  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12377fi
12378
12379cat >>$CONFIG_STATUS <<\_ACEOF
12380
12381ac_cs_usage="\
12382\`$as_me' instantiates files from templates according to the
12383current configuration.
12384
12385Usage: $0 [OPTIONS] [FILE]...
12386
12387  -h, --help       print this help, then exit
12388  -V, --version    print version number, then exit
12389  -q, --quiet      do not print progress messages
12390  -d, --debug      don't remove temporary files
12391      --recheck    update $as_me by reconfiguring in the same conditions
12392  --file=FILE[:TEMPLATE]
12393		   instantiate the configuration file FILE
12394  --header=FILE[:TEMPLATE]
12395		   instantiate the configuration header FILE
12396
12397Configuration files:
12398$config_files
12399
12400Configuration headers:
12401$config_headers
12402
12403Configuration commands:
12404$config_commands
12405
12406Report bugs to <bug-autoconf@gnu.org>."
12407_ACEOF
12408
12409cat >>$CONFIG_STATUS <<_ACEOF
12410ac_cs_version="\\
12411config.status
12412configured by $0, generated by GNU Autoconf 2.59,
12413  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12414
12415Copyright (C) 2003 Free Software Foundation, Inc.
12416This config.status script is free software; the Free Software Foundation
12417gives unlimited permission to copy, distribute and modify it."
12418srcdir=$srcdir
12419INSTALL="$INSTALL"
12420_ACEOF
12421
12422cat >>$CONFIG_STATUS <<\_ACEOF
12423# If no file are specified by the user, then we need to provide default
12424# value.  By we need to know if files were specified by the user.
12425ac_need_defaults=:
12426while test $# != 0
12427do
12428  case $1 in
12429  --*=*)
12430    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12431    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12432    ac_shift=:
12433    ;;
12434  -*)
12435    ac_option=$1
12436    ac_optarg=$2
12437    ac_shift=shift
12438    ;;
12439  *) # This is not an option, so the user has probably given explicit
12440     # arguments.
12441     ac_option=$1
12442     ac_need_defaults=false;;
12443  esac
12444
12445  case $ac_option in
12446  # Handling of the options.
12447_ACEOF
12448cat >>$CONFIG_STATUS <<\_ACEOF
12449  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12450    ac_cs_recheck=: ;;
12451  --version | --vers* | -V )
12452    echo "$ac_cs_version"; exit 0 ;;
12453  --he | --h)
12454    # Conflict between --help and --header
12455    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12456Try \`$0 --help' for more information." >&5
12457echo "$as_me: error: ambiguous option: $1
12458Try \`$0 --help' for more information." >&2;}
12459   { (exit 1); exit 1; }; };;
12460  --help | --hel | -h )
12461    echo "$ac_cs_usage"; exit 0 ;;
12462  --debug | --d* | -d )
12463    debug=: ;;
12464  --file | --fil | --fi | --f )
12465    $ac_shift
12466    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12467    ac_need_defaults=false;;
12468  --header | --heade | --head | --hea )
12469    $ac_shift
12470    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12471    ac_need_defaults=false;;
12472  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12473  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12474    ac_cs_silent=: ;;
12475
12476  # This is an error.
12477  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12478Try \`$0 --help' for more information." >&5
12479echo "$as_me: error: unrecognized option: $1
12480Try \`$0 --help' for more information." >&2;}
12481   { (exit 1); exit 1; }; } ;;
12482
12483  *) ac_config_targets="$ac_config_targets $1" ;;
12484
12485  esac
12486  shift
12487done
12488
12489ac_configure_extra_args=
12490
12491if $ac_cs_silent; then
12492  exec 6>/dev/null
12493  ac_configure_extra_args="$ac_configure_extra_args --silent"
12494fi
12495
12496_ACEOF
12497cat >>$CONFIG_STATUS <<_ACEOF
12498if \$ac_cs_recheck; then
12499  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12500  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12501fi
12502
12503_ACEOF
12504
12505cat >>$CONFIG_STATUS <<_ACEOF
12506#
12507# INIT-COMMANDS section.
12508#
12509
12510AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12511
12512
12513# The HP-UX ksh and POSIX shell print the target directory to stdout
12514# if CDPATH is set.
12515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12516
12517sed_quote_subst='$sed_quote_subst'
12518double_quote_subst='$double_quote_subst'
12519delay_variable_subst='$delay_variable_subst'
12520enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12521macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12522macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12523enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12524pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12525enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12526host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12527host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12528host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12529build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12530build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12531build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12532SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12533Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12534GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12535EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12536FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12537LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12538NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12539LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12540max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12541ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12542exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12543lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12544lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12545lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12546reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12547reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12548deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12549file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12550AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12551AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12552STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12553RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12554old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12555old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12556old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12557CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12558CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12559compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12560GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12561lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12562lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12563lt_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"`'
12564objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12565SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12566ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12567MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12568lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12569lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12570lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12571lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12572lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12573need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12574libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12575shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12576extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12577archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12578enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12579export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12580whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12581compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12582old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12583old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12584archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12585archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12586module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12587module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12588with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12589allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12590no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12591hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12592hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12593hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12594hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12595hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12596hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12597hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12598hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12599inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12600link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12601fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12602always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12603export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12604exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12605include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12606prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12607file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12608variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12609need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12610need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12611version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12612runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12613shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12614shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12615libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12616library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12617soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12618postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12619postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12620finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12621finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12622hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12623sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12624sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12625hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12626enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12627enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12628enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12629old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12630striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12631
12632LTCC='$LTCC'
12633LTCFLAGS='$LTCFLAGS'
12634compiler='$compiler_DEFAULT'
12635
12636# Quote evaled strings.
12637for var in SED \
12638GREP \
12639EGREP \
12640FGREP \
12641LD \
12642NM \
12643LN_S \
12644lt_SP2NL \
12645lt_NL2SP \
12646reload_flag \
12647deplibs_check_method \
12648file_magic_cmd \
12649AR \
12650AR_FLAGS \
12651STRIP \
12652RANLIB \
12653CC \
12654CFLAGS \
12655compiler \
12656lt_cv_sys_global_symbol_pipe \
12657lt_cv_sys_global_symbol_to_cdecl \
12658lt_cv_sys_global_symbol_to_c_name_address \
12659SHELL \
12660ECHO \
12661lt_prog_compiler_no_builtin_flag \
12662lt_prog_compiler_wl \
12663lt_prog_compiler_pic \
12664lt_prog_compiler_static \
12665lt_cv_prog_compiler_c_o \
12666need_locks \
12667shrext_cmds \
12668export_dynamic_flag_spec \
12669whole_archive_flag_spec \
12670compiler_needs_object \
12671with_gnu_ld \
12672allow_undefined_flag \
12673no_undefined_flag \
12674hardcode_libdir_flag_spec \
12675hardcode_libdir_flag_spec_ld \
12676hardcode_libdir_separator \
12677fix_srcfile_path \
12678exclude_expsyms \
12679include_expsyms \
12680file_list_spec \
12681variables_saved_for_relink \
12682libname_spec \
12683library_names_spec \
12684soname_spec \
12685finish_eval \
12686old_striplib \
12687striplib; do
12688    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12689    *[\\\\\\\`\\"\\\$]*)
12690      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12691      ;;
12692    *)
12693      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12694      ;;
12695    esac
12696done
12697
12698# Double-quote double-evaled strings.
12699for var in reload_cmds \
12700old_postinstall_cmds \
12701old_postuninstall_cmds \
12702old_archive_cmds \
12703extract_expsyms_cmds \
12704old_archive_from_new_cmds \
12705old_archive_from_expsyms_cmds \
12706archive_cmds \
12707archive_expsym_cmds \
12708module_cmds \
12709module_expsym_cmds \
12710export_symbols_cmds \
12711prelink_cmds \
12712postinstall_cmds \
12713postuninstall_cmds \
12714finish_cmds \
12715sys_lib_search_path_spec \
12716sys_lib_dlsearch_path_spec; do
12717    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12718    *[\\\\\\\`\\"\\\$]*)
12719      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12720      ;;
12721    *)
12722      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12723      ;;
12724    esac
12725done
12726
12727# Fix-up fallback echo if it was mangled by the above quoting rules.
12728case \$lt_ECHO in
12729*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12730  ;;
12731esac
12732
12733ac_aux_dir='$ac_aux_dir'
12734xsi_shell='$xsi_shell'
12735lt_shell_append='$lt_shell_append'
12736
12737# See if we are running on zsh, and set the options which allow our
12738# commands through without removal of \ escapes INIT.
12739if test -n "\${ZSH_VERSION+set}" ; then
12740   setopt NO_GLOB_SUBST
12741fi
12742
12743
12744    PACKAGE='$PACKAGE'
12745    VERSION='$VERSION'
12746    TIMESTAMP='$TIMESTAMP'
12747    RM='$RM'
12748    ofile='$ofile'
12749
12750
12751
12752# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12753    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12754    # from automake.
12755    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12756    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12757    LINGUAS="${LINGUAS-%UNSET%}"
12758
12759
12760_ACEOF
12761
12762
12763
12764cat >>$CONFIG_STATUS <<\_ACEOF
12765for ac_config_target in $ac_config_targets
12766do
12767  case "$ac_config_target" in
12768  # Handling of arguments.
12769  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12770  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12771  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12772  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12773  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12774  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12775  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12776echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12777   { (exit 1); exit 1; }; };;
12778  esac
12779done
12780
12781# If the user did not use the arguments to specify the items to instantiate,
12782# then the envvar interface is used.  Set only those that are not.
12783# We use the long form for the default assignment because of an extremely
12784# bizarre bug on SunOS 4.1.3.
12785if $ac_need_defaults; then
12786  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12787  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12788  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12789fi
12790
12791# Have a temporary directory for convenience.  Make it in the build tree
12792# simply because there is no reason to put it here, and in addition,
12793# creating and moving files from /tmp can sometimes cause problems.
12794# Create a temporary directory, and hook for its removal unless debugging.
12795$debug ||
12796{
12797  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12798  trap '{ (exit 1); exit 1; }' 1 2 13 15
12799}
12800
12801# Create a (secure) tmp directory for tmp files.
12802
12803{
12804  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12805  test -n "$tmp" && test -d "$tmp"
12806}  ||
12807{
12808  tmp=./confstat$$-$RANDOM
12809  (umask 077 && mkdir $tmp)
12810} ||
12811{
12812   echo "$me: cannot create a temporary directory in ." >&2
12813   { (exit 1); exit 1; }
12814}
12815
12816_ACEOF
12817
12818cat >>$CONFIG_STATUS <<_ACEOF
12819
12820#
12821# CONFIG_FILES section.
12822#
12823
12824# No need to generate the scripts if there are no CONFIG_FILES.
12825# This happens for instance when ./config.status config.h
12826if test -n "\$CONFIG_FILES"; then
12827  # Protect against being on the right side of a sed subst in config.status.
12828  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12829   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12830s,@SHELL@,$SHELL,;t t
12831s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12832s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12833s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12834s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12835s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12836s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12837s,@exec_prefix@,$exec_prefix,;t t
12838s,@prefix@,$prefix,;t t
12839s,@program_transform_name@,$program_transform_name,;t t
12840s,@bindir@,$bindir,;t t
12841s,@sbindir@,$sbindir,;t t
12842s,@libexecdir@,$libexecdir,;t t
12843s,@datadir@,$datadir,;t t
12844s,@sysconfdir@,$sysconfdir,;t t
12845s,@sharedstatedir@,$sharedstatedir,;t t
12846s,@localstatedir@,$localstatedir,;t t
12847s,@libdir@,$libdir,;t t
12848s,@includedir@,$includedir,;t t
12849s,@oldincludedir@,$oldincludedir,;t t
12850s,@infodir@,$infodir,;t t
12851s,@mandir@,$mandir,;t t
12852s,@build_alias@,$build_alias,;t t
12853s,@host_alias@,$host_alias,;t t
12854s,@target_alias@,$target_alias,;t t
12855s,@DEFS@,$DEFS,;t t
12856s,@ECHO_C@,$ECHO_C,;t t
12857s,@ECHO_N@,$ECHO_N,;t t
12858s,@ECHO_T@,$ECHO_T,;t t
12859s,@LIBS@,$LIBS,;t t
12860s,@build@,$build,;t t
12861s,@build_cpu@,$build_cpu,;t t
12862s,@build_vendor@,$build_vendor,;t t
12863s,@build_os@,$build_os,;t t
12864s,@host@,$host,;t t
12865s,@host_cpu@,$host_cpu,;t t
12866s,@host_vendor@,$host_vendor,;t t
12867s,@host_os@,$host_os,;t t
12868s,@target@,$target,;t t
12869s,@target_cpu@,$target_cpu,;t t
12870s,@target_vendor@,$target_vendor,;t t
12871s,@target_os@,$target_os,;t t
12872s,@CC@,$CC,;t t
12873s,@CFLAGS@,$CFLAGS,;t t
12874s,@LDFLAGS@,$LDFLAGS,;t t
12875s,@CPPFLAGS@,$CPPFLAGS,;t t
12876s,@ac_ct_CC@,$ac_ct_CC,;t t
12877s,@EXEEXT@,$EXEEXT,;t t
12878s,@OBJEXT@,$OBJEXT,;t t
12879s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12880s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12881s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12882s,@CYGPATH_W@,$CYGPATH_W,;t t
12883s,@PACKAGE@,$PACKAGE,;t t
12884s,@VERSION@,$VERSION,;t t
12885s,@ACLOCAL@,$ACLOCAL,;t t
12886s,@AUTOCONF@,$AUTOCONF,;t t
12887s,@AUTOMAKE@,$AUTOMAKE,;t t
12888s,@AUTOHEADER@,$AUTOHEADER,;t t
12889s,@MAKEINFO@,$MAKEINFO,;t t
12890s,@install_sh@,$install_sh,;t t
12891s,@STRIP@,$STRIP,;t t
12892s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12893s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12894s,@mkdir_p@,$mkdir_p,;t t
12895s,@AWK@,$AWK,;t t
12896s,@SET_MAKE@,$SET_MAKE,;t t
12897s,@am__leading_dot@,$am__leading_dot,;t t
12898s,@AMTAR@,$AMTAR,;t t
12899s,@am__tar@,$am__tar,;t t
12900s,@am__untar@,$am__untar,;t t
12901s,@DEPDIR@,$DEPDIR,;t t
12902s,@am__include@,$am__include,;t t
12903s,@am__quote@,$am__quote,;t t
12904s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12905s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12906s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12907s,@CCDEPMODE@,$CCDEPMODE,;t t
12908s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12909s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12910s,@CPP@,$CPP,;t t
12911s,@EGREP@,$EGREP,;t t
12912s,@AR@,$AR,;t t
12913s,@ac_ct_AR@,$ac_ct_AR,;t t
12914s,@RANLIB@,$RANLIB,;t t
12915s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12916s,@LIBTOOL@,$LIBTOOL,;t t
12917s,@SED@,$SED,;t t
12918s,@FGREP@,$FGREP,;t t
12919s,@GREP@,$GREP,;t t
12920s,@LD@,$LD,;t t
12921s,@DUMPBIN@,$DUMPBIN,;t t
12922s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12923s,@NM@,$NM,;t t
12924s,@LN_S@,$LN_S,;t t
12925s,@lt_ECHO@,$lt_ECHO,;t t
12926s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12927s,@NO_WERROR@,$NO_WERROR,;t t
12928s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12929s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12930s,@MAINT@,$MAINT,;t t
12931s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12932s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12933s,@host_noncanonical@,$host_noncanonical,;t t
12934s,@target_noncanonical@,$target_noncanonical,;t t
12935s,@bfdlibdir@,$bfdlibdir,;t t
12936s,@bfdincludedir@,$bfdincludedir,;t t
12937s,@USE_NLS@,$USE_NLS,;t t
12938s,@LIBINTL@,$LIBINTL,;t t
12939s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12940s,@INCINTL@,$INCINTL,;t t
12941s,@XGETTEXT@,$XGETTEXT,;t t
12942s,@GMSGFMT@,$GMSGFMT,;t t
12943s,@POSUB@,$POSUB,;t t
12944s,@CATALOGS@,$CATALOGS,;t t
12945s,@DATADIRNAME@,$DATADIRNAME,;t t
12946s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12947s,@GENCAT@,$GENCAT,;t t
12948s,@CATOBJEXT@,$CATOBJEXT,;t t
12949s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12950s,@MSGFMT@,$MSGFMT,;t t
12951s,@MSGMERGE@,$MSGMERGE,;t t
12952s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12953s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12954s,@HDEFINES@,$HDEFINES,;t t
12955s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12956s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12957s,@cgendir@,$cgendir,;t t
12958s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12959s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12960s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
12961s,@archdefs@,$archdefs,;t t
12962s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12963s,@LIBOBJS@,$LIBOBJS,;t t
12964s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12965CEOF
12966
12967_ACEOF
12968
12969  cat >>$CONFIG_STATUS <<\_ACEOF
12970  # Split the substitutions into bite-sized pieces for seds with
12971  # small command number limits, like on Digital OSF/1 and HP-UX.
12972  ac_max_sed_lines=48
12973  ac_sed_frag=1 # Number of current file.
12974  ac_beg=1 # First line for current file.
12975  ac_end=$ac_max_sed_lines # Line after last line for current file.
12976  ac_more_lines=:
12977  ac_sed_cmds=
12978  while $ac_more_lines; do
12979    if test $ac_beg -gt 1; then
12980      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12981    else
12982      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12983    fi
12984    if test ! -s $tmp/subs.frag; then
12985      ac_more_lines=false
12986    else
12987      # The purpose of the label and of the branching condition is to
12988      # speed up the sed processing (if there are no `@' at all, there
12989      # is no need to browse any of the substitutions).
12990      # These are the two extra sed commands mentioned above.
12991      (echo ':t
12992  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12993      if test -z "$ac_sed_cmds"; then
12994	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12995      else
12996	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12997      fi
12998      ac_sed_frag=`expr $ac_sed_frag + 1`
12999      ac_beg=$ac_end
13000      ac_end=`expr $ac_end + $ac_max_sed_lines`
13001    fi
13002  done
13003  if test -z "$ac_sed_cmds"; then
13004    ac_sed_cmds=cat
13005  fi
13006fi # test -n "$CONFIG_FILES"
13007
13008_ACEOF
13009cat >>$CONFIG_STATUS <<\_ACEOF
13010for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13011  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13012  case $ac_file in
13013  - | *:- | *:-:* ) # input from stdin
13014	cat >$tmp/stdin
13015	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13016	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13017  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13018	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13019  * )   ac_file_in=$ac_file.in ;;
13020  esac
13021
13022  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13023  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13025	 X"$ac_file" : 'X\(//\)[^/]' \| \
13026	 X"$ac_file" : 'X\(//\)$' \| \
13027	 X"$ac_file" : 'X\(/\)' \| \
13028	 .     : '\(.\)' 2>/dev/null ||
13029echo X"$ac_file" |
13030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13031  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13032  	  /^X\(\/\/\)$/{ s//\1/; q; }
13033  	  /^X\(\/\).*/{ s//\1/; q; }
13034  	  s/.*/./; q'`
13035  { if $as_mkdir_p; then
13036    mkdir -p "$ac_dir"
13037  else
13038    as_dir="$ac_dir"
13039    as_dirs=
13040    while test ! -d "$as_dir"; do
13041      as_dirs="$as_dir $as_dirs"
13042      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13044	 X"$as_dir" : 'X\(//\)[^/]' \| \
13045	 X"$as_dir" : 'X\(//\)$' \| \
13046	 X"$as_dir" : 'X\(/\)' \| \
13047	 .     : '\(.\)' 2>/dev/null ||
13048echo X"$as_dir" |
13049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13050  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13051  	  /^X\(\/\/\)$/{ s//\1/; q; }
13052  	  /^X\(\/\).*/{ s//\1/; q; }
13053  	  s/.*/./; q'`
13054    done
13055    test ! -n "$as_dirs" || mkdir $as_dirs
13056  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13058   { (exit 1); exit 1; }; }; }
13059
13060  ac_builddir=.
13061
13062if test "$ac_dir" != .; then
13063  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13064  # A "../" for each directory in $ac_dir_suffix.
13065  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13066else
13067  ac_dir_suffix= ac_top_builddir=
13068fi
13069
13070case $srcdir in
13071  .)  # No --srcdir option.  We are building in place.
13072    ac_srcdir=.
13073    if test -z "$ac_top_builddir"; then
13074       ac_top_srcdir=.
13075    else
13076       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13077    fi ;;
13078  [\\/]* | ?:[\\/]* )  # Absolute path.
13079    ac_srcdir=$srcdir$ac_dir_suffix;
13080    ac_top_srcdir=$srcdir ;;
13081  *) # Relative path.
13082    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13083    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13084esac
13085
13086# Do not use `cd foo && pwd` to compute absolute paths, because
13087# the directories may not exist.
13088case `pwd` in
13089.) ac_abs_builddir="$ac_dir";;
13090*)
13091  case "$ac_dir" in
13092  .) ac_abs_builddir=`pwd`;;
13093  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13094  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13095  esac;;
13096esac
13097case $ac_abs_builddir in
13098.) ac_abs_top_builddir=${ac_top_builddir}.;;
13099*)
13100  case ${ac_top_builddir}. in
13101  .) ac_abs_top_builddir=$ac_abs_builddir;;
13102  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13103  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13104  esac;;
13105esac
13106case $ac_abs_builddir in
13107.) ac_abs_srcdir=$ac_srcdir;;
13108*)
13109  case $ac_srcdir in
13110  .) ac_abs_srcdir=$ac_abs_builddir;;
13111  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13112  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13113  esac;;
13114esac
13115case $ac_abs_builddir in
13116.) ac_abs_top_srcdir=$ac_top_srcdir;;
13117*)
13118  case $ac_top_srcdir in
13119  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13120  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13121  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13122  esac;;
13123esac
13124
13125
13126  case $INSTALL in
13127  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13128  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13129  esac
13130
13131  if test x"$ac_file" != x-; then
13132    { echo "$as_me:$LINENO: creating $ac_file" >&5
13133echo "$as_me: creating $ac_file" >&6;}
13134    rm -f "$ac_file"
13135  fi
13136  # Let's still pretend it is `configure' which instantiates (i.e., don't
13137  # use $as_me), people would be surprised to read:
13138  #    /* config.h.  Generated by config.status.  */
13139  if test x"$ac_file" = x-; then
13140    configure_input=
13141  else
13142    configure_input="$ac_file.  "
13143  fi
13144  configure_input=$configure_input"Generated from `echo $ac_file_in |
13145				     sed 's,.*/,,'` by configure."
13146
13147  # First look for the input files in the build tree, otherwise in the
13148  # src tree.
13149  ac_file_inputs=`IFS=:
13150    for f in $ac_file_in; do
13151      case $f in
13152      -) echo $tmp/stdin ;;
13153      [\\/$]*)
13154	 # Absolute (can't be DOS-style, as IFS=:)
13155	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13156echo "$as_me: error: cannot find input file: $f" >&2;}
13157   { (exit 1); exit 1; }; }
13158	 echo "$f";;
13159      *) # Relative
13160	 if test -f "$f"; then
13161	   # Build tree
13162	   echo "$f"
13163	 elif test -f "$srcdir/$f"; then
13164	   # Source tree
13165	   echo "$srcdir/$f"
13166	 else
13167	   # /dev/null tree
13168	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13169echo "$as_me: error: cannot find input file: $f" >&2;}
13170   { (exit 1); exit 1; }; }
13171	 fi;;
13172      esac
13173    done` || { (exit 1); exit 1; }
13174_ACEOF
13175cat >>$CONFIG_STATUS <<_ACEOF
13176  sed "$ac_vpsub
13177$extrasub
13178_ACEOF
13179cat >>$CONFIG_STATUS <<\_ACEOF
13180:t
13181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13182s,@configure_input@,$configure_input,;t t
13183s,@srcdir@,$ac_srcdir,;t t
13184s,@abs_srcdir@,$ac_abs_srcdir,;t t
13185s,@top_srcdir@,$ac_top_srcdir,;t t
13186s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13187s,@builddir@,$ac_builddir,;t t
13188s,@abs_builddir@,$ac_abs_builddir,;t t
13189s,@top_builddir@,$ac_top_builddir,;t t
13190s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13191s,@INSTALL@,$ac_INSTALL,;t t
13192" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13193  rm -f $tmp/stdin
13194  if test x"$ac_file" != x-; then
13195    mv $tmp/out $ac_file
13196  else
13197    cat $tmp/out
13198    rm -f $tmp/out
13199  fi
13200
13201done
13202_ACEOF
13203cat >>$CONFIG_STATUS <<\_ACEOF
13204
13205#
13206# CONFIG_HEADER section.
13207#
13208
13209# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13210# NAME is the cpp macro being defined and VALUE is the value it is being given.
13211#
13212# ac_d sets the value in "#define NAME VALUE" lines.
13213ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
13214ac_dB='[	 ].*$,\1#\2'
13215ac_dC=' '
13216ac_dD=',;t'
13217# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13218ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
13219ac_uB='$,\1#\2define\3'
13220ac_uC=' '
13221ac_uD=',;t'
13222
13223for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13224  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13225  case $ac_file in
13226  - | *:- | *:-:* ) # input from stdin
13227	cat >$tmp/stdin
13228	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13229	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13230  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13231	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13232  * )   ac_file_in=$ac_file.in ;;
13233  esac
13234
13235  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13236echo "$as_me: creating $ac_file" >&6;}
13237
13238  # First look for the input files in the build tree, otherwise in the
13239  # src tree.
13240  ac_file_inputs=`IFS=:
13241    for f in $ac_file_in; do
13242      case $f in
13243      -) echo $tmp/stdin ;;
13244      [\\/$]*)
13245	 # Absolute (can't be DOS-style, as IFS=:)
13246	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13247echo "$as_me: error: cannot find input file: $f" >&2;}
13248   { (exit 1); exit 1; }; }
13249	 # Do quote $f, to prevent DOS paths from being IFS'd.
13250	 echo "$f";;
13251      *) # Relative
13252	 if test -f "$f"; then
13253	   # Build tree
13254	   echo "$f"
13255	 elif test -f "$srcdir/$f"; then
13256	   # Source tree
13257	   echo "$srcdir/$f"
13258	 else
13259	   # /dev/null tree
13260	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13261echo "$as_me: error: cannot find input file: $f" >&2;}
13262   { (exit 1); exit 1; }; }
13263	 fi;;
13264      esac
13265    done` || { (exit 1); exit 1; }
13266  # Remove the trailing spaces.
13267  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
13268
13269_ACEOF
13270
13271# Transform confdefs.h into two sed scripts, `conftest.defines' and
13272# `conftest.undefs', that substitutes the proper values into
13273# config.h.in to produce config.h.  The first handles `#define'
13274# templates, and the second `#undef' templates.
13275# And first: Protect against being on the right side of a sed subst in
13276# config.status.  Protect against being in an unquoted here document
13277# in config.status.
13278rm -f conftest.defines conftest.undefs
13279# Using a here document instead of a string reduces the quoting nightmare.
13280# Putting comments in sed scripts is not portable.
13281#
13282# `end' is used to avoid that the second main sed command (meant for
13283# 0-ary CPP macros) applies to n-ary macro definitions.
13284# See the Autoconf documentation for `clear'.
13285cat >confdef2sed.sed <<\_ACEOF
13286s/[\\&,]/\\&/g
13287s,[\\$`],\\&,g
13288t clear
13289: clear
13290s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13291t end
13292s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13293: end
13294_ACEOF
13295# If some macros were called several times there might be several times
13296# the same #defines, which is useless.  Nevertheless, we may not want to
13297# sort them, since we want the *last* AC-DEFINE to be honored.
13298uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13299sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13300rm -f confdef2sed.sed
13301
13302# This sed command replaces #undef with comments.  This is necessary, for
13303# example, in the case of _POSIX_SOURCE, which is predefined and required
13304# on some systems where configure will not decide to define it.
13305cat >>conftest.undefs <<\_ACEOF
13306s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13307_ACEOF
13308
13309# Break up conftest.defines because some shells have a limit on the size
13310# of here documents, and old seds have small limits too (100 cmds).
13311echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13312echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13313echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13314echo '  :' >>$CONFIG_STATUS
13315rm -f conftest.tail
13316while grep . conftest.defines >/dev/null
13317do
13318  # Write a limited-size here document to $tmp/defines.sed.
13319  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13320  # Speed up: don't consider the non `#define' lines.
13321  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
13322  # Work around the forget-to-reset-the-flag bug.
13323  echo 't clr' >>$CONFIG_STATUS
13324  echo ': clr' >>$CONFIG_STATUS
13325  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13326  echo 'CEOF
13327  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13328  rm -f $tmp/in
13329  mv $tmp/out $tmp/in
13330' >>$CONFIG_STATUS
13331  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13332  rm -f conftest.defines
13333  mv conftest.tail conftest.defines
13334done
13335rm -f conftest.defines
13336echo '  fi # grep' >>$CONFIG_STATUS
13337echo >>$CONFIG_STATUS
13338
13339# Break up conftest.undefs because some shells have a limit on the size
13340# of here documents, and old seds have small limits too (100 cmds).
13341echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13342rm -f conftest.tail
13343while grep . conftest.undefs >/dev/null
13344do
13345  # Write a limited-size here document to $tmp/undefs.sed.
13346  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13347  # Speed up: don't consider the non `#undef'
13348  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
13349  # Work around the forget-to-reset-the-flag bug.
13350  echo 't clr' >>$CONFIG_STATUS
13351  echo ': clr' >>$CONFIG_STATUS
13352  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13353  echo 'CEOF
13354  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13355  rm -f $tmp/in
13356  mv $tmp/out $tmp/in
13357' >>$CONFIG_STATUS
13358  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13359  rm -f conftest.undefs
13360  mv conftest.tail conftest.undefs
13361done
13362rm -f conftest.undefs
13363
13364cat >>$CONFIG_STATUS <<\_ACEOF
13365  # Let's still pretend it is `configure' which instantiates (i.e., don't
13366  # use $as_me), people would be surprised to read:
13367  #    /* config.h.  Generated by config.status.  */
13368  if test x"$ac_file" = x-; then
13369    echo "/* Generated by configure.  */" >$tmp/config.h
13370  else
13371    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13372  fi
13373  cat $tmp/in >>$tmp/config.h
13374  rm -f $tmp/in
13375  if test x"$ac_file" != x-; then
13376    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13377      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13378echo "$as_me: $ac_file is unchanged" >&6;}
13379    else
13380      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13382	 X"$ac_file" : 'X\(//\)[^/]' \| \
13383	 X"$ac_file" : 'X\(//\)$' \| \
13384	 X"$ac_file" : 'X\(/\)' \| \
13385	 .     : '\(.\)' 2>/dev/null ||
13386echo X"$ac_file" |
13387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13388  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13389  	  /^X\(\/\/\)$/{ s//\1/; q; }
13390  	  /^X\(\/\).*/{ s//\1/; q; }
13391  	  s/.*/./; q'`
13392      { if $as_mkdir_p; then
13393    mkdir -p "$ac_dir"
13394  else
13395    as_dir="$ac_dir"
13396    as_dirs=
13397    while test ! -d "$as_dir"; do
13398      as_dirs="$as_dir $as_dirs"
13399      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13401	 X"$as_dir" : 'X\(//\)[^/]' \| \
13402	 X"$as_dir" : 'X\(//\)$' \| \
13403	 X"$as_dir" : 'X\(/\)' \| \
13404	 .     : '\(.\)' 2>/dev/null ||
13405echo X"$as_dir" |
13406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13407  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13408  	  /^X\(\/\/\)$/{ s//\1/; q; }
13409  	  /^X\(\/\).*/{ s//\1/; q; }
13410  	  s/.*/./; q'`
13411    done
13412    test ! -n "$as_dirs" || mkdir $as_dirs
13413  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13414echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13415   { (exit 1); exit 1; }; }; }
13416
13417      rm -f $ac_file
13418      mv $tmp/config.h $ac_file
13419    fi
13420  else
13421    cat $tmp/config.h
13422    rm -f $tmp/config.h
13423  fi
13424# Compute $ac_file's index in $config_headers.
13425_am_stamp_count=1
13426for _am_header in $config_headers :; do
13427  case $_am_header in
13428    $ac_file | $ac_file:* )
13429      break ;;
13430    * )
13431      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13432  esac
13433done
13434echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13435$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13436	 X$ac_file : 'X\(//\)[^/]' \| \
13437	 X$ac_file : 'X\(//\)$' \| \
13438	 X$ac_file : 'X\(/\)' \| \
13439	 .     : '\(.\)' 2>/dev/null ||
13440echo X$ac_file |
13441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13442  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13443  	  /^X\(\/\/\)$/{ s//\1/; q; }
13444  	  /^X\(\/\).*/{ s//\1/; q; }
13445  	  s/.*/./; q'`/stamp-h$_am_stamp_count
13446done
13447_ACEOF
13448cat >>$CONFIG_STATUS <<\_ACEOF
13449
13450#
13451# CONFIG_COMMANDS section.
13452#
13453for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13454  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13455  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13456  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13457$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13458	 X"$ac_dest" : 'X\(//\)[^/]' \| \
13459	 X"$ac_dest" : 'X\(//\)$' \| \
13460	 X"$ac_dest" : 'X\(/\)' \| \
13461	 .     : '\(.\)' 2>/dev/null ||
13462echo X"$ac_dest" |
13463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13464  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13465  	  /^X\(\/\/\)$/{ s//\1/; q; }
13466  	  /^X\(\/\).*/{ s//\1/; q; }
13467  	  s/.*/./; q'`
13468  { if $as_mkdir_p; then
13469    mkdir -p "$ac_dir"
13470  else
13471    as_dir="$ac_dir"
13472    as_dirs=
13473    while test ! -d "$as_dir"; do
13474      as_dirs="$as_dir $as_dirs"
13475      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13476$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13477	 X"$as_dir" : 'X\(//\)[^/]' \| \
13478	 X"$as_dir" : 'X\(//\)$' \| \
13479	 X"$as_dir" : 'X\(/\)' \| \
13480	 .     : '\(.\)' 2>/dev/null ||
13481echo X"$as_dir" |
13482    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13483  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13484  	  /^X\(\/\/\)$/{ s//\1/; q; }
13485  	  /^X\(\/\).*/{ s//\1/; q; }
13486  	  s/.*/./; q'`
13487    done
13488    test ! -n "$as_dirs" || mkdir $as_dirs
13489  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13490echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13491   { (exit 1); exit 1; }; }; }
13492
13493  ac_builddir=.
13494
13495if test "$ac_dir" != .; then
13496  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13497  # A "../" for each directory in $ac_dir_suffix.
13498  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13499else
13500  ac_dir_suffix= ac_top_builddir=
13501fi
13502
13503case $srcdir in
13504  .)  # No --srcdir option.  We are building in place.
13505    ac_srcdir=.
13506    if test -z "$ac_top_builddir"; then
13507       ac_top_srcdir=.
13508    else
13509       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13510    fi ;;
13511  [\\/]* | ?:[\\/]* )  # Absolute path.
13512    ac_srcdir=$srcdir$ac_dir_suffix;
13513    ac_top_srcdir=$srcdir ;;
13514  *) # Relative path.
13515    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13516    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13517esac
13518
13519# Do not use `cd foo && pwd` to compute absolute paths, because
13520# the directories may not exist.
13521case `pwd` in
13522.) ac_abs_builddir="$ac_dir";;
13523*)
13524  case "$ac_dir" in
13525  .) ac_abs_builddir=`pwd`;;
13526  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13527  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13528  esac;;
13529esac
13530case $ac_abs_builddir in
13531.) ac_abs_top_builddir=${ac_top_builddir}.;;
13532*)
13533  case ${ac_top_builddir}. in
13534  .) ac_abs_top_builddir=$ac_abs_builddir;;
13535  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13536  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13537  esac;;
13538esac
13539case $ac_abs_builddir in
13540.) ac_abs_srcdir=$ac_srcdir;;
13541*)
13542  case $ac_srcdir in
13543  .) ac_abs_srcdir=$ac_abs_builddir;;
13544  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13545  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13546  esac;;
13547esac
13548case $ac_abs_builddir in
13549.) ac_abs_top_srcdir=$ac_top_srcdir;;
13550*)
13551  case $ac_top_srcdir in
13552  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13553  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13554  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13555  esac;;
13556esac
13557
13558
13559  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13560echo "$as_me: executing $ac_dest commands" >&6;}
13561  case $ac_dest in
13562    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13563  # Strip MF so we end up with the name of the file.
13564  mf=`echo "$mf" | sed -e 's/:.*$//'`
13565  # Check whether this is an Automake generated Makefile or not.
13566  # We used to match only the files named `Makefile.in', but
13567  # some people rename them; so instead we look at the file content.
13568  # Grep'ing the first line is not enough: some people post-process
13569  # each Makefile.in and add a new line on top of each file to say so.
13570  # So let's grep whole file.
13571  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13572    dirpart=`(dirname "$mf") 2>/dev/null ||
13573$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13574	 X"$mf" : 'X\(//\)[^/]' \| \
13575	 X"$mf" : 'X\(//\)$' \| \
13576	 X"$mf" : 'X\(/\)' \| \
13577	 .     : '\(.\)' 2>/dev/null ||
13578echo X"$mf" |
13579    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13580  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13581  	  /^X\(\/\/\)$/{ s//\1/; q; }
13582  	  /^X\(\/\).*/{ s//\1/; q; }
13583  	  s/.*/./; q'`
13584  else
13585    continue
13586  fi
13587  # Extract the definition of DEPDIR, am__include, and am__quote
13588  # from the Makefile without running `make'.
13589  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13590  test -z "$DEPDIR" && continue
13591  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13592  test -z "am__include" && continue
13593  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13594  # When using ansi2knr, U may be empty or an underscore; expand it
13595  U=`sed -n 's/^U = //p' < "$mf"`
13596  # Find all dependency output files, they are included files with
13597  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13598  # simplest approach to changing $(DEPDIR) to its actual value in the
13599  # expansion.
13600  for file in `sed -n "
13601    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13602       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13603    # Make sure the directory exists.
13604    test -f "$dirpart/$file" && continue
13605    fdir=`(dirname "$file") 2>/dev/null ||
13606$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13607	 X"$file" : 'X\(//\)[^/]' \| \
13608	 X"$file" : 'X\(//\)$' \| \
13609	 X"$file" : 'X\(/\)' \| \
13610	 .     : '\(.\)' 2>/dev/null ||
13611echo X"$file" |
13612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13613  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13614  	  /^X\(\/\/\)$/{ s//\1/; q; }
13615  	  /^X\(\/\).*/{ s//\1/; q; }
13616  	  s/.*/./; q'`
13617    { if $as_mkdir_p; then
13618    mkdir -p $dirpart/$fdir
13619  else
13620    as_dir=$dirpart/$fdir
13621    as_dirs=
13622    while test ! -d "$as_dir"; do
13623      as_dirs="$as_dir $as_dirs"
13624      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13626	 X"$as_dir" : 'X\(//\)[^/]' \| \
13627	 X"$as_dir" : 'X\(//\)$' \| \
13628	 X"$as_dir" : 'X\(/\)' \| \
13629	 .     : '\(.\)' 2>/dev/null ||
13630echo X"$as_dir" |
13631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13632  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13633  	  /^X\(\/\/\)$/{ s//\1/; q; }
13634  	  /^X\(\/\).*/{ s//\1/; q; }
13635  	  s/.*/./; q'`
13636    done
13637    test ! -n "$as_dirs" || mkdir $as_dirs
13638  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13639echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13640   { (exit 1); exit 1; }; }; }
13641
13642    # echo "creating $dirpart/$file"
13643    echo '# dummy' > "$dirpart/$file"
13644  done
13645done
13646 ;;
13647    libtool )
13648
13649    # See if we are running on zsh, and set the options which allow our
13650    # commands through without removal of \ escapes.
13651    if test -n "${ZSH_VERSION+set}" ; then
13652      setopt NO_GLOB_SUBST
13653    fi
13654
13655    cfgfile="${ofile}T"
13656    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13657    $RM "$cfgfile"
13658
13659    cat <<_LT_EOF >> "$cfgfile"
13660#! $SHELL
13661
13662# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13663# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13665# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13666#
13667# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13668# 2006, 2007 Free Software Foundation, Inc.
13669#
13670# This file is part of GNU Libtool:
13671# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13672#
13673# This program is free software; you can redistribute it and/or modify
13674# it under the terms of the GNU General Public License as published by
13675# the Free Software Foundation; either version 2 of the License, or
13676# (at your option) any later version.
13677#
13678# This program is distributed in the hope that it will be useful, but
13679# WITHOUT ANY WARRANTY; without even the implied warranty of
13680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13681# General Public License for more details.
13682#
13683# You should have received a copy of the GNU General Public License
13684# along with this program; if not, a copy can be downloaded from
13685# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13686# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13687# MA 02110-1301, USA.
13688#
13689# As a special exception to the GNU General Public License, if you
13690# distribute this file as part of a program that contains a
13691# configuration script generated by Autoconf, you may include it under
13692# the same distribution terms that you use for the rest of that program.
13693
13694
13695# The names of the tagged configurations supported by this script.
13696available_tags=""
13697
13698# ### BEGIN LIBTOOL CONFIG
13699
13700# Whether or not to build shared libraries.
13701build_libtool_libs=$enable_shared
13702
13703# Which release of libtool.m4 was used?
13704macro_version=$macro_version
13705macro_revision=$macro_revision
13706
13707# Whether or not to build static libraries.
13708build_old_libs=$enable_static
13709
13710# What type of objects to build.
13711pic_mode=$pic_mode
13712
13713# Whether or not to optimize for fast installation.
13714fast_install=$enable_fast_install
13715
13716# The host system.
13717host_alias=$host_alias
13718host=$host
13719host_os=$host_os
13720
13721# The build system.
13722build_alias=$build_alias
13723build=$build
13724build_os=$build_os
13725
13726# A sed program that does not truncate output.
13727SED=$lt_SED
13728
13729# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13730Xsed="\$SED -e 1s/^X//"
13731
13732# A grep program that handles long lines.
13733GREP=$lt_GREP
13734
13735# An ERE matcher.
13736EGREP=$lt_EGREP
13737
13738# A literal string matcher.
13739FGREP=$lt_FGREP
13740
13741# A BSD- or MS-compatible name lister.
13742NM=$lt_NM
13743
13744# Whether we need soft or hard links.
13745LN_S=$lt_LN_S
13746
13747# What is the maximum length of a command?
13748max_cmd_len=$max_cmd_len
13749
13750# Object file suffix (normally "o").
13751objext=$ac_objext
13752
13753# Executable file suffix (normally "").
13754exeext=$exeext
13755
13756# whether the shell understands "unset".
13757lt_unset=$lt_unset
13758
13759# turn spaces into newlines.
13760SP2NL=$lt_lt_SP2NL
13761
13762# turn newlines into spaces.
13763NL2SP=$lt_lt_NL2SP
13764
13765# How to create reloadable object files.
13766reload_flag=$lt_reload_flag
13767reload_cmds=$lt_reload_cmds
13768
13769# Method to check whether dependent libraries are shared objects.
13770deplibs_check_method=$lt_deplibs_check_method
13771
13772# Command to use when deplibs_check_method == "file_magic".
13773file_magic_cmd=$lt_file_magic_cmd
13774
13775# The archiver.
13776AR=$lt_AR
13777AR_FLAGS=$lt_AR_FLAGS
13778
13779# A symbol stripping program.
13780STRIP=$lt_STRIP
13781
13782# Commands used to install an old-style archive.
13783RANLIB=$lt_RANLIB
13784old_postinstall_cmds=$lt_old_postinstall_cmds
13785old_postuninstall_cmds=$lt_old_postuninstall_cmds
13786
13787# A C compiler.
13788LTCC=$lt_CC
13789
13790# LTCC compiler flags.
13791LTCFLAGS=$lt_CFLAGS
13792
13793# Take the output of nm and produce a listing of raw symbols and C names.
13794global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13795
13796# Transform the output of nm in a proper C declaration.
13797global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13798
13799# Transform the output of nm in a C name address pair.
13800global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13801
13802# The name of the directory that contains temporary libtool files.
13803objdir=$objdir
13804
13805# Shell to use when invoking shell scripts.
13806SHELL=$lt_SHELL
13807
13808# An echo program that does not interpret backslashes.
13809ECHO=$lt_ECHO
13810
13811# Used to examine libraries when file_magic_cmd begins with "file".
13812MAGIC_CMD=$MAGIC_CMD
13813
13814# Must we lock files when doing compilation?
13815need_locks=$lt_need_locks
13816
13817# Old archive suffix (normally "a").
13818libext=$libext
13819
13820# Shared library suffix (normally ".so").
13821shrext_cmds=$lt_shrext_cmds
13822
13823# The commands to extract the exported symbol list from a shared archive.
13824extract_expsyms_cmds=$lt_extract_expsyms_cmds
13825
13826# Variables whose values should be saved in libtool wrapper scripts and
13827# restored at link time.
13828variables_saved_for_relink=$lt_variables_saved_for_relink
13829
13830# Do we need the "lib" prefix for modules?
13831need_lib_prefix=$need_lib_prefix
13832
13833# Do we need a version for libraries?
13834need_version=$need_version
13835
13836# Library versioning type.
13837version_type=$version_type
13838
13839# Shared library runtime path variable.
13840runpath_var=$runpath_var
13841
13842# Shared library path variable.
13843shlibpath_var=$shlibpath_var
13844
13845# Is shlibpath searched before the hard-coded library search path?
13846shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13847
13848# Format of library name prefix.
13849libname_spec=$lt_libname_spec
13850
13851# List of archive names.  First name is the real one, the rest are links.
13852# The last name is the one that the linker finds with -lNAME
13853library_names_spec=$lt_library_names_spec
13854
13855# The coded name of the library, if different from the real name.
13856soname_spec=$lt_soname_spec
13857
13858# Command to use after installation of a shared archive.
13859postinstall_cmds=$lt_postinstall_cmds
13860
13861# Command to use after uninstallation of a shared archive.
13862postuninstall_cmds=$lt_postuninstall_cmds
13863
13864# Commands used to finish a libtool library installation in a directory.
13865finish_cmds=$lt_finish_cmds
13866
13867# As "finish_cmds", except a single script fragment to be evaled but
13868# not shown.
13869finish_eval=$lt_finish_eval
13870
13871# Whether we should hardcode library paths into libraries.
13872hardcode_into_libs=$hardcode_into_libs
13873
13874# Compile-time system search path for libraries.
13875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13876
13877# Run-time system search path for libraries.
13878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13879
13880# Whether dlopen is supported.
13881dlopen_support=$enable_dlopen
13882
13883# Whether dlopen of programs is supported.
13884dlopen_self=$enable_dlopen_self
13885
13886# Whether dlopen of statically linked programs is supported.
13887dlopen_self_static=$enable_dlopen_self_static
13888
13889# Commands to strip libraries.
13890old_striplib=$lt_old_striplib
13891striplib=$lt_striplib
13892
13893
13894# The linker used to build libraries.
13895LD=$lt_LD
13896
13897# Commands used to build an old-style archive.
13898old_archive_cmds=$lt_old_archive_cmds
13899
13900# A language specific compiler.
13901CC=$lt_compiler
13902
13903# Is the compiler the GNU compiler?
13904with_gcc=$GCC
13905
13906# Compiler flag to turn off builtin functions.
13907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13908
13909# How to pass a linker flag through the compiler.
13910wl=$lt_lt_prog_compiler_wl
13911
13912# Additional compiler flags for building library objects.
13913pic_flag=$lt_lt_prog_compiler_pic
13914
13915# Compiler flag to prevent dynamic linking.
13916link_static_flag=$lt_lt_prog_compiler_static
13917
13918# Does compiler simultaneously support -c and -o options?
13919compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13920
13921# Whether or not to add -lc for building shared libraries.
13922build_libtool_need_lc=$archive_cmds_need_lc
13923
13924# Whether or not to disallow shared libs when runtime libs are static.
13925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13926
13927# Compiler flag to allow reflexive dlopens.
13928export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13929
13930# Compiler flag to generate shared objects directly from archives.
13931whole_archive_flag_spec=$lt_whole_archive_flag_spec
13932
13933# Whether the compiler copes with passing no objects directly.
13934compiler_needs_object=$lt_compiler_needs_object
13935
13936# Create an old-style archive from a shared archive.
13937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13938
13939# Create a temporary old-style archive to link instead of a shared archive.
13940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13941
13942# Commands used to build a shared archive.
13943archive_cmds=$lt_archive_cmds
13944archive_expsym_cmds=$lt_archive_expsym_cmds
13945
13946# Commands used to build a loadable module if different from building
13947# a shared archive.
13948module_cmds=$lt_module_cmds
13949module_expsym_cmds=$lt_module_expsym_cmds
13950
13951# Whether we are building with GNU ld or not.
13952with_gnu_ld=$lt_with_gnu_ld
13953
13954# Flag that allows shared libraries with undefined symbols to be built.
13955allow_undefined_flag=$lt_allow_undefined_flag
13956
13957# Flag that enforces no undefined symbols.
13958no_undefined_flag=$lt_no_undefined_flag
13959
13960# Flag to hardcode \$libdir into a binary during linking.
13961# This must work even if \$libdir does not exist
13962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13963
13964# If ld is used when linking, flag to hardcode \$libdir into a binary
13965# during linking.  This must work even if \$libdir does not exist.
13966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13967
13968# Whether we need a single "-rpath" flag with a separated argument.
13969hardcode_libdir_separator=$lt_hardcode_libdir_separator
13970
13971# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13972# DIR into the resulting binary.
13973hardcode_direct=$hardcode_direct
13974
13975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13976# DIR into the resulting binary and the resulting library dependency is
13977# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13978# library is relocated.
13979hardcode_direct_absolute=$hardcode_direct_absolute
13980
13981# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13982# into the resulting binary.
13983hardcode_minus_L=$hardcode_minus_L
13984
13985# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13986# into the resulting binary.
13987hardcode_shlibpath_var=$hardcode_shlibpath_var
13988
13989# Set to "yes" if building a shared library automatically hardcodes DIR
13990# into the library and all subsequent libraries and executables linked
13991# against it.
13992hardcode_automatic=$hardcode_automatic
13993
13994# Set to yes if linker adds runtime paths of dependent libraries
13995# to runtime path list.
13996inherit_rpath=$inherit_rpath
13997
13998# Whether libtool must link a program against all its dependency libraries.
13999link_all_deplibs=$link_all_deplibs
14000
14001# Fix the shell variable \$srcfile for the compiler.
14002fix_srcfile_path=$lt_fix_srcfile_path
14003
14004# Set to "yes" if exported symbols are required.
14005always_export_symbols=$always_export_symbols
14006
14007# The commands to list exported symbols.
14008export_symbols_cmds=$lt_export_symbols_cmds
14009
14010# Symbols that should not be listed in the preloaded symbols.
14011exclude_expsyms=$lt_exclude_expsyms
14012
14013# Symbols that must always be exported.
14014include_expsyms=$lt_include_expsyms
14015
14016# Commands necessary for linking programs (against libraries) with templates.
14017prelink_cmds=$lt_prelink_cmds
14018
14019# Specify filename containing input files.
14020file_list_spec=$lt_file_list_spec
14021
14022# How to hardcode a shared library path into an executable.
14023hardcode_action=$hardcode_action
14024
14025# ### END LIBTOOL CONFIG
14026
14027_LT_EOF
14028
14029  case $host_os in
14030  aix3*)
14031    cat <<\_LT_EOF >> "$cfgfile"
14032# AIX sometimes has problems with the GCC collect2 program.  For some
14033# reason, if we set the COLLECT_NAMES environment variable, the problems
14034# vanish in a puff of smoke.
14035if test "X${COLLECT_NAMES+set}" != Xset; then
14036  COLLECT_NAMES=
14037  export COLLECT_NAMES
14038fi
14039_LT_EOF
14040    ;;
14041  esac
14042
14043
14044ltmain="$ac_aux_dir/ltmain.sh"
14045
14046
14047  # We use sed instead of cat because bash on DJGPP gets confused if
14048  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14049  # text mode, it properly converts lines to CR/LF.  This bash problem
14050  # is reportedly fixed, but why not run on old versions too?
14051  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14052    || (rm -f "$cfgfile"; exit 1)
14053
14054  case $xsi_shell in
14055  yes)
14056    cat << \_LT_EOF >> "$cfgfile"
14057# func_dirname file append nondir_replacement
14058# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14059# otherwise set result to NONDIR_REPLACEMENT.
14060func_dirname ()
14061{
14062  case ${1} in
14063    */*) func_dirname_result="${1%/*}${2}" ;;
14064    *  ) func_dirname_result="${3}" ;;
14065  esac
14066}
14067
14068# func_basename file
14069func_basename ()
14070{
14071  func_basename_result="${1##*/}"
14072}
14073
14074# func_stripname prefix suffix name
14075# strip PREFIX and SUFFIX off of NAME.
14076# PREFIX and SUFFIX must not contain globbing or regex special
14077# characters, hashes, percent signs, but SUFFIX may contain a leading
14078# dot (in which case that matches only a dot).
14079func_stripname ()
14080{
14081  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14082  # positional parameters, so assign one to ordinary parameter first.
14083  func_stripname_result=${3}
14084  func_stripname_result=${func_stripname_result#"${1}"}
14085  func_stripname_result=${func_stripname_result%"${2}"}
14086}
14087
14088# func_opt_split
14089func_opt_split ()
14090{
14091  func_opt_split_opt=${1%%=*}
14092  func_opt_split_arg=${1#*=}
14093}
14094
14095# func_lo2o object
14096func_lo2o ()
14097{
14098  case ${1} in
14099    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14100    *)    func_lo2o_result=${1} ;;
14101  esac
14102}
14103_LT_EOF
14104    ;;
14105  *) # Bourne compatible functions.
14106    cat << \_LT_EOF >> "$cfgfile"
14107# func_dirname file append nondir_replacement
14108# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14109# otherwise set result to NONDIR_REPLACEMENT.
14110func_dirname ()
14111{
14112  # Extract subdirectory from the argument.
14113  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14114  if test "X$func_dirname_result" = "X${1}"; then
14115    func_dirname_result="${3}"
14116  else
14117    func_dirname_result="$func_dirname_result${2}"
14118  fi
14119}
14120
14121# func_basename file
14122func_basename ()
14123{
14124  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14125}
14126
14127# func_stripname prefix suffix name
14128# strip PREFIX and SUFFIX off of NAME.
14129# PREFIX and SUFFIX must not contain globbing or regex special
14130# characters, hashes, percent signs, but SUFFIX may contain a leading
14131# dot (in which case that matches only a dot).
14132# func_strip_suffix prefix name
14133func_stripname ()
14134{
14135  case ${2} in
14136    .*) func_stripname_result=`$ECHO "X${3}" \
14137           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14138    *)  func_stripname_result=`$ECHO "X${3}" \
14139           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14140  esac
14141}
14142
14143# sed scripts:
14144my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14145my_sed_long_arg='1s/^-[^=]*=//'
14146
14147# func_opt_split
14148func_opt_split ()
14149{
14150  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14151  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14152}
14153
14154# func_lo2o object
14155func_lo2o ()
14156{
14157  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14158}
14159_LT_EOF
14160esac
14161
14162case $lt_shell_append in
14163  yes)
14164    cat << \_LT_EOF >> "$cfgfile"
14165
14166# func_append var value
14167# Append VALUE to the end of shell variable VAR.
14168func_append ()
14169{
14170  eval "$1+=\$2"
14171}
14172_LT_EOF
14173    ;;
14174  *)
14175    cat << \_LT_EOF >> "$cfgfile"
14176
14177# func_append var value
14178# Append VALUE to the end of shell variable VAR.
14179func_append ()
14180{
14181  eval "$1=\$$1\$2"
14182}
14183_LT_EOF
14184    ;;
14185  esac
14186
14187
14188  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14189    || (rm -f "$cfgfile"; exit 1)
14190
14191  mv -f "$cfgfile" "$ofile" ||
14192    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14193  chmod +x "$ofile"
14194
14195 ;;
14196    default-1 )
14197    for ac_file in $CONFIG_FILES; do
14198      # Support "outfile[:infile[:infile...]]"
14199      case "$ac_file" in
14200        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14201      esac
14202      # PO directories have a Makefile.in generated from Makefile.in.in.
14203      case "$ac_file" in */Makefile.in)
14204        # Adjust a relative srcdir.
14205        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14206        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14207        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14208        # In autoconf-2.13 it is called $ac_given_srcdir.
14209        # In autoconf-2.50 it is called $srcdir.
14210        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14211        case "$ac_given_srcdir" in
14212          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14213          /*) top_srcdir="$ac_given_srcdir" ;;
14214          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14215        esac
14216        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14217          rm -f "$ac_dir/POTFILES"
14218          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14219          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14220          POMAKEFILEDEPS="POTFILES.in"
14221          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14222          # on $ac_dir but don't depend on user-specified configuration
14223          # parameters.
14224          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14225            # The LINGUAS file contains the set of available languages.
14226            if test -n "$OBSOLETE_ALL_LINGUAS"; then
14227              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14228            fi
14229            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14230            # Hide the ALL_LINGUAS assigment from automake.
14231            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14232            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14233          else
14234            # The set of available languages was given in configure.in.
14235            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14236          fi
14237          case "$ac_given_srcdir" in
14238            .) srcdirpre= ;;
14239            *) srcdirpre='$(srcdir)/' ;;
14240          esac
14241          POFILES=
14242          GMOFILES=
14243          UPDATEPOFILES=
14244          DUMMYPOFILES=
14245          for lang in $ALL_LINGUAS; do
14246            POFILES="$POFILES $srcdirpre$lang.po"
14247            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14248            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14249            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14250          done
14251          # CATALOGS depends on both $ac_dir and the user's LINGUAS
14252          # environment variable.
14253          INST_LINGUAS=
14254          if test -n "$ALL_LINGUAS"; then
14255            for presentlang in $ALL_LINGUAS; do
14256              useit=no
14257              if test "%UNSET%" != "$LINGUAS"; then
14258                desiredlanguages="$LINGUAS"
14259              else
14260                desiredlanguages="$ALL_LINGUAS"
14261              fi
14262              for desiredlang in $desiredlanguages; do
14263                # Use the presentlang catalog if desiredlang is
14264                #   a. equal to presentlang, or
14265                #   b. a variant of presentlang (because in this case,
14266                #      presentlang can be used as a fallback for messages
14267                #      which are not translated in the desiredlang catalog).
14268                case "$desiredlang" in
14269                  "$presentlang"*) useit=yes;;
14270                esac
14271              done
14272              if test $useit = yes; then
14273                INST_LINGUAS="$INST_LINGUAS $presentlang"
14274              fi
14275            done
14276          fi
14277          CATALOGS=
14278          if test -n "$INST_LINGUAS"; then
14279            for lang in $INST_LINGUAS; do
14280              CATALOGS="$CATALOGS $lang.gmo"
14281            done
14282          fi
14283          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14284          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"
14285          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14286            if test -f "$f"; then
14287              case "$f" in
14288                *.orig | *.bak | *~) ;;
14289                *) cat "$f" >> "$ac_dir/Makefile" ;;
14290              esac
14291            fi
14292          done
14293        fi
14294        ;;
14295      esac
14296    done ;;
14297  esac
14298done
14299_ACEOF
14300
14301cat >>$CONFIG_STATUS <<\_ACEOF
14302
14303{ (exit 0); exit 0; }
14304_ACEOF
14305chmod +x $CONFIG_STATUS
14306ac_clean_files=$ac_clean_files_save
14307
14308
14309# configure is writing to config.log, and then calls config.status.
14310# config.status does its own redirection, appending to config.log.
14311# Unfortunately, on DOS this fails, as config.log is still kept open
14312# by configure, so config.status won't be able to write to it; its
14313# output is simply discarded.  So we exec the FD to /dev/null,
14314# effectively closing config.log, so it can be properly (re)opened and
14315# appended to by config.status.  When coming back to configure, we
14316# need to make the FD available again.
14317if test "$no_create" != yes; then
14318  ac_cs_success=:
14319  ac_config_status_args=
14320  test "$silent" = yes &&
14321    ac_config_status_args="$ac_config_status_args --quiet"
14322  exec 5>/dev/null
14323  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14324  exec 5>>config.log
14325  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14326  # would make configure fail if this is the last instruction.
14327  $ac_cs_success || { (exit 1); exit 1; }
14328fi
14329
14330