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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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 WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505  # If the previous option needs an argument, assign it.
506  if test -n "$ac_prev"; then
507    eval "$ac_prev=\$ac_option"
508    ac_prev=
509    continue
510  fi
511
512  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514  # Accept the important Cygnus configure options, so we can diagnose typos.
515
516  case $ac_option in
517
518  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519    ac_prev=bindir ;;
520  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521    bindir=$ac_optarg ;;
522
523  -build | --build | --buil | --bui | --bu)
524    ac_prev=build_alias ;;
525  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526    build_alias=$ac_optarg ;;
527
528  -cache-file | --cache-file | --cache-fil | --cache-fi \
529  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530    ac_prev=cache_file ;;
531  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533    cache_file=$ac_optarg ;;
534
535  --config-cache | -C)
536    cache_file=config.cache ;;
537
538  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539    ac_prev=datadir ;;
540  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541  | --da=*)
542    datadir=$ac_optarg ;;
543
544  -disable-* | --disable-*)
545    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546    # Reject names that are not valid shell variable names.
547    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549   { (exit 1); exit 1; }; }
550    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551    eval "enable_$ac_feature=no" ;;
552
553  -enable-* | --enable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    case $ac_option in
561      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562      *) ac_optarg=yes ;;
563    esac
564    eval "enable_$ac_feature='$ac_optarg'" ;;
565
566  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568  | --exec | --exe | --ex)
569    ac_prev=exec_prefix ;;
570  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572  | --exec=* | --exe=* | --ex=*)
573    exec_prefix=$ac_optarg ;;
574
575  -gas | --gas | --ga | --g)
576    # Obsolete; use --with-gas.
577    with_gas=yes ;;
578
579  -help | --help | --hel | --he | -h)
580    ac_init_help=long ;;
581  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582    ac_init_help=recursive ;;
583  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584    ac_init_help=short ;;
585
586  -host | --host | --hos | --ho)
587    ac_prev=host_alias ;;
588  -host=* | --host=* | --hos=* | --ho=*)
589    host_alias=$ac_optarg ;;
590
591  -includedir | --includedir | --includedi | --included | --include \
592  | --includ | --inclu | --incl | --inc)
593    ac_prev=includedir ;;
594  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595  | --includ=* | --inclu=* | --incl=* | --inc=*)
596    includedir=$ac_optarg ;;
597
598  -infodir | --infodir | --infodi | --infod | --info | --inf)
599    ac_prev=infodir ;;
600  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601    infodir=$ac_optarg ;;
602
603  -libdir | --libdir | --libdi | --libd)
604    ac_prev=libdir ;;
605  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606    libdir=$ac_optarg ;;
607
608  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609  | --libexe | --libex | --libe)
610    ac_prev=libexecdir ;;
611  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612  | --libexe=* | --libex=* | --libe=*)
613    libexecdir=$ac_optarg ;;
614
615  -localstatedir | --localstatedir | --localstatedi | --localstated \
616  | --localstate | --localstat | --localsta | --localst \
617  | --locals | --local | --loca | --loc | --lo)
618    ac_prev=localstatedir ;;
619  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622    localstatedir=$ac_optarg ;;
623
624  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625    ac_prev=mandir ;;
626  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627    mandir=$ac_optarg ;;
628
629  -nfp | --nfp | --nf)
630    # Obsolete; use --without-fp.
631    with_fp=no ;;
632
633  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634  | --no-cr | --no-c | -n)
635    no_create=yes ;;
636
637  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639    no_recursion=yes ;;
640
641  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643  | --oldin | --oldi | --old | --ol | --o)
644    ac_prev=oldincludedir ;;
645  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648    oldincludedir=$ac_optarg ;;
649
650  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651    ac_prev=prefix ;;
652  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653    prefix=$ac_optarg ;;
654
655  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656  | --program-pre | --program-pr | --program-p)
657    ac_prev=program_prefix ;;
658  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660    program_prefix=$ac_optarg ;;
661
662  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663  | --program-suf | --program-su | --program-s)
664    ac_prev=program_suffix ;;
665  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667    program_suffix=$ac_optarg ;;
668
669  -program-transform-name | --program-transform-name \
670  | --program-transform-nam | --program-transform-na \
671  | --program-transform-n | --program-transform- \
672  | --program-transform | --program-transfor \
673  | --program-transfo | --program-transf \
674  | --program-trans | --program-tran \
675  | --progr-tra | --program-tr | --program-t)
676    ac_prev=program_transform_name ;;
677  -program-transform-name=* | --program-transform-name=* \
678  | --program-transform-nam=* | --program-transform-na=* \
679  | --program-transform-n=* | --program-transform-=* \
680  | --program-transform=* | --program-transfor=* \
681  | --program-transfo=* | --program-transf=* \
682  | --program-trans=* | --program-tran=* \
683  | --progr-tra=* | --program-tr=* | --program-t=*)
684    program_transform_name=$ac_optarg ;;
685
686  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687  | -silent | --silent | --silen | --sile | --sil)
688    silent=yes ;;
689
690  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691    ac_prev=sbindir ;;
692  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693  | --sbi=* | --sb=*)
694    sbindir=$ac_optarg ;;
695
696  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698  | --sharedst | --shareds | --shared | --share | --shar \
699  | --sha | --sh)
700    ac_prev=sharedstatedir ;;
701  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704  | --sha=* | --sh=*)
705    sharedstatedir=$ac_optarg ;;
706
707  -site | --site | --sit)
708    ac_prev=site ;;
709  -site=* | --site=* | --sit=*)
710    site=$ac_optarg ;;
711
712  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713    ac_prev=srcdir ;;
714  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715    srcdir=$ac_optarg ;;
716
717  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718  | --syscon | --sysco | --sysc | --sys | --sy)
719    ac_prev=sysconfdir ;;
720  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722    sysconfdir=$ac_optarg ;;
723
724  -target | --target | --targe | --targ | --tar | --ta | --t)
725    ac_prev=target_alias ;;
726  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727    target_alias=$ac_optarg ;;
728
729  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730    verbose=yes ;;
731
732  -version | --version | --versio | --versi | --vers | -V)
733    ac_init_version=: ;;
734
735  -with-* | --with-*)
736    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737    # Reject names that are not valid shell variable names.
738    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739      { echo "$as_me: error: invalid package name: $ac_package" >&2
740   { (exit 1); exit 1; }; }
741    ac_package=`echo $ac_package| sed 's/-/_/g'`
742    case $ac_option in
743      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744      *) ac_optarg=yes ;;
745    esac
746    eval "with_$ac_package='$ac_optarg'" ;;
747
748  -without-* | --without-*)
749    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package | sed 's/-/_/g'`
755    eval "with_$ac_package=no" ;;
756
757  --x)
758    # Obsolete; use --with-x.
759    with_x=yes ;;
760
761  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762  | --x-incl | --x-inc | --x-in | --x-i)
763    ac_prev=x_includes ;;
764  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766    x_includes=$ac_optarg ;;
767
768  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770    ac_prev=x_libraries ;;
771  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773    x_libraries=$ac_optarg ;;
774
775  -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777   { (exit 1); exit 1; }; }
778    ;;
779
780  *=*)
781    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782    # Reject names that are not valid shell variable names.
783    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785   { (exit 1); exit 1; }; }
786    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787    eval "$ac_envvar='$ac_optarg'"
788    export $ac_envvar ;;
789
790  *)
791    # FIXME: should be removed in autoconf 3.0.
792    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796    ;;
797
798  esac
799done
800
801if test -n "$ac_prev"; then
802  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803  { echo "$as_me: error: missing argument to $ac_option" >&2
804   { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810  eval ac_val=$`echo $ac_var`
811  case $ac_val in
812    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814   { (exit 1); exit 1; }; };;
815  esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820	      localstatedir libdir includedir oldincludedir infodir mandir
821do
822  eval ac_val=$`echo $ac_var`
823  case $ac_val in
824    [\\/$]* | ?:[\\/]* ) ;;
825    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826   { (exit 1); exit 1; }; };;
827  esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839  if test "x$build_alias" = x; then
840    cross_compiling=maybe
841    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842    If a cross compiler is detected then cross compile mode will be used." >&2
843  elif test "x$build_alias" != "x$host_alias"; then
844    cross_compiling=yes
845  fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856  ac_srcdir_defaulted=yes
857  # Try the directory containing this script, then its parent.
858  ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860	 X"$0" : 'X\(//\)[^/]' \| \
861	 X"$0" : 'X\(//\)$' \| \
862	 X"$0" : 'X\(/\)' \| \
863	 .     : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867  	  /^X\(\/\/\)$/{ s//\1/; q; }
868  	  /^X\(\/\).*/{ s//\1/; q; }
869  	  s/.*/./; q'`
870  srcdir=$ac_confdir
871  if test ! -r $srcdir/$ac_unique_file; then
872    srcdir=..
873  fi
874else
875  ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878  if test "$ac_srcdir_defaulted" = yes; then
879    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880   { (exit 1); exit 1; }; }
881  else
882    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883   { (exit 1); exit 1; }; }
884  fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888   { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927  # Omit some internal or obsolete options to make the list less imposing.
928  # This message is too long to be a string in the A/UX 3.1 sh.
929  cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940  -h, --help              display this help and exit
941      --help=short        display options specific to this package
942      --help=recursive    display the short help of all the included packages
943  -V, --version           display version information and exit
944  -q, --quiet, --silent   do not print \`checking...' messages
945      --cache-file=FILE   cache test results in FILE [disabled]
946  -C, --config-cache      alias for \`--cache-file=config.cache'
947  -n, --no-create         do not create output files
948      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952  cat <<_ACEOF
953Installation directories:
954  --prefix=PREFIX         install architecture-independent files in PREFIX
955			  [$ac_default_prefix]
956  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957			  [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967  --bindir=DIR           user executables [EPREFIX/bin]
968  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969  --libexecdir=DIR       program executables [EPREFIX/libexec]
970  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974  --libdir=DIR           object code libraries [EPREFIX/lib]
975  --includedir=DIR       C header files [PREFIX/include]
976  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977  --infodir=DIR          info documentation [PREFIX/info]
978  --mandir=DIR           man documentation [PREFIX/man]
979_ACEOF
980
981  cat <<\_ACEOF
982
983Program names:
984  --program-prefix=PREFIX            prepend PREFIX to installed program names
985  --program-suffix=SUFFIX            append SUFFIX to installed program names
986  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988System types:
989  --build=BUILD     configure for building on BUILD [guessed]
990  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991  --target=TARGET   configure for building compilers for TARGET [HOST]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996
997  cat <<\_ACEOF
998
999Optional Features:
1000  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002  --disable-dependency-tracking  speeds up one-time build
1003  --enable-dependency-tracking   do not reject slow dependency extractors
1004  --enable-shared[=PKGS]
1005                          build shared libraries [default=no]
1006  --enable-static[=PKGS]
1007                          build static libraries [default=yes]
1008  --enable-fast-install[=PKGS]
1009                          optimize for fast installation [default=yes]
1010  --disable-libtool-lock  avoid locking (might break parallel builds)
1011  --enable-targets        alternative target configurations
1012  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013  --enable-werror         treat compile warnings as errors
1014  --enable-build-warnings enable build-time compiler warnings
1015  --enable-maintainer-mode  enable make rules and dependencies not useful
1016			  (and sometimes confusing) to the casual installer
1017  --enable-install-libbfd controls installation of libbfd and related headers
1018  --disable-nls           do not use Native Language Support
1019  --enable-cgen-maint=dir    build cgen generated files
1020
1021Optional Packages:
1022  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024  --with-pic              try to use only PIC/non-PIC objects [default=use
1025                          both]
1026  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027
1028Some influential environment variables:
1029  CC          C compiler command
1030  CFLAGS      C compiler flags
1031  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1032              nonstandard directory <lib dir>
1033  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034              headers in a nonstandard directory <include dir>
1035  CPP         C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
1041fi
1042
1043if test "$ac_init_help" = "recursive"; then
1044  # If there are subdirs, report their specific --help.
1045  ac_popdir=`pwd`
1046  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047    test -d $ac_dir || continue
1048    ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052  # A "../" for each directory in $ac_dir_suffix.
1053  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055  ac_dir_suffix= ac_top_builddir=
1056fi
1057
1058case $srcdir in
1059  .)  # No --srcdir option.  We are building in place.
1060    ac_srcdir=.
1061    if test -z "$ac_top_builddir"; then
1062       ac_top_srcdir=.
1063    else
1064       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065    fi ;;
1066  [\\/]* | ?:[\\/]* )  # Absolute path.
1067    ac_srcdir=$srcdir$ac_dir_suffix;
1068    ac_top_srcdir=$srcdir ;;
1069  *) # Relative path.
1070    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072esac
1073
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079  case "$ac_dir" in
1080  .) ac_abs_builddir=`pwd`;;
1081  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083  esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088  case ${ac_top_builddir}. in
1089  .) ac_abs_top_builddir=$ac_abs_builddir;;
1090  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092  esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097  case $ac_srcdir in
1098  .) ac_abs_srcdir=$ac_abs_builddir;;
1099  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101  esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106  case $ac_top_srcdir in
1107  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110  esac;;
1111esac
1112
1113    cd $ac_dir
1114    # Check for guested configure; otherwise get Cygnus style configure.
1115    if test -f $ac_srcdir/configure.gnu; then
1116      echo
1117      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118    elif test -f $ac_srcdir/configure; then
1119      echo
1120      $SHELL $ac_srcdir/configure  --help=recursive
1121    elif test -f $ac_srcdir/configure.ac ||
1122	   test -f $ac_srcdir/configure.in; then
1123      echo
1124      $ac_configure --help
1125    else
1126      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127    fi
1128    cd $ac_popdir
1129  done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134  cat <<\_ACEOF
1135
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140  exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
1146
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59.  Invocation command line was
1149
1150  $ $0 $@
1151
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
1168/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181  IFS=$as_save_IFS
1182  test -z "$as_dir" && as_dir=.
1183  echo "PATH: $as_dir"
1184done
1185
1186} >&5
1187
1188cat >&5 <<_ACEOF
1189
1190
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210  for ac_arg
1211  do
1212    case $ac_arg in
1213    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215    | -silent | --silent | --silen | --sile | --sil)
1216      continue ;;
1217    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219    esac
1220    case $ac_pass in
1221    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222    2)
1223      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224      if test $ac_must_keep_next = true; then
1225	ac_must_keep_next=false # Got value, back to normal.
1226      else
1227	case $ac_arg in
1228	  *=* | --config-cache | -C | -disable-* | --disable-* \
1229	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231	  | -with-* | --with-* | -without-* | --without-* | --x)
1232	    case "$ac_configure_args0 " in
1233	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234	    esac
1235	    ;;
1236	  -* ) ac_must_keep_next=true ;;
1237	esac
1238      fi
1239      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240      # Get rid of the leading space.
1241      ac_sep=" "
1242      ;;
1243    esac
1244  done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log.  We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255  # Save into config.log some information that might help in debugging.
1256  {
1257    echo
1258
1259    cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264    echo
1265    # The following way of writing the cache mishandles newlines in values,
1266{
1267  (set) 2>&1 |
1268    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269    *ac_space=\ *)
1270      sed -n \
1271	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273      ;;
1274    *)
1275      sed -n \
1276	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277      ;;
1278    esac;
1279}
1280    echo
1281
1282    cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287    echo
1288    for ac_var in $ac_subst_vars
1289    do
1290      eval ac_val=$`echo $ac_var`
1291      echo "$ac_var='"'"'$ac_val'"'"'"
1292    done | sort
1293    echo
1294
1295    if test -n "$ac_subst_files"; then
1296      cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301      echo
1302      for ac_var in $ac_subst_files
1303      do
1304	eval ac_val=$`echo $ac_var`
1305	echo "$ac_var='"'"'$ac_val'"'"'"
1306      done | sort
1307      echo
1308    fi
1309
1310    if test -s confdefs.h; then
1311      cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316      echo
1317      sed "/^$/d" confdefs.h | sort
1318      echo
1319    fi
1320    test "$ac_signal" != 0 &&
1321      echo "$as_me: caught signal $ac_signal"
1322    echo "$as_me: exit $exit_status"
1323  } >&5
1324  rm -f core *.core &&
1325  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326    exit $exit_status
1327     ' 0
1328for ac_signal in 1 2 13 15; do
1329  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368  if test "x$prefix" != xNONE; then
1369    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370  else
1371    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372  fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375  if test -r "$ac_site_file"; then
1376    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378    sed 's/^/| /' "$ac_site_file" >&5
1379    . "$ac_site_file"
1380  fi
1381done
1382
1383if test -r "$cache_file"; then
1384  # Some versions of bash will fail to source /dev/null (special
1385  # files actually), so we avoid doing that.
1386  if test -f "$cache_file"; then
1387    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389    case $cache_file in
1390      [\\/]* | ?:[\\/]* ) . $cache_file;;
1391      *)                      . ./$cache_file;;
1392    esac
1393  fi
1394else
1395  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397  >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406  eval ac_new_set=\$ac_env_${ac_var}_set
1407  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408  eval ac_new_val="\$ac_env_${ac_var}_value"
1409  case $ac_old_set,$ac_new_set in
1410    set,)
1411      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413      ac_cache_corrupted=: ;;
1414    ,set)
1415      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417      ac_cache_corrupted=: ;;
1418    ,);;
1419    *)
1420      if test "x$ac_old_val" != "x$ac_new_val"; then
1421	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424echo "$as_me:   former value:  $ac_old_val" >&2;}
1425	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426echo "$as_me:   current value: $ac_new_val" >&2;}
1427	ac_cache_corrupted=:
1428      fi;;
1429  esac
1430  # Pass precious variables to config.status.
1431  if test "$ac_new_set" = set; then
1432    case $ac_new_val in
1433    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435    *) ac_arg=$ac_var=$ac_new_val ;;
1436    esac
1437    case " $ac_configure_args " in
1438      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440    esac
1441  fi
1442done
1443if $ac_cache_corrupted; then
1444  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448   { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477ac_aux_dir=
1478for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479  if test -f $ac_dir/install-sh; then
1480    ac_aux_dir=$ac_dir
1481    ac_install_sh="$ac_aux_dir/install-sh -c"
1482    break
1483  elif test -f $ac_dir/install.sh; then
1484    ac_aux_dir=$ac_dir
1485    ac_install_sh="$ac_aux_dir/install.sh -c"
1486    break
1487  elif test -f $ac_dir/shtool; then
1488    ac_aux_dir=$ac_dir
1489    ac_install_sh="$ac_aux_dir/shtool install -c"
1490    break
1491  fi
1492done
1493if test -z "$ac_aux_dir"; then
1494  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496   { (exit 1); exit 1; }; }
1497fi
1498ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
1502# Make sure we can run config.sub.
1503$ac_config_sub sun4 >/dev/null 2>&1 ||
1504  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506   { (exit 1); exit 1; }; }
1507
1508echo "$as_me:$LINENO: checking build system type" >&5
1509echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510if test "${ac_cv_build+set}" = set; then
1511  echo $ECHO_N "(cached) $ECHO_C" >&6
1512else
1513  ac_cv_build_alias=$build_alias
1514test -z "$ac_cv_build_alias" &&
1515  ac_cv_build_alias=`$ac_config_guess`
1516test -z "$ac_cv_build_alias" &&
1517  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519   { (exit 1); exit 1; }; }
1520ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523   { (exit 1); exit 1; }; }
1524
1525fi
1526echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527echo "${ECHO_T}$ac_cv_build" >&6
1528build=$ac_cv_build
1529build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534echo "$as_me:$LINENO: checking host system type" >&5
1535echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536if test "${ac_cv_host+set}" = set; then
1537  echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539  ac_cv_host_alias=$host_alias
1540test -z "$ac_cv_host_alias" &&
1541  ac_cv_host_alias=$ac_cv_build_alias
1542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545   { (exit 1); exit 1; }; }
1546
1547fi
1548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549echo "${ECHO_T}$ac_cv_host" >&6
1550host=$ac_cv_host
1551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556echo "$as_me:$LINENO: checking target system type" >&5
1557echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558if test "${ac_cv_target+set}" = set; then
1559  echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561  ac_cv_target_alias=$target_alias
1562test "x$ac_cv_target_alias" = "x" &&
1563  ac_cv_target_alias=$ac_cv_host_alias
1564ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567   { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571echo "${ECHO_T}$ac_cv_target" >&6
1572target=$ac_cv_target
1573target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578# The aliases save the names the user supplied, while $host etc.
1579# will get canonicalized.
1580test -n "$target_alias" &&
1581  test "$program_prefix$program_suffix$program_transform_name" = \
1582    NONENONEs,x,x, &&
1583  program_prefix=${target_alias}-
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589if test -n "$ac_tool_prefix"; then
1590  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592echo "$as_me:$LINENO: checking for $ac_word" >&5
1593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594if test "${ac_cv_prog_CC+set}" = set; then
1595  echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597  if test -n "$CC"; then
1598  ac_cv_prog_CC="$CC" # Let the user override the test.
1599else
1600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601for as_dir in $PATH
1602do
1603  IFS=$as_save_IFS
1604  test -z "$as_dir" && as_dir=.
1605  for ac_exec_ext in '' $ac_executable_extensions; do
1606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609    break 2
1610  fi
1611done
1612done
1613
1614fi
1615fi
1616CC=$ac_cv_prog_CC
1617if test -n "$CC"; then
1618  echo "$as_me:$LINENO: result: $CC" >&5
1619echo "${ECHO_T}$CC" >&6
1620else
1621  echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
1623fi
1624
1625fi
1626if test -z "$ac_cv_prog_CC"; then
1627  ac_ct_CC=$CC
1628  # Extract the first word of "gcc", so it can be a program name with args.
1629set dummy gcc; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  if test -n "$ac_ct_CC"; then
1636  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  for ac_exec_ext in '' $ac_executable_extensions; do
1644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645    ac_cv_prog_ac_ct_CC="gcc"
1646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647    break 2
1648  fi
1649done
1650done
1651
1652fi
1653fi
1654ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655if test -n "$ac_ct_CC"; then
1656  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657echo "${ECHO_T}$ac_ct_CC" >&6
1658else
1659  echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663  CC=$ac_ct_CC
1664else
1665  CC="$ac_cv_prog_CC"
1666fi
1667
1668if test -z "$CC"; then
1669  if test -n "$ac_tool_prefix"; then
1670  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}cc; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_CC+set}" = set; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  if test -n "$CC"; then
1678  ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683  IFS=$as_save_IFS
1684  test -z "$as_dir" && as_dir=.
1685  for ac_exec_ext in '' $ac_executable_extensions; do
1686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687    ac_cv_prog_CC="${ac_tool_prefix}cc"
1688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689    break 2
1690  fi
1691done
1692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
1698  echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705fi
1706if test -z "$ac_cv_prog_CC"; then
1707  ac_ct_CC=$CC
1708  # Extract the first word of "cc", so it can be a program name with args.
1709set dummy cc; ac_word=$2
1710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713  echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715  if test -n "$ac_ct_CC"; then
1716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717else
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721  IFS=$as_save_IFS
1722  test -z "$as_dir" && as_dir=.
1723  for ac_exec_ext in '' $ac_executable_extensions; do
1724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725    ac_cv_prog_ac_ct_CC="cc"
1726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727    break 2
1728  fi
1729done
1730done
1731
1732fi
1733fi
1734ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735if test -n "$ac_ct_CC"; then
1736  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737echo "${ECHO_T}$ac_ct_CC" >&6
1738else
1739  echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743  CC=$ac_ct_CC
1744else
1745  CC="$ac_cv_prog_CC"
1746fi
1747
1748fi
1749if test -z "$CC"; then
1750  # Extract the first word of "cc", so it can be a program name with args.
1751set dummy cc; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_CC+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  if test -n "$CC"; then
1758  ac_cv_prog_CC="$CC" # Let the user override the test.
1759else
1760  ac_prog_rejected=no
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764  IFS=$as_save_IFS
1765  test -z "$as_dir" && as_dir=.
1766  for ac_exec_ext in '' $ac_executable_extensions; do
1767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769       ac_prog_rejected=yes
1770       continue
1771     fi
1772    ac_cv_prog_CC="cc"
1773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774    break 2
1775  fi
1776done
1777done
1778
1779if test $ac_prog_rejected = yes; then
1780  # We found a bogon in the path, so make sure we never use it.
1781  set dummy $ac_cv_prog_CC
1782  shift
1783  if test $# != 0; then
1784    # We chose a different compiler from the bogus one.
1785    # However, it has the same basename, so the bogon will be chosen
1786    # first if we set CC to just the basename; use the full file name.
1787    shift
1788    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789  fi
1790fi
1791fi
1792fi
1793CC=$ac_cv_prog_CC
1794if test -n "$CC"; then
1795  echo "$as_me:$LINENO: result: $CC" >&5
1796echo "${ECHO_T}$CC" >&6
1797else
1798  echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802fi
1803if test -z "$CC"; then
1804  if test -n "$ac_tool_prefix"; then
1805  for ac_prog in cl
1806  do
1807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_CC+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  if test -n "$CC"; then
1815  ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820  IFS=$as_save_IFS
1821  test -z "$as_dir" && as_dir=.
1822  for ac_exec_ext in '' $ac_executable_extensions; do
1823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826    break 2
1827  fi
1828done
1829done
1830
1831fi
1832fi
1833CC=$ac_cv_prog_CC
1834if test -n "$CC"; then
1835  echo "$as_me:$LINENO: result: $CC" >&5
1836echo "${ECHO_T}$CC" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842    test -n "$CC" && break
1843  done
1844fi
1845if test -z "$CC"; then
1846  ac_ct_CC=$CC
1847  for ac_prog in cl
1848do
1849  # Extract the first word of "$ac_prog", so it can be a program name with args.
1850set dummy $ac_prog; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854  echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856  if test -n "$ac_ct_CC"; then
1857  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  test -z "$as_dir" && as_dir=.
1864  for ac_exec_ext in '' $ac_executable_extensions; do
1865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866    ac_cv_prog_ac_ct_CC="$ac_prog"
1867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868    break 2
1869  fi
1870done
1871done
1872
1873fi
1874fi
1875ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876if test -n "$ac_ct_CC"; then
1877  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878echo "${ECHO_T}$ac_ct_CC" >&6
1879else
1880  echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884  test -n "$ac_ct_CC" && break
1885done
1886
1887  CC=$ac_ct_CC
1888fi
1889
1890fi
1891
1892
1893test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: no acceptable C compiler found in \$PATH
1896See \`config.log' for more details." >&2;}
1897   { (exit 1); exit 1; }; }
1898
1899# Provide some information about the compiler.
1900echo "$as_me:$LINENO:" \
1901     "checking for C compiler version" >&5
1902ac_compiler=`set X $ac_compile; echo $2`
1903{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1904  (eval $ac_compiler --version </dev/null >&5) 2>&5
1905  ac_status=$?
1906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907  (exit $ac_status); }
1908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1909  (eval $ac_compiler -v </dev/null >&5) 2>&5
1910  ac_status=$?
1911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912  (exit $ac_status); }
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1914  (eval $ac_compiler -V </dev/null >&5) 2>&5
1915  ac_status=$?
1916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917  (exit $ac_status); }
1918
1919cat >conftest.$ac_ext <<_ACEOF
1920/* confdefs.h.  */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h.  */
1925
1926int
1927main ()
1928{
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934ac_clean_files_save=$ac_clean_files
1935ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936# Try to create an executable without -o first, disregard a.out.
1937# It will help us diagnose broken compilers, and finding out an intuition
1938# of exeext.
1939echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943  (eval $ac_link_default) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }; then
1947  # Find the output, starting from the most likely.  This scheme is
1948# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949# resort.
1950
1951# Be careful to initialize this variable, since it used to be cached.
1952# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953ac_cv_exeext=
1954# b.out is created by i960 compilers.
1955for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956do
1957  test -f "$ac_file" || continue
1958  case $ac_file in
1959    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960	;;
1961    conftest.$ac_ext )
1962	# This is the source file.
1963	;;
1964    [ab].out )
1965	# We found the default executable, but exeext='' is most
1966	# certainly right.
1967	break;;
1968    *.* )
1969	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970	# FIXME: I believe we export ac_cv_exeext for Libtool,
1971	# but it would be cool to find out if it's true.  Does anybody
1972	# maintain Libtool? --akim.
1973	export ac_cv_exeext
1974	break;;
1975    * )
1976	break;;
1977  esac
1978done
1979else
1980  echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: C compiler cannot create executables
1986See \`config.log' for more details." >&2;}
1987   { (exit 77); exit 77; }; }
1988fi
1989
1990ac_exeext=$ac_cv_exeext
1991echo "$as_me:$LINENO: result: $ac_file" >&5
1992echo "${ECHO_T}$ac_file" >&6
1993
1994# Check the compiler produces executables we can run.  If not, either
1995# the compiler is broken, or we cross compile.
1996echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999# If not cross compiling, check that we can run a simple program.
2000if test "$cross_compiling" != yes; then
2001  if { ac_try='./$ac_file'
2002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003  (eval $ac_try) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }; }; then
2007    cross_compiling=no
2008  else
2009    if test "$cross_compiling" = maybe; then
2010	cross_compiling=yes
2011    else
2012	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013If you meant to cross compile, use \`--host'.
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: cannot run C compiled programs.
2016If you meant to cross compile, use \`--host'.
2017See \`config.log' for more details." >&2;}
2018   { (exit 1); exit 1; }; }
2019    fi
2020  fi
2021fi
2022echo "$as_me:$LINENO: result: yes" >&5
2023echo "${ECHO_T}yes" >&6
2024
2025rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026ac_clean_files=$ac_clean_files_save
2027# Check the compiler produces executables we can run.  If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032echo "${ECHO_T}$cross_compiling" >&6
2033
2034echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037  (eval $ac_link) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; then
2041  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2043# work properly (i.e., refer to `conftest.exe'), while it won't with
2044# `rm'.
2045for ac_file in conftest.exe conftest conftest.*; do
2046  test -f "$ac_file" || continue
2047  case $ac_file in
2048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050	  export ac_cv_exeext
2051	  break;;
2052    * ) break;;
2053  esac
2054done
2055else
2056  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059See \`config.log' for more details." >&2;}
2060   { (exit 1); exit 1; }; }
2061fi
2062
2063rm -f conftest$ac_cv_exeext
2064echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067rm -f conftest.$ac_ext
2068EXEEXT=$ac_cv_exeext
2069ac_exeext=$EXEEXT
2070echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072if test "${ac_cv_objext+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h.  */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h.  */
2081
2082int
2083main ()
2084{
2085
2086  ;
2087  return 0;
2088}
2089_ACEOF
2090rm -f conftest.o conftest.obj
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092  (eval $ac_compile) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; then
2096  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2097  case $ac_file in
2098    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2100       break;;
2101  esac
2102done
2103else
2104  echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110See \`config.log' for more details." >&2;}
2111   { (exit 1); exit 1; }; }
2112fi
2113
2114rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117echo "${ECHO_T}$ac_cv_objext" >&6
2118OBJEXT=$ac_cv_objext
2119ac_objext=$OBJEXT
2120echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125  cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h.  */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h.  */
2131
2132int
2133main ()
2134{
2135#ifndef __GNUC__
2136       choke me
2137#endif
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145  (eval $ac_compile) 2>conftest.er1
2146  ac_status=$?
2147  grep -v '^ *+' conftest.er1 >conftest.err
2148  rm -f conftest.er1
2149  cat conftest.err >&5
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); } &&
2152	 { ac_try='test -z "$ac_c_werror_flag"
2153			 || test ! -s conftest.err'
2154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155  (eval $ac_try) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }; } &&
2159	 { ac_try='test -s conftest.$ac_objext'
2160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161  (eval $ac_try) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; }; then
2165  ac_compiler_gnu=yes
2166else
2167  echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170ac_compiler_gnu=no
2171fi
2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178GCC=`test $ac_compiler_gnu = yes && echo yes`
2179ac_test_CFLAGS=${CFLAGS+set}
2180ac_save_CFLAGS=$CFLAGS
2181CFLAGS="-g"
2182echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184if test "${ac_cv_prog_cc_g+set}" = set; then
2185  echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187  cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h.  */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h.  */
2193
2194int
2195main ()
2196{
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204  (eval $ac_compile) 2>conftest.er1
2205  ac_status=$?
2206  grep -v '^ *+' conftest.er1 >conftest.err
2207  rm -f conftest.er1
2208  cat conftest.err >&5
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); } &&
2211	 { ac_try='test -z "$ac_c_werror_flag"
2212			 || test ! -s conftest.err'
2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214  (eval $ac_try) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; } &&
2218	 { ac_try='test -s conftest.$ac_objext'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; }; then
2224  ac_cv_prog_cc_g=yes
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229ac_cv_prog_cc_g=no
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235if test "$ac_test_CFLAGS" = set; then
2236  CFLAGS=$ac_save_CFLAGS
2237elif test $ac_cv_prog_cc_g = yes; then
2238  if test "$GCC" = yes; then
2239    CFLAGS="-g -O2"
2240  else
2241    CFLAGS="-g"
2242  fi
2243else
2244  if test "$GCC" = yes; then
2245    CFLAGS="-O2"
2246  else
2247    CFLAGS=
2248  fi
2249fi
2250echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253  echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255  ac_cv_prog_cc_stdc=no
2256ac_save_CC=$CC
2257cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263#include <stdarg.h>
2264#include <stdio.h>
2265#include <sys/types.h>
2266#include <sys/stat.h>
2267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2268struct buf { int x; };
2269FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270static char *e (p, i)
2271     char **p;
2272     int i;
2273{
2274  return p[i];
2275}
2276static char *f (char * (*g) (char **, int), char **p, ...)
2277{
2278  char *s;
2279  va_list v;
2280  va_start (v,p);
2281  s = g (p, va_arg (v,int));
2282  va_end (v);
2283  return s;
2284}
2285
2286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2287   function prototypes and stuff, but not '\xHH' hex character constants.
2288   These don't provoke an error unfortunately, instead are silently treated
2289   as 'x'.  The following induces an error, until -std1 is added to get
2290   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2291   array size at least.  It's necessary to write '\x00'==0 to get something
2292   that's true only with -std1.  */
2293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294
2295int test (int i, double x);
2296struct s1 {int (*f) (int a);};
2297struct s2 {int (*f) (double a);};
2298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2299int argc;
2300char **argv;
2301int
2302main ()
2303{
2304return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309# Don't try gcc -ansi; that turns off useful extensions and
2310# breaks some systems' header files.
2311# AIX			-qlanglvl=ansi
2312# Ultrix and OSF/1	-std1
2313# HP-UX 10.20 and later	-Ae
2314# HP-UX older versions	-Aa -D_HPUX_SOURCE
2315# SVR4			-Xc -D__EXTENSIONS__
2316for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317do
2318  CC="$ac_save_CC $ac_arg"
2319  rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321  (eval $ac_compile) 2>conftest.er1
2322  ac_status=$?
2323  grep -v '^ *+' conftest.er1 >conftest.err
2324  rm -f conftest.er1
2325  cat conftest.err >&5
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); } &&
2328	 { ac_try='test -z "$ac_c_werror_flag"
2329			 || test ! -s conftest.err'
2330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331  (eval $ac_try) 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; } &&
2335	 { ac_try='test -s conftest.$ac_objext'
2336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337  (eval $ac_try) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; }; then
2341  ac_cv_prog_cc_stdc=$ac_arg
2342break
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347fi
2348rm -f conftest.err conftest.$ac_objext
2349done
2350rm -f conftest.$ac_ext conftest.$ac_objext
2351CC=$ac_save_CC
2352
2353fi
2354
2355case "x$ac_cv_prog_cc_stdc" in
2356  x|xno)
2357    echo "$as_me:$LINENO: result: none needed" >&5
2358echo "${ECHO_T}none needed" >&6 ;;
2359  *)
2360    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362    CC="$CC $ac_cv_prog_cc_stdc" ;;
2363esac
2364
2365# Some people use a C++ compiler to compile C.  Since we use `exit',
2366# in C++ we need to declare it.  In case someone uses the same compiler
2367# for both compiling C and C++ we need to have the C++ compiler decide
2368# the declaration of exit, since it's the most demanding environment.
2369cat >conftest.$ac_ext <<_ACEOF
2370#ifndef __cplusplus
2371  choke me
2372#endif
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>conftest.er1
2377  ac_status=$?
2378  grep -v '^ *+' conftest.er1 >conftest.err
2379  rm -f conftest.er1
2380  cat conftest.err >&5
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383	 { ac_try='test -z "$ac_c_werror_flag"
2384			 || test ! -s conftest.err'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390	 { ac_try='test -s conftest.$ac_objext'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; }; then
2396  for ac_declaration in \
2397   '' \
2398   'extern "C" void std::exit (int) throw (); using std::exit;' \
2399   'extern "C" void std::exit (int); using std::exit;' \
2400   'extern "C" void exit (int) throw ();' \
2401   'extern "C" void exit (int);' \
2402   'void exit (int);'
2403do
2404  cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h.  */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h.  */
2410$ac_declaration
2411#include <stdlib.h>
2412int
2413main ()
2414{
2415exit (42);
2416  ;
2417  return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>conftest.er1
2423  ac_status=$?
2424  grep -v '^ *+' conftest.er1 >conftest.err
2425  rm -f conftest.er1
2426  cat conftest.err >&5
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); } &&
2429	 { ac_try='test -z "$ac_c_werror_flag"
2430			 || test ! -s conftest.err'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; } &&
2436	 { ac_try='test -s conftest.$ac_objext'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; }; then
2442  :
2443else
2444  echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447continue
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450  cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h.  */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h.  */
2456$ac_declaration
2457int
2458main ()
2459{
2460exit (42);
2461  ;
2462  return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467  (eval $ac_compile) 2>conftest.er1
2468  ac_status=$?
2469  grep -v '^ *+' conftest.er1 >conftest.err
2470  rm -f conftest.er1
2471  cat conftest.err >&5
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); } &&
2474	 { ac_try='test -z "$ac_c_werror_flag"
2475			 || test ! -s conftest.err'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; } &&
2481	 { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  break
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494done
2495rm -f conftest*
2496if test -n "$ac_declaration"; then
2497  echo '#ifdef __cplusplus' >>confdefs.h
2498  echo $ac_declaration      >>confdefs.h
2499  echo '#endif'             >>confdefs.h
2500fi
2501
2502else
2503  echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506fi
2507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517if test "${ac_cv_search_strerror+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  ac_func_search_save_LIBS=$LIBS
2521ac_cv_search_strerror=no
2522cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h.  */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h.  */
2528
2529/* Override any gcc2 internal prototype to avoid an error.  */
2530#ifdef __cplusplus
2531extern "C"
2532#endif
2533/* We use char because int might match the return type of a gcc2
2534   builtin and then its argument prototype would still apply.  */
2535char strerror ();
2536int
2537main ()
2538{
2539strerror ();
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext conftest$ac_exeext
2545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546  (eval $ac_link) 2>conftest.er1
2547  ac_status=$?
2548  grep -v '^ *+' conftest.er1 >conftest.err
2549  rm -f conftest.er1
2550  cat conftest.err >&5
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553	 { ac_try='test -z "$ac_c_werror_flag"
2554			 || test ! -s conftest.err'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; } &&
2560	 { ac_try='test -s conftest$ac_exeext'
2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562  (eval $ac_try) 2>&5
2563  ac_status=$?
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); }; }; then
2566  ac_cv_search_strerror="none required"
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571fi
2572rm -f conftest.err conftest.$ac_objext \
2573      conftest$ac_exeext conftest.$ac_ext
2574if test "$ac_cv_search_strerror" = no; then
2575  for ac_lib in cposix; do
2576    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2577    cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h.  */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h.  */
2583
2584/* Override any gcc2 internal prototype to avoid an error.  */
2585#ifdef __cplusplus
2586extern "C"
2587#endif
2588/* We use char because int might match the return type of a gcc2
2589   builtin and then its argument prototype would still apply.  */
2590char strerror ();
2591int
2592main ()
2593{
2594strerror ();
2595  ;
2596  return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext conftest$ac_exeext
2600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601  (eval $ac_link) 2>conftest.er1
2602  ac_status=$?
2603  grep -v '^ *+' conftest.er1 >conftest.err
2604  rm -f conftest.er1
2605  cat conftest.err >&5
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); } &&
2608	 { ac_try='test -z "$ac_c_werror_flag"
2609			 || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615	 { ac_try='test -s conftest$ac_exeext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  ac_cv_search_strerror="-l$ac_lib"
2622break
2623else
2624  echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627fi
2628rm -f conftest.err conftest.$ac_objext \
2629      conftest$ac_exeext conftest.$ac_ext
2630  done
2631fi
2632LIBS=$ac_func_search_save_LIBS
2633fi
2634echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636if test "$ac_cv_search_strerror" != no; then
2637  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2638
2639fi
2640
2641
2642# We currently only use the version number for the name of any shared
2643# library.  For user convenience, we always use the same version
2644# number that BFD is using.
2645BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2646
2647am__api_version="1.9"
2648# Find a good install program.  We prefer a C program (faster),
2649# so one script is as good as another.  But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659# OS/2's system install, which has a completely different semantic
2660# ./install, which can be erroneously created by make from ./install.sh.
2661echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663if test -z "$INSTALL"; then
2664if test "${ac_cv_path_install+set}" = set; then
2665  echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672  # Account for people who put trailing slashes in PATH elements.
2673case $as_dir/ in
2674  ./ | .// | /cC/* | \
2675  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677  /usr/ucb/* ) ;;
2678  *)
2679    # OSF1 and SCO ODT 3.0 have their own names for install.
2680    # Don't use installbsd from OSF since it installs stuff as root
2681    # by default.
2682    for ac_prog in ginstall scoinst install; do
2683      for ac_exec_ext in '' $ac_executable_extensions; do
2684	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685	  if test $ac_prog = install &&
2686	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687	    # AIX install.  It has an incompatible calling convention.
2688	    :
2689	  elif test $ac_prog = install &&
2690	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691	    # program-specific install script used by HP pwplus--don't use.
2692	    :
2693	  else
2694	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695	    break 3
2696	  fi
2697	fi
2698      done
2699    done
2700    ;;
2701esac
2702done
2703
2704
2705fi
2706  if test "${ac_cv_path_install+set}" = set; then
2707    INSTALL=$ac_cv_path_install
2708  else
2709    # As a last resort, use the slow shell script.  We don't cache a
2710    # path for INSTALL within a source directory, because that will
2711    # break other packages using the cache if that directory is
2712    # removed, or if the path is relative.
2713    INSTALL=$ac_install_sh
2714  fi
2715fi
2716echo "$as_me:$LINENO: result: $INSTALL" >&5
2717echo "${ECHO_T}$INSTALL" >&6
2718
2719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720# It thinks the first close brace ends the variable substitution.
2721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2729# Just in case
2730sleep 1
2731echo timestamp > conftest.file
2732# Do `set' in a subshell so we don't clobber the current shell's
2733# arguments.  Must try -L first in case configure is actually a
2734# symlink; some systems play weird games with the mod time of symlinks
2735# (eg FreeBSD returns the mod time of the symlink's containing
2736# directory).
2737if (
2738   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739   if test "$*" = "X"; then
2740      # -L didn't work.
2741      set X `ls -t $srcdir/configure conftest.file`
2742   fi
2743   rm -f conftest.file
2744   if test "$*" != "X $srcdir/configure conftest.file" \
2745      && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747      # If neither matched, then we have a broken ls.  This can happen
2748      # if, for instance, CONFIG_SHELL is bash and it inherits a
2749      # broken ls alias from the environment.  This has actually
2750      # happened.  Such a system could not be considered "sane".
2751      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2752alias in your environment" >&5
2753echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2754alias in your environment" >&2;}
2755   { (exit 1); exit 1; }; }
2756   fi
2757
2758   test "$2" = conftest.file
2759   )
2760then
2761   # Ok.
2762   :
2763else
2764   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765Check your system clock" >&5
2766echo "$as_me: error: newly created file is older than distributed files!
2767Check your system clock" >&2;}
2768   { (exit 1); exit 1; }; }
2769fi
2770echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772test "$program_prefix" != NONE &&
2773  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774# Use a double $ so make ignores it.
2775test "$program_suffix" != NONE &&
2776  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777# Double any \ or $.  echo might interpret backslashes.
2778# By default was `s,x,x', remove it if useless.
2779cat <<\_ACEOF >conftest.sed
2780s/[\\$]/&&/g;s/;s,x,x,$//
2781_ACEOF
2782program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783rm conftest.sed
2784
2785# expand $ac_aux_dir to an absolute path
2786am_aux_dir=`cd $ac_aux_dir && pwd`
2787
2788test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789# Use eval to expand $SHELL
2790if eval "$MISSING --run true"; then
2791  am_missing_run="$MISSING --run "
2792else
2793  am_missing_run=
2794  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796fi
2797
2798if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799  # We used to keeping the `.' as first argument, in order to
2800  # allow $(mkdir_p) to be used without argument.  As in
2801  #   $(mkdir_p) $(somedir)
2802  # where $(somedir) is conditionally defined.  However this is wrong
2803  # for two reasons:
2804  #  1. if the package is installed by a user who cannot write `.'
2805  #     make install will fail,
2806  #  2. the above comment should most certainly read
2807  #     $(mkdir_p) $(DESTDIR)$(somedir)
2808  #     so it does not work when $(somedir) is undefined and
2809  #     $(DESTDIR) is not.
2810  #  To support the latter case, we have to write
2811  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812  #  so the `.' trick is pointless.
2813  mkdir_p='mkdir -p --'
2814else
2815  # On NextStep and OpenStep, the `mkdir' command does not
2816  # recognize any option.  It will interpret all options as
2817  # directories to create, and then abort because `.' already
2818  # exists.
2819  for d in ./-p ./--version;
2820  do
2821    test -d $d && rmdir $d
2822  done
2823  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824  if test -f "$ac_aux_dir/mkinstalldirs"; then
2825    mkdir_p='$(mkinstalldirs)'
2826  else
2827    mkdir_p='$(install_sh) -d'
2828  fi
2829fi
2830
2831for ac_prog in gawk mawk nawk awk
2832do
2833  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837if test "${ac_cv_prog_AWK+set}" = set; then
2838  echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840  if test -n "$AWK"; then
2841  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848  for ac_exec_ext in '' $ac_executable_extensions; do
2849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850    ac_cv_prog_AWK="$ac_prog"
2851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855done
2856
2857fi
2858fi
2859AWK=$ac_cv_prog_AWK
2860if test -n "$AWK"; then
2861  echo "$as_me:$LINENO: result: $AWK" >&5
2862echo "${ECHO_T}$AWK" >&6
2863else
2864  echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866fi
2867
2868  test -n "$AWK" && break
2869done
2870
2871echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875  echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877  cat >conftest.make <<\_ACEOF
2878all:
2879	@echo 'ac_maketemp="$(MAKE)"'
2880_ACEOF
2881# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883if test -n "$ac_maketemp"; then
2884  eval ac_cv_prog_make_${ac_make}_set=yes
2885else
2886  eval ac_cv_prog_make_${ac_make}_set=no
2887fi
2888rm -f conftest.make
2889fi
2890if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891  echo "$as_me:$LINENO: result: yes" >&5
2892echo "${ECHO_T}yes" >&6
2893  SET_MAKE=
2894else
2895  echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
2897  SET_MAKE="MAKE=${MAKE-make}"
2898fi
2899
2900rm -rf .tst 2>/dev/null
2901mkdir .tst 2>/dev/null
2902if test -d .tst; then
2903  am__leading_dot=.
2904else
2905  am__leading_dot=_
2906fi
2907rmdir .tst 2>/dev/null
2908
2909DEPDIR="${am__leading_dot}deps"
2910
2911          ac_config_commands="$ac_config_commands depfiles"
2912
2913
2914am_make=${MAKE-make}
2915cat > confinc << 'END'
2916am__doit:
2917	@echo done
2918.PHONY: am__doit
2919END
2920# If we don't find an include directive, just comment out the code.
2921echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923am__include="#"
2924am__quote=
2925_am_result=none
2926# First try GNU make style include.
2927echo "include confinc" > confmf
2928# We grep out `Entering directory' and `Leaving directory'
2929# messages which can occur if `w' ends up in MAKEFLAGS.
2930# In particular we don't look at `^make:' because GNU make might
2931# be invoked under some other name (usually "gmake"), in which
2932# case it prints its new name instead of `make'.
2933if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934   am__include=include
2935   am__quote=
2936   _am_result=GNU
2937fi
2938# Now try BSD make style include.
2939if test "$am__include" = "#"; then
2940   echo '.include "confinc"' > confmf
2941   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942      am__include=.include
2943      am__quote="\""
2944      _am_result=BSD
2945   fi
2946fi
2947
2948
2949echo "$as_me:$LINENO: result: $_am_result" >&5
2950echo "${ECHO_T}$_am_result" >&6
2951rm -f confinc confmf
2952
2953# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954if test "${enable_dependency_tracking+set}" = set; then
2955  enableval="$enable_dependency_tracking"
2956
2957fi;
2958if test "x$enable_dependency_tracking" != xno; then
2959  am_depcomp="$ac_aux_dir/depcomp"
2960  AMDEPBACKSLASH='\'
2961fi
2962
2963
2964if test "x$enable_dependency_tracking" != xno; then
2965  AMDEP_TRUE=
2966  AMDEP_FALSE='#'
2967else
2968  AMDEP_TRUE='#'
2969  AMDEP_FALSE=
2970fi
2971
2972
2973
2974# test to see if srcdir already configured
2975if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976   test -f $srcdir/config.status; then
2977  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979   { (exit 1); exit 1; }; }
2980fi
2981
2982# test whether we have cygpath
2983if test -z "$CYGPATH_W"; then
2984  if (cygpath --version) >/dev/null 2>/dev/null; then
2985    CYGPATH_W='cygpath -w'
2986  else
2987    CYGPATH_W=echo
2988  fi
2989fi
2990
2991
2992# Define the identity of the package.
2993 PACKAGE=opcodes
2994 VERSION=${BFD_VERSION}
2995
2996
2997cat >>confdefs.h <<_ACEOF
2998#define PACKAGE "$PACKAGE"
2999_ACEOF
3000
3001
3002cat >>confdefs.h <<_ACEOF
3003#define VERSION "$VERSION"
3004_ACEOF
3005
3006# Some tools Automake needs.
3007
3008ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022install_sh=${install_sh-"$am_aux_dir/install-sh"}
3023
3024# Installed binaries are usually stripped using `strip' when the user
3025# run `make install-strip'.  However `strip' might not be the right
3026# tool to use in cross-compilation environments, therefore Automake
3027# will honor the `STRIP' environment variable to overrule this program.
3028if test "$cross_compiling" != no; then
3029  if test -n "$ac_tool_prefix"; then
3030  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}strip; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_STRIP+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  if test -n "$STRIP"; then
3038  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045  for ac_exec_ext in '' $ac_executable_extensions; do
3046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052done
3053
3054fi
3055fi
3056STRIP=$ac_cv_prog_STRIP
3057if test -n "$STRIP"; then
3058  echo "$as_me:$LINENO: result: $STRIP" >&5
3059echo "${ECHO_T}$STRIP" >&6
3060else
3061  echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063fi
3064
3065fi
3066if test -z "$ac_cv_prog_STRIP"; then
3067  ac_ct_STRIP=$STRIP
3068  # Extract the first word of "strip", so it can be a program name with args.
3069set dummy strip; ac_word=$2
3070echo "$as_me:$LINENO: checking for $ac_word" >&5
3071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  if test -n "$ac_ct_STRIP"; then
3076  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083  for ac_exec_ext in '' $ac_executable_extensions; do
3084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085    ac_cv_prog_ac_ct_STRIP="strip"
3086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090done
3091
3092  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093fi
3094fi
3095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096if test -n "$ac_ct_STRIP"; then
3097  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098echo "${ECHO_T}$ac_ct_STRIP" >&6
3099else
3100  echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
3102fi
3103
3104  STRIP=$ac_ct_STRIP
3105else
3106  STRIP="$ac_cv_prog_STRIP"
3107fi
3108
3109fi
3110INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
3112# We need awk for the "check" target.  The system "awk" is bad on
3113# some platforms.
3114# Always define AMTAR for backward compatibility.
3115
3116AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
3118am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
3120
3121
3122
3123depcc="$CC"   am_compiler_list=
3124
3125echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131  # We make a subdir and do the tests there.  Otherwise we can end up
3132  # making bogus files that we don't know about and never remove.  For
3133  # instance it was reported that on HP-UX the gcc test will end up
3134  # making a dummy file named `D' -- because `-MD' means `put the output
3135  # in D'.
3136  mkdir conftest.dir
3137  # Copy depcomp to subdir because otherwise we won't find it if we're
3138  # using a relative directory.
3139  cp "$am_depcomp" conftest.dir
3140  cd conftest.dir
3141  # We will build objects and dependencies in a subdirectory because
3142  # it helps to detect inapplicable dependency modes.  For instance
3143  # both Tru64's cc and ICC support -MD to output dependencies as a
3144  # side effect of compilation, but ICC will put the dependencies in
3145  # the current directory while Tru64 will put them in the object
3146  # directory.
3147  mkdir sub
3148
3149  am_cv_CC_dependencies_compiler_type=none
3150  if test "$am_compiler_list" = ""; then
3151     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152  fi
3153  for depmode in $am_compiler_list; do
3154    # Setup a source with many dependencies, because some compilers
3155    # like to wrap large dependency lists on column 80 (with \), and
3156    # we should not choose a depcomp mode which is confused by this.
3157    #
3158    # We need to recreate these files for each test, as the compiler may
3159    # overwrite some of them when testing with obscure command lines.
3160    # This happens at least with the AIX C compiler.
3161    : > sub/conftest.c
3162    for i in 1 2 3 4 5 6; do
3163      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165      # Solaris 8's {/usr,}/bin/sh.
3166      touch sub/conftst$i.h
3167    done
3168    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170    case $depmode in
3171    nosideeffect)
3172      # after this tag, mechanisms are not by side-effect, so they'll
3173      # only be used when explicitly requested
3174      if test "x$enable_dependency_tracking" = xyes; then
3175	continue
3176      else
3177	break
3178      fi
3179      ;;
3180    none) break ;;
3181    esac
3182    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183    # mode.  It turns out that the SunPro C++ compiler does not properly
3184    # handle `-M -o', and we need to detect this.
3185    if depmode=$depmode \
3186       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189         >/dev/null 2>conftest.err &&
3190       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193      # icc doesn't choke on unknown options, it will just issue warnings
3194      # or remarks (even with -Werror).  So we grep stderr for any message
3195      # that says an option was ignored or not supported.
3196      # When given -MP, icc 7.0 and 7.1 complain thusly:
3197      #   icc: Command line warning: ignoring option '-M'; no argument required
3198      # The diagnosis changed in icc 8.0:
3199      #   icc: Command line remark: option '-MP' not supported
3200      if (grep 'ignoring option' conftest.err ||
3201          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202        am_cv_CC_dependencies_compiler_type=$depmode
3203        break
3204      fi
3205    fi
3206  done
3207
3208  cd ..
3209  rm -rf conftest.dir
3210else
3211  am_cv_CC_dependencies_compiler_type=none
3212fi
3213
3214fi
3215echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3219
3220
3221if
3222  test "x$enable_dependency_tracking" != xno \
3223  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224  am__fastdepCC_TRUE=
3225  am__fastdepCC_FALSE='#'
3226else
3227  am__fastdepCC_TRUE='#'
3228  am__fastdepCC_FALSE=
3229fi
3230
3231
3232
3233
3234if test -n "$ac_tool_prefix"; then
3235  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3236set dummy ${ac_tool_prefix}ar; ac_word=$2
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_AR+set}" = set; then
3240  echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242  if test -n "$AR"; then
3243  ac_cv_prog_AR="$AR" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250  for ac_exec_ext in '' $ac_executable_extensions; do
3251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252    ac_cv_prog_AR="${ac_tool_prefix}ar"
3253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257done
3258
3259fi
3260fi
3261AR=$ac_cv_prog_AR
3262if test -n "$AR"; then
3263  echo "$as_me:$LINENO: result: $AR" >&5
3264echo "${ECHO_T}$AR" >&6
3265else
3266  echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
3269
3270fi
3271if test -z "$ac_cv_prog_AR"; then
3272  ac_ct_AR=$AR
3273  # Extract the first word of "ar", so it can be a program name with args.
3274set dummy ar; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  if test -n "$ac_ct_AR"; then
3281  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288  for ac_exec_ext in '' $ac_executable_extensions; do
3289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_ac_ct_AR="ar"
3291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295done
3296
3297fi
3298fi
3299ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300if test -n "$ac_ct_AR"; then
3301  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302echo "${ECHO_T}$ac_ct_AR" >&6
3303else
3304  echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308  AR=$ac_ct_AR
3309else
3310  AR="$ac_cv_prog_AR"
3311fi
3312
3313if test -n "$ac_tool_prefix"; then
3314  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_RANLIB+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$RANLIB"; then
3322  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340RANLIB=$ac_cv_prog_RANLIB
3341if test -n "$RANLIB"; then
3342  echo "$as_me:$LINENO: result: $RANLIB" >&5
3343echo "${ECHO_T}$RANLIB" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349fi
3350if test -z "$ac_cv_prog_RANLIB"; then
3351  ac_ct_RANLIB=$RANLIB
3352  # Extract the first word of "ranlib", so it can be a program name with args.
3353set dummy ranlib; ac_word=$2
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  if test -n "$ac_ct_RANLIB"; then
3360  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367  for ac_exec_ext in '' $ac_executable_extensions; do
3368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_ac_ct_RANLIB="ranlib"
3370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374done
3375
3376  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3377fi
3378fi
3379ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380if test -n "$ac_ct_RANLIB"; then
3381  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382echo "${ECHO_T}$ac_ct_RANLIB" >&6
3383else
3384  echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386fi
3387
3388  RANLIB=$ac_ct_RANLIB
3389else
3390  RANLIB="$ac_cv_prog_RANLIB"
3391fi
3392
3393
3394# Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396  enableval="$enable_shared"
3397  p=${PACKAGE-default}
3398    case $enableval in
3399    yes) enable_shared=yes ;;
3400    no) enable_shared=no ;;
3401    *)
3402      enable_shared=no
3403      # Look at the argument we got.  We use all the common list separators.
3404      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405      for pkg in $enableval; do
3406	IFS="$lt_save_ifs"
3407	if test "X$pkg" = "X$p"; then
3408	  enable_shared=yes
3409	fi
3410      done
3411      IFS="$lt_save_ifs"
3412      ;;
3413    esac
3414else
3415  enable_shared=no
3416fi;
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428macro_version='2.1a'
3429macro_revision='1.2435'
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442ltmain="$ac_aux_dir/ltmain.sh"
3443
3444# Set options
3445
3446enable_dlopen=no
3447
3448
3449enable_win32_dll=no
3450
3451
3452
3453# Check whether --enable-static or --disable-static was given.
3454if test "${enable_static+set}" = set; then
3455  enableval="$enable_static"
3456  p=${PACKAGE-default}
3457    case $enableval in
3458    yes) enable_static=yes ;;
3459    no) enable_static=no ;;
3460    *)
3461     enable_static=no
3462      # Look at the argument we got.  We use all the common list separators.
3463      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464      for pkg in $enableval; do
3465	IFS="$lt_save_ifs"
3466	if test "X$pkg" = "X$p"; then
3467	  enable_static=yes
3468	fi
3469      done
3470      IFS="$lt_save_ifs"
3471      ;;
3472    esac
3473else
3474  enable_static=yes
3475fi;
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485# Check whether --with-pic or --without-pic was given.
3486if test "${with_pic+set}" = set; then
3487  withval="$with_pic"
3488  pic_mode="$withval"
3489else
3490  pic_mode=default
3491fi;
3492
3493test -z "$pic_mode" && pic_mode=default
3494
3495
3496
3497
3498
3499
3500
3501# Check whether --enable-fast-install or --disable-fast-install was given.
3502if test "${enable_fast_install+set}" = set; then
3503  enableval="$enable_fast_install"
3504  p=${PACKAGE-default}
3505    case $enableval in
3506    yes) enable_fast_install=yes ;;
3507    no) enable_fast_install=no ;;
3508    *)
3509      enable_fast_install=no
3510      # Look at the argument we got.  We use all the common list separators.
3511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512      for pkg in $enableval; do
3513	IFS="$lt_save_ifs"
3514	if test "X$pkg" = "X$p"; then
3515	  enable_fast_install=yes
3516	fi
3517      done
3518      IFS="$lt_save_ifs"
3519      ;;
3520    esac
3521else
3522  enable_fast_install=yes
3523fi;
3524
3525
3526
3527
3528
3529
3530
3531
3532echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3533echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3534if test "${lt_cv_path_SED+set}" = set; then
3535  echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537  # Loop through the user's path and test for sed and gsed.
3538# Then use that list of sed's as ones to test for truncation.
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542  IFS=$as_save_IFS
3543  test -z "$as_dir" && as_dir=.
3544  for lt_ac_prog in sed gsed; do
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3547        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3548      fi
3549    done
3550  done
3551done
3552IFS=$as_save_IFS
3553lt_ac_max=0
3554lt_ac_count=0
3555# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3556# along with /bin/sed that truncates output.
3557for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3558  test ! -f $lt_ac_sed && continue
3559  cat /dev/null > conftest.in
3560  lt_ac_count=0
3561  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3562  # Check for GNU sed and select it if it is found.
3563  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3564    lt_cv_path_SED=$lt_ac_sed
3565    break
3566  fi
3567  while true; do
3568    cat conftest.in conftest.in >conftest.tmp
3569    mv conftest.tmp conftest.in
3570    cp conftest.in conftest.nl
3571    echo >>conftest.nl
3572    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3573    cmp -s conftest.out conftest.nl || break
3574    # 10000 chars as input seems more than enough
3575    test $lt_ac_count -gt 10 && break
3576    lt_ac_count=`expr $lt_ac_count + 1`
3577    if test $lt_ac_count -gt $lt_ac_max; then
3578      lt_ac_max=$lt_ac_count
3579      lt_cv_path_SED=$lt_ac_sed
3580    fi
3581  done
3582done
3583
3584fi
3585
3586SED=$lt_cv_path_SED
3587
3588echo "$as_me:$LINENO: result: $SED" >&5
3589echo "${ECHO_T}$SED" >&6
3590
3591test -z "$SED" && SED=sed
3592Xsed="$SED -e 1s/^X//"
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604echo "$as_me:$LINENO: checking for egrep" >&5
3605echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606if test "${ac_cv_prog_egrep+set}" = set; then
3607  echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610    then ac_cv_prog_egrep='grep -E'
3611    else ac_cv_prog_egrep='egrep'
3612    fi
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3617
3618
3619echo "$as_me:$LINENO: checking for fgrep" >&5
3620echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3621if test "${ac_cv_prog_fgrep+set}" = set; then
3622  echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3625    then ac_cv_prog_fgrep='grep -F'
3626    else ac_cv_prog_fgrep='fgrep'
3627    fi
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3630echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3631 FGREP=$ac_cv_prog_fgrep
3632
3633
3634test -z "$GREP" && GREP=grep
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654# Check whether --with-gnu-ld or --without-gnu-ld was given.
3655if test "${with_gnu_ld+set}" = set; then
3656  withval="$with_gnu_ld"
3657  test "$withval" = no || with_gnu_ld=yes
3658else
3659  with_gnu_ld=no
3660fi;
3661ac_prog=ld
3662if test "$GCC" = yes; then
3663  # Check if gcc -print-prog-name=ld gives a path.
3664  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3665echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3666  case $host in
3667  *-*-mingw*)
3668    # gcc leaves a trailing carriage return which upsets mingw
3669    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3670  *)
3671    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3672  esac
3673  case $ac_prog in
3674    # Accept absolute paths.
3675    [\\/]* | ?:[\\/]*)
3676      re_direlt='/[^/][^/]*/\.\./'
3677      # Canonicalize the pathname of ld
3678      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3679      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3680	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3681      done
3682      test -z "$LD" && LD="$ac_prog"
3683      ;;
3684  "")
3685    # If it fails, then pretend we aren't using GCC.
3686    ac_prog=ld
3687    ;;
3688  *)
3689    # If it is relative, then search for the first ld in PATH.
3690    with_gnu_ld=unknown
3691    ;;
3692  esac
3693elif test "$with_gnu_ld" = yes; then
3694  echo "$as_me:$LINENO: checking for GNU ld" >&5
3695echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3696else
3697  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3699fi
3700if test "${lt_cv_path_LD+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  if test -z "$LD"; then
3704  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3705  for ac_dir in $PATH; do
3706    IFS="$lt_save_ifs"
3707    test -z "$ac_dir" && ac_dir=.
3708    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3709      lt_cv_path_LD="$ac_dir/$ac_prog"
3710      # Check to see if the program is GNU ld.  I'd rather use --version,
3711      # but apparently some variants of GNU ld only accept -v.
3712      # Break only if it was the GNU/non-GNU ld that we prefer.
3713      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3714      *GNU* | *'with BFD'*)
3715	test "$with_gnu_ld" != no && break
3716	;;
3717      *)
3718	test "$with_gnu_ld" != yes && break
3719	;;
3720      esac
3721    fi
3722  done
3723  IFS="$lt_save_ifs"
3724else
3725  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3726fi
3727fi
3728
3729LD="$lt_cv_path_LD"
3730if test -n "$LD"; then
3731  echo "$as_me:$LINENO: result: $LD" >&5
3732echo "${ECHO_T}$LD" >&6
3733else
3734  echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
3736fi
3737test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3738echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3739   { (exit 1); exit 1; }; }
3740echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3741echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3742if test "${lt_cv_prog_gnu_ld+set}" = set; then
3743  echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3746case `$LD -v 2>&1 </dev/null` in
3747*GNU* | *'with BFD'*)
3748  lt_cv_prog_gnu_ld=yes
3749  ;;
3750*)
3751  lt_cv_prog_gnu_ld=no
3752  ;;
3753esac
3754fi
3755echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3756echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3757with_gnu_ld=$lt_cv_prog_gnu_ld
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3769echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3770if test "${lt_cv_path_NM+set}" = set; then
3771  echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773  if test -n "$NM"; then
3774  # Let the user override the test.
3775  lt_cv_path_NM="$NM"
3776else
3777  lt_nm_to_check="${ac_tool_prefix}nm"
3778  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3779    lt_nm_to_check="$lt_nm_to_check nm"
3780  fi
3781  for lt_tmp_nm in $lt_nm_to_check; do
3782    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3784      IFS="$lt_save_ifs"
3785      test -z "$ac_dir" && ac_dir=.
3786      tmp_nm="$ac_dir/$lt_tmp_nm"
3787      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3788	# Check to see if the nm accepts a BSD-compat flag.
3789	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3790	#   nm: unknown option "B" ignored
3791	# Tru64's nm complains that /dev/null is an invalid object file
3792	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3793	*/dev/null* | *'Invalid file or object type'*)
3794	  lt_cv_path_NM="$tmp_nm -B"
3795	  break
3796	  ;;
3797	*)
3798	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3799	  */dev/null*)
3800	    lt_cv_path_NM="$tmp_nm -p"
3801	    break
3802	    ;;
3803	  *)
3804	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3805	    continue # so that we can try to find one that supports BSD flags
3806	    ;;
3807	  esac
3808	  ;;
3809	esac
3810      fi
3811    done
3812    IFS="$lt_save_ifs"
3813  done
3814  : ${lt_cv_path_NM=no}
3815fi
3816fi
3817echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3818echo "${ECHO_T}$lt_cv_path_NM" >&6
3819if test "$lt_cv_path_NM" != "no"; then
3820  NM="$lt_cv_path_NM"
3821else
3822  # Didn't find any BSD compatible name lister, look for dumpbin.
3823  if test -n "$ac_tool_prefix"; then
3824  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3825  do
3826    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  if test -n "$DUMPBIN"; then
3834  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839  IFS=$as_save_IFS
3840  test -z "$as_dir" && as_dir=.
3841  for ac_exec_ext in '' $ac_executable_extensions; do
3842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845    break 2
3846  fi
3847done
3848done
3849
3850fi
3851fi
3852DUMPBIN=$ac_cv_prog_DUMPBIN
3853if test -n "$DUMPBIN"; then
3854  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3855echo "${ECHO_T}$DUMPBIN" >&6
3856else
3857  echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861    test -n "$DUMPBIN" && break
3862  done
3863fi
3864if test -z "$DUMPBIN"; then
3865  ac_ct_DUMPBIN=$DUMPBIN
3866  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3867do
3868  # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
3870echo "$as_me:$LINENO: checking for $ac_word" >&5
3871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3873  echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875  if test -n "$ac_ct_DUMPBIN"; then
3876  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881  IFS=$as_save_IFS
3882  test -z "$as_dir" && as_dir=.
3883  for ac_exec_ext in '' $ac_executable_extensions; do
3884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887    break 2
3888  fi
3889done
3890done
3891
3892fi
3893fi
3894ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3895if test -n "$ac_ct_DUMPBIN"; then
3896  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3897echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3898else
3899  echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901fi
3902
3903  test -n "$ac_ct_DUMPBIN" && break
3904done
3905test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3906
3907  DUMPBIN=$ac_ct_DUMPBIN
3908fi
3909
3910
3911  if test "$DUMPBIN" != ":"; then
3912    NM="$DUMPBIN"
3913  fi
3914fi
3915test -z "$NM" && NM=nm
3916
3917
3918
3919
3920
3921
3922echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3923echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3924if test "${lt_cv_nm_interface+set}" = set; then
3925  echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927  lt_cv_nm_interface="BSD nm"
3928  echo "int some_variable = 0;" > conftest.$ac_ext
3929  (eval echo "\"\$as_me:3929: $ac_compile\"" >&5)
3930  (eval "$ac_compile" 2>conftest.err)
3931  cat conftest.err >&5
3932  (eval echo "\"\$as_me:3932: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3933  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3934  cat conftest.err >&5
3935  (eval echo "\"\$as_me:3935: output\"" >&5)
3936  cat conftest.out >&5
3937  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3938    lt_cv_nm_interface="MS dumpbin"
3939  fi
3940  rm -f conftest*
3941fi
3942echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3943echo "${ECHO_T}$lt_cv_nm_interface" >&6
3944
3945echo "$as_me:$LINENO: checking whether ln -s works" >&5
3946echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3947LN_S=$as_ln_s
3948if test "$LN_S" = "ln -s"; then
3949  echo "$as_me:$LINENO: result: yes" >&5
3950echo "${ECHO_T}yes" >&6
3951else
3952  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3953echo "${ECHO_T}no, using $LN_S" >&6
3954fi
3955
3956# find the maximum length of command line arguments
3957echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3958echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3959if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3960  echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962    i=0
3963  teststring="ABCD"
3964
3965  case $build_os in
3966  msdosdjgpp*)
3967    # On DJGPP, this test can blow up pretty badly due to problems in libc
3968    # (any single argument exceeding 2000 bytes causes a buffer overrun
3969    # during glob expansion).  Even if it were fixed, the result of this
3970    # check would be larger than it should be.
3971    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3972    ;;
3973
3974  gnu*)
3975    # Under GNU Hurd, this test is not required because there is
3976    # no limit to the length of command line arguments.
3977    # Libtool will interpret -1 as no limit whatsoever
3978    lt_cv_sys_max_cmd_len=-1;
3979    ;;
3980
3981  cygwin* | mingw*)
3982    # On Win9x/ME, this test blows up -- it succeeds, but takes
3983    # about 5 minutes as the teststring grows exponentially.
3984    # Worse, since 9x/ME are not pre-emptively multitasking,
3985    # you end up with a "frozen" computer, even though with patience
3986    # the test eventually succeeds (with a max line length of 256k).
3987    # Instead, let's just punt: use the minimum linelength reported by
3988    # all of the supported platforms: 8192 (on NT/2K/XP).
3989    lt_cv_sys_max_cmd_len=8192;
3990    ;;
3991
3992  amigaos*)
3993    # On AmigaOS with pdksh, this test takes hours, literally.
3994    # So we just punt and use a minimum line length of 8192.
3995    lt_cv_sys_max_cmd_len=8192;
3996    ;;
3997
3998  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3999    # This has been around since 386BSD, at least.  Likely further.
4000    if test -x /sbin/sysctl; then
4001      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4002    elif test -x /usr/sbin/sysctl; then
4003      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4004    else
4005      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4006    fi
4007    # And add a safety zone
4008    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4010    ;;
4011
4012  interix*)
4013    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014    lt_cv_sys_max_cmd_len=196608
4015    ;;
4016
4017  osf*)
4018    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4019    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4020    # nice to cause kernel panics so lets avoid the loop below.
4021    # First set a reasonable default.
4022    lt_cv_sys_max_cmd_len=16384
4023    #
4024    if test -x /sbin/sysconfig; then
4025      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4026        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4027      esac
4028    fi
4029    ;;
4030  sco3.2v5*)
4031    lt_cv_sys_max_cmd_len=102400
4032    ;;
4033  sysv5* | sco5v6* | sysv4.2uw2*)
4034    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4035    if test -n "$kargmax"; then
4036      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4037    else
4038      lt_cv_sys_max_cmd_len=32768
4039    fi
4040    ;;
4041  *)
4042    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4043    if test -n $lt_cv_sys_max_cmd_len; then
4044      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4045      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4046    else
4047      # Make teststring a little bigger before we do anything with it.
4048      # a 1K string should be a reasonable start.
4049      for i in 1 2 3 4 5 6 7 8 ; do
4050        teststring=$teststring$teststring
4051      done
4052      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4053      # If test is not a shell built-in, we'll probably end up computing a
4054      # maximum length that is only half of the actual maximum length, but
4055      # we can't tell.
4056      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4057	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4058	      test $i != 17 # 1/2 MB should be enough
4059      do
4060        i=`expr $i + 1`
4061        teststring=$teststring$teststring
4062      done
4063      # Only check the string length outside the loop.
4064      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4065      teststring=
4066      # Add a significant safety factor because C++ compilers can tack on
4067      # massive amounts of additional arguments before passing them to the
4068      # linker.  It appears as though 1/2 is a usable value.
4069      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4070    fi
4071    ;;
4072  esac
4073
4074fi
4075
4076if test -n $lt_cv_sys_max_cmd_len ; then
4077  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4078echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4079else
4080  echo "$as_me:$LINENO: result: none" >&5
4081echo "${ECHO_T}none" >&6
4082fi
4083max_cmd_len=$lt_cv_sys_max_cmd_len
4084
4085
4086
4087
4088
4089
4090
4091: ${CP="cp -f"}
4092: ${MV="mv -f"}
4093: ${RM="rm -f"}
4094
4095echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4096echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4097# Try some XSI features
4098xsi_shell=no
4099( _lt_dummy="a/b/c"
4100  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4101      = c,a/b,, ) >/dev/null 2>&1 \
4102  && xsi_shell=yes
4103echo "$as_me:$LINENO: result: $xsi_shell" >&5
4104echo "${ECHO_T}$xsi_shell" >&6
4105
4106
4107echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4108echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4109lt_shell_append=no
4110( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4111    >/dev/null 2>&1 \
4112  && lt_shell_append=yes
4113echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4114echo "${ECHO_T}$lt_shell_append" >&6
4115
4116
4117if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4118  lt_unset=unset
4119else
4120  lt_unset=false
4121fi
4122
4123
4124
4125
4126
4127# test EBCDIC or ASCII
4128case `echo X|tr X '\101'` in
4129 A) # ASCII based system
4130    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4131  lt_SP2NL='tr \040 \012'
4132  lt_NL2SP='tr \015\012 \040\040'
4133  ;;
4134 *) # EBCDIC based system
4135  lt_SP2NL='tr \100 \n'
4136  lt_NL2SP='tr \r\n \100\100'
4137  ;;
4138esac
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4149echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4150if test "${lt_cv_ld_reload_flag+set}" = set; then
4151  echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153  lt_cv_ld_reload_flag='-r'
4154fi
4155echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4156echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4157reload_flag=$lt_cv_ld_reload_flag
4158case $reload_flag in
4159"" | " "*) ;;
4160*) reload_flag=" $reload_flag" ;;
4161esac
4162reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163case $host_os in
4164  darwin*)
4165    if test "$GCC" = yes; then
4166      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4167    else
4168      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4169    fi
4170    ;;
4171esac
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4183echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4184if test "${lt_cv_deplibs_check_method+set}" = set; then
4185  echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187  lt_cv_file_magic_cmd='$MAGIC_CMD'
4188lt_cv_file_magic_test_file=
4189lt_cv_deplibs_check_method='unknown'
4190# Need to set the preceding variable on all platforms that support
4191# interlibrary dependencies.
4192# 'none' -- dependencies not supported.
4193# `unknown' -- same as none, but documents that we really don't know.
4194# 'pass_all' -- all dependencies passed with no checks.
4195# 'test_compile' -- check by making test program.
4196# 'file_magic [[regex]]' -- check by looking for files in library path
4197# which responds to the $file_magic_cmd with a given extended regex.
4198# If you have `file' or equivalent on your system and you're not sure
4199# whether `pass_all' will *always* work, you probably want this one.
4200
4201case $host_os in
4202aix4* | aix5*)
4203  lt_cv_deplibs_check_method=pass_all
4204  ;;
4205
4206beos*)
4207  lt_cv_deplibs_check_method=pass_all
4208  ;;
4209
4210bsdi[45]*)
4211  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4212  lt_cv_file_magic_cmd='/usr/bin/file -L'
4213  lt_cv_file_magic_test_file=/shlib/libc.so
4214  ;;
4215
4216cygwin*)
4217  # func_win32_libid is a shell function defined in ltmain.sh
4218  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4219  lt_cv_file_magic_cmd='func_win32_libid'
4220  ;;
4221
4222mingw* | pw32*)
4223  # Base MSYS/MinGW do not provide the 'file' command needed by
4224  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4225  # unless we find 'file', for example because we are cross-compiling.
4226  if ( file / ) >/dev/null 2>&1; then
4227    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4228    lt_cv_file_magic_cmd='func_win32_libid'
4229  else
4230    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4231    lt_cv_file_magic_cmd='$OBJDUMP -f'
4232  fi
4233  ;;
4234
4235darwin* | rhapsody*)
4236  lt_cv_deplibs_check_method=pass_all
4237  ;;
4238
4239freebsd* | dragonfly*)
4240  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4241    case $host_cpu in
4242    i*86 )
4243      # Not sure whether the presence of OpenBSD here was a mistake.
4244      # Let's accept both of them until this is cleared up.
4245      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4246      lt_cv_file_magic_cmd=/usr/bin/file
4247      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4248      ;;
4249    esac
4250  else
4251    lt_cv_deplibs_check_method=pass_all
4252  fi
4253  ;;
4254
4255gnu*)
4256  lt_cv_deplibs_check_method=pass_all
4257  ;;
4258
4259hpux10.20* | hpux11*)
4260  lt_cv_file_magic_cmd=/usr/bin/file
4261  case $host_cpu in
4262  ia64*)
4263    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4264    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4265    ;;
4266  hppa*64*)
4267    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]'
4268    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4269    ;;
4270  *)
4271    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4272    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4273    ;;
4274  esac
4275  ;;
4276
4277interix[3-9]*)
4278  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4279  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4280  ;;
4281
4282irix5* | irix6* | nonstopux*)
4283  case $LD in
4284  *-32|*"-32 ") libmagic=32-bit;;
4285  *-n32|*"-n32 ") libmagic=N32;;
4286  *-64|*"-64 ") libmagic=64-bit;;
4287  *) libmagic=never-match;;
4288  esac
4289  lt_cv_deplibs_check_method=pass_all
4290  ;;
4291
4292# This must be Linux ELF.
4293linux* | k*bsd*-gnu)
4294  lt_cv_deplibs_check_method=pass_all
4295  ;;
4296
4297netbsd*)
4298  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4300  else
4301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4302  fi
4303  ;;
4304
4305newos6*)
4306  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4307  lt_cv_file_magic_cmd=/usr/bin/file
4308  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4309  ;;
4310
4311*nto* | *qnx*)
4312  lt_cv_deplibs_check_method=pass_all
4313  ;;
4314
4315openbsd*)
4316  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4318  else
4319    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4320  fi
4321  ;;
4322
4323osf3* | osf4* | osf5*)
4324  lt_cv_deplibs_check_method=pass_all
4325  ;;
4326
4327rdos*)
4328  lt_cv_deplibs_check_method=pass_all
4329  ;;
4330
4331solaris*)
4332  lt_cv_deplibs_check_method=pass_all
4333  ;;
4334
4335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4336  lt_cv_deplibs_check_method=pass_all
4337  ;;
4338
4339sysv4 | sysv4.3*)
4340  case $host_vendor in
4341  motorola)
4342    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]'
4343    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4344    ;;
4345  ncr)
4346    lt_cv_deplibs_check_method=pass_all
4347    ;;
4348  sequent)
4349    lt_cv_file_magic_cmd='/bin/file'
4350    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4351    ;;
4352  sni)
4353    lt_cv_file_magic_cmd='/bin/file'
4354    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4355    lt_cv_file_magic_test_file=/lib/libc.so
4356    ;;
4357  siemens)
4358    lt_cv_deplibs_check_method=pass_all
4359    ;;
4360  pc)
4361    lt_cv_deplibs_check_method=pass_all
4362    ;;
4363  esac
4364  ;;
4365
4366tpf*)
4367  lt_cv_deplibs_check_method=pass_all
4368  ;;
4369esac
4370
4371fi
4372echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4373echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4374file_magic_cmd=$lt_cv_file_magic_cmd
4375deplibs_check_method=$lt_cv_deplibs_check_method
4376test -z "$deplibs_check_method" && deplibs_check_method=unknown
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389if test -n "$ac_tool_prefix"; then
4390  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4391set dummy ${ac_tool_prefix}ar; ac_word=$2
4392echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394if test "${ac_cv_prog_AR+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  if test -n "$AR"; then
4398  ac_cv_prog_AR="$AR" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405  for ac_exec_ext in '' $ac_executable_extensions; do
4406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407    ac_cv_prog_AR="${ac_tool_prefix}ar"
4408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409    break 2
4410  fi
4411done
4412done
4413
4414fi
4415fi
4416AR=$ac_cv_prog_AR
4417if test -n "$AR"; then
4418  echo "$as_me:$LINENO: result: $AR" >&5
4419echo "${ECHO_T}$AR" >&6
4420else
4421  echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423fi
4424
4425fi
4426if test -z "$ac_cv_prog_AR"; then
4427  ac_ct_AR=$AR
4428  # Extract the first word of "ar", so it can be a program name with args.
4429set dummy ar; ac_word=$2
4430echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4433  echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435  if test -n "$ac_ct_AR"; then
4436  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441  IFS=$as_save_IFS
4442  test -z "$as_dir" && as_dir=.
4443  for ac_exec_ext in '' $ac_executable_extensions; do
4444  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445    ac_cv_prog_ac_ct_AR="ar"
4446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447    break 2
4448  fi
4449done
4450done
4451
4452  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4453fi
4454fi
4455ac_ct_AR=$ac_cv_prog_ac_ct_AR
4456if test -n "$ac_ct_AR"; then
4457  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4458echo "${ECHO_T}$ac_ct_AR" >&6
4459else
4460  echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
4462fi
4463
4464  AR=$ac_ct_AR
4465else
4466  AR="$ac_cv_prog_AR"
4467fi
4468
4469test -z "$AR" && AR=ar
4470test -z "$AR_FLAGS" && AR_FLAGS=cru
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482if test -n "$ac_tool_prefix"; then
4483  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4484set dummy ${ac_tool_prefix}strip; ac_word=$2
4485echo "$as_me:$LINENO: checking for $ac_word" >&5
4486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487if test "${ac_cv_prog_STRIP+set}" = set; then
4488  echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490  if test -n "$STRIP"; then
4491  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496  IFS=$as_save_IFS
4497  test -z "$as_dir" && as_dir=.
4498  for ac_exec_ext in '' $ac_executable_extensions; do
4499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502    break 2
4503  fi
4504done
4505done
4506
4507fi
4508fi
4509STRIP=$ac_cv_prog_STRIP
4510if test -n "$STRIP"; then
4511  echo "$as_me:$LINENO: result: $STRIP" >&5
4512echo "${ECHO_T}$STRIP" >&6
4513else
4514  echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
4516fi
4517
4518fi
4519if test -z "$ac_cv_prog_STRIP"; then
4520  ac_ct_STRIP=$STRIP
4521  # Extract the first word of "strip", so it can be a program name with args.
4522set dummy strip; ac_word=$2
4523echo "$as_me:$LINENO: checking for $ac_word" >&5
4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4525if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4526  echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528  if test -n "$ac_ct_STRIP"; then
4529  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536  for ac_exec_ext in '' $ac_executable_extensions; do
4537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538    ac_cv_prog_ac_ct_STRIP="strip"
4539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540    break 2
4541  fi
4542done
4543done
4544
4545  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4546fi
4547fi
4548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4549if test -n "$ac_ct_STRIP"; then
4550  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4551echo "${ECHO_T}$ac_ct_STRIP" >&6
4552else
4553  echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
4555fi
4556
4557  STRIP=$ac_ct_STRIP
4558else
4559  STRIP="$ac_cv_prog_STRIP"
4560fi
4561
4562test -z "$STRIP" && STRIP=:
4563
4564
4565
4566
4567
4568
4569if test -n "$ac_tool_prefix"; then
4570  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4571set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4572echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574if test "${ac_cv_prog_RANLIB+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  if test -n "$RANLIB"; then
4578  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585  for ac_exec_ext in '' $ac_executable_extensions; do
4586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592done
4593
4594fi
4595fi
4596RANLIB=$ac_cv_prog_RANLIB
4597if test -n "$RANLIB"; then
4598  echo "$as_me:$LINENO: result: $RANLIB" >&5
4599echo "${ECHO_T}$RANLIB" >&6
4600else
4601  echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603fi
4604
4605fi
4606if test -z "$ac_cv_prog_RANLIB"; then
4607  ac_ct_RANLIB=$RANLIB
4608  # Extract the first word of "ranlib", so it can be a program name with args.
4609set dummy ranlib; ac_word=$2
4610echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  if test -n "$ac_ct_RANLIB"; then
4616  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623  for ac_exec_ext in '' $ac_executable_extensions; do
4624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625    ac_cv_prog_ac_ct_RANLIB="ranlib"
4626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627    break 2
4628  fi
4629done
4630done
4631
4632  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4633fi
4634fi
4635ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4636if test -n "$ac_ct_RANLIB"; then
4637  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4638echo "${ECHO_T}$ac_ct_RANLIB" >&6
4639else
4640  echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
4642fi
4643
4644  RANLIB=$ac_ct_RANLIB
4645else
4646  RANLIB="$ac_cv_prog_RANLIB"
4647fi
4648
4649test -z "$RANLIB" && RANLIB=:
4650
4651
4652
4653
4654
4655
4656# Determine commands to create old-style static archives.
4657old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4658old_postinstall_cmds='chmod 644 $oldlib'
4659old_postuninstall_cmds=
4660
4661if test -n "$RANLIB"; then
4662  case $host_os in
4663  openbsd*)
4664    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4665    ;;
4666  *)
4667    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4668    ;;
4669  esac
4670  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4671fi
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706# If no C compiler was specified, use CC.
4707LTCC=${LTCC-"$CC"}
4708
4709# If no C compiler flags were specified, use CFLAGS.
4710LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4711
4712# Allow CC to be a program name with arguments.
4713compiler=$CC
4714
4715
4716# Check for command to grab the raw symbol name followed by C symbol from nm.
4717echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4718echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4719if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722
4723# These are sane defaults that work on at least a few old systems.
4724# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4725
4726# Character class describing NM global symbol codes.
4727symcode='[BCDEGRST]'
4728
4729# Regexp to match symbols that can be accessed directly from C.
4730sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4731
4732# Define system-specific variables.
4733case $host_os in
4734aix*)
4735  symcode='[BCDT]'
4736  ;;
4737cygwin* | mingw* | pw32*)
4738  symcode='[ABCDGISTW]'
4739  ;;
4740hpux*)
4741  if test "$host_cpu" = ia64; then
4742    symcode='[ABCDEGRST]'
4743  fi
4744  ;;
4745irix* | nonstopux*)
4746  symcode='[BCDEGRST]'
4747  ;;
4748osf*)
4749  symcode='[BCDEGQRST]'
4750  ;;
4751solaris*)
4752  symcode='[BDRT]'
4753  ;;
4754sco3.2v5*)
4755  symcode='[DT]'
4756  ;;
4757sysv4.2uw2*)
4758  symcode='[DT]'
4759  ;;
4760sysv5* | sco5v6* | unixware* | OpenUNIX*)
4761  symcode='[ABDT]'
4762  ;;
4763sysv4)
4764  symcode='[DFNSTU]'
4765  ;;
4766esac
4767
4768# If we're using GNU nm, then use its standard symbol codes.
4769case `$NM -V 2>&1` in
4770*GNU* | *'with BFD'*)
4771  symcode='[ABCDGIRSTW]' ;;
4772esac
4773
4774# Transform an extracted symbol line into a proper C declaration.
4775# Some systems (esp. on ia64) link data and code symbols differently,
4776# so use this general approach.
4777lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4778
4779# Transform an extracted symbol line into symbol name and symbol address
4780lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4781
4782# Handle CRLF in mingw tool chain
4783opt_cr=
4784case $build_os in
4785mingw*)
4786  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4787  ;;
4788esac
4789
4790# Try without a prefix underscore, then with it.
4791for ac_symprfx in "" "_"; do
4792
4793  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4794  symxfrm="\\1 $ac_symprfx\\2 \\2"
4795
4796  # Write the raw and C identifiers.
4797  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4798    # Fake it for dumpbin and say T for any non-static function
4799    # and D for any global variable.
4800    # Also find C++ and __fastcall symbols from MSVC++,
4801    # which start with @ or ?.
4802    lt_cv_sys_global_symbol_pipe="$AWK '"\
4803"     {last_section=section; section=\$ 3};"\
4804"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4805"     \$ 0!~/External *\|/{next};"\
4806"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4807"     {if(hide[section]) next};"\
4808"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4809"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4810"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4811"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4812"     ' prfx=^$ac_symprfx"
4813  else
4814    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4815  fi
4816
4817  # Check to see that the pipe works correctly.
4818  pipe_works=no
4819
4820  rm -f conftest*
4821  cat > conftest.$ac_ext <<_LT_EOF
4822#ifdef __cplusplus
4823extern "C" {
4824#endif
4825char nm_test_var;
4826void nm_test_func(void);
4827void nm_test_func(void){}
4828#ifdef __cplusplus
4829}
4830#endif
4831int main(){nm_test_var='a';nm_test_func();return(0);}
4832_LT_EOF
4833
4834  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835  (eval $ac_compile) 2>&5
4836  ac_status=$?
4837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838  (exit $ac_status); }; then
4839    # Now try to grab the symbols.
4840    nlist=conftest.nm
4841    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4842  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4843  ac_status=$?
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); } && test -s "$nlist"; then
4846      # Try sorting and uniquifying the output.
4847      if sort "$nlist" | uniq > "$nlist"T; then
4848	mv -f "$nlist"T "$nlist"
4849      else
4850	rm -f "$nlist"T
4851      fi
4852
4853      # Make sure that we snagged all the symbols we need.
4854      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4855	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4856	  cat <<_LT_EOF > conftest.$ac_ext
4857#ifdef __cplusplus
4858extern "C" {
4859#endif
4860
4861_LT_EOF
4862	  # Now generate the symbol file.
4863	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4864
4865	  cat <<_LT_EOF >> conftest.$ac_ext
4866
4867/* The mapping between symbol names and symbols.  */
4868const struct {
4869  const char *name;
4870  void       *address;
4871}
4872lt__PROGRAM__LTX_preloaded_symbols[] =
4873{
4874  { "@PROGRAM@", (void *) 0 },
4875_LT_EOF
4876	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4877	  cat <<\_LT_EOF >> conftest.$ac_ext
4878  {0, (void *) 0}
4879};
4880
4881/* This works around a problem in FreeBSD linker */
4882#ifdef FREEBSD_WORKAROUND
4883static const void *lt_preloaded_setup() {
4884  return lt__PROGRAM__LTX_preloaded_symbols;
4885}
4886#endif
4887
4888#ifdef __cplusplus
4889}
4890#endif
4891_LT_EOF
4892	  # Now try linking the two files.
4893	  mv conftest.$ac_objext conftstm.$ac_objext
4894	  lt_save_LIBS="$LIBS"
4895	  lt_save_CFLAGS="$CFLAGS"
4896	  LIBS="conftstm.$ac_objext"
4897	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4898	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899  (eval $ac_link) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4903	    pipe_works=yes
4904	  fi
4905	  LIBS="$lt_save_LIBS"
4906	  CFLAGS="$lt_save_CFLAGS"
4907	else
4908	  echo "cannot find nm_test_func in $nlist" >&5
4909	fi
4910      else
4911	echo "cannot find nm_test_var in $nlist" >&5
4912      fi
4913    else
4914      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4915    fi
4916  else
4917    echo "$progname: failed program was:" >&5
4918    cat conftest.$ac_ext >&5
4919  fi
4920  rm -f conftest* conftst*
4921
4922  # Do not use the global_symbol_pipe unless it works.
4923  if test "$pipe_works" = yes; then
4924    break
4925  else
4926    lt_cv_sys_global_symbol_pipe=
4927  fi
4928done
4929
4930fi
4931
4932if test -z "$lt_cv_sys_global_symbol_pipe"; then
4933  lt_cv_sys_global_symbol_to_cdecl=
4934fi
4935if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4936  echo "$as_me:$LINENO: result: failed" >&5
4937echo "${ECHO_T}failed" >&6
4938else
4939  echo "$as_me:$LINENO: result: ok" >&5
4940echo "${ECHO_T}ok" >&6
4941fi
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4960if test "${enable_libtool_lock+set}" = set; then
4961  enableval="$enable_libtool_lock"
4962
4963fi;
4964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4965
4966# Some flags need to be propagated to the compiler or linker for good
4967# libtool support.
4968case $host in
4969ia64-*-hpux*)
4970  # Find out which ABI we are using.
4971  echo 'int i;' > conftest.$ac_ext
4972  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973  (eval $ac_compile) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; then
4977    case `/usr/bin/file conftest.$ac_objext` in
4978      *ELF-32*)
4979	HPUX_IA64_MODE="32"
4980	;;
4981      *ELF-64*)
4982	HPUX_IA64_MODE="64"
4983	;;
4984    esac
4985  fi
4986  rm -rf conftest*
4987  ;;
4988*-*-irix6*)
4989  # Find out which ABI we are using.
4990  echo '#line 4990 "configure"' > conftest.$ac_ext
4991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992  (eval $ac_compile) 2>&5
4993  ac_status=$?
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); }; then
4996    if test "$lt_cv_prog_gnu_ld" = yes; then
4997      case `/usr/bin/file conftest.$ac_objext` in
4998	*32-bit*)
4999	  LD="${LD-ld} -melf32bsmip"
5000	  ;;
5001	*N32*)
5002	  LD="${LD-ld} -melf32bmipn32"
5003	  ;;
5004	*64-bit*)
5005	  LD="${LD-ld} -melf64bmip"
5006	;;
5007      esac
5008    else
5009      case `/usr/bin/file conftest.$ac_objext` in
5010	*32-bit*)
5011	  LD="${LD-ld} -32"
5012	  ;;
5013	*N32*)
5014	  LD="${LD-ld} -n32"
5015	  ;;
5016	*64-bit*)
5017	  LD="${LD-ld} -64"
5018	  ;;
5019      esac
5020    fi
5021  fi
5022  rm -rf conftest*
5023  ;;
5024
5025x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5026s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5027  # Find out which ABI we are using.
5028  echo 'int i;' > conftest.$ac_ext
5029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030  (eval $ac_compile) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; then
5034    case `/usr/bin/file conftest.o` in
5035      *32-bit*)
5036	case $host in
5037	  x86_64-*kfreebsd*-gnu)
5038	    LD="${LD-ld} -m elf_i386_fbsd"
5039	    ;;
5040	  x86_64-*linux*)
5041	    LD="${LD-ld} -m elf_i386"
5042	    ;;
5043	  ppc64-*linux*|powerpc64-*linux*)
5044	    LD="${LD-ld} -m elf32ppclinux"
5045	    ;;
5046	  s390x-*linux*)
5047	    LD="${LD-ld} -m elf_s390"
5048	    ;;
5049	  sparc64-*linux*)
5050	    LD="${LD-ld} -m elf32_sparc"
5051	    ;;
5052	esac
5053	;;
5054      *64-bit*)
5055	case $host in
5056	  x86_64-*kfreebsd*-gnu)
5057	    LD="${LD-ld} -m elf_x86_64_fbsd"
5058	    ;;
5059	  x86_64-*linux*)
5060	    LD="${LD-ld} -m elf_x86_64"
5061	    ;;
5062	  ppc*-*linux*|powerpc*-*linux*)
5063	    LD="${LD-ld} -m elf64ppc"
5064	    ;;
5065	  s390*-*linux*|s390*-*tpf*)
5066	    LD="${LD-ld} -m elf64_s390"
5067	    ;;
5068	  sparc*-*linux*)
5069	    LD="${LD-ld} -m elf64_sparc"
5070	    ;;
5071	esac
5072	;;
5073    esac
5074  fi
5075  rm -rf conftest*
5076  ;;
5077
5078*-*-sco3.2v5*)
5079  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5080  SAVE_CFLAGS="$CFLAGS"
5081  CFLAGS="$CFLAGS -belf"
5082  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5083echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5084if test "${lt_cv_cc_needs_belf+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  ac_ext=c
5088ac_cpp='$CPP $CPPFLAGS'
5089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093     cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h.  */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h.  */
5099
5100int
5101main ()
5102{
5103
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext conftest$ac_exeext
5109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110  (eval $ac_link) 2>conftest.er1
5111  ac_status=$?
5112  grep -v '^ *+' conftest.er1 >conftest.err
5113  rm -f conftest.er1
5114  cat conftest.err >&5
5115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116  (exit $ac_status); } &&
5117	 { ac_try='test -z "$ac_c_werror_flag"
5118			 || test ! -s conftest.err'
5119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120  (eval $ac_try) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; } &&
5124	 { ac_try='test -s conftest$ac_exeext'
5125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126  (eval $ac_try) 2>&5
5127  ac_status=$?
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); }; }; then
5130  lt_cv_cc_needs_belf=yes
5131else
5132  echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135lt_cv_cc_needs_belf=no
5136fi
5137rm -f conftest.err conftest.$ac_objext \
5138      conftest$ac_exeext conftest.$ac_ext
5139     ac_ext=c
5140ac_cpp='$CPP $CPPFLAGS'
5141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145fi
5146echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5147echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5148  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5149    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5150    CFLAGS="$SAVE_CFLAGS"
5151  fi
5152  ;;
5153sparc*-*solaris*)
5154  # Find out which ABI we are using.
5155  echo 'int i;' > conftest.$ac_ext
5156  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157  (eval $ac_compile) 2>&5
5158  ac_status=$?
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); }; then
5161    case `/usr/bin/file conftest.o` in
5162    *64-bit*)
5163      case $lt_cv_prog_gnu_ld in
5164      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5165      *)    LD="${LD-ld} -64" ;;
5166      esac
5167      ;;
5168    esac
5169  fi
5170  rm -rf conftest*
5171  ;;
5172esac
5173
5174need_locks="$enable_libtool_lock"
5175
5176ac_ext=c
5177ac_cpp='$CPP $CPPFLAGS'
5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5182echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5183# On Suns, sometimes $CPP names a directory.
5184if test -n "$CPP" && test -d "$CPP"; then
5185  CPP=
5186fi
5187if test -z "$CPP"; then
5188  if test "${ac_cv_prog_CPP+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191      # Double quotes because CPP needs to be expanded
5192    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5193    do
5194      ac_preproc_ok=false
5195for ac_c_preproc_warn_flag in '' yes
5196do
5197  # Use a header file that comes with gcc, so configuring glibc
5198  # with a fresh cross-compiler works.
5199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200  # <limits.h> exists even on freestanding compilers.
5201  # On the NeXT, cc -E runs the code through the compiler's parser,
5202  # not just through cpp. "Syntax error" is here to catch this case.
5203  cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h.  */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h.  */
5209#ifdef __STDC__
5210# include <limits.h>
5211#else
5212# include <assert.h>
5213#endif
5214		     Syntax error
5215_ACEOF
5216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } >/dev/null; then
5224  if test -s conftest.err; then
5225    ac_cpp_err=$ac_c_preproc_warn_flag
5226    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227  else
5228    ac_cpp_err=
5229  fi
5230else
5231  ac_cpp_err=yes
5232fi
5233if test -z "$ac_cpp_err"; then
5234  :
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239  # Broken: fails on valid input.
5240continue
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243
5244  # OK, works on sane cases.  Now check whether non-existent headers
5245  # can be detected and how.
5246  cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h.  */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h.  */
5252#include <ac_nonexistent.h>
5253_ACEOF
5254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } >/dev/null; then
5262  if test -s conftest.err; then
5263    ac_cpp_err=$ac_c_preproc_warn_flag
5264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265  else
5266    ac_cpp_err=
5267  fi
5268else
5269  ac_cpp_err=yes
5270fi
5271if test -z "$ac_cpp_err"; then
5272  # Broken: success on invalid input.
5273continue
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278  # Passes both tests.
5279ac_preproc_ok=:
5280break
5281fi
5282rm -f conftest.err conftest.$ac_ext
5283
5284done
5285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286rm -f conftest.err conftest.$ac_ext
5287if $ac_preproc_ok; then
5288  break
5289fi
5290
5291    done
5292    ac_cv_prog_CPP=$CPP
5293
5294fi
5295  CPP=$ac_cv_prog_CPP
5296else
5297  ac_cv_prog_CPP=$CPP
5298fi
5299echo "$as_me:$LINENO: result: $CPP" >&5
5300echo "${ECHO_T}$CPP" >&6
5301ac_preproc_ok=false
5302for ac_c_preproc_warn_flag in '' yes
5303do
5304  # Use a header file that comes with gcc, so configuring glibc
5305  # with a fresh cross-compiler works.
5306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5307  # <limits.h> exists even on freestanding compilers.
5308  # On the NeXT, cc -E runs the code through the compiler's parser,
5309  # not just through cpp. "Syntax error" is here to catch this case.
5310  cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316#ifdef __STDC__
5317# include <limits.h>
5318#else
5319# include <assert.h>
5320#endif
5321		     Syntax error
5322_ACEOF
5323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325  ac_status=$?
5326  grep -v '^ *+' conftest.er1 >conftest.err
5327  rm -f conftest.er1
5328  cat conftest.err >&5
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); } >/dev/null; then
5331  if test -s conftest.err; then
5332    ac_cpp_err=$ac_c_preproc_warn_flag
5333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334  else
5335    ac_cpp_err=
5336  fi
5337else
5338  ac_cpp_err=yes
5339fi
5340if test -z "$ac_cpp_err"; then
5341  :
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346  # Broken: fails on valid input.
5347continue
5348fi
5349rm -f conftest.err conftest.$ac_ext
5350
5351  # OK, works on sane cases.  Now check whether non-existent headers
5352  # can be detected and how.
5353  cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h.  */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h.  */
5359#include <ac_nonexistent.h>
5360_ACEOF
5361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } >/dev/null; then
5369  if test -s conftest.err; then
5370    ac_cpp_err=$ac_c_preproc_warn_flag
5371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372  else
5373    ac_cpp_err=
5374  fi
5375else
5376  ac_cpp_err=yes
5377fi
5378if test -z "$ac_cpp_err"; then
5379  # Broken: success on invalid input.
5380continue
5381else
5382  echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385  # Passes both tests.
5386ac_preproc_ok=:
5387break
5388fi
5389rm -f conftest.err conftest.$ac_ext
5390
5391done
5392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5393rm -f conftest.err conftest.$ac_ext
5394if $ac_preproc_ok; then
5395  :
5396else
5397  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5398See \`config.log' for more details." >&5
5399echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5400See \`config.log' for more details." >&2;}
5401   { (exit 1); exit 1; }; }
5402fi
5403
5404ac_ext=c
5405ac_cpp='$CPP $CPPFLAGS'
5406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409
5410
5411echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5412echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5413if test "${ac_cv_header_stdc+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422#include <stdlib.h>
5423#include <stdarg.h>
5424#include <string.h>
5425#include <float.h>
5426
5427int
5428main ()
5429{
5430
5431  ;
5432  return 0;
5433}
5434_ACEOF
5435rm -f conftest.$ac_objext
5436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437  (eval $ac_compile) 2>conftest.er1
5438  ac_status=$?
5439  grep -v '^ *+' conftest.er1 >conftest.err
5440  rm -f conftest.er1
5441  cat conftest.err >&5
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); } &&
5444	 { ac_try='test -z "$ac_c_werror_flag"
5445			 || test ! -s conftest.err'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; } &&
5451	 { ac_try='test -s conftest.$ac_objext'
5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453  (eval $ac_try) 2>&5
5454  ac_status=$?
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }; }; then
5457  ac_cv_header_stdc=yes
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462ac_cv_header_stdc=no
5463fi
5464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466if test $ac_cv_header_stdc = yes; then
5467  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468  cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474#include <string.h>
5475
5476_ACEOF
5477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478  $EGREP "memchr" >/dev/null 2>&1; then
5479  :
5480else
5481  ac_cv_header_stdc=no
5482fi
5483rm -f conftest*
5484
5485fi
5486
5487if test $ac_cv_header_stdc = yes; then
5488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489  cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495#include <stdlib.h>
5496
5497_ACEOF
5498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499  $EGREP "free" >/dev/null 2>&1; then
5500  :
5501else
5502  ac_cv_header_stdc=no
5503fi
5504rm -f conftest*
5505
5506fi
5507
5508if test $ac_cv_header_stdc = yes; then
5509  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5510  if test "$cross_compiling" = yes; then
5511  :
5512else
5513  cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h.  */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h.  */
5519#include <ctype.h>
5520#if ((' ' & 0x0FF) == 0x020)
5521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523#else
5524# define ISLOWER(c) \
5525		   (('a' <= (c) && (c) <= 'i') \
5526		     || ('j' <= (c) && (c) <= 'r') \
5527		     || ('s' <= (c) && (c) <= 'z'))
5528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529#endif
5530
5531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5532int
5533main ()
5534{
5535  int i;
5536  for (i = 0; i < 256; i++)
5537    if (XOR (islower (i), ISLOWER (i))
5538	|| toupper (i) != TOUPPER (i))
5539      exit(2);
5540  exit (0);
5541}
5542_ACEOF
5543rm -f conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545  (eval $ac_link) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550  (eval $ac_try) 2>&5
5551  ac_status=$?
5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); }; }; then
5554  :
5555else
5556  echo "$as_me: program exited with status $ac_status" >&5
5557echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560( exit $ac_status )
5561ac_cv_header_stdc=no
5562fi
5563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5564fi
5565fi
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5568echo "${ECHO_T}$ac_cv_header_stdc" >&6
5569if test $ac_cv_header_stdc = yes; then
5570
5571cat >>confdefs.h <<\_ACEOF
5572#define STDC_HEADERS 1
5573_ACEOF
5574
5575fi
5576
5577# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5588		  inttypes.h stdint.h unistd.h
5589do
5590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591echo "$as_me:$LINENO: checking for $ac_header" >&5
5592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5593if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594  echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596  cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602$ac_includes_default
5603
5604#include <$ac_header>
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608  (eval $ac_compile) 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } &&
5615	 { ac_try='test -z "$ac_c_werror_flag"
5616			 || test ! -s conftest.err'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; } &&
5622	 { ac_try='test -s conftest.$ac_objext'
5623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624  (eval $ac_try) 2>&5
5625  ac_status=$?
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); }; }; then
5628  eval "$as_ac_Header=yes"
5629else
5630  echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633eval "$as_ac_Header=no"
5634fi
5635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640  cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
5647
5648
5649
5650for ac_header in dlfcn.h
5651do
5652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5653echo "$as_me:$LINENO: checking for $ac_header" >&5
5654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5655if eval "test \"\${$as_ac_Header+set}\" = set"; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658  cat >conftest.$ac_ext <<_ACEOF
5659/* confdefs.h.  */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h.  */
5664$ac_includes_default
5665
5666#include <$ac_header>
5667_ACEOF
5668rm -f conftest.$ac_objext
5669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670  (eval $ac_compile) 2>conftest.er1
5671  ac_status=$?
5672  grep -v '^ *+' conftest.er1 >conftest.err
5673  rm -f conftest.er1
5674  cat conftest.err >&5
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } &&
5677	 { ac_try='test -z "$ac_c_werror_flag"
5678			 || test ! -s conftest.err'
5679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680  (eval $ac_try) 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; } &&
5684	 { ac_try='test -s conftest.$ac_objext'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; }; then
5690  eval "$as_ac_Header=yes"
5691else
5692  echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695eval "$as_ac_Header=no"
5696fi
5697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698fi
5699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701if test `eval echo '${'$as_ac_Header'}'` = yes; then
5702  cat >>confdefs.h <<_ACEOF
5703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5704_ACEOF
5705
5706fi
5707
5708done
5709
5710
5711
5712# This can be used to rebuild libtool when needed
5713LIBTOOL_DEPS="$ltmain"
5714
5715# Always use our own libtool.
5716LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742test -z "$LN_S" && LN_S="ln -s"
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757if test -n "${ZSH_VERSION+set}" ; then
5758   setopt NO_GLOB_SUBST
5759fi
5760
5761echo "$as_me:$LINENO: checking for objdir" >&5
5762echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5763if test "${lt_cv_objdir+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  rm -f .libs 2>/dev/null
5767mkdir .libs 2>/dev/null
5768if test -d .libs; then
5769  lt_cv_objdir=.libs
5770else
5771  # MS-DOS does not allow filenames that begin with a dot.
5772  lt_cv_objdir=_libs
5773fi
5774rmdir .libs 2>/dev/null
5775fi
5776echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5777echo "${ECHO_T}$lt_cv_objdir" >&6
5778objdir=$lt_cv_objdir
5779
5780
5781
5782
5783
5784cat >>confdefs.h <<_ACEOF
5785#define LT_OBJDIR "$lt_cv_objdir/"
5786_ACEOF
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804case $host_os in
5805aix3*)
5806  # AIX sometimes has problems with the GCC collect2 program.  For some
5807  # reason, if we set the COLLECT_NAMES environment variable, the problems
5808  # vanish in a puff of smoke.
5809  if test "X${COLLECT_NAMES+set}" != Xset; then
5810    COLLECT_NAMES=
5811    export COLLECT_NAMES
5812  fi
5813  ;;
5814esac
5815
5816# Sed substitution that helps us do robust quoting.  It backslashifies
5817# metacharacters that are still active within double-quoted strings.
5818sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5819
5820# Same as above, but do not quote variable references.
5821double_quote_subst='s/\(["`\\]\)/\\\1/g'
5822
5823# Sed substitution to delay expansion of an escaped shell variable in a
5824# double_quote_subst'ed string.
5825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5826
5827# Sed substitution to delay expansion of an escaped single quote.
5828delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5829
5830# Sed substitution to avoid accidental globbing in evaled expressions
5831no_glob_subst='s/\*/\\\*/g'
5832
5833# Global variables:
5834ofile=libtool
5835can_build_shared=yes
5836
5837# All known linkers require a `.a' archive for static linking (except MSVC,
5838# which needs '.lib').
5839libext=a
5840
5841with_gnu_ld="$lt_cv_prog_gnu_ld"
5842
5843old_CC="$CC"
5844old_CFLAGS="$CFLAGS"
5845
5846# Set sane defaults for various variables
5847test -z "$CC" && CC=cc
5848test -z "$LTCC" && LTCC=$CC
5849test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5850test -z "$LD" && LD=ld
5851test -z "$ac_objext" && ac_objext=o
5852
5853for cc_temp in $compiler""; do
5854  case $cc_temp in
5855    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5856    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5857    \-*) ;;
5858    *) break;;
5859  esac
5860done
5861cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5862
5863
5864# Only perform the check for file, if the check method requires it
5865test -z "$MAGIC_CMD" && MAGIC_CMD=file
5866case $deplibs_check_method in
5867file_magic*)
5868  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5869    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5870echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5871if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874  case $MAGIC_CMD in
5875[\\/*] |  ?:[\\/]*)
5876  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5877  ;;
5878*)
5879  lt_save_MAGIC_CMD="$MAGIC_CMD"
5880  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5881  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5882  for ac_dir in $ac_dummy; do
5883    IFS="$lt_save_ifs"
5884    test -z "$ac_dir" && ac_dir=.
5885    if test -f $ac_dir/${ac_tool_prefix}file; then
5886      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5887      if test -n "$file_magic_test_file"; then
5888	case $deplibs_check_method in
5889	"file_magic "*)
5890	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5891	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5892	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5893	    $EGREP "$file_magic_regex" > /dev/null; then
5894	    :
5895	  else
5896	    cat <<_LT_EOF 1>&2
5897
5898*** Warning: the command libtool uses to detect shared libraries,
5899*** $file_magic_cmd, produces output that libtool cannot recognize.
5900*** The result is that libtool may fail to recognize shared libraries
5901*** as such.  This will affect the creation of libtool libraries that
5902*** depend on shared libraries, but programs linked with such libtool
5903*** libraries will work regardless of this problem.  Nevertheless, you
5904*** may want to report the problem to your system manager and/or to
5905*** bug-libtool@gnu.org
5906
5907_LT_EOF
5908	  fi ;;
5909	esac
5910      fi
5911      break
5912    fi
5913  done
5914  IFS="$lt_save_ifs"
5915  MAGIC_CMD="$lt_save_MAGIC_CMD"
5916  ;;
5917esac
5918fi
5919
5920MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5921if test -n "$MAGIC_CMD"; then
5922  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5923echo "${ECHO_T}$MAGIC_CMD" >&6
5924else
5925  echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927fi
5928
5929
5930
5931
5932
5933if test -z "$lt_cv_path_MAGIC_CMD"; then
5934  if test -n "$ac_tool_prefix"; then
5935    echo "$as_me:$LINENO: checking for file" >&5
5936echo $ECHO_N "checking for file... $ECHO_C" >&6
5937if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5938  echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940  case $MAGIC_CMD in
5941[\\/*] |  ?:[\\/]*)
5942  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5943  ;;
5944*)
5945  lt_save_MAGIC_CMD="$MAGIC_CMD"
5946  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5947  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5948  for ac_dir in $ac_dummy; do
5949    IFS="$lt_save_ifs"
5950    test -z "$ac_dir" && ac_dir=.
5951    if test -f $ac_dir/file; then
5952      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5953      if test -n "$file_magic_test_file"; then
5954	case $deplibs_check_method in
5955	"file_magic "*)
5956	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5957	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5958	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5959	    $EGREP "$file_magic_regex" > /dev/null; then
5960	    :
5961	  else
5962	    cat <<_LT_EOF 1>&2
5963
5964*** Warning: the command libtool uses to detect shared libraries,
5965*** $file_magic_cmd, produces output that libtool cannot recognize.
5966*** The result is that libtool may fail to recognize shared libraries
5967*** as such.  This will affect the creation of libtool libraries that
5968*** depend on shared libraries, but programs linked with such libtool
5969*** libraries will work regardless of this problem.  Nevertheless, you
5970*** may want to report the problem to your system manager and/or to
5971*** bug-libtool@gnu.org
5972
5973_LT_EOF
5974	  fi ;;
5975	esac
5976      fi
5977      break
5978    fi
5979  done
5980  IFS="$lt_save_ifs"
5981  MAGIC_CMD="$lt_save_MAGIC_CMD"
5982  ;;
5983esac
5984fi
5985
5986MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5987if test -n "$MAGIC_CMD"; then
5988  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5989echo "${ECHO_T}$MAGIC_CMD" >&6
5990else
5991  echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
5993fi
5994
5995
5996  else
5997    MAGIC_CMD=:
5998  fi
5999fi
6000
6001  fi
6002  ;;
6003esac
6004
6005# Use C for the default configuration in the libtool script
6006
6007lt_save_CC="$CC"
6008ac_ext=c
6009ac_cpp='$CPP $CPPFLAGS'
6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014
6015# Source file extension for C test sources.
6016ac_ext=c
6017
6018# Object file extension for compiled C test sources.
6019objext=o
6020objext=$objext
6021
6022# Code to be used in simple compile tests
6023lt_simple_compile_test_code="int some_variable = 0;"
6024
6025# Code to be used in simple link tests
6026lt_simple_link_test_code='int main(){return(0);}'
6027
6028
6029
6030
6031
6032
6033
6034# If no C compiler was specified, use CC.
6035LTCC=${LTCC-"$CC"}
6036
6037# If no C compiler flags were specified, use CFLAGS.
6038LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6039
6040# Allow CC to be a program name with arguments.
6041compiler=$CC
6042
6043# Save the default compiler, since it gets overwritten when the other
6044# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6045compiler_DEFAULT=$CC
6046
6047# save warnings/boilerplate of simple test code
6048ac_outfile=conftest.$ac_objext
6049echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6051_lt_compiler_boilerplate=`cat conftest.err`
6052$RM conftest*
6053
6054ac_outfile=conftest.$ac_objext
6055echo "$lt_simple_link_test_code" >conftest.$ac_ext
6056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6057_lt_linker_boilerplate=`cat conftest.err`
6058$RM conftest*
6059
6060
6061## CAVEAT EMPTOR:
6062## There is no encapsulation within the following macros, do not change
6063## the running order or otherwise move them around unless you know exactly
6064## what you are doing...
6065if test -n "$compiler"; then
6066
6067lt_prog_compiler_no_builtin_flag=
6068
6069if test "$GCC" = yes; then
6070  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6071
6072  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6073echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6074if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077  lt_cv_prog_compiler_rtti_exceptions=no
6078   ac_outfile=conftest.$ac_objext
6079   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6080   lt_compiler_flag="-fno-rtti -fno-exceptions"
6081   # Insert the option either (1) after the last *FLAGS variable, or
6082   # (2) before a word containing "conftest.", or (3) at the end.
6083   # Note that $ac_compile itself does not contain backslashes and begins
6084   # with a dollar sign (not a hyphen), so the echo should work correctly.
6085   # The option is referenced via a variable to avoid confusing sed.
6086   lt_compile=`echo "$ac_compile" | $SED \
6087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6089   -e 's:$: $lt_compiler_flag:'`
6090   (eval echo "\"\$as_me:6090: $lt_compile\"" >&5)
6091   (eval "$lt_compile" 2>conftest.err)
6092   ac_status=$?
6093   cat conftest.err >&5
6094   echo "$as_me:6094: \$? = $ac_status" >&5
6095   if (exit $ac_status) && test -s "$ac_outfile"; then
6096     # The compiler can only warn and ignore the option if not recognized
6097     # So say no if there are warnings other than the usual output.
6098     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6099     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6100     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6101       lt_cv_prog_compiler_rtti_exceptions=yes
6102     fi
6103   fi
6104   $RM conftest*
6105
6106fi
6107echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6108echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6109
6110if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6111    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6112else
6113    :
6114fi
6115
6116fi
6117
6118
6119
6120
6121
6122
6123  lt_prog_compiler_wl=
6124lt_prog_compiler_pic=
6125lt_prog_compiler_static=
6126
6127echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6128echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6129
6130  if test "$GCC" = yes; then
6131    lt_prog_compiler_wl='-Wl,'
6132    lt_prog_compiler_static='-static'
6133
6134    case $host_os in
6135      aix*)
6136      # All AIX code is PIC.
6137      if test "$host_cpu" = ia64; then
6138	# AIX 5 now supports IA64 processor
6139	lt_prog_compiler_static='-Bstatic'
6140      fi
6141      ;;
6142
6143    amigaos*)
6144      if test "$host_cpu" = m68k; then
6145        # FIXME: we need at least 68020 code to build shared libraries, but
6146        # adding the `-m68020' flag to GCC prevents building anything better,
6147        # like `-m68040'.
6148        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6149      fi
6150      ;;
6151
6152    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6153      # PIC is the default for these OSes.
6154      ;;
6155
6156    mingw* | cygwin* | pw32* | os2*)
6157      # This hack is so that the source file can tell whether it is being
6158      # built for inclusion in a dll (and should export symbols for example).
6159      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6160      # (--disable-auto-import) libraries
6161      lt_prog_compiler_pic='-DDLL_EXPORT'
6162      ;;
6163
6164    darwin* | rhapsody*)
6165      # PIC is the default on this platform
6166      # Common symbols not allowed in MH_DYLIB files
6167      lt_prog_compiler_pic='-fno-common'
6168      ;;
6169
6170    hpux*)
6171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6172      # not for PA HP-UX.
6173      case $host_cpu in
6174      hppa*64*|ia64*)
6175	# +Z the default
6176	;;
6177      *)
6178	lt_prog_compiler_pic='-fPIC'
6179	;;
6180      esac
6181      ;;
6182
6183    interix[3-9]*)
6184      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6185      # Instead, we relocate shared libraries at runtime.
6186      ;;
6187
6188    msdosdjgpp*)
6189      # Just because we use GCC doesn't mean we suddenly get shared libraries
6190      # on systems that don't support them.
6191      lt_prog_compiler_can_build_shared=no
6192      enable_shared=no
6193      ;;
6194
6195    *nto* | *qnx*)
6196      # QNX uses GNU C++, but need to define -shared option too, otherwise
6197      # it will coredump.
6198      lt_prog_compiler_pic='-fPIC -shared'
6199      ;;
6200
6201    sysv4*MP*)
6202      if test -d /usr/nec; then
6203	lt_prog_compiler_pic=-Kconform_pic
6204      fi
6205      ;;
6206
6207    *)
6208      lt_prog_compiler_pic='-fPIC'
6209      ;;
6210    esac
6211  else
6212    # PORTME Check for flag to pass linker flags through the system compiler.
6213    case $host_os in
6214    aix*)
6215      lt_prog_compiler_wl='-Wl,'
6216      if test "$host_cpu" = ia64; then
6217	# AIX 5 now supports IA64 processor
6218	lt_prog_compiler_static='-Bstatic'
6219      else
6220	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6221      fi
6222      ;;
6223    darwin*)
6224      # PIC is the default on this platform
6225      # Common symbols not allowed in MH_DYLIB files
6226      case $cc_basename in
6227      xlc*)
6228        lt_prog_compiler_pic='-qnocommon'
6229        lt_prog_compiler_wl='-Wl,'
6230        ;;
6231      esac
6232      ;;
6233
6234    mingw* | cygwin* | pw32* | os2*)
6235      # This hack is so that the source file can tell whether it is being
6236      # built for inclusion in a dll (and should export symbols for example).
6237      lt_prog_compiler_pic='-DDLL_EXPORT'
6238      ;;
6239
6240    hpux9* | hpux10* | hpux11*)
6241      lt_prog_compiler_wl='-Wl,'
6242      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6243      # not for PA HP-UX.
6244      case $host_cpu in
6245      hppa*64*|ia64*)
6246	# +Z the default
6247	;;
6248      *)
6249	lt_prog_compiler_pic='+Z'
6250	;;
6251      esac
6252      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6253      lt_prog_compiler_static='${wl}-a ${wl}archive'
6254      ;;
6255
6256    irix5* | irix6* | nonstopux*)
6257      lt_prog_compiler_wl='-Wl,'
6258      # PIC (with -KPIC) is the default.
6259      lt_prog_compiler_static='-non_shared'
6260      ;;
6261
6262    linux* | k*bsd*-gnu)
6263      case $cc_basename in
6264      icc* | ecc*)
6265	lt_prog_compiler_wl='-Wl,'
6266	lt_prog_compiler_pic='-KPIC'
6267	lt_prog_compiler_static='-static'
6268        ;;
6269      pgcc* | pgf77* | pgf90* | pgf95*)
6270        # Portland Group compilers (*not* the Pentium gcc compiler,
6271	# which looks to be a dead project)
6272	lt_prog_compiler_wl='-Wl,'
6273	lt_prog_compiler_pic='-fpic'
6274	lt_prog_compiler_static='-Bstatic'
6275        ;;
6276      ccc*)
6277        lt_prog_compiler_wl='-Wl,'
6278        # All Alpha code is PIC.
6279        lt_prog_compiler_static='-non_shared'
6280        ;;
6281      *)
6282	case `$CC -V 2>&1 | sed 5q` in
6283	*Sun\ C*)
6284	  # Sun C 5.9
6285	  lt_prog_compiler_pic='-KPIC'
6286	  lt_prog_compiler_static='-Bstatic'
6287	  lt_prog_compiler_wl='-Wl,'
6288	  ;;
6289	*Sun\ F*)
6290	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6291	  lt_prog_compiler_pic='-KPIC'
6292	  lt_prog_compiler_static='-Bstatic'
6293	  lt_prog_compiler_wl=''
6294	  ;;
6295	esac
6296	;;
6297      esac
6298      ;;
6299
6300    newsos6)
6301      lt_prog_compiler_pic='-KPIC'
6302      lt_prog_compiler_static='-Bstatic'
6303      ;;
6304
6305    *nto* | *qnx*)
6306      # QNX uses GNU C++, but need to define -shared option too, otherwise
6307      # it will coredump.
6308      lt_prog_compiler_pic='-fPIC -shared'
6309      ;;
6310
6311    osf3* | osf4* | osf5*)
6312      lt_prog_compiler_wl='-Wl,'
6313      # All OSF/1 code is PIC.
6314      lt_prog_compiler_static='-non_shared'
6315      ;;
6316
6317    rdos*)
6318      lt_prog_compiler_static='-non_shared'
6319      ;;
6320
6321    solaris*)
6322      lt_prog_compiler_pic='-KPIC'
6323      lt_prog_compiler_static='-Bstatic'
6324      case $cc_basename in
6325      f77* | f90* | f95*)
6326	lt_prog_compiler_wl='-Qoption ld ';;
6327      *)
6328	lt_prog_compiler_wl='-Wl,';;
6329      esac
6330      ;;
6331
6332    sunos4*)
6333      lt_prog_compiler_wl='-Qoption ld '
6334      lt_prog_compiler_pic='-PIC'
6335      lt_prog_compiler_static='-Bstatic'
6336      ;;
6337
6338    sysv4 | sysv4.2uw2* | sysv4.3*)
6339      lt_prog_compiler_wl='-Wl,'
6340      lt_prog_compiler_pic='-KPIC'
6341      lt_prog_compiler_static='-Bstatic'
6342      ;;
6343
6344    sysv4*MP*)
6345      if test -d /usr/nec ;then
6346	lt_prog_compiler_pic='-Kconform_pic'
6347	lt_prog_compiler_static='-Bstatic'
6348      fi
6349      ;;
6350
6351    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6352      lt_prog_compiler_wl='-Wl,'
6353      lt_prog_compiler_pic='-KPIC'
6354      lt_prog_compiler_static='-Bstatic'
6355      ;;
6356
6357    unicos*)
6358      lt_prog_compiler_wl='-Wl,'
6359      lt_prog_compiler_can_build_shared=no
6360      ;;
6361
6362    uts4*)
6363      lt_prog_compiler_pic='-pic'
6364      lt_prog_compiler_static='-Bstatic'
6365      ;;
6366
6367    *)
6368      lt_prog_compiler_can_build_shared=no
6369      ;;
6370    esac
6371  fi
6372
6373case $host_os in
6374  # For platforms which do not support PIC, -DPIC is meaningless:
6375  *djgpp*)
6376    lt_prog_compiler_pic=
6377    ;;
6378  *)
6379    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6380    ;;
6381esac
6382echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6383echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6384
6385
6386
6387
6388
6389
6390#
6391# Check to make sure the PIC flag actually works.
6392#
6393if test -n "$lt_prog_compiler_pic"; then
6394  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6396if test "${lt_prog_compiler_pic_works+set}" = set; then
6397  echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399  lt_prog_compiler_pic_works=no
6400   ac_outfile=conftest.$ac_objext
6401   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6402   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6403   # Insert the option either (1) after the last *FLAGS variable, or
6404   # (2) before a word containing "conftest.", or (3) at the end.
6405   # Note that $ac_compile itself does not contain backslashes and begins
6406   # with a dollar sign (not a hyphen), so the echo should work correctly.
6407   # The option is referenced via a variable to avoid confusing sed.
6408   lt_compile=`echo "$ac_compile" | $SED \
6409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411   -e 's:$: $lt_compiler_flag:'`
6412   (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
6413   (eval "$lt_compile" 2>conftest.err)
6414   ac_status=$?
6415   cat conftest.err >&5
6416   echo "$as_me:6416: \$? = $ac_status" >&5
6417   if (exit $ac_status) && test -s "$ac_outfile"; then
6418     # The compiler can only warn and ignore the option if not recognized
6419     # So say no if there are warnings other than the usual output.
6420     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6421     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6422     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6423       lt_prog_compiler_pic_works=yes
6424     fi
6425   fi
6426   $RM conftest*
6427
6428fi
6429echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6430echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6431
6432if test x"$lt_prog_compiler_pic_works" = xyes; then
6433    case $lt_prog_compiler_pic in
6434     "" | " "*) ;;
6435     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6436     esac
6437else
6438    lt_prog_compiler_pic=
6439     lt_prog_compiler_can_build_shared=no
6440fi
6441
6442fi
6443
6444
6445
6446
6447
6448
6449#
6450# Check to make sure the static flag actually works.
6451#
6452wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6453echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6454echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6455if test "${lt_prog_compiler_static_works+set}" = set; then
6456  echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458  lt_prog_compiler_static_works=no
6459   save_LDFLAGS="$LDFLAGS"
6460   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6461   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6462   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6463     # The linker can only warn and ignore the option if not recognized
6464     # So say no if there are warnings
6465     if test -s conftest.err; then
6466       # Append any errors to the config.log.
6467       cat conftest.err 1>&5
6468       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6469       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6470       if diff conftest.exp conftest.er2 >/dev/null; then
6471         lt_prog_compiler_static_works=yes
6472       fi
6473     else
6474       lt_prog_compiler_static_works=yes
6475     fi
6476   fi
6477   $RM conftest*
6478   LDFLAGS="$save_LDFLAGS"
6479
6480fi
6481echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6482echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6483
6484if test x"$lt_prog_compiler_static_works" = xyes; then
6485    :
6486else
6487    lt_prog_compiler_static=
6488fi
6489
6490
6491
6492
6493
6494
6495
6496  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6498if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  lt_cv_prog_compiler_c_o=no
6502   $RM -r conftest 2>/dev/null
6503   mkdir conftest
6504   cd conftest
6505   mkdir out
6506   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6507
6508   lt_compiler_flag="-o out/conftest2.$ac_objext"
6509   # Insert the option either (1) after the last *FLAGS variable, or
6510   # (2) before a word containing "conftest.", or (3) at the end.
6511   # Note that $ac_compile itself does not contain backslashes and begins
6512   # with a dollar sign (not a hyphen), so the echo should work correctly.
6513   lt_compile=`echo "$ac_compile" | $SED \
6514   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6516   -e 's:$: $lt_compiler_flag:'`
6517   (eval echo "\"\$as_me:6517: $lt_compile\"" >&5)
6518   (eval "$lt_compile" 2>out/conftest.err)
6519   ac_status=$?
6520   cat out/conftest.err >&5
6521   echo "$as_me:6521: \$? = $ac_status" >&5
6522   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6523   then
6524     # The compiler can only warn and ignore the option if not recognized
6525     # So say no if there are warnings
6526     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6527     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6528     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6529       lt_cv_prog_compiler_c_o=yes
6530     fi
6531   fi
6532   chmod u+w . 2>&5
6533   $RM conftest*
6534   # SGI C++ compiler will create directory out/ii_files/ for
6535   # template instantiation
6536   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6537   $RM out/* && rmdir out
6538   cd ..
6539   $RM -r conftest
6540   $RM conftest*
6541
6542fi
6543echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6544echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6545
6546
6547
6548
6549
6550
6551  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6552echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6553if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556  lt_cv_prog_compiler_c_o=no
6557   $RM -r conftest 2>/dev/null
6558   mkdir conftest
6559   cd conftest
6560   mkdir out
6561   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6562
6563   lt_compiler_flag="-o out/conftest2.$ac_objext"
6564   # Insert the option either (1) after the last *FLAGS variable, or
6565   # (2) before a word containing "conftest.", or (3) at the end.
6566   # Note that $ac_compile itself does not contain backslashes and begins
6567   # with a dollar sign (not a hyphen), so the echo should work correctly.
6568   lt_compile=`echo "$ac_compile" | $SED \
6569   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6570   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571   -e 's:$: $lt_compiler_flag:'`
6572   (eval echo "\"\$as_me:6572: $lt_compile\"" >&5)
6573   (eval "$lt_compile" 2>out/conftest.err)
6574   ac_status=$?
6575   cat out/conftest.err >&5
6576   echo "$as_me:6576: \$? = $ac_status" >&5
6577   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578   then
6579     # The compiler can only warn and ignore the option if not recognized
6580     # So say no if there are warnings
6581     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6582     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6583     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6584       lt_cv_prog_compiler_c_o=yes
6585     fi
6586   fi
6587   chmod u+w . 2>&5
6588   $RM conftest*
6589   # SGI C++ compiler will create directory out/ii_files/ for
6590   # template instantiation
6591   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6592   $RM out/* && rmdir out
6593   cd ..
6594   $RM -r conftest
6595   $RM conftest*
6596
6597fi
6598echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6599echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6600
6601
6602
6603
6604hard_links="nottested"
6605if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6606  # do not overwrite the value of need_locks provided by the user
6607  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6608echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6609  hard_links=yes
6610  $RM conftest*
6611  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6612  touch conftest.a
6613  ln conftest.a conftest.b 2>&5 || hard_links=no
6614  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6615  echo "$as_me:$LINENO: result: $hard_links" >&5
6616echo "${ECHO_T}$hard_links" >&6
6617  if test "$hard_links" = no; then
6618    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6619echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6620    need_locks=warn
6621  fi
6622else
6623  need_locks=no
6624fi
6625
6626
6627
6628
6629
6630
6631  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6632echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6633
6634  runpath_var=
6635  allow_undefined_flag=
6636  always_export_symbols=no
6637  archive_cmds=
6638  archive_expsym_cmds=
6639  compiler_needs_object=no
6640  enable_shared_with_static_runtimes=no
6641  export_dynamic_flag_spec=
6642  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6643  hardcode_automatic=no
6644  hardcode_direct=no
6645  hardcode_direct_absolute=no
6646  hardcode_libdir_flag_spec=
6647  hardcode_libdir_flag_spec_ld=
6648  hardcode_libdir_separator=
6649  hardcode_minus_L=no
6650  hardcode_shlibpath_var=unsupported
6651  inherit_rpath=no
6652  link_all_deplibs=unknown
6653  module_cmds=
6654  module_expsym_cmds=
6655  old_archive_from_new_cmds=
6656  old_archive_from_expsyms_cmds=
6657  thread_safe_flag_spec=
6658  whole_archive_flag_spec=
6659  # include_expsyms should be a list of space-separated symbols to be *always*
6660  # included in the symbol list
6661  include_expsyms=
6662  # exclude_expsyms can be an extended regexp of symbols to exclude
6663  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6664  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6665  # as well as any symbol that contains `d'.
6666  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6667  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6668  # platforms (ab)use it in PIC code, but their linkers get confused if
6669  # the symbol is explicitly referenced.  Since portable code cannot
6670  # rely on this symbol name, it's probably fine to never include it in
6671  # preloaded symbol tables.
6672  extract_expsyms_cmds=
6673
6674  case $host_os in
6675  cygwin* | mingw* | pw32*)
6676    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6677    # When not using gcc, we currently assume that we are using
6678    # Microsoft Visual C++.
6679    if test "$GCC" != yes; then
6680      with_gnu_ld=no
6681    fi
6682    ;;
6683  interix*)
6684    # we just hope/assume this is gcc and not c89 (= MSVC++)
6685    with_gnu_ld=yes
6686    ;;
6687  openbsd*)
6688    with_gnu_ld=no
6689    ;;
6690  esac
6691
6692  ld_shlibs=yes
6693  if test "$with_gnu_ld" = yes; then
6694    # If archive_cmds runs LD, not CC, wlarc should be empty
6695    wlarc='${wl}'
6696
6697    # Set some defaults for GNU ld with shared library support. These
6698    # are reset later if shared libraries are not supported. Putting them
6699    # here allows them to be overridden if necessary.
6700    runpath_var=LD_RUN_PATH
6701    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6702    export_dynamic_flag_spec='${wl}--export-dynamic'
6703    # ancient GNU ld didn't support --whole-archive et. al.
6704    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6705      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6706    else
6707      whole_archive_flag_spec=
6708    fi
6709    supports_anon_versioning=no
6710    case `$LD -v 2>&1` in
6711      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6712      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6713      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6714      *\ 2.11.*) ;; # other 2.11 versions
6715      *) supports_anon_versioning=yes ;;
6716    esac
6717
6718    # See if GNU ld supports shared libraries.
6719    case $host_os in
6720    aix3* | aix4* | aix5*)
6721      # On AIX/PPC, the GNU linker is very broken
6722      if test "$host_cpu" != ia64; then
6723	ld_shlibs=no
6724	cat <<_LT_EOF 1>&2
6725
6726*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6727*** to be unable to reliably create shared libraries on AIX.
6728*** Therefore, libtool is disabling shared libraries support.  If you
6729*** really care for shared libraries, you may want to modify your PATH
6730*** so that a non-GNU linker is found, and then restart.
6731
6732_LT_EOF
6733      fi
6734      ;;
6735
6736    amigaos*)
6737      if test "$host_cpu" = m68k; then
6738        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)'
6739        hardcode_libdir_flag_spec='-L$libdir'
6740        hardcode_minus_L=yes
6741      fi
6742
6743      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6744      # that the semantics of dynamic libraries on AmigaOS, at least up
6745      # to version 4, is to share data among multiple programs linked
6746      # with the same dynamic library.  Since this doesn't match the
6747      # behavior of shared libraries on other platforms, we can't use
6748      # them.
6749      ld_shlibs=no
6750      ;;
6751
6752    beos*)
6753      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6754	allow_undefined_flag=unsupported
6755	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6756	# support --undefined.  This deserves some investigation.  FIXME
6757	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758      else
6759	ld_shlibs=no
6760      fi
6761      ;;
6762
6763    cygwin* | mingw* | pw32*)
6764      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6765      # as there is no search path for DLLs.
6766      hardcode_libdir_flag_spec='-L$libdir'
6767      allow_undefined_flag=unsupported
6768      always_export_symbols=no
6769      enable_shared_with_static_runtimes=yes
6770      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6771
6772      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6773        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6774	# If the export-symbols file already is a .def file (1st line
6775	# is EXPORTS), use it as is; otherwise, prepend...
6776	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6777	  cp $export_symbols $output_objdir/$soname.def;
6778	else
6779	  echo EXPORTS > $output_objdir/$soname.def;
6780	  cat $export_symbols >> $output_objdir/$soname.def;
6781	fi~
6782	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6783      else
6784	ld_shlibs=no
6785      fi
6786      ;;
6787
6788    interix[3-9]*)
6789      hardcode_direct=no
6790      hardcode_shlibpath_var=no
6791      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6792      export_dynamic_flag_spec='${wl}-E'
6793      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6794      # Instead, shared libraries are loaded at an image base (0x10000000 by
6795      # default) and relocated if they conflict, which is a slow very memory
6796      # consuming and fragmenting process.  To avoid this, we pick a random,
6797      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6798      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6799      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6800      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'
6801      ;;
6802
6803    gnu* | linux* | tpf* | k*bsd*-gnu)
6804      tmp_diet=no
6805      if test "$host_os" = linux-dietlibc; then
6806	case $cc_basename in
6807	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
6808	esac
6809      fi
6810      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6811	 && test "$tmp_diet" = no
6812      then
6813	tmp_addflag=
6814	case $cc_basename,$host_cpu in
6815        pgcc*)				# Portland Group C compiler
6816	  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'
6817	  tmp_addflag=' $pic_flag'
6818	  ;;
6819	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6820	  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'
6821	  tmp_addflag=' $pic_flag -Mnomain' ;;
6822	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
6823	  tmp_addflag=' -i_dynamic' ;;
6824	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6825	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6826	ifc* | ifort*)			# Intel Fortran compiler
6827	  tmp_addflag=' -nofor_main' ;;
6828	esac
6829	case `$CC -V 2>&1 | sed 5q` in
6830	*Sun\ C*)			# Sun C 5.9
6831	  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'
6832	  compiler_needs_object=yes
6833	  tmp_sharedflag='-G' ;;
6834	*Sun\ F*)			# Sun Fortran 8.3
6835	  tmp_sharedflag='-G' ;;
6836	*)
6837	  tmp_sharedflag='-shared' ;;
6838	esac
6839	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6840
6841        if test "x$supports_anon_versioning" = xyes; then
6842          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6843	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6844	    echo "local: *; };" >> $output_objdir/$libname.ver~
6845	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6846        fi
6847      else
6848        ld_shlibs=no
6849      fi
6850      ;;
6851
6852    netbsd*)
6853      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6854	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6855	wlarc=
6856      else
6857	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6858	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6859      fi
6860      ;;
6861
6862    solaris*)
6863      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6864	ld_shlibs=no
6865	cat <<_LT_EOF 1>&2
6866
6867*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6868*** create shared libraries on Solaris systems.  Therefore, libtool
6869*** is disabling shared libraries support.  We urge you to upgrade GNU
6870*** binutils to release 2.9.1 or newer.  Another option is to modify
6871*** your PATH or compiler configuration so that the native linker is
6872*** used, and then restart.
6873
6874_LT_EOF
6875      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6876	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6877	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6878      else
6879	ld_shlibs=no
6880      fi
6881      ;;
6882
6883    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6884      case `$LD -v 2>&1` in
6885        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6886	ld_shlibs=no
6887	cat <<_LT_EOF 1>&2
6888
6889*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6890*** reliably create shared libraries on SCO systems.  Therefore, libtool
6891*** is disabling shared libraries support.  We urge you to upgrade GNU
6892*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6893*** your PATH or compiler configuration so that the native linker is
6894*** used, and then restart.
6895
6896_LT_EOF
6897	;;
6898	*)
6899	  # For security reasons, it is highly recommended that you always
6900	  # use absolute paths for naming shared libraries, and exclude the
6901	  # DT_RUNPATH tag from executables and libraries.  But doing so
6902	  # requires that you compile everything twice, which is a pain.
6903	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6904	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6905	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6906	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6907	  else
6908	    ld_shlibs=no
6909	  fi
6910	;;
6911      esac
6912      ;;
6913
6914    sunos4*)
6915      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6916      wlarc=
6917      hardcode_direct=yes
6918      hardcode_shlibpath_var=no
6919      ;;
6920
6921    *)
6922      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6923	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6924	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6925      else
6926	ld_shlibs=no
6927      fi
6928      ;;
6929    esac
6930
6931    if test "$ld_shlibs" = no; then
6932      runpath_var=
6933      hardcode_libdir_flag_spec=
6934      export_dynamic_flag_spec=
6935      whole_archive_flag_spec=
6936    fi
6937  else
6938    # PORTME fill in a description of your system's linker (not GNU ld)
6939    case $host_os in
6940    aix3*)
6941      allow_undefined_flag=unsupported
6942      always_export_symbols=yes
6943      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'
6944      # Note: this linker hardcodes the directories in LIBPATH if there
6945      # are no directories specified by -L.
6946      hardcode_minus_L=yes
6947      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6948	# Neither direct hardcoding nor static linking is supported with a
6949	# broken collect2.
6950	hardcode_direct=unsupported
6951      fi
6952      ;;
6953
6954    aix4* | aix5*)
6955      if test "$host_cpu" = ia64; then
6956	# On IA64, the linker does run time linking by default, so we don't
6957	# have to do anything special.
6958	aix_use_runtimelinking=no
6959	exp_sym_flag='-Bexport'
6960	no_entry_flag=""
6961      else
6962	# If we're using GNU nm, then we don't want the "-C" option.
6963	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6964	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6965	  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'
6966	else
6967	  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'
6968	fi
6969	aix_use_runtimelinking=no
6970
6971	# Test if we are trying to use run time linking or normal
6972	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6973	# need to do runtime linking.
6974	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6975	  for ld_flag in $LDFLAGS; do
6976	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6977	    aix_use_runtimelinking=yes
6978	    break
6979	  fi
6980	  done
6981	  ;;
6982	esac
6983
6984	exp_sym_flag='-bexport'
6985	no_entry_flag='-bnoentry'
6986      fi
6987
6988      # When large executables or shared objects are built, AIX ld can
6989      # have problems creating the table of contents.  If linking a library
6990      # or program results in "error TOC overflow" add -mminimal-toc to
6991      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6992      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6993
6994      archive_cmds=''
6995      hardcode_direct=yes
6996      hardcode_direct_absolute=yes
6997      hardcode_libdir_separator=':'
6998      link_all_deplibs=yes
6999      file_list_spec='${wl}-f,'
7000
7001      if test "$GCC" = yes; then
7002	case $host_os in aix4.[012]|aix4.[012].*)
7003	# We only want to do this on AIX 4.2 and lower, the check
7004	# below for broken collect2 doesn't work under 4.3+
7005	  collect2name=`${CC} -print-prog-name=collect2`
7006	  if test -f "$collect2name" &&
7007	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7008	  then
7009	  # We have reworked collect2
7010	  :
7011	  else
7012	  # We have old collect2
7013	  hardcode_direct=unsupported
7014	  # It fails to find uninstalled libraries when the uninstalled
7015	  # path is not listed in the libpath.  Setting hardcode_minus_L
7016	  # to unsupported forces relinking
7017	  hardcode_minus_L=yes
7018	  hardcode_libdir_flag_spec='-L$libdir'
7019	  hardcode_libdir_separator=
7020	  fi
7021	  ;;
7022	esac
7023	shared_flag='-shared'
7024	if test "$aix_use_runtimelinking" = yes; then
7025	  shared_flag="$shared_flag "'${wl}-G'
7026	fi
7027      else
7028	# not using gcc
7029	if test "$host_cpu" = ia64; then
7030	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7031	# chokes on -Wl,-G. The following line is correct:
7032	  shared_flag='-G'
7033	else
7034	  if test "$aix_use_runtimelinking" = yes; then
7035	    shared_flag='${wl}-G'
7036	  else
7037	    shared_flag='${wl}-bM:SRE'
7038	  fi
7039	fi
7040      fi
7041
7042      # It seems that -bexpall does not export symbols beginning with
7043      # underscore (_), so it is better to generate a list of symbols to export.
7044      always_export_symbols=yes
7045      if test "$aix_use_runtimelinking" = yes; then
7046	# Warning - without using the other runtime loading flags (-brtl),
7047	# -berok will link without error, but may produce a broken library.
7048	allow_undefined_flag='-berok'
7049        # Determine the default libpath from the value encoded in an
7050        # empty executable.
7051        cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h.  */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h.  */
7057
7058int
7059main ()
7060{
7061
7062  ;
7063  return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
7067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068  (eval $ac_link) 2>conftest.er1
7069  ac_status=$?
7070  grep -v '^ *+' conftest.er1 >conftest.err
7071  rm -f conftest.er1
7072  cat conftest.err >&5
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); } &&
7075	 { ac_try='test -z "$ac_c_werror_flag"
7076			 || test ! -s conftest.err'
7077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078  (eval $ac_try) 2>&5
7079  ac_status=$?
7080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081  (exit $ac_status); }; } &&
7082	 { ac_try='test -s conftest$ac_exeext'
7083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084  (eval $ac_try) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); }; }; then
7088
7089lt_aix_libpath_sed='
7090    /Import File Strings/,/^$/ {
7091	/^0/ {
7092	    s/^0  *\(.*\)$/\1/
7093	    p
7094	}
7095    }'
7096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7097# Check for a 64-bit object if we didn't find anything.
7098if test -z "$aix_libpath"; then
7099  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7100fi
7101else
7102  echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105fi
7106rm -f conftest.err conftest.$ac_objext \
7107      conftest$ac_exeext conftest.$ac_ext
7108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7109
7110        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7111        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"
7112      else
7113	if test "$host_cpu" = ia64; then
7114	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7115	  allow_undefined_flag="-z nodefs"
7116	  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"
7117	else
7118	 # Determine the default libpath from the value encoded in an
7119	 # empty executable.
7120	 cat >conftest.$ac_ext <<_ACEOF
7121/* confdefs.h.  */
7122_ACEOF
7123cat confdefs.h >>conftest.$ac_ext
7124cat >>conftest.$ac_ext <<_ACEOF
7125/* end confdefs.h.  */
7126
7127int
7128main ()
7129{
7130
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext conftest$ac_exeext
7136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137  (eval $ac_link) 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } &&
7144	 { ac_try='test -z "$ac_c_werror_flag"
7145			 || test ! -s conftest.err'
7146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147  (eval $ac_try) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }; } &&
7151	 { ac_try='test -s conftest$ac_exeext'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; }; then
7157
7158lt_aix_libpath_sed='
7159    /Import File Strings/,/^$/ {
7160	/^0/ {
7161	    s/^0  *\(.*\)$/\1/
7162	    p
7163	}
7164    }'
7165aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7166# Check for a 64-bit object if we didn't find anything.
7167if test -z "$aix_libpath"; then
7168  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7169fi
7170else
7171  echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174fi
7175rm -f conftest.err conftest.$ac_objext \
7176      conftest$ac_exeext conftest.$ac_ext
7177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7178
7179	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7180	  # Warning - without using the other run time loading flags,
7181	  # -berok will link without error, but may produce a broken library.
7182	  no_undefined_flag=' ${wl}-bernotok'
7183	  allow_undefined_flag=' ${wl}-berok'
7184	  # Exported symbols can be pulled into shared objects from archives
7185	  whole_archive_flag_spec='$convenience'
7186	  archive_cmds_need_lc=yes
7187	  # This is similar to how AIX traditionally builds its shared libraries.
7188	  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'
7189	fi
7190      fi
7191      ;;
7192
7193    amigaos*)
7194      if test "$host_cpu" = m68k; then
7195        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)'
7196        hardcode_libdir_flag_spec='-L$libdir'
7197        hardcode_minus_L=yes
7198      fi
7199      # see comment about different semantics on the GNU ld section
7200      ld_shlibs=no
7201      ;;
7202
7203    bsdi[45]*)
7204      export_dynamic_flag_spec=-rdynamic
7205      ;;
7206
7207    cygwin* | mingw* | pw32*)
7208      # When not using gcc, we currently assume that we are using
7209      # Microsoft Visual C++.
7210      # hardcode_libdir_flag_spec is actually meaningless, as there is
7211      # no search path for DLLs.
7212      hardcode_libdir_flag_spec=' '
7213      allow_undefined_flag=unsupported
7214      # Tell ltmain to make .lib files, not .a files.
7215      libext=lib
7216      # Tell ltmain to make .dll files, not .so files.
7217      shrext_cmds=".dll"
7218      # FIXME: Setting linknames here is a bad hack.
7219      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7220      # The linker will automatically build a .lib file if we build a DLL.
7221      old_archive_from_new_cmds='true'
7222      # FIXME: Should let the user specify the lib program.
7223      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7224      fix_srcfile_path='`cygpath -w "$srcfile"`'
7225      enable_shared_with_static_runtimes=yes
7226      ;;
7227
7228    darwin* | rhapsody*)
7229      case $host_os in
7230      rhapsody* | darwin1.[012])
7231	allow_undefined_flag='${wl}-undefined ${wl}suppress'
7232	;;
7233      *) # Darwin 1.3 on
7234	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7235	10.[012])
7236	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7237	  ;;
7238	10.*)
7239	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7240	  ;;
7241	esac
7242	;;
7243      esac
7244      archive_cmds_need_lc=no
7245      hardcode_direct=no
7246      hardcode_automatic=yes
7247      hardcode_shlibpath_var=unsupported
7248      whole_archive_flag_spec=''
7249      link_all_deplibs=yes
7250      if test "$GCC" = yes ; then
7251	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  lt_cv_apple_cc_single_mod=no
7255	if test -z "${LT_MULTI_MODULE}"; then
7256	  # By default we will add the -single_module flag. You can override
7257	  # by either setting the environment variable LT_MULTI_MODULE
7258	  # non-empty at configure time, or by adding -multi-module to the
7259	  # link flags.
7260	  echo "int foo(void){return 1;}" > conftest.c
7261	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7262	      -dynamiclib ${wl}-single_module conftest.c
7263	  if test -f libconftest.dylib; then
7264	      lt_cv_apple_cc_single_mod=yes
7265	      rm libconftest.dylib
7266	  fi
7267	  rm conftest.$ac_ext
7268	fi
7269fi
7270
7271	output_verbose_link_cmd=echo
7272	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7273	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7274	  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}'
7275	else
7276	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7277	  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}'
7278	fi
7279	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7280	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}'
7281      else
7282	case $cc_basename in
7283	xlc*)
7284	  output_verbose_link_cmd=echo
7285	  archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7286	  module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7287	  # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7288	  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}'
7289	  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}'
7290	  ;;
7291	*)
7292	  ld_shlibs=no
7293	  ;;
7294	esac
7295      fi
7296      ;;
7297
7298    dgux*)
7299      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300      hardcode_libdir_flag_spec='-L$libdir'
7301      hardcode_shlibpath_var=no
7302      ;;
7303
7304    freebsd1*)
7305      ld_shlibs=no
7306      ;;
7307
7308    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7309    # support.  Future versions do this automatically, but an explicit c++rt0.o
7310    # does not break anything, and helps significantly (at the cost of a little
7311    # extra space).
7312    freebsd2.2*)
7313      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7314      hardcode_libdir_flag_spec='-R$libdir'
7315      hardcode_direct=yes
7316      hardcode_shlibpath_var=no
7317      ;;
7318
7319    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7320    freebsd2*)
7321      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7322      hardcode_direct=yes
7323      hardcode_minus_L=yes
7324      hardcode_shlibpath_var=no
7325      ;;
7326
7327    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7328    freebsd* | dragonfly*)
7329      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7330      hardcode_libdir_flag_spec='-R$libdir'
7331      hardcode_direct=yes
7332      hardcode_shlibpath_var=no
7333      ;;
7334
7335    hpux9*)
7336      if test "$GCC" = yes; then
7337	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'
7338      else
7339	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'
7340      fi
7341      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7342      hardcode_libdir_separator=:
7343      hardcode_direct=yes
7344
7345      # hardcode_minus_L: Not really in the search PATH,
7346      # but as the default location of the library.
7347      hardcode_minus_L=yes
7348      export_dynamic_flag_spec='${wl}-E'
7349      ;;
7350
7351    hpux10*)
7352      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7353	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7354      else
7355	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7356      fi
7357      if test "$with_gnu_ld" = no; then
7358	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7359	hardcode_libdir_flag_spec_ld='+b $libdir'
7360	hardcode_libdir_separator=:
7361	hardcode_direct=yes
7362	hardcode_direct_absolute=yes
7363	export_dynamic_flag_spec='${wl}-E'
7364	# hardcode_minus_L: Not really in the search PATH,
7365	# but as the default location of the library.
7366	hardcode_minus_L=yes
7367      fi
7368      ;;
7369
7370    hpux11*)
7371      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7372	case $host_cpu in
7373	hppa*64*)
7374	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375	  ;;
7376	ia64*)
7377	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7378	  ;;
7379	*)
7380	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7381	  ;;
7382	esac
7383      else
7384	case $host_cpu in
7385	hppa*64*)
7386	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7387	  ;;
7388	ia64*)
7389	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7390	  ;;
7391	*)
7392	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7393	  ;;
7394	esac
7395      fi
7396      if test "$with_gnu_ld" = no; then
7397	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7398	hardcode_libdir_separator=:
7399
7400	case $host_cpu in
7401	hppa*64*|ia64*)
7402	  hardcode_direct=no
7403	  hardcode_shlibpath_var=no
7404	  ;;
7405	*)
7406	  hardcode_direct=yes
7407	  hardcode_direct_absolute=yes
7408	  export_dynamic_flag_spec='${wl}-E'
7409
7410	  # hardcode_minus_L: Not really in the search PATH,
7411	  # but as the default location of the library.
7412	  hardcode_minus_L=yes
7413	  ;;
7414	esac
7415      fi
7416      ;;
7417
7418    irix5* | irix6* | nonstopux*)
7419      if test "$GCC" = yes; then
7420	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'
7421	# Try to use the -exported_symbol ld option, if it does not
7422	# work, assume that -exports_file does not work either and
7423	# implicitly export all symbols.
7424        save_LDFLAGS="$LDFLAGS"
7425        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7426        cat >conftest.$ac_ext <<_ACEOF
7427int foo(void) {}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
7430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431  (eval $ac_link) 2>conftest.er1
7432  ac_status=$?
7433  grep -v '^ *+' conftest.er1 >conftest.err
7434  rm -f conftest.er1
7435  cat conftest.err >&5
7436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437  (exit $ac_status); } &&
7438	 { ac_try='test -z "$ac_c_werror_flag"
7439			 || test ! -s conftest.err'
7440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441  (eval $ac_try) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); }; } &&
7445	 { ac_try='test -s conftest$ac_exeext'
7446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447  (eval $ac_try) 2>&5
7448  ac_status=$?
7449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450  (exit $ac_status); }; }; then
7451  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'
7452
7453else
7454  echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457fi
7458rm -f conftest.err conftest.$ac_objext \
7459      conftest$ac_exeext conftest.$ac_ext
7460        LDFLAGS="$save_LDFLAGS"
7461      else
7462	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'
7463	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'
7464      fi
7465      archive_cmds_need_lc='no'
7466      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7467      hardcode_libdir_separator=:
7468      inherit_rpath=yes
7469      link_all_deplibs=yes
7470      ;;
7471
7472    netbsd*)
7473      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7474	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7475      else
7476	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7477      fi
7478      hardcode_libdir_flag_spec='-R$libdir'
7479      hardcode_direct=yes
7480      hardcode_shlibpath_var=no
7481      ;;
7482
7483    newsos6)
7484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485      hardcode_direct=yes
7486      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7487      hardcode_libdir_separator=:
7488      hardcode_shlibpath_var=no
7489      ;;
7490
7491    *nto* | *qnx*)
7492      ;;
7493
7494    openbsd*)
7495      hardcode_direct=yes
7496      hardcode_shlibpath_var=no
7497      hardcode_direct_absolute=yes
7498      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7499	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7500	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7501	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7502	export_dynamic_flag_spec='${wl}-E'
7503      else
7504        case $host_os in
7505	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7506	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507	  hardcode_libdir_flag_spec='-R$libdir'
7508	  ;;
7509	*)
7510	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7511	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512	  ;;
7513        esac
7514      fi
7515      ;;
7516
7517    os2*)
7518      hardcode_libdir_flag_spec='-L$libdir'
7519      hardcode_minus_L=yes
7520      allow_undefined_flag=unsupported
7521      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'
7522      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7523      ;;
7524
7525    osf3*)
7526      if test "$GCC" = yes; then
7527	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7528	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'
7529      else
7530	allow_undefined_flag=' -expect_unresolved \*'
7531	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'
7532      fi
7533      archive_cmds_need_lc='no'
7534      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7535      hardcode_libdir_separator=:
7536      ;;
7537
7538    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7539      if test "$GCC" = yes; then
7540	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7541	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'
7542	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7543      else
7544	allow_undefined_flag=' -expect_unresolved \*'
7545	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'
7546	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~
7547	$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'
7548
7549	# Both c and cxx compiler support -rpath directly
7550	hardcode_libdir_flag_spec='-rpath $libdir'
7551      fi
7552      archive_cmds_need_lc='no'
7553      hardcode_libdir_separator=:
7554      ;;
7555
7556    solaris*)
7557      no_undefined_flag=' -z defs'
7558      if test "$GCC" = yes; then
7559	wlarc='${wl}'
7560	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7561	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7562	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7563      else
7564	case `$CC -V 2>&1` in
7565	*"Compilers 5.0"*)
7566	  wlarc=''
7567	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7568	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7569	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7570	  ;;
7571	*)
7572	  wlarc='${wl}'
7573	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7574	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7575	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7576	  ;;
7577	esac
7578      fi
7579      hardcode_libdir_flag_spec='-R$libdir'
7580      hardcode_shlibpath_var=no
7581      case $host_os in
7582      solaris2.[0-5] | solaris2.[0-5].*) ;;
7583      *)
7584	# The compiler driver will combine and reorder linker options,
7585	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7586	# but is careful enough not to reorder.
7587	# Supported since Solaris 2.6 (maybe 2.5.1?)
7588	if test "$GCC" = yes; then
7589	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7590	else
7591	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7592	fi
7593	;;
7594      esac
7595      link_all_deplibs=yes
7596      ;;
7597
7598    sunos4*)
7599      if test "x$host_vendor" = xsequent; then
7600	# Use $CC to link under sequent, because it throws in some extra .o
7601	# files that make .init and .fini sections work.
7602	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7603      else
7604	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7605      fi
7606      hardcode_libdir_flag_spec='-L$libdir'
7607      hardcode_direct=yes
7608      hardcode_minus_L=yes
7609      hardcode_shlibpath_var=no
7610      ;;
7611
7612    sysv4)
7613      case $host_vendor in
7614	sni)
7615	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616	  hardcode_direct=yes # is this really true???
7617	;;
7618	siemens)
7619	  ## LD is ld it makes a PLAMLIB
7620	  ## CC just makes a GrossModule.
7621	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7622	  reload_cmds='$CC -r -o $output$reload_objs'
7623	  hardcode_direct=no
7624        ;;
7625	motorola)
7626	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7628	;;
7629      esac
7630      runpath_var='LD_RUN_PATH'
7631      hardcode_shlibpath_var=no
7632      ;;
7633
7634    sysv4.3*)
7635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636      hardcode_shlibpath_var=no
7637      export_dynamic_flag_spec='-Bexport'
7638      ;;
7639
7640    sysv4*MP*)
7641      if test -d /usr/nec; then
7642	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7643	hardcode_shlibpath_var=no
7644	runpath_var=LD_RUN_PATH
7645	hardcode_runpath_var=yes
7646	ld_shlibs=yes
7647      fi
7648      ;;
7649
7650    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7651      no_undefined_flag='${wl}-z,text'
7652      archive_cmds_need_lc=no
7653      hardcode_shlibpath_var=no
7654      runpath_var='LD_RUN_PATH'
7655
7656      if test "$GCC" = yes; then
7657	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7658	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7659      else
7660	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7661	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7662      fi
7663      ;;
7664
7665    sysv5* | sco3.2v5* | sco5v6*)
7666      # Note: We can NOT use -z defs as we might desire, because we do not
7667      # link with -lc, and that would cause any symbols used from libc to
7668      # always be unresolved, which means just about no library would
7669      # ever link correctly.  If we're not using GNU ld we use -z text
7670      # though, which does catch some bad symbols but isn't as heavy-handed
7671      # as -z defs.
7672      no_undefined_flag='${wl}-z,text'
7673      allow_undefined_flag='${wl}-z,nodefs'
7674      archive_cmds_need_lc=no
7675      hardcode_shlibpath_var=no
7676      hardcode_libdir_flag_spec='${wl}-R,$libdir'
7677      hardcode_libdir_separator=':'
7678      link_all_deplibs=yes
7679      export_dynamic_flag_spec='${wl}-Bexport'
7680      runpath_var='LD_RUN_PATH'
7681
7682      if test "$GCC" = yes; then
7683	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7684	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7685      else
7686	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7687	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7688      fi
7689      ;;
7690
7691    uts4*)
7692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7693      hardcode_libdir_flag_spec='-L$libdir'
7694      hardcode_shlibpath_var=no
7695      ;;
7696
7697    *)
7698      ld_shlibs=no
7699      ;;
7700    esac
7701
7702    if test x$host_vendor = xsni; then
7703      case $host in
7704      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7705	export_dynamic_flag_spec='${wl}-Blargedynsym'
7706	;;
7707      esac
7708    fi
7709  fi
7710
7711echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7712echo "${ECHO_T}$ld_shlibs" >&6
7713test "$ld_shlibs" = no && can_build_shared=no
7714
7715with_gnu_ld=$with_gnu_ld
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731#
7732# Do we need to explicitly link libc?
7733#
7734case "x$archive_cmds_need_lc" in
7735x|xyes)
7736  # Assume -lc should be added
7737  archive_cmds_need_lc=yes
7738
7739  if test "$enable_shared" = yes && test "$GCC" = yes; then
7740    case $archive_cmds in
7741    *'~'*)
7742      # FIXME: we may have to deal with multi-command sequences.
7743      ;;
7744    '$CC '*)
7745      # Test whether the compiler implicitly links with -lc since on some
7746      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7747      # to ld, don't add -lc before -lgcc.
7748      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7749echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7750      $RM conftest*
7751      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752
7753      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754  (eval $ac_compile) 2>&5
7755  ac_status=$?
7756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757  (exit $ac_status); } 2>conftest.err; then
7758        soname=conftest
7759        lib=conftest
7760        libobjs=conftest.$ac_objext
7761        deplibs=
7762        wl=$lt_prog_compiler_wl
7763	pic_flag=$lt_prog_compiler_pic
7764        compiler_flags=-v
7765        linker_flags=-v
7766        verstring=
7767        output_objdir=.
7768        libname=conftest
7769        lt_save_allow_undefined_flag=$allow_undefined_flag
7770        allow_undefined_flag=
7771        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7772  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }
7776        then
7777	  archive_cmds_need_lc=no
7778        else
7779	  archive_cmds_need_lc=yes
7780        fi
7781        allow_undefined_flag=$lt_save_allow_undefined_flag
7782      else
7783        cat conftest.err 1>&5
7784      fi
7785      $RM conftest*
7786      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7787echo "${ECHO_T}$archive_cmds_need_lc" >&6
7788      ;;
7789    esac
7790  fi
7791  ;;
7792esac
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7952withGCC=$GCC
7953if test "$withGCC" = yes; then
7954  case $host_os in
7955    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7956    *) lt_awk_arg="/^libraries:/" ;;
7957  esac
7958  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7959  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7960    # if the path contains ";" then we assume it to be the separator
7961    # otherwise default to the standard path separator (i.e. ":") - it is
7962    # assumed that no part of a normal pathname contains ";" but that should
7963    # okay in the real world where ";" in dirpaths is itself problematic.
7964    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7965  else
7966    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7967  fi
7968  # Ok, now we have the path, separated by spaces, we can step through it
7969  # and add multilib dir if necessary.
7970  lt_tmp_lt_search_path_spec=
7971  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7972  for lt_sys_path in $lt_search_path_spec; do
7973    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7974      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7975    else
7976      test -d "$lt_sys_path" && \
7977	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7978    fi
7979  done
7980  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7981BEGIN {RS=" "; FS="/|\n";} {
7982  lt_foo="";
7983  lt_count=0;
7984  for (lt_i = NF; lt_i > 0; lt_i--) {
7985    if ($lt_i != "" && $lt_i != ".") {
7986      if ($lt_i == "..") {
7987        lt_count++;
7988      } else {
7989        if (lt_count == 0) {
7990          lt_foo="/" $lt_i lt_foo;
7991        } else {
7992          lt_count--;
7993        }
7994      }
7995    }
7996  }
7997  if (lt_foo != "") { lt_freq[lt_foo]++; }
7998  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7999}'`
8000  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8001else
8002  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8003fi
8004library_names_spec=
8005libname_spec='lib$name'
8006soname_spec=
8007shrext_cmds=".so"
8008postinstall_cmds=
8009postuninstall_cmds=
8010finish_cmds=
8011finish_eval=
8012shlibpath_var=
8013shlibpath_overrides_runpath=unknown
8014version_type=none
8015dynamic_linker="$host_os ld.so"
8016sys_lib_dlsearch_path_spec="/lib /usr/lib"
8017need_lib_prefix=unknown
8018hardcode_into_libs=no
8019
8020# when you set need_version to no, make sure it does not cause -set_version
8021# flags to be left without arguments
8022need_version=unknown
8023
8024case $host_os in
8025aix3*)
8026  version_type=linux
8027  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8028  shlibpath_var=LIBPATH
8029
8030  # AIX 3 has no versioning support, so we append a major version to the name.
8031  soname_spec='${libname}${release}${shared_ext}$major'
8032  ;;
8033
8034aix4* | aix5*)
8035  version_type=linux
8036  need_lib_prefix=no
8037  need_version=no
8038  hardcode_into_libs=yes
8039  if test "$host_cpu" = ia64; then
8040    # AIX 5 supports IA64
8041    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8042    shlibpath_var=LD_LIBRARY_PATH
8043  else
8044    # With GCC up to 2.95.x, collect2 would create an import file
8045    # for dependence libraries.  The import file would start with
8046    # the line `#! .'.  This would cause the generated library to
8047    # depend on `.', always an invalid library.  This was fixed in
8048    # development snapshots of GCC prior to 3.0.
8049    case $host_os in
8050      aix4 | aix4.[01] | aix4.[01].*)
8051      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8052	   echo ' yes '
8053	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8054	:
8055      else
8056	can_build_shared=no
8057      fi
8058      ;;
8059    esac
8060    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8061    # soname into executable. Probably we can add versioning support to
8062    # collect2, so additional links can be useful in future.
8063    if test "$aix_use_runtimelinking" = yes; then
8064      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8065      # instead of lib<name>.a to let people know that these are not
8066      # typical AIX shared libraries.
8067      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068    else
8069      # We preserve .a as extension for shared libraries through AIX4.2
8070      # and later when we are not doing run time linking.
8071      library_names_spec='${libname}${release}.a $libname.a'
8072      soname_spec='${libname}${release}${shared_ext}$major'
8073    fi
8074    shlibpath_var=LIBPATH
8075  fi
8076  ;;
8077
8078amigaos*)
8079  if test "$host_cpu" = m68k; then
8080    library_names_spec='$libname.ixlibrary $libname.a'
8081    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8082    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'
8083  else
8084    dynamic_linker=no
8085  fi
8086  ;;
8087
8088beos*)
8089  library_names_spec='${libname}${shared_ext}'
8090  dynamic_linker="$host_os ld.so"
8091  shlibpath_var=LIBRARY_PATH
8092  ;;
8093
8094bsdi[45]*)
8095  version_type=linux
8096  need_version=no
8097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098  soname_spec='${libname}${release}${shared_ext}$major'
8099  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8100  shlibpath_var=LD_LIBRARY_PATH
8101  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8102  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8103  # the default ld.so.conf also contains /usr/contrib/lib and
8104  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8105  # libtool to hard-code these into programs
8106  ;;
8107
8108cygwin* | mingw* | pw32*)
8109  version_type=windows
8110  shrext_cmds=".dll"
8111  need_version=no
8112  need_lib_prefix=no
8113
8114  case $withGCC,$host_os in
8115  yes,cygwin* | yes,mingw* | yes,pw32*)
8116    library_names_spec='$libname.dll.a'
8117    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8118    postinstall_cmds='base_file=`basename \${file}`~
8119      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8120      dldir=$destdir/`dirname \$dlpath`~
8121      test -d \$dldir || mkdir -p \$dldir~
8122      $install_prog $dir/$dlname \$dldir/$dlname~
8123      chmod a+x \$dldir/$dlname~
8124      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8125        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8126      fi'
8127    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8128      dlpath=$dir/\$dldll~
8129       $RM \$dlpath'
8130    shlibpath_overrides_runpath=yes
8131
8132    case $host_os in
8133    cygwin*)
8134      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8135      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8136      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8137      ;;
8138    mingw*)
8139      # MinGW DLLs use traditional 'lib' prefix
8140      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8141      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8142      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8143        # It is most probably a Windows format PATH printed by
8144        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8145        # path with ; separators, and with drive letters. We can handle the
8146        # drive letters (cygwin fileutils understands them), so leave them,
8147        # especially as we might pass files found there to a mingw objdump,
8148        # which wouldn't understand a cygwinified path. Ahh.
8149        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8150      else
8151        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8152      fi
8153      ;;
8154    pw32*)
8155      # pw32 DLLs use 'pw' prefix rather than 'lib'
8156      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8157      ;;
8158    esac
8159    ;;
8160
8161  *)
8162    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8163    ;;
8164  esac
8165  dynamic_linker='Win32 ld.exe'
8166  # FIXME: first we should search . and the directory the executable is in
8167  shlibpath_var=PATH
8168  ;;
8169
8170darwin* | rhapsody*)
8171  dynamic_linker="$host_os dyld"
8172  version_type=darwin
8173  need_lib_prefix=no
8174  need_version=no
8175  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8176  soname_spec='${libname}${release}${major}$shared_ext'
8177  shlibpath_overrides_runpath=yes
8178  shlibpath_var=DYLD_LIBRARY_PATH
8179  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8180
8181  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8182  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8183  ;;
8184
8185dgux*)
8186  version_type=linux
8187  need_lib_prefix=no
8188  need_version=no
8189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8190  soname_spec='${libname}${release}${shared_ext}$major'
8191  shlibpath_var=LD_LIBRARY_PATH
8192  ;;
8193
8194freebsd1*)
8195  dynamic_linker=no
8196  ;;
8197
8198freebsd* | dragonfly*)
8199  # DragonFly does not have aout.  When/if they implement a new
8200  # versioning mechanism, adjust this.
8201  if test -x /usr/bin/objformat; then
8202    objformat=`/usr/bin/objformat`
8203  else
8204    case $host_os in
8205    freebsd[123]*) objformat=aout ;;
8206    *) objformat=elf ;;
8207    esac
8208  fi
8209  version_type=freebsd-$objformat
8210  case $version_type in
8211    freebsd-elf*)
8212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8213      need_version=no
8214      need_lib_prefix=no
8215      ;;
8216    freebsd-*)
8217      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8218      need_version=yes
8219      ;;
8220  esac
8221  shlibpath_var=LD_LIBRARY_PATH
8222  case $host_os in
8223  freebsd2*)
8224    shlibpath_overrides_runpath=yes
8225    ;;
8226  freebsd3.[01]* | freebsdelf3.[01]*)
8227    shlibpath_overrides_runpath=yes
8228    hardcode_into_libs=yes
8229    ;;
8230  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8231  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8232    shlibpath_overrides_runpath=no
8233    hardcode_into_libs=yes
8234    ;;
8235  *) # from 4.6 on, and DragonFly
8236    shlibpath_overrides_runpath=yes
8237    hardcode_into_libs=yes
8238    ;;
8239  esac
8240  ;;
8241
8242gnu*)
8243  version_type=linux
8244  need_lib_prefix=no
8245  need_version=no
8246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8247  soname_spec='${libname}${release}${shared_ext}$major'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  hardcode_into_libs=yes
8250  ;;
8251
8252hpux9* | hpux10* | hpux11*)
8253  # Give a soname corresponding to the major version so that dld.sl refuses to
8254  # link against other versions.
8255  version_type=sunos
8256  need_lib_prefix=no
8257  need_version=no
8258  case $host_cpu in
8259  ia64*)
8260    shrext_cmds='.so'
8261    hardcode_into_libs=yes
8262    dynamic_linker="$host_os dld.so"
8263    shlibpath_var=LD_LIBRARY_PATH
8264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266    soname_spec='${libname}${release}${shared_ext}$major'
8267    if test "X$HPUX_IA64_MODE" = X32; then
8268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8269    else
8270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8271    fi
8272    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8273    ;;
8274  hppa*64*)
8275    shrext_cmds='.sl'
8276    hardcode_into_libs=yes
8277    dynamic_linker="$host_os dld.sl"
8278    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281    soname_spec='${libname}${release}${shared_ext}$major'
8282    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8283    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8284    ;;
8285  *)
8286    shrext_cmds='.sl'
8287    dynamic_linker="$host_os dld.sl"
8288    shlibpath_var=SHLIB_PATH
8289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291    soname_spec='${libname}${release}${shared_ext}$major'
8292    ;;
8293  esac
8294  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8295  postinstall_cmds='chmod 555 $lib'
8296  ;;
8297
8298interix[3-9]*)
8299  version_type=linux
8300  need_lib_prefix=no
8301  need_version=no
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8303  soname_spec='${libname}${release}${shared_ext}$major'
8304  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8305  shlibpath_var=LD_LIBRARY_PATH
8306  shlibpath_overrides_runpath=no
8307  hardcode_into_libs=yes
8308  ;;
8309
8310irix5* | irix6* | nonstopux*)
8311  case $host_os in
8312    nonstopux*) version_type=nonstopux ;;
8313    *)
8314	if test "$lt_cv_prog_gnu_ld" = yes; then
8315		version_type=linux
8316	else
8317		version_type=irix
8318	fi ;;
8319  esac
8320  need_lib_prefix=no
8321  need_version=no
8322  soname_spec='${libname}${release}${shared_ext}$major'
8323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8324  case $host_os in
8325  irix5* | nonstopux*)
8326    libsuff= shlibsuff=
8327    ;;
8328  *)
8329    case $LD in # libtool.m4 will add one of these switches to LD
8330    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8331      libsuff= shlibsuff= libmagic=32-bit;;
8332    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8333      libsuff=32 shlibsuff=N32 libmagic=N32;;
8334    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8335      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8336    *) libsuff= shlibsuff= libmagic=never-match;;
8337    esac
8338    ;;
8339  esac
8340  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8341  shlibpath_overrides_runpath=no
8342  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8343  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8344  hardcode_into_libs=yes
8345  ;;
8346
8347# No shared lib support for Linux oldld, aout, or coff.
8348linux*oldld* | linux*aout* | linux*coff*)
8349  dynamic_linker=no
8350  ;;
8351
8352# This must be Linux ELF.
8353linux* | k*bsd*-gnu)
8354  version_type=linux
8355  need_lib_prefix=no
8356  need_version=no
8357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358  soname_spec='${libname}${release}${shared_ext}$major'
8359  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8360  shlibpath_var=LD_LIBRARY_PATH
8361  shlibpath_overrides_runpath=no
8362  # Some binutils ld are patched to set DT_RUNPATH
8363  save_LDFLAGS=$LDFLAGS
8364  save_libdir=$libdir
8365  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8366       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8367  cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h.  */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h.  */
8373
8374int
8375main ()
8376{
8377
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext conftest$ac_exeext
8383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384  (eval $ac_link) 2>conftest.er1
8385  ac_status=$?
8386  grep -v '^ *+' conftest.er1 >conftest.err
8387  rm -f conftest.er1
8388  cat conftest.err >&5
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); } &&
8391	 { ac_try='test -z "$ac_c_werror_flag"
8392			 || test ! -s conftest.err'
8393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394  (eval $ac_try) 2>&5
8395  ac_status=$?
8396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397  (exit $ac_status); }; } &&
8398	 { ac_try='test -s conftest$ac_exeext'
8399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400  (eval $ac_try) 2>&5
8401  ac_status=$?
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); }; }; then
8404  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8405  shlibpath_overrides_runpath=yes
8406fi
8407
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412fi
8413rm -f conftest.err conftest.$ac_objext \
8414      conftest$ac_exeext conftest.$ac_ext
8415  LDFLAGS=$save_LDFLAGS
8416  libdir=$save_libdir
8417
8418  # This implies no fast_install, which is unacceptable.
8419  # Some rework will be needed to allow for fast_install
8420  # before this can be enabled.
8421  hardcode_into_libs=yes
8422
8423  # Append ld.so.conf contents to the search path
8424  if test -f /etc/ld.so.conf; then
8425    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' ' '`
8426    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8427  fi
8428
8429  # We used to test for /lib/ld.so.1 and disable shared libraries on
8430  # powerpc, because MkLinux only supported shared libraries with the
8431  # GNU dynamic linker.  Since this was broken with cross compilers,
8432  # most powerpc-linux boxes support dynamic linking these days and
8433  # people can always --disable-shared, the test was removed, and we
8434  # assume the GNU/Linux dynamic linker is in use.
8435  dynamic_linker='GNU/Linux ld.so'
8436  ;;
8437
8438netbsd*)
8439  version_type=sunos
8440  need_lib_prefix=no
8441  need_version=no
8442  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8444    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8445    dynamic_linker='NetBSD (a.out) ld.so'
8446  else
8447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8448    soname_spec='${libname}${release}${shared_ext}$major'
8449    dynamic_linker='NetBSD ld.elf_so'
8450  fi
8451  shlibpath_var=LD_LIBRARY_PATH
8452  shlibpath_overrides_runpath=yes
8453  hardcode_into_libs=yes
8454  ;;
8455
8456newsos6)
8457  version_type=linux
8458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8459  shlibpath_var=LD_LIBRARY_PATH
8460  shlibpath_overrides_runpath=yes
8461  ;;
8462
8463*nto* | *qnx*)
8464  version_type=qnx
8465  need_lib_prefix=no
8466  need_version=no
8467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468  soname_spec='${libname}${release}${shared_ext}$major'
8469  shlibpath_var=LD_LIBRARY_PATH
8470  shlibpath_overrides_runpath=no
8471  hardcode_into_libs=yes
8472  dynamic_linker='ldqnx.so'
8473  ;;
8474
8475openbsd*)
8476  version_type=sunos
8477  sys_lib_dlsearch_path_spec="/usr/lib"
8478  need_lib_prefix=no
8479  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8480  case $host_os in
8481    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8482    *)				need_version=no  ;;
8483  esac
8484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8485  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8486  shlibpath_var=LD_LIBRARY_PATH
8487  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8488    case $host_os in
8489      openbsd2.[89] | openbsd2.[89].*)
8490	shlibpath_overrides_runpath=no
8491	;;
8492      *)
8493	shlibpath_overrides_runpath=yes
8494	;;
8495      esac
8496  else
8497    shlibpath_overrides_runpath=yes
8498  fi
8499  ;;
8500
8501os2*)
8502  libname_spec='$name'
8503  shrext_cmds=".dll"
8504  need_lib_prefix=no
8505  library_names_spec='$libname${shared_ext} $libname.a'
8506  dynamic_linker='OS/2 ld.exe'
8507  shlibpath_var=LIBPATH
8508  ;;
8509
8510osf3* | osf4* | osf5*)
8511  version_type=osf
8512  need_lib_prefix=no
8513  need_version=no
8514  soname_spec='${libname}${release}${shared_ext}$major'
8515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8516  shlibpath_var=LD_LIBRARY_PATH
8517  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8518  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8519  ;;
8520
8521rdos*)
8522  dynamic_linker=no
8523  ;;
8524
8525solaris*)
8526  version_type=linux
8527  need_lib_prefix=no
8528  need_version=no
8529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8530  soname_spec='${libname}${release}${shared_ext}$major'
8531  shlibpath_var=LD_LIBRARY_PATH
8532  shlibpath_overrides_runpath=yes
8533  hardcode_into_libs=yes
8534  # ldd complains unless libraries are executable
8535  postinstall_cmds='chmod +x $lib'
8536  ;;
8537
8538sunos4*)
8539  version_type=sunos
8540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8541  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8542  shlibpath_var=LD_LIBRARY_PATH
8543  shlibpath_overrides_runpath=yes
8544  if test "$with_gnu_ld" = yes; then
8545    need_lib_prefix=no
8546  fi
8547  need_version=yes
8548  ;;
8549
8550sysv4 | sysv4.3*)
8551  version_type=linux
8552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553  soname_spec='${libname}${release}${shared_ext}$major'
8554  shlibpath_var=LD_LIBRARY_PATH
8555  case $host_vendor in
8556    sni)
8557      shlibpath_overrides_runpath=no
8558      need_lib_prefix=no
8559      runpath_var=LD_RUN_PATH
8560      ;;
8561    siemens)
8562      need_lib_prefix=no
8563      ;;
8564    motorola)
8565      need_lib_prefix=no
8566      need_version=no
8567      shlibpath_overrides_runpath=no
8568      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8569      ;;
8570  esac
8571  ;;
8572
8573sysv4*MP*)
8574  if test -d /usr/nec ;then
8575    version_type=linux
8576    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8577    soname_spec='$libname${shared_ext}.$major'
8578    shlibpath_var=LD_LIBRARY_PATH
8579  fi
8580  ;;
8581
8582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8583  version_type=freebsd-elf
8584  need_lib_prefix=no
8585  need_version=no
8586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8587  soname_spec='${libname}${release}${shared_ext}$major'
8588  shlibpath_var=LD_LIBRARY_PATH
8589  shlibpath_overrides_runpath=yes
8590  hardcode_into_libs=yes
8591  if test "$with_gnu_ld" = yes; then
8592    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8593  else
8594    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8595    case $host_os in
8596      sco3.2v5*)
8597        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8598	;;
8599    esac
8600  fi
8601  sys_lib_dlsearch_path_spec='/usr/lib'
8602  ;;
8603
8604tpf*)
8605  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8606  version_type=linux
8607  need_lib_prefix=no
8608  need_version=no
8609  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610  shlibpath_var=LD_LIBRARY_PATH
8611  shlibpath_overrides_runpath=no
8612  hardcode_into_libs=yes
8613  ;;
8614
8615uts4*)
8616  version_type=linux
8617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618  soname_spec='${libname}${release}${shared_ext}$major'
8619  shlibpath_var=LD_LIBRARY_PATH
8620  ;;
8621
8622*)
8623  dynamic_linker=no
8624  ;;
8625esac
8626echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8627echo "${ECHO_T}$dynamic_linker" >&6
8628test "$dynamic_linker" = no && can_build_shared=no
8629
8630variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8631if test "$GCC" = yes; then
8632  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8633fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8722echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8723hardcode_action=
8724if test -n "$hardcode_libdir_flag_spec" ||
8725   test -n "$runpath_var" ||
8726   test "X$hardcode_automatic" = "Xyes" ; then
8727
8728  # We can hardcode non-existent directories.
8729  if test "$hardcode_direct" != no &&
8730     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8731     # have to relink, otherwise we might link with an installed library
8732     # when we should be linking with a yet-to-be-installed one
8733     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8734     test "$hardcode_minus_L" != no; then
8735    # Linking always hardcodes the temporary library directory.
8736    hardcode_action=relink
8737  else
8738    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8739    hardcode_action=immediate
8740  fi
8741else
8742  # We cannot hardcode anything, or else we can only hardcode existing
8743  # directories.
8744  hardcode_action=unsupported
8745fi
8746echo "$as_me:$LINENO: result: $hardcode_action" >&5
8747echo "${ECHO_T}$hardcode_action" >&6
8748
8749if test "$hardcode_action" = relink ||
8750   test "$inherit_rpath" = yes; then
8751  # Fast installation is not supported
8752  enable_fast_install=no
8753elif test "$shlibpath_overrides_runpath" = yes ||
8754     test "$enable_shared" = no; then
8755  # Fast installation is not necessary
8756  enable_fast_install=needless
8757fi
8758
8759
8760
8761
8762
8763
8764  if test "x$enable_dlopen" != xyes; then
8765  enable_dlopen=unknown
8766  enable_dlopen_self=unknown
8767  enable_dlopen_self_static=unknown
8768else
8769  lt_cv_dlopen=no
8770  lt_cv_dlopen_libs=
8771
8772  case $host_os in
8773  beos*)
8774    lt_cv_dlopen="load_add_on"
8775    lt_cv_dlopen_libs=
8776    lt_cv_dlopen_self=yes
8777    ;;
8778
8779  mingw* | pw32*)
8780    lt_cv_dlopen="LoadLibrary"
8781    lt_cv_dlopen_libs=
8782    ;;
8783
8784  cygwin*)
8785    lt_cv_dlopen="dlopen"
8786    lt_cv_dlopen_libs=
8787    ;;
8788
8789  darwin*)
8790  # if libdl is installed we need to link against it
8791    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8792echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8793if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8794  echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796  ac_check_lib_save_LIBS=$LIBS
8797LIBS="-ldl  $LIBS"
8798cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h.  */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h.  */
8804
8805/* Override any gcc2 internal prototype to avoid an error.  */
8806#ifdef __cplusplus
8807extern "C"
8808#endif
8809/* We use char because int might match the return type of a gcc2
8810   builtin and then its argument prototype would still apply.  */
8811char dlopen ();
8812int
8813main ()
8814{
8815dlopen ();
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820rm -f conftest.$ac_objext conftest$ac_exeext
8821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822  (eval $ac_link) 2>conftest.er1
8823  ac_status=$?
8824  grep -v '^ *+' conftest.er1 >conftest.err
8825  rm -f conftest.er1
8826  cat conftest.err >&5
8827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828  (exit $ac_status); } &&
8829	 { ac_try='test -z "$ac_c_werror_flag"
8830			 || test ! -s conftest.err'
8831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832  (eval $ac_try) 2>&5
8833  ac_status=$?
8834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835  (exit $ac_status); }; } &&
8836	 { ac_try='test -s conftest$ac_exeext'
8837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838  (eval $ac_try) 2>&5
8839  ac_status=$?
8840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841  (exit $ac_status); }; }; then
8842  ac_cv_lib_dl_dlopen=yes
8843else
8844  echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847ac_cv_lib_dl_dlopen=no
8848fi
8849rm -f conftest.err conftest.$ac_objext \
8850      conftest$ac_exeext conftest.$ac_ext
8851LIBS=$ac_check_lib_save_LIBS
8852fi
8853echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8854echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8855if test $ac_cv_lib_dl_dlopen = yes; then
8856  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8857else
8858
8859    lt_cv_dlopen="dyld"
8860    lt_cv_dlopen_libs=
8861    lt_cv_dlopen_self=yes
8862
8863fi
8864
8865    ;;
8866
8867  *)
8868    echo "$as_me:$LINENO: checking for shl_load" >&5
8869echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8870if test "${ac_cv_func_shl_load+set}" = set; then
8871  echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
8873  cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h.  */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h.  */
8879/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8880   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8881#define shl_load innocuous_shl_load
8882
8883/* System header to define __stub macros and hopefully few prototypes,
8884    which can conflict with char shl_load (); below.
8885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8886    <limits.h> exists even on freestanding compilers.  */
8887
8888#ifdef __STDC__
8889# include <limits.h>
8890#else
8891# include <assert.h>
8892#endif
8893
8894#undef shl_load
8895
8896/* Override any gcc2 internal prototype to avoid an error.  */
8897#ifdef __cplusplus
8898extern "C"
8899{
8900#endif
8901/* We use char because int might match the return type of a gcc2
8902   builtin and then its argument prototype would still apply.  */
8903char shl_load ();
8904/* The GNU C library defines this for functions which it implements
8905    to always fail with ENOSYS.  Some functions are actually named
8906    something starting with __ and the normal name is an alias.  */
8907#if defined (__stub_shl_load) || defined (__stub___shl_load)
8908choke me
8909#else
8910char (*f) () = shl_load;
8911#endif
8912#ifdef __cplusplus
8913}
8914#endif
8915
8916int
8917main ()
8918{
8919return f != shl_load;
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext conftest$ac_exeext
8925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926  (eval $ac_link) 2>conftest.er1
8927  ac_status=$?
8928  grep -v '^ *+' conftest.er1 >conftest.err
8929  rm -f conftest.er1
8930  cat conftest.err >&5
8931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932  (exit $ac_status); } &&
8933	 { ac_try='test -z "$ac_c_werror_flag"
8934			 || test ! -s conftest.err'
8935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936  (eval $ac_try) 2>&5
8937  ac_status=$?
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); }; } &&
8940	 { ac_try='test -s conftest$ac_exeext'
8941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942  (eval $ac_try) 2>&5
8943  ac_status=$?
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); }; }; then
8946  ac_cv_func_shl_load=yes
8947else
8948  echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951ac_cv_func_shl_load=no
8952fi
8953rm -f conftest.err conftest.$ac_objext \
8954      conftest$ac_exeext conftest.$ac_ext
8955fi
8956echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8957echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8958if test $ac_cv_func_shl_load = yes; then
8959  lt_cv_dlopen="shl_load"
8960else
8961  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8962echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8963if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8964  echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966  ac_check_lib_save_LIBS=$LIBS
8967LIBS="-ldld  $LIBS"
8968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h.  */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h.  */
8974
8975/* Override any gcc2 internal prototype to avoid an error.  */
8976#ifdef __cplusplus
8977extern "C"
8978#endif
8979/* We use char because int might match the return type of a gcc2
8980   builtin and then its argument prototype would still apply.  */
8981char shl_load ();
8982int
8983main ()
8984{
8985shl_load ();
8986  ;
8987  return 0;
8988}
8989_ACEOF
8990rm -f conftest.$ac_objext conftest$ac_exeext
8991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992  (eval $ac_link) 2>conftest.er1
8993  ac_status=$?
8994  grep -v '^ *+' conftest.er1 >conftest.err
8995  rm -f conftest.er1
8996  cat conftest.err >&5
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); } &&
8999	 { ac_try='test -z "$ac_c_werror_flag"
9000			 || test ! -s conftest.err'
9001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002  (eval $ac_try) 2>&5
9003  ac_status=$?
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); }; } &&
9006	 { ac_try='test -s conftest$ac_exeext'
9007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008  (eval $ac_try) 2>&5
9009  ac_status=$?
9010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011  (exit $ac_status); }; }; then
9012  ac_cv_lib_dld_shl_load=yes
9013else
9014  echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017ac_cv_lib_dld_shl_load=no
9018fi
9019rm -f conftest.err conftest.$ac_objext \
9020      conftest$ac_exeext conftest.$ac_ext
9021LIBS=$ac_check_lib_save_LIBS
9022fi
9023echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9024echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9025if test $ac_cv_lib_dld_shl_load = yes; then
9026  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9027else
9028  echo "$as_me:$LINENO: checking for dlopen" >&5
9029echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9030if test "${ac_cv_func_dlopen+set}" = set; then
9031  echo $ECHO_N "(cached) $ECHO_C" >&6
9032else
9033  cat >conftest.$ac_ext <<_ACEOF
9034/* confdefs.h.  */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h.  */
9039/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9040   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9041#define dlopen innocuous_dlopen
9042
9043/* System header to define __stub macros and hopefully few prototypes,
9044    which can conflict with char dlopen (); below.
9045    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9046    <limits.h> exists even on freestanding compilers.  */
9047
9048#ifdef __STDC__
9049# include <limits.h>
9050#else
9051# include <assert.h>
9052#endif
9053
9054#undef dlopen
9055
9056/* Override any gcc2 internal prototype to avoid an error.  */
9057#ifdef __cplusplus
9058extern "C"
9059{
9060#endif
9061/* We use char because int might match the return type of a gcc2
9062   builtin and then its argument prototype would still apply.  */
9063char dlopen ();
9064/* The GNU C library defines this for functions which it implements
9065    to always fail with ENOSYS.  Some functions are actually named
9066    something starting with __ and the normal name is an alias.  */
9067#if defined (__stub_dlopen) || defined (__stub___dlopen)
9068choke me
9069#else
9070char (*f) () = dlopen;
9071#endif
9072#ifdef __cplusplus
9073}
9074#endif
9075
9076int
9077main ()
9078{
9079return f != dlopen;
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext conftest$ac_exeext
9085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086  (eval $ac_link) 2>conftest.er1
9087  ac_status=$?
9088  grep -v '^ *+' conftest.er1 >conftest.err
9089  rm -f conftest.er1
9090  cat conftest.err >&5
9091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092  (exit $ac_status); } &&
9093	 { ac_try='test -z "$ac_c_werror_flag"
9094			 || test ! -s conftest.err'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; } &&
9100	 { ac_try='test -s conftest$ac_exeext'
9101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102  (eval $ac_try) 2>&5
9103  ac_status=$?
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); }; }; then
9106  ac_cv_func_dlopen=yes
9107else
9108  echo "$as_me: failed program was:" >&5
9109sed 's/^/| /' conftest.$ac_ext >&5
9110
9111ac_cv_func_dlopen=no
9112fi
9113rm -f conftest.err conftest.$ac_objext \
9114      conftest$ac_exeext conftest.$ac_ext
9115fi
9116echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9117echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9118if test $ac_cv_func_dlopen = yes; then
9119  lt_cv_dlopen="dlopen"
9120else
9121  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9122echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9123if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9124  echo $ECHO_N "(cached) $ECHO_C" >&6
9125else
9126  ac_check_lib_save_LIBS=$LIBS
9127LIBS="-ldl  $LIBS"
9128cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h.  */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h.  */
9134
9135/* Override any gcc2 internal prototype to avoid an error.  */
9136#ifdef __cplusplus
9137extern "C"
9138#endif
9139/* We use char because int might match the return type of a gcc2
9140   builtin and then its argument prototype would still apply.  */
9141char dlopen ();
9142int
9143main ()
9144{
9145dlopen ();
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150rm -f conftest.$ac_objext conftest$ac_exeext
9151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152  (eval $ac_link) 2>conftest.er1
9153  ac_status=$?
9154  grep -v '^ *+' conftest.er1 >conftest.err
9155  rm -f conftest.er1
9156  cat conftest.err >&5
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); } &&
9159	 { ac_try='test -z "$ac_c_werror_flag"
9160			 || test ! -s conftest.err'
9161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162  (eval $ac_try) 2>&5
9163  ac_status=$?
9164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165  (exit $ac_status); }; } &&
9166	 { ac_try='test -s conftest$ac_exeext'
9167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168  (eval $ac_try) 2>&5
9169  ac_status=$?
9170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171  (exit $ac_status); }; }; then
9172  ac_cv_lib_dl_dlopen=yes
9173else
9174  echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177ac_cv_lib_dl_dlopen=no
9178fi
9179rm -f conftest.err conftest.$ac_objext \
9180      conftest$ac_exeext conftest.$ac_ext
9181LIBS=$ac_check_lib_save_LIBS
9182fi
9183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9185if test $ac_cv_lib_dl_dlopen = yes; then
9186  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9187else
9188  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9189echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9190if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9191  echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193  ac_check_lib_save_LIBS=$LIBS
9194LIBS="-lsvld  $LIBS"
9195cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h.  */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h.  */
9201
9202/* Override any gcc2 internal prototype to avoid an error.  */
9203#ifdef __cplusplus
9204extern "C"
9205#endif
9206/* We use char because int might match the return type of a gcc2
9207   builtin and then its argument prototype would still apply.  */
9208char dlopen ();
9209int
9210main ()
9211{
9212dlopen ();
9213  ;
9214  return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219  (eval $ac_link) 2>conftest.er1
9220  ac_status=$?
9221  grep -v '^ *+' conftest.er1 >conftest.err
9222  rm -f conftest.er1
9223  cat conftest.err >&5
9224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225  (exit $ac_status); } &&
9226	 { ac_try='test -z "$ac_c_werror_flag"
9227			 || test ! -s conftest.err'
9228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229  (eval $ac_try) 2>&5
9230  ac_status=$?
9231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232  (exit $ac_status); }; } &&
9233	 { ac_try='test -s conftest$ac_exeext'
9234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235  (eval $ac_try) 2>&5
9236  ac_status=$?
9237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238  (exit $ac_status); }; }; then
9239  ac_cv_lib_svld_dlopen=yes
9240else
9241  echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244ac_cv_lib_svld_dlopen=no
9245fi
9246rm -f conftest.err conftest.$ac_objext \
9247      conftest$ac_exeext conftest.$ac_ext
9248LIBS=$ac_check_lib_save_LIBS
9249fi
9250echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9251echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9252if test $ac_cv_lib_svld_dlopen = yes; then
9253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9254else
9255  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9256echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9257if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9258  echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260  ac_check_lib_save_LIBS=$LIBS
9261LIBS="-ldld  $LIBS"
9262cat >conftest.$ac_ext <<_ACEOF
9263/* confdefs.h.  */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h.  */
9268
9269/* Override any gcc2 internal prototype to avoid an error.  */
9270#ifdef __cplusplus
9271extern "C"
9272#endif
9273/* We use char because int might match the return type of a gcc2
9274   builtin and then its argument prototype would still apply.  */
9275char dld_link ();
9276int
9277main ()
9278{
9279dld_link ();
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284rm -f conftest.$ac_objext conftest$ac_exeext
9285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286  (eval $ac_link) 2>conftest.er1
9287  ac_status=$?
9288  grep -v '^ *+' conftest.er1 >conftest.err
9289  rm -f conftest.er1
9290  cat conftest.err >&5
9291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292  (exit $ac_status); } &&
9293	 { ac_try='test -z "$ac_c_werror_flag"
9294			 || test ! -s conftest.err'
9295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296  (eval $ac_try) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; } &&
9300	 { ac_try='test -s conftest$ac_exeext'
9301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302  (eval $ac_try) 2>&5
9303  ac_status=$?
9304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305  (exit $ac_status); }; }; then
9306  ac_cv_lib_dld_dld_link=yes
9307else
9308  echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311ac_cv_lib_dld_dld_link=no
9312fi
9313rm -f conftest.err conftest.$ac_objext \
9314      conftest$ac_exeext conftest.$ac_ext
9315LIBS=$ac_check_lib_save_LIBS
9316fi
9317echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9318echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9319if test $ac_cv_lib_dld_dld_link = yes; then
9320  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9321fi
9322
9323
9324fi
9325
9326
9327fi
9328
9329
9330fi
9331
9332
9333fi
9334
9335
9336fi
9337
9338    ;;
9339  esac
9340
9341  if test "x$lt_cv_dlopen" != xno; then
9342    enable_dlopen=yes
9343  else
9344    enable_dlopen=no
9345  fi
9346
9347  case $lt_cv_dlopen in
9348  dlopen)
9349    save_CPPFLAGS="$CPPFLAGS"
9350    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9351
9352    save_LDFLAGS="$LDFLAGS"
9353    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9354
9355    save_LIBS="$LIBS"
9356    LIBS="$lt_cv_dlopen_libs $LIBS"
9357
9358    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9359echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9360if test "${lt_cv_dlopen_self+set}" = set; then
9361  echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363  	  if test "$cross_compiling" = yes; then :
9364  lt_cv_dlopen_self=cross
9365else
9366  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9367  lt_status=$lt_dlunknown
9368  cat > conftest.$ac_ext <<_LT_EOF
9369#line 9369 "configure"
9370#include "confdefs.h"
9371
9372#if HAVE_DLFCN_H
9373#include <dlfcn.h>
9374#endif
9375
9376#include <stdio.h>
9377
9378#ifdef RTLD_GLOBAL
9379#  define LT_DLGLOBAL		RTLD_GLOBAL
9380#else
9381#  ifdef DL_GLOBAL
9382#    define LT_DLGLOBAL		DL_GLOBAL
9383#  else
9384#    define LT_DLGLOBAL		0
9385#  endif
9386#endif
9387
9388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9389   find out it does not work in some platform. */
9390#ifndef LT_DLLAZY_OR_NOW
9391#  ifdef RTLD_LAZY
9392#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9393#  else
9394#    ifdef DL_LAZY
9395#      define LT_DLLAZY_OR_NOW		DL_LAZY
9396#    else
9397#      ifdef RTLD_NOW
9398#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9399#      else
9400#        ifdef DL_NOW
9401#          define LT_DLLAZY_OR_NOW	DL_NOW
9402#        else
9403#          define LT_DLLAZY_OR_NOW	0
9404#        endif
9405#      endif
9406#    endif
9407#  endif
9408#endif
9409
9410#ifdef __cplusplus
9411extern "C" void exit (int);
9412#endif
9413
9414void fnord() { int i=42;}
9415int main ()
9416{
9417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9418  int status = $lt_dlunknown;
9419
9420  if (self)
9421    {
9422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9423      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9424      /* dlclose (self); */
9425    }
9426  else
9427    puts (dlerror ());
9428
9429    exit (status);
9430}
9431_LT_EOF
9432  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433  (eval $ac_link) 2>&5
9434  ac_status=$?
9435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9437    (./conftest; exit; ) >&5 2>/dev/null
9438    lt_status=$?
9439    case x$lt_status in
9440      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9441      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9442      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9443    esac
9444  else :
9445    # compilation failed
9446    lt_cv_dlopen_self=no
9447  fi
9448fi
9449rm -fr conftest*
9450
9451
9452fi
9453echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9454echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9455
9456    if test "x$lt_cv_dlopen_self" = xyes; then
9457      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9458      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9459echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9460if test "${lt_cv_dlopen_self_static+set}" = set; then
9461  echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463  	  if test "$cross_compiling" = yes; then :
9464  lt_cv_dlopen_self_static=cross
9465else
9466  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9467  lt_status=$lt_dlunknown
9468  cat > conftest.$ac_ext <<_LT_EOF
9469#line 9469 "configure"
9470#include "confdefs.h"
9471
9472#if HAVE_DLFCN_H
9473#include <dlfcn.h>
9474#endif
9475
9476#include <stdio.h>
9477
9478#ifdef RTLD_GLOBAL
9479#  define LT_DLGLOBAL		RTLD_GLOBAL
9480#else
9481#  ifdef DL_GLOBAL
9482#    define LT_DLGLOBAL		DL_GLOBAL
9483#  else
9484#    define LT_DLGLOBAL		0
9485#  endif
9486#endif
9487
9488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9489   find out it does not work in some platform. */
9490#ifndef LT_DLLAZY_OR_NOW
9491#  ifdef RTLD_LAZY
9492#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9493#  else
9494#    ifdef DL_LAZY
9495#      define LT_DLLAZY_OR_NOW		DL_LAZY
9496#    else
9497#      ifdef RTLD_NOW
9498#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9499#      else
9500#        ifdef DL_NOW
9501#          define LT_DLLAZY_OR_NOW	DL_NOW
9502#        else
9503#          define LT_DLLAZY_OR_NOW	0
9504#        endif
9505#      endif
9506#    endif
9507#  endif
9508#endif
9509
9510#ifdef __cplusplus
9511extern "C" void exit (int);
9512#endif
9513
9514void fnord() { int i=42;}
9515int main ()
9516{
9517  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9518  int status = $lt_dlunknown;
9519
9520  if (self)
9521    {
9522      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9523      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9524      /* dlclose (self); */
9525    }
9526  else
9527    puts (dlerror ());
9528
9529    exit (status);
9530}
9531_LT_EOF
9532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533  (eval $ac_link) 2>&5
9534  ac_status=$?
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9537    (./conftest; exit; ) >&5 2>/dev/null
9538    lt_status=$?
9539    case x$lt_status in
9540      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9541      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9542      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9543    esac
9544  else :
9545    # compilation failed
9546    lt_cv_dlopen_self_static=no
9547  fi
9548fi
9549rm -fr conftest*
9550
9551
9552fi
9553echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9554echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9555    fi
9556
9557    CPPFLAGS="$save_CPPFLAGS"
9558    LDFLAGS="$save_LDFLAGS"
9559    LIBS="$save_LIBS"
9560    ;;
9561  esac
9562
9563  case $lt_cv_dlopen_self in
9564  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9565  *) enable_dlopen_self=unknown ;;
9566  esac
9567
9568  case $lt_cv_dlopen_self_static in
9569  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9570  *) enable_dlopen_self_static=unknown ;;
9571  esac
9572fi
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590striplib=
9591old_striplib=
9592echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9593echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9594if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9595  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9596  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9597  echo "$as_me:$LINENO: result: yes" >&5
9598echo "${ECHO_T}yes" >&6
9599else
9600# FIXME - insert some real tests, host_os isn't really good enough
9601  case $host_os in
9602  darwin*)
9603    if test -n "$STRIP" ; then
9604      striplib="$STRIP -x"
9605      old_striplib="$STRIP -S"
9606      echo "$as_me:$LINENO: result: yes" >&5
9607echo "${ECHO_T}yes" >&6
9608    else
9609      echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
9611    fi
9612    ;;
9613  *)
9614    echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616    ;;
9617  esac
9618fi
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631  # Report which library types will actually be built
9632  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9633echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9634  echo "$as_me:$LINENO: result: $can_build_shared" >&5
9635echo "${ECHO_T}$can_build_shared" >&6
9636
9637  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9638echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9639  test "$can_build_shared" = "no" && enable_shared=no
9640
9641  # On AIX, shared libraries and static libraries use the same namespace, and
9642  # are all built from PIC.
9643  case $host_os in
9644  aix3*)
9645    test "$enable_shared" = yes && enable_static=no
9646    if test -n "$RANLIB"; then
9647      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9648      postinstall_cmds='$RANLIB $lib'
9649    fi
9650    ;;
9651
9652  aix4* | aix5*)
9653    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9654      test "$enable_shared" = yes && enable_static=no
9655    fi
9656    ;;
9657  esac
9658  echo "$as_me:$LINENO: result: $enable_shared" >&5
9659echo "${ECHO_T}$enable_shared" >&6
9660
9661  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9662echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9663  # Make sure either enable_shared or enable_static is yes.
9664  test "$enable_shared" = yes || enable_static=yes
9665  echo "$as_me:$LINENO: result: $enable_static" >&5
9666echo "${ECHO_T}$enable_static" >&6
9667
9668
9669
9670
9671fi
9672ac_ext=c
9673ac_cpp='$CPP $CPPFLAGS'
9674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677
9678CC="$lt_save_CC"
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692                  ac_config_commands="$ac_config_commands libtool"
9693
9694
9695
9696
9697# Only expand once:
9698
9699
9700
9701# Check whether --enable-targets or --disable-targets was given.
9702if test "${enable_targets+set}" = set; then
9703  enableval="$enable_targets"
9704  case "${enableval}" in
9705  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9706echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9707   { (exit 1); exit 1; }; }
9708            ;;
9709  no)       enable_targets= ;;
9710  *)        enable_targets=$enableval ;;
9711esac
9712fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9713if test "${enable_commonbfdlib+set}" = set; then
9714  enableval="$enable_commonbfdlib"
9715  case "${enableval}" in
9716  yes) commonbfdlib=true ;;
9717  no)  commonbfdlib=false ;;
9718  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
9719echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
9720   { (exit 1); exit 1; }; } ;;
9721esac
9722fi;
9723
9724GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9725
9726# Check whether --enable-werror or --disable-werror was given.
9727if test "${enable_werror+set}" = set; then
9728  enableval="$enable_werror"
9729  case "${enableval}" in
9730     yes | y) ERROR_ON_WARNING="yes" ;;
9731     no | n)  ERROR_ON_WARNING="no" ;;
9732     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9733echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9734   { (exit 1); exit 1; }; } ;;
9735   esac
9736fi;
9737
9738# Enable -Werror by default when using gcc
9739if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9740    ERROR_ON_WARNING=yes
9741fi
9742
9743NO_WERROR=
9744if test "${ERROR_ON_WARNING}" = yes ; then
9745    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9746    NO_WERROR="-Wno-error"
9747fi
9748
9749if test "${GCC}" = yes ; then
9750  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9751fi
9752
9753# Check whether --enable-build-warnings or --disable-build-warnings was given.
9754if test "${enable_build_warnings+set}" = set; then
9755  enableval="$enable_build_warnings"
9756  case "${enableval}" in
9757  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9758  no)	if test "${GCC}" = yes ; then
9759	  WARN_CFLAGS="-w"
9760	fi;;
9761  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9762        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9763  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9764        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9765  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9766esac
9767fi;
9768
9769if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9770  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9771fi
9772
9773
9774
9775
9776
9777          ac_config_headers="$ac_config_headers config.h:config.in"
9778
9779
9780if test -z "$target" ; then
9781    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9782echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9783   { (exit 1); exit 1; }; }
9784fi
9785
9786echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9787echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9788    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9789if test "${enable_maintainer_mode+set}" = set; then
9790  enableval="$enable_maintainer_mode"
9791  USE_MAINTAINER_MODE=$enableval
9792else
9793  USE_MAINTAINER_MODE=no
9794fi;
9795  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9796echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9797
9798
9799if test $USE_MAINTAINER_MODE = yes; then
9800  MAINTAINER_MODE_TRUE=
9801  MAINTAINER_MODE_FALSE='#'
9802else
9803  MAINTAINER_MODE_TRUE='#'
9804  MAINTAINER_MODE_FALSE=
9805fi
9806
9807  MAINT=$MAINTAINER_MODE_TRUE
9808
9809
9810 case ${build_alias} in
9811  "") build_noncanonical=${build} ;;
9812  *) build_noncanonical=${build_alias} ;;
9813esac
9814
9815 case ${host_alias} in
9816  "") host_noncanonical=${build_noncanonical} ;;
9817  *) host_noncanonical=${host_alias} ;;
9818esac
9819
9820 case ${target_alias} in
9821  "") target_noncanonical=${host_noncanonical} ;;
9822  *) target_noncanonical=${target_alias} ;;
9823esac
9824
9825echo "$as_me:$LINENO: checking whether to install libbfd" >&5
9826echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
9827  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
9828if test "${enable_install_libbfd+set}" = set; then
9829  enableval="$enable_install_libbfd"
9830  install_libbfd_p=$enableval
9831else
9832  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
9833        install_libbfd_p=yes
9834      else
9835        install_libbfd_p=no
9836      fi
9837fi;
9838  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
9839echo "${ECHO_T}$install_libbfd_p" >&6
9840
9841
9842if test $install_libbfd_p = yes; then
9843  INSTALL_LIBBFD_TRUE=
9844  INSTALL_LIBBFD_FALSE='#'
9845else
9846  INSTALL_LIBBFD_TRUE='#'
9847  INSTALL_LIBBFD_FALSE=
9848fi
9849
9850  # Need _noncanonical variables for this.
9851
9852
9853
9854
9855  # libbfd.a is a host library containing target dependent code
9856  bfdlibdir='$(libdir)'
9857  bfdincludedir='$(includedir)'
9858  if test "${host}" != "${target}"; then
9859    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
9860    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
9861  fi
9862
9863
9864
9865
9866
9867
9868# host-specific stuff:
9869
9870ac_ext=c
9871ac_cpp='$CPP $CPPFLAGS'
9872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874ac_compiler_gnu=$ac_cv_c_compiler_gnu
9875if test -n "$ac_tool_prefix"; then
9876  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9877set dummy ${ac_tool_prefix}gcc; ac_word=$2
9878echo "$as_me:$LINENO: checking for $ac_word" >&5
9879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9880if test "${ac_cv_prog_CC+set}" = set; then
9881  echo $ECHO_N "(cached) $ECHO_C" >&6
9882else
9883  if test -n "$CC"; then
9884  ac_cv_prog_CC="$CC" # Let the user override the test.
9885else
9886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887for as_dir in $PATH
9888do
9889  IFS=$as_save_IFS
9890  test -z "$as_dir" && as_dir=.
9891  for ac_exec_ext in '' $ac_executable_extensions; do
9892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893    ac_cv_prog_CC="${ac_tool_prefix}gcc"
9894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9895    break 2
9896  fi
9897done
9898done
9899
9900fi
9901fi
9902CC=$ac_cv_prog_CC
9903if test -n "$CC"; then
9904  echo "$as_me:$LINENO: result: $CC" >&5
9905echo "${ECHO_T}$CC" >&6
9906else
9907  echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909fi
9910
9911fi
9912if test -z "$ac_cv_prog_CC"; then
9913  ac_ct_CC=$CC
9914  # Extract the first word of "gcc", so it can be a program name with args.
9915set dummy gcc; ac_word=$2
9916echo "$as_me:$LINENO: checking for $ac_word" >&5
9917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9919  echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921  if test -n "$ac_ct_CC"; then
9922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9923else
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927  IFS=$as_save_IFS
9928  test -z "$as_dir" && as_dir=.
9929  for ac_exec_ext in '' $ac_executable_extensions; do
9930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931    ac_cv_prog_ac_ct_CC="gcc"
9932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933    break 2
9934  fi
9935done
9936done
9937
9938fi
9939fi
9940ac_ct_CC=$ac_cv_prog_ac_ct_CC
9941if test -n "$ac_ct_CC"; then
9942  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9943echo "${ECHO_T}$ac_ct_CC" >&6
9944else
9945  echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
9947fi
9948
9949  CC=$ac_ct_CC
9950else
9951  CC="$ac_cv_prog_CC"
9952fi
9953
9954if test -z "$CC"; then
9955  if test -n "$ac_tool_prefix"; then
9956  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9957set dummy ${ac_tool_prefix}cc; ac_word=$2
9958echo "$as_me:$LINENO: checking for $ac_word" >&5
9959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9960if test "${ac_cv_prog_CC+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  if test -n "$CC"; then
9964  ac_cv_prog_CC="$CC" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969  IFS=$as_save_IFS
9970  test -z "$as_dir" && as_dir=.
9971  for ac_exec_ext in '' $ac_executable_extensions; do
9972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973    ac_cv_prog_CC="${ac_tool_prefix}cc"
9974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975    break 2
9976  fi
9977done
9978done
9979
9980fi
9981fi
9982CC=$ac_cv_prog_CC
9983if test -n "$CC"; then
9984  echo "$as_me:$LINENO: result: $CC" >&5
9985echo "${ECHO_T}$CC" >&6
9986else
9987  echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
9989fi
9990
9991fi
9992if test -z "$ac_cv_prog_CC"; then
9993  ac_ct_CC=$CC
9994  # Extract the first word of "cc", so it can be a program name with args.
9995set dummy cc; ac_word=$2
9996echo "$as_me:$LINENO: checking for $ac_word" >&5
9997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9998if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9999  echo $ECHO_N "(cached) $ECHO_C" >&6
10000else
10001  if test -n "$ac_ct_CC"; then
10002  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007  IFS=$as_save_IFS
10008  test -z "$as_dir" && as_dir=.
10009  for ac_exec_ext in '' $ac_executable_extensions; do
10010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011    ac_cv_prog_ac_ct_CC="cc"
10012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10013    break 2
10014  fi
10015done
10016done
10017
10018fi
10019fi
10020ac_ct_CC=$ac_cv_prog_ac_ct_CC
10021if test -n "$ac_ct_CC"; then
10022  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10023echo "${ECHO_T}$ac_ct_CC" >&6
10024else
10025  echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6
10027fi
10028
10029  CC=$ac_ct_CC
10030else
10031  CC="$ac_cv_prog_CC"
10032fi
10033
10034fi
10035if test -z "$CC"; then
10036  # Extract the first word of "cc", so it can be a program name with args.
10037set dummy cc; ac_word=$2
10038echo "$as_me:$LINENO: checking for $ac_word" >&5
10039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10040if test "${ac_cv_prog_CC+set}" = set; then
10041  echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043  if test -n "$CC"; then
10044  ac_cv_prog_CC="$CC" # Let the user override the test.
10045else
10046  ac_prog_rejected=no
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050  IFS=$as_save_IFS
10051  test -z "$as_dir" && as_dir=.
10052  for ac_exec_ext in '' $ac_executable_extensions; do
10053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10055       ac_prog_rejected=yes
10056       continue
10057     fi
10058    ac_cv_prog_CC="cc"
10059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060    break 2
10061  fi
10062done
10063done
10064
10065if test $ac_prog_rejected = yes; then
10066  # We found a bogon in the path, so make sure we never use it.
10067  set dummy $ac_cv_prog_CC
10068  shift
10069  if test $# != 0; then
10070    # We chose a different compiler from the bogus one.
10071    # However, it has the same basename, so the bogon will be chosen
10072    # first if we set CC to just the basename; use the full file name.
10073    shift
10074    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10075  fi
10076fi
10077fi
10078fi
10079CC=$ac_cv_prog_CC
10080if test -n "$CC"; then
10081  echo "$as_me:$LINENO: result: $CC" >&5
10082echo "${ECHO_T}$CC" >&6
10083else
10084  echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6
10086fi
10087
10088fi
10089if test -z "$CC"; then
10090  if test -n "$ac_tool_prefix"; then
10091  for ac_prog in cl
10092  do
10093    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10095echo "$as_me:$LINENO: checking for $ac_word" >&5
10096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097if test "${ac_cv_prog_CC+set}" = set; then
10098  echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100  if test -n "$CC"; then
10101  ac_cv_prog_CC="$CC" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106  IFS=$as_save_IFS
10107  test -z "$as_dir" && as_dir=.
10108  for ac_exec_ext in '' $ac_executable_extensions; do
10109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112    break 2
10113  fi
10114done
10115done
10116
10117fi
10118fi
10119CC=$ac_cv_prog_CC
10120if test -n "$CC"; then
10121  echo "$as_me:$LINENO: result: $CC" >&5
10122echo "${ECHO_T}$CC" >&6
10123else
10124  echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
10126fi
10127
10128    test -n "$CC" && break
10129  done
10130fi
10131if test -z "$CC"; then
10132  ac_ct_CC=$CC
10133  for ac_prog in cl
10134do
10135  # Extract the first word of "$ac_prog", so it can be a program name with args.
10136set dummy $ac_prog; ac_word=$2
10137echo "$as_me:$LINENO: checking for $ac_word" >&5
10138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10139if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10140  echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142  if test -n "$ac_ct_CC"; then
10143  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10144else
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148  IFS=$as_save_IFS
10149  test -z "$as_dir" && as_dir=.
10150  for ac_exec_ext in '' $ac_executable_extensions; do
10151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152    ac_cv_prog_ac_ct_CC="$ac_prog"
10153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154    break 2
10155  fi
10156done
10157done
10158
10159fi
10160fi
10161ac_ct_CC=$ac_cv_prog_ac_ct_CC
10162if test -n "$ac_ct_CC"; then
10163  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10164echo "${ECHO_T}$ac_ct_CC" >&6
10165else
10166  echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
10168fi
10169
10170  test -n "$ac_ct_CC" && break
10171done
10172
10173  CC=$ac_ct_CC
10174fi
10175
10176fi
10177
10178
10179test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10180See \`config.log' for more details." >&5
10181echo "$as_me: error: no acceptable C compiler found in \$PATH
10182See \`config.log' for more details." >&2;}
10183   { (exit 1); exit 1; }; }
10184
10185# Provide some information about the compiler.
10186echo "$as_me:$LINENO:" \
10187     "checking for C compiler version" >&5
10188ac_compiler=`set X $ac_compile; echo $2`
10189{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10190  (eval $ac_compiler --version </dev/null >&5) 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); }
10194{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10195  (eval $ac_compiler -v </dev/null >&5) 2>&5
10196  ac_status=$?
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); }
10199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10200  (eval $ac_compiler -V </dev/null >&5) 2>&5
10201  ac_status=$?
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); }
10204
10205echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10206echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10207if test "${ac_cv_c_compiler_gnu+set}" = set; then
10208  echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210  cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216
10217int
10218main ()
10219{
10220#ifndef __GNUC__
10221       choke me
10222#endif
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext
10229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230  (eval $ac_compile) 2>conftest.er1
10231  ac_status=$?
10232  grep -v '^ *+' conftest.er1 >conftest.err
10233  rm -f conftest.er1
10234  cat conftest.err >&5
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); } &&
10237	 { ac_try='test -z "$ac_c_werror_flag"
10238			 || test ! -s conftest.err'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; } &&
10244	 { ac_try='test -s conftest.$ac_objext'
10245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246  (eval $ac_try) 2>&5
10247  ac_status=$?
10248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249  (exit $ac_status); }; }; then
10250  ac_compiler_gnu=yes
10251else
10252  echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255ac_compiler_gnu=no
10256fi
10257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10258ac_cv_c_compiler_gnu=$ac_compiler_gnu
10259
10260fi
10261echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10262echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10263GCC=`test $ac_compiler_gnu = yes && echo yes`
10264ac_test_CFLAGS=${CFLAGS+set}
10265ac_save_CFLAGS=$CFLAGS
10266CFLAGS="-g"
10267echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10268echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10269if test "${ac_cv_prog_cc_g+set}" = set; then
10270  echo $ECHO_N "(cached) $ECHO_C" >&6
10271else
10272  cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h.  */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h.  */
10278
10279int
10280main ()
10281{
10282
10283  ;
10284  return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext
10288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289  (eval $ac_compile) 2>conftest.er1
10290  ac_status=$?
10291  grep -v '^ *+' conftest.er1 >conftest.err
10292  rm -f conftest.er1
10293  cat conftest.err >&5
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); } &&
10296	 { ac_try='test -z "$ac_c_werror_flag"
10297			 || test ! -s conftest.err'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; } &&
10303	 { ac_try='test -s conftest.$ac_objext'
10304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305  (eval $ac_try) 2>&5
10306  ac_status=$?
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); }; }; then
10309  ac_cv_prog_cc_g=yes
10310else
10311  echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314ac_cv_prog_cc_g=no
10315fi
10316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317fi
10318echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10319echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10320if test "$ac_test_CFLAGS" = set; then
10321  CFLAGS=$ac_save_CFLAGS
10322elif test $ac_cv_prog_cc_g = yes; then
10323  if test "$GCC" = yes; then
10324    CFLAGS="-g -O2"
10325  else
10326    CFLAGS="-g"
10327  fi
10328else
10329  if test "$GCC" = yes; then
10330    CFLAGS="-O2"
10331  else
10332    CFLAGS=
10333  fi
10334fi
10335echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10336echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10337if test "${ac_cv_prog_cc_stdc+set}" = set; then
10338  echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340  ac_cv_prog_cc_stdc=no
10341ac_save_CC=$CC
10342cat >conftest.$ac_ext <<_ACEOF
10343/* confdefs.h.  */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h.  */
10348#include <stdarg.h>
10349#include <stdio.h>
10350#include <sys/types.h>
10351#include <sys/stat.h>
10352/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10353struct buf { int x; };
10354FILE * (*rcsopen) (struct buf *, struct stat *, int);
10355static char *e (p, i)
10356     char **p;
10357     int i;
10358{
10359  return p[i];
10360}
10361static char *f (char * (*g) (char **, int), char **p, ...)
10362{
10363  char *s;
10364  va_list v;
10365  va_start (v,p);
10366  s = g (p, va_arg (v,int));
10367  va_end (v);
10368  return s;
10369}
10370
10371/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10372   function prototypes and stuff, but not '\xHH' hex character constants.
10373   These don't provoke an error unfortunately, instead are silently treated
10374   as 'x'.  The following induces an error, until -std1 is added to get
10375   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10376   array size at least.  It's necessary to write '\x00'==0 to get something
10377   that's true only with -std1.  */
10378int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10379
10380int test (int i, double x);
10381struct s1 {int (*f) (int a);};
10382struct s2 {int (*f) (double a);};
10383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10384int argc;
10385char **argv;
10386int
10387main ()
10388{
10389return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394# Don't try gcc -ansi; that turns off useful extensions and
10395# breaks some systems' header files.
10396# AIX			-qlanglvl=ansi
10397# Ultrix and OSF/1	-std1
10398# HP-UX 10.20 and later	-Ae
10399# HP-UX older versions	-Aa -D_HPUX_SOURCE
10400# SVR4			-Xc -D__EXTENSIONS__
10401for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10402do
10403  CC="$ac_save_CC $ac_arg"
10404  rm -f conftest.$ac_objext
10405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406  (eval $ac_compile) 2>conftest.er1
10407  ac_status=$?
10408  grep -v '^ *+' conftest.er1 >conftest.err
10409  rm -f conftest.er1
10410  cat conftest.err >&5
10411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412  (exit $ac_status); } &&
10413	 { ac_try='test -z "$ac_c_werror_flag"
10414			 || test ! -s conftest.err'
10415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416  (eval $ac_try) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); }; } &&
10420	 { ac_try='test -s conftest.$ac_objext'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; }; then
10426  ac_cv_prog_cc_stdc=$ac_arg
10427break
10428else
10429  echo "$as_me: failed program was:" >&5
10430sed 's/^/| /' conftest.$ac_ext >&5
10431
10432fi
10433rm -f conftest.err conftest.$ac_objext
10434done
10435rm -f conftest.$ac_ext conftest.$ac_objext
10436CC=$ac_save_CC
10437
10438fi
10439
10440case "x$ac_cv_prog_cc_stdc" in
10441  x|xno)
10442    echo "$as_me:$LINENO: result: none needed" >&5
10443echo "${ECHO_T}none needed" >&6 ;;
10444  *)
10445    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10446echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10447    CC="$CC $ac_cv_prog_cc_stdc" ;;
10448esac
10449
10450# Some people use a C++ compiler to compile C.  Since we use `exit',
10451# in C++ we need to declare it.  In case someone uses the same compiler
10452# for both compiling C and C++ we need to have the C++ compiler decide
10453# the declaration of exit, since it's the most demanding environment.
10454cat >conftest.$ac_ext <<_ACEOF
10455#ifndef __cplusplus
10456  choke me
10457#endif
10458_ACEOF
10459rm -f conftest.$ac_objext
10460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461  (eval $ac_compile) 2>conftest.er1
10462  ac_status=$?
10463  grep -v '^ *+' conftest.er1 >conftest.err
10464  rm -f conftest.er1
10465  cat conftest.err >&5
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); } &&
10468	 { ac_try='test -z "$ac_c_werror_flag"
10469			 || test ! -s conftest.err'
10470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471  (eval $ac_try) 2>&5
10472  ac_status=$?
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); }; } &&
10475	 { ac_try='test -s conftest.$ac_objext'
10476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477  (eval $ac_try) 2>&5
10478  ac_status=$?
10479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480  (exit $ac_status); }; }; then
10481  for ac_declaration in \
10482   '' \
10483   'extern "C" void std::exit (int) throw (); using std::exit;' \
10484   'extern "C" void std::exit (int); using std::exit;' \
10485   'extern "C" void exit (int) throw ();' \
10486   'extern "C" void exit (int);' \
10487   'void exit (int);'
10488do
10489  cat >conftest.$ac_ext <<_ACEOF
10490/* confdefs.h.  */
10491_ACEOF
10492cat confdefs.h >>conftest.$ac_ext
10493cat >>conftest.$ac_ext <<_ACEOF
10494/* end confdefs.h.  */
10495$ac_declaration
10496#include <stdlib.h>
10497int
10498main ()
10499{
10500exit (42);
10501  ;
10502  return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext
10506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507  (eval $ac_compile) 2>conftest.er1
10508  ac_status=$?
10509  grep -v '^ *+' conftest.er1 >conftest.err
10510  rm -f conftest.er1
10511  cat conftest.err >&5
10512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513  (exit $ac_status); } &&
10514	 { ac_try='test -z "$ac_c_werror_flag"
10515			 || test ! -s conftest.err'
10516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517  (eval $ac_try) 2>&5
10518  ac_status=$?
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); }; } &&
10521	 { ac_try='test -s conftest.$ac_objext'
10522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523  (eval $ac_try) 2>&5
10524  ac_status=$?
10525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526  (exit $ac_status); }; }; then
10527  :
10528else
10529  echo "$as_me: failed program was:" >&5
10530sed 's/^/| /' conftest.$ac_ext >&5
10531
10532continue
10533fi
10534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10535  cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h.  */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h.  */
10541$ac_declaration
10542int
10543main ()
10544{
10545exit (42);
10546  ;
10547  return 0;
10548}
10549_ACEOF
10550rm -f conftest.$ac_objext
10551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552  (eval $ac_compile) 2>conftest.er1
10553  ac_status=$?
10554  grep -v '^ *+' conftest.er1 >conftest.err
10555  rm -f conftest.er1
10556  cat conftest.err >&5
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } &&
10559	 { ac_try='test -z "$ac_c_werror_flag"
10560			 || test ! -s conftest.err'
10561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562  (eval $ac_try) 2>&5
10563  ac_status=$?
10564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); }; } &&
10566	 { ac_try='test -s conftest.$ac_objext'
10567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568  (eval $ac_try) 2>&5
10569  ac_status=$?
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); }; }; then
10572  break
10573else
10574  echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577fi
10578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10579done
10580rm -f conftest*
10581if test -n "$ac_declaration"; then
10582  echo '#ifdef __cplusplus' >>confdefs.h
10583  echo $ac_declaration      >>confdefs.h
10584  echo '#endif'             >>confdefs.h
10585fi
10586
10587else
10588  echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591fi
10592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10593ac_ext=c
10594ac_cpp='$CPP $CPPFLAGS'
10595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597ac_compiler_gnu=$ac_cv_c_compiler_gnu
10598
10599
10600ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10601# If we haven't got the data from the intl directory,
10602# assume NLS is disabled.
10603USE_NLS=no
10604LIBINTL=
10605LIBINTL_DEP=
10606INCINTL=
10607XGETTEXT=
10608GMSGFMT=
10609POSUB=
10610
10611if test -f  ../intl/config.intl; then
10612  .  ../intl/config.intl
10613fi
10614echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10615echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10616if test x"$USE_NLS" != xyes; then
10617  echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
10619else
10620  echo "$as_me:$LINENO: result: yes" >&5
10621echo "${ECHO_T}yes" >&6
10622
10623cat >>confdefs.h <<\_ACEOF
10624#define ENABLE_NLS 1
10625_ACEOF
10626
10627
10628  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10629echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10630  # Look for .po and .gmo files in the source directory.
10631  CATALOGS=
10632  XLINGUAS=
10633  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10634    # If there aren't any .gmo files the shell will give us the
10635    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10636    # weeded out.
10637    case "$cat" in *\**)
10638      continue;;
10639    esac
10640    # The quadruple backslash is collapsed to a double backslash
10641    # by the backticks, then collapsed again by the double quotes,
10642    # leaving us with one backslash in the sed expression (right
10643    # before the dot that mustn't act as a wildcard).
10644    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10645    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10646    # The user is allowed to set LINGUAS to a list of languages to
10647    # install catalogs for.  If it's empty that means "all of them."
10648    if test "x$LINGUAS" = x; then
10649      CATALOGS="$CATALOGS $cat"
10650      XLINGUAS="$XLINGUAS $lang"
10651    else
10652      case "$LINGUAS" in *$lang*)
10653        CATALOGS="$CATALOGS $cat"
10654        XLINGUAS="$XLINGUAS $lang"
10655        ;;
10656      esac
10657    fi
10658  done
10659  LINGUAS="$XLINGUAS"
10660  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10661echo "${ECHO_T}$LINGUAS" >&6
10662
10663
10664    DATADIRNAME=share
10665
10666  INSTOBJEXT=.mo
10667
10668  GENCAT=gencat
10669
10670  CATOBJEXT=.gmo
10671
10672fi
10673
10674        MKINSTALLDIRS=
10675  if test -n "$ac_aux_dir"; then
10676    case "$ac_aux_dir" in
10677      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10678      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10679    esac
10680  fi
10681  if test -z "$MKINSTALLDIRS"; then
10682    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10683  fi
10684
10685
10686
10687  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10688echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10689    # Check whether --enable-nls or --disable-nls was given.
10690if test "${enable_nls+set}" = set; then
10691  enableval="$enable_nls"
10692  USE_NLS=$enableval
10693else
10694  USE_NLS=yes
10695fi;
10696  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10697echo "${ECHO_T}$USE_NLS" >&6
10698
10699
10700
10701
10702
10703
10704# Prepare PATH_SEPARATOR.
10705# The user is always right.
10706if test "${PATH_SEPARATOR+set}" != set; then
10707  echo "#! /bin/sh" >conf$$.sh
10708  echo  "exit 0"   >>conf$$.sh
10709  chmod +x conf$$.sh
10710  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10711    PATH_SEPARATOR=';'
10712  else
10713    PATH_SEPARATOR=:
10714  fi
10715  rm -f conf$$.sh
10716fi
10717
10718# Find out how to test for executable files. Don't use a zero-byte file,
10719# as systems may use methods other than mode bits to determine executability.
10720cat >conf$$.file <<_ASEOF
10721#! /bin/sh
10722exit 0
10723_ASEOF
10724chmod +x conf$$.file
10725if test -x conf$$.file >/dev/null 2>&1; then
10726  ac_executable_p="test -x"
10727else
10728  ac_executable_p="test -f"
10729fi
10730rm -f conf$$.file
10731
10732# Extract the first word of "msgfmt", so it can be a program name with args.
10733set dummy msgfmt; ac_word=$2
10734echo "$as_me:$LINENO: checking for $ac_word" >&5
10735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10736if test "${ac_cv_path_MSGFMT+set}" = set; then
10737  echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739  case "$MSGFMT" in
10740  [\\/]* | ?:[\\/]*)
10741    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10742    ;;
10743  *)
10744    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10745    for ac_dir in $PATH; do
10746      IFS="$ac_save_IFS"
10747      test -z "$ac_dir" && ac_dir=.
10748      for ac_exec_ext in '' $ac_executable_extensions; do
10749        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10750          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10751     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10752            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10753            break 2
10754          fi
10755        fi
10756      done
10757    done
10758    IFS="$ac_save_IFS"
10759  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10760    ;;
10761esac
10762fi
10763MSGFMT="$ac_cv_path_MSGFMT"
10764if test "$MSGFMT" != ":"; then
10765  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10766echo "${ECHO_T}$MSGFMT" >&6
10767else
10768  echo "$as_me:$LINENO: result: no" >&5
10769echo "${ECHO_T}no" >&6
10770fi
10771
10772  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10773set dummy gmsgfmt; ac_word=$2
10774echo "$as_me:$LINENO: checking for $ac_word" >&5
10775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10776if test "${ac_cv_path_GMSGFMT+set}" = set; then
10777  echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779  case $GMSGFMT in
10780  [\\/]* | ?:[\\/]*)
10781  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10782  ;;
10783  *)
10784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785for as_dir in $PATH
10786do
10787  IFS=$as_save_IFS
10788  test -z "$as_dir" && as_dir=.
10789  for ac_exec_ext in '' $ac_executable_extensions; do
10790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10793    break 2
10794  fi
10795done
10796done
10797
10798  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10799  ;;
10800esac
10801fi
10802GMSGFMT=$ac_cv_path_GMSGFMT
10803
10804if test -n "$GMSGFMT"; then
10805  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10806echo "${ECHO_T}$GMSGFMT" >&6
10807else
10808  echo "$as_me:$LINENO: result: no" >&5
10809echo "${ECHO_T}no" >&6
10810fi
10811
10812
10813
10814# Prepare PATH_SEPARATOR.
10815# The user is always right.
10816if test "${PATH_SEPARATOR+set}" != set; then
10817  echo "#! /bin/sh" >conf$$.sh
10818  echo  "exit 0"   >>conf$$.sh
10819  chmod +x conf$$.sh
10820  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10821    PATH_SEPARATOR=';'
10822  else
10823    PATH_SEPARATOR=:
10824  fi
10825  rm -f conf$$.sh
10826fi
10827
10828# Find out how to test for executable files. Don't use a zero-byte file,
10829# as systems may use methods other than mode bits to determine executability.
10830cat >conf$$.file <<_ASEOF
10831#! /bin/sh
10832exit 0
10833_ASEOF
10834chmod +x conf$$.file
10835if test -x conf$$.file >/dev/null 2>&1; then
10836  ac_executable_p="test -x"
10837else
10838  ac_executable_p="test -f"
10839fi
10840rm -f conf$$.file
10841
10842# Extract the first word of "xgettext", so it can be a program name with args.
10843set dummy xgettext; ac_word=$2
10844echo "$as_me:$LINENO: checking for $ac_word" >&5
10845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846if test "${ac_cv_path_XGETTEXT+set}" = set; then
10847  echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849  case "$XGETTEXT" in
10850  [\\/]* | ?:[\\/]*)
10851    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10852    ;;
10853  *)
10854    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10855    for ac_dir in $PATH; do
10856      IFS="$ac_save_IFS"
10857      test -z "$ac_dir" && ac_dir=.
10858      for ac_exec_ext in '' $ac_executable_extensions; do
10859        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10860          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10861     (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
10862            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10863            break 2
10864          fi
10865        fi
10866      done
10867    done
10868    IFS="$ac_save_IFS"
10869  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10870    ;;
10871esac
10872fi
10873XGETTEXT="$ac_cv_path_XGETTEXT"
10874if test "$XGETTEXT" != ":"; then
10875  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10876echo "${ECHO_T}$XGETTEXT" >&6
10877else
10878  echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882    rm -f messages.po
10883
10884
10885# Prepare PATH_SEPARATOR.
10886# The user is always right.
10887if test "${PATH_SEPARATOR+set}" != set; then
10888  echo "#! /bin/sh" >conf$$.sh
10889  echo  "exit 0"   >>conf$$.sh
10890  chmod +x conf$$.sh
10891  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10892    PATH_SEPARATOR=';'
10893  else
10894    PATH_SEPARATOR=:
10895  fi
10896  rm -f conf$$.sh
10897fi
10898
10899# Find out how to test for executable files. Don't use a zero-byte file,
10900# as systems may use methods other than mode bits to determine executability.
10901cat >conf$$.file <<_ASEOF
10902#! /bin/sh
10903exit 0
10904_ASEOF
10905chmod +x conf$$.file
10906if test -x conf$$.file >/dev/null 2>&1; then
10907  ac_executable_p="test -x"
10908else
10909  ac_executable_p="test -f"
10910fi
10911rm -f conf$$.file
10912
10913# Extract the first word of "msgmerge", so it can be a program name with args.
10914set dummy msgmerge; ac_word=$2
10915echo "$as_me:$LINENO: checking for $ac_word" >&5
10916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917if test "${ac_cv_path_MSGMERGE+set}" = set; then
10918  echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920  case "$MSGMERGE" in
10921  [\\/]* | ?:[\\/]*)
10922    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10923    ;;
10924  *)
10925    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10926    for ac_dir in $PATH; do
10927      IFS="$ac_save_IFS"
10928      test -z "$ac_dir" && ac_dir=.
10929      for ac_exec_ext in '' $ac_executable_extensions; do
10930        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10931          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10932            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10933            break 2
10934          fi
10935        fi
10936      done
10937    done
10938    IFS="$ac_save_IFS"
10939  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10940    ;;
10941esac
10942fi
10943MSGMERGE="$ac_cv_path_MSGMERGE"
10944if test "$MSGMERGE" != ":"; then
10945  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10946echo "${ECHO_T}$MSGMERGE" >&6
10947else
10948  echo "$as_me:$LINENO: result: no" >&5
10949echo "${ECHO_T}no" >&6
10950fi
10951
10952
10953      if test "$GMSGFMT" != ":"; then
10954            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10955       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10956      : ;
10957    else
10958      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10959      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10960echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10961      GMSGFMT=":"
10962    fi
10963  fi
10964
10965      if test "$XGETTEXT" != ":"; then
10966            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10967       (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
10968      : ;
10969    else
10970      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10971echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10972      XGETTEXT=":"
10973    fi
10974        rm -f messages.po
10975  fi
10976
10977            ac_config_commands="$ac_config_commands default-1"
10978
10979
10980
10981. ${srcdir}/../bfd/configure.host
10982
10983# Put a plausible default for CC_FOR_BUILD in Makefile.
10984if test -z "$CC_FOR_BUILD"; then
10985  if test "x$cross_compiling" = "xno"; then
10986    CC_FOR_BUILD='$(CC)'
10987  else
10988    CC_FOR_BUILD=gcc
10989  fi
10990fi
10991
10992# Also set EXEEXT_FOR_BUILD.
10993if test "x$cross_compiling" = "xno"; then
10994  EXEEXT_FOR_BUILD='$(EXEEXT)'
10995else
10996  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10997echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10998if test "${bfd_cv_build_exeext+set}" = set; then
10999  echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001  rm -f conftest*
11002     echo 'int main () { return 0; }' > conftest.c
11003     bfd_cv_build_exeext=
11004     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11005     for file in conftest.*; do
11006       case $file in
11007       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11008       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11009       esac
11010     done
11011     rm -f conftest*
11012     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11013fi
11014echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11015echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11016  EXEEXT_FOR_BUILD=""
11017  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11018fi
11019
11020
11021
11022# Find a good install program.  We prefer a C program (faster),
11023# so one script is as good as another.  But avoid the broken or
11024# incompatible versions:
11025# SysV /etc/install, /usr/sbin/install
11026# SunOS /usr/etc/install
11027# IRIX /sbin/install
11028# AIX /bin/install
11029# AmigaOS /C/install, which installs bootblocks on floppy discs
11030# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11031# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11032# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11033# OS/2's system install, which has a completely different semantic
11034# ./install, which can be erroneously created by make from ./install.sh.
11035echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11036echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11037if test -z "$INSTALL"; then
11038if test "${ac_cv_path_install+set}" = set; then
11039  echo $ECHO_N "(cached) $ECHO_C" >&6
11040else
11041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044  IFS=$as_save_IFS
11045  test -z "$as_dir" && as_dir=.
11046  # Account for people who put trailing slashes in PATH elements.
11047case $as_dir/ in
11048  ./ | .// | /cC/* | \
11049  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11050  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11051  /usr/ucb/* ) ;;
11052  *)
11053    # OSF1 and SCO ODT 3.0 have their own names for install.
11054    # Don't use installbsd from OSF since it installs stuff as root
11055    # by default.
11056    for ac_prog in ginstall scoinst install; do
11057      for ac_exec_ext in '' $ac_executable_extensions; do
11058	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11059	  if test $ac_prog = install &&
11060	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11061	    # AIX install.  It has an incompatible calling convention.
11062	    :
11063	  elif test $ac_prog = install &&
11064	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11065	    # program-specific install script used by HP pwplus--don't use.
11066	    :
11067	  else
11068	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11069	    break 3
11070	  fi
11071	fi
11072      done
11073    done
11074    ;;
11075esac
11076done
11077
11078
11079fi
11080  if test "${ac_cv_path_install+set}" = set; then
11081    INSTALL=$ac_cv_path_install
11082  else
11083    # As a last resort, use the slow shell script.  We don't cache a
11084    # path for INSTALL within a source directory, because that will
11085    # break other packages using the cache if that directory is
11086    # removed, or if the path is relative.
11087    INSTALL=$ac_install_sh
11088  fi
11089fi
11090echo "$as_me:$LINENO: result: $INSTALL" >&5
11091echo "${ECHO_T}$INSTALL" >&6
11092
11093# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11094# It thinks the first close brace ends the variable substitution.
11095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11096
11097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11098
11099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11100
11101
11102
11103
11104
11105for ac_header in string.h strings.h stdlib.h
11106do
11107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11108if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109  echo "$as_me:$LINENO: checking for $ac_header" >&5
11110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11111if eval "test \"\${$as_ac_Header+set}\" = set"; then
11112  echo $ECHO_N "(cached) $ECHO_C" >&6
11113fi
11114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116else
11117  # Is the header compilable?
11118echo "$as_me:$LINENO: checking $ac_header usability" >&5
11119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11120cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h.  */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h.  */
11126$ac_includes_default
11127#include <$ac_header>
11128_ACEOF
11129rm -f conftest.$ac_objext
11130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131  (eval $ac_compile) 2>conftest.er1
11132  ac_status=$?
11133  grep -v '^ *+' conftest.er1 >conftest.err
11134  rm -f conftest.er1
11135  cat conftest.err >&5
11136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137  (exit $ac_status); } &&
11138	 { ac_try='test -z "$ac_c_werror_flag"
11139			 || test ! -s conftest.err'
11140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141  (eval $ac_try) 2>&5
11142  ac_status=$?
11143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); }; } &&
11145	 { ac_try='test -s conftest.$ac_objext'
11146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147  (eval $ac_try) 2>&5
11148  ac_status=$?
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); }; }; then
11151  ac_header_compiler=yes
11152else
11153  echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156ac_header_compiler=no
11157fi
11158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160echo "${ECHO_T}$ac_header_compiler" >&6
11161
11162# Is the header present?
11163echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h.  */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h.  */
11171#include <$ac_header>
11172_ACEOF
11173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11175  ac_status=$?
11176  grep -v '^ *+' conftest.er1 >conftest.err
11177  rm -f conftest.er1
11178  cat conftest.err >&5
11179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180  (exit $ac_status); } >/dev/null; then
11181  if test -s conftest.err; then
11182    ac_cpp_err=$ac_c_preproc_warn_flag
11183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11184  else
11185    ac_cpp_err=
11186  fi
11187else
11188  ac_cpp_err=yes
11189fi
11190if test -z "$ac_cpp_err"; then
11191  ac_header_preproc=yes
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196  ac_header_preproc=no
11197fi
11198rm -f conftest.err conftest.$ac_ext
11199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11200echo "${ECHO_T}$ac_header_preproc" >&6
11201
11202# So?  What about this header?
11203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11204  yes:no: )
11205    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11209    ac_header_preproc=yes
11210    ;;
11211  no:yes:* )
11212    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11214    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11215echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11216    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11218    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11219echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11220    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11224    (
11225      cat <<\_ASBOX
11226## ------------------------------------------ ##
11227## Report this to the AC_PACKAGE_NAME lists.  ##
11228## ------------------------------------------ ##
11229_ASBOX
11230    ) |
11231      sed "s/^/$as_me: WARNING:     /" >&2
11232    ;;
11233esac
11234echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11236if eval "test \"\${$as_ac_Header+set}\" = set"; then
11237  echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239  eval "$as_ac_Header=\$ac_header_preproc"
11240fi
11241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11243
11244fi
11245if test `eval echo '${'$as_ac_Header'}'` = yes; then
11246  cat >>confdefs.h <<_ACEOF
11247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11248_ACEOF
11249
11250fi
11251
11252done
11253
11254
11255echo "$as_me:$LINENO: checking whether basename is declared" >&5
11256echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11257if test "${ac_cv_have_decl_basename+set}" = set; then
11258  echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
11260  cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h.  */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h.  */
11266$ac_includes_default
11267int
11268main ()
11269{
11270#ifndef basename
11271  char *p = (char *) basename;
11272#endif
11273
11274  ;
11275  return 0;
11276}
11277_ACEOF
11278rm -f conftest.$ac_objext
11279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280  (eval $ac_compile) 2>conftest.er1
11281  ac_status=$?
11282  grep -v '^ *+' conftest.er1 >conftest.err
11283  rm -f conftest.er1
11284  cat conftest.err >&5
11285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286  (exit $ac_status); } &&
11287	 { ac_try='test -z "$ac_c_werror_flag"
11288			 || test ! -s conftest.err'
11289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290  (eval $ac_try) 2>&5
11291  ac_status=$?
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); }; } &&
11294	 { ac_try='test -s conftest.$ac_objext'
11295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296  (eval $ac_try) 2>&5
11297  ac_status=$?
11298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299  (exit $ac_status); }; }; then
11300  ac_cv_have_decl_basename=yes
11301else
11302  echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
11305ac_cv_have_decl_basename=no
11306fi
11307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308fi
11309echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11310echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11311if test $ac_cv_have_decl_basename = yes; then
11312
11313cat >>confdefs.h <<_ACEOF
11314#define HAVE_DECL_BASENAME 1
11315_ACEOF
11316
11317
11318else
11319  cat >>confdefs.h <<_ACEOF
11320#define HAVE_DECL_BASENAME 0
11321_ACEOF
11322
11323
11324fi
11325
11326
11327
11328cgen_maint=no
11329cgendir='$(srcdir)/../cgen'
11330
11331# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11332if test "${enable_cgen_maint+set}" = set; then
11333  enableval="$enable_cgen_maint"
11334  case "${enableval}" in
11335  yes)	cgen_maint=yes ;;
11336  no)	cgen_maint=no ;;
11337  *)
11338	# argument is cgen install directory (not implemented yet).
11339	# Having a `share' directory might be more appropriate for the .scm,
11340	# .cpu, etc. files.
11341	cgen_maint=yes
11342	cgendir=${cgen_maint}/lib/cgen
11343	;;
11344esac
11345fi;
11346
11347if test x${cgen_maint} = xyes; then
11348  CGEN_MAINT_TRUE=
11349  CGEN_MAINT_FALSE='#'
11350else
11351  CGEN_MAINT_TRUE='#'
11352  CGEN_MAINT_FALSE=
11353fi
11354
11355
11356
11357using_cgen=no
11358
11359# Horrible hacks to build DLLs on Windows.
11360WIN32LDFLAGS=
11361WIN32LIBADD=
11362case "${host}" in
11363*-*-cygwin*)
11364  if test "$enable_shared" = "yes"; then
11365    WIN32LDFLAGS="-no-undefined"
11366    WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11367  fi
11368  ;;
11369esac
11370
11371
11372
11373# target-specific stuff:
11374
11375# Canonicalize the secondary target names.
11376if test -n "$enable_targets" ; then
11377    for targ in `echo $enable_targets | sed 's/,/ /g'`
11378    do
11379	result=`$ac_config_sub $targ 2>/dev/null`
11380	if test -n "$result" ; then
11381	    canon_targets="$canon_targets $result"
11382	else
11383	    # Allow targets that config.sub doesn't recognize, like "all".
11384	    canon_targets="$canon_targets $targ"
11385	fi
11386    done
11387fi
11388
11389all_targets=false
11390selarchs=
11391for targ in $target $canon_targets
11392do
11393    if test "x$targ" = "xall" ; then
11394        all_targets=true
11395    else
11396	. $srcdir/../bfd/config.bfd
11397	selarchs="$selarchs $targ_archs"
11398    fi
11399done
11400
11401# Utility var, documents generic cgen support files.
11402
11403cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11404
11405# We don't do any links based on the target system, just makefile config.
11406
11407if test x${all_targets} = xfalse ; then
11408
11409    # Target architecture .o files.
11410    ta=
11411
11412    for arch in $selarchs
11413    do
11414	ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11415	archdefs="$archdefs -DARCH_$ad"
11416	case "$arch" in
11417	bfd_alpha_arch)		ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11418	bfd_arc_arch)		ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11419	bfd_arm_arch)		ta="$ta arm-dis.lo" ;;
11420	bfd_avr_arch)		ta="$ta avr-dis.lo" ;;
11421	bfd_bfin_arch)		ta="$ta bfin-dis.lo" ;;
11422	bfd_cr16_arch)    	ta="$ta cr16-dis.lo cr16-opc.lo" ;;
11423	bfd_cris_arch)		ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11424	bfd_crx_arch)    	ta="$ta crx-dis.lo crx-opc.lo" ;;
11425	bfd_d10v_arch)		ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11426	bfd_d30v_arch)		ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11427	bfd_dlx_arch)		ta="$ta dlx-dis.lo" ;;
11428	bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11429	bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11430	bfd_h8300_arch)		ta="$ta h8300-dis.lo" ;;
11431	bfd_h8500_arch)		ta="$ta h8500-dis.lo" ;;
11432	bfd_hppa_arch)		ta="$ta hppa-dis.lo" ;;
11433	bfd_i370_arch)		ta="$ta i370-dis.lo i370-opc.lo" ;;
11434	bfd_i386_arch)		ta="$ta i386-dis.lo i386-opc.lo" ;;
11435	bfd_i860_arch)		ta="$ta i860-dis.lo" ;;
11436	bfd_i960_arch)		ta="$ta i960-dis.lo" ;;
11437	bfd_ia64_arch)		ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11438	bfd_ip2k_arch)		ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11439        bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11440	bfd_m32c_arch)		ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11441	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 ;;
11442	bfd_m68hc11_arch)	ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11443	bfd_m68hc12_arch)	ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11444	bfd_m68k_arch)		ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11445	bfd_m88k_arch)		ta="$ta m88k-dis.lo" ;;
11446	bfd_maxq_arch)		ta="$ta maxq-dis.lo" ;;
11447	bfd_mcore_arch)		ta="$ta mcore-dis.lo" ;;
11448	bfd_mep_arch)		ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11449	bfd_mips_arch)		ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11450	bfd_mmix_arch)		ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11451	bfd_mn10200_arch)	ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11452	bfd_mn10300_arch)	ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11453	bfd_mt_arch)		ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11454	bfd_msp430_arch)	ta="$ta msp430-dis.lo" ;;
11455	bfd_ns32k_arch)		ta="$ta ns32k-dis.lo" ;;
11456	bfd_openrisc_arch)	ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11457	bfd_or32_arch)		ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11458	bfd_pdp11_arch)		ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11459	bfd_pj_arch)	        ta="$ta pj-dis.lo pj-opc.lo" ;;
11460	bfd_powerpc_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11461	bfd_powerpc_64_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11462	bfd_pyramid_arch)	;;
11463	bfd_romp_arch)		;;
11464	bfd_rs6000_arch)	ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11465	bfd_s390_arch)		ta="$ta s390-dis.lo s390-opc.lo" ;;
11466	bfd_score_arch)         ta="$ta score-dis.lo" ;;
11467	bfd_sh_arch)
11468	  # We can't decide what we want just from the CPU family.
11469	  # We want SH5 support unless a specific version of sh is
11470	  # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11471	  # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11472	  for t in $target $canon_targets; do
11473	    case $t in
11474	      all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11475	      sh-*-linux* | shl-*-linux*)
11476				ta="$ta sh64-dis.lo sh64-opc.lo"
11477				archdefs="$archdefs -DINCLUDE_SHMEDIA"
11478				break;;
11479	    esac;
11480	  done
11481				ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11482	bfd_sparc_arch)		ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11483	bfd_spu_arch)		ta="$ta spu-dis.lo spu-opc.lo" ;;
11484	bfd_tahoe_arch)		;;
11485	bfd_tic30_arch)		ta="$ta tic30-dis.lo" ;;
11486        bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
11487	bfd_tic54x_arch)	ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11488	bfd_tic80_arch)		ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11489	bfd_v850_arch)		ta="$ta v850-opc.lo v850-dis.lo" ;;
11490	bfd_v850e_arch)		ta="$ta v850-opc.lo v850-dis.lo" ;;
11491	bfd_v850ea_arch)	ta="$ta v850-opc.lo v850-dis.lo" ;;
11492	bfd_vax_arch)		ta="$ta vax-dis.lo" ;;
11493	bfd_w65_arch)		ta="$ta w65-dis.lo" ;;
11494	bfd_we32k_arch)		;;
11495	bfd_xc16x_arch)		ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11496	bfd_xstormy16_arch)	ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11497	bfd_xtensa_arch)	ta="$ta xtensa-dis.lo" ;;
11498	bfd_z80_arch)		ta="$ta z80-dis.lo" ;;
11499	bfd_z8k_arch)		ta="$ta z8k-dis.lo" ;;
11500
11501	"")			;;
11502	*)		{ { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11503echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11504   { (exit 1); exit 1; }; } ;;
11505	esac
11506    done
11507
11508    if test $using_cgen = yes ; then
11509	ta="$ta $cgen_files"
11510    fi
11511
11512    # Weed out duplicate .o files.
11513    f=""
11514    for i in $ta ; do
11515	case " $f " in
11516	*" $i "*) ;;
11517	*) f="$f $i" ;;
11518	esac
11519    done
11520    ta="$f"
11521
11522    # And duplicate -D flags.
11523    f=""
11524    for i in $archdefs ; do
11525	case " $f " in
11526	*" $i "*) ;;
11527	*) f="$f $i" ;;
11528	esac
11529    done
11530    archdefs="$f"
11531
11532    BFD_MACHINES="$ta"
11533
11534else	# all_targets is true
11535    archdefs=-DARCH_all
11536    BFD_MACHINES='$(ALL_MACHINES)'
11537fi
11538
11539
11540
11541
11542                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11543
11544cat >confcache <<\_ACEOF
11545# This file is a shell script that caches the results of configure
11546# tests run on this system so they can be shared between configure
11547# scripts and configure runs, see configure's option --config-cache.
11548# It is not useful on other systems.  If it contains results you don't
11549# want to keep, you may remove or edit it.
11550#
11551# config.status only pays attention to the cache file if you give it
11552# the --recheck option to rerun configure.
11553#
11554# `ac_cv_env_foo' variables (set or unset) will be overridden when
11555# loading this file, other *unset* `ac_cv_foo' will be assigned the
11556# following values.
11557
11558_ACEOF
11559
11560# The following way of writing the cache mishandles newlines in values,
11561# but we know of no workaround that is simple, portable, and efficient.
11562# So, don't put newlines in cache variables' values.
11563# Ultrix sh set writes to stderr and can't be redirected directly,
11564# and sets the high bit in the cache file unless we assign to the vars.
11565{
11566  (set) 2>&1 |
11567    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11568    *ac_space=\ *)
11569      # `set' does not quote correctly, so add quotes (double-quote
11570      # substitution turns \\\\ into \\, and sed turns \\ into \).
11571      sed -n \
11572	"s/'/'\\\\''/g;
11573	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11574      ;;
11575    *)
11576      # `set' quotes correctly as required by POSIX, so do not add quotes.
11577      sed -n \
11578	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11579      ;;
11580    esac;
11581} |
11582  sed '
11583     t clear
11584     : clear
11585     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11586     t end
11587     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11588     : end' >>confcache
11589if diff $cache_file confcache >/dev/null 2>&1; then :; else
11590  if test -w $cache_file; then
11591    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11592    cat confcache >$cache_file
11593  else
11594    echo "not updating unwritable cache $cache_file"
11595  fi
11596fi
11597rm -f confcache
11598
11599test "x$prefix" = xNONE && prefix=$ac_default_prefix
11600# Let make expand exec_prefix.
11601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11602
11603# VPATH may cause trouble with some makes, so we remove $(srcdir),
11604# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11605# trailing colons and then remove the whole line if VPATH becomes empty
11606# (actually we leave an empty line to preserve line numbers).
11607if test "x$srcdir" = x.; then
11608  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11609s/:*\$(srcdir):*/:/;
11610s/:*\${srcdir}:*/:/;
11611s/:*@srcdir@:*/:/;
11612s/^\([^=]*=[	 ]*\):*/\1/;
11613s/:*$//;
11614s/^[^=]*=[	 ]*$//;
11615}'
11616fi
11617
11618DEFS=-DHAVE_CONFIG_H
11619
11620ac_libobjs=
11621ac_ltlibobjs=
11622for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11623  # 1. Remove the extension, and $U if already installed.
11624  ac_i=`echo "$ac_i" |
11625	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11626  # 2. Add them.
11627  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11628  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11629done
11630LIBOBJS=$ac_libobjs
11631
11632LTLIBOBJS=$ac_ltlibobjs
11633
11634
11635if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11636  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11637Usually this means the macro was only invoked conditionally." >&5
11638echo "$as_me: error: conditional \"AMDEP\" was never defined.
11639Usually this means the macro was only invoked conditionally." >&2;}
11640   { (exit 1); exit 1; }; }
11641fi
11642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11643  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11644Usually this means the macro was only invoked conditionally." >&5
11645echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11646Usually this means the macro was only invoked conditionally." >&2;}
11647   { (exit 1); exit 1; }; }
11648fi
11649if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11650  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11651Usually this means the macro was only invoked conditionally." >&5
11652echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11653Usually this means the macro was only invoked conditionally." >&2;}
11654   { (exit 1); exit 1; }; }
11655fi
11656if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11657  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11658Usually this means the macro was only invoked conditionally." >&5
11659echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11660Usually this means the macro was only invoked conditionally." >&2;}
11661   { (exit 1); exit 1; }; }
11662fi
11663if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11664  { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11665Usually this means the macro was only invoked conditionally." >&5
11666echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11667Usually this means the macro was only invoked conditionally." >&2;}
11668   { (exit 1); exit 1; }; }
11669fi
11670
11671: ${CONFIG_STATUS=./config.status}
11672ac_clean_files_save=$ac_clean_files
11673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11674{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11675echo "$as_me: creating $CONFIG_STATUS" >&6;}
11676cat >$CONFIG_STATUS <<_ACEOF
11677#! $SHELL
11678# Generated by $as_me.
11679# Run this file to recreate the current configuration.
11680# Compiler output produced by configure, useful for debugging
11681# configure, is in config.log if it exists.
11682
11683debug=false
11684ac_cs_recheck=false
11685ac_cs_silent=false
11686SHELL=\${CONFIG_SHELL-$SHELL}
11687_ACEOF
11688
11689cat >>$CONFIG_STATUS <<\_ACEOF
11690## --------------------- ##
11691## M4sh Initialization.  ##
11692## --------------------- ##
11693
11694# Be Bourne compatible
11695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11696  emulate sh
11697  NULLCMD=:
11698  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11699  # is contrary to our usage.  Disable this feature.
11700  alias -g '${1+"$@"}'='"$@"'
11701elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11702  set -o posix
11703fi
11704DUALCASE=1; export DUALCASE # for MKS sh
11705
11706# Support unset when possible.
11707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11708  as_unset=unset
11709else
11710  as_unset=false
11711fi
11712
11713
11714# Work around bugs in pre-3.0 UWIN ksh.
11715$as_unset ENV MAIL MAILPATH
11716PS1='$ '
11717PS2='> '
11718PS4='+ '
11719
11720# NLS nuisances.
11721for as_var in \
11722  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11723  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11724  LC_TELEPHONE LC_TIME
11725do
11726  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11727    eval $as_var=C; export $as_var
11728  else
11729    $as_unset $as_var
11730  fi
11731done
11732
11733# Required to use basename.
11734if expr a : '\(a\)' >/dev/null 2>&1; then
11735  as_expr=expr
11736else
11737  as_expr=false
11738fi
11739
11740if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11741  as_basename=basename
11742else
11743  as_basename=false
11744fi
11745
11746
11747# Name of the executable.
11748as_me=`$as_basename "$0" ||
11749$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11750	 X"$0" : 'X\(//\)$' \| \
11751	 X"$0" : 'X\(/\)$' \| \
11752	 .     : '\(.\)' 2>/dev/null ||
11753echo X/"$0" |
11754    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11755  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
11756  	  /^X\/\(\/\).*/{ s//\1/; q; }
11757  	  s/.*/./; q'`
11758
11759
11760# PATH needs CR, and LINENO needs CR and PATH.
11761# Avoid depending upon Character Ranges.
11762as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11764as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11765as_cr_digits='0123456789'
11766as_cr_alnum=$as_cr_Letters$as_cr_digits
11767
11768# The user is always right.
11769if test "${PATH_SEPARATOR+set}" != set; then
11770  echo "#! /bin/sh" >conf$$.sh
11771  echo  "exit 0"   >>conf$$.sh
11772  chmod +x conf$$.sh
11773  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11774    PATH_SEPARATOR=';'
11775  else
11776    PATH_SEPARATOR=:
11777  fi
11778  rm -f conf$$.sh
11779fi
11780
11781
11782  as_lineno_1=$LINENO
11783  as_lineno_2=$LINENO
11784  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11785  test "x$as_lineno_1" != "x$as_lineno_2" &&
11786  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11787  # Find who we are.  Look in the path if we contain no path at all
11788  # relative or not.
11789  case $0 in
11790    *[\\/]* ) as_myself=$0 ;;
11791    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794  IFS=$as_save_IFS
11795  test -z "$as_dir" && as_dir=.
11796  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11797done
11798
11799       ;;
11800  esac
11801  # We did not find ourselves, most probably we were run as `sh COMMAND'
11802  # in which case we are not to be found in the path.
11803  if test "x$as_myself" = x; then
11804    as_myself=$0
11805  fi
11806  if test ! -f "$as_myself"; then
11807    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11808echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11809   { (exit 1); exit 1; }; }
11810  fi
11811  case $CONFIG_SHELL in
11812  '')
11813    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11815do
11816  IFS=$as_save_IFS
11817  test -z "$as_dir" && as_dir=.
11818  for as_base in sh bash ksh sh5; do
11819	 case $as_dir in
11820	 /*)
11821	   if ("$as_dir/$as_base" -c '
11822  as_lineno_1=$LINENO
11823  as_lineno_2=$LINENO
11824  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11825  test "x$as_lineno_1" != "x$as_lineno_2" &&
11826  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11827	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11828	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11829	     CONFIG_SHELL=$as_dir/$as_base
11830	     export CONFIG_SHELL
11831	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11832	   fi;;
11833	 esac
11834       done
11835done
11836;;
11837  esac
11838
11839  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11840  # uniformly replaced by the line number.  The first 'sed' inserts a
11841  # line-number line before each line; the second 'sed' does the real
11842  # work.  The second script uses 'N' to pair each line-number line
11843  # with the numbered line, and appends trailing '-' during
11844  # substitution so that $LINENO is not a special case at line end.
11845  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11846  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11847  sed '=' <$as_myself |
11848    sed '
11849      N
11850      s,$,-,
11851      : loop
11852      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11853      t loop
11854      s,-$,,
11855      s,^['$as_cr_digits']*\n,,
11856    ' >$as_me.lineno &&
11857  chmod +x $as_me.lineno ||
11858    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11859echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11860   { (exit 1); exit 1; }; }
11861
11862  # Don't try to exec as it changes $[0], causing all sort of problems
11863  # (the dirname of $[0] is not the place where we might find the
11864  # original and so on.  Autoconf is especially sensible to this).
11865  . ./$as_me.lineno
11866  # Exit status is that of the last command.
11867  exit
11868}
11869
11870
11871case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11872  *c*,-n*) ECHO_N= ECHO_C='
11873' ECHO_T='	' ;;
11874  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11875  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11876esac
11877
11878if expr a : '\(a\)' >/dev/null 2>&1; then
11879  as_expr=expr
11880else
11881  as_expr=false
11882fi
11883
11884rm -f conf$$ conf$$.exe conf$$.file
11885echo >conf$$.file
11886if ln -s conf$$.file conf$$ 2>/dev/null; then
11887  # We could just check for DJGPP; but this test a) works b) is more generic
11888  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11889  if test -f conf$$.exe; then
11890    # Don't use ln at all; we don't have any links
11891    as_ln_s='cp -p'
11892  else
11893    as_ln_s='ln -s'
11894  fi
11895elif ln conf$$.file conf$$ 2>/dev/null; then
11896  as_ln_s=ln
11897else
11898  as_ln_s='cp -p'
11899fi
11900rm -f conf$$ conf$$.exe conf$$.file
11901
11902if mkdir -p . 2>/dev/null; then
11903  as_mkdir_p=:
11904else
11905  test -d ./-p && rmdir ./-p
11906  as_mkdir_p=false
11907fi
11908
11909as_executable_p="test -f"
11910
11911# Sed expression to map a string onto a valid CPP name.
11912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11913
11914# Sed expression to map a string onto a valid variable name.
11915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11916
11917
11918# IFS
11919# We need space, tab and new line, in precisely that order.
11920as_nl='
11921'
11922IFS=" 	$as_nl"
11923
11924# CDPATH.
11925$as_unset CDPATH
11926
11927exec 6>&1
11928
11929# Open the log real soon, to keep \$[0] and so on meaningful, and to
11930# report actual input values of CONFIG_FILES etc. instead of their
11931# values after options handling.  Logging --version etc. is OK.
11932exec 5>>config.log
11933{
11934  echo
11935  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11936## Running $as_me. ##
11937_ASBOX
11938} >&5
11939cat >&5 <<_CSEOF
11940
11941This file was extended by $as_me, which was
11942generated by GNU Autoconf 2.59.  Invocation command line was
11943
11944  CONFIG_FILES    = $CONFIG_FILES
11945  CONFIG_HEADERS  = $CONFIG_HEADERS
11946  CONFIG_LINKS    = $CONFIG_LINKS
11947  CONFIG_COMMANDS = $CONFIG_COMMANDS
11948  $ $0 $@
11949
11950_CSEOF
11951echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11952echo >&5
11953_ACEOF
11954
11955# Files that config.status was made for.
11956if test -n "$ac_config_files"; then
11957  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11958fi
11959
11960if test -n "$ac_config_headers"; then
11961  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11962fi
11963
11964if test -n "$ac_config_links"; then
11965  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11966fi
11967
11968if test -n "$ac_config_commands"; then
11969  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11970fi
11971
11972cat >>$CONFIG_STATUS <<\_ACEOF
11973
11974ac_cs_usage="\
11975\`$as_me' instantiates files from templates according to the
11976current configuration.
11977
11978Usage: $0 [OPTIONS] [FILE]...
11979
11980  -h, --help       print this help, then exit
11981  -V, --version    print version number, then exit
11982  -q, --quiet      do not print progress messages
11983  -d, --debug      don't remove temporary files
11984      --recheck    update $as_me by reconfiguring in the same conditions
11985  --file=FILE[:TEMPLATE]
11986		   instantiate the configuration file FILE
11987  --header=FILE[:TEMPLATE]
11988		   instantiate the configuration header FILE
11989
11990Configuration files:
11991$config_files
11992
11993Configuration headers:
11994$config_headers
11995
11996Configuration commands:
11997$config_commands
11998
11999Report bugs to <bug-autoconf@gnu.org>."
12000_ACEOF
12001
12002cat >>$CONFIG_STATUS <<_ACEOF
12003ac_cs_version="\\
12004config.status
12005configured by $0, generated by GNU Autoconf 2.59,
12006  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12007
12008Copyright (C) 2003 Free Software Foundation, Inc.
12009This config.status script is free software; the Free Software Foundation
12010gives unlimited permission to copy, distribute and modify it."
12011srcdir=$srcdir
12012INSTALL="$INSTALL"
12013_ACEOF
12014
12015cat >>$CONFIG_STATUS <<\_ACEOF
12016# If no file are specified by the user, then we need to provide default
12017# value.  By we need to know if files were specified by the user.
12018ac_need_defaults=:
12019while test $# != 0
12020do
12021  case $1 in
12022  --*=*)
12023    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12024    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12025    ac_shift=:
12026    ;;
12027  -*)
12028    ac_option=$1
12029    ac_optarg=$2
12030    ac_shift=shift
12031    ;;
12032  *) # This is not an option, so the user has probably given explicit
12033     # arguments.
12034     ac_option=$1
12035     ac_need_defaults=false;;
12036  esac
12037
12038  case $ac_option in
12039  # Handling of the options.
12040_ACEOF
12041cat >>$CONFIG_STATUS <<\_ACEOF
12042  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12043    ac_cs_recheck=: ;;
12044  --version | --vers* | -V )
12045    echo "$ac_cs_version"; exit 0 ;;
12046  --he | --h)
12047    # Conflict between --help and --header
12048    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12049Try \`$0 --help' for more information." >&5
12050echo "$as_me: error: ambiguous option: $1
12051Try \`$0 --help' for more information." >&2;}
12052   { (exit 1); exit 1; }; };;
12053  --help | --hel | -h )
12054    echo "$ac_cs_usage"; exit 0 ;;
12055  --debug | --d* | -d )
12056    debug=: ;;
12057  --file | --fil | --fi | --f )
12058    $ac_shift
12059    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12060    ac_need_defaults=false;;
12061  --header | --heade | --head | --hea )
12062    $ac_shift
12063    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12064    ac_need_defaults=false;;
12065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12066  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12067    ac_cs_silent=: ;;
12068
12069  # This is an error.
12070  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12071Try \`$0 --help' for more information." >&5
12072echo "$as_me: error: unrecognized option: $1
12073Try \`$0 --help' for more information." >&2;}
12074   { (exit 1); exit 1; }; } ;;
12075
12076  *) ac_config_targets="$ac_config_targets $1" ;;
12077
12078  esac
12079  shift
12080done
12081
12082ac_configure_extra_args=
12083
12084if $ac_cs_silent; then
12085  exec 6>/dev/null
12086  ac_configure_extra_args="$ac_configure_extra_args --silent"
12087fi
12088
12089_ACEOF
12090cat >>$CONFIG_STATUS <<_ACEOF
12091if \$ac_cs_recheck; then
12092  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12093  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12094fi
12095
12096_ACEOF
12097
12098cat >>$CONFIG_STATUS <<_ACEOF
12099#
12100# INIT-COMMANDS section.
12101#
12102
12103AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12104
12105
12106# The HP-UX ksh and POSIX shell print the target directory to stdout
12107# if CDPATH is set.
12108(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12109
12110sed_quote_subst='$sed_quote_subst'
12111double_quote_subst='$double_quote_subst'
12112delay_variable_subst='$delay_variable_subst'
12113enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12114macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12115macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12116enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12117pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12118enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12119host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12120host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12121host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12122build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12123build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12124build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12125SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12126Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12127GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12128EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12129FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12130LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12131NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12132LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12133max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12134ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12135exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12136lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12137lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12138lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12139reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12140reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12142file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12143AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12144AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12145STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12146RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12147old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12151CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12152compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12153GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12154lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12155lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12156lt_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"`'
12157objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12158SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12159ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12160MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12161lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12162lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12163lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12164lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12165lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12166need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12167libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12168shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12169extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12171enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12172export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12173whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12174compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12175old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12176old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12180module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12181with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12182allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12183no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12184hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12185hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12186hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12187hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12188hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12189hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12190hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12191hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12192inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12193link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12194fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12195always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12196export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12197exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12198include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12199prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12200file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12201variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12202need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12203need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12204version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12205runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12206shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12207shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12208libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12209library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12210soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12211postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12212postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12213finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12214finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12215hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12216sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12217sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12218hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12219enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12220enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12221enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12222old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12223striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12224
12225LTCC='$LTCC'
12226LTCFLAGS='$LTCFLAGS'
12227compiler='$compiler_DEFAULT'
12228
12229# Quote evaled strings.
12230for var in SED \
12231GREP \
12232EGREP \
12233FGREP \
12234LD \
12235NM \
12236LN_S \
12237lt_SP2NL \
12238lt_NL2SP \
12239reload_flag \
12240deplibs_check_method \
12241file_magic_cmd \
12242AR \
12243AR_FLAGS \
12244STRIP \
12245RANLIB \
12246CC \
12247CFLAGS \
12248compiler \
12249lt_cv_sys_global_symbol_pipe \
12250lt_cv_sys_global_symbol_to_cdecl \
12251lt_cv_sys_global_symbol_to_c_name_address \
12252SHELL \
12253ECHO \
12254lt_prog_compiler_no_builtin_flag \
12255lt_prog_compiler_wl \
12256lt_prog_compiler_pic \
12257lt_prog_compiler_static \
12258lt_cv_prog_compiler_c_o \
12259need_locks \
12260shrext_cmds \
12261export_dynamic_flag_spec \
12262whole_archive_flag_spec \
12263compiler_needs_object \
12264with_gnu_ld \
12265allow_undefined_flag \
12266no_undefined_flag \
12267hardcode_libdir_flag_spec \
12268hardcode_libdir_flag_spec_ld \
12269hardcode_libdir_separator \
12270fix_srcfile_path \
12271exclude_expsyms \
12272include_expsyms \
12273file_list_spec \
12274variables_saved_for_relink \
12275libname_spec \
12276library_names_spec \
12277soname_spec \
12278finish_eval \
12279old_striplib \
12280striplib; do
12281    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12282    *[\\\\\\\`\\"\\\$]*)
12283      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12284      ;;
12285    *)
12286      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12287      ;;
12288    esac
12289done
12290
12291# Double-quote double-evaled strings.
12292for var in reload_cmds \
12293old_postinstall_cmds \
12294old_postuninstall_cmds \
12295old_archive_cmds \
12296extract_expsyms_cmds \
12297old_archive_from_new_cmds \
12298old_archive_from_expsyms_cmds \
12299archive_cmds \
12300archive_expsym_cmds \
12301module_cmds \
12302module_expsym_cmds \
12303export_symbols_cmds \
12304prelink_cmds \
12305postinstall_cmds \
12306postuninstall_cmds \
12307finish_cmds \
12308sys_lib_search_path_spec \
12309sys_lib_dlsearch_path_spec; do
12310    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12311    *[\\\\\\\`\\"\\\$]*)
12312      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12313      ;;
12314    *)
12315      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12316      ;;
12317    esac
12318done
12319
12320# Fix-up fallback echo if it was mangled by the above quoting rules.
12321case \$lt_ECHO in
12322*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12323  ;;
12324esac
12325
12326ac_aux_dir='$ac_aux_dir'
12327xsi_shell='$xsi_shell'
12328lt_shell_append='$lt_shell_append'
12329
12330# See if we are running on zsh, and set the options which allow our
12331# commands through without removal of \ escapes INIT.
12332if test -n "\${ZSH_VERSION+set}" ; then
12333   setopt NO_GLOB_SUBST
12334fi
12335
12336
12337    PACKAGE='$PACKAGE'
12338    VERSION='$VERSION'
12339    TIMESTAMP='$TIMESTAMP'
12340    RM='$RM'
12341    ofile='$ofile'
12342
12343
12344
12345# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12346    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12347    # from automake.
12348    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12349    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12350    LINGUAS="${LINGUAS-%UNSET%}"
12351
12352
12353_ACEOF
12354
12355
12356
12357cat >>$CONFIG_STATUS <<\_ACEOF
12358for ac_config_target in $ac_config_targets
12359do
12360  case "$ac_config_target" in
12361  # Handling of arguments.
12362  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12363  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12364  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12365  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12366  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12367  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12368  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12369echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12370   { (exit 1); exit 1; }; };;
12371  esac
12372done
12373
12374# If the user did not use the arguments to specify the items to instantiate,
12375# then the envvar interface is used.  Set only those that are not.
12376# We use the long form for the default assignment because of an extremely
12377# bizarre bug on SunOS 4.1.3.
12378if $ac_need_defaults; then
12379  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12380  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12381  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12382fi
12383
12384# Have a temporary directory for convenience.  Make it in the build tree
12385# simply because there is no reason to put it here, and in addition,
12386# creating and moving files from /tmp can sometimes cause problems.
12387# Create a temporary directory, and hook for its removal unless debugging.
12388$debug ||
12389{
12390  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12391  trap '{ (exit 1); exit 1; }' 1 2 13 15
12392}
12393
12394# Create a (secure) tmp directory for tmp files.
12395
12396{
12397  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12398  test -n "$tmp" && test -d "$tmp"
12399}  ||
12400{
12401  tmp=./confstat$$-$RANDOM
12402  (umask 077 && mkdir $tmp)
12403} ||
12404{
12405   echo "$me: cannot create a temporary directory in ." >&2
12406   { (exit 1); exit 1; }
12407}
12408
12409_ACEOF
12410
12411cat >>$CONFIG_STATUS <<_ACEOF
12412
12413#
12414# CONFIG_FILES section.
12415#
12416
12417# No need to generate the scripts if there are no CONFIG_FILES.
12418# This happens for instance when ./config.status config.h
12419if test -n "\$CONFIG_FILES"; then
12420  # Protect against being on the right side of a sed subst in config.status.
12421  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12422   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12423s,@SHELL@,$SHELL,;t t
12424s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12425s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12426s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12427s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12428s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12429s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12430s,@exec_prefix@,$exec_prefix,;t t
12431s,@prefix@,$prefix,;t t
12432s,@program_transform_name@,$program_transform_name,;t t
12433s,@bindir@,$bindir,;t t
12434s,@sbindir@,$sbindir,;t t
12435s,@libexecdir@,$libexecdir,;t t
12436s,@datadir@,$datadir,;t t
12437s,@sysconfdir@,$sysconfdir,;t t
12438s,@sharedstatedir@,$sharedstatedir,;t t
12439s,@localstatedir@,$localstatedir,;t t
12440s,@libdir@,$libdir,;t t
12441s,@includedir@,$includedir,;t t
12442s,@oldincludedir@,$oldincludedir,;t t
12443s,@infodir@,$infodir,;t t
12444s,@mandir@,$mandir,;t t
12445s,@build_alias@,$build_alias,;t t
12446s,@host_alias@,$host_alias,;t t
12447s,@target_alias@,$target_alias,;t t
12448s,@DEFS@,$DEFS,;t t
12449s,@ECHO_C@,$ECHO_C,;t t
12450s,@ECHO_N@,$ECHO_N,;t t
12451s,@ECHO_T@,$ECHO_T,;t t
12452s,@LIBS@,$LIBS,;t t
12453s,@build@,$build,;t t
12454s,@build_cpu@,$build_cpu,;t t
12455s,@build_vendor@,$build_vendor,;t t
12456s,@build_os@,$build_os,;t t
12457s,@host@,$host,;t t
12458s,@host_cpu@,$host_cpu,;t t
12459s,@host_vendor@,$host_vendor,;t t
12460s,@host_os@,$host_os,;t t
12461s,@target@,$target,;t t
12462s,@target_cpu@,$target_cpu,;t t
12463s,@target_vendor@,$target_vendor,;t t
12464s,@target_os@,$target_os,;t t
12465s,@CC@,$CC,;t t
12466s,@CFLAGS@,$CFLAGS,;t t
12467s,@LDFLAGS@,$LDFLAGS,;t t
12468s,@CPPFLAGS@,$CPPFLAGS,;t t
12469s,@ac_ct_CC@,$ac_ct_CC,;t t
12470s,@EXEEXT@,$EXEEXT,;t t
12471s,@OBJEXT@,$OBJEXT,;t t
12472s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12473s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12474s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12475s,@CYGPATH_W@,$CYGPATH_W,;t t
12476s,@PACKAGE@,$PACKAGE,;t t
12477s,@VERSION@,$VERSION,;t t
12478s,@ACLOCAL@,$ACLOCAL,;t t
12479s,@AUTOCONF@,$AUTOCONF,;t t
12480s,@AUTOMAKE@,$AUTOMAKE,;t t
12481s,@AUTOHEADER@,$AUTOHEADER,;t t
12482s,@MAKEINFO@,$MAKEINFO,;t t
12483s,@install_sh@,$install_sh,;t t
12484s,@STRIP@,$STRIP,;t t
12485s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12486s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12487s,@mkdir_p@,$mkdir_p,;t t
12488s,@AWK@,$AWK,;t t
12489s,@SET_MAKE@,$SET_MAKE,;t t
12490s,@am__leading_dot@,$am__leading_dot,;t t
12491s,@AMTAR@,$AMTAR,;t t
12492s,@am__tar@,$am__tar,;t t
12493s,@am__untar@,$am__untar,;t t
12494s,@DEPDIR@,$DEPDIR,;t t
12495s,@am__include@,$am__include,;t t
12496s,@am__quote@,$am__quote,;t t
12497s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12498s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12499s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12500s,@CCDEPMODE@,$CCDEPMODE,;t t
12501s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12502s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12503s,@AR@,$AR,;t t
12504s,@ac_ct_AR@,$ac_ct_AR,;t t
12505s,@RANLIB@,$RANLIB,;t t
12506s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12507s,@LIBTOOL@,$LIBTOOL,;t t
12508s,@SED@,$SED,;t t
12509s,@EGREP@,$EGREP,;t t
12510s,@FGREP@,$FGREP,;t t
12511s,@GREP@,$GREP,;t t
12512s,@LD@,$LD,;t t
12513s,@DUMPBIN@,$DUMPBIN,;t t
12514s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12515s,@NM@,$NM,;t t
12516s,@LN_S@,$LN_S,;t t
12517s,@lt_ECHO@,$lt_ECHO,;t t
12518s,@CPP@,$CPP,;t t
12519s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12520s,@NO_WERROR@,$NO_WERROR,;t t
12521s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12522s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12523s,@MAINT@,$MAINT,;t t
12524s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12525s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12526s,@host_noncanonical@,$host_noncanonical,;t t
12527s,@target_noncanonical@,$target_noncanonical,;t t
12528s,@bfdlibdir@,$bfdlibdir,;t t
12529s,@bfdincludedir@,$bfdincludedir,;t t
12530s,@USE_NLS@,$USE_NLS,;t t
12531s,@LIBINTL@,$LIBINTL,;t t
12532s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12533s,@INCINTL@,$INCINTL,;t t
12534s,@XGETTEXT@,$XGETTEXT,;t t
12535s,@GMSGFMT@,$GMSGFMT,;t t
12536s,@POSUB@,$POSUB,;t t
12537s,@CATALOGS@,$CATALOGS,;t t
12538s,@DATADIRNAME@,$DATADIRNAME,;t t
12539s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12540s,@GENCAT@,$GENCAT,;t t
12541s,@CATOBJEXT@,$CATOBJEXT,;t t
12542s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12543s,@MSGFMT@,$MSGFMT,;t t
12544s,@MSGMERGE@,$MSGMERGE,;t t
12545s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12546s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12547s,@HDEFINES@,$HDEFINES,;t t
12548s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12549s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12550s,@cgendir@,$cgendir,;t t
12551s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12552s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12553s,@archdefs@,$archdefs,;t t
12554s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12555s,@LIBOBJS@,$LIBOBJS,;t t
12556s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12557CEOF
12558
12559_ACEOF
12560
12561  cat >>$CONFIG_STATUS <<\_ACEOF
12562  # Split the substitutions into bite-sized pieces for seds with
12563  # small command number limits, like on Digital OSF/1 and HP-UX.
12564  ac_max_sed_lines=48
12565  ac_sed_frag=1 # Number of current file.
12566  ac_beg=1 # First line for current file.
12567  ac_end=$ac_max_sed_lines # Line after last line for current file.
12568  ac_more_lines=:
12569  ac_sed_cmds=
12570  while $ac_more_lines; do
12571    if test $ac_beg -gt 1; then
12572      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12573    else
12574      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12575    fi
12576    if test ! -s $tmp/subs.frag; then
12577      ac_more_lines=false
12578    else
12579      # The purpose of the label and of the branching condition is to
12580      # speed up the sed processing (if there are no `@' at all, there
12581      # is no need to browse any of the substitutions).
12582      # These are the two extra sed commands mentioned above.
12583      (echo ':t
12584  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12585      if test -z "$ac_sed_cmds"; then
12586	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12587      else
12588	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12589      fi
12590      ac_sed_frag=`expr $ac_sed_frag + 1`
12591      ac_beg=$ac_end
12592      ac_end=`expr $ac_end + $ac_max_sed_lines`
12593    fi
12594  done
12595  if test -z "$ac_sed_cmds"; then
12596    ac_sed_cmds=cat
12597  fi
12598fi # test -n "$CONFIG_FILES"
12599
12600_ACEOF
12601cat >>$CONFIG_STATUS <<\_ACEOF
12602for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12603  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12604  case $ac_file in
12605  - | *:- | *:-:* ) # input from stdin
12606	cat >$tmp/stdin
12607	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12608	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12609  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12610	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12611  * )   ac_file_in=$ac_file.in ;;
12612  esac
12613
12614  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12615  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12617	 X"$ac_file" : 'X\(//\)[^/]' \| \
12618	 X"$ac_file" : 'X\(//\)$' \| \
12619	 X"$ac_file" : 'X\(/\)' \| \
12620	 .     : '\(.\)' 2>/dev/null ||
12621echo X"$ac_file" |
12622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12623  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12624  	  /^X\(\/\/\)$/{ s//\1/; q; }
12625  	  /^X\(\/\).*/{ s//\1/; q; }
12626  	  s/.*/./; q'`
12627  { if $as_mkdir_p; then
12628    mkdir -p "$ac_dir"
12629  else
12630    as_dir="$ac_dir"
12631    as_dirs=
12632    while test ! -d "$as_dir"; do
12633      as_dirs="$as_dir $as_dirs"
12634      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636	 X"$as_dir" : 'X\(//\)[^/]' \| \
12637	 X"$as_dir" : 'X\(//\)$' \| \
12638	 X"$as_dir" : 'X\(/\)' \| \
12639	 .     : '\(.\)' 2>/dev/null ||
12640echo X"$as_dir" |
12641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12642  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12643  	  /^X\(\/\/\)$/{ s//\1/; q; }
12644  	  /^X\(\/\).*/{ s//\1/; q; }
12645  	  s/.*/./; q'`
12646    done
12647    test ! -n "$as_dirs" || mkdir $as_dirs
12648  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12650   { (exit 1); exit 1; }; }; }
12651
12652  ac_builddir=.
12653
12654if test "$ac_dir" != .; then
12655  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12656  # A "../" for each directory in $ac_dir_suffix.
12657  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12658else
12659  ac_dir_suffix= ac_top_builddir=
12660fi
12661
12662case $srcdir in
12663  .)  # No --srcdir option.  We are building in place.
12664    ac_srcdir=.
12665    if test -z "$ac_top_builddir"; then
12666       ac_top_srcdir=.
12667    else
12668       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12669    fi ;;
12670  [\\/]* | ?:[\\/]* )  # Absolute path.
12671    ac_srcdir=$srcdir$ac_dir_suffix;
12672    ac_top_srcdir=$srcdir ;;
12673  *) # Relative path.
12674    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12675    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12676esac
12677
12678# Do not use `cd foo && pwd` to compute absolute paths, because
12679# the directories may not exist.
12680case `pwd` in
12681.) ac_abs_builddir="$ac_dir";;
12682*)
12683  case "$ac_dir" in
12684  .) ac_abs_builddir=`pwd`;;
12685  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12686  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12687  esac;;
12688esac
12689case $ac_abs_builddir in
12690.) ac_abs_top_builddir=${ac_top_builddir}.;;
12691*)
12692  case ${ac_top_builddir}. in
12693  .) ac_abs_top_builddir=$ac_abs_builddir;;
12694  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12695  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12696  esac;;
12697esac
12698case $ac_abs_builddir in
12699.) ac_abs_srcdir=$ac_srcdir;;
12700*)
12701  case $ac_srcdir in
12702  .) ac_abs_srcdir=$ac_abs_builddir;;
12703  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12704  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12705  esac;;
12706esac
12707case $ac_abs_builddir in
12708.) ac_abs_top_srcdir=$ac_top_srcdir;;
12709*)
12710  case $ac_top_srcdir in
12711  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12712  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12713  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12714  esac;;
12715esac
12716
12717
12718  case $INSTALL in
12719  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12720  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12721  esac
12722
12723  if test x"$ac_file" != x-; then
12724    { echo "$as_me:$LINENO: creating $ac_file" >&5
12725echo "$as_me: creating $ac_file" >&6;}
12726    rm -f "$ac_file"
12727  fi
12728  # Let's still pretend it is `configure' which instantiates (i.e., don't
12729  # use $as_me), people would be surprised to read:
12730  #    /* config.h.  Generated by config.status.  */
12731  if test x"$ac_file" = x-; then
12732    configure_input=
12733  else
12734    configure_input="$ac_file.  "
12735  fi
12736  configure_input=$configure_input"Generated from `echo $ac_file_in |
12737				     sed 's,.*/,,'` by configure."
12738
12739  # First look for the input files in the build tree, otherwise in the
12740  # src tree.
12741  ac_file_inputs=`IFS=:
12742    for f in $ac_file_in; do
12743      case $f in
12744      -) echo $tmp/stdin ;;
12745      [\\/$]*)
12746	 # Absolute (can't be DOS-style, as IFS=:)
12747	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12748echo "$as_me: error: cannot find input file: $f" >&2;}
12749   { (exit 1); exit 1; }; }
12750	 echo "$f";;
12751      *) # Relative
12752	 if test -f "$f"; then
12753	   # Build tree
12754	   echo "$f"
12755	 elif test -f "$srcdir/$f"; then
12756	   # Source tree
12757	   echo "$srcdir/$f"
12758	 else
12759	   # /dev/null tree
12760	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12761echo "$as_me: error: cannot find input file: $f" >&2;}
12762   { (exit 1); exit 1; }; }
12763	 fi;;
12764      esac
12765    done` || { (exit 1); exit 1; }
12766_ACEOF
12767cat >>$CONFIG_STATUS <<_ACEOF
12768  sed "$ac_vpsub
12769$extrasub
12770_ACEOF
12771cat >>$CONFIG_STATUS <<\_ACEOF
12772:t
12773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12774s,@configure_input@,$configure_input,;t t
12775s,@srcdir@,$ac_srcdir,;t t
12776s,@abs_srcdir@,$ac_abs_srcdir,;t t
12777s,@top_srcdir@,$ac_top_srcdir,;t t
12778s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12779s,@builddir@,$ac_builddir,;t t
12780s,@abs_builddir@,$ac_abs_builddir,;t t
12781s,@top_builddir@,$ac_top_builddir,;t t
12782s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12783s,@INSTALL@,$ac_INSTALL,;t t
12784" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12785  rm -f $tmp/stdin
12786  if test x"$ac_file" != x-; then
12787    mv $tmp/out $ac_file
12788  else
12789    cat $tmp/out
12790    rm -f $tmp/out
12791  fi
12792
12793done
12794_ACEOF
12795cat >>$CONFIG_STATUS <<\_ACEOF
12796
12797#
12798# CONFIG_HEADER section.
12799#
12800
12801# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12802# NAME is the cpp macro being defined and VALUE is the value it is being given.
12803#
12804# ac_d sets the value in "#define NAME VALUE" lines.
12805ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
12806ac_dB='[	 ].*$,\1#\2'
12807ac_dC=' '
12808ac_dD=',;t'
12809# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12810ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
12811ac_uB='$,\1#\2define\3'
12812ac_uC=' '
12813ac_uD=',;t'
12814
12815for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12816  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12817  case $ac_file in
12818  - | *:- | *:-:* ) # input from stdin
12819	cat >$tmp/stdin
12820	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12821	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12822  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12823	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12824  * )   ac_file_in=$ac_file.in ;;
12825  esac
12826
12827  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12828echo "$as_me: creating $ac_file" >&6;}
12829
12830  # First look for the input files in the build tree, otherwise in the
12831  # src tree.
12832  ac_file_inputs=`IFS=:
12833    for f in $ac_file_in; do
12834      case $f in
12835      -) echo $tmp/stdin ;;
12836      [\\/$]*)
12837	 # Absolute (can't be DOS-style, as IFS=:)
12838	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12839echo "$as_me: error: cannot find input file: $f" >&2;}
12840   { (exit 1); exit 1; }; }
12841	 # Do quote $f, to prevent DOS paths from being IFS'd.
12842	 echo "$f";;
12843      *) # Relative
12844	 if test -f "$f"; then
12845	   # Build tree
12846	   echo "$f"
12847	 elif test -f "$srcdir/$f"; then
12848	   # Source tree
12849	   echo "$srcdir/$f"
12850	 else
12851	   # /dev/null tree
12852	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12853echo "$as_me: error: cannot find input file: $f" >&2;}
12854   { (exit 1); exit 1; }; }
12855	 fi;;
12856      esac
12857    done` || { (exit 1); exit 1; }
12858  # Remove the trailing spaces.
12859  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
12860
12861_ACEOF
12862
12863# Transform confdefs.h into two sed scripts, `conftest.defines' and
12864# `conftest.undefs', that substitutes the proper values into
12865# config.h.in to produce config.h.  The first handles `#define'
12866# templates, and the second `#undef' templates.
12867# And first: Protect against being on the right side of a sed subst in
12868# config.status.  Protect against being in an unquoted here document
12869# in config.status.
12870rm -f conftest.defines conftest.undefs
12871# Using a here document instead of a string reduces the quoting nightmare.
12872# Putting comments in sed scripts is not portable.
12873#
12874# `end' is used to avoid that the second main sed command (meant for
12875# 0-ary CPP macros) applies to n-ary macro definitions.
12876# See the Autoconf documentation for `clear'.
12877cat >confdef2sed.sed <<\_ACEOF
12878s/[\\&,]/\\&/g
12879s,[\\$`],\\&,g
12880t clear
12881: clear
12882s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12883t end
12884s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12885: end
12886_ACEOF
12887# If some macros were called several times there might be several times
12888# the same #defines, which is useless.  Nevertheless, we may not want to
12889# sort them, since we want the *last* AC-DEFINE to be honored.
12890uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12891sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12892rm -f confdef2sed.sed
12893
12894# This sed command replaces #undef with comments.  This is necessary, for
12895# example, in the case of _POSIX_SOURCE, which is predefined and required
12896# on some systems where configure will not decide to define it.
12897cat >>conftest.undefs <<\_ACEOF
12898s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12899_ACEOF
12900
12901# Break up conftest.defines because some shells have a limit on the size
12902# of here documents, and old seds have small limits too (100 cmds).
12903echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12904echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12905echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12906echo '  :' >>$CONFIG_STATUS
12907rm -f conftest.tail
12908while grep . conftest.defines >/dev/null
12909do
12910  # Write a limited-size here document to $tmp/defines.sed.
12911  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12912  # Speed up: don't consider the non `#define' lines.
12913  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
12914  # Work around the forget-to-reset-the-flag bug.
12915  echo 't clr' >>$CONFIG_STATUS
12916  echo ': clr' >>$CONFIG_STATUS
12917  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12918  echo 'CEOF
12919  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12920  rm -f $tmp/in
12921  mv $tmp/out $tmp/in
12922' >>$CONFIG_STATUS
12923  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12924  rm -f conftest.defines
12925  mv conftest.tail conftest.defines
12926done
12927rm -f conftest.defines
12928echo '  fi # grep' >>$CONFIG_STATUS
12929echo >>$CONFIG_STATUS
12930
12931# Break up conftest.undefs because some shells have a limit on the size
12932# of here documents, and old seds have small limits too (100 cmds).
12933echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12934rm -f conftest.tail
12935while grep . conftest.undefs >/dev/null
12936do
12937  # Write a limited-size here document to $tmp/undefs.sed.
12938  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12939  # Speed up: don't consider the non `#undef'
12940  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
12941  # Work around the forget-to-reset-the-flag bug.
12942  echo 't clr' >>$CONFIG_STATUS
12943  echo ': clr' >>$CONFIG_STATUS
12944  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12945  echo 'CEOF
12946  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12947  rm -f $tmp/in
12948  mv $tmp/out $tmp/in
12949' >>$CONFIG_STATUS
12950  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12951  rm -f conftest.undefs
12952  mv conftest.tail conftest.undefs
12953done
12954rm -f conftest.undefs
12955
12956cat >>$CONFIG_STATUS <<\_ACEOF
12957  # Let's still pretend it is `configure' which instantiates (i.e., don't
12958  # use $as_me), people would be surprised to read:
12959  #    /* config.h.  Generated by config.status.  */
12960  if test x"$ac_file" = x-; then
12961    echo "/* Generated by configure.  */" >$tmp/config.h
12962  else
12963    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12964  fi
12965  cat $tmp/in >>$tmp/config.h
12966  rm -f $tmp/in
12967  if test x"$ac_file" != x-; then
12968    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12969      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12970echo "$as_me: $ac_file is unchanged" >&6;}
12971    else
12972      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12974	 X"$ac_file" : 'X\(//\)[^/]' \| \
12975	 X"$ac_file" : 'X\(//\)$' \| \
12976	 X"$ac_file" : 'X\(/\)' \| \
12977	 .     : '\(.\)' 2>/dev/null ||
12978echo X"$ac_file" |
12979    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12980  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12981  	  /^X\(\/\/\)$/{ s//\1/; q; }
12982  	  /^X\(\/\).*/{ s//\1/; q; }
12983  	  s/.*/./; q'`
12984      { if $as_mkdir_p; then
12985    mkdir -p "$ac_dir"
12986  else
12987    as_dir="$ac_dir"
12988    as_dirs=
12989    while test ! -d "$as_dir"; do
12990      as_dirs="$as_dir $as_dirs"
12991      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12993	 X"$as_dir" : 'X\(//\)[^/]' \| \
12994	 X"$as_dir" : 'X\(//\)$' \| \
12995	 X"$as_dir" : 'X\(/\)' \| \
12996	 .     : '\(.\)' 2>/dev/null ||
12997echo X"$as_dir" |
12998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12999  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13000  	  /^X\(\/\/\)$/{ s//\1/; q; }
13001  	  /^X\(\/\).*/{ s//\1/; q; }
13002  	  s/.*/./; q'`
13003    done
13004    test ! -n "$as_dirs" || mkdir $as_dirs
13005  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13007   { (exit 1); exit 1; }; }; }
13008
13009      rm -f $ac_file
13010      mv $tmp/config.h $ac_file
13011    fi
13012  else
13013    cat $tmp/config.h
13014    rm -f $tmp/config.h
13015  fi
13016# Compute $ac_file's index in $config_headers.
13017_am_stamp_count=1
13018for _am_header in $config_headers :; do
13019  case $_am_header in
13020    $ac_file | $ac_file:* )
13021      break ;;
13022    * )
13023      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13024  esac
13025done
13026echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13027$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13028	 X$ac_file : 'X\(//\)[^/]' \| \
13029	 X$ac_file : 'X\(//\)$' \| \
13030	 X$ac_file : 'X\(/\)' \| \
13031	 .     : '\(.\)' 2>/dev/null ||
13032echo X$ac_file |
13033    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13034  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13035  	  /^X\(\/\/\)$/{ s//\1/; q; }
13036  	  /^X\(\/\).*/{ s//\1/; q; }
13037  	  s/.*/./; q'`/stamp-h$_am_stamp_count
13038done
13039_ACEOF
13040cat >>$CONFIG_STATUS <<\_ACEOF
13041
13042#
13043# CONFIG_COMMANDS section.
13044#
13045for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13046  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13047  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13048  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13049$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13050	 X"$ac_dest" : 'X\(//\)[^/]' \| \
13051	 X"$ac_dest" : 'X\(//\)$' \| \
13052	 X"$ac_dest" : 'X\(/\)' \| \
13053	 .     : '\(.\)' 2>/dev/null ||
13054echo X"$ac_dest" |
13055    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13056  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13057  	  /^X\(\/\/\)$/{ s//\1/; q; }
13058  	  /^X\(\/\).*/{ s//\1/; q; }
13059  	  s/.*/./; q'`
13060  { if $as_mkdir_p; then
13061    mkdir -p "$ac_dir"
13062  else
13063    as_dir="$ac_dir"
13064    as_dirs=
13065    while test ! -d "$as_dir"; do
13066      as_dirs="$as_dir $as_dirs"
13067      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13069	 X"$as_dir" : 'X\(//\)[^/]' \| \
13070	 X"$as_dir" : 'X\(//\)$' \| \
13071	 X"$as_dir" : 'X\(/\)' \| \
13072	 .     : '\(.\)' 2>/dev/null ||
13073echo X"$as_dir" |
13074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13075  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13076  	  /^X\(\/\/\)$/{ s//\1/; q; }
13077  	  /^X\(\/\).*/{ s//\1/; q; }
13078  	  s/.*/./; q'`
13079    done
13080    test ! -n "$as_dirs" || mkdir $as_dirs
13081  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13082echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13083   { (exit 1); exit 1; }; }; }
13084
13085  ac_builddir=.
13086
13087if test "$ac_dir" != .; then
13088  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13089  # A "../" for each directory in $ac_dir_suffix.
13090  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13091else
13092  ac_dir_suffix= ac_top_builddir=
13093fi
13094
13095case $srcdir in
13096  .)  # No --srcdir option.  We are building in place.
13097    ac_srcdir=.
13098    if test -z "$ac_top_builddir"; then
13099       ac_top_srcdir=.
13100    else
13101       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13102    fi ;;
13103  [\\/]* | ?:[\\/]* )  # Absolute path.
13104    ac_srcdir=$srcdir$ac_dir_suffix;
13105    ac_top_srcdir=$srcdir ;;
13106  *) # Relative path.
13107    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13108    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13109esac
13110
13111# Do not use `cd foo && pwd` to compute absolute paths, because
13112# the directories may not exist.
13113case `pwd` in
13114.) ac_abs_builddir="$ac_dir";;
13115*)
13116  case "$ac_dir" in
13117  .) ac_abs_builddir=`pwd`;;
13118  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13119  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13120  esac;;
13121esac
13122case $ac_abs_builddir in
13123.) ac_abs_top_builddir=${ac_top_builddir}.;;
13124*)
13125  case ${ac_top_builddir}. in
13126  .) ac_abs_top_builddir=$ac_abs_builddir;;
13127  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13128  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13129  esac;;
13130esac
13131case $ac_abs_builddir in
13132.) ac_abs_srcdir=$ac_srcdir;;
13133*)
13134  case $ac_srcdir in
13135  .) ac_abs_srcdir=$ac_abs_builddir;;
13136  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13137  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13138  esac;;
13139esac
13140case $ac_abs_builddir in
13141.) ac_abs_top_srcdir=$ac_top_srcdir;;
13142*)
13143  case $ac_top_srcdir in
13144  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13145  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13146  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13147  esac;;
13148esac
13149
13150
13151  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13152echo "$as_me: executing $ac_dest commands" >&6;}
13153  case $ac_dest in
13154    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13155  # Strip MF so we end up with the name of the file.
13156  mf=`echo "$mf" | sed -e 's/:.*$//'`
13157  # Check whether this is an Automake generated Makefile or not.
13158  # We used to match only the files named `Makefile.in', but
13159  # some people rename them; so instead we look at the file content.
13160  # Grep'ing the first line is not enough: some people post-process
13161  # each Makefile.in and add a new line on top of each file to say so.
13162  # So let's grep whole file.
13163  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13164    dirpart=`(dirname "$mf") 2>/dev/null ||
13165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13166	 X"$mf" : 'X\(//\)[^/]' \| \
13167	 X"$mf" : 'X\(//\)$' \| \
13168	 X"$mf" : 'X\(/\)' \| \
13169	 .     : '\(.\)' 2>/dev/null ||
13170echo X"$mf" |
13171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13172  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13173  	  /^X\(\/\/\)$/{ s//\1/; q; }
13174  	  /^X\(\/\).*/{ s//\1/; q; }
13175  	  s/.*/./; q'`
13176  else
13177    continue
13178  fi
13179  # Extract the definition of DEPDIR, am__include, and am__quote
13180  # from the Makefile without running `make'.
13181  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13182  test -z "$DEPDIR" && continue
13183  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13184  test -z "am__include" && continue
13185  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13186  # When using ansi2knr, U may be empty or an underscore; expand it
13187  U=`sed -n 's/^U = //p' < "$mf"`
13188  # Find all dependency output files, they are included files with
13189  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13190  # simplest approach to changing $(DEPDIR) to its actual value in the
13191  # expansion.
13192  for file in `sed -n "
13193    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13194       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13195    # Make sure the directory exists.
13196    test -f "$dirpart/$file" && continue
13197    fdir=`(dirname "$file") 2>/dev/null ||
13198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199	 X"$file" : 'X\(//\)[^/]' \| \
13200	 X"$file" : 'X\(//\)$' \| \
13201	 X"$file" : 'X\(/\)' \| \
13202	 .     : '\(.\)' 2>/dev/null ||
13203echo X"$file" |
13204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206  	  /^X\(\/\/\)$/{ s//\1/; q; }
13207  	  /^X\(\/\).*/{ s//\1/; q; }
13208  	  s/.*/./; q'`
13209    { if $as_mkdir_p; then
13210    mkdir -p $dirpart/$fdir
13211  else
13212    as_dir=$dirpart/$fdir
13213    as_dirs=
13214    while test ! -d "$as_dir"; do
13215      as_dirs="$as_dir $as_dirs"
13216      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13218	 X"$as_dir" : 'X\(//\)[^/]' \| \
13219	 X"$as_dir" : 'X\(//\)$' \| \
13220	 X"$as_dir" : 'X\(/\)' \| \
13221	 .     : '\(.\)' 2>/dev/null ||
13222echo X"$as_dir" |
13223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13224  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13225  	  /^X\(\/\/\)$/{ s//\1/; q; }
13226  	  /^X\(\/\).*/{ s//\1/; q; }
13227  	  s/.*/./; q'`
13228    done
13229    test ! -n "$as_dirs" || mkdir $as_dirs
13230  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13231echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13232   { (exit 1); exit 1; }; }; }
13233
13234    # echo "creating $dirpart/$file"
13235    echo '# dummy' > "$dirpart/$file"
13236  done
13237done
13238 ;;
13239    libtool )
13240
13241    # See if we are running on zsh, and set the options which allow our
13242    # commands through without removal of \ escapes.
13243    if test -n "${ZSH_VERSION+set}" ; then
13244      setopt NO_GLOB_SUBST
13245    fi
13246
13247    cfgfile="${ofile}T"
13248    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13249    $RM "$cfgfile"
13250
13251    cat <<_LT_EOF >> "$cfgfile"
13252#! $SHELL
13253
13254# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13255# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13256# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13257# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13258#
13259# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13260# 2006, 2007 Free Software Foundation, Inc.
13261#
13262# This file is part of GNU Libtool:
13263# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13264#
13265# This program is free software; you can redistribute it and/or modify
13266# it under the terms of the GNU General Public License as published by
13267# the Free Software Foundation; either version 2 of the License, or
13268# (at your option) any later version.
13269#
13270# This program is distributed in the hope that it will be useful, but
13271# WITHOUT ANY WARRANTY; without even the implied warranty of
13272# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13273# General Public License for more details.
13274#
13275# You should have received a copy of the GNU General Public License
13276# along with this program; if not, a copy can be downloaded from
13277# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13278# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13279# MA 02110-1301, USA.
13280#
13281# As a special exception to the GNU General Public License, if you
13282# distribute this file as part of a program that contains a
13283# configuration script generated by Autoconf, you may include it under
13284# the same distribution terms that you use for the rest of that program.
13285
13286
13287# The names of the tagged configurations supported by this script.
13288available_tags=""
13289
13290# ### BEGIN LIBTOOL CONFIG
13291
13292# Whether or not to build shared libraries.
13293build_libtool_libs=$enable_shared
13294
13295# Which release of libtool.m4 was used?
13296macro_version=$macro_version
13297macro_revision=$macro_revision
13298
13299# Whether or not to build static libraries.
13300build_old_libs=$enable_static
13301
13302# What type of objects to build.
13303pic_mode=$pic_mode
13304
13305# Whether or not to optimize for fast installation.
13306fast_install=$enable_fast_install
13307
13308# The host system.
13309host_alias=$host_alias
13310host=$host
13311host_os=$host_os
13312
13313# The build system.
13314build_alias=$build_alias
13315build=$build
13316build_os=$build_os
13317
13318# A sed program that does not truncate output.
13319SED=$lt_SED
13320
13321# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13322Xsed="\$SED -e 1s/^X//"
13323
13324# A grep program that handles long lines.
13325GREP=$lt_GREP
13326
13327# An ERE matcher.
13328EGREP=$lt_EGREP
13329
13330# A literal string matcher.
13331FGREP=$lt_FGREP
13332
13333# A BSD- or MS-compatible name lister.
13334NM=$lt_NM
13335
13336# Whether we need soft or hard links.
13337LN_S=$lt_LN_S
13338
13339# What is the maximum length of a command?
13340max_cmd_len=$max_cmd_len
13341
13342# Object file suffix (normally "o").
13343objext=$ac_objext
13344
13345# Executable file suffix (normally "").
13346exeext=$exeext
13347
13348# whether the shell understands "unset".
13349lt_unset=$lt_unset
13350
13351# turn spaces into newlines.
13352SP2NL=$lt_lt_SP2NL
13353
13354# turn newlines into spaces.
13355NL2SP=$lt_lt_NL2SP
13356
13357# How to create reloadable object files.
13358reload_flag=$lt_reload_flag
13359reload_cmds=$lt_reload_cmds
13360
13361# Method to check whether dependent libraries are shared objects.
13362deplibs_check_method=$lt_deplibs_check_method
13363
13364# Command to use when deplibs_check_method == "file_magic".
13365file_magic_cmd=$lt_file_magic_cmd
13366
13367# The archiver.
13368AR=$lt_AR
13369AR_FLAGS=$lt_AR_FLAGS
13370
13371# A symbol stripping program.
13372STRIP=$lt_STRIP
13373
13374# Commands used to install an old-style archive.
13375RANLIB=$lt_RANLIB
13376old_postinstall_cmds=$lt_old_postinstall_cmds
13377old_postuninstall_cmds=$lt_old_postuninstall_cmds
13378
13379# A C compiler.
13380LTCC=$lt_CC
13381
13382# LTCC compiler flags.
13383LTCFLAGS=$lt_CFLAGS
13384
13385# Take the output of nm and produce a listing of raw symbols and C names.
13386global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13387
13388# Transform the output of nm in a proper C declaration.
13389global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13390
13391# Transform the output of nm in a C name address pair.
13392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13393
13394# The name of the directory that contains temporary libtool files.
13395objdir=$objdir
13396
13397# Shell to use when invoking shell scripts.
13398SHELL=$lt_SHELL
13399
13400# An echo program that does not interpret backslashes.
13401ECHO=$lt_ECHO
13402
13403# Used to examine libraries when file_magic_cmd begins with "file".
13404MAGIC_CMD=$MAGIC_CMD
13405
13406# Must we lock files when doing compilation?
13407need_locks=$lt_need_locks
13408
13409# Old archive suffix (normally "a").
13410libext=$libext
13411
13412# Shared library suffix (normally ".so").
13413shrext_cmds=$lt_shrext_cmds
13414
13415# The commands to extract the exported symbol list from a shared archive.
13416extract_expsyms_cmds=$lt_extract_expsyms_cmds
13417
13418# Variables whose values should be saved in libtool wrapper scripts and
13419# restored at link time.
13420variables_saved_for_relink=$lt_variables_saved_for_relink
13421
13422# Do we need the "lib" prefix for modules?
13423need_lib_prefix=$need_lib_prefix
13424
13425# Do we need a version for libraries?
13426need_version=$need_version
13427
13428# Library versioning type.
13429version_type=$version_type
13430
13431# Shared library runtime path variable.
13432runpath_var=$runpath_var
13433
13434# Shared library path variable.
13435shlibpath_var=$shlibpath_var
13436
13437# Is shlibpath searched before the hard-coded library search path?
13438shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13439
13440# Format of library name prefix.
13441libname_spec=$lt_libname_spec
13442
13443# List of archive names.  First name is the real one, the rest are links.
13444# The last name is the one that the linker finds with -lNAME
13445library_names_spec=$lt_library_names_spec
13446
13447# The coded name of the library, if different from the real name.
13448soname_spec=$lt_soname_spec
13449
13450# Command to use after installation of a shared archive.
13451postinstall_cmds=$lt_postinstall_cmds
13452
13453# Command to use after uninstallation of a shared archive.
13454postuninstall_cmds=$lt_postuninstall_cmds
13455
13456# Commands used to finish a libtool library installation in a directory.
13457finish_cmds=$lt_finish_cmds
13458
13459# As "finish_cmds", except a single script fragment to be evaled but
13460# not shown.
13461finish_eval=$lt_finish_eval
13462
13463# Whether we should hardcode library paths into libraries.
13464hardcode_into_libs=$hardcode_into_libs
13465
13466# Compile-time system search path for libraries.
13467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13468
13469# Run-time system search path for libraries.
13470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13471
13472# Whether dlopen is supported.
13473dlopen_support=$enable_dlopen
13474
13475# Whether dlopen of programs is supported.
13476dlopen_self=$enable_dlopen_self
13477
13478# Whether dlopen of statically linked programs is supported.
13479dlopen_self_static=$enable_dlopen_self_static
13480
13481# Commands to strip libraries.
13482old_striplib=$lt_old_striplib
13483striplib=$lt_striplib
13484
13485
13486# The linker used to build libraries.
13487LD=$lt_LD
13488
13489# Commands used to build an old-style archive.
13490old_archive_cmds=$lt_old_archive_cmds
13491
13492# A language specific compiler.
13493CC=$lt_compiler
13494
13495# Is the compiler the GNU compiler?
13496with_gcc=$GCC
13497
13498# Compiler flag to turn off builtin functions.
13499no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13500
13501# How to pass a linker flag through the compiler.
13502wl=$lt_lt_prog_compiler_wl
13503
13504# Additional compiler flags for building library objects.
13505pic_flag=$lt_lt_prog_compiler_pic
13506
13507# Compiler flag to prevent dynamic linking.
13508link_static_flag=$lt_lt_prog_compiler_static
13509
13510# Does compiler simultaneously support -c and -o options?
13511compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13512
13513# Whether or not to add -lc for building shared libraries.
13514build_libtool_need_lc=$archive_cmds_need_lc
13515
13516# Whether or not to disallow shared libs when runtime libs are static.
13517allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13518
13519# Compiler flag to allow reflexive dlopens.
13520export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13521
13522# Compiler flag to generate shared objects directly from archives.
13523whole_archive_flag_spec=$lt_whole_archive_flag_spec
13524
13525# Whether the compiler copes with passing no objects directly.
13526compiler_needs_object=$lt_compiler_needs_object
13527
13528# Create an old-style archive from a shared archive.
13529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13530
13531# Create a temporary old-style archive to link instead of a shared archive.
13532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13533
13534# Commands used to build a shared archive.
13535archive_cmds=$lt_archive_cmds
13536archive_expsym_cmds=$lt_archive_expsym_cmds
13537
13538# Commands used to build a loadable module if different from building
13539# a shared archive.
13540module_cmds=$lt_module_cmds
13541module_expsym_cmds=$lt_module_expsym_cmds
13542
13543# Whether we are building with GNU ld or not.
13544with_gnu_ld=$lt_with_gnu_ld
13545
13546# Flag that allows shared libraries with undefined symbols to be built.
13547allow_undefined_flag=$lt_allow_undefined_flag
13548
13549# Flag that enforces no undefined symbols.
13550no_undefined_flag=$lt_no_undefined_flag
13551
13552# Flag to hardcode \$libdir into a binary during linking.
13553# This must work even if \$libdir does not exist
13554hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13555
13556# If ld is used when linking, flag to hardcode \$libdir into a binary
13557# during linking.  This must work even if \$libdir does not exist.
13558hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13559
13560# Whether we need a single "-rpath" flag with a separated argument.
13561hardcode_libdir_separator=$lt_hardcode_libdir_separator
13562
13563# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13564# DIR into the resulting binary.
13565hardcode_direct=$hardcode_direct
13566
13567# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13568# DIR into the resulting binary and the resulting library dependency is
13569# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13570# library is relocated.
13571hardcode_direct_absolute=$hardcode_direct_absolute
13572
13573# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13574# into the resulting binary.
13575hardcode_minus_L=$hardcode_minus_L
13576
13577# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13578# into the resulting binary.
13579hardcode_shlibpath_var=$hardcode_shlibpath_var
13580
13581# Set to "yes" if building a shared library automatically hardcodes DIR
13582# into the library and all subsequent libraries and executables linked
13583# against it.
13584hardcode_automatic=$hardcode_automatic
13585
13586# Set to yes if linker adds runtime paths of dependent libraries
13587# to runtime path list.
13588inherit_rpath=$inherit_rpath
13589
13590# Whether libtool must link a program against all its dependency libraries.
13591link_all_deplibs=$link_all_deplibs
13592
13593# Fix the shell variable \$srcfile for the compiler.
13594fix_srcfile_path=$lt_fix_srcfile_path
13595
13596# Set to "yes" if exported symbols are required.
13597always_export_symbols=$always_export_symbols
13598
13599# The commands to list exported symbols.
13600export_symbols_cmds=$lt_export_symbols_cmds
13601
13602# Symbols that should not be listed in the preloaded symbols.
13603exclude_expsyms=$lt_exclude_expsyms
13604
13605# Symbols that must always be exported.
13606include_expsyms=$lt_include_expsyms
13607
13608# Commands necessary for linking programs (against libraries) with templates.
13609prelink_cmds=$lt_prelink_cmds
13610
13611# Specify filename containing input files.
13612file_list_spec=$lt_file_list_spec
13613
13614# How to hardcode a shared library path into an executable.
13615hardcode_action=$hardcode_action
13616
13617# ### END LIBTOOL CONFIG
13618
13619_LT_EOF
13620
13621  case $host_os in
13622  aix3*)
13623    cat <<\_LT_EOF >> "$cfgfile"
13624# AIX sometimes has problems with the GCC collect2 program.  For some
13625# reason, if we set the COLLECT_NAMES environment variable, the problems
13626# vanish in a puff of smoke.
13627if test "X${COLLECT_NAMES+set}" != Xset; then
13628  COLLECT_NAMES=
13629  export COLLECT_NAMES
13630fi
13631_LT_EOF
13632    ;;
13633  esac
13634
13635
13636ltmain="$ac_aux_dir/ltmain.sh"
13637
13638
13639  # We use sed instead of cat because bash on DJGPP gets confused if
13640  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13641  # text mode, it properly converts lines to CR/LF.  This bash problem
13642  # is reportedly fixed, but why not run on old versions too?
13643  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13644    || (rm -f "$cfgfile"; exit 1)
13645
13646  case $xsi_shell in
13647  yes)
13648    cat << \_LT_EOF >> "$cfgfile"
13649# func_dirname file append nondir_replacement
13650# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13651# otherwise set result to NONDIR_REPLACEMENT.
13652func_dirname ()
13653{
13654  case ${1} in
13655    */*) func_dirname_result="${1%/*}${2}" ;;
13656    *  ) func_dirname_result="${3}" ;;
13657  esac
13658}
13659
13660# func_basename file
13661func_basename ()
13662{
13663  func_basename_result="${1##*/}"
13664}
13665
13666# func_stripname prefix suffix name
13667# strip PREFIX and SUFFIX off of NAME.
13668# PREFIX and SUFFIX must not contain globbing or regex special
13669# characters, hashes, percent signs, but SUFFIX may contain a leading
13670# dot (in which case that matches only a dot).
13671func_stripname ()
13672{
13673  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13674  # positional parameters, so assign one to ordinary parameter first.
13675  func_stripname_result=${3}
13676  func_stripname_result=${func_stripname_result#"${1}"}
13677  func_stripname_result=${func_stripname_result%"${2}"}
13678}
13679
13680# func_opt_split
13681func_opt_split ()
13682{
13683  func_opt_split_opt=${1%%=*}
13684  func_opt_split_arg=${1#*=}
13685}
13686
13687# func_lo2o object
13688func_lo2o ()
13689{
13690  case ${1} in
13691    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13692    *)    func_lo2o_result=${1} ;;
13693  esac
13694}
13695_LT_EOF
13696    ;;
13697  *) # Bourne compatible functions.
13698    cat << \_LT_EOF >> "$cfgfile"
13699# func_dirname file append nondir_replacement
13700# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13701# otherwise set result to NONDIR_REPLACEMENT.
13702func_dirname ()
13703{
13704  # Extract subdirectory from the argument.
13705  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13706  if test "X$func_dirname_result" = "X${1}"; then
13707    func_dirname_result="${3}"
13708  else
13709    func_dirname_result="$func_dirname_result${2}"
13710  fi
13711}
13712
13713# func_basename file
13714func_basename ()
13715{
13716  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13717}
13718
13719# func_stripname prefix suffix name
13720# strip PREFIX and SUFFIX off of NAME.
13721# PREFIX and SUFFIX must not contain globbing or regex special
13722# characters, hashes, percent signs, but SUFFIX may contain a leading
13723# dot (in which case that matches only a dot).
13724# func_strip_suffix prefix name
13725func_stripname ()
13726{
13727  case ${2} in
13728    .*) func_stripname_result=`$ECHO "X${3}" \
13729           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13730    *)  func_stripname_result=`$ECHO "X${3}" \
13731           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13732  esac
13733}
13734
13735# sed scripts:
13736my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13737my_sed_long_arg='1s/^-[^=]*=//'
13738
13739# func_opt_split
13740func_opt_split ()
13741{
13742  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13743  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13744}
13745
13746# func_lo2o object
13747func_lo2o ()
13748{
13749  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13750}
13751_LT_EOF
13752esac
13753
13754case $lt_shell_append in
13755  yes)
13756    cat << \_LT_EOF >> "$cfgfile"
13757
13758# func_append var value
13759# Append VALUE to the end of shell variable VAR.
13760func_append ()
13761{
13762  eval "$1+=\$2"
13763}
13764_LT_EOF
13765    ;;
13766  *)
13767    cat << \_LT_EOF >> "$cfgfile"
13768
13769# func_append var value
13770# Append VALUE to the end of shell variable VAR.
13771func_append ()
13772{
13773  eval "$1=\$$1\$2"
13774}
13775_LT_EOF
13776    ;;
13777  esac
13778
13779
13780  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13781    || (rm -f "$cfgfile"; exit 1)
13782
13783  mv -f "$cfgfile" "$ofile" ||
13784    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13785  chmod +x "$ofile"
13786
13787 ;;
13788    default-1 )
13789    for ac_file in $CONFIG_FILES; do
13790      # Support "outfile[:infile[:infile...]]"
13791      case "$ac_file" in
13792        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13793      esac
13794      # PO directories have a Makefile.in generated from Makefile.in.in.
13795      case "$ac_file" in */Makefile.in)
13796        # Adjust a relative srcdir.
13797        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13798        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13799        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13800        # In autoconf-2.13 it is called $ac_given_srcdir.
13801        # In autoconf-2.50 it is called $srcdir.
13802        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13803        case "$ac_given_srcdir" in
13804          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13805          /*) top_srcdir="$ac_given_srcdir" ;;
13806          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13807        esac
13808        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13809          rm -f "$ac_dir/POTFILES"
13810          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13811          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13812          POMAKEFILEDEPS="POTFILES.in"
13813          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13814          # on $ac_dir but don't depend on user-specified configuration
13815          # parameters.
13816          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13817            # The LINGUAS file contains the set of available languages.
13818            if test -n "$OBSOLETE_ALL_LINGUAS"; then
13819              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13820            fi
13821            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13822            # Hide the ALL_LINGUAS assigment from automake.
13823            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13824            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13825          else
13826            # The set of available languages was given in configure.in.
13827            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13828          fi
13829          case "$ac_given_srcdir" in
13830            .) srcdirpre= ;;
13831            *) srcdirpre='$(srcdir)/' ;;
13832          esac
13833          POFILES=
13834          GMOFILES=
13835          UPDATEPOFILES=
13836          DUMMYPOFILES=
13837          for lang in $ALL_LINGUAS; do
13838            POFILES="$POFILES $srcdirpre$lang.po"
13839            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13840            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13841            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13842          done
13843          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13844          # environment variable.
13845          INST_LINGUAS=
13846          if test -n "$ALL_LINGUAS"; then
13847            for presentlang in $ALL_LINGUAS; do
13848              useit=no
13849              if test "%UNSET%" != "$LINGUAS"; then
13850                desiredlanguages="$LINGUAS"
13851              else
13852                desiredlanguages="$ALL_LINGUAS"
13853              fi
13854              for desiredlang in $desiredlanguages; do
13855                # Use the presentlang catalog if desiredlang is
13856                #   a. equal to presentlang, or
13857                #   b. a variant of presentlang (because in this case,
13858                #      presentlang can be used as a fallback for messages
13859                #      which are not translated in the desiredlang catalog).
13860                case "$desiredlang" in
13861                  "$presentlang"*) useit=yes;;
13862                esac
13863              done
13864              if test $useit = yes; then
13865                INST_LINGUAS="$INST_LINGUAS $presentlang"
13866              fi
13867            done
13868          fi
13869          CATALOGS=
13870          if test -n "$INST_LINGUAS"; then
13871            for lang in $INST_LINGUAS; do
13872              CATALOGS="$CATALOGS $lang.gmo"
13873            done
13874          fi
13875          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13876          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"
13877          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13878            if test -f "$f"; then
13879              case "$f" in
13880                *.orig | *.bak | *~) ;;
13881                *) cat "$f" >> "$ac_dir/Makefile" ;;
13882              esac
13883            fi
13884          done
13885        fi
13886        ;;
13887      esac
13888    done ;;
13889  esac
13890done
13891_ACEOF
13892
13893cat >>$CONFIG_STATUS <<\_ACEOF
13894
13895{ (exit 0); exit 0; }
13896_ACEOF
13897chmod +x $CONFIG_STATUS
13898ac_clean_files=$ac_clean_files_save
13899
13900
13901# configure is writing to config.log, and then calls config.status.
13902# config.status does its own redirection, appending to config.log.
13903# Unfortunately, on DOS this fails, as config.log is still kept open
13904# by configure, so config.status won't be able to write to it; its
13905# output is simply discarded.  So we exec the FD to /dev/null,
13906# effectively closing config.log, so it can be properly (re)opened and
13907# appended to by config.status.  When coming back to configure, we
13908# need to make the FD available again.
13909if test "$no_create" != yes; then
13910  ac_cs_success=:
13911  ac_config_status_args=
13912  test "$silent" = yes &&
13913    ac_config_status_args="$ac_config_status_args --quiet"
13914  exec 5>/dev/null
13915  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13916  exec 5>>config.log
13917  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13918  # would make configure fail if this is the last instruction.
13919  $ac_cs_success || { (exit 1); exit 1; }
13920fi
13921
13922