1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libsrs_alt 1.0.
4#
5# Report bugs to <srs@mirtol.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libsrs_alt'
425PACKAGE_TARNAME='libsrs_alt'
426PACKAGE_VERSION='1.0'
427PACKAGE_STRING='libsrs_alt 1.0'
428PACKAGE_BUGREPORT='srs@mirtol.com'
429
430ac_unique_file="srs.c"
431ac_config_libobj_dir=lib
432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446#  include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451#  include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462#  include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_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 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
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    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828	      localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868	 X"$0" : 'X\(//\)[^/]' \| \
869	 X"$0" : 'X\(//\)$' \| \
870	 X"$0" : 'X\(/\)' \| \
871	 .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955  # Omit some internal or obsolete options to make the list less imposing.
956  # This message is too long to be a string in the A/UX 3.1 sh.
957  cat <<_ACEOF
958\`configure' configures libsrs_alt 1.0 to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968  -h, --help              display this help and exit
969      --help=short        display options specific to this package
970      --help=recursive    display the short help of all the included packages
971  -V, --version           display version information and exit
972  -q, --quiet, --silent   do not print \`checking...' messages
973      --cache-file=FILE   cache test results in FILE [disabled]
974  -C, --config-cache      alias for \`--cache-file=config.cache'
975  -n, --no-create         do not create output files
976      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980  cat <<_ACEOF
981Installation directories:
982  --prefix=PREFIX         install architecture-independent files in PREFIX
983			  [$ac_default_prefix]
984  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985			  [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995  --bindir=DIR           user executables [EPREFIX/bin]
996  --sbindir=DIR          system admin executables [EPREFIX/sbin]
997  --libexecdir=DIR       program executables [EPREFIX/libexec]
998  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002  --libdir=DIR           object code libraries [EPREFIX/lib]
1003  --includedir=DIR       C header files [PREFIX/include]
1004  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005  --infodir=DIR          info documentation [PREFIX/info]
1006  --mandir=DIR           man documentation [PREFIX/man]
1007_ACEOF
1008
1009  cat <<\_ACEOF
1010
1011Program names:
1012  --program-prefix=PREFIX            prepend PREFIX to installed program names
1013  --program-suffix=SUFFIX            append SUFFIX to installed program names
1014  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016System types:
1017  --build=BUILD     configure for building on BUILD [guessed]
1018  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
1023  case $ac_init_help in
1024     short | recursive ) echo "Configuration of libsrs_alt 1.0:";;
1025   esac
1026  cat <<\_ACEOF
1027
1028Optional Features:
1029  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031  --disable-dependency-tracking  speeds up one-time build
1032  --enable-dependency-tracking   do not reject slow dependency extractors
1033  --enable-shared[=PKGS]
1034                          build shared libraries [default=yes]
1035  --enable-static[=PKGS]
1036                          build static libraries [default=yes]
1037  --enable-fast-install[=PKGS]
1038                          optimize for fast installation [default=yes]
1039  --disable-libtool-lock  avoid locking (might break parallel builds)
1040
1041Optional Packages:
1042  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045  --with-pic              try to use only PIC/non-PIC objects [default=use
1046                          both]
1047  --with-tags[=TAGS]
1048                          include additional configurations [automatic]
1049  --with-base64compat     Turn on non-standard BASE64 encoding (MTA compatibility mode)
1050
1051Some influential environment variables:
1052  CXX         C++ compiler command
1053  CXXFLAGS    C++ compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CC          C compiler command
1059  CFLAGS      C compiler flags
1060  CPP         C preprocessor
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <srs@mirtol.com>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073  # If there are subdirs, report their specific --help.
1074  ac_popdir=`pwd`
1075  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076    test -d $ac_dir || continue
1077    ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081  # A "../" for each directory in $ac_dir_suffix.
1082  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084  ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088  .)  # No --srcdir option.  We are building in place.
1089    ac_srcdir=.
1090    if test -z "$ac_top_builddir"; then
1091       ac_top_srcdir=.
1092    else
1093       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094    fi ;;
1095  [\\/]* | ?:[\\/]* )  # Absolute path.
1096    ac_srcdir=$srcdir$ac_dir_suffix;
1097    ac_top_srcdir=$srcdir ;;
1098  *) # Relative path.
1099    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108  case "$ac_dir" in
1109  .) ac_abs_builddir=`pwd`;;
1110  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112  esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117  case ${ac_top_builddir}. in
1118  .) ac_abs_top_builddir=$ac_abs_builddir;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126  case $ac_srcdir in
1127  .) ac_abs_srcdir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135  case $ac_top_srcdir in
1136  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139  esac;;
1140esac
1141
1142    cd $ac_dir
1143    # Check for guested configure; otherwise get Cygnus style configure.
1144    if test -f $ac_srcdir/configure.gnu; then
1145      echo
1146      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147    elif test -f $ac_srcdir/configure; then
1148      echo
1149      $SHELL $ac_srcdir/configure  --help=recursive
1150    elif test -f $ac_srcdir/configure.ac ||
1151	   test -f $ac_srcdir/configure.in; then
1152      echo
1153      $ac_configure --help
1154    else
1155      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156    fi
1157    cd $ac_popdir
1158  done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163  cat <<\_ACEOF
1164libsrs_alt configure 1.0
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171  exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by libsrs_alt $as_me 1.0, which was
1179generated by GNU Autoconf 2.59.  Invocation command line was
1180
1181  $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1198
1199/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212  IFS=$as_save_IFS
1213  test -z "$as_dir" && as_dir=.
1214  echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241  for ac_arg
1242  do
1243    case $ac_arg in
1244    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246    | -silent | --silent | --silen | --sile | --sil)
1247      continue ;;
1248    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250    esac
1251    case $ac_pass in
1252    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253    2)
1254      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255      if test $ac_must_keep_next = true; then
1256	ac_must_keep_next=false # Got value, back to normal.
1257      else
1258	case $ac_arg in
1259	  *=* | --config-cache | -C | -disable-* | --disable-* \
1260	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262	  | -with-* | --with-* | -without-* | --without-* | --x)
1263	    case "$ac_configure_args0 " in
1264	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265	    esac
1266	    ;;
1267	  -* ) ac_must_keep_next=true ;;
1268	esac
1269      fi
1270      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271      # Get rid of the leading space.
1272      ac_sep=" "
1273      ;;
1274    esac
1275  done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log.  We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286  # Save into config.log some information that might help in debugging.
1287  {
1288    echo
1289
1290    cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295    echo
1296    # The following way of writing the cache mishandles newlines in values,
1297{
1298  (set) 2>&1 |
1299    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300    *ac_space=\ *)
1301      sed -n \
1302	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304      ;;
1305    *)
1306      sed -n \
1307	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308      ;;
1309    esac;
1310}
1311    echo
1312
1313    cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318    echo
1319    for ac_var in $ac_subst_vars
1320    do
1321      eval ac_val=$`echo $ac_var`
1322      echo "$ac_var='"'"'$ac_val'"'"'"
1323    done | sort
1324    echo
1325
1326    if test -n "$ac_subst_files"; then
1327      cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332      echo
1333      for ac_var in $ac_subst_files
1334      do
1335	eval ac_val=$`echo $ac_var`
1336	echo "$ac_var='"'"'$ac_val'"'"'"
1337      done | sort
1338      echo
1339    fi
1340
1341    if test -s confdefs.h; then
1342      cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347      echo
1348      sed "/^$/d" confdefs.h | sort
1349      echo
1350    fi
1351    test "$ac_signal" != 0 &&
1352      echo "$as_me: caught signal $ac_signal"
1353    echo "$as_me: exit $exit_status"
1354  } >&5
1355  rm -f core *.core &&
1356  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357    exit $exit_status
1358     ' 0
1359for ac_signal in 1 2 13 15; do
1360  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399  if test "x$prefix" != xNONE; then
1400    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401  else
1402    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403  fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406  if test -r "$ac_site_file"; then
1407    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409    sed 's/^/| /' "$ac_site_file" >&5
1410    . "$ac_site_file"
1411  fi
1412done
1413
1414if test -r "$cache_file"; then
1415  # Some versions of bash will fail to source /dev/null (special
1416  # files actually), so we avoid doing that.
1417  if test -f "$cache_file"; then
1418    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420    case $cache_file in
1421      [\\/]* | ?:[\\/]* ) . $cache_file;;
1422      *)                      . ./$cache_file;;
1423    esac
1424  fi
1425else
1426  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428  >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437  eval ac_new_set=\$ac_env_${ac_var}_set
1438  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439  eval ac_new_val="\$ac_env_${ac_var}_value"
1440  case $ac_old_set,$ac_new_set in
1441    set,)
1442      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444      ac_cache_corrupted=: ;;
1445    ,set)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,);;
1450    *)
1451      if test "x$ac_old_val" != "x$ac_new_val"; then
1452	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455echo "$as_me:   former value:  $ac_old_val" >&2;}
1456	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457echo "$as_me:   current value: $ac_new_val" >&2;}
1458	ac_cache_corrupted=:
1459      fi;;
1460  esac
1461  # Pass precious variables to config.status.
1462  if test "$ac_new_set" = set; then
1463    case $ac_new_val in
1464    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466    *) ac_arg=$ac_var=$ac_new_val ;;
1467    esac
1468    case " $ac_configure_args " in
1469      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471    esac
1472  fi
1473done
1474if $ac_cache_corrupted; then
1475  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479   { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514am__api_version="1.9"
1515ac_aux_dir=
1516for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1517  if test -f $ac_dir/install-sh; then
1518    ac_aux_dir=$ac_dir
1519    ac_install_sh="$ac_aux_dir/install-sh -c"
1520    break
1521  elif test -f $ac_dir/install.sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install.sh -c"
1524    break
1525  elif test -f $ac_dir/shtool; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/shtool install -c"
1528    break
1529  fi
1530done
1531if test -z "$ac_aux_dir"; then
1532  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1533echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540# Find a good install program.  We prefer a C program (faster),
1541# so one script is as good as another.  But avoid the broken or
1542# incompatible versions:
1543# SysV /etc/install, /usr/sbin/install
1544# SunOS /usr/etc/install
1545# IRIX /sbin/install
1546# AIX /bin/install
1547# AmigaOS /C/install, which installs bootblocks on floppy discs
1548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1551# OS/2's system install, which has a completely different semantic
1552# ./install, which can be erroneously created by make from ./install.sh.
1553echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555if test -z "$INSTALL"; then
1556if test "${ac_cv_path_install+set}" = set; then
1557  echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562  IFS=$as_save_IFS
1563  test -z "$as_dir" && as_dir=.
1564  # Account for people who put trailing slashes in PATH elements.
1565case $as_dir/ in
1566  ./ | .// | /cC/* | \
1567  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569  /usr/ucb/* ) ;;
1570  *)
1571    # OSF1 and SCO ODT 3.0 have their own names for install.
1572    # Don't use installbsd from OSF since it installs stuff as root
1573    # by default.
1574    for ac_prog in ginstall scoinst install; do
1575      for ac_exec_ext in '' $ac_executable_extensions; do
1576	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1577	  if test $ac_prog = install &&
1578	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579	    # AIX install.  It has an incompatible calling convention.
1580	    :
1581	  elif test $ac_prog = install &&
1582	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583	    # program-specific install script used by HP pwplus--don't use.
1584	    :
1585	  else
1586	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1587	    break 3
1588	  fi
1589	fi
1590      done
1591    done
1592    ;;
1593esac
1594done
1595
1596
1597fi
1598  if test "${ac_cv_path_install+set}" = set; then
1599    INSTALL=$ac_cv_path_install
1600  else
1601    # As a last resort, use the slow shell script.  We don't cache a
1602    # path for INSTALL within a source directory, because that will
1603    # break other packages using the cache if that directory is
1604    # removed, or if the path is relative.
1605    INSTALL=$ac_install_sh
1606  fi
1607fi
1608echo "$as_me:$LINENO: result: $INSTALL" >&5
1609echo "${ECHO_T}$INSTALL" >&6
1610
1611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612# It thinks the first close brace ends the variable substitution.
1613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1614
1615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1616
1617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618
1619echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1620echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621# Just in case
1622sleep 1
1623echo timestamp > conftest.file
1624# Do `set' in a subshell so we don't clobber the current shell's
1625# arguments.  Must try -L first in case configure is actually a
1626# symlink; some systems play weird games with the mod time of symlinks
1627# (eg FreeBSD returns the mod time of the symlink's containing
1628# directory).
1629if (
1630   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1631   if test "$*" = "X"; then
1632      # -L didn't work.
1633      set X `ls -t $srcdir/configure conftest.file`
1634   fi
1635   rm -f conftest.file
1636   if test "$*" != "X $srcdir/configure conftest.file" \
1637      && test "$*" != "X conftest.file $srcdir/configure"; then
1638
1639      # If neither matched, then we have a broken ls.  This can happen
1640      # if, for instance, CONFIG_SHELL is bash and it inherits a
1641      # broken ls alias from the environment.  This has actually
1642      # happened.  Such a system could not be considered "sane".
1643      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1644alias in your environment" >&5
1645echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1646alias in your environment" >&2;}
1647   { (exit 1); exit 1; }; }
1648   fi
1649
1650   test "$2" = conftest.file
1651   )
1652then
1653   # Ok.
1654   :
1655else
1656   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1657Check your system clock" >&5
1658echo "$as_me: error: newly created file is older than distributed files!
1659Check your system clock" >&2;}
1660   { (exit 1); exit 1; }; }
1661fi
1662echo "$as_me:$LINENO: result: yes" >&5
1663echo "${ECHO_T}yes" >&6
1664test "$program_prefix" != NONE &&
1665  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1666# Use a double $ so make ignores it.
1667test "$program_suffix" != NONE &&
1668  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1669# Double any \ or $.  echo might interpret backslashes.
1670# By default was `s,x,x', remove it if useless.
1671cat <<\_ACEOF >conftest.sed
1672s/[\\$]/&&/g;s/;s,x,x,$//
1673_ACEOF
1674program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1675rm conftest.sed
1676
1677# expand $ac_aux_dir to an absolute path
1678am_aux_dir=`cd $ac_aux_dir && pwd`
1679
1680test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1681# Use eval to expand $SHELL
1682if eval "$MISSING --run true"; then
1683  am_missing_run="$MISSING --run "
1684else
1685  am_missing_run=
1686  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1687echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1688fi
1689
1690if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1691  # We used to keeping the `.' as first argument, in order to
1692  # allow $(mkdir_p) to be used without argument.  As in
1693  #   $(mkdir_p) $(somedir)
1694  # where $(somedir) is conditionally defined.  However this is wrong
1695  # for two reasons:
1696  #  1. if the package is installed by a user who cannot write `.'
1697  #     make install will fail,
1698  #  2. the above comment should most certainly read
1699  #     $(mkdir_p) $(DESTDIR)$(somedir)
1700  #     so it does not work when $(somedir) is undefined and
1701  #     $(DESTDIR) is not.
1702  #  To support the latter case, we have to write
1703  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1704  #  so the `.' trick is pointless.
1705  mkdir_p='mkdir -p --'
1706else
1707  # On NextStep and OpenStep, the `mkdir' command does not
1708  # recognize any option.  It will interpret all options as
1709  # directories to create, and then abort because `.' already
1710  # exists.
1711  for d in ./-p ./--version;
1712  do
1713    test -d $d && rmdir $d
1714  done
1715  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1716  if test -f "$ac_aux_dir/mkinstalldirs"; then
1717    mkdir_p='$(mkinstalldirs)'
1718  else
1719    mkdir_p='$(install_sh) -d'
1720  fi
1721fi
1722
1723for ac_prog in gawk mawk nawk awk
1724do
1725  # Extract the first word of "$ac_prog", so it can be a program name with args.
1726set dummy $ac_prog; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_AWK+set}" = set; then
1730  echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732  if test -n "$AWK"; then
1733  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738  IFS=$as_save_IFS
1739  test -z "$as_dir" && as_dir=.
1740  for ac_exec_ext in '' $ac_executable_extensions; do
1741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742    ac_cv_prog_AWK="$ac_prog"
1743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744    break 2
1745  fi
1746done
1747done
1748
1749fi
1750fi
1751AWK=$ac_cv_prog_AWK
1752if test -n "$AWK"; then
1753  echo "$as_me:$LINENO: result: $AWK" >&5
1754echo "${ECHO_T}$AWK" >&6
1755else
1756  echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760  test -n "$AWK" && break
1761done
1762
1763echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1764echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1765set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1766if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1767  echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769  cat >conftest.make <<\_ACEOF
1770all:
1771	@echo 'ac_maketemp="$(MAKE)"'
1772_ACEOF
1773# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1774eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1775if test -n "$ac_maketemp"; then
1776  eval ac_cv_prog_make_${ac_make}_set=yes
1777else
1778  eval ac_cv_prog_make_${ac_make}_set=no
1779fi
1780rm -f conftest.make
1781fi
1782if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1783  echo "$as_me:$LINENO: result: yes" >&5
1784echo "${ECHO_T}yes" >&6
1785  SET_MAKE=
1786else
1787  echo "$as_me:$LINENO: result: no" >&5
1788echo "${ECHO_T}no" >&6
1789  SET_MAKE="MAKE=${MAKE-make}"
1790fi
1791
1792rm -rf .tst 2>/dev/null
1793mkdir .tst 2>/dev/null
1794if test -d .tst; then
1795  am__leading_dot=.
1796else
1797  am__leading_dot=_
1798fi
1799rmdir .tst 2>/dev/null
1800
1801# test to see if srcdir already configured
1802if test "`cd $srcdir && pwd`" != "`pwd`" &&
1803   test -f $srcdir/config.status; then
1804  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1805echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1806   { (exit 1); exit 1; }; }
1807fi
1808
1809# test whether we have cygpath
1810if test -z "$CYGPATH_W"; then
1811  if (cygpath --version) >/dev/null 2>/dev/null; then
1812    CYGPATH_W='cygpath -w'
1813  else
1814    CYGPATH_W=echo
1815  fi
1816fi
1817
1818
1819# Define the identity of the package.
1820 PACKAGE='libsrs_alt'
1821 VERSION='1.0'
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE "$PACKAGE"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define VERSION "$VERSION"
1831_ACEOF
1832
1833# Some tools Automake needs.
1834
1835ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1836
1837
1838AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1839
1840
1841AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1842
1843
1844AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1845
1846
1847MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1848
1849install_sh=${install_sh-"$am_aux_dir/install-sh"}
1850
1851# Installed binaries are usually stripped using `strip' when the user
1852# run `make install-strip'.  However `strip' might not be the right
1853# tool to use in cross-compilation environments, therefore Automake
1854# will honor the `STRIP' environment variable to overrule this program.
1855if test "$cross_compiling" != no; then
1856  if test -n "$ac_tool_prefix"; then
1857  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1858set dummy ${ac_tool_prefix}strip; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_STRIP+set}" = set; then
1862  echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864  if test -n "$STRIP"; then
1865  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872  for ac_exec_ext in '' $ac_executable_extensions; do
1873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876    break 2
1877  fi
1878done
1879done
1880
1881fi
1882fi
1883STRIP=$ac_cv_prog_STRIP
1884if test -n "$STRIP"; then
1885  echo "$as_me:$LINENO: result: $STRIP" >&5
1886echo "${ECHO_T}$STRIP" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892fi
1893if test -z "$ac_cv_prog_STRIP"; then
1894  ac_ct_STRIP=$STRIP
1895  # Extract the first word of "strip", so it can be a program name with args.
1896set dummy strip; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  if test -n "$ac_ct_STRIP"; then
1903  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910  for ac_exec_ext in '' $ac_executable_extensions; do
1911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912    ac_cv_prog_ac_ct_STRIP="strip"
1913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914    break 2
1915  fi
1916done
1917done
1918
1919  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920fi
1921fi
1922ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1923if test -n "$ac_ct_STRIP"; then
1924  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1925echo "${ECHO_T}$ac_ct_STRIP" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931  STRIP=$ac_ct_STRIP
1932else
1933  STRIP="$ac_cv_prog_STRIP"
1934fi
1935
1936fi
1937INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1938
1939# We need awk for the "check" target.  The system "awk" is bad on
1940# some platforms.
1941# Always define AMTAR for backward compatibility.
1942
1943AMTAR=${AMTAR-"${am_missing_run}tar"}
1944
1945am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1946
1947
1948
1949
1950
1951
1952          ac_config_headers="$ac_config_headers config.h"
1953
1954
1955
1956# Checks for programs.
1957ac_ext=cc
1958ac_cpp='$CXXCPP $CPPFLAGS'
1959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1962if test -n "$ac_tool_prefix"; then
1963  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1964  do
1965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_CXX+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  if test -n "$CXX"; then
1973  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1974else
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980  for ac_exec_ext in '' $ac_executable_extensions; do
1981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984    break 2
1985  fi
1986done
1987done
1988
1989fi
1990fi
1991CXX=$ac_cv_prog_CXX
1992if test -n "$CXX"; then
1993  echo "$as_me:$LINENO: result: $CXX" >&5
1994echo "${ECHO_T}$CXX" >&6
1995else
1996  echo "$as_me:$LINENO: result: no" >&5
1997echo "${ECHO_T}no" >&6
1998fi
1999
2000    test -n "$CXX" && break
2001  done
2002fi
2003if test -z "$CXX"; then
2004  ac_ct_CXX=$CXX
2005  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2006do
2007  # Extract the first word of "$ac_prog", so it can be a program name with args.
2008set dummy $ac_prog; ac_word=$2
2009echo "$as_me:$LINENO: checking for $ac_word" >&5
2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2012  echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014  if test -n "$ac_ct_CXX"; then
2015  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2016else
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    ac_cv_prog_ac_ct_CXX="$ac_prog"
2025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    break 2
2027  fi
2028done
2029done
2030
2031fi
2032fi
2033ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2034if test -n "$ac_ct_CXX"; then
2035  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2036echo "${ECHO_T}$ac_ct_CXX" >&6
2037else
2038  echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042  test -n "$ac_ct_CXX" && break
2043done
2044test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2045
2046  CXX=$ac_ct_CXX
2047fi
2048
2049
2050# Provide some information about the compiler.
2051echo "$as_me:$LINENO:" \
2052     "checking for C++ compiler version" >&5
2053ac_compiler=`set X $ac_compile; echo $2`
2054{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2055  (eval $ac_compiler --version </dev/null >&5) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }
2059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2060  (eval $ac_compiler -v </dev/null >&5) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }
2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2065  (eval $ac_compiler -V </dev/null >&5) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }
2069
2070cat >conftest.$ac_ext <<_ACEOF
2071/* confdefs.h.  */
2072_ACEOF
2073cat confdefs.h >>conftest.$ac_ext
2074cat >>conftest.$ac_ext <<_ACEOF
2075/* end confdefs.h.  */
2076
2077int
2078main ()
2079{
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085ac_clean_files_save=$ac_clean_files
2086ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087# Try to create an executable without -o first, disregard a.out.
2088# It will help us diagnose broken compilers, and finding out an intuition
2089# of exeext.
2090echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2091echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2092ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094  (eval $ac_link_default) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # Find the output, starting from the most likely.  This scheme is
2099# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100# resort.
2101
2102# Be careful to initialize this variable, since it used to be cached.
2103# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104ac_cv_exeext=
2105# b.out is created by i960 compilers.
2106for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107do
2108  test -f "$ac_file" || continue
2109  case $ac_file in
2110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111	;;
2112    conftest.$ac_ext )
2113	# This is the source file.
2114	;;
2115    [ab].out )
2116	# We found the default executable, but exeext='' is most
2117	# certainly right.
2118	break;;
2119    *.* )
2120	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121	# FIXME: I believe we export ac_cv_exeext for Libtool,
2122	# but it would be cool to find out if it's true.  Does anybody
2123	# maintain Libtool? --akim.
2124	export ac_cv_exeext
2125	break;;
2126    * )
2127	break;;
2128  esac
2129done
2130else
2131  echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: C++ compiler cannot create executables
2137See \`config.log' for more details." >&2;}
2138   { (exit 77); exit 77; }; }
2139fi
2140
2141ac_exeext=$ac_cv_exeext
2142echo "$as_me:$LINENO: result: $ac_file" >&5
2143echo "${ECHO_T}$ac_file" >&6
2144
2145# Check the compiler produces executables we can run.  If not, either
2146# the compiler is broken, or we cross compile.
2147echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2148echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2149# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150# If not cross compiling, check that we can run a simple program.
2151if test "$cross_compiling" != yes; then
2152  if { ac_try='./$ac_file'
2153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154  (eval $ac_try) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }; }; then
2158    cross_compiling=no
2159  else
2160    if test "$cross_compiling" = maybe; then
2161	cross_compiling=yes
2162    else
2163	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2164If you meant to cross compile, use \`--host'.
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot run C++ compiled programs.
2167If you meant to cross compile, use \`--host'.
2168See \`config.log' for more details." >&2;}
2169   { (exit 1); exit 1; }; }
2170    fi
2171  fi
2172fi
2173echo "$as_me:$LINENO: result: yes" >&5
2174echo "${ECHO_T}yes" >&6
2175
2176rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177ac_clean_files=$ac_clean_files_save
2178# Check the compiler produces executables we can run.  If not, either
2179# the compiler is broken, or we cross compile.
2180echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183echo "${ECHO_T}$cross_compiling" >&6
2184
2185echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188  (eval $ac_link) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194# work properly (i.e., refer to `conftest.exe'), while it won't with
2195# `rm'.
2196for ac_file in conftest.exe conftest conftest.*; do
2197  test -f "$ac_file" || continue
2198  case $ac_file in
2199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201	  export ac_cv_exeext
2202	  break;;
2203    * ) break;;
2204  esac
2205done
2206else
2207  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210See \`config.log' for more details." >&2;}
2211   { (exit 1); exit 1; }; }
2212fi
2213
2214rm -f conftest$ac_cv_exeext
2215echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218rm -f conftest.$ac_ext
2219EXEEXT=$ac_cv_exeext
2220ac_exeext=$EXEEXT
2221echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223if test "${ac_cv_objext+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h.  */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h.  */
2232
2233int
2234main ()
2235{
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241rm -f conftest.o conftest.obj
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243  (eval $ac_compile) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; then
2247  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248  case $ac_file in
2249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2250    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251       break;;
2252  esac
2253done
2254else
2255  echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot compute suffix of object files: cannot compile
2261See \`config.log' for more details." >&2;}
2262   { (exit 1); exit 1; }; }
2263fi
2264
2265rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268echo "${ECHO_T}$ac_cv_objext" >&6
2269OBJEXT=$ac_cv_objext
2270ac_objext=$OBJEXT
2271echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2272echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2273if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286#ifndef __GNUC__
2287       choke me
2288#endif
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296  (eval $ac_compile) 2>conftest.er1
2297  ac_status=$?
2298  grep -v '^ *+' conftest.er1 >conftest.err
2299  rm -f conftest.er1
2300  cat conftest.err >&5
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); } &&
2303	 { ac_try='test -z "$ac_cxx_werror_flag"
2304			 || test ! -s conftest.err'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; } &&
2310	 { ac_try='test -s conftest.$ac_objext'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316  ac_compiler_gnu=yes
2317else
2318  echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321ac_compiler_gnu=no
2322fi
2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2325
2326fi
2327echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2328echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2329GXX=`test $ac_compiler_gnu = yes && echo yes`
2330ac_test_CXXFLAGS=${CXXFLAGS+set}
2331ac_save_CXXFLAGS=$CXXFLAGS
2332CXXFLAGS="-g"
2333echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2334echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2335if test "${ac_cv_prog_cxx_g+set}" = set; then
2336  echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338  cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h.  */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h.  */
2344
2345int
2346main ()
2347{
2348
2349  ;
2350  return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362	 { ac_try='test -z "$ac_cxx_werror_flag"
2363			 || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369	 { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cxx_g=yes
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380ac_cv_prog_cxx_g=no
2381fi
2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2385echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2386if test "$ac_test_CXXFLAGS" = set; then
2387  CXXFLAGS=$ac_save_CXXFLAGS
2388elif test $ac_cv_prog_cxx_g = yes; then
2389  if test "$GXX" = yes; then
2390    CXXFLAGS="-g -O2"
2391  else
2392    CXXFLAGS="-g"
2393  fi
2394else
2395  if test "$GXX" = yes; then
2396    CXXFLAGS="-O2"
2397  else
2398    CXXFLAGS=
2399  fi
2400fi
2401for ac_declaration in \
2402   '' \
2403   'extern "C" void std::exit (int) throw (); using std::exit;' \
2404   'extern "C" void std::exit (int); using std::exit;' \
2405   'extern "C" void exit (int) throw ();' \
2406   'extern "C" void exit (int);' \
2407   'void exit (int);'
2408do
2409  cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h.  */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h.  */
2415$ac_declaration
2416#include <stdlib.h>
2417int
2418main ()
2419{
2420exit (42);
2421  ;
2422  return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427  (eval $ac_compile) 2>conftest.er1
2428  ac_status=$?
2429  grep -v '^ *+' conftest.er1 >conftest.err
2430  rm -f conftest.er1
2431  cat conftest.err >&5
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); } &&
2434	 { ac_try='test -z "$ac_cxx_werror_flag"
2435			 || test ! -s conftest.err'
2436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437  (eval $ac_try) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }; } &&
2441	 { ac_try='test -s conftest.$ac_objext'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447  :
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452continue
2453fi
2454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455  cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h.  */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h.  */
2461$ac_declaration
2462int
2463main ()
2464{
2465exit (42);
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479	 { ac_try='test -z "$ac_cxx_werror_flag"
2480			 || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486	 { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  break
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497fi
2498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499done
2500rm -f conftest*
2501if test -n "$ac_declaration"; then
2502  echo '#ifdef __cplusplus' >>confdefs.h
2503  echo $ac_declaration      >>confdefs.h
2504  echo '#endif'             >>confdefs.h
2505fi
2506
2507ac_ext=c
2508ac_cpp='$CPP $CPPFLAGS'
2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512DEPDIR="${am__leading_dot}deps"
2513
2514          ac_config_commands="$ac_config_commands depfiles"
2515
2516
2517am_make=${MAKE-make}
2518cat > confinc << 'END'
2519am__doit:
2520	@echo done
2521.PHONY: am__doit
2522END
2523# If we don't find an include directive, just comment out the code.
2524echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2525echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2526am__include="#"
2527am__quote=
2528_am_result=none
2529# First try GNU make style include.
2530echo "include confinc" > confmf
2531# We grep out `Entering directory' and `Leaving directory'
2532# messages which can occur if `w' ends up in MAKEFLAGS.
2533# In particular we don't look at `^make:' because GNU make might
2534# be invoked under some other name (usually "gmake"), in which
2535# case it prints its new name instead of `make'.
2536if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2537   am__include=include
2538   am__quote=
2539   _am_result=GNU
2540fi
2541# Now try BSD make style include.
2542if test "$am__include" = "#"; then
2543   echo '.include "confinc"' > confmf
2544   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2545      am__include=.include
2546      am__quote="\""
2547      _am_result=BSD
2548   fi
2549fi
2550
2551
2552echo "$as_me:$LINENO: result: $_am_result" >&5
2553echo "${ECHO_T}$_am_result" >&6
2554rm -f confinc confmf
2555
2556# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2557if test "${enable_dependency_tracking+set}" = set; then
2558  enableval="$enable_dependency_tracking"
2559
2560fi;
2561if test "x$enable_dependency_tracking" != xno; then
2562  am_depcomp="$ac_aux_dir/depcomp"
2563  AMDEPBACKSLASH='\'
2564fi
2565
2566
2567if test "x$enable_dependency_tracking" != xno; then
2568  AMDEP_TRUE=
2569  AMDEP_FALSE='#'
2570else
2571  AMDEP_TRUE='#'
2572  AMDEP_FALSE=
2573fi
2574
2575
2576
2577
2578depcc="$CXX"  am_compiler_list=
2579
2580echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2581echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2582if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2583  echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2586  # We make a subdir and do the tests there.  Otherwise we can end up
2587  # making bogus files that we don't know about and never remove.  For
2588  # instance it was reported that on HP-UX the gcc test will end up
2589  # making a dummy file named `D' -- because `-MD' means `put the output
2590  # in D'.
2591  mkdir conftest.dir
2592  # Copy depcomp to subdir because otherwise we won't find it if we're
2593  # using a relative directory.
2594  cp "$am_depcomp" conftest.dir
2595  cd conftest.dir
2596  # We will build objects and dependencies in a subdirectory because
2597  # it helps to detect inapplicable dependency modes.  For instance
2598  # both Tru64's cc and ICC support -MD to output dependencies as a
2599  # side effect of compilation, but ICC will put the dependencies in
2600  # the current directory while Tru64 will put them in the object
2601  # directory.
2602  mkdir sub
2603
2604  am_cv_CXX_dependencies_compiler_type=none
2605  if test "$am_compiler_list" = ""; then
2606     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2607  fi
2608  for depmode in $am_compiler_list; do
2609    # Setup a source with many dependencies, because some compilers
2610    # like to wrap large dependency lists on column 80 (with \), and
2611    # we should not choose a depcomp mode which is confused by this.
2612    #
2613    # We need to recreate these files for each test, as the compiler may
2614    # overwrite some of them when testing with obscure command lines.
2615    # This happens at least with the AIX C compiler.
2616    : > sub/conftest.c
2617    for i in 1 2 3 4 5 6; do
2618      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2619      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2620      # Solaris 8's {/usr,}/bin/sh.
2621      touch sub/conftst$i.h
2622    done
2623    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2624
2625    case $depmode in
2626    nosideeffect)
2627      # after this tag, mechanisms are not by side-effect, so they'll
2628      # only be used when explicitly requested
2629      if test "x$enable_dependency_tracking" = xyes; then
2630	continue
2631      else
2632	break
2633      fi
2634      ;;
2635    none) break ;;
2636    esac
2637    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2638    # mode.  It turns out that the SunPro C++ compiler does not properly
2639    # handle `-M -o', and we need to detect this.
2640    if depmode=$depmode \
2641       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2642       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2643       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2644         >/dev/null 2>conftest.err &&
2645       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2646       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2647       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2648      # icc doesn't choke on unknown options, it will just issue warnings
2649      # or remarks (even with -Werror).  So we grep stderr for any message
2650      # that says an option was ignored or not supported.
2651      # When given -MP, icc 7.0 and 7.1 complain thusly:
2652      #   icc: Command line warning: ignoring option '-M'; no argument required
2653      # The diagnosis changed in icc 8.0:
2654      #   icc: Command line remark: option '-MP' not supported
2655      if (grep 'ignoring option' conftest.err ||
2656          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2657        am_cv_CXX_dependencies_compiler_type=$depmode
2658        break
2659      fi
2660    fi
2661  done
2662
2663  cd ..
2664  rm -rf conftest.dir
2665else
2666  am_cv_CXX_dependencies_compiler_type=none
2667fi
2668
2669fi
2670echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2671echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2672CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2673
2674
2675
2676if
2677  test "x$enable_dependency_tracking" != xno \
2678  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2679  am__fastdepCXX_TRUE=
2680  am__fastdepCXX_FALSE='#'
2681else
2682  am__fastdepCXX_TRUE='#'
2683  am__fastdepCXX_FALSE=
2684fi
2685
2686
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692if test -n "$ac_tool_prefix"; then
2693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698  echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700  if test -n "$CC"; then
2701  ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708  for ac_exec_ext in '' $ac_executable_extensions; do
2709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715done
2716
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
2723else
2724  echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730  ac_ct_CC=$CC
2731  # Extract the first word of "gcc", so it can be a program name with args.
2732set dummy gcc; ac_word=$2
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736  echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738  if test -n "$ac_ct_CC"; then
2739  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746  for ac_exec_ext in '' $ac_executable_extensions; do
2747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_ac_ct_CC="gcc"
2749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753done
2754
2755fi
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760echo "${ECHO_T}$ac_ct_CC" >&6
2761else
2762  echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764fi
2765
2766  CC=$ac_ct_CC
2767else
2768  CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772  if test -n "$ac_tool_prefix"; then
2773  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_CC+set}" = set; then
2778  echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788  for ac_exec_ext in '' $ac_executable_extensions; do
2789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}cc"
2791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795done
2796
2797fi
2798fi
2799CC=$ac_cv_prog_CC
2800if test -n "$CC"; then
2801  echo "$as_me:$LINENO: result: $CC" >&5
2802echo "${ECHO_T}$CC" >&6
2803else
2804  echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806fi
2807
2808fi
2809if test -z "$ac_cv_prog_CC"; then
2810  ac_ct_CC=$CC
2811  # Extract the first word of "cc", so it can be a program name with args.
2812set dummy cc; ac_word=$2
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$ac_ct_CC"; then
2819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_ac_ct_CC="cc"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834
2835fi
2836fi
2837ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838if test -n "$ac_ct_CC"; then
2839  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840echo "${ECHO_T}$ac_ct_CC" >&6
2841else
2842  echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844fi
2845
2846  CC=$ac_ct_CC
2847else
2848  CC="$ac_cv_prog_CC"
2849fi
2850
2851fi
2852if test -z "$CC"; then
2853  # Extract the first word of "cc", so it can be a program name with args.
2854set dummy cc; ac_word=$2
2855echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857if test "${ac_cv_prog_CC+set}" = set; then
2858  echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860  if test -n "$CC"; then
2861  ac_cv_prog_CC="$CC" # Let the user override the test.
2862else
2863  ac_prog_rejected=no
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869  for ac_exec_ext in '' $ac_executable_extensions; do
2870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872       ac_prog_rejected=yes
2873       continue
2874     fi
2875    ac_cv_prog_CC="cc"
2876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880done
2881
2882if test $ac_prog_rejected = yes; then
2883  # We found a bogon in the path, so make sure we never use it.
2884  set dummy $ac_cv_prog_CC
2885  shift
2886  if test $# != 0; then
2887    # We chose a different compiler from the bogus one.
2888    # However, it has the same basename, so the bogon will be chosen
2889    # first if we set CC to just the basename; use the full file name.
2890    shift
2891    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892  fi
2893fi
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  echo "$as_me:$LINENO: result: $CC" >&5
2899echo "${ECHO_T}$CC" >&6
2900else
2901  echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905fi
2906if test -z "$CC"; then
2907  if test -n "$ac_tool_prefix"; then
2908  for ac_prog in cl
2909  do
2910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912echo "$as_me:$LINENO: checking for $ac_word" >&5
2913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914if test "${ac_cv_prog_CC+set}" = set; then
2915  echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917  if test -n "$CC"; then
2918  ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925  for ac_exec_ext in '' $ac_executable_extensions; do
2926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932done
2933
2934fi
2935fi
2936CC=$ac_cv_prog_CC
2937if test -n "$CC"; then
2938  echo "$as_me:$LINENO: result: $CC" >&5
2939echo "${ECHO_T}$CC" >&6
2940else
2941  echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943fi
2944
2945    test -n "$CC" && break
2946  done
2947fi
2948if test -z "$CC"; then
2949  ac_ct_CC=$CC
2950  for ac_prog in cl
2951do
2952  # Extract the first word of "$ac_prog", so it can be a program name with args.
2953set dummy $ac_prog; ac_word=$2
2954echo "$as_me:$LINENO: checking for $ac_word" >&5
2955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957  echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959  if test -n "$ac_ct_CC"; then
2960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967  for ac_exec_ext in '' $ac_executable_extensions; do
2968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_ac_ct_CC="$ac_prog"
2970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974done
2975
2976fi
2977fi
2978ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979if test -n "$ac_ct_CC"; then
2980  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2981echo "${ECHO_T}$ac_ct_CC" >&6
2982else
2983  echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985fi
2986
2987  test -n "$ac_ct_CC" && break
2988done
2989
2990  CC=$ac_ct_CC
2991fi
2992
2993fi
2994
2995
2996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2997See \`config.log' for more details." >&5
2998echo "$as_me: error: no acceptable C compiler found in \$PATH
2999See \`config.log' for more details." >&2;}
3000   { (exit 1); exit 1; }; }
3001
3002# Provide some information about the compiler.
3003echo "$as_me:$LINENO:" \
3004     "checking for C compiler version" >&5
3005ac_compiler=`set X $ac_compile; echo $2`
3006{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3007  (eval $ac_compiler --version </dev/null >&5) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }
3011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3012  (eval $ac_compiler -v </dev/null >&5) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }
3016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3017  (eval $ac_compiler -V </dev/null >&5) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }
3021
3022echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3024if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037#ifndef __GNUC__
3038       choke me
3039#endif
3040
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047  (eval $ac_compile) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } &&
3054	 { ac_try='test -z "$ac_c_werror_flag"
3055			 || test ! -s conftest.err'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; } &&
3061	 { ac_try='test -s conftest.$ac_objext'
3062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063  (eval $ac_try) 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067  ac_compiler_gnu=yes
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072ac_compiler_gnu=no
3073fi
3074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076
3077fi
3078echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3079echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3080GCC=`test $ac_compiler_gnu = yes && echo yes`
3081ac_test_CFLAGS=${CFLAGS+set}
3082ac_save_CFLAGS=$CFLAGS
3083CFLAGS="-g"
3084echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3086if test "${ac_cv_prog_cc_g+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106  (eval $ac_compile) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113	 { ac_try='test -z "$ac_c_werror_flag"
3114			 || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120	 { ac_try='test -s conftest.$ac_objext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  ac_cv_prog_cc_g=yes
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131ac_cv_prog_cc_g=no
3132fi
3133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134fi
3135echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3137if test "$ac_test_CFLAGS" = set; then
3138  CFLAGS=$ac_save_CFLAGS
3139elif test $ac_cv_prog_cc_g = yes; then
3140  if test "$GCC" = yes; then
3141    CFLAGS="-g -O2"
3142  else
3143    CFLAGS="-g"
3144  fi
3145else
3146  if test "$GCC" = yes; then
3147    CFLAGS="-O2"
3148  else
3149    CFLAGS=
3150  fi
3151fi
3152echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3153echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3154if test "${ac_cv_prog_cc_stdc+set}" = set; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  ac_cv_prog_cc_stdc=no
3158ac_save_CC=$CC
3159cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h.  */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h.  */
3165#include <stdarg.h>
3166#include <stdio.h>
3167#include <sys/types.h>
3168#include <sys/stat.h>
3169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3170struct buf { int x; };
3171FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172static char *e (p, i)
3173     char **p;
3174     int i;
3175{
3176  return p[i];
3177}
3178static char *f (char * (*g) (char **, int), char **p, ...)
3179{
3180  char *s;
3181  va_list v;
3182  va_start (v,p);
3183  s = g (p, va_arg (v,int));
3184  va_end (v);
3185  return s;
3186}
3187
3188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3189   function prototypes and stuff, but not '\xHH' hex character constants.
3190   These don't provoke an error unfortunately, instead are silently treated
3191   as 'x'.  The following induces an error, until -std1 is added to get
3192   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3193   array size at least.  It's necessary to write '\x00'==0 to get something
3194   that's true only with -std1.  */
3195int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
3197int test (int i, double x);
3198struct s1 {int (*f) (int a);};
3199struct s2 {int (*f) (double a);};
3200int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3201int argc;
3202char **argv;
3203int
3204main ()
3205{
3206return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211# Don't try gcc -ansi; that turns off useful extensions and
3212# breaks some systems' header files.
3213# AIX			-qlanglvl=ansi
3214# Ultrix and OSF/1	-std1
3215# HP-UX 10.20 and later	-Ae
3216# HP-UX older versions	-Aa -D_HPUX_SOURCE
3217# SVR4			-Xc -D__EXTENSIONS__
3218for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219do
3220  CC="$ac_save_CC $ac_arg"
3221  rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223  (eval $ac_compile) 2>conftest.er1
3224  ac_status=$?
3225  grep -v '^ *+' conftest.er1 >conftest.err
3226  rm -f conftest.er1
3227  cat conftest.err >&5
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); } &&
3230	 { ac_try='test -z "$ac_c_werror_flag"
3231			 || test ! -s conftest.err'
3232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233  (eval $ac_try) 2>&5
3234  ac_status=$?
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); }; } &&
3237	 { ac_try='test -s conftest.$ac_objext'
3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239  (eval $ac_try) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }; }; then
3243  ac_cv_prog_cc_stdc=$ac_arg
3244break
3245else
3246  echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249fi
3250rm -f conftest.err conftest.$ac_objext
3251done
3252rm -f conftest.$ac_ext conftest.$ac_objext
3253CC=$ac_save_CC
3254
3255fi
3256
3257case "x$ac_cv_prog_cc_stdc" in
3258  x|xno)
3259    echo "$as_me:$LINENO: result: none needed" >&5
3260echo "${ECHO_T}none needed" >&6 ;;
3261  *)
3262    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3263echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3264    CC="$CC $ac_cv_prog_cc_stdc" ;;
3265esac
3266
3267# Some people use a C++ compiler to compile C.  Since we use `exit',
3268# in C++ we need to declare it.  In case someone uses the same compiler
3269# for both compiling C and C++ we need to have the C++ compiler decide
3270# the declaration of exit, since it's the most demanding environment.
3271cat >conftest.$ac_ext <<_ACEOF
3272#ifndef __cplusplus
3273  choke me
3274#endif
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278  (eval $ac_compile) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285	 { ac_try='test -z "$ac_c_werror_flag"
3286			 || test ! -s conftest.err'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; } &&
3292	 { ac_try='test -s conftest.$ac_objext'
3293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294  (eval $ac_try) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }; }; then
3298  for ac_declaration in \
3299   '' \
3300   'extern "C" void std::exit (int) throw (); using std::exit;' \
3301   'extern "C" void std::exit (int); using std::exit;' \
3302   'extern "C" void exit (int) throw ();' \
3303   'extern "C" void exit (int);' \
3304   'void exit (int);'
3305do
3306  cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h.  */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h.  */
3312$ac_declaration
3313#include <stdlib.h>
3314int
3315main ()
3316{
3317exit (42);
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324  (eval $ac_compile) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331	 { ac_try='test -z "$ac_c_werror_flag"
3332			 || test ! -s conftest.err'
3333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334  (eval $ac_try) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; } &&
3338	 { ac_try='test -s conftest.$ac_objext'
3339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340  (eval $ac_try) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; }; then
3344  :
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349continue
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352  cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358$ac_declaration
3359int
3360main ()
3361{
3362exit (42);
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376	 { ac_try='test -z "$ac_c_werror_flag"
3377			 || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383	 { ac_try='test -s conftest.$ac_objext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  break
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396done
3397rm -f conftest*
3398if test -n "$ac_declaration"; then
3399  echo '#ifdef __cplusplus' >>confdefs.h
3400  echo $ac_declaration      >>confdefs.h
3401  echo '#endif'             >>confdefs.h
3402fi
3403
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416depcc="$CC"   am_compiler_list=
3417
3418echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3420if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421  echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424  # We make a subdir and do the tests there.  Otherwise we can end up
3425  # making bogus files that we don't know about and never remove.  For
3426  # instance it was reported that on HP-UX the gcc test will end up
3427  # making a dummy file named `D' -- because `-MD' means `put the output
3428  # in D'.
3429  mkdir conftest.dir
3430  # Copy depcomp to subdir because otherwise we won't find it if we're
3431  # using a relative directory.
3432  cp "$am_depcomp" conftest.dir
3433  cd conftest.dir
3434  # We will build objects and dependencies in a subdirectory because
3435  # it helps to detect inapplicable dependency modes.  For instance
3436  # both Tru64's cc and ICC support -MD to output dependencies as a
3437  # side effect of compilation, but ICC will put the dependencies in
3438  # the current directory while Tru64 will put them in the object
3439  # directory.
3440  mkdir sub
3441
3442  am_cv_CC_dependencies_compiler_type=none
3443  if test "$am_compiler_list" = ""; then
3444     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3445  fi
3446  for depmode in $am_compiler_list; do
3447    # Setup a source with many dependencies, because some compilers
3448    # like to wrap large dependency lists on column 80 (with \), and
3449    # we should not choose a depcomp mode which is confused by this.
3450    #
3451    # We need to recreate these files for each test, as the compiler may
3452    # overwrite some of them when testing with obscure command lines.
3453    # This happens at least with the AIX C compiler.
3454    : > sub/conftest.c
3455    for i in 1 2 3 4 5 6; do
3456      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3457      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3458      # Solaris 8's {/usr,}/bin/sh.
3459      touch sub/conftst$i.h
3460    done
3461    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462
3463    case $depmode in
3464    nosideeffect)
3465      # after this tag, mechanisms are not by side-effect, so they'll
3466      # only be used when explicitly requested
3467      if test "x$enable_dependency_tracking" = xyes; then
3468	continue
3469      else
3470	break
3471      fi
3472      ;;
3473    none) break ;;
3474    esac
3475    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3476    # mode.  It turns out that the SunPro C++ compiler does not properly
3477    # handle `-M -o', and we need to detect this.
3478    if depmode=$depmode \
3479       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3480       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3481       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3482         >/dev/null 2>conftest.err &&
3483       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3484       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3485       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3486      # icc doesn't choke on unknown options, it will just issue warnings
3487      # or remarks (even with -Werror).  So we grep stderr for any message
3488      # that says an option was ignored or not supported.
3489      # When given -MP, icc 7.0 and 7.1 complain thusly:
3490      #   icc: Command line warning: ignoring option '-M'; no argument required
3491      # The diagnosis changed in icc 8.0:
3492      #   icc: Command line remark: option '-MP' not supported
3493      if (grep 'ignoring option' conftest.err ||
3494          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3495        am_cv_CC_dependencies_compiler_type=$depmode
3496        break
3497      fi
3498    fi
3499  done
3500
3501  cd ..
3502  rm -rf conftest.dir
3503else
3504  am_cv_CC_dependencies_compiler_type=none
3505fi
3506
3507fi
3508echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3509echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3511
3512
3513
3514if
3515  test "x$enable_dependency_tracking" != xno \
3516  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3517  am__fastdepCC_TRUE=
3518  am__fastdepCC_FALSE='#'
3519else
3520  am__fastdepCC_TRUE='#'
3521  am__fastdepCC_FALSE=
3522fi
3523
3524
3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3532# On Suns, sometimes $CPP names a directory.
3533if test -n "$CPP" && test -d "$CPP"; then
3534  CPP=
3535fi
3536if test -z "$CPP"; then
3537  if test "${ac_cv_prog_CPP+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540      # Double quotes because CPP needs to be expanded
3541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542    do
3543      ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563		     Syntax error
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } >/dev/null; then
3573  if test -s conftest.err; then
3574    ac_cpp_err=$ac_c_preproc_warn_flag
3575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576  else
3577    ac_cpp_err=
3578  fi
3579else
3580  ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583  :
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether non-existent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null; then
3611  if test -s conftest.err; then
3612    ac_cpp_err=$ac_c_preproc_warn_flag
3613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614  else
3615    ac_cpp_err=
3616  fi
3617else
3618  ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621  # Broken: success on invalid input.
3622continue
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Passes both tests.
3628ac_preproc_ok=:
3629break
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637  break
3638fi
3639
3640    done
3641    ac_cv_prog_CPP=$CPP
3642
3643fi
3644  CPP=$ac_cv_prog_CPP
3645else
3646  ac_cv_prog_CPP=$CPP
3647fi
3648echo "$as_me:$LINENO: result: $CPP" >&5
3649echo "${ECHO_T}$CPP" >&6
3650ac_preproc_ok=false
3651for ac_c_preproc_warn_flag in '' yes
3652do
3653  # Use a header file that comes with gcc, so configuring glibc
3654  # with a fresh cross-compiler works.
3655  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656  # <limits.h> exists even on freestanding compilers.
3657  # On the NeXT, cc -E runs the code through the compiler's parser,
3658  # not just through cpp. "Syntax error" is here to catch this case.
3659  cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670		     Syntax error
3671_ACEOF
3672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3673  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } >/dev/null; then
3680  if test -s conftest.err; then
3681    ac_cpp_err=$ac_c_preproc_warn_flag
3682    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3683  else
3684    ac_cpp_err=
3685  fi
3686else
3687  ac_cpp_err=yes
3688fi
3689if test -z "$ac_cpp_err"; then
3690  :
3691else
3692  echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695  # Broken: fails on valid input.
3696continue
3697fi
3698rm -f conftest.err conftest.$ac_ext
3699
3700  # OK, works on sane cases.  Now check whether non-existent headers
3701  # can be detected and how.
3702  cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h.  */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h.  */
3708#include <ac_nonexistent.h>
3709_ACEOF
3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } >/dev/null; then
3718  if test -s conftest.err; then
3719    ac_cpp_err=$ac_c_preproc_warn_flag
3720    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721  else
3722    ac_cpp_err=
3723  fi
3724else
3725  ac_cpp_err=yes
3726fi
3727if test -z "$ac_cpp_err"; then
3728  # Broken: success on invalid input.
3729continue
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734  # Passes both tests.
3735ac_preproc_ok=:
3736break
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742rm -f conftest.err conftest.$ac_ext
3743if $ac_preproc_ok; then
3744  :
3745else
3746  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747See \`config.log' for more details." >&5
3748echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details." >&2;}
3750   { (exit 1); exit 1; }; }
3751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759# Find a good install program.  We prefer a C program (faster),
3760# so one script is as good as another.  But avoid the broken or
3761# incompatible versions:
3762# SysV /etc/install, /usr/sbin/install
3763# SunOS /usr/etc/install
3764# IRIX /sbin/install
3765# AIX /bin/install
3766# AmigaOS /C/install, which installs bootblocks on floppy discs
3767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770# OS/2's system install, which has a completely different semantic
3771# ./install, which can be erroneously created by make from ./install.sh.
3772echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3773echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3774if test -z "$INSTALL"; then
3775if test "${ac_cv_path_install+set}" = set; then
3776  echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  # Account for people who put trailing slashes in PATH elements.
3784case $as_dir/ in
3785  ./ | .// | /cC/* | \
3786  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3787  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3788  /usr/ucb/* ) ;;
3789  *)
3790    # OSF1 and SCO ODT 3.0 have their own names for install.
3791    # Don't use installbsd from OSF since it installs stuff as root
3792    # by default.
3793    for ac_prog in ginstall scoinst install; do
3794      for ac_exec_ext in '' $ac_executable_extensions; do
3795	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3796	  if test $ac_prog = install &&
3797	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798	    # AIX install.  It has an incompatible calling convention.
3799	    :
3800	  elif test $ac_prog = install &&
3801	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802	    # program-specific install script used by HP pwplus--don't use.
3803	    :
3804	  else
3805	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3806	    break 3
3807	  fi
3808	fi
3809      done
3810    done
3811    ;;
3812esac
3813done
3814
3815
3816fi
3817  if test "${ac_cv_path_install+set}" = set; then
3818    INSTALL=$ac_cv_path_install
3819  else
3820    # As a last resort, use the slow shell script.  We don't cache a
3821    # path for INSTALL within a source directory, because that will
3822    # break other packages using the cache if that directory is
3823    # removed, or if the path is relative.
3824    INSTALL=$ac_install_sh
3825  fi
3826fi
3827echo "$as_me:$LINENO: result: $INSTALL" >&5
3828echo "${ECHO_T}$INSTALL" >&6
3829
3830# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3831# It thinks the first close brace ends the variable substitution.
3832test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3833
3834test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3835
3836test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837
3838echo "$as_me:$LINENO: checking whether ln -s works" >&5
3839echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3840LN_S=$as_ln_s
3841if test "$LN_S" = "ln -s"; then
3842  echo "$as_me:$LINENO: result: yes" >&5
3843echo "${ECHO_T}yes" >&6
3844else
3845  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3846echo "${ECHO_T}no, using $LN_S" >&6
3847fi
3848
3849echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3850echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3851set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3852if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3853  echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855  cat >conftest.make <<\_ACEOF
3856all:
3857	@echo 'ac_maketemp="$(MAKE)"'
3858_ACEOF
3859# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3860eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3861if test -n "$ac_maketemp"; then
3862  eval ac_cv_prog_make_${ac_make}_set=yes
3863else
3864  eval ac_cv_prog_make_${ac_make}_set=no
3865fi
3866rm -f conftest.make
3867fi
3868if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3869  echo "$as_me:$LINENO: result: yes" >&5
3870echo "${ECHO_T}yes" >&6
3871  SET_MAKE=
3872else
3873  echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
3875  SET_MAKE="MAKE=${MAKE-make}"
3876fi
3877
3878# Check whether --enable-shared or --disable-shared was given.
3879if test "${enable_shared+set}" = set; then
3880  enableval="$enable_shared"
3881  p=${PACKAGE-default}
3882    case $enableval in
3883    yes) enable_shared=yes ;;
3884    no) enable_shared=no ;;
3885    *)
3886      enable_shared=no
3887      # Look at the argument we got.  We use all the common list separators.
3888      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3889      for pkg in $enableval; do
3890	IFS="$lt_save_ifs"
3891	if test "X$pkg" = "X$p"; then
3892	  enable_shared=yes
3893	fi
3894      done
3895      IFS="$lt_save_ifs"
3896      ;;
3897    esac
3898else
3899  enable_shared=yes
3900fi;
3901
3902# Check whether --enable-static or --disable-static was given.
3903if test "${enable_static+set}" = set; then
3904  enableval="$enable_static"
3905  p=${PACKAGE-default}
3906    case $enableval in
3907    yes) enable_static=yes ;;
3908    no) enable_static=no ;;
3909    *)
3910     enable_static=no
3911      # Look at the argument we got.  We use all the common list separators.
3912      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3913      for pkg in $enableval; do
3914	IFS="$lt_save_ifs"
3915	if test "X$pkg" = "X$p"; then
3916	  enable_static=yes
3917	fi
3918      done
3919      IFS="$lt_save_ifs"
3920      ;;
3921    esac
3922else
3923  enable_static=yes
3924fi;
3925
3926# Check whether --enable-fast-install or --disable-fast-install was given.
3927if test "${enable_fast_install+set}" = set; then
3928  enableval="$enable_fast_install"
3929  p=${PACKAGE-default}
3930    case $enableval in
3931    yes) enable_fast_install=yes ;;
3932    no) enable_fast_install=no ;;
3933    *)
3934      enable_fast_install=no
3935      # Look at the argument we got.  We use all the common list separators.
3936      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3937      for pkg in $enableval; do
3938	IFS="$lt_save_ifs"
3939	if test "X$pkg" = "X$p"; then
3940	  enable_fast_install=yes
3941	fi
3942      done
3943      IFS="$lt_save_ifs"
3944      ;;
3945    esac
3946else
3947  enable_fast_install=yes
3948fi;
3949
3950# Make sure we can run config.sub.
3951$ac_config_sub sun4 >/dev/null 2>&1 ||
3952  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3953echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3954   { (exit 1); exit 1; }; }
3955
3956echo "$as_me:$LINENO: checking build system type" >&5
3957echo $ECHO_N "checking build system type... $ECHO_C" >&6
3958if test "${ac_cv_build+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  ac_cv_build_alias=$build_alias
3962test -z "$ac_cv_build_alias" &&
3963  ac_cv_build_alias=`$ac_config_guess`
3964test -z "$ac_cv_build_alias" &&
3965  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3966echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3967   { (exit 1); exit 1; }; }
3968ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3969  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3970echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3971   { (exit 1); exit 1; }; }
3972
3973fi
3974echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3975echo "${ECHO_T}$ac_cv_build" >&6
3976build=$ac_cv_build
3977build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3978build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3979build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3980
3981
3982echo "$as_me:$LINENO: checking host system type" >&5
3983echo $ECHO_N "checking host system type... $ECHO_C" >&6
3984if test "${ac_cv_host+set}" = set; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  ac_cv_host_alias=$host_alias
3988test -z "$ac_cv_host_alias" &&
3989  ac_cv_host_alias=$ac_cv_build_alias
3990ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3991  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3992echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3993   { (exit 1); exit 1; }; }
3994
3995fi
3996echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3997echo "${ECHO_T}$ac_cv_host" >&6
3998host=$ac_cv_host
3999host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4000host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4001host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4002
4003
4004echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4005echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4006if test "${lt_cv_path_SED+set}" = set; then
4007  echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009  # Loop through the user's path and test for sed and gsed.
4010# Then use that list of sed's as ones to test for truncation.
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016  for lt_ac_prog in sed gsed; do
4017    for ac_exec_ext in '' $ac_executable_extensions; do
4018      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4019        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4020      fi
4021    done
4022  done
4023done
4024lt_ac_max=0
4025lt_ac_count=0
4026# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4027# along with /bin/sed that truncates output.
4028for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4029  test ! -f $lt_ac_sed && continue
4030  cat /dev/null > conftest.in
4031  lt_ac_count=0
4032  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4033  # Check for GNU sed and select it if it is found.
4034  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4035    lt_cv_path_SED=$lt_ac_sed
4036    break
4037  fi
4038  while true; do
4039    cat conftest.in conftest.in >conftest.tmp
4040    mv conftest.tmp conftest.in
4041    cp conftest.in conftest.nl
4042    echo >>conftest.nl
4043    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4044    cmp -s conftest.out conftest.nl || break
4045    # 10000 chars as input seems more than enough
4046    test $lt_ac_count -gt 10 && break
4047    lt_ac_count=`expr $lt_ac_count + 1`
4048    if test $lt_ac_count -gt $lt_ac_max; then
4049      lt_ac_max=$lt_ac_count
4050      lt_cv_path_SED=$lt_ac_sed
4051    fi
4052  done
4053done
4054
4055fi
4056
4057SED=$lt_cv_path_SED
4058echo "$as_me:$LINENO: result: $SED" >&5
4059echo "${ECHO_T}$SED" >&6
4060
4061echo "$as_me:$LINENO: checking for egrep" >&5
4062echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4063if test "${ac_cv_prog_egrep+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4067    then ac_cv_prog_egrep='grep -E'
4068    else ac_cv_prog_egrep='egrep'
4069    fi
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4072echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4073 EGREP=$ac_cv_prog_egrep
4074
4075
4076
4077# Check whether --with-gnu-ld or --without-gnu-ld was given.
4078if test "${with_gnu_ld+set}" = set; then
4079  withval="$with_gnu_ld"
4080  test "$withval" = no || with_gnu_ld=yes
4081else
4082  with_gnu_ld=no
4083fi;
4084ac_prog=ld
4085if test "$GCC" = yes; then
4086  # Check if gcc -print-prog-name=ld gives a path.
4087  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4088echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4089  case $host in
4090  *-*-mingw*)
4091    # gcc leaves a trailing carriage return which upsets mingw
4092    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4093  *)
4094    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4095  esac
4096  case $ac_prog in
4097    # Accept absolute paths.
4098    [\\/]* | ?:[\\/]*)
4099      re_direlt='/[^/][^/]*/\.\./'
4100      # Canonicalize the pathname of ld
4101      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4102      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4103	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4104      done
4105      test -z "$LD" && LD="$ac_prog"
4106      ;;
4107  "")
4108    # If it fails, then pretend we aren't using GCC.
4109    ac_prog=ld
4110    ;;
4111  *)
4112    # If it is relative, then search for the first ld in PATH.
4113    with_gnu_ld=unknown
4114    ;;
4115  esac
4116elif test "$with_gnu_ld" = yes; then
4117  echo "$as_me:$LINENO: checking for GNU ld" >&5
4118echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4119else
4120  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4121echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4122fi
4123if test "${lt_cv_path_LD+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  if test -z "$LD"; then
4127  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128  for ac_dir in $PATH; do
4129    IFS="$lt_save_ifs"
4130    test -z "$ac_dir" && ac_dir=.
4131    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132      lt_cv_path_LD="$ac_dir/$ac_prog"
4133      # Check to see if the program is GNU ld.  I'd rather use --version,
4134      # but apparently some variants of GNU ld only accept -v.
4135      # Break only if it was the GNU/non-GNU ld that we prefer.
4136      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4137      *GNU* | *'with BFD'*)
4138	test "$with_gnu_ld" != no && break
4139	;;
4140      *)
4141	test "$with_gnu_ld" != yes && break
4142	;;
4143      esac
4144    fi
4145  done
4146  IFS="$lt_save_ifs"
4147else
4148  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4149fi
4150fi
4151
4152LD="$lt_cv_path_LD"
4153if test -n "$LD"; then
4154  echo "$as_me:$LINENO: result: $LD" >&5
4155echo "${ECHO_T}$LD" >&6
4156else
4157  echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159fi
4160test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4161echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4162   { (exit 1); exit 1; }; }
4163echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4164echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4165if test "${lt_cv_prog_gnu_ld+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4169case `$LD -v 2>&1 </dev/null` in
4170*GNU* | *'with BFD'*)
4171  lt_cv_prog_gnu_ld=yes
4172  ;;
4173*)
4174  lt_cv_prog_gnu_ld=no
4175  ;;
4176esac
4177fi
4178echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4179echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4180with_gnu_ld=$lt_cv_prog_gnu_ld
4181
4182
4183echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4184echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4185if test "${lt_cv_ld_reload_flag+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188  lt_cv_ld_reload_flag='-r'
4189fi
4190echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4191echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4192reload_flag=$lt_cv_ld_reload_flag
4193case $reload_flag in
4194"" | " "*) ;;
4195*) reload_flag=" $reload_flag" ;;
4196esac
4197reload_cmds='$LD$reload_flag -o $output$reload_objs'
4198case $host_os in
4199  darwin*)
4200    if test "$GCC" = yes; then
4201      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4202    else
4203      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204    fi
4205    ;;
4206esac
4207
4208echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4209echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4210if test "${lt_cv_path_NM+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  if test -n "$NM"; then
4214  # Let the user override the test.
4215  lt_cv_path_NM="$NM"
4216else
4217  lt_nm_to_check="${ac_tool_prefix}nm"
4218  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4219    lt_nm_to_check="$lt_nm_to_check nm"
4220  fi
4221  for lt_tmp_nm in $lt_nm_to_check; do
4222    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4224      IFS="$lt_save_ifs"
4225      test -z "$ac_dir" && ac_dir=.
4226      tmp_nm="$ac_dir/$lt_tmp_nm"
4227      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4228	# Check to see if the nm accepts a BSD-compat flag.
4229	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4230	#   nm: unknown option "B" ignored
4231	# Tru64's nm complains that /dev/null is an invalid object file
4232	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4233	*/dev/null* | *'Invalid file or object type'*)
4234	  lt_cv_path_NM="$tmp_nm -B"
4235	  break
4236	  ;;
4237	*)
4238	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4239	  */dev/null*)
4240	    lt_cv_path_NM="$tmp_nm -p"
4241	    break
4242	    ;;
4243	  *)
4244	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4245	    continue # so that we can try to find one that supports BSD flags
4246	    ;;
4247	  esac
4248	  ;;
4249	esac
4250      fi
4251    done
4252    IFS="$lt_save_ifs"
4253  done
4254  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4255fi
4256fi
4257echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4258echo "${ECHO_T}$lt_cv_path_NM" >&6
4259NM="$lt_cv_path_NM"
4260
4261echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4262echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4263if test "${lt_cv_deplibs_check_method+set}" = set; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  lt_cv_file_magic_cmd='$MAGIC_CMD'
4267lt_cv_file_magic_test_file=
4268lt_cv_deplibs_check_method='unknown'
4269# Need to set the preceding variable on all platforms that support
4270# interlibrary dependencies.
4271# 'none' -- dependencies not supported.
4272# `unknown' -- same as none, but documents that we really don't know.
4273# 'pass_all' -- all dependencies passed with no checks.
4274# 'test_compile' -- check by making test program.
4275# 'file_magic [[regex]]' -- check by looking for files in library path
4276# which responds to the $file_magic_cmd with a given extended regex.
4277# If you have `file' or equivalent on your system and you're not sure
4278# whether `pass_all' will *always* work, you probably want this one.
4279
4280case $host_os in
4281aix4* | aix5*)
4282  lt_cv_deplibs_check_method=pass_all
4283  ;;
4284
4285beos*)
4286  lt_cv_deplibs_check_method=pass_all
4287  ;;
4288
4289bsdi[45]*)
4290  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4291  lt_cv_file_magic_cmd='/usr/bin/file -L'
4292  lt_cv_file_magic_test_file=/shlib/libc.so
4293  ;;
4294
4295cygwin*)
4296  # func_win32_libid is a shell function defined in ltmain.sh
4297  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4298  lt_cv_file_magic_cmd='func_win32_libid'
4299  ;;
4300
4301mingw* | pw32*)
4302  # Base MSYS/MinGW do not provide the 'file' command needed by
4303  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4304  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4305  lt_cv_file_magic_cmd='$OBJDUMP -f'
4306  ;;
4307
4308darwin* | rhapsody*)
4309  lt_cv_deplibs_check_method=pass_all
4310  ;;
4311
4312freebsd* | kfreebsd*-gnu | dragonfly*)
4313  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4314    case $host_cpu in
4315    i*86 )
4316      # Not sure whether the presence of OpenBSD here was a mistake.
4317      # Let's accept both of them until this is cleared up.
4318      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4319      lt_cv_file_magic_cmd=/usr/bin/file
4320      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4321      ;;
4322    esac
4323  else
4324    lt_cv_deplibs_check_method=pass_all
4325  fi
4326  ;;
4327
4328gnu*)
4329  lt_cv_deplibs_check_method=pass_all
4330  ;;
4331
4332hpux10.20* | hpux11*)
4333  lt_cv_file_magic_cmd=/usr/bin/file
4334  case $host_cpu in
4335  ia64*)
4336    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4337    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4338    ;;
4339  hppa*64*)
4340    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]'
4341    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4342    ;;
4343  *)
4344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4345    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4346    ;;
4347  esac
4348  ;;
4349
4350interix3*)
4351  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4352  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4353  ;;
4354
4355irix5* | irix6* | nonstopux*)
4356  case $LD in
4357  *-32|*"-32 ") libmagic=32-bit;;
4358  *-n32|*"-n32 ") libmagic=N32;;
4359  *-64|*"-64 ") libmagic=64-bit;;
4360  *) libmagic=never-match;;
4361  esac
4362  lt_cv_deplibs_check_method=pass_all
4363  ;;
4364
4365# This must be Linux ELF.
4366linux*)
4367  lt_cv_deplibs_check_method=pass_all
4368  ;;
4369
4370netbsd*)
4371  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4373  else
4374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4375  fi
4376  ;;
4377
4378newos6*)
4379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4380  lt_cv_file_magic_cmd=/usr/bin/file
4381  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4382  ;;
4383
4384nto-qnx*)
4385  lt_cv_deplibs_check_method=unknown
4386  ;;
4387
4388openbsd*)
4389  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4391  else
4392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4393  fi
4394  ;;
4395
4396osf3* | osf4* | osf5*)
4397  lt_cv_deplibs_check_method=pass_all
4398  ;;
4399
4400solaris*)
4401  lt_cv_deplibs_check_method=pass_all
4402  ;;
4403
4404sysv4 | sysv4.3*)
4405  case $host_vendor in
4406  motorola)
4407    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]'
4408    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4409    ;;
4410  ncr)
4411    lt_cv_deplibs_check_method=pass_all
4412    ;;
4413  sequent)
4414    lt_cv_file_magic_cmd='/bin/file'
4415    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4416    ;;
4417  sni)
4418    lt_cv_file_magic_cmd='/bin/file'
4419    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4420    lt_cv_file_magic_test_file=/lib/libc.so
4421    ;;
4422  siemens)
4423    lt_cv_deplibs_check_method=pass_all
4424    ;;
4425  pc)
4426    lt_cv_deplibs_check_method=pass_all
4427    ;;
4428  esac
4429  ;;
4430
4431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4432  lt_cv_deplibs_check_method=pass_all
4433  ;;
4434esac
4435
4436fi
4437echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4438echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4439file_magic_cmd=$lt_cv_file_magic_cmd
4440deplibs_check_method=$lt_cv_deplibs_check_method
4441test -z "$deplibs_check_method" && deplibs_check_method=unknown
4442
4443
4444
4445
4446# If no C compiler was specified, use CC.
4447LTCC=${LTCC-"$CC"}
4448
4449# If no C compiler flags were specified, use CFLAGS.
4450LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4451
4452# Allow CC to be a program name with arguments.
4453compiler=$CC
4454
4455
4456# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4457if test "${enable_libtool_lock+set}" = set; then
4458  enableval="$enable_libtool_lock"
4459
4460fi;
4461test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4462
4463# Some flags need to be propagated to the compiler or linker for good
4464# libtool support.
4465case $host in
4466ia64-*-hpux*)
4467  # Find out which ABI we are using.
4468  echo 'int i;' > conftest.$ac_ext
4469  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470  (eval $ac_compile) 2>&5
4471  ac_status=$?
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; then
4474    case `/usr/bin/file conftest.$ac_objext` in
4475    *ELF-32*)
4476      HPUX_IA64_MODE="32"
4477      ;;
4478    *ELF-64*)
4479      HPUX_IA64_MODE="64"
4480      ;;
4481    esac
4482  fi
4483  rm -rf conftest*
4484  ;;
4485*-*-irix6*)
4486  # Find out which ABI we are using.
4487  echo '#line 4487 "configure"' > conftest.$ac_ext
4488  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489  (eval $ac_compile) 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }; then
4493   if test "$lt_cv_prog_gnu_ld" = yes; then
4494    case `/usr/bin/file conftest.$ac_objext` in
4495    *32-bit*)
4496      LD="${LD-ld} -melf32bsmip"
4497      ;;
4498    *N32*)
4499      LD="${LD-ld} -melf32bmipn32"
4500      ;;
4501    *64-bit*)
4502      LD="${LD-ld} -melf64bmip"
4503      ;;
4504    esac
4505   else
4506    case `/usr/bin/file conftest.$ac_objext` in
4507    *32-bit*)
4508      LD="${LD-ld} -32"
4509      ;;
4510    *N32*)
4511      LD="${LD-ld} -n32"
4512      ;;
4513    *64-bit*)
4514      LD="${LD-ld} -64"
4515      ;;
4516    esac
4517   fi
4518  fi
4519  rm -rf conftest*
4520  ;;
4521
4522x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4523  # Find out which ABI we are using.
4524  echo 'int i;' > conftest.$ac_ext
4525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526  (eval $ac_compile) 2>&5
4527  ac_status=$?
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); }; then
4530    case `/usr/bin/file conftest.o` in
4531    *32-bit*)
4532      case $host in
4533        x86_64-*linux*)
4534          LD="${LD-ld} -m elf_i386"
4535          ;;
4536        ppc64-*linux*|powerpc64-*linux*)
4537          LD="${LD-ld} -m elf32ppclinux"
4538          ;;
4539        s390x-*linux*)
4540          LD="${LD-ld} -m elf_s390"
4541          ;;
4542        sparc64-*linux*)
4543          LD="${LD-ld} -m elf32_sparc"
4544          ;;
4545      esac
4546      ;;
4547    *64-bit*)
4548      case $host in
4549        x86_64-*linux*)
4550          LD="${LD-ld} -m elf_x86_64"
4551          ;;
4552        ppc*-*linux*|powerpc*-*linux*)
4553          LD="${LD-ld} -m elf64ppc"
4554          ;;
4555        s390*-*linux*)
4556          LD="${LD-ld} -m elf64_s390"
4557          ;;
4558        sparc*-*linux*)
4559          LD="${LD-ld} -m elf64_sparc"
4560          ;;
4561      esac
4562      ;;
4563    esac
4564  fi
4565  rm -rf conftest*
4566  ;;
4567
4568*-*-sco3.2v5*)
4569  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4570  SAVE_CFLAGS="$CFLAGS"
4571  CFLAGS="$CFLAGS -belf"
4572  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4573echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4574if test "${lt_cv_cc_needs_belf+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  ac_ext=c
4578ac_cpp='$CPP $CPPFLAGS'
4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583     cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h.  */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h.  */
4589
4590int
4591main ()
4592{
4593
4594  ;
4595  return 0;
4596}
4597_ACEOF
4598rm -f conftest.$ac_objext conftest$ac_exeext
4599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600  (eval $ac_link) 2>conftest.er1
4601  ac_status=$?
4602  grep -v '^ *+' conftest.er1 >conftest.err
4603  rm -f conftest.er1
4604  cat conftest.err >&5
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } &&
4607	 { ac_try='test -z "$ac_c_werror_flag"
4608			 || test ! -s conftest.err'
4609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610  (eval $ac_try) 2>&5
4611  ac_status=$?
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); }; } &&
4614	 { ac_try='test -s conftest$ac_exeext'
4615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616  (eval $ac_try) 2>&5
4617  ac_status=$?
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); }; }; then
4620  lt_cv_cc_needs_belf=yes
4621else
4622  echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625lt_cv_cc_needs_belf=no
4626fi
4627rm -f conftest.err conftest.$ac_objext \
4628      conftest$ac_exeext conftest.$ac_ext
4629     ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635fi
4636echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4637echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4638  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4639    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4640    CFLAGS="$SAVE_CFLAGS"
4641  fi
4642  ;;
4643sparc*-*solaris*)
4644  # Find out which ABI we are using.
4645  echo 'int i;' > conftest.$ac_ext
4646  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647  (eval $ac_compile) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; then
4651    case `/usr/bin/file conftest.o` in
4652    *64-bit*)
4653      case $lt_cv_prog_gnu_ld in
4654      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4655      *)    LD="${LD-ld} -64" ;;
4656      esac
4657      ;;
4658    esac
4659  fi
4660  rm -rf conftest*
4661  ;;
4662
4663
4664esac
4665
4666need_locks="$enable_libtool_lock"
4667
4668
4669
4670echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4671echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4672if test "${ac_cv_header_stdc+set}" = set; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675  cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h.  */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h.  */
4681#include <stdlib.h>
4682#include <stdarg.h>
4683#include <string.h>
4684#include <float.h>
4685
4686int
4687main ()
4688{
4689
4690  ;
4691  return 0;
4692}
4693_ACEOF
4694rm -f conftest.$ac_objext
4695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696  (eval $ac_compile) 2>conftest.er1
4697  ac_status=$?
4698  grep -v '^ *+' conftest.er1 >conftest.err
4699  rm -f conftest.er1
4700  cat conftest.err >&5
4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702  (exit $ac_status); } &&
4703	 { ac_try='test -z "$ac_c_werror_flag"
4704			 || test ! -s conftest.err'
4705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706  (eval $ac_try) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); }; } &&
4710	 { ac_try='test -s conftest.$ac_objext'
4711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712  (eval $ac_try) 2>&5
4713  ac_status=$?
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); }; }; then
4716  ac_cv_header_stdc=yes
4717else
4718  echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721ac_cv_header_stdc=no
4722fi
4723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724
4725if test $ac_cv_header_stdc = yes; then
4726  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4727  cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h.  */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h.  */
4733#include <string.h>
4734
4735_ACEOF
4736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737  $EGREP "memchr" >/dev/null 2>&1; then
4738  :
4739else
4740  ac_cv_header_stdc=no
4741fi
4742rm -f conftest*
4743
4744fi
4745
4746if test $ac_cv_header_stdc = yes; then
4747  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4748  cat >conftest.$ac_ext <<_ACEOF
4749/* confdefs.h.  */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h.  */
4754#include <stdlib.h>
4755
4756_ACEOF
4757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758  $EGREP "free" >/dev/null 2>&1; then
4759  :
4760else
4761  ac_cv_header_stdc=no
4762fi
4763rm -f conftest*
4764
4765fi
4766
4767if test $ac_cv_header_stdc = yes; then
4768  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4769  if test "$cross_compiling" = yes; then
4770  :
4771else
4772  cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h.  */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h.  */
4778#include <ctype.h>
4779#if ((' ' & 0x0FF) == 0x020)
4780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4782#else
4783# define ISLOWER(c) \
4784		   (('a' <= (c) && (c) <= 'i') \
4785		     || ('j' <= (c) && (c) <= 'r') \
4786		     || ('s' <= (c) && (c) <= 'z'))
4787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4788#endif
4789
4790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4791int
4792main ()
4793{
4794  int i;
4795  for (i = 0; i < 256; i++)
4796    if (XOR (islower (i), ISLOWER (i))
4797	|| toupper (i) != TOUPPER (i))
4798      exit(2);
4799  exit (0);
4800}
4801_ACEOF
4802rm -f conftest$ac_exeext
4803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4804  (eval $ac_link) 2>&5
4805  ac_status=$?
4806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809  (eval $ac_try) 2>&5
4810  ac_status=$?
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); }; }; then
4813  :
4814else
4815  echo "$as_me: program exited with status $ac_status" >&5
4816echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819( exit $ac_status )
4820ac_cv_header_stdc=no
4821fi
4822rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4823fi
4824fi
4825fi
4826echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4827echo "${ECHO_T}$ac_cv_header_stdc" >&6
4828if test $ac_cv_header_stdc = yes; then
4829
4830cat >>confdefs.h <<\_ACEOF
4831#define STDC_HEADERS 1
4832_ACEOF
4833
4834fi
4835
4836# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4847		  inttypes.h stdint.h unistd.h
4848do
4849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4850echo "$as_me:$LINENO: checking for $ac_header" >&5
4851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855  cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h.  */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h.  */
4861$ac_includes_default
4862
4863#include <$ac_header>
4864_ACEOF
4865rm -f conftest.$ac_objext
4866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867  (eval $ac_compile) 2>conftest.er1
4868  ac_status=$?
4869  grep -v '^ *+' conftest.er1 >conftest.err
4870  rm -f conftest.er1
4871  cat conftest.err >&5
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); } &&
4874	 { ac_try='test -z "$ac_c_werror_flag"
4875			 || test ! -s conftest.err'
4876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877  (eval $ac_try) 2>&5
4878  ac_status=$?
4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880  (exit $ac_status); }; } &&
4881	 { ac_try='test -s conftest.$ac_objext'
4882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883  (eval $ac_try) 2>&5
4884  ac_status=$?
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); }; }; then
4887  eval "$as_ac_Header=yes"
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892eval "$as_ac_Header=no"
4893fi
4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
4896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4898if test `eval echo '${'$as_ac_Header'}'` = yes; then
4899  cat >>confdefs.h <<_ACEOF
4900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901_ACEOF
4902
4903fi
4904
4905done
4906
4907
4908
4909for ac_header in dlfcn.h
4910do
4911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913  echo "$as_me:$LINENO: checking for $ac_header" >&5
4914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4915if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917fi
4918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920else
4921  # Is the header compilable?
4922echo "$as_me:$LINENO: checking $ac_header usability" >&5
4923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4924cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930$ac_includes_default
4931#include <$ac_header>
4932_ACEOF
4933rm -f conftest.$ac_objext
4934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935  (eval $ac_compile) 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } &&
4942	 { ac_try='test -z "$ac_c_werror_flag"
4943			 || test ! -s conftest.err'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; } &&
4949	 { ac_try='test -s conftest.$ac_objext'
4950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951  (eval $ac_try) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); }; }; then
4955  ac_header_compiler=yes
4956else
4957  echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960ac_header_compiler=no
4961fi
4962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4964echo "${ECHO_T}$ac_header_compiler" >&6
4965
4966# Is the header present?
4967echo "$as_me:$LINENO: checking $ac_header presence" >&5
4968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4969cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#include <$ac_header>
4976_ACEOF
4977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4979  ac_status=$?
4980  grep -v '^ *+' conftest.er1 >conftest.err
4981  rm -f conftest.er1
4982  cat conftest.err >&5
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); } >/dev/null; then
4985  if test -s conftest.err; then
4986    ac_cpp_err=$ac_c_preproc_warn_flag
4987    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4988  else
4989    ac_cpp_err=
4990  fi
4991else
4992  ac_cpp_err=yes
4993fi
4994if test -z "$ac_cpp_err"; then
4995  ac_header_preproc=yes
4996else
4997  echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000  ac_header_preproc=no
5001fi
5002rm -f conftest.err conftest.$ac_ext
5003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5004echo "${ECHO_T}$ac_header_preproc" >&6
5005
5006# So?  What about this header?
5007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5008  yes:no: )
5009    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5013    ac_header_preproc=yes
5014    ;;
5015  no:yes:* )
5016    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5018    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5019echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5020    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5022    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5023echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5026    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5028    (
5029      cat <<\_ASBOX
5030## ----------------------------- ##
5031## Report this to srs@mirtol.com ##
5032## ----------------------------- ##
5033_ASBOX
5034    ) |
5035      sed "s/^/$as_me: WARNING:     /" >&2
5036    ;;
5037esac
5038echo "$as_me:$LINENO: checking for $ac_header" >&5
5039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5040if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041  echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043  eval "$as_ac_Header=\$ac_header_preproc"
5044fi
5045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5047
5048fi
5049if test `eval echo '${'$as_ac_Header'}'` = yes; then
5050  cat >>confdefs.h <<_ACEOF
5051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5052_ACEOF
5053
5054fi
5055
5056done
5057
5058
5059
5060if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5061    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5062    (test "X$CXX" != "Xg++"))) ; then
5063  ac_ext=cc
5064ac_cpp='$CXXCPP $CPPFLAGS'
5065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5068echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5069echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5070if test -z "$CXXCPP"; then
5071  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074      # Double quotes because CXXCPP needs to be expanded
5075    for CXXCPP in "$CXX -E" "/lib/cpp"
5076    do
5077      ac_preproc_ok=false
5078for ac_cxx_preproc_warn_flag in '' yes
5079do
5080  # Use a header file that comes with gcc, so configuring glibc
5081  # with a fresh cross-compiler works.
5082  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083  # <limits.h> exists even on freestanding compilers.
5084  # On the NeXT, cc -E runs the code through the compiler's parser,
5085  # not just through cpp. "Syntax error" is here to catch this case.
5086  cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h.  */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h.  */
5092#ifdef __STDC__
5093# include <limits.h>
5094#else
5095# include <assert.h>
5096#endif
5097		     Syntax error
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101  ac_status=$?
5102  grep -v '^ *+' conftest.er1 >conftest.err
5103  rm -f conftest.er1
5104  cat conftest.err >&5
5105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106  (exit $ac_status); } >/dev/null; then
5107  if test -s conftest.err; then
5108    ac_cpp_err=$ac_cxx_preproc_warn_flag
5109    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110  else
5111    ac_cpp_err=
5112  fi
5113else
5114  ac_cpp_err=yes
5115fi
5116if test -z "$ac_cpp_err"; then
5117  :
5118else
5119  echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122  # Broken: fails on valid input.
5123continue
5124fi
5125rm -f conftest.err conftest.$ac_ext
5126
5127  # OK, works on sane cases.  Now check whether non-existent headers
5128  # can be detected and how.
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135#include <ac_nonexistent.h>
5136_ACEOF
5137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139  ac_status=$?
5140  grep -v '^ *+' conftest.er1 >conftest.err
5141  rm -f conftest.er1
5142  cat conftest.err >&5
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); } >/dev/null; then
5145  if test -s conftest.err; then
5146    ac_cpp_err=$ac_cxx_preproc_warn_flag
5147    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5148  else
5149    ac_cpp_err=
5150  fi
5151else
5152  ac_cpp_err=yes
5153fi
5154if test -z "$ac_cpp_err"; then
5155  # Broken: success on invalid input.
5156continue
5157else
5158  echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161  # Passes both tests.
5162ac_preproc_ok=:
5163break
5164fi
5165rm -f conftest.err conftest.$ac_ext
5166
5167done
5168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5169rm -f conftest.err conftest.$ac_ext
5170if $ac_preproc_ok; then
5171  break
5172fi
5173
5174    done
5175    ac_cv_prog_CXXCPP=$CXXCPP
5176
5177fi
5178  CXXCPP=$ac_cv_prog_CXXCPP
5179else
5180  ac_cv_prog_CXXCPP=$CXXCPP
5181fi
5182echo "$as_me:$LINENO: result: $CXXCPP" >&5
5183echo "${ECHO_T}$CXXCPP" >&6
5184ac_preproc_ok=false
5185for ac_cxx_preproc_warn_flag in '' yes
5186do
5187  # Use a header file that comes with gcc, so configuring glibc
5188  # with a fresh cross-compiler works.
5189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5190  # <limits.h> exists even on freestanding compilers.
5191  # On the NeXT, cc -E runs the code through the compiler's parser,
5192  # not just through cpp. "Syntax error" is here to catch this case.
5193  cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h.  */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h.  */
5199#ifdef __STDC__
5200# include <limits.h>
5201#else
5202# include <assert.h>
5203#endif
5204		     Syntax error
5205_ACEOF
5206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5207  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208  ac_status=$?
5209  grep -v '^ *+' conftest.er1 >conftest.err
5210  rm -f conftest.er1
5211  cat conftest.err >&5
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); } >/dev/null; then
5214  if test -s conftest.err; then
5215    ac_cpp_err=$ac_cxx_preproc_warn_flag
5216    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5217  else
5218    ac_cpp_err=
5219  fi
5220else
5221  ac_cpp_err=yes
5222fi
5223if test -z "$ac_cpp_err"; then
5224  :
5225else
5226  echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229  # Broken: fails on valid input.
5230continue
5231fi
5232rm -f conftest.err conftest.$ac_ext
5233
5234  # OK, works on sane cases.  Now check whether non-existent headers
5235  # can be detected and how.
5236  cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h.  */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h.  */
5242#include <ac_nonexistent.h>
5243_ACEOF
5244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246  ac_status=$?
5247  grep -v '^ *+' conftest.er1 >conftest.err
5248  rm -f conftest.er1
5249  cat conftest.err >&5
5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251  (exit $ac_status); } >/dev/null; then
5252  if test -s conftest.err; then
5253    ac_cpp_err=$ac_cxx_preproc_warn_flag
5254    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5255  else
5256    ac_cpp_err=
5257  fi
5258else
5259  ac_cpp_err=yes
5260fi
5261if test -z "$ac_cpp_err"; then
5262  # Broken: success on invalid input.
5263continue
5264else
5265  echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268  # Passes both tests.
5269ac_preproc_ok=:
5270break
5271fi
5272rm -f conftest.err conftest.$ac_ext
5273
5274done
5275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5276rm -f conftest.err conftest.$ac_ext
5277if $ac_preproc_ok; then
5278  :
5279else
5280  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5281See \`config.log' for more details." >&5
5282echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5283See \`config.log' for more details." >&2;}
5284   { (exit 1); exit 1; }; }
5285fi
5286
5287ac_ext=cc
5288ac_cpp='$CXXCPP $CPPFLAGS'
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292
5293fi
5294
5295
5296ac_ext=f
5297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5300if test -n "$ac_tool_prefix"; then
5301  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5302  do
5303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305echo "$as_me:$LINENO: checking for $ac_word" >&5
5306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307if test "${ac_cv_prog_F77+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  if test -n "$F77"; then
5311  ac_cv_prog_F77="$F77" # Let the user override the test.
5312else
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316  IFS=$as_save_IFS
5317  test -z "$as_dir" && as_dir=.
5318  for ac_exec_ext in '' $ac_executable_extensions; do
5319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322    break 2
5323  fi
5324done
5325done
5326
5327fi
5328fi
5329F77=$ac_cv_prog_F77
5330if test -n "$F77"; then
5331  echo "$as_me:$LINENO: result: $F77" >&5
5332echo "${ECHO_T}$F77" >&6
5333else
5334  echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
5338    test -n "$F77" && break
5339  done
5340fi
5341if test -z "$F77"; then
5342  ac_ct_F77=$F77
5343  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5344do
5345  # Extract the first word of "$ac_prog", so it can be a program name with args.
5346set dummy $ac_prog; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  if test -n "$ac_ct_F77"; then
5353  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358  IFS=$as_save_IFS
5359  test -z "$as_dir" && as_dir=.
5360  for ac_exec_ext in '' $ac_executable_extensions; do
5361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362    ac_cv_prog_ac_ct_F77="$ac_prog"
5363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364    break 2
5365  fi
5366done
5367done
5368
5369fi
5370fi
5371ac_ct_F77=$ac_cv_prog_ac_ct_F77
5372if test -n "$ac_ct_F77"; then
5373  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5374echo "${ECHO_T}$ac_ct_F77" >&6
5375else
5376  echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378fi
5379
5380  test -n "$ac_ct_F77" && break
5381done
5382
5383  F77=$ac_ct_F77
5384fi
5385
5386
5387# Provide some information about the compiler.
5388echo "$as_me:5388:" \
5389     "checking for Fortran 77 compiler version" >&5
5390ac_compiler=`set X $ac_compile; echo $2`
5391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5392  (eval $ac_compiler --version </dev/null >&5) 2>&5
5393  ac_status=$?
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); }
5396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5397  (eval $ac_compiler -v </dev/null >&5) 2>&5
5398  ac_status=$?
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); }
5401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5402  (eval $ac_compiler -V </dev/null >&5) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); }
5406rm -f a.out
5407
5408# If we don't use `.F' as extension, the preprocessor is not run on the
5409# input file.  (Note that this only needs to work for GNU compilers.)
5410ac_save_ext=$ac_ext
5411ac_ext=F
5412echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5413echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5414if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5415  echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417  cat >conftest.$ac_ext <<_ACEOF
5418      program main
5419#ifndef __GNUC__
5420       choke me
5421#endif
5422
5423      end
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427  (eval $ac_compile) 2>conftest.er1
5428  ac_status=$?
5429  grep -v '^ *+' conftest.er1 >conftest.err
5430  rm -f conftest.er1
5431  cat conftest.err >&5
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); } &&
5434	 { ac_try='test -z "$ac_f77_werror_flag"
5435			 || test ! -s conftest.err'
5436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437  (eval $ac_try) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }; } &&
5441	 { ac_try='test -s conftest.$ac_objext'
5442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443  (eval $ac_try) 2>&5
5444  ac_status=$?
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); }; }; then
5447  ac_compiler_gnu=yes
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452ac_compiler_gnu=no
5453fi
5454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5456
5457fi
5458echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5459echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5460ac_ext=$ac_save_ext
5461ac_test_FFLAGS=${FFLAGS+set}
5462ac_save_FFLAGS=$FFLAGS
5463FFLAGS=
5464echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5465echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5466if test "${ac_cv_prog_f77_g+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  FFLAGS=-g
5470cat >conftest.$ac_ext <<_ACEOF
5471      program main
5472
5473      end
5474_ACEOF
5475rm -f conftest.$ac_objext
5476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477  (eval $ac_compile) 2>conftest.er1
5478  ac_status=$?
5479  grep -v '^ *+' conftest.er1 >conftest.err
5480  rm -f conftest.er1
5481  cat conftest.err >&5
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); } &&
5484	 { ac_try='test -z "$ac_f77_werror_flag"
5485			 || test ! -s conftest.err'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; } &&
5491	 { ac_try='test -s conftest.$ac_objext'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; }; then
5497  ac_cv_prog_f77_g=yes
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502ac_cv_prog_f77_g=no
5503fi
5504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505
5506fi
5507echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5508echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5509if test "$ac_test_FFLAGS" = set; then
5510  FFLAGS=$ac_save_FFLAGS
5511elif test $ac_cv_prog_f77_g = yes; then
5512  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5513    FFLAGS="-g -O2"
5514  else
5515    FFLAGS="-g"
5516  fi
5517else
5518  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5519    FFLAGS="-O2"
5520  else
5521    FFLAGS=
5522  fi
5523fi
5524
5525G77=`test $ac_compiler_gnu = yes && echo yes`
5526ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531
5532
5533
5534# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5535
5536# find the maximum length of command line arguments
5537echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5538echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5539if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5540  echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542    i=0
5543  teststring="ABCD"
5544
5545  case $build_os in
5546  msdosdjgpp*)
5547    # On DJGPP, this test can blow up pretty badly due to problems in libc
5548    # (any single argument exceeding 2000 bytes causes a buffer overrun
5549    # during glob expansion).  Even if it were fixed, the result of this
5550    # check would be larger than it should be.
5551    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5552    ;;
5553
5554  gnu*)
5555    # Under GNU Hurd, this test is not required because there is
5556    # no limit to the length of command line arguments.
5557    # Libtool will interpret -1 as no limit whatsoever
5558    lt_cv_sys_max_cmd_len=-1;
5559    ;;
5560
5561  cygwin* | mingw*)
5562    # On Win9x/ME, this test blows up -- it succeeds, but takes
5563    # about 5 minutes as the teststring grows exponentially.
5564    # Worse, since 9x/ME are not pre-emptively multitasking,
5565    # you end up with a "frozen" computer, even though with patience
5566    # the test eventually succeeds (with a max line length of 256k).
5567    # Instead, let's just punt: use the minimum linelength reported by
5568    # all of the supported platforms: 8192 (on NT/2K/XP).
5569    lt_cv_sys_max_cmd_len=8192;
5570    ;;
5571
5572  amigaos*)
5573    # On AmigaOS with pdksh, this test takes hours, literally.
5574    # So we just punt and use a minimum line length of 8192.
5575    lt_cv_sys_max_cmd_len=8192;
5576    ;;
5577
5578  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5579    # This has been around since 386BSD, at least.  Likely further.
5580    if test -x /sbin/sysctl; then
5581      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5582    elif test -x /usr/sbin/sysctl; then
5583      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5584    else
5585      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5586    fi
5587    # And add a safety zone
5588    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5589    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590    ;;
5591
5592  interix*)
5593    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5594    lt_cv_sys_max_cmd_len=196608
5595    ;;
5596
5597  osf*)
5598    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5599    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5600    # nice to cause kernel panics so lets avoid the loop below.
5601    # First set a reasonable default.
5602    lt_cv_sys_max_cmd_len=16384
5603    #
5604    if test -x /sbin/sysconfig; then
5605      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5606        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5607      esac
5608    fi
5609    ;;
5610  sco3.2v5*)
5611    lt_cv_sys_max_cmd_len=102400
5612    ;;
5613  sysv5* | sco5v6* | sysv4.2uw2*)
5614    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5615    if test -n "$kargmax"; then
5616      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5617    else
5618      lt_cv_sys_max_cmd_len=32768
5619    fi
5620    ;;
5621  *)
5622    # If test is not a shell built-in, we'll probably end up computing a
5623    # maximum length that is only half of the actual maximum length, but
5624    # we can't tell.
5625    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5626    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5627	       = "XX$teststring") >/dev/null 2>&1 &&
5628	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5629	    lt_cv_sys_max_cmd_len=$new_result &&
5630	    test $i != 17 # 1/2 MB should be enough
5631    do
5632      i=`expr $i + 1`
5633      teststring=$teststring$teststring
5634    done
5635    teststring=
5636    # Add a significant safety factor because C++ compilers can tack on massive
5637    # amounts of additional arguments before passing them to the linker.
5638    # It appears as though 1/2 is a usable value.
5639    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5640    ;;
5641  esac
5642
5643fi
5644
5645if test -n $lt_cv_sys_max_cmd_len ; then
5646  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5647echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5648else
5649  echo "$as_me:$LINENO: result: none" >&5
5650echo "${ECHO_T}none" >&6
5651fi
5652
5653
5654
5655
5656# Check for command to grab the raw symbol name followed by C symbol from nm.
5657echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5658echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5659if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5660  echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662
5663# These are sane defaults that work on at least a few old systems.
5664# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5665
5666# Character class describing NM global symbol codes.
5667symcode='[BCDEGRST]'
5668
5669# Regexp to match symbols that can be accessed directly from C.
5670sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5671
5672# Transform an extracted symbol line into a proper C declaration
5673lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5674
5675# Transform an extracted symbol line into symbol name and symbol address
5676lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5677
5678# Define system-specific variables.
5679case $host_os in
5680aix*)
5681  symcode='[BCDT]'
5682  ;;
5683cygwin* | mingw* | pw32*)
5684  symcode='[ABCDGISTW]'
5685  ;;
5686hpux*) # Its linker distinguishes data from code symbols
5687  if test "$host_cpu" = ia64; then
5688    symcode='[ABCDEGRST]'
5689  fi
5690  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5691  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5692  ;;
5693linux*)
5694  if test "$host_cpu" = ia64; then
5695    symcode='[ABCDGIRSTW]'
5696    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5697    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5698  fi
5699  ;;
5700irix* | nonstopux*)
5701  symcode='[BCDEGRST]'
5702  ;;
5703osf*)
5704  symcode='[BCDEGQRST]'
5705  ;;
5706solaris*)
5707  symcode='[BDRT]'
5708  ;;
5709sco3.2v5*)
5710  symcode='[DT]'
5711  ;;
5712sysv4.2uw2*)
5713  symcode='[DT]'
5714  ;;
5715sysv5* | sco5v6* | unixware* | OpenUNIX*)
5716  symcode='[ABDT]'
5717  ;;
5718sysv4)
5719  symcode='[DFNSTU]'
5720  ;;
5721esac
5722
5723# Handle CRLF in mingw tool chain
5724opt_cr=
5725case $build_os in
5726mingw*)
5727  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5728  ;;
5729esac
5730
5731# If we're using GNU nm, then use its standard symbol codes.
5732case `$NM -V 2>&1` in
5733*GNU* | *'with BFD'*)
5734  symcode='[ABCDGIRSTW]' ;;
5735esac
5736
5737# Try without a prefix undercore, then with it.
5738for ac_symprfx in "" "_"; do
5739
5740  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5741  symxfrm="\\1 $ac_symprfx\\2 \\2"
5742
5743  # Write the raw and C identifiers.
5744  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5745
5746  # Check to see that the pipe works correctly.
5747  pipe_works=no
5748
5749  rm -f conftest*
5750  cat > conftest.$ac_ext <<EOF
5751#ifdef __cplusplus
5752extern "C" {
5753#endif
5754char nm_test_var;
5755void nm_test_func(){}
5756#ifdef __cplusplus
5757}
5758#endif
5759int main(){nm_test_var='a';nm_test_func();return(0);}
5760EOF
5761
5762  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763  (eval $ac_compile) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; then
5767    # Now try to grab the symbols.
5768    nlist=conftest.nm
5769    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5770  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5771  ac_status=$?
5772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773  (exit $ac_status); } && test -s "$nlist"; then
5774      # Try sorting and uniquifying the output.
5775      if sort "$nlist" | uniq > "$nlist"T; then
5776	mv -f "$nlist"T "$nlist"
5777      else
5778	rm -f "$nlist"T
5779      fi
5780
5781      # Make sure that we snagged all the symbols we need.
5782      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5783	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5784	  cat <<EOF > conftest.$ac_ext
5785#ifdef __cplusplus
5786extern "C" {
5787#endif
5788
5789EOF
5790	  # Now generate the symbol file.
5791	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5792
5793	  cat <<EOF >> conftest.$ac_ext
5794#if defined (__STDC__) && __STDC__
5795# define lt_ptr_t void *
5796#else
5797# define lt_ptr_t char *
5798# define const
5799#endif
5800
5801/* The mapping between symbol names and symbols. */
5802const struct {
5803  const char *name;
5804  lt_ptr_t address;
5805}
5806lt_preloaded_symbols[] =
5807{
5808EOF
5809	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5810	  cat <<\EOF >> conftest.$ac_ext
5811  {0, (lt_ptr_t) 0}
5812};
5813
5814#ifdef __cplusplus
5815}
5816#endif
5817EOF
5818	  # Now try linking the two files.
5819	  mv conftest.$ac_objext conftstm.$ac_objext
5820	  lt_save_LIBS="$LIBS"
5821	  lt_save_CFLAGS="$CFLAGS"
5822	  LIBS="conftstm.$ac_objext"
5823	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5824	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5825  (eval $ac_link) 2>&5
5826  ac_status=$?
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5829	    pipe_works=yes
5830	  fi
5831	  LIBS="$lt_save_LIBS"
5832	  CFLAGS="$lt_save_CFLAGS"
5833	else
5834	  echo "cannot find nm_test_func in $nlist" >&5
5835	fi
5836      else
5837	echo "cannot find nm_test_var in $nlist" >&5
5838      fi
5839    else
5840      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5841    fi
5842  else
5843    echo "$progname: failed program was:" >&5
5844    cat conftest.$ac_ext >&5
5845  fi
5846  rm -f conftest* conftst*
5847
5848  # Do not use the global_symbol_pipe unless it works.
5849  if test "$pipe_works" = yes; then
5850    break
5851  else
5852    lt_cv_sys_global_symbol_pipe=
5853  fi
5854done
5855
5856fi
5857
5858if test -z "$lt_cv_sys_global_symbol_pipe"; then
5859  lt_cv_sys_global_symbol_to_cdecl=
5860fi
5861if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5862  echo "$as_me:$LINENO: result: failed" >&5
5863echo "${ECHO_T}failed" >&6
5864else
5865  echo "$as_me:$LINENO: result: ok" >&5
5866echo "${ECHO_T}ok" >&6
5867fi
5868
5869echo "$as_me:$LINENO: checking for objdir" >&5
5870echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5871if test "${lt_cv_objdir+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874  rm -f .libs 2>/dev/null
5875mkdir .libs 2>/dev/null
5876if test -d .libs; then
5877  lt_cv_objdir=.libs
5878else
5879  # MS-DOS does not allow filenames that begin with a dot.
5880  lt_cv_objdir=_libs
5881fi
5882rmdir .libs 2>/dev/null
5883fi
5884echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5885echo "${ECHO_T}$lt_cv_objdir" >&6
5886objdir=$lt_cv_objdir
5887
5888
5889
5890
5891
5892case $host_os in
5893aix3*)
5894  # AIX sometimes has problems with the GCC collect2 program.  For some
5895  # reason, if we set the COLLECT_NAMES environment variable, the problems
5896  # vanish in a puff of smoke.
5897  if test "X${COLLECT_NAMES+set}" != Xset; then
5898    COLLECT_NAMES=
5899    export COLLECT_NAMES
5900  fi
5901  ;;
5902esac
5903
5904# Sed substitution that helps us do robust quoting.  It backslashifies
5905# metacharacters that are still active within double-quoted strings.
5906Xsed='sed -e 1s/^X//'
5907sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5908
5909# Same as above, but do not quote variable references.
5910double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5911
5912# Sed substitution to delay expansion of an escaped shell variable in a
5913# double_quote_subst'ed string.
5914delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5915
5916# Sed substitution to avoid accidental globbing in evaled expressions
5917no_glob_subst='s/\*/\\\*/g'
5918
5919# Constants:
5920rm="rm -f"
5921
5922# Global variables:
5923default_ofile=libtool
5924can_build_shared=yes
5925
5926# All known linkers require a `.a' archive for static linking (except MSVC,
5927# which needs '.lib').
5928libext=a
5929ltmain="$ac_aux_dir/ltmain.sh"
5930ofile="$default_ofile"
5931with_gnu_ld="$lt_cv_prog_gnu_ld"
5932
5933if test -n "$ac_tool_prefix"; then
5934  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5935set dummy ${ac_tool_prefix}ar; ac_word=$2
5936echo "$as_me:$LINENO: checking for $ac_word" >&5
5937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938if test "${ac_cv_prog_AR+set}" = set; then
5939  echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941  if test -n "$AR"; then
5942  ac_cv_prog_AR="$AR" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  test -z "$as_dir" && as_dir=.
5949  for ac_exec_ext in '' $ac_executable_extensions; do
5950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951    ac_cv_prog_AR="${ac_tool_prefix}ar"
5952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953    break 2
5954  fi
5955done
5956done
5957
5958fi
5959fi
5960AR=$ac_cv_prog_AR
5961if test -n "$AR"; then
5962  echo "$as_me:$LINENO: result: $AR" >&5
5963echo "${ECHO_T}$AR" >&6
5964else
5965  echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
5967fi
5968
5969fi
5970if test -z "$ac_cv_prog_AR"; then
5971  ac_ct_AR=$AR
5972  # Extract the first word of "ar", so it can be a program name with args.
5973set dummy ar; ac_word=$2
5974echo "$as_me:$LINENO: checking for $ac_word" >&5
5975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5977  echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979  if test -n "$ac_ct_AR"; then
5980  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987  for ac_exec_ext in '' $ac_executable_extensions; do
5988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989    ac_cv_prog_ac_ct_AR="ar"
5990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994done
5995
5996  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5997fi
5998fi
5999ac_ct_AR=$ac_cv_prog_ac_ct_AR
6000if test -n "$ac_ct_AR"; then
6001  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6002echo "${ECHO_T}$ac_ct_AR" >&6
6003else
6004  echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006fi
6007
6008  AR=$ac_ct_AR
6009else
6010  AR="$ac_cv_prog_AR"
6011fi
6012
6013if test -n "$ac_tool_prefix"; then
6014  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6015set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6016echo "$as_me:$LINENO: checking for $ac_word" >&5
6017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6018if test "${ac_cv_prog_RANLIB+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  if test -n "$RANLIB"; then
6022  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027  IFS=$as_save_IFS
6028  test -z "$as_dir" && as_dir=.
6029  for ac_exec_ext in '' $ac_executable_extensions; do
6030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033    break 2
6034  fi
6035done
6036done
6037
6038fi
6039fi
6040RANLIB=$ac_cv_prog_RANLIB
6041if test -n "$RANLIB"; then
6042  echo "$as_me:$LINENO: result: $RANLIB" >&5
6043echo "${ECHO_T}$RANLIB" >&6
6044else
6045  echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
6047fi
6048
6049fi
6050if test -z "$ac_cv_prog_RANLIB"; then
6051  ac_ct_RANLIB=$RANLIB
6052  # Extract the first word of "ranlib", so it can be a program name with args.
6053set dummy ranlib; ac_word=$2
6054echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6057  echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059  if test -n "$ac_ct_RANLIB"; then
6060  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067  for ac_exec_ext in '' $ac_executable_extensions; do
6068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069    ac_cv_prog_ac_ct_RANLIB="ranlib"
6070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071    break 2
6072  fi
6073done
6074done
6075
6076  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6077fi
6078fi
6079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6080if test -n "$ac_ct_RANLIB"; then
6081  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6082echo "${ECHO_T}$ac_ct_RANLIB" >&6
6083else
6084  echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086fi
6087
6088  RANLIB=$ac_ct_RANLIB
6089else
6090  RANLIB="$ac_cv_prog_RANLIB"
6091fi
6092
6093if test -n "$ac_tool_prefix"; then
6094  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6095set dummy ${ac_tool_prefix}strip; ac_word=$2
6096echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098if test "${ac_cv_prog_STRIP+set}" = set; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101  if test -n "$STRIP"; then
6102  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107  IFS=$as_save_IFS
6108  test -z "$as_dir" && as_dir=.
6109  for ac_exec_ext in '' $ac_executable_extensions; do
6110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113    break 2
6114  fi
6115done
6116done
6117
6118fi
6119fi
6120STRIP=$ac_cv_prog_STRIP
6121if test -n "$STRIP"; then
6122  echo "$as_me:$LINENO: result: $STRIP" >&5
6123echo "${ECHO_T}$STRIP" >&6
6124else
6125  echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127fi
6128
6129fi
6130if test -z "$ac_cv_prog_STRIP"; then
6131  ac_ct_STRIP=$STRIP
6132  # Extract the first word of "strip", so it can be a program name with args.
6133set dummy strip; ac_word=$2
6134echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6136if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  if test -n "$ac_ct_STRIP"; then
6140  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147  for ac_exec_ext in '' $ac_executable_extensions; do
6148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_ac_ct_STRIP="strip"
6150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154done
6155
6156  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6157fi
6158fi
6159ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6160if test -n "$ac_ct_STRIP"; then
6161  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6162echo "${ECHO_T}$ac_ct_STRIP" >&6
6163else
6164  echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166fi
6167
6168  STRIP=$ac_ct_STRIP
6169else
6170  STRIP="$ac_cv_prog_STRIP"
6171fi
6172
6173
6174old_CC="$CC"
6175old_CFLAGS="$CFLAGS"
6176
6177# Set sane defaults for various variables
6178test -z "$AR" && AR=ar
6179test -z "$AR_FLAGS" && AR_FLAGS=cru
6180test -z "$AS" && AS=as
6181test -z "$CC" && CC=cc
6182test -z "$LTCC" && LTCC=$CC
6183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6184test -z "$DLLTOOL" && DLLTOOL=dlltool
6185test -z "$LD" && LD=ld
6186test -z "$LN_S" && LN_S="ln -s"
6187test -z "$MAGIC_CMD" && MAGIC_CMD=file
6188test -z "$NM" && NM=nm
6189test -z "$SED" && SED=sed
6190test -z "$OBJDUMP" && OBJDUMP=objdump
6191test -z "$RANLIB" && RANLIB=:
6192test -z "$STRIP" && STRIP=:
6193test -z "$ac_objext" && ac_objext=o
6194
6195# Determine commands to create old-style static archives.
6196old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6197old_postinstall_cmds='chmod 644 $oldlib'
6198old_postuninstall_cmds=
6199
6200if test -n "$RANLIB"; then
6201  case $host_os in
6202  openbsd*)
6203    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6204    ;;
6205  *)
6206    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6207    ;;
6208  esac
6209  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6210fi
6211
6212for cc_temp in $compiler""; do
6213  case $cc_temp in
6214    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6215    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6216    \-*) ;;
6217    *) break;;
6218  esac
6219done
6220cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6221
6222
6223# Only perform the check for file, if the check method requires it
6224case $deplibs_check_method in
6225file_magic*)
6226  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6227    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6228echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6229if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6230  echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232  case $MAGIC_CMD in
6233[\\/*] |  ?:[\\/]*)
6234  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6235  ;;
6236*)
6237  lt_save_MAGIC_CMD="$MAGIC_CMD"
6238  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6239  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6240  for ac_dir in $ac_dummy; do
6241    IFS="$lt_save_ifs"
6242    test -z "$ac_dir" && ac_dir=.
6243    if test -f $ac_dir/${ac_tool_prefix}file; then
6244      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6245      if test -n "$file_magic_test_file"; then
6246	case $deplibs_check_method in
6247	"file_magic "*)
6248	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6249	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6250	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6251	    $EGREP "$file_magic_regex" > /dev/null; then
6252	    :
6253	  else
6254	    cat <<EOF 1>&2
6255
6256*** Warning: the command libtool uses to detect shared libraries,
6257*** $file_magic_cmd, produces output that libtool cannot recognize.
6258*** The result is that libtool may fail to recognize shared libraries
6259*** as such.  This will affect the creation of libtool libraries that
6260*** depend on shared libraries, but programs linked with such libtool
6261*** libraries will work regardless of this problem.  Nevertheless, you
6262*** may want to report the problem to your system manager and/or to
6263*** bug-libtool@gnu.org
6264
6265EOF
6266	  fi ;;
6267	esac
6268      fi
6269      break
6270    fi
6271  done
6272  IFS="$lt_save_ifs"
6273  MAGIC_CMD="$lt_save_MAGIC_CMD"
6274  ;;
6275esac
6276fi
6277
6278MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6279if test -n "$MAGIC_CMD"; then
6280  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6281echo "${ECHO_T}$MAGIC_CMD" >&6
6282else
6283  echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
6285fi
6286
6287if test -z "$lt_cv_path_MAGIC_CMD"; then
6288  if test -n "$ac_tool_prefix"; then
6289    echo "$as_me:$LINENO: checking for file" >&5
6290echo $ECHO_N "checking for file... $ECHO_C" >&6
6291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6292  echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294  case $MAGIC_CMD in
6295[\\/*] |  ?:[\\/]*)
6296  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6297  ;;
6298*)
6299  lt_save_MAGIC_CMD="$MAGIC_CMD"
6300  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6301  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6302  for ac_dir in $ac_dummy; do
6303    IFS="$lt_save_ifs"
6304    test -z "$ac_dir" && ac_dir=.
6305    if test -f $ac_dir/file; then
6306      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6307      if test -n "$file_magic_test_file"; then
6308	case $deplibs_check_method in
6309	"file_magic "*)
6310	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6311	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6312	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6313	    $EGREP "$file_magic_regex" > /dev/null; then
6314	    :
6315	  else
6316	    cat <<EOF 1>&2
6317
6318*** Warning: the command libtool uses to detect shared libraries,
6319*** $file_magic_cmd, produces output that libtool cannot recognize.
6320*** The result is that libtool may fail to recognize shared libraries
6321*** as such.  This will affect the creation of libtool libraries that
6322*** depend on shared libraries, but programs linked with such libtool
6323*** libraries will work regardless of this problem.  Nevertheless, you
6324*** may want to report the problem to your system manager and/or to
6325*** bug-libtool@gnu.org
6326
6327EOF
6328	  fi ;;
6329	esac
6330      fi
6331      break
6332    fi
6333  done
6334  IFS="$lt_save_ifs"
6335  MAGIC_CMD="$lt_save_MAGIC_CMD"
6336  ;;
6337esac
6338fi
6339
6340MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6341if test -n "$MAGIC_CMD"; then
6342  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6343echo "${ECHO_T}$MAGIC_CMD" >&6
6344else
6345  echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6
6347fi
6348
6349  else
6350    MAGIC_CMD=:
6351  fi
6352fi
6353
6354  fi
6355  ;;
6356esac
6357
6358enable_dlopen=no
6359enable_win32_dll=no
6360
6361# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6362if test "${enable_libtool_lock+set}" = set; then
6363  enableval="$enable_libtool_lock"
6364
6365fi;
6366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6367
6368
6369# Check whether --with-pic or --without-pic was given.
6370if test "${with_pic+set}" = set; then
6371  withval="$with_pic"
6372  pic_mode="$withval"
6373else
6374  pic_mode=default
6375fi;
6376test -z "$pic_mode" && pic_mode=default
6377
6378# Use C for the default configuration in the libtool script
6379tagname=
6380lt_save_CC="$CC"
6381ac_ext=c
6382ac_cpp='$CPP $CPPFLAGS'
6383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386
6387
6388# Source file extension for C test sources.
6389ac_ext=c
6390
6391# Object file extension for compiled C test sources.
6392objext=o
6393objext=$objext
6394
6395# Code to be used in simple compile tests
6396lt_simple_compile_test_code="int some_variable = 0;\n"
6397
6398# Code to be used in simple link tests
6399lt_simple_link_test_code='int main(){return(0);}\n'
6400
6401
6402# If no C compiler was specified, use CC.
6403LTCC=${LTCC-"$CC"}
6404
6405# If no C compiler flags were specified, use CFLAGS.
6406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6407
6408# Allow CC to be a program name with arguments.
6409compiler=$CC
6410
6411
6412# save warnings/boilerplate of simple test code
6413ac_outfile=conftest.$ac_objext
6414printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6416_lt_compiler_boilerplate=`cat conftest.err`
6417$rm conftest*
6418
6419ac_outfile=conftest.$ac_objext
6420printf "$lt_simple_link_test_code" >conftest.$ac_ext
6421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6422_lt_linker_boilerplate=`cat conftest.err`
6423$rm conftest*
6424
6425
6426
6427lt_prog_compiler_no_builtin_flag=
6428
6429if test "$GCC" = yes; then
6430  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6431
6432
6433echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6434echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6435if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6436  echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438  lt_cv_prog_compiler_rtti_exceptions=no
6439  ac_outfile=conftest.$ac_objext
6440   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6441   lt_compiler_flag="-fno-rtti -fno-exceptions"
6442   # Insert the option either (1) after the last *FLAGS variable, or
6443   # (2) before a word containing "conftest.", or (3) at the end.
6444   # Note that $ac_compile itself does not contain backslashes and begins
6445   # with a dollar sign (not a hyphen), so the echo should work correctly.
6446   # The option is referenced via a variable to avoid confusing sed.
6447   lt_compile=`echo "$ac_compile" | $SED \
6448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6450   -e 's:$: $lt_compiler_flag:'`
6451   (eval echo "\"\$as_me:6451: $lt_compile\"" >&5)
6452   (eval "$lt_compile" 2>conftest.err)
6453   ac_status=$?
6454   cat conftest.err >&5
6455   echo "$as_me:6455: \$? = $ac_status" >&5
6456   if (exit $ac_status) && test -s "$ac_outfile"; then
6457     # The compiler can only warn and ignore the option if not recognized
6458     # So say no if there are warnings other than the usual output.
6459     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6460     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6461     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6462       lt_cv_prog_compiler_rtti_exceptions=yes
6463     fi
6464   fi
6465   $rm conftest*
6466
6467fi
6468echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6469echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6470
6471if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6472    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6473else
6474    :
6475fi
6476
6477fi
6478
6479lt_prog_compiler_wl=
6480lt_prog_compiler_pic=
6481lt_prog_compiler_static=
6482
6483echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6484echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6485
6486  if test "$GCC" = yes; then
6487    lt_prog_compiler_wl='-Wl,'
6488    lt_prog_compiler_static='-static'
6489
6490    case $host_os in
6491      aix*)
6492      # All AIX code is PIC.
6493      if test "$host_cpu" = ia64; then
6494	# AIX 5 now supports IA64 processor
6495	lt_prog_compiler_static='-Bstatic'
6496      fi
6497      ;;
6498
6499    amigaos*)
6500      # FIXME: we need at least 68020 code to build shared libraries, but
6501      # adding the `-m68020' flag to GCC prevents building anything better,
6502      # like `-m68040'.
6503      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6504      ;;
6505
6506    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6507      # PIC is the default for these OSes.
6508      ;;
6509
6510    mingw* | pw32* | os2*)
6511      # This hack is so that the source file can tell whether it is being
6512      # built for inclusion in a dll (and should export symbols for example).
6513      lt_prog_compiler_pic='-DDLL_EXPORT'
6514      ;;
6515
6516    darwin* | rhapsody*)
6517      # PIC is the default on this platform
6518      # Common symbols not allowed in MH_DYLIB files
6519      lt_prog_compiler_pic='-fno-common'
6520      ;;
6521
6522    interix3*)
6523      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6524      # Instead, we relocate shared libraries at runtime.
6525      ;;
6526
6527    msdosdjgpp*)
6528      # Just because we use GCC doesn't mean we suddenly get shared libraries
6529      # on systems that don't support them.
6530      lt_prog_compiler_can_build_shared=no
6531      enable_shared=no
6532      ;;
6533
6534    sysv4*MP*)
6535      if test -d /usr/nec; then
6536	lt_prog_compiler_pic=-Kconform_pic
6537      fi
6538      ;;
6539
6540    hpux*)
6541      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6542      # not for PA HP-UX.
6543      case $host_cpu in
6544      hppa*64*|ia64*)
6545	# +Z the default
6546	;;
6547      *)
6548	lt_prog_compiler_pic='-fPIC'
6549	;;
6550      esac
6551      ;;
6552
6553    *)
6554      lt_prog_compiler_pic='-fPIC'
6555      ;;
6556    esac
6557  else
6558    # PORTME Check for flag to pass linker flags through the system compiler.
6559    case $host_os in
6560    aix*)
6561      lt_prog_compiler_wl='-Wl,'
6562      if test "$host_cpu" = ia64; then
6563	# AIX 5 now supports IA64 processor
6564	lt_prog_compiler_static='-Bstatic'
6565      else
6566	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6567      fi
6568      ;;
6569      darwin*)
6570        # PIC is the default on this platform
6571        # Common symbols not allowed in MH_DYLIB files
6572       case $cc_basename in
6573         xlc*)
6574         lt_prog_compiler_pic='-qnocommon'
6575         lt_prog_compiler_wl='-Wl,'
6576         ;;
6577       esac
6578       ;;
6579
6580    mingw* | pw32* | os2*)
6581      # This hack is so that the source file can tell whether it is being
6582      # built for inclusion in a dll (and should export symbols for example).
6583      lt_prog_compiler_pic='-DDLL_EXPORT'
6584      ;;
6585
6586    hpux9* | hpux10* | hpux11*)
6587      lt_prog_compiler_wl='-Wl,'
6588      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6589      # not for PA HP-UX.
6590      case $host_cpu in
6591      hppa*64*|ia64*)
6592	# +Z the default
6593	;;
6594      *)
6595	lt_prog_compiler_pic='+Z'
6596	;;
6597      esac
6598      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6599      lt_prog_compiler_static='${wl}-a ${wl}archive'
6600      ;;
6601
6602    irix5* | irix6* | nonstopux*)
6603      lt_prog_compiler_wl='-Wl,'
6604      # PIC (with -KPIC) is the default.
6605      lt_prog_compiler_static='-non_shared'
6606      ;;
6607
6608    newsos6)
6609      lt_prog_compiler_pic='-KPIC'
6610      lt_prog_compiler_static='-Bstatic'
6611      ;;
6612
6613    linux*)
6614      case $cc_basename in
6615      icc* | ecc*)
6616	lt_prog_compiler_wl='-Wl,'
6617	lt_prog_compiler_pic='-KPIC'
6618	lt_prog_compiler_static='-static'
6619        ;;
6620      pgcc* | pgf77* | pgf90* | pgf95*)
6621        # Portland Group compilers (*not* the Pentium gcc compiler,
6622	# which looks to be a dead project)
6623	lt_prog_compiler_wl='-Wl,'
6624	lt_prog_compiler_pic='-fpic'
6625	lt_prog_compiler_static='-Bstatic'
6626        ;;
6627      ccc*)
6628        lt_prog_compiler_wl='-Wl,'
6629        # All Alpha code is PIC.
6630        lt_prog_compiler_static='-non_shared'
6631        ;;
6632      esac
6633      ;;
6634
6635    osf3* | osf4* | osf5*)
6636      lt_prog_compiler_wl='-Wl,'
6637      # All OSF/1 code is PIC.
6638      lt_prog_compiler_static='-non_shared'
6639      ;;
6640
6641    solaris*)
6642      lt_prog_compiler_pic='-KPIC'
6643      lt_prog_compiler_static='-Bstatic'
6644      case $cc_basename in
6645      f77* | f90* | f95*)
6646	lt_prog_compiler_wl='-Qoption ld ';;
6647      *)
6648	lt_prog_compiler_wl='-Wl,';;
6649      esac
6650      ;;
6651
6652    sunos4*)
6653      lt_prog_compiler_wl='-Qoption ld '
6654      lt_prog_compiler_pic='-PIC'
6655      lt_prog_compiler_static='-Bstatic'
6656      ;;
6657
6658    sysv4 | sysv4.2uw2* | sysv4.3*)
6659      lt_prog_compiler_wl='-Wl,'
6660      lt_prog_compiler_pic='-KPIC'
6661      lt_prog_compiler_static='-Bstatic'
6662      ;;
6663
6664    sysv4*MP*)
6665      if test -d /usr/nec ;then
6666	lt_prog_compiler_pic='-Kconform_pic'
6667	lt_prog_compiler_static='-Bstatic'
6668      fi
6669      ;;
6670
6671    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6672      lt_prog_compiler_wl='-Wl,'
6673      lt_prog_compiler_pic='-KPIC'
6674      lt_prog_compiler_static='-Bstatic'
6675      ;;
6676
6677    unicos*)
6678      lt_prog_compiler_wl='-Wl,'
6679      lt_prog_compiler_can_build_shared=no
6680      ;;
6681
6682    uts4*)
6683      lt_prog_compiler_pic='-pic'
6684      lt_prog_compiler_static='-Bstatic'
6685      ;;
6686
6687    *)
6688      lt_prog_compiler_can_build_shared=no
6689      ;;
6690    esac
6691  fi
6692
6693echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6694echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6695
6696#
6697# Check to make sure the PIC flag actually works.
6698#
6699if test -n "$lt_prog_compiler_pic"; then
6700
6701echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6702echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6703if test "${lt_prog_compiler_pic_works+set}" = set; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706  lt_prog_compiler_pic_works=no
6707  ac_outfile=conftest.$ac_objext
6708   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6709   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6710   # Insert the option either (1) after the last *FLAGS variable, or
6711   # (2) before a word containing "conftest.", or (3) at the end.
6712   # Note that $ac_compile itself does not contain backslashes and begins
6713   # with a dollar sign (not a hyphen), so the echo should work correctly.
6714   # The option is referenced via a variable to avoid confusing sed.
6715   lt_compile=`echo "$ac_compile" | $SED \
6716   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6717   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6718   -e 's:$: $lt_compiler_flag:'`
6719   (eval echo "\"\$as_me:6719: $lt_compile\"" >&5)
6720   (eval "$lt_compile" 2>conftest.err)
6721   ac_status=$?
6722   cat conftest.err >&5
6723   echo "$as_me:6723: \$? = $ac_status" >&5
6724   if (exit $ac_status) && test -s "$ac_outfile"; then
6725     # The compiler can only warn and ignore the option if not recognized
6726     # So say no if there are warnings other than the usual output.
6727     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6728     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6729     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6730       lt_prog_compiler_pic_works=yes
6731     fi
6732   fi
6733   $rm conftest*
6734
6735fi
6736echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6737echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6738
6739if test x"$lt_prog_compiler_pic_works" = xyes; then
6740    case $lt_prog_compiler_pic in
6741     "" | " "*) ;;
6742     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6743     esac
6744else
6745    lt_prog_compiler_pic=
6746     lt_prog_compiler_can_build_shared=no
6747fi
6748
6749fi
6750case $host_os in
6751  # For platforms which do not support PIC, -DPIC is meaningless:
6752  *djgpp*)
6753    lt_prog_compiler_pic=
6754    ;;
6755  *)
6756    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6757    ;;
6758esac
6759
6760#
6761# Check to make sure the static flag actually works.
6762#
6763wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6764echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6765echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6766if test "${lt_prog_compiler_static_works+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769  lt_prog_compiler_static_works=no
6770   save_LDFLAGS="$LDFLAGS"
6771   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6772   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6773   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6774     # The linker can only warn and ignore the option if not recognized
6775     # So say no if there are warnings
6776     if test -s conftest.err; then
6777       # Append any errors to the config.log.
6778       cat conftest.err 1>&5
6779       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6780       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6781       if diff conftest.exp conftest.er2 >/dev/null; then
6782         lt_prog_compiler_static_works=yes
6783       fi
6784     else
6785       lt_prog_compiler_static_works=yes
6786     fi
6787   fi
6788   $rm conftest*
6789   LDFLAGS="$save_LDFLAGS"
6790
6791fi
6792echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6793echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6794
6795if test x"$lt_prog_compiler_static_works" = xyes; then
6796    :
6797else
6798    lt_prog_compiler_static=
6799fi
6800
6801
6802echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6803echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6804if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6805  echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807  lt_cv_prog_compiler_c_o=no
6808   $rm -r conftest 2>/dev/null
6809   mkdir conftest
6810   cd conftest
6811   mkdir out
6812   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6813
6814   lt_compiler_flag="-o out/conftest2.$ac_objext"
6815   # Insert the option either (1) after the last *FLAGS variable, or
6816   # (2) before a word containing "conftest.", or (3) at the end.
6817   # Note that $ac_compile itself does not contain backslashes and begins
6818   # with a dollar sign (not a hyphen), so the echo should work correctly.
6819   lt_compile=`echo "$ac_compile" | $SED \
6820   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6821   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6822   -e 's:$: $lt_compiler_flag:'`
6823   (eval echo "\"\$as_me:6823: $lt_compile\"" >&5)
6824   (eval "$lt_compile" 2>out/conftest.err)
6825   ac_status=$?
6826   cat out/conftest.err >&5
6827   echo "$as_me:6827: \$? = $ac_status" >&5
6828   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6829   then
6830     # The compiler can only warn and ignore the option if not recognized
6831     # So say no if there are warnings
6832     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6833     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6834     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6835       lt_cv_prog_compiler_c_o=yes
6836     fi
6837   fi
6838   chmod u+w . 2>&5
6839   $rm conftest*
6840   # SGI C++ compiler will create directory out/ii_files/ for
6841   # template instantiation
6842   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6843   $rm out/* && rmdir out
6844   cd ..
6845   rmdir conftest
6846   $rm conftest*
6847
6848fi
6849echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6850echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6851
6852
6853hard_links="nottested"
6854if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6855  # do not overwrite the value of need_locks provided by the user
6856  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6857echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6858  hard_links=yes
6859  $rm conftest*
6860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6861  touch conftest.a
6862  ln conftest.a conftest.b 2>&5 || hard_links=no
6863  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6864  echo "$as_me:$LINENO: result: $hard_links" >&5
6865echo "${ECHO_T}$hard_links" >&6
6866  if test "$hard_links" = no; then
6867    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6868echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6869    need_locks=warn
6870  fi
6871else
6872  need_locks=no
6873fi
6874
6875echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6876echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6877
6878  runpath_var=
6879  allow_undefined_flag=
6880  enable_shared_with_static_runtimes=no
6881  archive_cmds=
6882  archive_expsym_cmds=
6883  old_archive_From_new_cmds=
6884  old_archive_from_expsyms_cmds=
6885  export_dynamic_flag_spec=
6886  whole_archive_flag_spec=
6887  thread_safe_flag_spec=
6888  hardcode_libdir_flag_spec=
6889  hardcode_libdir_flag_spec_ld=
6890  hardcode_libdir_separator=
6891  hardcode_direct=no
6892  hardcode_minus_L=no
6893  hardcode_shlibpath_var=unsupported
6894  link_all_deplibs=unknown
6895  hardcode_automatic=no
6896  module_cmds=
6897  module_expsym_cmds=
6898  always_export_symbols=no
6899  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6900  # include_expsyms should be a list of space-separated symbols to be *always*
6901  # included in the symbol list
6902  include_expsyms=
6903  # exclude_expsyms can be an extended regexp of symbols to exclude
6904  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6905  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6906  # as well as any symbol that contains `d'.
6907  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6908  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6909  # platforms (ab)use it in PIC code, but their linkers get confused if
6910  # the symbol is explicitly referenced.  Since portable code cannot
6911  # rely on this symbol name, it's probably fine to never include it in
6912  # preloaded symbol tables.
6913  extract_expsyms_cmds=
6914  # Just being paranoid about ensuring that cc_basename is set.
6915  for cc_temp in $compiler""; do
6916  case $cc_temp in
6917    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6918    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6919    \-*) ;;
6920    *) break;;
6921  esac
6922done
6923cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6924
6925  case $host_os in
6926  cygwin* | mingw* | pw32*)
6927    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6928    # When not using gcc, we currently assume that we are using
6929    # Microsoft Visual C++.
6930    if test "$GCC" != yes; then
6931      with_gnu_ld=no
6932    fi
6933    ;;
6934  interix*)
6935    # we just hope/assume this is gcc and not c89 (= MSVC++)
6936    with_gnu_ld=yes
6937    ;;
6938  openbsd*)
6939    with_gnu_ld=no
6940    ;;
6941  esac
6942
6943  ld_shlibs=yes
6944  if test "$with_gnu_ld" = yes; then
6945    # If archive_cmds runs LD, not CC, wlarc should be empty
6946    wlarc='${wl}'
6947
6948    # Set some defaults for GNU ld with shared library support. These
6949    # are reset later if shared libraries are not supported. Putting them
6950    # here allows them to be overridden if necessary.
6951    runpath_var=LD_RUN_PATH
6952    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6953    export_dynamic_flag_spec='${wl}--export-dynamic'
6954    # ancient GNU ld didn't support --whole-archive et. al.
6955    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6956	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6957      else
6958  	whole_archive_flag_spec=
6959    fi
6960    supports_anon_versioning=no
6961    case `$LD -v 2>/dev/null` in
6962      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6963      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6964      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6965      *\ 2.11.*) ;; # other 2.11 versions
6966      *) supports_anon_versioning=yes ;;
6967    esac
6968
6969    # See if GNU ld supports shared libraries.
6970    case $host_os in
6971    aix3* | aix4* | aix5*)
6972      # On AIX/PPC, the GNU linker is very broken
6973      if test "$host_cpu" != ia64; then
6974	ld_shlibs=no
6975	cat <<EOF 1>&2
6976
6977*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6978*** to be unable to reliably create shared libraries on AIX.
6979*** Therefore, libtool is disabling shared libraries support.  If you
6980*** really care for shared libraries, you may want to modify your PATH
6981*** so that a non-GNU linker is found, and then restart.
6982
6983EOF
6984      fi
6985      ;;
6986
6987    amigaos*)
6988      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)'
6989      hardcode_libdir_flag_spec='-L$libdir'
6990      hardcode_minus_L=yes
6991
6992      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6993      # that the semantics of dynamic libraries on AmigaOS, at least up
6994      # to version 4, is to share data among multiple programs linked
6995      # with the same dynamic library.  Since this doesn't match the
6996      # behavior of shared libraries on other platforms, we can't use
6997      # them.
6998      ld_shlibs=no
6999      ;;
7000
7001    beos*)
7002      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7003	allow_undefined_flag=unsupported
7004	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7005	# support --undefined.  This deserves some investigation.  FIXME
7006	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7007      else
7008	ld_shlibs=no
7009      fi
7010      ;;
7011
7012    cygwin* | mingw* | pw32*)
7013      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7014      # as there is no search path for DLLs.
7015      hardcode_libdir_flag_spec='-L$libdir'
7016      allow_undefined_flag=unsupported
7017      always_export_symbols=no
7018      enable_shared_with_static_runtimes=yes
7019      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7020
7021      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7022        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7023	# If the export-symbols file already is a .def file (1st line
7024	# is EXPORTS), use it as is; otherwise, prepend...
7025	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7026	  cp $export_symbols $output_objdir/$soname.def;
7027	else
7028	  echo EXPORTS > $output_objdir/$soname.def;
7029	  cat $export_symbols >> $output_objdir/$soname.def;
7030	fi~
7031	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7032      else
7033	ld_shlibs=no
7034      fi
7035      ;;
7036
7037    interix3*)
7038      hardcode_direct=no
7039      hardcode_shlibpath_var=no
7040      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7041      export_dynamic_flag_spec='${wl}-E'
7042      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7043      # Instead, shared libraries are loaded at an image base (0x10000000 by
7044      # default) and relocated if they conflict, which is a slow very memory
7045      # consuming and fragmenting process.  To avoid this, we pick a random,
7046      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7047      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7048      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7049      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'
7050      ;;
7051
7052    linux*)
7053      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054	tmp_addflag=
7055	case $cc_basename,$host_cpu in
7056	pgcc*)				# Portland Group C compiler
7057	  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'
7058	  tmp_addflag=' $pic_flag'
7059	  ;;
7060	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7061	  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'
7062	  tmp_addflag=' $pic_flag -Mnomain' ;;
7063	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7064	  tmp_addflag=' -i_dynamic' ;;
7065	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7066	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7067	ifc* | ifort*)			# Intel Fortran compiler
7068	  tmp_addflag=' -nofor_main' ;;
7069	esac
7070	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7071
7072	if test $supports_anon_versioning = yes; then
7073	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7074  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7075  $echo "local: *; };" >> $output_objdir/$libname.ver~
7076	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7077	fi
7078      else
7079	ld_shlibs=no
7080      fi
7081      ;;
7082
7083    netbsd*)
7084      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7085	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7086	wlarc=
7087      else
7088	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7089	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7090      fi
7091      ;;
7092
7093    solaris*)
7094      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7095	ld_shlibs=no
7096	cat <<EOF 1>&2
7097
7098*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7099*** create shared libraries on Solaris systems.  Therefore, libtool
7100*** is disabling shared libraries support.  We urge you to upgrade GNU
7101*** binutils to release 2.9.1 or newer.  Another option is to modify
7102*** your PATH or compiler configuration so that the native linker is
7103*** used, and then restart.
7104
7105EOF
7106      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7107	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7108	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7109      else
7110	ld_shlibs=no
7111      fi
7112      ;;
7113
7114    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7115      case `$LD -v 2>&1` in
7116        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7117	ld_shlibs=no
7118	cat <<_LT_EOF 1>&2
7119
7120*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7121*** reliably create shared libraries on SCO systems.  Therefore, libtool
7122*** is disabling shared libraries support.  We urge you to upgrade GNU
7123*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7124*** your PATH or compiler configuration so that the native linker is
7125*** used, and then restart.
7126
7127_LT_EOF
7128	;;
7129	*)
7130	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7131	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7132	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7133	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7134	  else
7135	    ld_shlibs=no
7136	  fi
7137	;;
7138      esac
7139      ;;
7140
7141    sunos4*)
7142      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7143      wlarc=
7144      hardcode_direct=yes
7145      hardcode_shlibpath_var=no
7146      ;;
7147
7148    *)
7149      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7150	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7151	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7152      else
7153	ld_shlibs=no
7154      fi
7155      ;;
7156    esac
7157
7158    if test "$ld_shlibs" = no; then
7159      runpath_var=
7160      hardcode_libdir_flag_spec=
7161      export_dynamic_flag_spec=
7162      whole_archive_flag_spec=
7163    fi
7164  else
7165    # PORTME fill in a description of your system's linker (not GNU ld)
7166    case $host_os in
7167    aix3*)
7168      allow_undefined_flag=unsupported
7169      always_export_symbols=yes
7170      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'
7171      # Note: this linker hardcodes the directories in LIBPATH if there
7172      # are no directories specified by -L.
7173      hardcode_minus_L=yes
7174      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7175	# Neither direct hardcoding nor static linking is supported with a
7176	# broken collect2.
7177	hardcode_direct=unsupported
7178      fi
7179      ;;
7180
7181    aix4* | aix5*)
7182      if test "$host_cpu" = ia64; then
7183	# On IA64, the linker does run time linking by default, so we don't
7184	# have to do anything special.
7185	aix_use_runtimelinking=no
7186	exp_sym_flag='-Bexport'
7187	no_entry_flag=""
7188      else
7189	# If we're using GNU nm, then we don't want the "-C" option.
7190	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7191	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7192	  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'
7193	else
7194	  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'
7195	fi
7196	aix_use_runtimelinking=no
7197
7198	# Test if we are trying to use run time linking or normal
7199	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7200	# need to do runtime linking.
7201	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7202	  for ld_flag in $LDFLAGS; do
7203  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7204  	    aix_use_runtimelinking=yes
7205  	    break
7206  	  fi
7207	  done
7208	  ;;
7209	esac
7210
7211	exp_sym_flag='-bexport'
7212	no_entry_flag='-bnoentry'
7213      fi
7214
7215      # When large executables or shared objects are built, AIX ld can
7216      # have problems creating the table of contents.  If linking a library
7217      # or program results in "error TOC overflow" add -mminimal-toc to
7218      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7219      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7220
7221      archive_cmds=''
7222      hardcode_direct=yes
7223      hardcode_libdir_separator=':'
7224      link_all_deplibs=yes
7225
7226      if test "$GCC" = yes; then
7227	case $host_os in aix4.[012]|aix4.[012].*)
7228	# We only want to do this on AIX 4.2 and lower, the check
7229	# below for broken collect2 doesn't work under 4.3+
7230	  collect2name=`${CC} -print-prog-name=collect2`
7231	  if test -f "$collect2name" && \
7232  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7233	  then
7234  	  # We have reworked collect2
7235  	  hardcode_direct=yes
7236	  else
7237  	  # We have old collect2
7238  	  hardcode_direct=unsupported
7239  	  # It fails to find uninstalled libraries when the uninstalled
7240  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7241  	  # to unsupported forces relinking
7242  	  hardcode_minus_L=yes
7243  	  hardcode_libdir_flag_spec='-L$libdir'
7244  	  hardcode_libdir_separator=
7245	  fi
7246	  ;;
7247	esac
7248	shared_flag='-shared'
7249	if test "$aix_use_runtimelinking" = yes; then
7250	  shared_flag="$shared_flag "'${wl}-G'
7251	fi
7252      else
7253	# not using gcc
7254	if test "$host_cpu" = ia64; then
7255  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7256  	# chokes on -Wl,-G. The following line is correct:
7257	  shared_flag='-G'
7258	else
7259	  if test "$aix_use_runtimelinking" = yes; then
7260	    shared_flag='${wl}-G'
7261	  else
7262	    shared_flag='${wl}-bM:SRE'
7263	  fi
7264	fi
7265      fi
7266
7267      # It seems that -bexpall does not export symbols beginning with
7268      # underscore (_), so it is better to generate a list of symbols to export.
7269      always_export_symbols=yes
7270      if test "$aix_use_runtimelinking" = yes; then
7271	# Warning - without using the other runtime loading flags (-brtl),
7272	# -berok will link without error, but may produce a broken library.
7273	allow_undefined_flag='-berok'
7274       # Determine the default libpath from the value encoded in an empty executable.
7275       cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h.  */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h.  */
7281
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290rm -f conftest.$ac_objext conftest$ac_exeext
7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292  (eval $ac_link) 2>conftest.er1
7293  ac_status=$?
7294  grep -v '^ *+' conftest.er1 >conftest.err
7295  rm -f conftest.er1
7296  cat conftest.err >&5
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } &&
7299	 { ac_try='test -z "$ac_c_werror_flag"
7300			 || test ! -s conftest.err'
7301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302  (eval $ac_try) 2>&5
7303  ac_status=$?
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); }; } &&
7306	 { ac_try='test -s conftest$ac_exeext'
7307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308  (eval $ac_try) 2>&5
7309  ac_status=$?
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); }; }; then
7312
7313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7314}'`
7315# Check for a 64-bit object if we didn't find anything.
7316if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7317}'`; fi
7318else
7319  echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322fi
7323rm -f conftest.err conftest.$ac_objext \
7324      conftest$ac_exeext conftest.$ac_ext
7325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7326
7327       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7328	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7329       else
7330	if test "$host_cpu" = ia64; then
7331	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7332	  allow_undefined_flag="-z nodefs"
7333	  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"
7334	else
7335	 # Determine the default libpath from the value encoded in an empty executable.
7336	 cat >conftest.$ac_ext <<_ACEOF
7337/* confdefs.h.  */
7338_ACEOF
7339cat confdefs.h >>conftest.$ac_ext
7340cat >>conftest.$ac_ext <<_ACEOF
7341/* end confdefs.h.  */
7342
7343int
7344main ()
7345{
7346
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351rm -f conftest.$ac_objext conftest$ac_exeext
7352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353  (eval $ac_link) 2>conftest.er1
7354  ac_status=$?
7355  grep -v '^ *+' conftest.er1 >conftest.err
7356  rm -f conftest.er1
7357  cat conftest.err >&5
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); } &&
7360	 { ac_try='test -z "$ac_c_werror_flag"
7361			 || test ! -s conftest.err'
7362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363  (eval $ac_try) 2>&5
7364  ac_status=$?
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); }; } &&
7367	 { ac_try='test -s conftest$ac_exeext'
7368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369  (eval $ac_try) 2>&5
7370  ac_status=$?
7371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372  (exit $ac_status); }; }; then
7373
7374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7375}'`
7376# Check for a 64-bit object if we didn't find anything.
7377if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7378}'`; fi
7379else
7380  echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383fi
7384rm -f conftest.err conftest.$ac_objext \
7385      conftest$ac_exeext conftest.$ac_ext
7386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7387
7388	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7389	  # Warning - without using the other run time loading flags,
7390	  # -berok will link without error, but may produce a broken library.
7391	  no_undefined_flag=' ${wl}-bernotok'
7392	  allow_undefined_flag=' ${wl}-berok'
7393	  # Exported symbols can be pulled into shared objects from archives
7394	  whole_archive_flag_spec='$convenience'
7395	  archive_cmds_need_lc=yes
7396	  # This is similar to how AIX traditionally builds its shared libraries.
7397	  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'
7398	fi
7399      fi
7400      ;;
7401
7402    amigaos*)
7403      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)'
7404      hardcode_libdir_flag_spec='-L$libdir'
7405      hardcode_minus_L=yes
7406      # see comment about different semantics on the GNU ld section
7407      ld_shlibs=no
7408      ;;
7409
7410    bsdi[45]*)
7411      export_dynamic_flag_spec=-rdynamic
7412      ;;
7413
7414    cygwin* | mingw* | pw32*)
7415      # When not using gcc, we currently assume that we are using
7416      # Microsoft Visual C++.
7417      # hardcode_libdir_flag_spec is actually meaningless, as there is
7418      # no search path for DLLs.
7419      hardcode_libdir_flag_spec=' '
7420      allow_undefined_flag=unsupported
7421      # Tell ltmain to make .lib files, not .a files.
7422      libext=lib
7423      # Tell ltmain to make .dll files, not .so files.
7424      shrext_cmds=".dll"
7425      # FIXME: Setting linknames here is a bad hack.
7426      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7427      # The linker will automatically build a .lib file if we build a DLL.
7428      old_archive_From_new_cmds='true'
7429      # FIXME: Should let the user specify the lib program.
7430      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7431      fix_srcfile_path='`cygpath -w "$srcfile"`'
7432      enable_shared_with_static_runtimes=yes
7433      ;;
7434
7435    darwin* | rhapsody*)
7436      case $host_os in
7437        rhapsody* | darwin1.[012])
7438         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7439         ;;
7440       *) # Darwin 1.3 on
7441         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7442           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7443         else
7444           case ${MACOSX_DEPLOYMENT_TARGET} in
7445             10.[012])
7446               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7447               ;;
7448             10.*)
7449               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7450               ;;
7451           esac
7452         fi
7453         ;;
7454      esac
7455      archive_cmds_need_lc=no
7456      hardcode_direct=no
7457      hardcode_automatic=yes
7458      hardcode_shlibpath_var=unsupported
7459      whole_archive_flag_spec=''
7460      link_all_deplibs=yes
7461    if test "$GCC" = yes ; then
7462    	output_verbose_link_cmd='echo'
7463        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7464      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7465      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7466      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
7467      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
7468    else
7469      case $cc_basename in
7470        xlc*)
7471         output_verbose_link_cmd='echo'
7472         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7473         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7474          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7475         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
7476          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
7477          ;;
7478       *)
7479         ld_shlibs=no
7480          ;;
7481      esac
7482    fi
7483      ;;
7484
7485    dgux*)
7486      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7487      hardcode_libdir_flag_spec='-L$libdir'
7488      hardcode_shlibpath_var=no
7489      ;;
7490
7491    freebsd1*)
7492      ld_shlibs=no
7493      ;;
7494
7495    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7496    # support.  Future versions do this automatically, but an explicit c++rt0.o
7497    # does not break anything, and helps significantly (at the cost of a little
7498    # extra space).
7499    freebsd2.2*)
7500      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7501      hardcode_libdir_flag_spec='-R$libdir'
7502      hardcode_direct=yes
7503      hardcode_shlibpath_var=no
7504      ;;
7505
7506    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7507    freebsd2*)
7508      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7509      hardcode_direct=yes
7510      hardcode_minus_L=yes
7511      hardcode_shlibpath_var=no
7512      ;;
7513
7514    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7515    freebsd* | kfreebsd*-gnu | dragonfly*)
7516      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7517      hardcode_libdir_flag_spec='-R$libdir'
7518      hardcode_direct=yes
7519      hardcode_shlibpath_var=no
7520      ;;
7521
7522    hpux9*)
7523      if test "$GCC" = yes; then
7524	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'
7525      else
7526	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'
7527      fi
7528      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7529      hardcode_libdir_separator=:
7530      hardcode_direct=yes
7531
7532      # hardcode_minus_L: Not really in the search PATH,
7533      # but as the default location of the library.
7534      hardcode_minus_L=yes
7535      export_dynamic_flag_spec='${wl}-E'
7536      ;;
7537
7538    hpux10*)
7539      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7540	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7541      else
7542	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7543      fi
7544      if test "$with_gnu_ld" = no; then
7545	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7546	hardcode_libdir_separator=:
7547
7548	hardcode_direct=yes
7549	export_dynamic_flag_spec='${wl}-E'
7550
7551	# hardcode_minus_L: Not really in the search PATH,
7552	# but as the default location of the library.
7553	hardcode_minus_L=yes
7554      fi
7555      ;;
7556
7557    hpux11*)
7558      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7559	case $host_cpu in
7560	hppa*64*)
7561	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7562	  ;;
7563	ia64*)
7564	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7565	  ;;
7566	*)
7567	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7568	  ;;
7569	esac
7570      else
7571	case $host_cpu in
7572	hppa*64*)
7573	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7574	  ;;
7575	ia64*)
7576	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7577	  ;;
7578	*)
7579	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7580	  ;;
7581	esac
7582      fi
7583      if test "$with_gnu_ld" = no; then
7584	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7585	hardcode_libdir_separator=:
7586
7587	case $host_cpu in
7588	hppa*64*|ia64*)
7589	  hardcode_libdir_flag_spec_ld='+b $libdir'
7590	  hardcode_direct=no
7591	  hardcode_shlibpath_var=no
7592	  ;;
7593	*)
7594	  hardcode_direct=yes
7595	  export_dynamic_flag_spec='${wl}-E'
7596
7597	  # hardcode_minus_L: Not really in the search PATH,
7598	  # but as the default location of the library.
7599	  hardcode_minus_L=yes
7600	  ;;
7601	esac
7602      fi
7603      ;;
7604
7605    irix5* | irix6* | nonstopux*)
7606      if test "$GCC" = yes; then
7607	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7608      else
7609	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7610	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7611      fi
7612      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7613      hardcode_libdir_separator=:
7614      link_all_deplibs=yes
7615      ;;
7616
7617    netbsd*)
7618      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7619	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7620      else
7621	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7622      fi
7623      hardcode_libdir_flag_spec='-R$libdir'
7624      hardcode_direct=yes
7625      hardcode_shlibpath_var=no
7626      ;;
7627
7628    newsos6)
7629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630      hardcode_direct=yes
7631      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7632      hardcode_libdir_separator=:
7633      hardcode_shlibpath_var=no
7634      ;;
7635
7636    openbsd*)
7637      hardcode_direct=yes
7638      hardcode_shlibpath_var=no
7639      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7640	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7641	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7642	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7643	export_dynamic_flag_spec='${wl}-E'
7644      else
7645       case $host_os in
7646	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7647	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7648	   hardcode_libdir_flag_spec='-R$libdir'
7649	   ;;
7650	 *)
7651	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7652	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7653	   ;;
7654       esac
7655      fi
7656      ;;
7657
7658    os2*)
7659      hardcode_libdir_flag_spec='-L$libdir'
7660      hardcode_minus_L=yes
7661      allow_undefined_flag=unsupported
7662      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'
7663      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7664      ;;
7665
7666    osf3*)
7667      if test "$GCC" = yes; then
7668	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7669	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7670      else
7671	allow_undefined_flag=' -expect_unresolved \*'
7672	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7673      fi
7674      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7675      hardcode_libdir_separator=:
7676      ;;
7677
7678    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7679      if test "$GCC" = yes; then
7680	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7681	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7682	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7683      else
7684	allow_undefined_flag=' -expect_unresolved \*'
7685	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7686	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7687	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7688
7689	# Both c and cxx compiler support -rpath directly
7690	hardcode_libdir_flag_spec='-rpath $libdir'
7691      fi
7692      hardcode_libdir_separator=:
7693      ;;
7694
7695    solaris*)
7696      no_undefined_flag=' -z text'
7697      if test "$GCC" = yes; then
7698	wlarc='${wl}'
7699	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7701	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7702      else
7703	wlarc=''
7704	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7706  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7707      fi
7708      hardcode_libdir_flag_spec='-R$libdir'
7709      hardcode_shlibpath_var=no
7710      case $host_os in
7711      solaris2.[0-5] | solaris2.[0-5].*) ;;
7712      *)
7713 	# The compiler driver will combine linker options so we
7714 	# cannot just pass the convience library names through
7715 	# without $wl, iff we do not link with $LD.
7716 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7717 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7718 	case $wlarc in
7719 	'')
7720 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7721 	*)
7722 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7723 	esac ;;
7724      esac
7725      link_all_deplibs=yes
7726      ;;
7727
7728    sunos4*)
7729      if test "x$host_vendor" = xsequent; then
7730	# Use $CC to link under sequent, because it throws in some extra .o
7731	# files that make .init and .fini sections work.
7732	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7733      else
7734	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7735      fi
7736      hardcode_libdir_flag_spec='-L$libdir'
7737      hardcode_direct=yes
7738      hardcode_minus_L=yes
7739      hardcode_shlibpath_var=no
7740      ;;
7741
7742    sysv4)
7743      case $host_vendor in
7744	sni)
7745	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746	  hardcode_direct=yes # is this really true???
7747	;;
7748	siemens)
7749	  ## LD is ld it makes a PLAMLIB
7750	  ## CC just makes a GrossModule.
7751	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7752	  reload_cmds='$CC -r -o $output$reload_objs'
7753	  hardcode_direct=no
7754        ;;
7755	motorola)
7756	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7758	;;
7759      esac
7760      runpath_var='LD_RUN_PATH'
7761      hardcode_shlibpath_var=no
7762      ;;
7763
7764    sysv4.3*)
7765      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766      hardcode_shlibpath_var=no
7767      export_dynamic_flag_spec='-Bexport'
7768      ;;
7769
7770    sysv4*MP*)
7771      if test -d /usr/nec; then
7772	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773	hardcode_shlibpath_var=no
7774	runpath_var=LD_RUN_PATH
7775	hardcode_runpath_var=yes
7776	ld_shlibs=yes
7777      fi
7778      ;;
7779
7780    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7781      no_undefined_flag='${wl}-z,text'
7782      archive_cmds_need_lc=no
7783      hardcode_shlibpath_var=no
7784      runpath_var='LD_RUN_PATH'
7785
7786      if test "$GCC" = yes; then
7787	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7788	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7789      else
7790	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7791	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7792      fi
7793      ;;
7794
7795    sysv5* | sco3.2v5* | sco5v6*)
7796      # Note: We can NOT use -z defs as we might desire, because we do not
7797      # link with -lc, and that would cause any symbols used from libc to
7798      # always be unresolved, which means just about no library would
7799      # ever link correctly.  If we're not using GNU ld we use -z text
7800      # though, which does catch some bad symbols but isn't as heavy-handed
7801      # as -z defs.
7802      no_undefined_flag='${wl}-z,text'
7803      allow_undefined_flag='${wl}-z,nodefs'
7804      archive_cmds_need_lc=no
7805      hardcode_shlibpath_var=no
7806      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7807      hardcode_libdir_separator=':'
7808      link_all_deplibs=yes
7809      export_dynamic_flag_spec='${wl}-Bexport'
7810      runpath_var='LD_RUN_PATH'
7811
7812      if test "$GCC" = yes; then
7813	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7814	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815      else
7816	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7817	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818      fi
7819      ;;
7820
7821    uts4*)
7822      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823      hardcode_libdir_flag_spec='-L$libdir'
7824      hardcode_shlibpath_var=no
7825      ;;
7826
7827    *)
7828      ld_shlibs=no
7829      ;;
7830    esac
7831  fi
7832
7833echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7834echo "${ECHO_T}$ld_shlibs" >&6
7835test "$ld_shlibs" = no && can_build_shared=no
7836
7837#
7838# Do we need to explicitly link libc?
7839#
7840case "x$archive_cmds_need_lc" in
7841x|xyes)
7842  # Assume -lc should be added
7843  archive_cmds_need_lc=yes
7844
7845  if test "$enable_shared" = yes && test "$GCC" = yes; then
7846    case $archive_cmds in
7847    *'~'*)
7848      # FIXME: we may have to deal with multi-command sequences.
7849      ;;
7850    '$CC '*)
7851      # Test whether the compiler implicitly links with -lc since on some
7852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7853      # to ld, don't add -lc before -lgcc.
7854      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7855echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7856      $rm conftest*
7857      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
7859      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860  (eval $ac_compile) 2>&5
7861  ac_status=$?
7862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863  (exit $ac_status); } 2>conftest.err; then
7864        soname=conftest
7865        lib=conftest
7866        libobjs=conftest.$ac_objext
7867        deplibs=
7868        wl=$lt_prog_compiler_wl
7869	pic_flag=$lt_prog_compiler_pic
7870        compiler_flags=-v
7871        linker_flags=-v
7872        verstring=
7873        output_objdir=.
7874        libname=conftest
7875        lt_save_allow_undefined_flag=$allow_undefined_flag
7876        allow_undefined_flag=
7877        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7878  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7879  ac_status=$?
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); }
7882        then
7883	  archive_cmds_need_lc=no
7884        else
7885	  archive_cmds_need_lc=yes
7886        fi
7887        allow_undefined_flag=$lt_save_allow_undefined_flag
7888      else
7889        cat conftest.err 1>&5
7890      fi
7891      $rm conftest*
7892      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7893echo "${ECHO_T}$archive_cmds_need_lc" >&6
7894      ;;
7895    esac
7896  fi
7897  ;;
7898esac
7899
7900echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7901echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7902library_names_spec=
7903libname_spec='lib$name'
7904soname_spec=
7905shrext_cmds=".so"
7906postinstall_cmds=
7907postuninstall_cmds=
7908finish_cmds=
7909finish_eval=
7910shlibpath_var=
7911shlibpath_overrides_runpath=unknown
7912version_type=none
7913dynamic_linker="$host_os ld.so"
7914sys_lib_dlsearch_path_spec="/lib /usr/lib"
7915if test "$GCC" = yes; then
7916  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7917  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7918    # if the path contains ";" then we assume it to be the separator
7919    # otherwise default to the standard path separator (i.e. ":") - it is
7920    # assumed that no part of a normal pathname contains ";" but that should
7921    # okay in the real world where ";" in dirpaths is itself problematic.
7922    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7923  else
7924    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7925  fi
7926else
7927  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7928fi
7929need_lib_prefix=unknown
7930hardcode_into_libs=no
7931
7932# when you set need_version to no, make sure it does not cause -set_version
7933# flags to be left without arguments
7934need_version=unknown
7935
7936case $host_os in
7937aix3*)
7938  version_type=linux
7939  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7940  shlibpath_var=LIBPATH
7941
7942  # AIX 3 has no versioning support, so we append a major version to the name.
7943  soname_spec='${libname}${release}${shared_ext}$major'
7944  ;;
7945
7946aix4* | aix5*)
7947  version_type=linux
7948  need_lib_prefix=no
7949  need_version=no
7950  hardcode_into_libs=yes
7951  if test "$host_cpu" = ia64; then
7952    # AIX 5 supports IA64
7953    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7954    shlibpath_var=LD_LIBRARY_PATH
7955  else
7956    # With GCC up to 2.95.x, collect2 would create an import file
7957    # for dependence libraries.  The import file would start with
7958    # the line `#! .'.  This would cause the generated library to
7959    # depend on `.', always an invalid library.  This was fixed in
7960    # development snapshots of GCC prior to 3.0.
7961    case $host_os in
7962      aix4 | aix4.[01] | aix4.[01].*)
7963      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7964	   echo ' yes '
7965	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7966	:
7967      else
7968	can_build_shared=no
7969      fi
7970      ;;
7971    esac
7972    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7973    # soname into executable. Probably we can add versioning support to
7974    # collect2, so additional links can be useful in future.
7975    if test "$aix_use_runtimelinking" = yes; then
7976      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7977      # instead of lib<name>.a to let people know that these are not
7978      # typical AIX shared libraries.
7979      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980    else
7981      # We preserve .a as extension for shared libraries through AIX4.2
7982      # and later when we are not doing run time linking.
7983      library_names_spec='${libname}${release}.a $libname.a'
7984      soname_spec='${libname}${release}${shared_ext}$major'
7985    fi
7986    shlibpath_var=LIBPATH
7987  fi
7988  ;;
7989
7990amigaos*)
7991  library_names_spec='$libname.ixlibrary $libname.a'
7992  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7993  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'
7994  ;;
7995
7996beos*)
7997  library_names_spec='${libname}${shared_ext}'
7998  dynamic_linker="$host_os ld.so"
7999  shlibpath_var=LIBRARY_PATH
8000  ;;
8001
8002bsdi[45]*)
8003  version_type=linux
8004  need_version=no
8005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006  soname_spec='${libname}${release}${shared_ext}$major'
8007  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8008  shlibpath_var=LD_LIBRARY_PATH
8009  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8010  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8011  # the default ld.so.conf also contains /usr/contrib/lib and
8012  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8013  # libtool to hard-code these into programs
8014  ;;
8015
8016cygwin* | mingw* | pw32*)
8017  version_type=windows
8018  shrext_cmds=".dll"
8019  need_version=no
8020  need_lib_prefix=no
8021
8022  case $GCC,$host_os in
8023  yes,cygwin* | yes,mingw* | yes,pw32*)
8024    library_names_spec='$libname.dll.a'
8025    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8026    postinstall_cmds='base_file=`basename \${file}`~
8027      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8028      dldir=$destdir/`dirname \$dlpath`~
8029      test -d \$dldir || mkdir -p \$dldir~
8030      $install_prog $dir/$dlname \$dldir/$dlname~
8031      chmod a+x \$dldir/$dlname'
8032    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8033      dlpath=$dir/\$dldll~
8034       $rm \$dlpath'
8035    shlibpath_overrides_runpath=yes
8036
8037    case $host_os in
8038    cygwin*)
8039      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8040      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8041      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8042      ;;
8043    mingw*)
8044      # MinGW DLLs use traditional 'lib' prefix
8045      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8046      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8047      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8048        # It is most probably a Windows format PATH printed by
8049        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8050        # path with ; separators, and with drive letters. We can handle the
8051        # drive letters (cygwin fileutils understands them), so leave them,
8052        # especially as we might pass files found there to a mingw objdump,
8053        # which wouldn't understand a cygwinified path. Ahh.
8054        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8055      else
8056        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8057      fi
8058      ;;
8059    pw32*)
8060      # pw32 DLLs use 'pw' prefix rather than 'lib'
8061      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8062      ;;
8063    esac
8064    ;;
8065
8066  *)
8067    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8068    ;;
8069  esac
8070  dynamic_linker='Win32 ld.exe'
8071  # FIXME: first we should search . and the directory the executable is in
8072  shlibpath_var=PATH
8073  ;;
8074
8075darwin* | rhapsody*)
8076  dynamic_linker="$host_os dyld"
8077  version_type=darwin
8078  need_lib_prefix=no
8079  need_version=no
8080  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8081  soname_spec='${libname}${release}${major}$shared_ext'
8082  shlibpath_overrides_runpath=yes
8083  shlibpath_var=DYLD_LIBRARY_PATH
8084  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8085  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8086  if test "$GCC" = yes; then
8087    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8088  else
8089    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8090  fi
8091  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8092  ;;
8093
8094dgux*)
8095  version_type=linux
8096  need_lib_prefix=no
8097  need_version=no
8098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8099  soname_spec='${libname}${release}${shared_ext}$major'
8100  shlibpath_var=LD_LIBRARY_PATH
8101  ;;
8102
8103freebsd1*)
8104  dynamic_linker=no
8105  ;;
8106
8107kfreebsd*-gnu)
8108  version_type=linux
8109  need_lib_prefix=no
8110  need_version=no
8111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8112  soname_spec='${libname}${release}${shared_ext}$major'
8113  shlibpath_var=LD_LIBRARY_PATH
8114  shlibpath_overrides_runpath=no
8115  hardcode_into_libs=yes
8116  dynamic_linker='GNU ld.so'
8117  ;;
8118
8119freebsd* | dragonfly*)
8120  # DragonFly does not have aout.  When/if they implement a new
8121  # versioning mechanism, adjust this.
8122  if test -x /usr/bin/objformat; then
8123    objformat=`/usr/bin/objformat`
8124  else
8125    case $host_os in
8126    freebsd[123]*) objformat=aout ;;
8127    *) objformat=elf ;;
8128    esac
8129  fi
8130  version_type=freebsd-$objformat
8131  case $version_type in
8132    freebsd-elf*)
8133      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8134      need_version=no
8135      need_lib_prefix=no
8136      ;;
8137    freebsd-*)
8138      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8139      need_version=yes
8140      ;;
8141  esac
8142  shlibpath_var=LD_LIBRARY_PATH
8143  case $host_os in
8144  freebsd2*)
8145    shlibpath_overrides_runpath=yes
8146    ;;
8147  freebsd3.[01]* | freebsdelf3.[01]*)
8148    shlibpath_overrides_runpath=yes
8149    hardcode_into_libs=yes
8150    ;;
8151  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8152  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8153    shlibpath_overrides_runpath=no
8154    hardcode_into_libs=yes
8155    ;;
8156  freebsd*) # from 4.6 on
8157    shlibpath_overrides_runpath=yes
8158    hardcode_into_libs=yes
8159    ;;
8160  esac
8161  ;;
8162
8163gnu*)
8164  version_type=linux
8165  need_lib_prefix=no
8166  need_version=no
8167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8168  soname_spec='${libname}${release}${shared_ext}$major'
8169  shlibpath_var=LD_LIBRARY_PATH
8170  hardcode_into_libs=yes
8171  ;;
8172
8173hpux9* | hpux10* | hpux11*)
8174  # Give a soname corresponding to the major version so that dld.sl refuses to
8175  # link against other versions.
8176  version_type=sunos
8177  need_lib_prefix=no
8178  need_version=no
8179  case $host_cpu in
8180  ia64*)
8181    shrext_cmds='.so'
8182    hardcode_into_libs=yes
8183    dynamic_linker="$host_os dld.so"
8184    shlibpath_var=LD_LIBRARY_PATH
8185    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8186    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187    soname_spec='${libname}${release}${shared_ext}$major'
8188    if test "X$HPUX_IA64_MODE" = X32; then
8189      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8190    else
8191      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8192    fi
8193    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8194    ;;
8195   hppa*64*)
8196     shrext_cmds='.sl'
8197     hardcode_into_libs=yes
8198     dynamic_linker="$host_os dld.sl"
8199     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8200     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8202     soname_spec='${libname}${release}${shared_ext}$major'
8203     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8204     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8205     ;;
8206   *)
8207    shrext_cmds='.sl'
8208    dynamic_linker="$host_os dld.sl"
8209    shlibpath_var=SHLIB_PATH
8210    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8211    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8212    soname_spec='${libname}${release}${shared_ext}$major'
8213    ;;
8214  esac
8215  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8216  postinstall_cmds='chmod 555 $lib'
8217  ;;
8218
8219interix3*)
8220  version_type=linux
8221  need_lib_prefix=no
8222  need_version=no
8223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8224  soname_spec='${libname}${release}${shared_ext}$major'
8225  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8226  shlibpath_var=LD_LIBRARY_PATH
8227  shlibpath_overrides_runpath=no
8228  hardcode_into_libs=yes
8229  ;;
8230
8231irix5* | irix6* | nonstopux*)
8232  case $host_os in
8233    nonstopux*) version_type=nonstopux ;;
8234    *)
8235	if test "$lt_cv_prog_gnu_ld" = yes; then
8236		version_type=linux
8237	else
8238		version_type=irix
8239	fi ;;
8240  esac
8241  need_lib_prefix=no
8242  need_version=no
8243  soname_spec='${libname}${release}${shared_ext}$major'
8244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8245  case $host_os in
8246  irix5* | nonstopux*)
8247    libsuff= shlibsuff=
8248    ;;
8249  *)
8250    case $LD in # libtool.m4 will add one of these switches to LD
8251    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8252      libsuff= shlibsuff= libmagic=32-bit;;
8253    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8254      libsuff=32 shlibsuff=N32 libmagic=N32;;
8255    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8256      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8257    *) libsuff= shlibsuff= libmagic=never-match;;
8258    esac
8259    ;;
8260  esac
8261  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8262  shlibpath_overrides_runpath=no
8263  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8264  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8265  hardcode_into_libs=yes
8266  ;;
8267
8268# No shared lib support for Linux oldld, aout, or coff.
8269linux*oldld* | linux*aout* | linux*coff*)
8270  dynamic_linker=no
8271  ;;
8272
8273# This must be Linux ELF.
8274linux*)
8275  version_type=linux
8276  need_lib_prefix=no
8277  need_version=no
8278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8279  soname_spec='${libname}${release}${shared_ext}$major'
8280  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8281  shlibpath_var=LD_LIBRARY_PATH
8282  shlibpath_overrides_runpath=no
8283  # This implies no fast_install, which is unacceptable.
8284  # Some rework will be needed to allow for fast_install
8285  # before this can be enabled.
8286  hardcode_into_libs=yes
8287
8288  # find out which ABI we are using
8289  libsuff=
8290  case "$host_cpu" in
8291  x86_64*|s390x*|powerpc64*)
8292    echo '#line 8292 "configure"' > conftest.$ac_ext
8293    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294  (eval $ac_compile) 2>&5
8295  ac_status=$?
8296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297  (exit $ac_status); }; then
8298      case `/usr/bin/file conftest.$ac_objext` in
8299      *64-bit*)
8300        libsuff=64
8301        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8302        ;;
8303      esac
8304    fi
8305    rm -rf conftest*
8306    ;;
8307  esac
8308
8309  # Append ld.so.conf contents to the search path
8310  if test -f /etc/ld.so.conf; then
8311    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8312    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8313  fi
8314
8315  # We used to test for /lib/ld.so.1 and disable shared libraries on
8316  # powerpc, because MkLinux only supported shared libraries with the
8317  # GNU dynamic linker.  Since this was broken with cross compilers,
8318  # most powerpc-linux boxes support dynamic linking these days and
8319  # people can always --disable-shared, the test was removed, and we
8320  # assume the GNU/Linux dynamic linker is in use.
8321  dynamic_linker='GNU/Linux ld.so'
8322  ;;
8323
8324knetbsd*-gnu)
8325  version_type=linux
8326  need_lib_prefix=no
8327  need_version=no
8328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8329  soname_spec='${libname}${release}${shared_ext}$major'
8330  shlibpath_var=LD_LIBRARY_PATH
8331  shlibpath_overrides_runpath=no
8332  hardcode_into_libs=yes
8333  dynamic_linker='GNU ld.so'
8334  ;;
8335
8336netbsd*)
8337  version_type=sunos
8338  need_lib_prefix=no
8339  need_version=no
8340  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8342    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8343    dynamic_linker='NetBSD (a.out) ld.so'
8344  else
8345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8346    soname_spec='${libname}${release}${shared_ext}$major'
8347    dynamic_linker='NetBSD ld.elf_so'
8348  fi
8349  shlibpath_var=LD_LIBRARY_PATH
8350  shlibpath_overrides_runpath=yes
8351  hardcode_into_libs=yes
8352  ;;
8353
8354newsos6)
8355  version_type=linux
8356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357  shlibpath_var=LD_LIBRARY_PATH
8358  shlibpath_overrides_runpath=yes
8359  ;;
8360
8361nto-qnx*)
8362  version_type=linux
8363  need_lib_prefix=no
8364  need_version=no
8365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8366  soname_spec='${libname}${release}${shared_ext}$major'
8367  shlibpath_var=LD_LIBRARY_PATH
8368  shlibpath_overrides_runpath=yes
8369  ;;
8370
8371openbsd*)
8372  version_type=sunos
8373  sys_lib_dlsearch_path_spec="/usr/lib"
8374  need_lib_prefix=no
8375  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8376  case $host_os in
8377    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8378    *)                         need_version=no  ;;
8379  esac
8380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8381  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8382  shlibpath_var=LD_LIBRARY_PATH
8383  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8384    case $host_os in
8385      openbsd2.[89] | openbsd2.[89].*)
8386	shlibpath_overrides_runpath=no
8387	;;
8388      *)
8389	shlibpath_overrides_runpath=yes
8390	;;
8391      esac
8392  else
8393    shlibpath_overrides_runpath=yes
8394  fi
8395  ;;
8396
8397os2*)
8398  libname_spec='$name'
8399  shrext_cmds=".dll"
8400  need_lib_prefix=no
8401  library_names_spec='$libname${shared_ext} $libname.a'
8402  dynamic_linker='OS/2 ld.exe'
8403  shlibpath_var=LIBPATH
8404  ;;
8405
8406osf3* | osf4* | osf5*)
8407  version_type=osf
8408  need_lib_prefix=no
8409  need_version=no
8410  soname_spec='${libname}${release}${shared_ext}$major'
8411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412  shlibpath_var=LD_LIBRARY_PATH
8413  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8414  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8415  ;;
8416
8417solaris*)
8418  version_type=linux
8419  need_lib_prefix=no
8420  need_version=no
8421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8422  soname_spec='${libname}${release}${shared_ext}$major'
8423  shlibpath_var=LD_LIBRARY_PATH
8424  shlibpath_overrides_runpath=yes
8425  hardcode_into_libs=yes
8426  # ldd complains unless libraries are executable
8427  postinstall_cmds='chmod +x $lib'
8428  ;;
8429
8430sunos4*)
8431  version_type=sunos
8432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8433  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8434  shlibpath_var=LD_LIBRARY_PATH
8435  shlibpath_overrides_runpath=yes
8436  if test "$with_gnu_ld" = yes; then
8437    need_lib_prefix=no
8438  fi
8439  need_version=yes
8440  ;;
8441
8442sysv4 | sysv4.3*)
8443  version_type=linux
8444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445  soname_spec='${libname}${release}${shared_ext}$major'
8446  shlibpath_var=LD_LIBRARY_PATH
8447  case $host_vendor in
8448    sni)
8449      shlibpath_overrides_runpath=no
8450      need_lib_prefix=no
8451      export_dynamic_flag_spec='${wl}-Blargedynsym'
8452      runpath_var=LD_RUN_PATH
8453      ;;
8454    siemens)
8455      need_lib_prefix=no
8456      ;;
8457    motorola)
8458      need_lib_prefix=no
8459      need_version=no
8460      shlibpath_overrides_runpath=no
8461      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8462      ;;
8463  esac
8464  ;;
8465
8466sysv4*MP*)
8467  if test -d /usr/nec ;then
8468    version_type=linux
8469    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8470    soname_spec='$libname${shared_ext}.$major'
8471    shlibpath_var=LD_LIBRARY_PATH
8472  fi
8473  ;;
8474
8475sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8476  version_type=freebsd-elf
8477  need_lib_prefix=no
8478  need_version=no
8479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8480  soname_spec='${libname}${release}${shared_ext}$major'
8481  shlibpath_var=LD_LIBRARY_PATH
8482  hardcode_into_libs=yes
8483  if test "$with_gnu_ld" = yes; then
8484    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8485    shlibpath_overrides_runpath=no
8486  else
8487    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8488    shlibpath_overrides_runpath=yes
8489    case $host_os in
8490      sco3.2v5*)
8491        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8492	;;
8493    esac
8494  fi
8495  sys_lib_dlsearch_path_spec='/usr/lib'
8496  ;;
8497
8498uts4*)
8499  version_type=linux
8500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501  soname_spec='${libname}${release}${shared_ext}$major'
8502  shlibpath_var=LD_LIBRARY_PATH
8503  ;;
8504
8505*)
8506  dynamic_linker=no
8507  ;;
8508esac
8509echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8510echo "${ECHO_T}$dynamic_linker" >&6
8511test "$dynamic_linker" = no && can_build_shared=no
8512
8513variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8514if test "$GCC" = yes; then
8515  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8516fi
8517
8518echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8519echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8520hardcode_action=
8521if test -n "$hardcode_libdir_flag_spec" || \
8522   test -n "$runpath_var" || \
8523   test "X$hardcode_automatic" = "Xyes" ; then
8524
8525  # We can hardcode non-existant directories.
8526  if test "$hardcode_direct" != no &&
8527     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8528     # have to relink, otherwise we might link with an installed library
8529     # when we should be linking with a yet-to-be-installed one
8530     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8531     test "$hardcode_minus_L" != no; then
8532    # Linking always hardcodes the temporary library directory.
8533    hardcode_action=relink
8534  else
8535    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8536    hardcode_action=immediate
8537  fi
8538else
8539  # We cannot hardcode anything, or else we can only hardcode existing
8540  # directories.
8541  hardcode_action=unsupported
8542fi
8543echo "$as_me:$LINENO: result: $hardcode_action" >&5
8544echo "${ECHO_T}$hardcode_action" >&6
8545
8546if test "$hardcode_action" = relink; then
8547  # Fast installation is not supported
8548  enable_fast_install=no
8549elif test "$shlibpath_overrides_runpath" = yes ||
8550     test "$enable_shared" = no; then
8551  # Fast installation is not necessary
8552  enable_fast_install=needless
8553fi
8554
8555striplib=
8556old_striplib=
8557echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8558echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8559if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8560  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8561  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8562  echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564else
8565# FIXME - insert some real tests, host_os isn't really good enough
8566  case $host_os in
8567   darwin*)
8568       if test -n "$STRIP" ; then
8569         striplib="$STRIP -x"
8570         echo "$as_me:$LINENO: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
8572       else
8573  echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6
8575fi
8576       ;;
8577   *)
8578  echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
8580    ;;
8581  esac
8582fi
8583
8584if test "x$enable_dlopen" != xyes; then
8585  enable_dlopen=unknown
8586  enable_dlopen_self=unknown
8587  enable_dlopen_self_static=unknown
8588else
8589  lt_cv_dlopen=no
8590  lt_cv_dlopen_libs=
8591
8592  case $host_os in
8593  beos*)
8594    lt_cv_dlopen="load_add_on"
8595    lt_cv_dlopen_libs=
8596    lt_cv_dlopen_self=yes
8597    ;;
8598
8599  mingw* | pw32*)
8600    lt_cv_dlopen="LoadLibrary"
8601    lt_cv_dlopen_libs=
8602   ;;
8603
8604  cygwin*)
8605    lt_cv_dlopen="dlopen"
8606    lt_cv_dlopen_libs=
8607   ;;
8608
8609  darwin*)
8610  # if libdl is installed we need to link against it
8611    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8612echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8613if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8614  echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616  ac_check_lib_save_LIBS=$LIBS
8617LIBS="-ldl  $LIBS"
8618cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h.  */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h.  */
8624
8625/* Override any gcc2 internal prototype to avoid an error.  */
8626#ifdef __cplusplus
8627extern "C"
8628#endif
8629/* We use char because int might match the return type of a gcc2
8630   builtin and then its argument prototype would still apply.  */
8631char dlopen ();
8632int
8633main ()
8634{
8635dlopen ();
8636  ;
8637  return 0;
8638}
8639_ACEOF
8640rm -f conftest.$ac_objext conftest$ac_exeext
8641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642  (eval $ac_link) 2>conftest.er1
8643  ac_status=$?
8644  grep -v '^ *+' conftest.er1 >conftest.err
8645  rm -f conftest.er1
8646  cat conftest.err >&5
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } &&
8649	 { ac_try='test -z "$ac_c_werror_flag"
8650			 || test ! -s conftest.err'
8651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652  (eval $ac_try) 2>&5
8653  ac_status=$?
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); }; } &&
8656	 { ac_try='test -s conftest$ac_exeext'
8657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658  (eval $ac_try) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); }; }; then
8662  ac_cv_lib_dl_dlopen=yes
8663else
8664  echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667ac_cv_lib_dl_dlopen=no
8668fi
8669rm -f conftest.err conftest.$ac_objext \
8670      conftest$ac_exeext conftest.$ac_ext
8671LIBS=$ac_check_lib_save_LIBS
8672fi
8673echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8674echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8675if test $ac_cv_lib_dl_dlopen = yes; then
8676  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8677else
8678
8679    lt_cv_dlopen="dyld"
8680    lt_cv_dlopen_libs=
8681    lt_cv_dlopen_self=yes
8682
8683fi
8684
8685   ;;
8686
8687  *)
8688    echo "$as_me:$LINENO: checking for shl_load" >&5
8689echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8690if test "${ac_cv_func_shl_load+set}" = set; then
8691  echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693  cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h.  */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h.  */
8699/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8700   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8701#define shl_load innocuous_shl_load
8702
8703/* System header to define __stub macros and hopefully few prototypes,
8704    which can conflict with char shl_load (); below.
8705    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706    <limits.h> exists even on freestanding compilers.  */
8707
8708#ifdef __STDC__
8709# include <limits.h>
8710#else
8711# include <assert.h>
8712#endif
8713
8714#undef shl_load
8715
8716/* Override any gcc2 internal prototype to avoid an error.  */
8717#ifdef __cplusplus
8718extern "C"
8719{
8720#endif
8721/* We use char because int might match the return type of a gcc2
8722   builtin and then its argument prototype would still apply.  */
8723char shl_load ();
8724/* The GNU C library defines this for functions which it implements
8725    to always fail with ENOSYS.  Some functions are actually named
8726    something starting with __ and the normal name is an alias.  */
8727#if defined (__stub_shl_load) || defined (__stub___shl_load)
8728choke me
8729#else
8730char (*f) () = shl_load;
8731#endif
8732#ifdef __cplusplus
8733}
8734#endif
8735
8736int
8737main ()
8738{
8739return f != shl_load;
8740  ;
8741  return 0;
8742}
8743_ACEOF
8744rm -f conftest.$ac_objext conftest$ac_exeext
8745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746  (eval $ac_link) 2>conftest.er1
8747  ac_status=$?
8748  grep -v '^ *+' conftest.er1 >conftest.err
8749  rm -f conftest.er1
8750  cat conftest.err >&5
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); } &&
8753	 { ac_try='test -z "$ac_c_werror_flag"
8754			 || test ! -s conftest.err'
8755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756  (eval $ac_try) 2>&5
8757  ac_status=$?
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); }; } &&
8760	 { ac_try='test -s conftest$ac_exeext'
8761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762  (eval $ac_try) 2>&5
8763  ac_status=$?
8764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765  (exit $ac_status); }; }; then
8766  ac_cv_func_shl_load=yes
8767else
8768  echo "$as_me: failed program was:" >&5
8769sed 's/^/| /' conftest.$ac_ext >&5
8770
8771ac_cv_func_shl_load=no
8772fi
8773rm -f conftest.err conftest.$ac_objext \
8774      conftest$ac_exeext conftest.$ac_ext
8775fi
8776echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8777echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8778if test $ac_cv_func_shl_load = yes; then
8779  lt_cv_dlopen="shl_load"
8780else
8781  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8782echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8783if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8784  echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786  ac_check_lib_save_LIBS=$LIBS
8787LIBS="-ldld  $LIBS"
8788cat >conftest.$ac_ext <<_ACEOF
8789/* confdefs.h.  */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h.  */
8794
8795/* Override any gcc2 internal prototype to avoid an error.  */
8796#ifdef __cplusplus
8797extern "C"
8798#endif
8799/* We use char because int might match the return type of a gcc2
8800   builtin and then its argument prototype would still apply.  */
8801char shl_load ();
8802int
8803main ()
8804{
8805shl_load ();
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812  (eval $ac_link) 2>conftest.er1
8813  ac_status=$?
8814  grep -v '^ *+' conftest.er1 >conftest.err
8815  rm -f conftest.er1
8816  cat conftest.err >&5
8817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818  (exit $ac_status); } &&
8819	 { ac_try='test -z "$ac_c_werror_flag"
8820			 || test ! -s conftest.err'
8821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822  (eval $ac_try) 2>&5
8823  ac_status=$?
8824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825  (exit $ac_status); }; } &&
8826	 { ac_try='test -s conftest$ac_exeext'
8827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828  (eval $ac_try) 2>&5
8829  ac_status=$?
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); }; }; then
8832  ac_cv_lib_dld_shl_load=yes
8833else
8834  echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837ac_cv_lib_dld_shl_load=no
8838fi
8839rm -f conftest.err conftest.$ac_objext \
8840      conftest$ac_exeext conftest.$ac_ext
8841LIBS=$ac_check_lib_save_LIBS
8842fi
8843echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8844echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8845if test $ac_cv_lib_dld_shl_load = yes; then
8846  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8847else
8848  echo "$as_me:$LINENO: checking for dlopen" >&5
8849echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8850if test "${ac_cv_func_dlopen+set}" = set; then
8851  echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853  cat >conftest.$ac_ext <<_ACEOF
8854/* confdefs.h.  */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h.  */
8859/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8860   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8861#define dlopen innocuous_dlopen
8862
8863/* System header to define __stub macros and hopefully few prototypes,
8864    which can conflict with char dlopen (); below.
8865    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8866    <limits.h> exists even on freestanding compilers.  */
8867
8868#ifdef __STDC__
8869# include <limits.h>
8870#else
8871# include <assert.h>
8872#endif
8873
8874#undef dlopen
8875
8876/* Override any gcc2 internal prototype to avoid an error.  */
8877#ifdef __cplusplus
8878extern "C"
8879{
8880#endif
8881/* We use char because int might match the return type of a gcc2
8882   builtin and then its argument prototype would still apply.  */
8883char dlopen ();
8884/* The GNU C library defines this for functions which it implements
8885    to always fail with ENOSYS.  Some functions are actually named
8886    something starting with __ and the normal name is an alias.  */
8887#if defined (__stub_dlopen) || defined (__stub___dlopen)
8888choke me
8889#else
8890char (*f) () = dlopen;
8891#endif
8892#ifdef __cplusplus
8893}
8894#endif
8895
8896int
8897main ()
8898{
8899return f != dlopen;
8900  ;
8901  return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906  (eval $ac_link) 2>conftest.er1
8907  ac_status=$?
8908  grep -v '^ *+' conftest.er1 >conftest.err
8909  rm -f conftest.er1
8910  cat conftest.err >&5
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); } &&
8913	 { ac_try='test -z "$ac_c_werror_flag"
8914			 || test ! -s conftest.err'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; } &&
8920	 { ac_try='test -s conftest$ac_exeext'
8921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922  (eval $ac_try) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; }; then
8926  ac_cv_func_dlopen=yes
8927else
8928  echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931ac_cv_func_dlopen=no
8932fi
8933rm -f conftest.err conftest.$ac_objext \
8934      conftest$ac_exeext conftest.$ac_ext
8935fi
8936echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8937echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8938if test $ac_cv_func_dlopen = yes; then
8939  lt_cv_dlopen="dlopen"
8940else
8941  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8942echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8943if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946  ac_check_lib_save_LIBS=$LIBS
8947LIBS="-ldl  $LIBS"
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h.  */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h.  */
8954
8955/* Override any gcc2 internal prototype to avoid an error.  */
8956#ifdef __cplusplus
8957extern "C"
8958#endif
8959/* We use char because int might match the return type of a gcc2
8960   builtin and then its argument prototype would still apply.  */
8961char dlopen ();
8962int
8963main ()
8964{
8965dlopen ();
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext conftest$ac_exeext
8971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972  (eval $ac_link) 2>conftest.er1
8973  ac_status=$?
8974  grep -v '^ *+' conftest.er1 >conftest.err
8975  rm -f conftest.er1
8976  cat conftest.err >&5
8977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978  (exit $ac_status); } &&
8979	 { ac_try='test -z "$ac_c_werror_flag"
8980			 || test ! -s conftest.err'
8981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982  (eval $ac_try) 2>&5
8983  ac_status=$?
8984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985  (exit $ac_status); }; } &&
8986	 { ac_try='test -s conftest$ac_exeext'
8987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988  (eval $ac_try) 2>&5
8989  ac_status=$?
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); }; }; then
8992  ac_cv_lib_dl_dlopen=yes
8993else
8994  echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997ac_cv_lib_dl_dlopen=no
8998fi
8999rm -f conftest.err conftest.$ac_objext \
9000      conftest$ac_exeext conftest.$ac_ext
9001LIBS=$ac_check_lib_save_LIBS
9002fi
9003echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9004echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9005if test $ac_cv_lib_dl_dlopen = yes; then
9006  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9007else
9008  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9009echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9010if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9011  echo $ECHO_N "(cached) $ECHO_C" >&6
9012else
9013  ac_check_lib_save_LIBS=$LIBS
9014LIBS="-lsvld  $LIBS"
9015cat >conftest.$ac_ext <<_ACEOF
9016/* confdefs.h.  */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h.  */
9021
9022/* Override any gcc2 internal prototype to avoid an error.  */
9023#ifdef __cplusplus
9024extern "C"
9025#endif
9026/* We use char because int might match the return type of a gcc2
9027   builtin and then its argument prototype would still apply.  */
9028char dlopen ();
9029int
9030main ()
9031{
9032dlopen ();
9033  ;
9034  return 0;
9035}
9036_ACEOF
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039  (eval $ac_link) 2>conftest.er1
9040  ac_status=$?
9041  grep -v '^ *+' conftest.er1 >conftest.err
9042  rm -f conftest.er1
9043  cat conftest.err >&5
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); } &&
9046	 { ac_try='test -z "$ac_c_werror_flag"
9047			 || test ! -s conftest.err'
9048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049  (eval $ac_try) 2>&5
9050  ac_status=$?
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); }; } &&
9053	 { ac_try='test -s conftest$ac_exeext'
9054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055  (eval $ac_try) 2>&5
9056  ac_status=$?
9057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058  (exit $ac_status); }; }; then
9059  ac_cv_lib_svld_dlopen=yes
9060else
9061  echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
9063
9064ac_cv_lib_svld_dlopen=no
9065fi
9066rm -f conftest.err conftest.$ac_objext \
9067      conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
9069fi
9070echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9071echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9072if test $ac_cv_lib_svld_dlopen = yes; then
9073  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9074else
9075  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9076echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9077if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9078  echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080  ac_check_lib_save_LIBS=$LIBS
9081LIBS="-ldld  $LIBS"
9082cat >conftest.$ac_ext <<_ACEOF
9083/* confdefs.h.  */
9084_ACEOF
9085cat confdefs.h >>conftest.$ac_ext
9086cat >>conftest.$ac_ext <<_ACEOF
9087/* end confdefs.h.  */
9088
9089/* Override any gcc2 internal prototype to avoid an error.  */
9090#ifdef __cplusplus
9091extern "C"
9092#endif
9093/* We use char because int might match the return type of a gcc2
9094   builtin and then its argument prototype would still apply.  */
9095char dld_link ();
9096int
9097main ()
9098{
9099dld_link ();
9100  ;
9101  return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext conftest$ac_exeext
9105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106  (eval $ac_link) 2>conftest.er1
9107  ac_status=$?
9108  grep -v '^ *+' conftest.er1 >conftest.err
9109  rm -f conftest.er1
9110  cat conftest.err >&5
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); } &&
9113	 { ac_try='test -z "$ac_c_werror_flag"
9114			 || test ! -s conftest.err'
9115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116  (eval $ac_try) 2>&5
9117  ac_status=$?
9118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); }; } &&
9120	 { ac_try='test -s conftest$ac_exeext'
9121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122  (eval $ac_try) 2>&5
9123  ac_status=$?
9124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125  (exit $ac_status); }; }; then
9126  ac_cv_lib_dld_dld_link=yes
9127else
9128  echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131ac_cv_lib_dld_dld_link=no
9132fi
9133rm -f conftest.err conftest.$ac_objext \
9134      conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9138echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9139if test $ac_cv_lib_dld_dld_link = yes; then
9140  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9141fi
9142
9143
9144fi
9145
9146
9147fi
9148
9149
9150fi
9151
9152
9153fi
9154
9155
9156fi
9157
9158    ;;
9159  esac
9160
9161  if test "x$lt_cv_dlopen" != xno; then
9162    enable_dlopen=yes
9163  else
9164    enable_dlopen=no
9165  fi
9166
9167  case $lt_cv_dlopen in
9168  dlopen)
9169    save_CPPFLAGS="$CPPFLAGS"
9170    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9171
9172    save_LDFLAGS="$LDFLAGS"
9173    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9174
9175    save_LIBS="$LIBS"
9176    LIBS="$lt_cv_dlopen_libs $LIBS"
9177
9178    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9179echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9180if test "${lt_cv_dlopen_self+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  	  if test "$cross_compiling" = yes; then :
9184  lt_cv_dlopen_self=cross
9185else
9186  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187  lt_status=$lt_dlunknown
9188  cat > conftest.$ac_ext <<EOF
9189#line 9189 "configure"
9190#include "confdefs.h"
9191
9192#if HAVE_DLFCN_H
9193#include <dlfcn.h>
9194#endif
9195
9196#include <stdio.h>
9197
9198#ifdef RTLD_GLOBAL
9199#  define LT_DLGLOBAL		RTLD_GLOBAL
9200#else
9201#  ifdef DL_GLOBAL
9202#    define LT_DLGLOBAL		DL_GLOBAL
9203#  else
9204#    define LT_DLGLOBAL		0
9205#  endif
9206#endif
9207
9208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209   find out it does not work in some platform. */
9210#ifndef LT_DLLAZY_OR_NOW
9211#  ifdef RTLD_LAZY
9212#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9213#  else
9214#    ifdef DL_LAZY
9215#      define LT_DLLAZY_OR_NOW		DL_LAZY
9216#    else
9217#      ifdef RTLD_NOW
9218#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9219#      else
9220#        ifdef DL_NOW
9221#          define LT_DLLAZY_OR_NOW	DL_NOW
9222#        else
9223#          define LT_DLLAZY_OR_NOW	0
9224#        endif
9225#      endif
9226#    endif
9227#  endif
9228#endif
9229
9230#ifdef __cplusplus
9231extern "C" void exit (int);
9232#endif
9233
9234void fnord() { int i=42;}
9235int main ()
9236{
9237  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238  int status = $lt_dlunknown;
9239
9240  if (self)
9241    {
9242      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9243      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244      /* dlclose (self); */
9245    }
9246  else
9247    puts (dlerror ());
9248
9249    exit (status);
9250}
9251EOF
9252  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253  (eval $ac_link) 2>&5
9254  ac_status=$?
9255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257    (./conftest; exit; ) >&5 2>/dev/null
9258    lt_status=$?
9259    case x$lt_status in
9260      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9261      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9262      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9263    esac
9264  else :
9265    # compilation failed
9266    lt_cv_dlopen_self=no
9267  fi
9268fi
9269rm -fr conftest*
9270
9271
9272fi
9273echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9274echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9275
9276    if test "x$lt_cv_dlopen_self" = xyes; then
9277      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9278      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9279echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9280if test "${lt_cv_dlopen_self_static+set}" = set; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282else
9283  	  if test "$cross_compiling" = yes; then :
9284  lt_cv_dlopen_self_static=cross
9285else
9286  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9287  lt_status=$lt_dlunknown
9288  cat > conftest.$ac_ext <<EOF
9289#line 9289 "configure"
9290#include "confdefs.h"
9291
9292#if HAVE_DLFCN_H
9293#include <dlfcn.h>
9294#endif
9295
9296#include <stdio.h>
9297
9298#ifdef RTLD_GLOBAL
9299#  define LT_DLGLOBAL		RTLD_GLOBAL
9300#else
9301#  ifdef DL_GLOBAL
9302#    define LT_DLGLOBAL		DL_GLOBAL
9303#  else
9304#    define LT_DLGLOBAL		0
9305#  endif
9306#endif
9307
9308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9309   find out it does not work in some platform. */
9310#ifndef LT_DLLAZY_OR_NOW
9311#  ifdef RTLD_LAZY
9312#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9313#  else
9314#    ifdef DL_LAZY
9315#      define LT_DLLAZY_OR_NOW		DL_LAZY
9316#    else
9317#      ifdef RTLD_NOW
9318#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9319#      else
9320#        ifdef DL_NOW
9321#          define LT_DLLAZY_OR_NOW	DL_NOW
9322#        else
9323#          define LT_DLLAZY_OR_NOW	0
9324#        endif
9325#      endif
9326#    endif
9327#  endif
9328#endif
9329
9330#ifdef __cplusplus
9331extern "C" void exit (int);
9332#endif
9333
9334void fnord() { int i=42;}
9335int main ()
9336{
9337  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9338  int status = $lt_dlunknown;
9339
9340  if (self)
9341    {
9342      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9343      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9344      /* dlclose (self); */
9345    }
9346  else
9347    puts (dlerror ());
9348
9349    exit (status);
9350}
9351EOF
9352  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353  (eval $ac_link) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9357    (./conftest; exit; ) >&5 2>/dev/null
9358    lt_status=$?
9359    case x$lt_status in
9360      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9361      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9362      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9363    esac
9364  else :
9365    # compilation failed
9366    lt_cv_dlopen_self_static=no
9367  fi
9368fi
9369rm -fr conftest*
9370
9371
9372fi
9373echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9374echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9375    fi
9376
9377    CPPFLAGS="$save_CPPFLAGS"
9378    LDFLAGS="$save_LDFLAGS"
9379    LIBS="$save_LIBS"
9380    ;;
9381  esac
9382
9383  case $lt_cv_dlopen_self in
9384  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9385  *) enable_dlopen_self=unknown ;;
9386  esac
9387
9388  case $lt_cv_dlopen_self_static in
9389  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9390  *) enable_dlopen_self_static=unknown ;;
9391  esac
9392fi
9393
9394
9395# Report which library types will actually be built
9396echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9398echo "$as_me:$LINENO: result: $can_build_shared" >&5
9399echo "${ECHO_T}$can_build_shared" >&6
9400
9401echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9403test "$can_build_shared" = "no" && enable_shared=no
9404
9405# On AIX, shared libraries and static libraries use the same namespace, and
9406# are all built from PIC.
9407case $host_os in
9408aix3*)
9409  test "$enable_shared" = yes && enable_static=no
9410  if test -n "$RANLIB"; then
9411    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9412    postinstall_cmds='$RANLIB $lib'
9413  fi
9414  ;;
9415
9416aix4* | aix5*)
9417  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9418    test "$enable_shared" = yes && enable_static=no
9419  fi
9420    ;;
9421esac
9422echo "$as_me:$LINENO: result: $enable_shared" >&5
9423echo "${ECHO_T}$enable_shared" >&6
9424
9425echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9427# Make sure either enable_shared or enable_static is yes.
9428test "$enable_shared" = yes || enable_static=yes
9429echo "$as_me:$LINENO: result: $enable_static" >&5
9430echo "${ECHO_T}$enable_static" >&6
9431
9432# The else clause should only fire when bootstrapping the
9433# libtool distribution, otherwise you forgot to ship ltmain.sh
9434# with your package, and you will get complaints that there are
9435# no rules to generate ltmain.sh.
9436if test -f "$ltmain"; then
9437  # See if we are running on zsh, and set the options which allow our commands through
9438  # without removal of \ escapes.
9439  if test -n "${ZSH_VERSION+set}" ; then
9440    setopt NO_GLOB_SUBST
9441  fi
9442  # Now quote all the things that may contain metacharacters while being
9443  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9444  # variables and quote the copies for generation of the libtool script.
9445  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9446    SED SHELL STRIP \
9447    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9448    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9449    deplibs_check_method reload_flag reload_cmds need_locks \
9450    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9451    lt_cv_sys_global_symbol_to_c_name_address \
9452    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9453    old_postinstall_cmds old_postuninstall_cmds \
9454    compiler \
9455    CC \
9456    LD \
9457    lt_prog_compiler_wl \
9458    lt_prog_compiler_pic \
9459    lt_prog_compiler_static \
9460    lt_prog_compiler_no_builtin_flag \
9461    export_dynamic_flag_spec \
9462    thread_safe_flag_spec \
9463    whole_archive_flag_spec \
9464    enable_shared_with_static_runtimes \
9465    old_archive_cmds \
9466    old_archive_from_new_cmds \
9467    predep_objects \
9468    postdep_objects \
9469    predeps \
9470    postdeps \
9471    compiler_lib_search_path \
9472    archive_cmds \
9473    archive_expsym_cmds \
9474    postinstall_cmds \
9475    postuninstall_cmds \
9476    old_archive_from_expsyms_cmds \
9477    allow_undefined_flag \
9478    no_undefined_flag \
9479    export_symbols_cmds \
9480    hardcode_libdir_flag_spec \
9481    hardcode_libdir_flag_spec_ld \
9482    hardcode_libdir_separator \
9483    hardcode_automatic \
9484    module_cmds \
9485    module_expsym_cmds \
9486    lt_cv_prog_compiler_c_o \
9487    exclude_expsyms \
9488    include_expsyms; do
9489
9490    case $var in
9491    old_archive_cmds | \
9492    old_archive_from_new_cmds | \
9493    archive_cmds | \
9494    archive_expsym_cmds | \
9495    module_cmds | \
9496    module_expsym_cmds | \
9497    old_archive_from_expsyms_cmds | \
9498    export_symbols_cmds | \
9499    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9500    postinstall_cmds | postuninstall_cmds | \
9501    old_postinstall_cmds | old_postuninstall_cmds | \
9502    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9503      # Double-quote double-evaled strings.
9504      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9505      ;;
9506    *)
9507      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9508      ;;
9509    esac
9510  done
9511
9512  case $lt_echo in
9513  *'\$0 --fallback-echo"')
9514    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9515    ;;
9516  esac
9517
9518cfgfile="${ofile}T"
9519  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9520  $rm -f "$cfgfile"
9521  { echo "$as_me:$LINENO: creating $ofile" >&5
9522echo "$as_me: creating $ofile" >&6;}
9523
9524  cat <<__EOF__ >> "$cfgfile"
9525#! $SHELL
9526
9527# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9528# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9529# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9530#
9531# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9532# Free Software Foundation, Inc.
9533#
9534# This file is part of GNU Libtool:
9535# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9536#
9537# This program is free software; you can redistribute it and/or modify
9538# it under the terms of the GNU General Public License as published by
9539# the Free Software Foundation; either version 2 of the License, or
9540# (at your option) any later version.
9541#
9542# This program is distributed in the hope that it will be useful, but
9543# WITHOUT ANY WARRANTY; without even the implied warranty of
9544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9545# General Public License for more details.
9546#
9547# You should have received a copy of the GNU General Public License
9548# along with this program; if not, write to the Free Software
9549# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9550#
9551# As a special exception to the GNU General Public License, if you
9552# distribute this file as part of a program that contains a
9553# configuration script generated by Autoconf, you may include it under
9554# the same distribution terms that you use for the rest of that program.
9555
9556# A sed program that does not truncate output.
9557SED=$lt_SED
9558
9559# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9560Xsed="$SED -e 1s/^X//"
9561
9562# The HP-UX ksh and POSIX shell print the target directory to stdout
9563# if CDPATH is set.
9564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9565
9566# The names of the tagged configurations supported by this script.
9567available_tags=
9568
9569# ### BEGIN LIBTOOL CONFIG
9570
9571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9572
9573# Shell to use when invoking shell scripts.
9574SHELL=$lt_SHELL
9575
9576# Whether or not to build shared libraries.
9577build_libtool_libs=$enable_shared
9578
9579# Whether or not to build static libraries.
9580build_old_libs=$enable_static
9581
9582# Whether or not to add -lc for building shared libraries.
9583build_libtool_need_lc=$archive_cmds_need_lc
9584
9585# Whether or not to disallow shared libs when runtime libs are static
9586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9587
9588# Whether or not to optimize for fast installation.
9589fast_install=$enable_fast_install
9590
9591# The host system.
9592host_alias=$host_alias
9593host=$host
9594host_os=$host_os
9595
9596# The build system.
9597build_alias=$build_alias
9598build=$build
9599build_os=$build_os
9600
9601# An echo program that does not interpret backslashes.
9602echo=$lt_echo
9603
9604# The archiver.
9605AR=$lt_AR
9606AR_FLAGS=$lt_AR_FLAGS
9607
9608# A C compiler.
9609LTCC=$lt_LTCC
9610
9611# LTCC compiler flags.
9612LTCFLAGS=$lt_LTCFLAGS
9613
9614# A language-specific compiler.
9615CC=$lt_compiler
9616
9617# Is the compiler the GNU C compiler?
9618with_gcc=$GCC
9619
9620# An ERE matcher.
9621EGREP=$lt_EGREP
9622
9623# The linker used to build libraries.
9624LD=$lt_LD
9625
9626# Whether we need hard or soft links.
9627LN_S=$lt_LN_S
9628
9629# A BSD-compatible nm program.
9630NM=$lt_NM
9631
9632# A symbol stripping program
9633STRIP=$lt_STRIP
9634
9635# Used to examine libraries when file_magic_cmd begins "file"
9636MAGIC_CMD=$MAGIC_CMD
9637
9638# Used on cygwin: DLL creation program.
9639DLLTOOL="$DLLTOOL"
9640
9641# Used on cygwin: object dumper.
9642OBJDUMP="$OBJDUMP"
9643
9644# Used on cygwin: assembler.
9645AS="$AS"
9646
9647# The name of the directory that contains temporary libtool files.
9648objdir=$objdir
9649
9650# How to create reloadable object files.
9651reload_flag=$lt_reload_flag
9652reload_cmds=$lt_reload_cmds
9653
9654# How to pass a linker flag through the compiler.
9655wl=$lt_lt_prog_compiler_wl
9656
9657# Object file suffix (normally "o").
9658objext="$ac_objext"
9659
9660# Old archive suffix (normally "a").
9661libext="$libext"
9662
9663# Shared library suffix (normally ".so").
9664shrext_cmds='$shrext_cmds'
9665
9666# Executable file suffix (normally "").
9667exeext="$exeext"
9668
9669# Additional compiler flags for building library objects.
9670pic_flag=$lt_lt_prog_compiler_pic
9671pic_mode=$pic_mode
9672
9673# What is the maximum length of a command?
9674max_cmd_len=$lt_cv_sys_max_cmd_len
9675
9676# Does compiler simultaneously support -c and -o options?
9677compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9678
9679# Must we lock files when doing compilation?
9680need_locks=$lt_need_locks
9681
9682# Do we need the lib prefix for modules?
9683need_lib_prefix=$need_lib_prefix
9684
9685# Do we need a version for libraries?
9686need_version=$need_version
9687
9688# Whether dlopen is supported.
9689dlopen_support=$enable_dlopen
9690
9691# Whether dlopen of programs is supported.
9692dlopen_self=$enable_dlopen_self
9693
9694# Whether dlopen of statically linked programs is supported.
9695dlopen_self_static=$enable_dlopen_self_static
9696
9697# Compiler flag to prevent dynamic linking.
9698link_static_flag=$lt_lt_prog_compiler_static
9699
9700# Compiler flag to turn off builtin functions.
9701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9702
9703# Compiler flag to allow reflexive dlopens.
9704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9705
9706# Compiler flag to generate shared objects directly from archives.
9707whole_archive_flag_spec=$lt_whole_archive_flag_spec
9708
9709# Compiler flag to generate thread-safe objects.
9710thread_safe_flag_spec=$lt_thread_safe_flag_spec
9711
9712# Library versioning type.
9713version_type=$version_type
9714
9715# Format of library name prefix.
9716libname_spec=$lt_libname_spec
9717
9718# List of archive names.  First name is the real one, the rest are links.
9719# The last name is the one that the linker finds with -lNAME.
9720library_names_spec=$lt_library_names_spec
9721
9722# The coded name of the library, if different from the real name.
9723soname_spec=$lt_soname_spec
9724
9725# Commands used to build and install an old-style archive.
9726RANLIB=$lt_RANLIB
9727old_archive_cmds=$lt_old_archive_cmds
9728old_postinstall_cmds=$lt_old_postinstall_cmds
9729old_postuninstall_cmds=$lt_old_postuninstall_cmds
9730
9731# Create an old-style archive from a shared archive.
9732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9733
9734# Create a temporary old-style archive to link instead of a shared archive.
9735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9736
9737# Commands used to build and install a shared archive.
9738archive_cmds=$lt_archive_cmds
9739archive_expsym_cmds=$lt_archive_expsym_cmds
9740postinstall_cmds=$lt_postinstall_cmds
9741postuninstall_cmds=$lt_postuninstall_cmds
9742
9743# Commands used to build a loadable module (assumed same as above if empty)
9744module_cmds=$lt_module_cmds
9745module_expsym_cmds=$lt_module_expsym_cmds
9746
9747# Commands to strip libraries.
9748old_striplib=$lt_old_striplib
9749striplib=$lt_striplib
9750
9751# Dependencies to place before the objects being linked to create a
9752# shared library.
9753predep_objects=$lt_predep_objects
9754
9755# Dependencies to place after the objects being linked to create a
9756# shared library.
9757postdep_objects=$lt_postdep_objects
9758
9759# Dependencies to place before the objects being linked to create a
9760# shared library.
9761predeps=$lt_predeps
9762
9763# Dependencies to place after the objects being linked to create a
9764# shared library.
9765postdeps=$lt_postdeps
9766
9767# The library search path used internally by the compiler when linking
9768# a shared library.
9769compiler_lib_search_path=$lt_compiler_lib_search_path
9770
9771# Method to check whether dependent libraries are shared objects.
9772deplibs_check_method=$lt_deplibs_check_method
9773
9774# Command to use when deplibs_check_method == file_magic.
9775file_magic_cmd=$lt_file_magic_cmd
9776
9777# Flag that allows shared libraries with undefined symbols to be built.
9778allow_undefined_flag=$lt_allow_undefined_flag
9779
9780# Flag that forces no undefined symbols.
9781no_undefined_flag=$lt_no_undefined_flag
9782
9783# Commands used to finish a libtool library installation in a directory.
9784finish_cmds=$lt_finish_cmds
9785
9786# Same as above, but a single script fragment to be evaled but not shown.
9787finish_eval=$lt_finish_eval
9788
9789# Take the output of nm and produce a listing of raw symbols and C names.
9790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9791
9792# Transform the output of nm in a proper C declaration
9793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9794
9795# Transform the output of nm in a C name address pair
9796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9797
9798# This is the shared library runtime path variable.
9799runpath_var=$runpath_var
9800
9801# This is the shared library path variable.
9802shlibpath_var=$shlibpath_var
9803
9804# Is shlibpath searched before the hard-coded library search path?
9805shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9806
9807# How to hardcode a shared library path into an executable.
9808hardcode_action=$hardcode_action
9809
9810# Whether we should hardcode library paths into libraries.
9811hardcode_into_libs=$hardcode_into_libs
9812
9813# Flag to hardcode \$libdir into a binary during linking.
9814# This must work even if \$libdir does not exist.
9815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9816
9817# If ld is used when linking, flag to hardcode \$libdir into
9818# a binary during linking. This must work even if \$libdir does
9819# not exist.
9820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9821
9822# Whether we need a single -rpath flag with a separated argument.
9823hardcode_libdir_separator=$lt_hardcode_libdir_separator
9824
9825# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9826# resulting binary.
9827hardcode_direct=$hardcode_direct
9828
9829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9830# resulting binary.
9831hardcode_minus_L=$hardcode_minus_L
9832
9833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9834# the resulting binary.
9835hardcode_shlibpath_var=$hardcode_shlibpath_var
9836
9837# Set to yes if building a shared library automatically hardcodes DIR into the library
9838# and all subsequent libraries and executables linked against it.
9839hardcode_automatic=$hardcode_automatic
9840
9841# Variables whose values should be saved in libtool wrapper scripts and
9842# restored at relink time.
9843variables_saved_for_relink="$variables_saved_for_relink"
9844
9845# Whether libtool must link a program against all its dependency libraries.
9846link_all_deplibs=$link_all_deplibs
9847
9848# Compile-time system search path for libraries
9849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9850
9851# Run-time system search path for libraries
9852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9853
9854# Fix the shell variable \$srcfile for the compiler.
9855fix_srcfile_path="$fix_srcfile_path"
9856
9857# Set to yes if exported symbols are required.
9858always_export_symbols=$always_export_symbols
9859
9860# The commands to list exported symbols.
9861export_symbols_cmds=$lt_export_symbols_cmds
9862
9863# The commands to extract the exported symbol list from a shared archive.
9864extract_expsyms_cmds=$lt_extract_expsyms_cmds
9865
9866# Symbols that should not be listed in the preloaded symbols.
9867exclude_expsyms=$lt_exclude_expsyms
9868
9869# Symbols that must always be exported.
9870include_expsyms=$lt_include_expsyms
9871
9872# ### END LIBTOOL CONFIG
9873
9874__EOF__
9875
9876
9877  case $host_os in
9878  aix3*)
9879    cat <<\EOF >> "$cfgfile"
9880
9881# AIX sometimes has problems with the GCC collect2 program.  For some
9882# reason, if we set the COLLECT_NAMES environment variable, the problems
9883# vanish in a puff of smoke.
9884if test "X${COLLECT_NAMES+set}" != Xset; then
9885  COLLECT_NAMES=
9886  export COLLECT_NAMES
9887fi
9888EOF
9889    ;;
9890  esac
9891
9892  # We use sed instead of cat because bash on DJGPP gets confused if
9893  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9894  # text mode, it properly converts lines to CR/LF.  This bash problem
9895  # is reportedly fixed, but why not run on old versions too?
9896  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9897
9898  mv -f "$cfgfile" "$ofile" || \
9899    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9900  chmod +x "$ofile"
9901
9902else
9903  # If there is no Makefile yet, we rely on a make rule to execute
9904  # `config.status --recheck' to rerun these tests and create the
9905  # libtool script then.
9906  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9907  if test -f "$ltmain_in"; then
9908    test -f Makefile && make "$ltmain"
9909  fi
9910fi
9911
9912
9913ac_ext=c
9914ac_cpp='$CPP $CPPFLAGS'
9915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9917ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918
9919CC="$lt_save_CC"
9920
9921
9922# Check whether --with-tags or --without-tags was given.
9923if test "${with_tags+set}" = set; then
9924  withval="$with_tags"
9925  tagnames="$withval"
9926fi;
9927
9928if test -f "$ltmain" && test -n "$tagnames"; then
9929  if test ! -f "${ofile}"; then
9930    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9931echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9932  fi
9933
9934  if test -z "$LTCC"; then
9935    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9936    if test -z "$LTCC"; then
9937      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9938echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9939    else
9940      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9941echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9942    fi
9943  fi
9944  if test -z "$LTCFLAGS"; then
9945    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9946  fi
9947
9948  # Extract list of available tagged configurations in $ofile.
9949  # Note that this assumes the entire list is on one line.
9950  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9951
9952  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9953  for tagname in $tagnames; do
9954    IFS="$lt_save_ifs"
9955    # Check whether tagname contains only valid characters
9956    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9957    "") ;;
9958    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9959echo "$as_me: error: invalid tag name: $tagname" >&2;}
9960   { (exit 1); exit 1; }; }
9961	;;
9962    esac
9963
9964    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9965    then
9966      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9967echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9968   { (exit 1); exit 1; }; }
9969    fi
9970
9971    # Update the list of available tags.
9972    if test -n "$tagname"; then
9973      echo appending configuration tag \"$tagname\" to $ofile
9974
9975      case $tagname in
9976      CXX)
9977	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9978	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9979	    (test "X$CXX" != "Xg++"))) ; then
9980	  ac_ext=cc
9981ac_cpp='$CXXCPP $CPPFLAGS'
9982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9985
9986
9987
9988
9989archive_cmds_need_lc_CXX=no
9990allow_undefined_flag_CXX=
9991always_export_symbols_CXX=no
9992archive_expsym_cmds_CXX=
9993export_dynamic_flag_spec_CXX=
9994hardcode_direct_CXX=no
9995hardcode_libdir_flag_spec_CXX=
9996hardcode_libdir_flag_spec_ld_CXX=
9997hardcode_libdir_separator_CXX=
9998hardcode_minus_L_CXX=no
9999hardcode_shlibpath_var_CXX=unsupported
10000hardcode_automatic_CXX=no
10001module_cmds_CXX=
10002module_expsym_cmds_CXX=
10003link_all_deplibs_CXX=unknown
10004old_archive_cmds_CXX=$old_archive_cmds
10005no_undefined_flag_CXX=
10006whole_archive_flag_spec_CXX=
10007enable_shared_with_static_runtimes_CXX=no
10008
10009# Dependencies to place before and after the object being linked:
10010predep_objects_CXX=
10011postdep_objects_CXX=
10012predeps_CXX=
10013postdeps_CXX=
10014compiler_lib_search_path_CXX=
10015
10016# Source file extension for C++ test sources.
10017ac_ext=cpp
10018
10019# Object file extension for compiled C++ test sources.
10020objext=o
10021objext_CXX=$objext
10022
10023# Code to be used in simple compile tests
10024lt_simple_compile_test_code="int some_variable = 0;\n"
10025
10026# Code to be used in simple link tests
10027lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10028
10029# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10030
10031# If no C compiler was specified, use CC.
10032LTCC=${LTCC-"$CC"}
10033
10034# If no C compiler flags were specified, use CFLAGS.
10035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10036
10037# Allow CC to be a program name with arguments.
10038compiler=$CC
10039
10040
10041# save warnings/boilerplate of simple test code
10042ac_outfile=conftest.$ac_objext
10043printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10045_lt_compiler_boilerplate=`cat conftest.err`
10046$rm conftest*
10047
10048ac_outfile=conftest.$ac_objext
10049printf "$lt_simple_link_test_code" >conftest.$ac_ext
10050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10051_lt_linker_boilerplate=`cat conftest.err`
10052$rm conftest*
10053
10054
10055# Allow CC to be a program name with arguments.
10056lt_save_CC=$CC
10057lt_save_LD=$LD
10058lt_save_GCC=$GCC
10059GCC=$GXX
10060lt_save_with_gnu_ld=$with_gnu_ld
10061lt_save_path_LD=$lt_cv_path_LD
10062if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10063  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10064else
10065  $as_unset lt_cv_prog_gnu_ld
10066fi
10067if test -n "${lt_cv_path_LDCXX+set}"; then
10068  lt_cv_path_LD=$lt_cv_path_LDCXX
10069else
10070  $as_unset lt_cv_path_LD
10071fi
10072test -z "${LDCXX+set}" || LD=$LDCXX
10073CC=${CXX-"c++"}
10074compiler=$CC
10075compiler_CXX=$CC
10076for cc_temp in $compiler""; do
10077  case $cc_temp in
10078    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10079    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10080    \-*) ;;
10081    *) break;;
10082  esac
10083done
10084cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10085
10086
10087# We don't want -fno-exception wen compiling C++ code, so set the
10088# no_builtin_flag separately
10089if test "$GXX" = yes; then
10090  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10091else
10092  lt_prog_compiler_no_builtin_flag_CXX=
10093fi
10094
10095if test "$GXX" = yes; then
10096  # Set up default GNU C++ configuration
10097
10098
10099# Check whether --with-gnu-ld or --without-gnu-ld was given.
10100if test "${with_gnu_ld+set}" = set; then
10101  withval="$with_gnu_ld"
10102  test "$withval" = no || with_gnu_ld=yes
10103else
10104  with_gnu_ld=no
10105fi;
10106ac_prog=ld
10107if test "$GCC" = yes; then
10108  # Check if gcc -print-prog-name=ld gives a path.
10109  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10110echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10111  case $host in
10112  *-*-mingw*)
10113    # gcc leaves a trailing carriage return which upsets mingw
10114    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10115  *)
10116    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10117  esac
10118  case $ac_prog in
10119    # Accept absolute paths.
10120    [\\/]* | ?:[\\/]*)
10121      re_direlt='/[^/][^/]*/\.\./'
10122      # Canonicalize the pathname of ld
10123      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10124      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10125	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10126      done
10127      test -z "$LD" && LD="$ac_prog"
10128      ;;
10129  "")
10130    # If it fails, then pretend we aren't using GCC.
10131    ac_prog=ld
10132    ;;
10133  *)
10134    # If it is relative, then search for the first ld in PATH.
10135    with_gnu_ld=unknown
10136    ;;
10137  esac
10138elif test "$with_gnu_ld" = yes; then
10139  echo "$as_me:$LINENO: checking for GNU ld" >&5
10140echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10141else
10142  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10143echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10144fi
10145if test "${lt_cv_path_LD+set}" = set; then
10146  echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148  if test -z "$LD"; then
10149  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10150  for ac_dir in $PATH; do
10151    IFS="$lt_save_ifs"
10152    test -z "$ac_dir" && ac_dir=.
10153    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10154      lt_cv_path_LD="$ac_dir/$ac_prog"
10155      # Check to see if the program is GNU ld.  I'd rather use --version,
10156      # but apparently some variants of GNU ld only accept -v.
10157      # Break only if it was the GNU/non-GNU ld that we prefer.
10158      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10159      *GNU* | *'with BFD'*)
10160	test "$with_gnu_ld" != no && break
10161	;;
10162      *)
10163	test "$with_gnu_ld" != yes && break
10164	;;
10165      esac
10166    fi
10167  done
10168  IFS="$lt_save_ifs"
10169else
10170  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10171fi
10172fi
10173
10174LD="$lt_cv_path_LD"
10175if test -n "$LD"; then
10176  echo "$as_me:$LINENO: result: $LD" >&5
10177echo "${ECHO_T}$LD" >&6
10178else
10179  echo "$as_me:$LINENO: result: no" >&5
10180echo "${ECHO_T}no" >&6
10181fi
10182test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10183echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10184   { (exit 1); exit 1; }; }
10185echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10186echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10187if test "${lt_cv_prog_gnu_ld+set}" = set; then
10188  echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10191case `$LD -v 2>&1 </dev/null` in
10192*GNU* | *'with BFD'*)
10193  lt_cv_prog_gnu_ld=yes
10194  ;;
10195*)
10196  lt_cv_prog_gnu_ld=no
10197  ;;
10198esac
10199fi
10200echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10201echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10202with_gnu_ld=$lt_cv_prog_gnu_ld
10203
10204
10205
10206  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10207  # archiving commands below assume that GNU ld is being used.
10208  if test "$with_gnu_ld" = yes; then
10209    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10211
10212    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10213    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10214
10215    # If archive_cmds runs LD, not CC, wlarc should be empty
10216    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10217    #     investigate it a little bit more. (MM)
10218    wlarc='${wl}'
10219
10220    # ancient GNU ld didn't support --whole-archive et. al.
10221    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10222	grep 'no-whole-archive' > /dev/null; then
10223      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10224    else
10225      whole_archive_flag_spec_CXX=
10226    fi
10227  else
10228    with_gnu_ld=no
10229    wlarc=
10230
10231    # A generic and very simple default shared library creation
10232    # command for GNU C++ for the case where it uses the native
10233    # linker, instead of GNU ld.  If possible, this setting should
10234    # overridden to take advantage of the native linker features on
10235    # the platform it is being used on.
10236    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10237  fi
10238
10239  # Commands to make compiler produce verbose output that lists
10240  # what "hidden" libraries, object files and flags are used when
10241  # linking a shared library.
10242  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10243
10244else
10245  GXX=no
10246  with_gnu_ld=no
10247  wlarc=
10248fi
10249
10250# PORTME: fill in a description of your system's C++ link characteristics
10251echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10253ld_shlibs_CXX=yes
10254case $host_os in
10255  aix3*)
10256    # FIXME: insert proper C++ library support
10257    ld_shlibs_CXX=no
10258    ;;
10259  aix4* | aix5*)
10260    if test "$host_cpu" = ia64; then
10261      # On IA64, the linker does run time linking by default, so we don't
10262      # have to do anything special.
10263      aix_use_runtimelinking=no
10264      exp_sym_flag='-Bexport'
10265      no_entry_flag=""
10266    else
10267      aix_use_runtimelinking=no
10268
10269      # Test if we are trying to use run time linking or normal
10270      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10271      # need to do runtime linking.
10272      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10273	for ld_flag in $LDFLAGS; do
10274	  case $ld_flag in
10275	  *-brtl*)
10276	    aix_use_runtimelinking=yes
10277	    break
10278	    ;;
10279	  esac
10280	done
10281	;;
10282      esac
10283
10284      exp_sym_flag='-bexport'
10285      no_entry_flag='-bnoentry'
10286    fi
10287
10288    # When large executables or shared objects are built, AIX ld can
10289    # have problems creating the table of contents.  If linking a library
10290    # or program results in "error TOC overflow" add -mminimal-toc to
10291    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10292    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10293
10294    archive_cmds_CXX=''
10295    hardcode_direct_CXX=yes
10296    hardcode_libdir_separator_CXX=':'
10297    link_all_deplibs_CXX=yes
10298
10299    if test "$GXX" = yes; then
10300      case $host_os in aix4.[012]|aix4.[012].*)
10301      # We only want to do this on AIX 4.2 and lower, the check
10302      # below for broken collect2 doesn't work under 4.3+
10303	collect2name=`${CC} -print-prog-name=collect2`
10304	if test -f "$collect2name" && \
10305	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10306	then
10307	  # We have reworked collect2
10308	  hardcode_direct_CXX=yes
10309	else
10310	  # We have old collect2
10311	  hardcode_direct_CXX=unsupported
10312	  # It fails to find uninstalled libraries when the uninstalled
10313	  # path is not listed in the libpath.  Setting hardcode_minus_L
10314	  # to unsupported forces relinking
10315	  hardcode_minus_L_CXX=yes
10316	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10317	  hardcode_libdir_separator_CXX=
10318	fi
10319	;;
10320      esac
10321      shared_flag='-shared'
10322      if test "$aix_use_runtimelinking" = yes; then
10323	shared_flag="$shared_flag "'${wl}-G'
10324      fi
10325    else
10326      # not using gcc
10327      if test "$host_cpu" = ia64; then
10328	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10329	# chokes on -Wl,-G. The following line is correct:
10330	shared_flag='-G'
10331      else
10332	if test "$aix_use_runtimelinking" = yes; then
10333	  shared_flag='${wl}-G'
10334	else
10335	  shared_flag='${wl}-bM:SRE'
10336	fi
10337      fi
10338    fi
10339
10340    # It seems that -bexpall does not export symbols beginning with
10341    # underscore (_), so it is better to generate a list of symbols to export.
10342    always_export_symbols_CXX=yes
10343    if test "$aix_use_runtimelinking" = yes; then
10344      # Warning - without using the other runtime loading flags (-brtl),
10345      # -berok will link without error, but may produce a broken library.
10346      allow_undefined_flag_CXX='-berok'
10347      # Determine the default libpath from the value encoded in an empty executable.
10348      cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h.  */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h.  */
10354
10355int
10356main ()
10357{
10358
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365  (eval $ac_link) 2>conftest.er1
10366  ac_status=$?
10367  grep -v '^ *+' conftest.er1 >conftest.err
10368  rm -f conftest.er1
10369  cat conftest.err >&5
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); } &&
10372	 { ac_try='test -z "$ac_cxx_werror_flag"
10373			 || test ! -s conftest.err'
10374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375  (eval $ac_try) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; } &&
10379	 { ac_try='test -s conftest$ac_exeext'
10380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381  (eval $ac_try) 2>&5
10382  ac_status=$?
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); }; }; then
10385
10386aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10387}'`
10388# Check for a 64-bit object if we didn't find anything.
10389if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10390}'`; fi
10391else
10392  echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395fi
10396rm -f conftest.err conftest.$ac_objext \
10397      conftest$ac_exeext conftest.$ac_ext
10398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10399
10400      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10401
10402      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10403     else
10404      if test "$host_cpu" = ia64; then
10405	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10406	allow_undefined_flag_CXX="-z nodefs"
10407	archive_expsym_cmds_CXX="\$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"
10408      else
10409	# Determine the default libpath from the value encoded in an empty executable.
10410	cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h.  */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h.  */
10416
10417int
10418main ()
10419{
10420
10421  ;
10422  return 0;
10423}
10424_ACEOF
10425rm -f conftest.$ac_objext conftest$ac_exeext
10426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10427  (eval $ac_link) 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } &&
10434	 { ac_try='test -z "$ac_cxx_werror_flag"
10435			 || test ! -s conftest.err'
10436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437  (eval $ac_try) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); }; } &&
10441	 { ac_try='test -s conftest$ac_exeext'
10442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443  (eval $ac_try) 2>&5
10444  ac_status=$?
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); }; }; then
10447
10448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10449}'`
10450# Check for a 64-bit object if we didn't find anything.
10451if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10452}'`; fi
10453else
10454  echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457fi
10458rm -f conftest.err conftest.$ac_objext \
10459      conftest$ac_exeext conftest.$ac_ext
10460if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10461
10462	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10463	# Warning - without using the other run time loading flags,
10464	# -berok will link without error, but may produce a broken library.
10465	no_undefined_flag_CXX=' ${wl}-bernotok'
10466	allow_undefined_flag_CXX=' ${wl}-berok'
10467	# Exported symbols can be pulled into shared objects from archives
10468	whole_archive_flag_spec_CXX='$convenience'
10469	archive_cmds_need_lc_CXX=yes
10470	# This is similar to how AIX traditionally builds its shared libraries.
10471	archive_expsym_cmds_CXX="\$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'
10472      fi
10473    fi
10474    ;;
10475
10476  beos*)
10477    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10478      allow_undefined_flag_CXX=unsupported
10479      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10480      # support --undefined.  This deserves some investigation.  FIXME
10481      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10482    else
10483      ld_shlibs_CXX=no
10484    fi
10485    ;;
10486
10487  chorus*)
10488    case $cc_basename in
10489      *)
10490	# FIXME: insert proper C++ library support
10491	ld_shlibs_CXX=no
10492	;;
10493    esac
10494    ;;
10495
10496  cygwin* | mingw* | pw32*)
10497    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10498    # as there is no search path for DLLs.
10499    hardcode_libdir_flag_spec_CXX='-L$libdir'
10500    allow_undefined_flag_CXX=unsupported
10501    always_export_symbols_CXX=no
10502    enable_shared_with_static_runtimes_CXX=yes
10503
10504    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10505      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10506      # If the export-symbols file already is a .def file (1st line
10507      # is EXPORTS), use it as is; otherwise, prepend...
10508      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10509	cp $export_symbols $output_objdir/$soname.def;
10510      else
10511	echo EXPORTS > $output_objdir/$soname.def;
10512	cat $export_symbols >> $output_objdir/$soname.def;
10513      fi~
10514      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10515    else
10516      ld_shlibs_CXX=no
10517    fi
10518  ;;
10519      darwin* | rhapsody*)
10520        case $host_os in
10521        rhapsody* | darwin1.[012])
10522         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10523         ;;
10524       *) # Darwin 1.3 on
10525         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10526           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10527         else
10528           case ${MACOSX_DEPLOYMENT_TARGET} in
10529             10.[012])
10530               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10531               ;;
10532             10.*)
10533               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10534               ;;
10535           esac
10536         fi
10537         ;;
10538        esac
10539      archive_cmds_need_lc_CXX=no
10540      hardcode_direct_CXX=no
10541      hardcode_automatic_CXX=yes
10542      hardcode_shlibpath_var_CXX=unsupported
10543      whole_archive_flag_spec_CXX=''
10544      link_all_deplibs_CXX=yes
10545
10546    if test "$GXX" = yes ; then
10547      lt_int_apple_cc_single_mod=no
10548      output_verbose_link_cmd='echo'
10549      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10550       lt_int_apple_cc_single_mod=yes
10551      fi
10552      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10553       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10554      else
10555          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10556        fi
10557        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10558        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10559          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10560            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10561          else
10562            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10563          fi
10564            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
10565      else
10566      case $cc_basename in
10567        xlc*)
10568         output_verbose_link_cmd='echo'
10569          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10570          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10571          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10572          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10573          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
10574          ;;
10575       *)
10576         ld_shlibs_CXX=no
10577          ;;
10578      esac
10579      fi
10580        ;;
10581
10582  dgux*)
10583    case $cc_basename in
10584      ec++*)
10585	# FIXME: insert proper C++ library support
10586	ld_shlibs_CXX=no
10587	;;
10588      ghcx*)
10589	# Green Hills C++ Compiler
10590	# FIXME: insert proper C++ library support
10591	ld_shlibs_CXX=no
10592	;;
10593      *)
10594	# FIXME: insert proper C++ library support
10595	ld_shlibs_CXX=no
10596	;;
10597    esac
10598    ;;
10599  freebsd[12]*)
10600    # C++ shared libraries reported to be fairly broken before switch to ELF
10601    ld_shlibs_CXX=no
10602    ;;
10603  freebsd-elf*)
10604    archive_cmds_need_lc_CXX=no
10605    ;;
10606  freebsd* | kfreebsd*-gnu | dragonfly*)
10607    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10608    # conventions
10609    ld_shlibs_CXX=yes
10610    ;;
10611  gnu*)
10612    ;;
10613  hpux9*)
10614    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10615    hardcode_libdir_separator_CXX=:
10616    export_dynamic_flag_spec_CXX='${wl}-E'
10617    hardcode_direct_CXX=yes
10618    hardcode_minus_L_CXX=yes # Not in the search PATH,
10619				# but as the default
10620				# location of the library.
10621
10622    case $cc_basename in
10623    CC*)
10624      # FIXME: insert proper C++ library support
10625      ld_shlibs_CXX=no
10626      ;;
10627    aCC*)
10628      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10629      # Commands to make compiler produce verbose output that lists
10630      # what "hidden" libraries, object files and flags are used when
10631      # linking a shared library.
10632      #
10633      # There doesn't appear to be a way to prevent this compiler from
10634      # explicitly linking system object files so we need to strip them
10635      # from the output so that they don't get included in the library
10636      # dependencies.
10637      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10638      ;;
10639    *)
10640      if test "$GXX" = yes; then
10641        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10642      else
10643        # FIXME: insert proper C++ library support
10644        ld_shlibs_CXX=no
10645      fi
10646      ;;
10647    esac
10648    ;;
10649  hpux10*|hpux11*)
10650    if test $with_gnu_ld = no; then
10651      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10652      hardcode_libdir_separator_CXX=:
10653
10654      case $host_cpu in
10655      hppa*64*|ia64*)
10656	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10657        ;;
10658      *)
10659	export_dynamic_flag_spec_CXX='${wl}-E'
10660        ;;
10661      esac
10662    fi
10663    case $host_cpu in
10664    hppa*64*|ia64*)
10665      hardcode_direct_CXX=no
10666      hardcode_shlibpath_var_CXX=no
10667      ;;
10668    *)
10669      hardcode_direct_CXX=yes
10670      hardcode_minus_L_CXX=yes # Not in the search PATH,
10671					      # but as the default
10672					      # location of the library.
10673      ;;
10674    esac
10675
10676    case $cc_basename in
10677      CC*)
10678	# FIXME: insert proper C++ library support
10679	ld_shlibs_CXX=no
10680	;;
10681      aCC*)
10682	case $host_cpu in
10683	hppa*64*)
10684	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10685	  ;;
10686	ia64*)
10687	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10688	  ;;
10689	*)
10690	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10691	  ;;
10692	esac
10693	# Commands to make compiler produce verbose output that lists
10694	# what "hidden" libraries, object files and flags are used when
10695	# linking a shared library.
10696	#
10697	# There doesn't appear to be a way to prevent this compiler from
10698	# explicitly linking system object files so we need to strip them
10699	# from the output so that they don't get included in the library
10700	# dependencies.
10701	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10702	;;
10703      *)
10704	if test "$GXX" = yes; then
10705	  if test $with_gnu_ld = no; then
10706	    case $host_cpu in
10707	    hppa*64*)
10708	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10709	      ;;
10710	    ia64*)
10711	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10712	      ;;
10713	    *)
10714	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10715	      ;;
10716	    esac
10717	  fi
10718	else
10719	  # FIXME: insert proper C++ library support
10720	  ld_shlibs_CXX=no
10721	fi
10722	;;
10723    esac
10724    ;;
10725  interix3*)
10726    hardcode_direct_CXX=no
10727    hardcode_shlibpath_var_CXX=no
10728    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10729    export_dynamic_flag_spec_CXX='${wl}-E'
10730    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10731    # Instead, shared libraries are loaded at an image base (0x10000000 by
10732    # default) and relocated if they conflict, which is a slow very memory
10733    # consuming and fragmenting process.  To avoid this, we pick a random,
10734    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10735    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10736    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10737    archive_expsym_cmds_CXX='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'
10738    ;;
10739  irix5* | irix6*)
10740    case $cc_basename in
10741      CC*)
10742	# SGI C++
10743	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10744
10745	# Archives containing C++ object files must be created using
10746	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10747	# necessary to make sure instantiated templates are included
10748	# in the archive.
10749	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10750	;;
10751      *)
10752	if test "$GXX" = yes; then
10753	  if test "$with_gnu_ld" = no; then
10754	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10755	  else
10756	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10757	  fi
10758	fi
10759	link_all_deplibs_CXX=yes
10760	;;
10761    esac
10762    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10763    hardcode_libdir_separator_CXX=:
10764    ;;
10765  linux*)
10766    case $cc_basename in
10767      KCC*)
10768	# Kuck and Associates, Inc. (KAI) C++ Compiler
10769
10770	# KCC will only create a shared library if the output file
10771	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10772	# to its proper name (with version) after linking.
10773	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10774	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10775	# Commands to make compiler produce verbose output that lists
10776	# what "hidden" libraries, object files and flags are used when
10777	# linking a shared library.
10778	#
10779	# There doesn't appear to be a way to prevent this compiler from
10780	# explicitly linking system object files so we need to strip them
10781	# from the output so that they don't get included in the library
10782	# dependencies.
10783	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10784
10785	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10786	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10787
10788	# Archives containing C++ object files must be created using
10789	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10790	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10791	;;
10792      icpc*)
10793	# Intel C++
10794	with_gnu_ld=yes
10795	# version 8.0 and above of icpc choke on multiply defined symbols
10796	# if we add $predep_objects and $postdep_objects, however 7.1 and
10797	# earlier do not add the objects themselves.
10798	case `$CC -V 2>&1` in
10799	*"Version 7."*)
10800  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10801  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10802	  ;;
10803	*)  # Version 8.0 or newer
10804	  tmp_idyn=
10805	  case $host_cpu in
10806	    ia64*) tmp_idyn=' -i_dynamic';;
10807	  esac
10808  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10809	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10810	  ;;
10811	esac
10812	archive_cmds_need_lc_CXX=no
10813	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10814	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10815	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10816	;;
10817      pgCC*)
10818        # Portland Group C++ compiler
10819	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10820  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10821
10822	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10823	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10824	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10825        ;;
10826      cxx*)
10827	# Compaq C++
10828	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10830
10831	runpath_var=LD_RUN_PATH
10832	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10833	hardcode_libdir_separator_CXX=:
10834
10835	# Commands to make compiler produce verbose output that lists
10836	# what "hidden" libraries, object files and flags are used when
10837	# linking a shared library.
10838	#
10839	# There doesn't appear to be a way to prevent this compiler from
10840	# explicitly linking system object files so we need to strip them
10841	# from the output so that they don't get included in the library
10842	# dependencies.
10843	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10844	;;
10845    esac
10846    ;;
10847  lynxos*)
10848    # FIXME: insert proper C++ library support
10849    ld_shlibs_CXX=no
10850    ;;
10851  m88k*)
10852    # FIXME: insert proper C++ library support
10853    ld_shlibs_CXX=no
10854    ;;
10855  mvs*)
10856    case $cc_basename in
10857      cxx*)
10858	# FIXME: insert proper C++ library support
10859	ld_shlibs_CXX=no
10860	;;
10861      *)
10862	# FIXME: insert proper C++ library support
10863	ld_shlibs_CXX=no
10864	;;
10865    esac
10866    ;;
10867  netbsd*)
10868    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10869      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10870      wlarc=
10871      hardcode_libdir_flag_spec_CXX='-R$libdir'
10872      hardcode_direct_CXX=yes
10873      hardcode_shlibpath_var_CXX=no
10874    fi
10875    # Workaround some broken pre-1.5 toolchains
10876    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10877    ;;
10878  openbsd2*)
10879    # C++ shared libraries are fairly broken
10880    ld_shlibs_CXX=no
10881    ;;
10882  openbsd*)
10883    hardcode_direct_CXX=yes
10884    hardcode_shlibpath_var_CXX=no
10885    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10886    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10887    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10888      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10889      export_dynamic_flag_spec_CXX='${wl}-E'
10890      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10891    fi
10892    output_verbose_link_cmd='echo'
10893    ;;
10894  osf3*)
10895    case $cc_basename in
10896      KCC*)
10897	# Kuck and Associates, Inc. (KAI) C++ Compiler
10898
10899	# KCC will only create a shared library if the output file
10900	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10901	# to its proper name (with version) after linking.
10902	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10903
10904	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10905	hardcode_libdir_separator_CXX=:
10906
10907	# Archives containing C++ object files must be created using
10908	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10909	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10910
10911	;;
10912      RCC*)
10913	# Rational C++ 2.4.1
10914	# FIXME: insert proper C++ library support
10915	ld_shlibs_CXX=no
10916	;;
10917      cxx*)
10918	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10919	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10920
10921	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10922	hardcode_libdir_separator_CXX=:
10923
10924	# Commands to make compiler produce verbose output that lists
10925	# what "hidden" libraries, object files and flags are used when
10926	# linking a shared library.
10927	#
10928	# There doesn't appear to be a way to prevent this compiler from
10929	# explicitly linking system object files so we need to strip them
10930	# from the output so that they don't get included in the library
10931	# dependencies.
10932	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10933	;;
10934      *)
10935	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10936	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10937	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10938
10939	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10940	  hardcode_libdir_separator_CXX=:
10941
10942	  # Commands to make compiler produce verbose output that lists
10943	  # what "hidden" libraries, object files and flags are used when
10944	  # linking a shared library.
10945	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10946
10947	else
10948	  # FIXME: insert proper C++ library support
10949	  ld_shlibs_CXX=no
10950	fi
10951	;;
10952    esac
10953    ;;
10954  osf4* | osf5*)
10955    case $cc_basename in
10956      KCC*)
10957	# Kuck and Associates, Inc. (KAI) C++ Compiler
10958
10959	# KCC will only create a shared library if the output file
10960	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10961	# to its proper name (with version) after linking.
10962	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10963
10964	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10965	hardcode_libdir_separator_CXX=:
10966
10967	# Archives containing C++ object files must be created using
10968	# the KAI C++ compiler.
10969	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10970	;;
10971      RCC*)
10972	# Rational C++ 2.4.1
10973	# FIXME: insert proper C++ library support
10974	ld_shlibs_CXX=no
10975	;;
10976      cxx*)
10977	allow_undefined_flag_CXX=' -expect_unresolved \*'
10978	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10979	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10980	  echo "-hidden">> $lib.exp~
10981	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10982	  $rm $lib.exp'
10983
10984	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10985	hardcode_libdir_separator_CXX=:
10986
10987	# Commands to make compiler produce verbose output that lists
10988	# what "hidden" libraries, object files and flags are used when
10989	# linking a shared library.
10990	#
10991	# There doesn't appear to be a way to prevent this compiler from
10992	# explicitly linking system object files so we need to strip them
10993	# from the output so that they don't get included in the library
10994	# dependencies.
10995	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10996	;;
10997      *)
10998	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10999	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11000	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11001
11002	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11003	  hardcode_libdir_separator_CXX=:
11004
11005	  # Commands to make compiler produce verbose output that lists
11006	  # what "hidden" libraries, object files and flags are used when
11007	  # linking a shared library.
11008	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11009
11010	else
11011	  # FIXME: insert proper C++ library support
11012	  ld_shlibs_CXX=no
11013	fi
11014	;;
11015    esac
11016    ;;
11017  psos*)
11018    # FIXME: insert proper C++ library support
11019    ld_shlibs_CXX=no
11020    ;;
11021  sunos4*)
11022    case $cc_basename in
11023      CC*)
11024	# Sun C++ 4.x
11025	# FIXME: insert proper C++ library support
11026	ld_shlibs_CXX=no
11027	;;
11028      lcc*)
11029	# Lucid
11030	# FIXME: insert proper C++ library support
11031	ld_shlibs_CXX=no
11032	;;
11033      *)
11034	# FIXME: insert proper C++ library support
11035	ld_shlibs_CXX=no
11036	;;
11037    esac
11038    ;;
11039  solaris*)
11040    case $cc_basename in
11041      CC*)
11042	# Sun C++ 4.2, 5.x and Centerline C++
11043        archive_cmds_need_lc_CXX=yes
11044	no_undefined_flag_CXX=' -zdefs'
11045	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11046	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11047	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11048
11049	hardcode_libdir_flag_spec_CXX='-R$libdir'
11050	hardcode_shlibpath_var_CXX=no
11051	case $host_os in
11052	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11053	  *)
11054	    # The C++ compiler is used as linker so we must use $wl
11055	    # flag to pass the commands to the underlying system
11056	    # linker. We must also pass each convience library through
11057	    # to the system linker between allextract/defaultextract.
11058	    # The C++ compiler will combine linker options so we
11059	    # cannot just pass the convience library names through
11060	    # without $wl.
11061	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11062	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11063	    ;;
11064	esac
11065	link_all_deplibs_CXX=yes
11066
11067	output_verbose_link_cmd='echo'
11068
11069	# Archives containing C++ object files must be created using
11070	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11071	# necessary to make sure instantiated templates are included
11072	# in the archive.
11073	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11074	;;
11075      gcx*)
11076	# Green Hills C++ Compiler
11077	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11078
11079	# The C++ compiler must be used to create the archive.
11080	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11081	;;
11082      *)
11083	# GNU C++ compiler with Solaris linker
11084	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11085	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11086	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11087	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11088	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11089		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11090
11091	    # Commands to make compiler produce verbose output that lists
11092	    # what "hidden" libraries, object files and flags are used when
11093	    # linking a shared library.
11094	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11095	  else
11096	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11097	    # platform.
11098	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11099	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11100		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11101
11102	    # Commands to make compiler produce verbose output that lists
11103	    # what "hidden" libraries, object files and flags are used when
11104	    # linking a shared library.
11105	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11106	  fi
11107
11108	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11109	fi
11110	;;
11111    esac
11112    ;;
11113  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11114    no_undefined_flag_CXX='${wl}-z,text'
11115    archive_cmds_need_lc_CXX=no
11116    hardcode_shlibpath_var_CXX=no
11117    runpath_var='LD_RUN_PATH'
11118
11119    case $cc_basename in
11120      CC*)
11121	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123	;;
11124      *)
11125	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127	;;
11128    esac
11129    ;;
11130  sysv5* | sco3.2v5* | sco5v6*)
11131    # Note: We can NOT use -z defs as we might desire, because we do not
11132    # link with -lc, and that would cause any symbols used from libc to
11133    # always be unresolved, which means just about no library would
11134    # ever link correctly.  If we're not using GNU ld we use -z text
11135    # though, which does catch some bad symbols but isn't as heavy-handed
11136    # as -z defs.
11137    # For security reasons, it is highly recommended that you always
11138    # use absolute paths for naming shared libraries, and exclude the
11139    # DT_RUNPATH tag from executables and libraries.  But doing so
11140    # requires that you compile everything twice, which is a pain.
11141    # So that behaviour is only enabled if SCOABSPATH is set to a
11142    # non-empty value in the environment.  Most likely only useful for
11143    # creating official distributions of packages.
11144    # This is a hack until libtool officially supports absolute path
11145    # names for shared libraries.
11146    no_undefined_flag_CXX='${wl}-z,text'
11147    allow_undefined_flag_CXX='${wl}-z,nodefs'
11148    archive_cmds_need_lc_CXX=no
11149    hardcode_shlibpath_var_CXX=no
11150    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11151    hardcode_libdir_separator_CXX=':'
11152    link_all_deplibs_CXX=yes
11153    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11154    runpath_var='LD_RUN_PATH'
11155
11156    case $cc_basename in
11157      CC*)
11158	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11159	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11160	;;
11161      *)
11162	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11163	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11164	;;
11165    esac
11166    ;;
11167  tandem*)
11168    case $cc_basename in
11169      NCC*)
11170	# NonStop-UX NCC 3.20
11171	# FIXME: insert proper C++ library support
11172	ld_shlibs_CXX=no
11173	;;
11174      *)
11175	# FIXME: insert proper C++ library support
11176	ld_shlibs_CXX=no
11177	;;
11178    esac
11179    ;;
11180  vxworks*)
11181    # FIXME: insert proper C++ library support
11182    ld_shlibs_CXX=no
11183    ;;
11184  *)
11185    # FIXME: insert proper C++ library support
11186    ld_shlibs_CXX=no
11187    ;;
11188esac
11189echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11190echo "${ECHO_T}$ld_shlibs_CXX" >&6
11191test "$ld_shlibs_CXX" = no && can_build_shared=no
11192
11193GCC_CXX="$GXX"
11194LD_CXX="$LD"
11195
11196
11197cat > conftest.$ac_ext <<EOF
11198class Foo
11199{
11200public:
11201  Foo (void) { a = 0; }
11202private:
11203  int a;
11204};
11205EOF
11206
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208  (eval $ac_compile) 2>&5
11209  ac_status=$?
11210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211  (exit $ac_status); }; then
11212  # Parse the compiler output and extract the necessary
11213  # objects, libraries and library flags.
11214
11215  # Sentinel used to keep track of whether or not we are before
11216  # the conftest object file.
11217  pre_test_object_deps_done=no
11218
11219  # The `*' in the case matches for architectures that use `case' in
11220  # $output_verbose_cmd can trigger glob expansion during the loop
11221  # eval without this substitution.
11222  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11223
11224  for p in `eval $output_verbose_link_cmd`; do
11225    case $p in
11226
11227    -L* | -R* | -l*)
11228       # Some compilers place space between "-{L,R}" and the path.
11229       # Remove the space.
11230       if test $p = "-L" \
11231	  || test $p = "-R"; then
11232	 prev=$p
11233	 continue
11234       else
11235	 prev=
11236       fi
11237
11238       if test "$pre_test_object_deps_done" = no; then
11239	 case $p in
11240	 -L* | -R*)
11241	   # Internal compiler library paths should come after those
11242	   # provided the user.  The postdeps already come after the
11243	   # user supplied libs so there is no need to process them.
11244	   if test -z "$compiler_lib_search_path_CXX"; then
11245	     compiler_lib_search_path_CXX="${prev}${p}"
11246	   else
11247	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11248	   fi
11249	   ;;
11250	 # The "-l" case would never come before the object being
11251	 # linked, so don't bother handling this case.
11252	 esac
11253       else
11254	 if test -z "$postdeps_CXX"; then
11255	   postdeps_CXX="${prev}${p}"
11256	 else
11257	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11258	 fi
11259       fi
11260       ;;
11261
11262    *.$objext)
11263       # This assumes that the test object file only shows up
11264       # once in the compiler output.
11265       if test "$p" = "conftest.$objext"; then
11266	 pre_test_object_deps_done=yes
11267	 continue
11268       fi
11269
11270       if test "$pre_test_object_deps_done" = no; then
11271	 if test -z "$predep_objects_CXX"; then
11272	   predep_objects_CXX="$p"
11273	 else
11274	   predep_objects_CXX="$predep_objects_CXX $p"
11275	 fi
11276       else
11277	 if test -z "$postdep_objects_CXX"; then
11278	   postdep_objects_CXX="$p"
11279	 else
11280	   postdep_objects_CXX="$postdep_objects_CXX $p"
11281	 fi
11282       fi
11283       ;;
11284
11285    *) ;; # Ignore the rest.
11286
11287    esac
11288  done
11289
11290  # Clean up.
11291  rm -f a.out a.exe
11292else
11293  echo "libtool.m4: error: problem compiling CXX test program"
11294fi
11295
11296$rm -f confest.$objext
11297
11298# PORTME: override above test on systems where it is broken
11299case $host_os in
11300interix3*)
11301  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11302  # hack all around it, let's just trust "g++" to DTRT.
11303  predep_objects_CXX=
11304  postdep_objects_CXX=
11305  postdeps_CXX=
11306  ;;
11307
11308solaris*)
11309  case $cc_basename in
11310  CC*)
11311    # Adding this requires a known-good setup of shared libraries for
11312    # Sun compiler versions before 5.6, else PIC objects from an old
11313    # archive will be linked into the output, leading to subtle bugs.
11314    postdeps_CXX='-lCstd -lCrun'
11315    ;;
11316  esac
11317  ;;
11318esac
11319
11320
11321case " $postdeps_CXX " in
11322*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11323esac
11324
11325lt_prog_compiler_wl_CXX=
11326lt_prog_compiler_pic_CXX=
11327lt_prog_compiler_static_CXX=
11328
11329echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11330echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11331
11332  # C++ specific cases for pic, static, wl, etc.
11333  if test "$GXX" = yes; then
11334    lt_prog_compiler_wl_CXX='-Wl,'
11335    lt_prog_compiler_static_CXX='-static'
11336
11337    case $host_os in
11338    aix*)
11339      # All AIX code is PIC.
11340      if test "$host_cpu" = ia64; then
11341	# AIX 5 now supports IA64 processor
11342	lt_prog_compiler_static_CXX='-Bstatic'
11343      fi
11344      ;;
11345    amigaos*)
11346      # FIXME: we need at least 68020 code to build shared libraries, but
11347      # adding the `-m68020' flag to GCC prevents building anything better,
11348      # like `-m68040'.
11349      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11350      ;;
11351    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11352      # PIC is the default for these OSes.
11353      ;;
11354    mingw* | os2* | pw32*)
11355      # This hack is so that the source file can tell whether it is being
11356      # built for inclusion in a dll (and should export symbols for example).
11357      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11358      ;;
11359    darwin* | rhapsody*)
11360      # PIC is the default on this platform
11361      # Common symbols not allowed in MH_DYLIB files
11362      lt_prog_compiler_pic_CXX='-fno-common'
11363      ;;
11364    *djgpp*)
11365      # DJGPP does not support shared libraries at all
11366      lt_prog_compiler_pic_CXX=
11367      ;;
11368    interix3*)
11369      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11370      # Instead, we relocate shared libraries at runtime.
11371      ;;
11372    sysv4*MP*)
11373      if test -d /usr/nec; then
11374	lt_prog_compiler_pic_CXX=-Kconform_pic
11375      fi
11376      ;;
11377    hpux*)
11378      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11379      # not for PA HP-UX.
11380      case $host_cpu in
11381      hppa*64*|ia64*)
11382	;;
11383      *)
11384	lt_prog_compiler_pic_CXX='-fPIC'
11385	;;
11386      esac
11387      ;;
11388    *)
11389      lt_prog_compiler_pic_CXX='-fPIC'
11390      ;;
11391    esac
11392  else
11393    case $host_os in
11394      aix4* | aix5*)
11395	# All AIX code is PIC.
11396	if test "$host_cpu" = ia64; then
11397	  # AIX 5 now supports IA64 processor
11398	  lt_prog_compiler_static_CXX='-Bstatic'
11399	else
11400	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11401	fi
11402	;;
11403      chorus*)
11404	case $cc_basename in
11405	cxch68*)
11406	  # Green Hills C++ Compiler
11407	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11408	  ;;
11409	esac
11410	;;
11411       darwin*)
11412         # PIC is the default on this platform
11413         # Common symbols not allowed in MH_DYLIB files
11414         case $cc_basename in
11415           xlc*)
11416           lt_prog_compiler_pic_CXX='-qnocommon'
11417           lt_prog_compiler_wl_CXX='-Wl,'
11418           ;;
11419         esac
11420       ;;
11421      dgux*)
11422	case $cc_basename in
11423	  ec++*)
11424	    lt_prog_compiler_pic_CXX='-KPIC'
11425	    ;;
11426	  ghcx*)
11427	    # Green Hills C++ Compiler
11428	    lt_prog_compiler_pic_CXX='-pic'
11429	    ;;
11430	  *)
11431	    ;;
11432	esac
11433	;;
11434      freebsd* | kfreebsd*-gnu | dragonfly*)
11435	# FreeBSD uses GNU C++
11436	;;
11437      hpux9* | hpux10* | hpux11*)
11438	case $cc_basename in
11439	  CC*)
11440	    lt_prog_compiler_wl_CXX='-Wl,'
11441	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11442	    if test "$host_cpu" != ia64; then
11443	      lt_prog_compiler_pic_CXX='+Z'
11444	    fi
11445	    ;;
11446	  aCC*)
11447	    lt_prog_compiler_wl_CXX='-Wl,'
11448	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11449	    case $host_cpu in
11450	    hppa*64*|ia64*)
11451	      # +Z the default
11452	      ;;
11453	    *)
11454	      lt_prog_compiler_pic_CXX='+Z'
11455	      ;;
11456	    esac
11457	    ;;
11458	  *)
11459	    ;;
11460	esac
11461	;;
11462      interix*)
11463	# This is c89, which is MS Visual C++ (no shared libs)
11464	# Anyone wants to do a port?
11465	;;
11466      irix5* | irix6* | nonstopux*)
11467	case $cc_basename in
11468	  CC*)
11469	    lt_prog_compiler_wl_CXX='-Wl,'
11470	    lt_prog_compiler_static_CXX='-non_shared'
11471	    # CC pic flag -KPIC is the default.
11472	    ;;
11473	  *)
11474	    ;;
11475	esac
11476	;;
11477      linux*)
11478	case $cc_basename in
11479	  KCC*)
11480	    # KAI C++ Compiler
11481	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11482	    lt_prog_compiler_pic_CXX='-fPIC'
11483	    ;;
11484	  icpc* | ecpc*)
11485	    # Intel C++
11486	    lt_prog_compiler_wl_CXX='-Wl,'
11487	    lt_prog_compiler_pic_CXX='-KPIC'
11488	    lt_prog_compiler_static_CXX='-static'
11489	    ;;
11490	  pgCC*)
11491	    # Portland Group C++ compiler.
11492	    lt_prog_compiler_wl_CXX='-Wl,'
11493	    lt_prog_compiler_pic_CXX='-fpic'
11494	    lt_prog_compiler_static_CXX='-Bstatic'
11495	    ;;
11496	  cxx*)
11497	    # Compaq C++
11498	    # Make sure the PIC flag is empty.  It appears that all Alpha
11499	    # Linux and Compaq Tru64 Unix objects are PIC.
11500	    lt_prog_compiler_pic_CXX=
11501	    lt_prog_compiler_static_CXX='-non_shared'
11502	    ;;
11503	  *)
11504	    ;;
11505	esac
11506	;;
11507      lynxos*)
11508	;;
11509      m88k*)
11510	;;
11511      mvs*)
11512	case $cc_basename in
11513	  cxx*)
11514	    lt_prog_compiler_pic_CXX='-W c,exportall'
11515	    ;;
11516	  *)
11517	    ;;
11518	esac
11519	;;
11520      netbsd*)
11521	;;
11522      osf3* | osf4* | osf5*)
11523	case $cc_basename in
11524	  KCC*)
11525	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11526	    ;;
11527	  RCC*)
11528	    # Rational C++ 2.4.1
11529	    lt_prog_compiler_pic_CXX='-pic'
11530	    ;;
11531	  cxx*)
11532	    # Digital/Compaq C++
11533	    lt_prog_compiler_wl_CXX='-Wl,'
11534	    # Make sure the PIC flag is empty.  It appears that all Alpha
11535	    # Linux and Compaq Tru64 Unix objects are PIC.
11536	    lt_prog_compiler_pic_CXX=
11537	    lt_prog_compiler_static_CXX='-non_shared'
11538	    ;;
11539	  *)
11540	    ;;
11541	esac
11542	;;
11543      psos*)
11544	;;
11545      solaris*)
11546	case $cc_basename in
11547	  CC*)
11548	    # Sun C++ 4.2, 5.x and Centerline C++
11549	    lt_prog_compiler_pic_CXX='-KPIC'
11550	    lt_prog_compiler_static_CXX='-Bstatic'
11551	    lt_prog_compiler_wl_CXX='-Qoption ld '
11552	    ;;
11553	  gcx*)
11554	    # Green Hills C++ Compiler
11555	    lt_prog_compiler_pic_CXX='-PIC'
11556	    ;;
11557	  *)
11558	    ;;
11559	esac
11560	;;
11561      sunos4*)
11562	case $cc_basename in
11563	  CC*)
11564	    # Sun C++ 4.x
11565	    lt_prog_compiler_pic_CXX='-pic'
11566	    lt_prog_compiler_static_CXX='-Bstatic'
11567	    ;;
11568	  lcc*)
11569	    # Lucid
11570	    lt_prog_compiler_pic_CXX='-pic'
11571	    ;;
11572	  *)
11573	    ;;
11574	esac
11575	;;
11576      tandem*)
11577	case $cc_basename in
11578	  NCC*)
11579	    # NonStop-UX NCC 3.20
11580	    lt_prog_compiler_pic_CXX='-KPIC'
11581	    ;;
11582	  *)
11583	    ;;
11584	esac
11585	;;
11586      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11587	case $cc_basename in
11588	  CC*)
11589	    lt_prog_compiler_wl_CXX='-Wl,'
11590	    lt_prog_compiler_pic_CXX='-KPIC'
11591	    lt_prog_compiler_static_CXX='-Bstatic'
11592	    ;;
11593	esac
11594	;;
11595      vxworks*)
11596	;;
11597      *)
11598	lt_prog_compiler_can_build_shared_CXX=no
11599	;;
11600    esac
11601  fi
11602
11603echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11604echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11605
11606#
11607# Check to make sure the PIC flag actually works.
11608#
11609if test -n "$lt_prog_compiler_pic_CXX"; then
11610
11611echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11612echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11613if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11614  echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616  lt_prog_compiler_pic_works_CXX=no
11617  ac_outfile=conftest.$ac_objext
11618   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11619   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11620   # Insert the option either (1) after the last *FLAGS variable, or
11621   # (2) before a word containing "conftest.", or (3) at the end.
11622   # Note that $ac_compile itself does not contain backslashes and begins
11623   # with a dollar sign (not a hyphen), so the echo should work correctly.
11624   # The option is referenced via a variable to avoid confusing sed.
11625   lt_compile=`echo "$ac_compile" | $SED \
11626   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11627   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11628   -e 's:$: $lt_compiler_flag:'`
11629   (eval echo "\"\$as_me:11629: $lt_compile\"" >&5)
11630   (eval "$lt_compile" 2>conftest.err)
11631   ac_status=$?
11632   cat conftest.err >&5
11633   echo "$as_me:11633: \$? = $ac_status" >&5
11634   if (exit $ac_status) && test -s "$ac_outfile"; then
11635     # The compiler can only warn and ignore the option if not recognized
11636     # So say no if there are warnings other than the usual output.
11637     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11638     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11639     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11640       lt_prog_compiler_pic_works_CXX=yes
11641     fi
11642   fi
11643   $rm conftest*
11644
11645fi
11646echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11647echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11648
11649if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11650    case $lt_prog_compiler_pic_CXX in
11651     "" | " "*) ;;
11652     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11653     esac
11654else
11655    lt_prog_compiler_pic_CXX=
11656     lt_prog_compiler_can_build_shared_CXX=no
11657fi
11658
11659fi
11660case $host_os in
11661  # For platforms which do not support PIC, -DPIC is meaningless:
11662  *djgpp*)
11663    lt_prog_compiler_pic_CXX=
11664    ;;
11665  *)
11666    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11667    ;;
11668esac
11669
11670#
11671# Check to make sure the static flag actually works.
11672#
11673wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11674echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11675echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11676if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11677  echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679  lt_prog_compiler_static_works_CXX=no
11680   save_LDFLAGS="$LDFLAGS"
11681   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11682   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11683   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11684     # The linker can only warn and ignore the option if not recognized
11685     # So say no if there are warnings
11686     if test -s conftest.err; then
11687       # Append any errors to the config.log.
11688       cat conftest.err 1>&5
11689       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11690       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11691       if diff conftest.exp conftest.er2 >/dev/null; then
11692         lt_prog_compiler_static_works_CXX=yes
11693       fi
11694     else
11695       lt_prog_compiler_static_works_CXX=yes
11696     fi
11697   fi
11698   $rm conftest*
11699   LDFLAGS="$save_LDFLAGS"
11700
11701fi
11702echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11703echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11704
11705if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11706    :
11707else
11708    lt_prog_compiler_static_CXX=
11709fi
11710
11711
11712echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11713echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11714if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11715  echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717  lt_cv_prog_compiler_c_o_CXX=no
11718   $rm -r conftest 2>/dev/null
11719   mkdir conftest
11720   cd conftest
11721   mkdir out
11722   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11723
11724   lt_compiler_flag="-o out/conftest2.$ac_objext"
11725   # Insert the option either (1) after the last *FLAGS variable, or
11726   # (2) before a word containing "conftest.", or (3) at the end.
11727   # Note that $ac_compile itself does not contain backslashes and begins
11728   # with a dollar sign (not a hyphen), so the echo should work correctly.
11729   lt_compile=`echo "$ac_compile" | $SED \
11730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11732   -e 's:$: $lt_compiler_flag:'`
11733   (eval echo "\"\$as_me:11733: $lt_compile\"" >&5)
11734   (eval "$lt_compile" 2>out/conftest.err)
11735   ac_status=$?
11736   cat out/conftest.err >&5
11737   echo "$as_me:11737: \$? = $ac_status" >&5
11738   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11739   then
11740     # The compiler can only warn and ignore the option if not recognized
11741     # So say no if there are warnings
11742     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11743     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11744     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11745       lt_cv_prog_compiler_c_o_CXX=yes
11746     fi
11747   fi
11748   chmod u+w . 2>&5
11749   $rm conftest*
11750   # SGI C++ compiler will create directory out/ii_files/ for
11751   # template instantiation
11752   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11753   $rm out/* && rmdir out
11754   cd ..
11755   rmdir conftest
11756   $rm conftest*
11757
11758fi
11759echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11760echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11761
11762
11763hard_links="nottested"
11764if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11765  # do not overwrite the value of need_locks provided by the user
11766  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11767echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11768  hard_links=yes
11769  $rm conftest*
11770  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11771  touch conftest.a
11772  ln conftest.a conftest.b 2>&5 || hard_links=no
11773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11774  echo "$as_me:$LINENO: result: $hard_links" >&5
11775echo "${ECHO_T}$hard_links" >&6
11776  if test "$hard_links" = no; then
11777    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11778echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11779    need_locks=warn
11780  fi
11781else
11782  need_locks=no
11783fi
11784
11785echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11786echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11787
11788  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11789  case $host_os in
11790  aix4* | aix5*)
11791    # If we're using GNU nm, then we don't want the "-C" option.
11792    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11793    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11794      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11795    else
11796      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11797    fi
11798    ;;
11799  pw32*)
11800    export_symbols_cmds_CXX="$ltdll_cmds"
11801  ;;
11802  cygwin* | mingw*)
11803    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11804  ;;
11805  *)
11806    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11807  ;;
11808  esac
11809
11810echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11811echo "${ECHO_T}$ld_shlibs_CXX" >&6
11812test "$ld_shlibs_CXX" = no && can_build_shared=no
11813
11814#
11815# Do we need to explicitly link libc?
11816#
11817case "x$archive_cmds_need_lc_CXX" in
11818x|xyes)
11819  # Assume -lc should be added
11820  archive_cmds_need_lc_CXX=yes
11821
11822  if test "$enable_shared" = yes && test "$GCC" = yes; then
11823    case $archive_cmds_CXX in
11824    *'~'*)
11825      # FIXME: we may have to deal with multi-command sequences.
11826      ;;
11827    '$CC '*)
11828      # Test whether the compiler implicitly links with -lc since on some
11829      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11830      # to ld, don't add -lc before -lgcc.
11831      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11832echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11833      $rm conftest*
11834      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11835
11836      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837  (eval $ac_compile) 2>&5
11838  ac_status=$?
11839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); } 2>conftest.err; then
11841        soname=conftest
11842        lib=conftest
11843        libobjs=conftest.$ac_objext
11844        deplibs=
11845        wl=$lt_prog_compiler_wl_CXX
11846	pic_flag=$lt_prog_compiler_pic_CXX
11847        compiler_flags=-v
11848        linker_flags=-v
11849        verstring=
11850        output_objdir=.
11851        libname=conftest
11852        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11853        allow_undefined_flag_CXX=
11854        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11855  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11856  ac_status=$?
11857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858  (exit $ac_status); }
11859        then
11860	  archive_cmds_need_lc_CXX=no
11861        else
11862	  archive_cmds_need_lc_CXX=yes
11863        fi
11864        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11865      else
11866        cat conftest.err 1>&5
11867      fi
11868      $rm conftest*
11869      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11870echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11871      ;;
11872    esac
11873  fi
11874  ;;
11875esac
11876
11877echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11878echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11879library_names_spec=
11880libname_spec='lib$name'
11881soname_spec=
11882shrext_cmds=".so"
11883postinstall_cmds=
11884postuninstall_cmds=
11885finish_cmds=
11886finish_eval=
11887shlibpath_var=
11888shlibpath_overrides_runpath=unknown
11889version_type=none
11890dynamic_linker="$host_os ld.so"
11891sys_lib_dlsearch_path_spec="/lib /usr/lib"
11892if test "$GCC" = yes; then
11893  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11894  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11895    # if the path contains ";" then we assume it to be the separator
11896    # otherwise default to the standard path separator (i.e. ":") - it is
11897    # assumed that no part of a normal pathname contains ";" but that should
11898    # okay in the real world where ";" in dirpaths is itself problematic.
11899    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11900  else
11901    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11902  fi
11903else
11904  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11905fi
11906need_lib_prefix=unknown
11907hardcode_into_libs=no
11908
11909# when you set need_version to no, make sure it does not cause -set_version
11910# flags to be left without arguments
11911need_version=unknown
11912
11913case $host_os in
11914aix3*)
11915  version_type=linux
11916  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11917  shlibpath_var=LIBPATH
11918
11919  # AIX 3 has no versioning support, so we append a major version to the name.
11920  soname_spec='${libname}${release}${shared_ext}$major'
11921  ;;
11922
11923aix4* | aix5*)
11924  version_type=linux
11925  need_lib_prefix=no
11926  need_version=no
11927  hardcode_into_libs=yes
11928  if test "$host_cpu" = ia64; then
11929    # AIX 5 supports IA64
11930    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11931    shlibpath_var=LD_LIBRARY_PATH
11932  else
11933    # With GCC up to 2.95.x, collect2 would create an import file
11934    # for dependence libraries.  The import file would start with
11935    # the line `#! .'.  This would cause the generated library to
11936    # depend on `.', always an invalid library.  This was fixed in
11937    # development snapshots of GCC prior to 3.0.
11938    case $host_os in
11939      aix4 | aix4.[01] | aix4.[01].*)
11940      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11941	   echo ' yes '
11942	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11943	:
11944      else
11945	can_build_shared=no
11946      fi
11947      ;;
11948    esac
11949    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11950    # soname into executable. Probably we can add versioning support to
11951    # collect2, so additional links can be useful in future.
11952    if test "$aix_use_runtimelinking" = yes; then
11953      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11954      # instead of lib<name>.a to let people know that these are not
11955      # typical AIX shared libraries.
11956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957    else
11958      # We preserve .a as extension for shared libraries through AIX4.2
11959      # and later when we are not doing run time linking.
11960      library_names_spec='${libname}${release}.a $libname.a'
11961      soname_spec='${libname}${release}${shared_ext}$major'
11962    fi
11963    shlibpath_var=LIBPATH
11964  fi
11965  ;;
11966
11967amigaos*)
11968  library_names_spec='$libname.ixlibrary $libname.a'
11969  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11970  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'
11971  ;;
11972
11973beos*)
11974  library_names_spec='${libname}${shared_ext}'
11975  dynamic_linker="$host_os ld.so"
11976  shlibpath_var=LIBRARY_PATH
11977  ;;
11978
11979bsdi[45]*)
11980  version_type=linux
11981  need_version=no
11982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983  soname_spec='${libname}${release}${shared_ext}$major'
11984  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11985  shlibpath_var=LD_LIBRARY_PATH
11986  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11987  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11988  # the default ld.so.conf also contains /usr/contrib/lib and
11989  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11990  # libtool to hard-code these into programs
11991  ;;
11992
11993cygwin* | mingw* | pw32*)
11994  version_type=windows
11995  shrext_cmds=".dll"
11996  need_version=no
11997  need_lib_prefix=no
11998
11999  case $GCC,$host_os in
12000  yes,cygwin* | yes,mingw* | yes,pw32*)
12001    library_names_spec='$libname.dll.a'
12002    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12003    postinstall_cmds='base_file=`basename \${file}`~
12004      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12005      dldir=$destdir/`dirname \$dlpath`~
12006      test -d \$dldir || mkdir -p \$dldir~
12007      $install_prog $dir/$dlname \$dldir/$dlname~
12008      chmod a+x \$dldir/$dlname'
12009    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12010      dlpath=$dir/\$dldll~
12011       $rm \$dlpath'
12012    shlibpath_overrides_runpath=yes
12013
12014    case $host_os in
12015    cygwin*)
12016      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12017      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12018      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12019      ;;
12020    mingw*)
12021      # MinGW DLLs use traditional 'lib' prefix
12022      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12023      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12024      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12025        # It is most probably a Windows format PATH printed by
12026        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12027        # path with ; separators, and with drive letters. We can handle the
12028        # drive letters (cygwin fileutils understands them), so leave them,
12029        # especially as we might pass files found there to a mingw objdump,
12030        # which wouldn't understand a cygwinified path. Ahh.
12031        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12032      else
12033        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12034      fi
12035      ;;
12036    pw32*)
12037      # pw32 DLLs use 'pw' prefix rather than 'lib'
12038      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12039      ;;
12040    esac
12041    ;;
12042
12043  *)
12044    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12045    ;;
12046  esac
12047  dynamic_linker='Win32 ld.exe'
12048  # FIXME: first we should search . and the directory the executable is in
12049  shlibpath_var=PATH
12050  ;;
12051
12052darwin* | rhapsody*)
12053  dynamic_linker="$host_os dyld"
12054  version_type=darwin
12055  need_lib_prefix=no
12056  need_version=no
12057  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12058  soname_spec='${libname}${release}${major}$shared_ext'
12059  shlibpath_overrides_runpath=yes
12060  shlibpath_var=DYLD_LIBRARY_PATH
12061  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12062  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12063  if test "$GCC" = yes; then
12064    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12065  else
12066    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12067  fi
12068  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12069  ;;
12070
12071dgux*)
12072  version_type=linux
12073  need_lib_prefix=no
12074  need_version=no
12075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12076  soname_spec='${libname}${release}${shared_ext}$major'
12077  shlibpath_var=LD_LIBRARY_PATH
12078  ;;
12079
12080freebsd1*)
12081  dynamic_linker=no
12082  ;;
12083
12084kfreebsd*-gnu)
12085  version_type=linux
12086  need_lib_prefix=no
12087  need_version=no
12088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12089  soname_spec='${libname}${release}${shared_ext}$major'
12090  shlibpath_var=LD_LIBRARY_PATH
12091  shlibpath_overrides_runpath=no
12092  hardcode_into_libs=yes
12093  dynamic_linker='GNU ld.so'
12094  ;;
12095
12096freebsd* | dragonfly*)
12097  # DragonFly does not have aout.  When/if they implement a new
12098  # versioning mechanism, adjust this.
12099  if test -x /usr/bin/objformat; then
12100    objformat=`/usr/bin/objformat`
12101  else
12102    case $host_os in
12103    freebsd[123]*) objformat=aout ;;
12104    *) objformat=elf ;;
12105    esac
12106  fi
12107  version_type=freebsd-$objformat
12108  case $version_type in
12109    freebsd-elf*)
12110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12111      need_version=no
12112      need_lib_prefix=no
12113      ;;
12114    freebsd-*)
12115      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12116      need_version=yes
12117      ;;
12118  esac
12119  shlibpath_var=LD_LIBRARY_PATH
12120  case $host_os in
12121  freebsd2*)
12122    shlibpath_overrides_runpath=yes
12123    ;;
12124  freebsd3.[01]* | freebsdelf3.[01]*)
12125    shlibpath_overrides_runpath=yes
12126    hardcode_into_libs=yes
12127    ;;
12128  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12129  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12130    shlibpath_overrides_runpath=no
12131    hardcode_into_libs=yes
12132    ;;
12133  freebsd*) # from 4.6 on
12134    shlibpath_overrides_runpath=yes
12135    hardcode_into_libs=yes
12136    ;;
12137  esac
12138  ;;
12139
12140gnu*)
12141  version_type=linux
12142  need_lib_prefix=no
12143  need_version=no
12144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12145  soname_spec='${libname}${release}${shared_ext}$major'
12146  shlibpath_var=LD_LIBRARY_PATH
12147  hardcode_into_libs=yes
12148  ;;
12149
12150hpux9* | hpux10* | hpux11*)
12151  # Give a soname corresponding to the major version so that dld.sl refuses to
12152  # link against other versions.
12153  version_type=sunos
12154  need_lib_prefix=no
12155  need_version=no
12156  case $host_cpu in
12157  ia64*)
12158    shrext_cmds='.so'
12159    hardcode_into_libs=yes
12160    dynamic_linker="$host_os dld.so"
12161    shlibpath_var=LD_LIBRARY_PATH
12162    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12163    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164    soname_spec='${libname}${release}${shared_ext}$major'
12165    if test "X$HPUX_IA64_MODE" = X32; then
12166      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12167    else
12168      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12169    fi
12170    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12171    ;;
12172   hppa*64*)
12173     shrext_cmds='.sl'
12174     hardcode_into_libs=yes
12175     dynamic_linker="$host_os dld.sl"
12176     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179     soname_spec='${libname}${release}${shared_ext}$major'
12180     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12182     ;;
12183   *)
12184    shrext_cmds='.sl'
12185    dynamic_linker="$host_os dld.sl"
12186    shlibpath_var=SHLIB_PATH
12187    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189    soname_spec='${libname}${release}${shared_ext}$major'
12190    ;;
12191  esac
12192  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12193  postinstall_cmds='chmod 555 $lib'
12194  ;;
12195
12196interix3*)
12197  version_type=linux
12198  need_lib_prefix=no
12199  need_version=no
12200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201  soname_spec='${libname}${release}${shared_ext}$major'
12202  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12203  shlibpath_var=LD_LIBRARY_PATH
12204  shlibpath_overrides_runpath=no
12205  hardcode_into_libs=yes
12206  ;;
12207
12208irix5* | irix6* | nonstopux*)
12209  case $host_os in
12210    nonstopux*) version_type=nonstopux ;;
12211    *)
12212	if test "$lt_cv_prog_gnu_ld" = yes; then
12213		version_type=linux
12214	else
12215		version_type=irix
12216	fi ;;
12217  esac
12218  need_lib_prefix=no
12219  need_version=no
12220  soname_spec='${libname}${release}${shared_ext}$major'
12221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12222  case $host_os in
12223  irix5* | nonstopux*)
12224    libsuff= shlibsuff=
12225    ;;
12226  *)
12227    case $LD in # libtool.m4 will add one of these switches to LD
12228    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12229      libsuff= shlibsuff= libmagic=32-bit;;
12230    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12231      libsuff=32 shlibsuff=N32 libmagic=N32;;
12232    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12233      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12234    *) libsuff= shlibsuff= libmagic=never-match;;
12235    esac
12236    ;;
12237  esac
12238  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12239  shlibpath_overrides_runpath=no
12240  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12241  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12242  hardcode_into_libs=yes
12243  ;;
12244
12245# No shared lib support for Linux oldld, aout, or coff.
12246linux*oldld* | linux*aout* | linux*coff*)
12247  dynamic_linker=no
12248  ;;
12249
12250# This must be Linux ELF.
12251linux*)
12252  version_type=linux
12253  need_lib_prefix=no
12254  need_version=no
12255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256  soname_spec='${libname}${release}${shared_ext}$major'
12257  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12258  shlibpath_var=LD_LIBRARY_PATH
12259  shlibpath_overrides_runpath=no
12260  # This implies no fast_install, which is unacceptable.
12261  # Some rework will be needed to allow for fast_install
12262  # before this can be enabled.
12263  hardcode_into_libs=yes
12264
12265  # find out which ABI we are using
12266  libsuff=
12267  case "$host_cpu" in
12268  x86_64*|s390x*|powerpc64*)
12269    echo '#line 12269 "configure"' > conftest.$ac_ext
12270    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271  (eval $ac_compile) 2>&5
12272  ac_status=$?
12273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274  (exit $ac_status); }; then
12275      case `/usr/bin/file conftest.$ac_objext` in
12276      *64-bit*)
12277        libsuff=64
12278        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12279        ;;
12280      esac
12281    fi
12282    rm -rf conftest*
12283    ;;
12284  esac
12285
12286  # Append ld.so.conf contents to the search path
12287  if test -f /etc/ld.so.conf; then
12288    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12289    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12290  fi
12291
12292  # We used to test for /lib/ld.so.1 and disable shared libraries on
12293  # powerpc, because MkLinux only supported shared libraries with the
12294  # GNU dynamic linker.  Since this was broken with cross compilers,
12295  # most powerpc-linux boxes support dynamic linking these days and
12296  # people can always --disable-shared, the test was removed, and we
12297  # assume the GNU/Linux dynamic linker is in use.
12298  dynamic_linker='GNU/Linux ld.so'
12299  ;;
12300
12301knetbsd*-gnu)
12302  version_type=linux
12303  need_lib_prefix=no
12304  need_version=no
12305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12306  soname_spec='${libname}${release}${shared_ext}$major'
12307  shlibpath_var=LD_LIBRARY_PATH
12308  shlibpath_overrides_runpath=no
12309  hardcode_into_libs=yes
12310  dynamic_linker='GNU ld.so'
12311  ;;
12312
12313netbsd*)
12314  version_type=sunos
12315  need_lib_prefix=no
12316  need_version=no
12317  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12318    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12319    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12320    dynamic_linker='NetBSD (a.out) ld.so'
12321  else
12322    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12323    soname_spec='${libname}${release}${shared_ext}$major'
12324    dynamic_linker='NetBSD ld.elf_so'
12325  fi
12326  shlibpath_var=LD_LIBRARY_PATH
12327  shlibpath_overrides_runpath=yes
12328  hardcode_into_libs=yes
12329  ;;
12330
12331newsos6)
12332  version_type=linux
12333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334  shlibpath_var=LD_LIBRARY_PATH
12335  shlibpath_overrides_runpath=yes
12336  ;;
12337
12338nto-qnx*)
12339  version_type=linux
12340  need_lib_prefix=no
12341  need_version=no
12342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343  soname_spec='${libname}${release}${shared_ext}$major'
12344  shlibpath_var=LD_LIBRARY_PATH
12345  shlibpath_overrides_runpath=yes
12346  ;;
12347
12348openbsd*)
12349  version_type=sunos
12350  sys_lib_dlsearch_path_spec="/usr/lib"
12351  need_lib_prefix=no
12352  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12353  case $host_os in
12354    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12355    *)                         need_version=no  ;;
12356  esac
12357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12358  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12359  shlibpath_var=LD_LIBRARY_PATH
12360  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12361    case $host_os in
12362      openbsd2.[89] | openbsd2.[89].*)
12363	shlibpath_overrides_runpath=no
12364	;;
12365      *)
12366	shlibpath_overrides_runpath=yes
12367	;;
12368      esac
12369  else
12370    shlibpath_overrides_runpath=yes
12371  fi
12372  ;;
12373
12374os2*)
12375  libname_spec='$name'
12376  shrext_cmds=".dll"
12377  need_lib_prefix=no
12378  library_names_spec='$libname${shared_ext} $libname.a'
12379  dynamic_linker='OS/2 ld.exe'
12380  shlibpath_var=LIBPATH
12381  ;;
12382
12383osf3* | osf4* | osf5*)
12384  version_type=osf
12385  need_lib_prefix=no
12386  need_version=no
12387  soname_spec='${libname}${release}${shared_ext}$major'
12388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12389  shlibpath_var=LD_LIBRARY_PATH
12390  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12391  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12392  ;;
12393
12394solaris*)
12395  version_type=linux
12396  need_lib_prefix=no
12397  need_version=no
12398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399  soname_spec='${libname}${release}${shared_ext}$major'
12400  shlibpath_var=LD_LIBRARY_PATH
12401  shlibpath_overrides_runpath=yes
12402  hardcode_into_libs=yes
12403  # ldd complains unless libraries are executable
12404  postinstall_cmds='chmod +x $lib'
12405  ;;
12406
12407sunos4*)
12408  version_type=sunos
12409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12410  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12411  shlibpath_var=LD_LIBRARY_PATH
12412  shlibpath_overrides_runpath=yes
12413  if test "$with_gnu_ld" = yes; then
12414    need_lib_prefix=no
12415  fi
12416  need_version=yes
12417  ;;
12418
12419sysv4 | sysv4.3*)
12420  version_type=linux
12421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12422  soname_spec='${libname}${release}${shared_ext}$major'
12423  shlibpath_var=LD_LIBRARY_PATH
12424  case $host_vendor in
12425    sni)
12426      shlibpath_overrides_runpath=no
12427      need_lib_prefix=no
12428      export_dynamic_flag_spec='${wl}-Blargedynsym'
12429      runpath_var=LD_RUN_PATH
12430      ;;
12431    siemens)
12432      need_lib_prefix=no
12433      ;;
12434    motorola)
12435      need_lib_prefix=no
12436      need_version=no
12437      shlibpath_overrides_runpath=no
12438      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12439      ;;
12440  esac
12441  ;;
12442
12443sysv4*MP*)
12444  if test -d /usr/nec ;then
12445    version_type=linux
12446    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12447    soname_spec='$libname${shared_ext}.$major'
12448    shlibpath_var=LD_LIBRARY_PATH
12449  fi
12450  ;;
12451
12452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12453  version_type=freebsd-elf
12454  need_lib_prefix=no
12455  need_version=no
12456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12457  soname_spec='${libname}${release}${shared_ext}$major'
12458  shlibpath_var=LD_LIBRARY_PATH
12459  hardcode_into_libs=yes
12460  if test "$with_gnu_ld" = yes; then
12461    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12462    shlibpath_overrides_runpath=no
12463  else
12464    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12465    shlibpath_overrides_runpath=yes
12466    case $host_os in
12467      sco3.2v5*)
12468        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12469	;;
12470    esac
12471  fi
12472  sys_lib_dlsearch_path_spec='/usr/lib'
12473  ;;
12474
12475uts4*)
12476  version_type=linux
12477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478  soname_spec='${libname}${release}${shared_ext}$major'
12479  shlibpath_var=LD_LIBRARY_PATH
12480  ;;
12481
12482*)
12483  dynamic_linker=no
12484  ;;
12485esac
12486echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12487echo "${ECHO_T}$dynamic_linker" >&6
12488test "$dynamic_linker" = no && can_build_shared=no
12489
12490variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12491if test "$GCC" = yes; then
12492  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12493fi
12494
12495echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12496echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12497hardcode_action_CXX=
12498if test -n "$hardcode_libdir_flag_spec_CXX" || \
12499   test -n "$runpath_var_CXX" || \
12500   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12501
12502  # We can hardcode non-existant directories.
12503  if test "$hardcode_direct_CXX" != no &&
12504     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12505     # have to relink, otherwise we might link with an installed library
12506     # when we should be linking with a yet-to-be-installed one
12507     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12508     test "$hardcode_minus_L_CXX" != no; then
12509    # Linking always hardcodes the temporary library directory.
12510    hardcode_action_CXX=relink
12511  else
12512    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12513    hardcode_action_CXX=immediate
12514  fi
12515else
12516  # We cannot hardcode anything, or else we can only hardcode existing
12517  # directories.
12518  hardcode_action_CXX=unsupported
12519fi
12520echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12521echo "${ECHO_T}$hardcode_action_CXX" >&6
12522
12523if test "$hardcode_action_CXX" = relink; then
12524  # Fast installation is not supported
12525  enable_fast_install=no
12526elif test "$shlibpath_overrides_runpath" = yes ||
12527     test "$enable_shared" = no; then
12528  # Fast installation is not necessary
12529  enable_fast_install=needless
12530fi
12531
12532
12533# The else clause should only fire when bootstrapping the
12534# libtool distribution, otherwise you forgot to ship ltmain.sh
12535# with your package, and you will get complaints that there are
12536# no rules to generate ltmain.sh.
12537if test -f "$ltmain"; then
12538  # See if we are running on zsh, and set the options which allow our commands through
12539  # without removal of \ escapes.
12540  if test -n "${ZSH_VERSION+set}" ; then
12541    setopt NO_GLOB_SUBST
12542  fi
12543  # Now quote all the things that may contain metacharacters while being
12544  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12545  # variables and quote the copies for generation of the libtool script.
12546  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12547    SED SHELL STRIP \
12548    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12549    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12550    deplibs_check_method reload_flag reload_cmds need_locks \
12551    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12552    lt_cv_sys_global_symbol_to_c_name_address \
12553    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12554    old_postinstall_cmds old_postuninstall_cmds \
12555    compiler_CXX \
12556    CC_CXX \
12557    LD_CXX \
12558    lt_prog_compiler_wl_CXX \
12559    lt_prog_compiler_pic_CXX \
12560    lt_prog_compiler_static_CXX \
12561    lt_prog_compiler_no_builtin_flag_CXX \
12562    export_dynamic_flag_spec_CXX \
12563    thread_safe_flag_spec_CXX \
12564    whole_archive_flag_spec_CXX \
12565    enable_shared_with_static_runtimes_CXX \
12566    old_archive_cmds_CXX \
12567    old_archive_from_new_cmds_CXX \
12568    predep_objects_CXX \
12569    postdep_objects_CXX \
12570    predeps_CXX \
12571    postdeps_CXX \
12572    compiler_lib_search_path_CXX \
12573    archive_cmds_CXX \
12574    archive_expsym_cmds_CXX \
12575    postinstall_cmds_CXX \
12576    postuninstall_cmds_CXX \
12577    old_archive_from_expsyms_cmds_CXX \
12578    allow_undefined_flag_CXX \
12579    no_undefined_flag_CXX \
12580    export_symbols_cmds_CXX \
12581    hardcode_libdir_flag_spec_CXX \
12582    hardcode_libdir_flag_spec_ld_CXX \
12583    hardcode_libdir_separator_CXX \
12584    hardcode_automatic_CXX \
12585    module_cmds_CXX \
12586    module_expsym_cmds_CXX \
12587    lt_cv_prog_compiler_c_o_CXX \
12588    exclude_expsyms_CXX \
12589    include_expsyms_CXX; do
12590
12591    case $var in
12592    old_archive_cmds_CXX | \
12593    old_archive_from_new_cmds_CXX | \
12594    archive_cmds_CXX | \
12595    archive_expsym_cmds_CXX | \
12596    module_cmds_CXX | \
12597    module_expsym_cmds_CXX | \
12598    old_archive_from_expsyms_cmds_CXX | \
12599    export_symbols_cmds_CXX | \
12600    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12601    postinstall_cmds | postuninstall_cmds | \
12602    old_postinstall_cmds | old_postuninstall_cmds | \
12603    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12604      # Double-quote double-evaled strings.
12605      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12606      ;;
12607    *)
12608      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12609      ;;
12610    esac
12611  done
12612
12613  case $lt_echo in
12614  *'\$0 --fallback-echo"')
12615    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12616    ;;
12617  esac
12618
12619cfgfile="$ofile"
12620
12621  cat <<__EOF__ >> "$cfgfile"
12622# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12623
12624# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12625
12626# Shell to use when invoking shell scripts.
12627SHELL=$lt_SHELL
12628
12629# Whether or not to build shared libraries.
12630build_libtool_libs=$enable_shared
12631
12632# Whether or not to build static libraries.
12633build_old_libs=$enable_static
12634
12635# Whether or not to add -lc for building shared libraries.
12636build_libtool_need_lc=$archive_cmds_need_lc_CXX
12637
12638# Whether or not to disallow shared libs when runtime libs are static
12639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12640
12641# Whether or not to optimize for fast installation.
12642fast_install=$enable_fast_install
12643
12644# The host system.
12645host_alias=$host_alias
12646host=$host
12647host_os=$host_os
12648
12649# The build system.
12650build_alias=$build_alias
12651build=$build
12652build_os=$build_os
12653
12654# An echo program that does not interpret backslashes.
12655echo=$lt_echo
12656
12657# The archiver.
12658AR=$lt_AR
12659AR_FLAGS=$lt_AR_FLAGS
12660
12661# A C compiler.
12662LTCC=$lt_LTCC
12663
12664# LTCC compiler flags.
12665LTCFLAGS=$lt_LTCFLAGS
12666
12667# A language-specific compiler.
12668CC=$lt_compiler_CXX
12669
12670# Is the compiler the GNU C compiler?
12671with_gcc=$GCC_CXX
12672
12673# An ERE matcher.
12674EGREP=$lt_EGREP
12675
12676# The linker used to build libraries.
12677LD=$lt_LD_CXX
12678
12679# Whether we need hard or soft links.
12680LN_S=$lt_LN_S
12681
12682# A BSD-compatible nm program.
12683NM=$lt_NM
12684
12685# A symbol stripping program
12686STRIP=$lt_STRIP
12687
12688# Used to examine libraries when file_magic_cmd begins "file"
12689MAGIC_CMD=$MAGIC_CMD
12690
12691# Used on cygwin: DLL creation program.
12692DLLTOOL="$DLLTOOL"
12693
12694# Used on cygwin: object dumper.
12695OBJDUMP="$OBJDUMP"
12696
12697# Used on cygwin: assembler.
12698AS="$AS"
12699
12700# The name of the directory that contains temporary libtool files.
12701objdir=$objdir
12702
12703# How to create reloadable object files.
12704reload_flag=$lt_reload_flag
12705reload_cmds=$lt_reload_cmds
12706
12707# How to pass a linker flag through the compiler.
12708wl=$lt_lt_prog_compiler_wl_CXX
12709
12710# Object file suffix (normally "o").
12711objext="$ac_objext"
12712
12713# Old archive suffix (normally "a").
12714libext="$libext"
12715
12716# Shared library suffix (normally ".so").
12717shrext_cmds='$shrext_cmds'
12718
12719# Executable file suffix (normally "").
12720exeext="$exeext"
12721
12722# Additional compiler flags for building library objects.
12723pic_flag=$lt_lt_prog_compiler_pic_CXX
12724pic_mode=$pic_mode
12725
12726# What is the maximum length of a command?
12727max_cmd_len=$lt_cv_sys_max_cmd_len
12728
12729# Does compiler simultaneously support -c and -o options?
12730compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12731
12732# Must we lock files when doing compilation?
12733need_locks=$lt_need_locks
12734
12735# Do we need the lib prefix for modules?
12736need_lib_prefix=$need_lib_prefix
12737
12738# Do we need a version for libraries?
12739need_version=$need_version
12740
12741# Whether dlopen is supported.
12742dlopen_support=$enable_dlopen
12743
12744# Whether dlopen of programs is supported.
12745dlopen_self=$enable_dlopen_self
12746
12747# Whether dlopen of statically linked programs is supported.
12748dlopen_self_static=$enable_dlopen_self_static
12749
12750# Compiler flag to prevent dynamic linking.
12751link_static_flag=$lt_lt_prog_compiler_static_CXX
12752
12753# Compiler flag to turn off builtin functions.
12754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12755
12756# Compiler flag to allow reflexive dlopens.
12757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12758
12759# Compiler flag to generate shared objects directly from archives.
12760whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12761
12762# Compiler flag to generate thread-safe objects.
12763thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12764
12765# Library versioning type.
12766version_type=$version_type
12767
12768# Format of library name prefix.
12769libname_spec=$lt_libname_spec
12770
12771# List of archive names.  First name is the real one, the rest are links.
12772# The last name is the one that the linker finds with -lNAME.
12773library_names_spec=$lt_library_names_spec
12774
12775# The coded name of the library, if different from the real name.
12776soname_spec=$lt_soname_spec
12777
12778# Commands used to build and install an old-style archive.
12779RANLIB=$lt_RANLIB
12780old_archive_cmds=$lt_old_archive_cmds_CXX
12781old_postinstall_cmds=$lt_old_postinstall_cmds
12782old_postuninstall_cmds=$lt_old_postuninstall_cmds
12783
12784# Create an old-style archive from a shared archive.
12785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12786
12787# Create a temporary old-style archive to link instead of a shared archive.
12788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12789
12790# Commands used to build and install a shared archive.
12791archive_cmds=$lt_archive_cmds_CXX
12792archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12793postinstall_cmds=$lt_postinstall_cmds
12794postuninstall_cmds=$lt_postuninstall_cmds
12795
12796# Commands used to build a loadable module (assumed same as above if empty)
12797module_cmds=$lt_module_cmds_CXX
12798module_expsym_cmds=$lt_module_expsym_cmds_CXX
12799
12800# Commands to strip libraries.
12801old_striplib=$lt_old_striplib
12802striplib=$lt_striplib
12803
12804# Dependencies to place before the objects being linked to create a
12805# shared library.
12806predep_objects=$lt_predep_objects_CXX
12807
12808# Dependencies to place after the objects being linked to create a
12809# shared library.
12810postdep_objects=$lt_postdep_objects_CXX
12811
12812# Dependencies to place before the objects being linked to create a
12813# shared library.
12814predeps=$lt_predeps_CXX
12815
12816# Dependencies to place after the objects being linked to create a
12817# shared library.
12818postdeps=$lt_postdeps_CXX
12819
12820# The library search path used internally by the compiler when linking
12821# a shared library.
12822compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12823
12824# Method to check whether dependent libraries are shared objects.
12825deplibs_check_method=$lt_deplibs_check_method
12826
12827# Command to use when deplibs_check_method == file_magic.
12828file_magic_cmd=$lt_file_magic_cmd
12829
12830# Flag that allows shared libraries with undefined symbols to be built.
12831allow_undefined_flag=$lt_allow_undefined_flag_CXX
12832
12833# Flag that forces no undefined symbols.
12834no_undefined_flag=$lt_no_undefined_flag_CXX
12835
12836# Commands used to finish a libtool library installation in a directory.
12837finish_cmds=$lt_finish_cmds
12838
12839# Same as above, but a single script fragment to be evaled but not shown.
12840finish_eval=$lt_finish_eval
12841
12842# Take the output of nm and produce a listing of raw symbols and C names.
12843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12844
12845# Transform the output of nm in a proper C declaration
12846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12847
12848# Transform the output of nm in a C name address pair
12849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12850
12851# This is the shared library runtime path variable.
12852runpath_var=$runpath_var
12853
12854# This is the shared library path variable.
12855shlibpath_var=$shlibpath_var
12856
12857# Is shlibpath searched before the hard-coded library search path?
12858shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12859
12860# How to hardcode a shared library path into an executable.
12861hardcode_action=$hardcode_action_CXX
12862
12863# Whether we should hardcode library paths into libraries.
12864hardcode_into_libs=$hardcode_into_libs
12865
12866# Flag to hardcode \$libdir into a binary during linking.
12867# This must work even if \$libdir does not exist.
12868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12869
12870# If ld is used when linking, flag to hardcode \$libdir into
12871# a binary during linking. This must work even if \$libdir does
12872# not exist.
12873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12874
12875# Whether we need a single -rpath flag with a separated argument.
12876hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12877
12878# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12879# resulting binary.
12880hardcode_direct=$hardcode_direct_CXX
12881
12882# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12883# resulting binary.
12884hardcode_minus_L=$hardcode_minus_L_CXX
12885
12886# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12887# the resulting binary.
12888hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12889
12890# Set to yes if building a shared library automatically hardcodes DIR into the library
12891# and all subsequent libraries and executables linked against it.
12892hardcode_automatic=$hardcode_automatic_CXX
12893
12894# Variables whose values should be saved in libtool wrapper scripts and
12895# restored at relink time.
12896variables_saved_for_relink="$variables_saved_for_relink"
12897
12898# Whether libtool must link a program against all its dependency libraries.
12899link_all_deplibs=$link_all_deplibs_CXX
12900
12901# Compile-time system search path for libraries
12902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12903
12904# Run-time system search path for libraries
12905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12906
12907# Fix the shell variable \$srcfile for the compiler.
12908fix_srcfile_path="$fix_srcfile_path_CXX"
12909
12910# Set to yes if exported symbols are required.
12911always_export_symbols=$always_export_symbols_CXX
12912
12913# The commands to list exported symbols.
12914export_symbols_cmds=$lt_export_symbols_cmds_CXX
12915
12916# The commands to extract the exported symbol list from a shared archive.
12917extract_expsyms_cmds=$lt_extract_expsyms_cmds
12918
12919# Symbols that should not be listed in the preloaded symbols.
12920exclude_expsyms=$lt_exclude_expsyms_CXX
12921
12922# Symbols that must always be exported.
12923include_expsyms=$lt_include_expsyms_CXX
12924
12925# ### END LIBTOOL TAG CONFIG: $tagname
12926
12927__EOF__
12928
12929
12930else
12931  # If there is no Makefile yet, we rely on a make rule to execute
12932  # `config.status --recheck' to rerun these tests and create the
12933  # libtool script then.
12934  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12935  if test -f "$ltmain_in"; then
12936    test -f Makefile && make "$ltmain"
12937  fi
12938fi
12939
12940
12941ac_ext=c
12942ac_cpp='$CPP $CPPFLAGS'
12943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
12947CC=$lt_save_CC
12948LDCXX=$LD
12949LD=$lt_save_LD
12950GCC=$lt_save_GCC
12951with_gnu_ldcxx=$with_gnu_ld
12952with_gnu_ld=$lt_save_with_gnu_ld
12953lt_cv_path_LDCXX=$lt_cv_path_LD
12954lt_cv_path_LD=$lt_save_path_LD
12955lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12956lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12957
12958	else
12959	  tagname=""
12960	fi
12961	;;
12962
12963      F77)
12964	if test -n "$F77" && test "X$F77" != "Xno"; then
12965
12966ac_ext=f
12967ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12968ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12970
12971
12972archive_cmds_need_lc_F77=no
12973allow_undefined_flag_F77=
12974always_export_symbols_F77=no
12975archive_expsym_cmds_F77=
12976export_dynamic_flag_spec_F77=
12977hardcode_direct_F77=no
12978hardcode_libdir_flag_spec_F77=
12979hardcode_libdir_flag_spec_ld_F77=
12980hardcode_libdir_separator_F77=
12981hardcode_minus_L_F77=no
12982hardcode_automatic_F77=no
12983module_cmds_F77=
12984module_expsym_cmds_F77=
12985link_all_deplibs_F77=unknown
12986old_archive_cmds_F77=$old_archive_cmds
12987no_undefined_flag_F77=
12988whole_archive_flag_spec_F77=
12989enable_shared_with_static_runtimes_F77=no
12990
12991# Source file extension for f77 test sources.
12992ac_ext=f
12993
12994# Object file extension for compiled f77 test sources.
12995objext=o
12996objext_F77=$objext
12997
12998# Code to be used in simple compile tests
12999lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13000
13001# Code to be used in simple link tests
13002lt_simple_link_test_code="      program t\n      end\n"
13003
13004# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13005
13006# If no C compiler was specified, use CC.
13007LTCC=${LTCC-"$CC"}
13008
13009# If no C compiler flags were specified, use CFLAGS.
13010LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13011
13012# Allow CC to be a program name with arguments.
13013compiler=$CC
13014
13015
13016# save warnings/boilerplate of simple test code
13017ac_outfile=conftest.$ac_objext
13018printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13019eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13020_lt_compiler_boilerplate=`cat conftest.err`
13021$rm conftest*
13022
13023ac_outfile=conftest.$ac_objext
13024printf "$lt_simple_link_test_code" >conftest.$ac_ext
13025eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13026_lt_linker_boilerplate=`cat conftest.err`
13027$rm conftest*
13028
13029
13030# Allow CC to be a program name with arguments.
13031lt_save_CC="$CC"
13032CC=${F77-"f77"}
13033compiler=$CC
13034compiler_F77=$CC
13035for cc_temp in $compiler""; do
13036  case $cc_temp in
13037    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13038    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13039    \-*) ;;
13040    *) break;;
13041  esac
13042done
13043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13044
13045
13046echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13047echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13048echo "$as_me:$LINENO: result: $can_build_shared" >&5
13049echo "${ECHO_T}$can_build_shared" >&6
13050
13051echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13052echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13053test "$can_build_shared" = "no" && enable_shared=no
13054
13055# On AIX, shared libraries and static libraries use the same namespace, and
13056# are all built from PIC.
13057case $host_os in
13058aix3*)
13059  test "$enable_shared" = yes && enable_static=no
13060  if test -n "$RANLIB"; then
13061    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13062    postinstall_cmds='$RANLIB $lib'
13063  fi
13064  ;;
13065aix4* | aix5*)
13066  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13067    test "$enable_shared" = yes && enable_static=no
13068  fi
13069  ;;
13070esac
13071echo "$as_me:$LINENO: result: $enable_shared" >&5
13072echo "${ECHO_T}$enable_shared" >&6
13073
13074echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13075echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13076# Make sure either enable_shared or enable_static is yes.
13077test "$enable_shared" = yes || enable_static=yes
13078echo "$as_me:$LINENO: result: $enable_static" >&5
13079echo "${ECHO_T}$enable_static" >&6
13080
13081GCC_F77="$G77"
13082LD_F77="$LD"
13083
13084lt_prog_compiler_wl_F77=
13085lt_prog_compiler_pic_F77=
13086lt_prog_compiler_static_F77=
13087
13088echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13089echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13090
13091  if test "$GCC" = yes; then
13092    lt_prog_compiler_wl_F77='-Wl,'
13093    lt_prog_compiler_static_F77='-static'
13094
13095    case $host_os in
13096      aix*)
13097      # All AIX code is PIC.
13098      if test "$host_cpu" = ia64; then
13099	# AIX 5 now supports IA64 processor
13100	lt_prog_compiler_static_F77='-Bstatic'
13101      fi
13102      ;;
13103
13104    amigaos*)
13105      # FIXME: we need at least 68020 code to build shared libraries, but
13106      # adding the `-m68020' flag to GCC prevents building anything better,
13107      # like `-m68040'.
13108      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13109      ;;
13110
13111    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13112      # PIC is the default for these OSes.
13113      ;;
13114
13115    mingw* | pw32* | os2*)
13116      # This hack is so that the source file can tell whether it is being
13117      # built for inclusion in a dll (and should export symbols for example).
13118      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13119      ;;
13120
13121    darwin* | rhapsody*)
13122      # PIC is the default on this platform
13123      # Common symbols not allowed in MH_DYLIB files
13124      lt_prog_compiler_pic_F77='-fno-common'
13125      ;;
13126
13127    interix3*)
13128      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13129      # Instead, we relocate shared libraries at runtime.
13130      ;;
13131
13132    msdosdjgpp*)
13133      # Just because we use GCC doesn't mean we suddenly get shared libraries
13134      # on systems that don't support them.
13135      lt_prog_compiler_can_build_shared_F77=no
13136      enable_shared=no
13137      ;;
13138
13139    sysv4*MP*)
13140      if test -d /usr/nec; then
13141	lt_prog_compiler_pic_F77=-Kconform_pic
13142      fi
13143      ;;
13144
13145    hpux*)
13146      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147      # not for PA HP-UX.
13148      case $host_cpu in
13149      hppa*64*|ia64*)
13150	# +Z the default
13151	;;
13152      *)
13153	lt_prog_compiler_pic_F77='-fPIC'
13154	;;
13155      esac
13156      ;;
13157
13158    *)
13159      lt_prog_compiler_pic_F77='-fPIC'
13160      ;;
13161    esac
13162  else
13163    # PORTME Check for flag to pass linker flags through the system compiler.
13164    case $host_os in
13165    aix*)
13166      lt_prog_compiler_wl_F77='-Wl,'
13167      if test "$host_cpu" = ia64; then
13168	# AIX 5 now supports IA64 processor
13169	lt_prog_compiler_static_F77='-Bstatic'
13170      else
13171	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13172      fi
13173      ;;
13174      darwin*)
13175        # PIC is the default on this platform
13176        # Common symbols not allowed in MH_DYLIB files
13177       case $cc_basename in
13178         xlc*)
13179         lt_prog_compiler_pic_F77='-qnocommon'
13180         lt_prog_compiler_wl_F77='-Wl,'
13181         ;;
13182       esac
13183       ;;
13184
13185    mingw* | pw32* | os2*)
13186      # This hack is so that the source file can tell whether it is being
13187      # built for inclusion in a dll (and should export symbols for example).
13188      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13189      ;;
13190
13191    hpux9* | hpux10* | hpux11*)
13192      lt_prog_compiler_wl_F77='-Wl,'
13193      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13194      # not for PA HP-UX.
13195      case $host_cpu in
13196      hppa*64*|ia64*)
13197	# +Z the default
13198	;;
13199      *)
13200	lt_prog_compiler_pic_F77='+Z'
13201	;;
13202      esac
13203      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13204      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13205      ;;
13206
13207    irix5* | irix6* | nonstopux*)
13208      lt_prog_compiler_wl_F77='-Wl,'
13209      # PIC (with -KPIC) is the default.
13210      lt_prog_compiler_static_F77='-non_shared'
13211      ;;
13212
13213    newsos6)
13214      lt_prog_compiler_pic_F77='-KPIC'
13215      lt_prog_compiler_static_F77='-Bstatic'
13216      ;;
13217
13218    linux*)
13219      case $cc_basename in
13220      icc* | ecc*)
13221	lt_prog_compiler_wl_F77='-Wl,'
13222	lt_prog_compiler_pic_F77='-KPIC'
13223	lt_prog_compiler_static_F77='-static'
13224        ;;
13225      pgcc* | pgf77* | pgf90* | pgf95*)
13226        # Portland Group compilers (*not* the Pentium gcc compiler,
13227	# which looks to be a dead project)
13228	lt_prog_compiler_wl_F77='-Wl,'
13229	lt_prog_compiler_pic_F77='-fpic'
13230	lt_prog_compiler_static_F77='-Bstatic'
13231        ;;
13232      ccc*)
13233        lt_prog_compiler_wl_F77='-Wl,'
13234        # All Alpha code is PIC.
13235        lt_prog_compiler_static_F77='-non_shared'
13236        ;;
13237      esac
13238      ;;
13239
13240    osf3* | osf4* | osf5*)
13241      lt_prog_compiler_wl_F77='-Wl,'
13242      # All OSF/1 code is PIC.
13243      lt_prog_compiler_static_F77='-non_shared'
13244      ;;
13245
13246    solaris*)
13247      lt_prog_compiler_pic_F77='-KPIC'
13248      lt_prog_compiler_static_F77='-Bstatic'
13249      case $cc_basename in
13250      f77* | f90* | f95*)
13251	lt_prog_compiler_wl_F77='-Qoption ld ';;
13252      *)
13253	lt_prog_compiler_wl_F77='-Wl,';;
13254      esac
13255      ;;
13256
13257    sunos4*)
13258      lt_prog_compiler_wl_F77='-Qoption ld '
13259      lt_prog_compiler_pic_F77='-PIC'
13260      lt_prog_compiler_static_F77='-Bstatic'
13261      ;;
13262
13263    sysv4 | sysv4.2uw2* | sysv4.3*)
13264      lt_prog_compiler_wl_F77='-Wl,'
13265      lt_prog_compiler_pic_F77='-KPIC'
13266      lt_prog_compiler_static_F77='-Bstatic'
13267      ;;
13268
13269    sysv4*MP*)
13270      if test -d /usr/nec ;then
13271	lt_prog_compiler_pic_F77='-Kconform_pic'
13272	lt_prog_compiler_static_F77='-Bstatic'
13273      fi
13274      ;;
13275
13276    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13277      lt_prog_compiler_wl_F77='-Wl,'
13278      lt_prog_compiler_pic_F77='-KPIC'
13279      lt_prog_compiler_static_F77='-Bstatic'
13280      ;;
13281
13282    unicos*)
13283      lt_prog_compiler_wl_F77='-Wl,'
13284      lt_prog_compiler_can_build_shared_F77=no
13285      ;;
13286
13287    uts4*)
13288      lt_prog_compiler_pic_F77='-pic'
13289      lt_prog_compiler_static_F77='-Bstatic'
13290      ;;
13291
13292    *)
13293      lt_prog_compiler_can_build_shared_F77=no
13294      ;;
13295    esac
13296  fi
13297
13298echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13299echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13300
13301#
13302# Check to make sure the PIC flag actually works.
13303#
13304if test -n "$lt_prog_compiler_pic_F77"; then
13305
13306echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13307echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13308if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13309  echo $ECHO_N "(cached) $ECHO_C" >&6
13310else
13311  lt_prog_compiler_pic_works_F77=no
13312  ac_outfile=conftest.$ac_objext
13313   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13314   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13315   # Insert the option either (1) after the last *FLAGS variable, or
13316   # (2) before a word containing "conftest.", or (3) at the end.
13317   # Note that $ac_compile itself does not contain backslashes and begins
13318   # with a dollar sign (not a hyphen), so the echo should work correctly.
13319   # The option is referenced via a variable to avoid confusing sed.
13320   lt_compile=`echo "$ac_compile" | $SED \
13321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13323   -e 's:$: $lt_compiler_flag:'`
13324   (eval echo "\"\$as_me:13324: $lt_compile\"" >&5)
13325   (eval "$lt_compile" 2>conftest.err)
13326   ac_status=$?
13327   cat conftest.err >&5
13328   echo "$as_me:13328: \$? = $ac_status" >&5
13329   if (exit $ac_status) && test -s "$ac_outfile"; then
13330     # The compiler can only warn and ignore the option if not recognized
13331     # So say no if there are warnings other than the usual output.
13332     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13333     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13334     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13335       lt_prog_compiler_pic_works_F77=yes
13336     fi
13337   fi
13338   $rm conftest*
13339
13340fi
13341echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13342echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13343
13344if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13345    case $lt_prog_compiler_pic_F77 in
13346     "" | " "*) ;;
13347     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13348     esac
13349else
13350    lt_prog_compiler_pic_F77=
13351     lt_prog_compiler_can_build_shared_F77=no
13352fi
13353
13354fi
13355case $host_os in
13356  # For platforms which do not support PIC, -DPIC is meaningless:
13357  *djgpp*)
13358    lt_prog_compiler_pic_F77=
13359    ;;
13360  *)
13361    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13362    ;;
13363esac
13364
13365#
13366# Check to make sure the static flag actually works.
13367#
13368wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13369echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13370echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13371if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13372  echo $ECHO_N "(cached) $ECHO_C" >&6
13373else
13374  lt_prog_compiler_static_works_F77=no
13375   save_LDFLAGS="$LDFLAGS"
13376   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13377   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13378   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13379     # The linker can only warn and ignore the option if not recognized
13380     # So say no if there are warnings
13381     if test -s conftest.err; then
13382       # Append any errors to the config.log.
13383       cat conftest.err 1>&5
13384       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13385       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13386       if diff conftest.exp conftest.er2 >/dev/null; then
13387         lt_prog_compiler_static_works_F77=yes
13388       fi
13389     else
13390       lt_prog_compiler_static_works_F77=yes
13391     fi
13392   fi
13393   $rm conftest*
13394   LDFLAGS="$save_LDFLAGS"
13395
13396fi
13397echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13398echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13399
13400if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13401    :
13402else
13403    lt_prog_compiler_static_F77=
13404fi
13405
13406
13407echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13408echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13409if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13410  echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412  lt_cv_prog_compiler_c_o_F77=no
13413   $rm -r conftest 2>/dev/null
13414   mkdir conftest
13415   cd conftest
13416   mkdir out
13417   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13418
13419   lt_compiler_flag="-o out/conftest2.$ac_objext"
13420   # Insert the option either (1) after the last *FLAGS variable, or
13421   # (2) before a word containing "conftest.", or (3) at the end.
13422   # Note that $ac_compile itself does not contain backslashes and begins
13423   # with a dollar sign (not a hyphen), so the echo should work correctly.
13424   lt_compile=`echo "$ac_compile" | $SED \
13425   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13426   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13427   -e 's:$: $lt_compiler_flag:'`
13428   (eval echo "\"\$as_me:13428: $lt_compile\"" >&5)
13429   (eval "$lt_compile" 2>out/conftest.err)
13430   ac_status=$?
13431   cat out/conftest.err >&5
13432   echo "$as_me:13432: \$? = $ac_status" >&5
13433   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13434   then
13435     # The compiler can only warn and ignore the option if not recognized
13436     # So say no if there are warnings
13437     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13438     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13439     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13440       lt_cv_prog_compiler_c_o_F77=yes
13441     fi
13442   fi
13443   chmod u+w . 2>&5
13444   $rm conftest*
13445   # SGI C++ compiler will create directory out/ii_files/ for
13446   # template instantiation
13447   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13448   $rm out/* && rmdir out
13449   cd ..
13450   rmdir conftest
13451   $rm conftest*
13452
13453fi
13454echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13455echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13456
13457
13458hard_links="nottested"
13459if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13460  # do not overwrite the value of need_locks provided by the user
13461  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13462echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13463  hard_links=yes
13464  $rm conftest*
13465  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13466  touch conftest.a
13467  ln conftest.a conftest.b 2>&5 || hard_links=no
13468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13469  echo "$as_me:$LINENO: result: $hard_links" >&5
13470echo "${ECHO_T}$hard_links" >&6
13471  if test "$hard_links" = no; then
13472    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13473echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13474    need_locks=warn
13475  fi
13476else
13477  need_locks=no
13478fi
13479
13480echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13481echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13482
13483  runpath_var=
13484  allow_undefined_flag_F77=
13485  enable_shared_with_static_runtimes_F77=no
13486  archive_cmds_F77=
13487  archive_expsym_cmds_F77=
13488  old_archive_From_new_cmds_F77=
13489  old_archive_from_expsyms_cmds_F77=
13490  export_dynamic_flag_spec_F77=
13491  whole_archive_flag_spec_F77=
13492  thread_safe_flag_spec_F77=
13493  hardcode_libdir_flag_spec_F77=
13494  hardcode_libdir_flag_spec_ld_F77=
13495  hardcode_libdir_separator_F77=
13496  hardcode_direct_F77=no
13497  hardcode_minus_L_F77=no
13498  hardcode_shlibpath_var_F77=unsupported
13499  link_all_deplibs_F77=unknown
13500  hardcode_automatic_F77=no
13501  module_cmds_F77=
13502  module_expsym_cmds_F77=
13503  always_export_symbols_F77=no
13504  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13505  # include_expsyms should be a list of space-separated symbols to be *always*
13506  # included in the symbol list
13507  include_expsyms_F77=
13508  # exclude_expsyms can be an extended regexp of symbols to exclude
13509  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13510  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13511  # as well as any symbol that contains `d'.
13512  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13513  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13514  # platforms (ab)use it in PIC code, but their linkers get confused if
13515  # the symbol is explicitly referenced.  Since portable code cannot
13516  # rely on this symbol name, it's probably fine to never include it in
13517  # preloaded symbol tables.
13518  extract_expsyms_cmds=
13519  # Just being paranoid about ensuring that cc_basename is set.
13520  for cc_temp in $compiler""; do
13521  case $cc_temp in
13522    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13523    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13524    \-*) ;;
13525    *) break;;
13526  esac
13527done
13528cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13529
13530  case $host_os in
13531  cygwin* | mingw* | pw32*)
13532    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13533    # When not using gcc, we currently assume that we are using
13534    # Microsoft Visual C++.
13535    if test "$GCC" != yes; then
13536      with_gnu_ld=no
13537    fi
13538    ;;
13539  interix*)
13540    # we just hope/assume this is gcc and not c89 (= MSVC++)
13541    with_gnu_ld=yes
13542    ;;
13543  openbsd*)
13544    with_gnu_ld=no
13545    ;;
13546  esac
13547
13548  ld_shlibs_F77=yes
13549  if test "$with_gnu_ld" = yes; then
13550    # If archive_cmds runs LD, not CC, wlarc should be empty
13551    wlarc='${wl}'
13552
13553    # Set some defaults for GNU ld with shared library support. These
13554    # are reset later if shared libraries are not supported. Putting them
13555    # here allows them to be overridden if necessary.
13556    runpath_var=LD_RUN_PATH
13557    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13558    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13559    # ancient GNU ld didn't support --whole-archive et. al.
13560    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13561	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13562      else
13563  	whole_archive_flag_spec_F77=
13564    fi
13565    supports_anon_versioning=no
13566    case `$LD -v 2>/dev/null` in
13567      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13568      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13569      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13570      *\ 2.11.*) ;; # other 2.11 versions
13571      *) supports_anon_versioning=yes ;;
13572    esac
13573
13574    # See if GNU ld supports shared libraries.
13575    case $host_os in
13576    aix3* | aix4* | aix5*)
13577      # On AIX/PPC, the GNU linker is very broken
13578      if test "$host_cpu" != ia64; then
13579	ld_shlibs_F77=no
13580	cat <<EOF 1>&2
13581
13582*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13583*** to be unable to reliably create shared libraries on AIX.
13584*** Therefore, libtool is disabling shared libraries support.  If you
13585*** really care for shared libraries, you may want to modify your PATH
13586*** so that a non-GNU linker is found, and then restart.
13587
13588EOF
13589      fi
13590      ;;
13591
13592    amigaos*)
13593      archive_cmds_F77='$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)'
13594      hardcode_libdir_flag_spec_F77='-L$libdir'
13595      hardcode_minus_L_F77=yes
13596
13597      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13598      # that the semantics of dynamic libraries on AmigaOS, at least up
13599      # to version 4, is to share data among multiple programs linked
13600      # with the same dynamic library.  Since this doesn't match the
13601      # behavior of shared libraries on other platforms, we can't use
13602      # them.
13603      ld_shlibs_F77=no
13604      ;;
13605
13606    beos*)
13607      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13608	allow_undefined_flag_F77=unsupported
13609	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13610	# support --undefined.  This deserves some investigation.  FIXME
13611	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612      else
13613	ld_shlibs_F77=no
13614      fi
13615      ;;
13616
13617    cygwin* | mingw* | pw32*)
13618      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13619      # as there is no search path for DLLs.
13620      hardcode_libdir_flag_spec_F77='-L$libdir'
13621      allow_undefined_flag_F77=unsupported
13622      always_export_symbols_F77=no
13623      enable_shared_with_static_runtimes_F77=yes
13624      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13625
13626      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13627        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13628	# If the export-symbols file already is a .def file (1st line
13629	# is EXPORTS), use it as is; otherwise, prepend...
13630	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13631	  cp $export_symbols $output_objdir/$soname.def;
13632	else
13633	  echo EXPORTS > $output_objdir/$soname.def;
13634	  cat $export_symbols >> $output_objdir/$soname.def;
13635	fi~
13636	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13637      else
13638	ld_shlibs_F77=no
13639      fi
13640      ;;
13641
13642    interix3*)
13643      hardcode_direct_F77=no
13644      hardcode_shlibpath_var_F77=no
13645      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13646      export_dynamic_flag_spec_F77='${wl}-E'
13647      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13648      # Instead, shared libraries are loaded at an image base (0x10000000 by
13649      # default) and relocated if they conflict, which is a slow very memory
13650      # consuming and fragmenting process.  To avoid this, we pick a random,
13651      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13652      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13653      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13654      archive_expsym_cmds_F77='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'
13655      ;;
13656
13657    linux*)
13658      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659	tmp_addflag=
13660	case $cc_basename,$host_cpu in
13661	pgcc*)				# Portland Group C compiler
13662	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13663	  tmp_addflag=' $pic_flag'
13664	  ;;
13665	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13666	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13667	  tmp_addflag=' $pic_flag -Mnomain' ;;
13668	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13669	  tmp_addflag=' -i_dynamic' ;;
13670	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13671	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13672	ifc* | ifort*)			# Intel Fortran compiler
13673	  tmp_addflag=' -nofor_main' ;;
13674	esac
13675	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13676
13677	if test $supports_anon_versioning = yes; then
13678	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13679  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13680  $echo "local: *; };" >> $output_objdir/$libname.ver~
13681	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13682	fi
13683      else
13684	ld_shlibs_F77=no
13685      fi
13686      ;;
13687
13688    netbsd*)
13689      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13690	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13691	wlarc=
13692      else
13693	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13695      fi
13696      ;;
13697
13698    solaris*)
13699      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13700	ld_shlibs_F77=no
13701	cat <<EOF 1>&2
13702
13703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13704*** create shared libraries on Solaris systems.  Therefore, libtool
13705*** is disabling shared libraries support.  We urge you to upgrade GNU
13706*** binutils to release 2.9.1 or newer.  Another option is to modify
13707*** your PATH or compiler configuration so that the native linker is
13708*** used, and then restart.
13709
13710EOF
13711      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13712	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13714      else
13715	ld_shlibs_F77=no
13716      fi
13717      ;;
13718
13719    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13720      case `$LD -v 2>&1` in
13721        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13722	ld_shlibs_F77=no
13723	cat <<_LT_EOF 1>&2
13724
13725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13726*** reliably create shared libraries on SCO systems.  Therefore, libtool
13727*** is disabling shared libraries support.  We urge you to upgrade GNU
13728*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13729*** your PATH or compiler configuration so that the native linker is
13730*** used, and then restart.
13731
13732_LT_EOF
13733	;;
13734	*)
13735	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13736	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13737	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13738	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13739	  else
13740	    ld_shlibs_F77=no
13741	  fi
13742	;;
13743      esac
13744      ;;
13745
13746    sunos4*)
13747      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13748      wlarc=
13749      hardcode_direct_F77=yes
13750      hardcode_shlibpath_var_F77=no
13751      ;;
13752
13753    *)
13754      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13755	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13757      else
13758	ld_shlibs_F77=no
13759      fi
13760      ;;
13761    esac
13762
13763    if test "$ld_shlibs_F77" = no; then
13764      runpath_var=
13765      hardcode_libdir_flag_spec_F77=
13766      export_dynamic_flag_spec_F77=
13767      whole_archive_flag_spec_F77=
13768    fi
13769  else
13770    # PORTME fill in a description of your system's linker (not GNU ld)
13771    case $host_os in
13772    aix3*)
13773      allow_undefined_flag_F77=unsupported
13774      always_export_symbols_F77=yes
13775      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13776      # Note: this linker hardcodes the directories in LIBPATH if there
13777      # are no directories specified by -L.
13778      hardcode_minus_L_F77=yes
13779      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13780	# Neither direct hardcoding nor static linking is supported with a
13781	# broken collect2.
13782	hardcode_direct_F77=unsupported
13783      fi
13784      ;;
13785
13786    aix4* | aix5*)
13787      if test "$host_cpu" = ia64; then
13788	# On IA64, the linker does run time linking by default, so we don't
13789	# have to do anything special.
13790	aix_use_runtimelinking=no
13791	exp_sym_flag='-Bexport'
13792	no_entry_flag=""
13793      else
13794	# If we're using GNU nm, then we don't want the "-C" option.
13795	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13796	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13797	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13798	else
13799	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13800	fi
13801	aix_use_runtimelinking=no
13802
13803	# Test if we are trying to use run time linking or normal
13804	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13805	# need to do runtime linking.
13806	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13807	  for ld_flag in $LDFLAGS; do
13808  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13809  	    aix_use_runtimelinking=yes
13810  	    break
13811  	  fi
13812	  done
13813	  ;;
13814	esac
13815
13816	exp_sym_flag='-bexport'
13817	no_entry_flag='-bnoentry'
13818      fi
13819
13820      # When large executables or shared objects are built, AIX ld can
13821      # have problems creating the table of contents.  If linking a library
13822      # or program results in "error TOC overflow" add -mminimal-toc to
13823      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13824      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13825
13826      archive_cmds_F77=''
13827      hardcode_direct_F77=yes
13828      hardcode_libdir_separator_F77=':'
13829      link_all_deplibs_F77=yes
13830
13831      if test "$GCC" = yes; then
13832	case $host_os in aix4.[012]|aix4.[012].*)
13833	# We only want to do this on AIX 4.2 and lower, the check
13834	# below for broken collect2 doesn't work under 4.3+
13835	  collect2name=`${CC} -print-prog-name=collect2`
13836	  if test -f "$collect2name" && \
13837  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13838	  then
13839  	  # We have reworked collect2
13840  	  hardcode_direct_F77=yes
13841	  else
13842  	  # We have old collect2
13843  	  hardcode_direct_F77=unsupported
13844  	  # It fails to find uninstalled libraries when the uninstalled
13845  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13846  	  # to unsupported forces relinking
13847  	  hardcode_minus_L_F77=yes
13848  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13849  	  hardcode_libdir_separator_F77=
13850	  fi
13851	  ;;
13852	esac
13853	shared_flag='-shared'
13854	if test "$aix_use_runtimelinking" = yes; then
13855	  shared_flag="$shared_flag "'${wl}-G'
13856	fi
13857      else
13858	# not using gcc
13859	if test "$host_cpu" = ia64; then
13860  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13861  	# chokes on -Wl,-G. The following line is correct:
13862	  shared_flag='-G'
13863	else
13864	  if test "$aix_use_runtimelinking" = yes; then
13865	    shared_flag='${wl}-G'
13866	  else
13867	    shared_flag='${wl}-bM:SRE'
13868	  fi
13869	fi
13870      fi
13871
13872      # It seems that -bexpall does not export symbols beginning with
13873      # underscore (_), so it is better to generate a list of symbols to export.
13874      always_export_symbols_F77=yes
13875      if test "$aix_use_runtimelinking" = yes; then
13876	# Warning - without using the other runtime loading flags (-brtl),
13877	# -berok will link without error, but may produce a broken library.
13878	allow_undefined_flag_F77='-berok'
13879       # Determine the default libpath from the value encoded in an empty executable.
13880       cat >conftest.$ac_ext <<_ACEOF
13881      program main
13882
13883      end
13884_ACEOF
13885rm -f conftest.$ac_objext conftest$ac_exeext
13886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887  (eval $ac_link) 2>conftest.er1
13888  ac_status=$?
13889  grep -v '^ *+' conftest.er1 >conftest.err
13890  rm -f conftest.er1
13891  cat conftest.err >&5
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); } &&
13894	 { ac_try='test -z "$ac_f77_werror_flag"
13895			 || test ! -s conftest.err'
13896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897  (eval $ac_try) 2>&5
13898  ac_status=$?
13899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900  (exit $ac_status); }; } &&
13901	 { ac_try='test -s conftest$ac_exeext'
13902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903  (eval $ac_try) 2>&5
13904  ac_status=$?
13905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906  (exit $ac_status); }; }; then
13907
13908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13909}'`
13910# Check for a 64-bit object if we didn't find anything.
13911if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13912}'`; fi
13913else
13914  echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917fi
13918rm -f conftest.err conftest.$ac_objext \
13919      conftest$ac_exeext conftest.$ac_ext
13920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13921
13922       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13923	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13924       else
13925	if test "$host_cpu" = ia64; then
13926	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13927	  allow_undefined_flag_F77="-z nodefs"
13928	  archive_expsym_cmds_F77="\$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"
13929	else
13930	 # Determine the default libpath from the value encoded in an empty executable.
13931	 cat >conftest.$ac_ext <<_ACEOF
13932      program main
13933
13934      end
13935_ACEOF
13936rm -f conftest.$ac_objext conftest$ac_exeext
13937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13938  (eval $ac_link) 2>conftest.er1
13939  ac_status=$?
13940  grep -v '^ *+' conftest.er1 >conftest.err
13941  rm -f conftest.er1
13942  cat conftest.err >&5
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); } &&
13945	 { ac_try='test -z "$ac_f77_werror_flag"
13946			 || test ! -s conftest.err'
13947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948  (eval $ac_try) 2>&5
13949  ac_status=$?
13950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951  (exit $ac_status); }; } &&
13952	 { ac_try='test -s conftest$ac_exeext'
13953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954  (eval $ac_try) 2>&5
13955  ac_status=$?
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); }; }; then
13958
13959aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13960}'`
13961# Check for a 64-bit object if we didn't find anything.
13962if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13963}'`; fi
13964else
13965  echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968fi
13969rm -f conftest.err conftest.$ac_objext \
13970      conftest$ac_exeext conftest.$ac_ext
13971if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13972
13973	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13974	  # Warning - without using the other run time loading flags,
13975	  # -berok will link without error, but may produce a broken library.
13976	  no_undefined_flag_F77=' ${wl}-bernotok'
13977	  allow_undefined_flag_F77=' ${wl}-berok'
13978	  # Exported symbols can be pulled into shared objects from archives
13979	  whole_archive_flag_spec_F77='$convenience'
13980	  archive_cmds_need_lc_F77=yes
13981	  # This is similar to how AIX traditionally builds its shared libraries.
13982	  archive_expsym_cmds_F77="\$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'
13983	fi
13984      fi
13985      ;;
13986
13987    amigaos*)
13988      archive_cmds_F77='$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)'
13989      hardcode_libdir_flag_spec_F77='-L$libdir'
13990      hardcode_minus_L_F77=yes
13991      # see comment about different semantics on the GNU ld section
13992      ld_shlibs_F77=no
13993      ;;
13994
13995    bsdi[45]*)
13996      export_dynamic_flag_spec_F77=-rdynamic
13997      ;;
13998
13999    cygwin* | mingw* | pw32*)
14000      # When not using gcc, we currently assume that we are using
14001      # Microsoft Visual C++.
14002      # hardcode_libdir_flag_spec is actually meaningless, as there is
14003      # no search path for DLLs.
14004      hardcode_libdir_flag_spec_F77=' '
14005      allow_undefined_flag_F77=unsupported
14006      # Tell ltmain to make .lib files, not .a files.
14007      libext=lib
14008      # Tell ltmain to make .dll files, not .so files.
14009      shrext_cmds=".dll"
14010      # FIXME: Setting linknames here is a bad hack.
14011      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14012      # The linker will automatically build a .lib file if we build a DLL.
14013      old_archive_From_new_cmds_F77='true'
14014      # FIXME: Should let the user specify the lib program.
14015      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14016      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14017      enable_shared_with_static_runtimes_F77=yes
14018      ;;
14019
14020    darwin* | rhapsody*)
14021      case $host_os in
14022        rhapsody* | darwin1.[012])
14023         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14024         ;;
14025       *) # Darwin 1.3 on
14026         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14027           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14028         else
14029           case ${MACOSX_DEPLOYMENT_TARGET} in
14030             10.[012])
14031               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14032               ;;
14033             10.*)
14034               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14035               ;;
14036           esac
14037         fi
14038         ;;
14039      esac
14040      archive_cmds_need_lc_F77=no
14041      hardcode_direct_F77=no
14042      hardcode_automatic_F77=yes
14043      hardcode_shlibpath_var_F77=unsupported
14044      whole_archive_flag_spec_F77=''
14045      link_all_deplibs_F77=yes
14046    if test "$GCC" = yes ; then
14047    	output_verbose_link_cmd='echo'
14048        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14049      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14050      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14051      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
14052      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
14053    else
14054      case $cc_basename in
14055        xlc*)
14056         output_verbose_link_cmd='echo'
14057         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14058         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14059          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14060         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
14061          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
14062          ;;
14063       *)
14064         ld_shlibs_F77=no
14065          ;;
14066      esac
14067    fi
14068      ;;
14069
14070    dgux*)
14071      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14072      hardcode_libdir_flag_spec_F77='-L$libdir'
14073      hardcode_shlibpath_var_F77=no
14074      ;;
14075
14076    freebsd1*)
14077      ld_shlibs_F77=no
14078      ;;
14079
14080    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14081    # support.  Future versions do this automatically, but an explicit c++rt0.o
14082    # does not break anything, and helps significantly (at the cost of a little
14083    # extra space).
14084    freebsd2.2*)
14085      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14086      hardcode_libdir_flag_spec_F77='-R$libdir'
14087      hardcode_direct_F77=yes
14088      hardcode_shlibpath_var_F77=no
14089      ;;
14090
14091    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14092    freebsd2*)
14093      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14094      hardcode_direct_F77=yes
14095      hardcode_minus_L_F77=yes
14096      hardcode_shlibpath_var_F77=no
14097      ;;
14098
14099    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14100    freebsd* | kfreebsd*-gnu | dragonfly*)
14101      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14102      hardcode_libdir_flag_spec_F77='-R$libdir'
14103      hardcode_direct_F77=yes
14104      hardcode_shlibpath_var_F77=no
14105      ;;
14106
14107    hpux9*)
14108      if test "$GCC" = yes; then
14109	archive_cmds_F77='$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'
14110      else
14111	archive_cmds_F77='$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'
14112      fi
14113      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14114      hardcode_libdir_separator_F77=:
14115      hardcode_direct_F77=yes
14116
14117      # hardcode_minus_L: Not really in the search PATH,
14118      # but as the default location of the library.
14119      hardcode_minus_L_F77=yes
14120      export_dynamic_flag_spec_F77='${wl}-E'
14121      ;;
14122
14123    hpux10*)
14124      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14125	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14126      else
14127	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14128      fi
14129      if test "$with_gnu_ld" = no; then
14130	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14131	hardcode_libdir_separator_F77=:
14132
14133	hardcode_direct_F77=yes
14134	export_dynamic_flag_spec_F77='${wl}-E'
14135
14136	# hardcode_minus_L: Not really in the search PATH,
14137	# but as the default location of the library.
14138	hardcode_minus_L_F77=yes
14139      fi
14140      ;;
14141
14142    hpux11*)
14143      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14144	case $host_cpu in
14145	hppa*64*)
14146	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14147	  ;;
14148	ia64*)
14149	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14150	  ;;
14151	*)
14152	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14153	  ;;
14154	esac
14155      else
14156	case $host_cpu in
14157	hppa*64*)
14158	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159	  ;;
14160	ia64*)
14161	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14162	  ;;
14163	*)
14164	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14165	  ;;
14166	esac
14167      fi
14168      if test "$with_gnu_ld" = no; then
14169	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14170	hardcode_libdir_separator_F77=:
14171
14172	case $host_cpu in
14173	hppa*64*|ia64*)
14174	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14175	  hardcode_direct_F77=no
14176	  hardcode_shlibpath_var_F77=no
14177	  ;;
14178	*)
14179	  hardcode_direct_F77=yes
14180	  export_dynamic_flag_spec_F77='${wl}-E'
14181
14182	  # hardcode_minus_L: Not really in the search PATH,
14183	  # but as the default location of the library.
14184	  hardcode_minus_L_F77=yes
14185	  ;;
14186	esac
14187      fi
14188      ;;
14189
14190    irix5* | irix6* | nonstopux*)
14191      if test "$GCC" = yes; then
14192	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14193      else
14194	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14195	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14196      fi
14197      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14198      hardcode_libdir_separator_F77=:
14199      link_all_deplibs_F77=yes
14200      ;;
14201
14202    netbsd*)
14203      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14204	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14205      else
14206	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14207      fi
14208      hardcode_libdir_flag_spec_F77='-R$libdir'
14209      hardcode_direct_F77=yes
14210      hardcode_shlibpath_var_F77=no
14211      ;;
14212
14213    newsos6)
14214      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215      hardcode_direct_F77=yes
14216      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14217      hardcode_libdir_separator_F77=:
14218      hardcode_shlibpath_var_F77=no
14219      ;;
14220
14221    openbsd*)
14222      hardcode_direct_F77=yes
14223      hardcode_shlibpath_var_F77=no
14224      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14225	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14226	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14227	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14228	export_dynamic_flag_spec_F77='${wl}-E'
14229      else
14230       case $host_os in
14231	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14232	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14233	   hardcode_libdir_flag_spec_F77='-R$libdir'
14234	   ;;
14235	 *)
14236	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14237	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14238	   ;;
14239       esac
14240      fi
14241      ;;
14242
14243    os2*)
14244      hardcode_libdir_flag_spec_F77='-L$libdir'
14245      hardcode_minus_L_F77=yes
14246      allow_undefined_flag_F77=unsupported
14247      archive_cmds_F77='$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'
14248      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14249      ;;
14250
14251    osf3*)
14252      if test "$GCC" = yes; then
14253	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14254	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14255      else
14256	allow_undefined_flag_F77=' -expect_unresolved \*'
14257	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14258      fi
14259      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14260      hardcode_libdir_separator_F77=:
14261      ;;
14262
14263    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14264      if test "$GCC" = yes; then
14265	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14266	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14267	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14268      else
14269	allow_undefined_flag_F77=' -expect_unresolved \*'
14270	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14271	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14272	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14273
14274	# Both c and cxx compiler support -rpath directly
14275	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14276      fi
14277      hardcode_libdir_separator_F77=:
14278      ;;
14279
14280    solaris*)
14281      no_undefined_flag_F77=' -z text'
14282      if test "$GCC" = yes; then
14283	wlarc='${wl}'
14284	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14285	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14286	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14287      else
14288	wlarc=''
14289	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14291  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14292      fi
14293      hardcode_libdir_flag_spec_F77='-R$libdir'
14294      hardcode_shlibpath_var_F77=no
14295      case $host_os in
14296      solaris2.[0-5] | solaris2.[0-5].*) ;;
14297      *)
14298 	# The compiler driver will combine linker options so we
14299 	# cannot just pass the convience library names through
14300 	# without $wl, iff we do not link with $LD.
14301 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14302 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14303 	case $wlarc in
14304 	'')
14305 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14306 	*)
14307 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14308 	esac ;;
14309      esac
14310      link_all_deplibs_F77=yes
14311      ;;
14312
14313    sunos4*)
14314      if test "x$host_vendor" = xsequent; then
14315	# Use $CC to link under sequent, because it throws in some extra .o
14316	# files that make .init and .fini sections work.
14317	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14318      else
14319	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14320      fi
14321      hardcode_libdir_flag_spec_F77='-L$libdir'
14322      hardcode_direct_F77=yes
14323      hardcode_minus_L_F77=yes
14324      hardcode_shlibpath_var_F77=no
14325      ;;
14326
14327    sysv4)
14328      case $host_vendor in
14329	sni)
14330	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331	  hardcode_direct_F77=yes # is this really true???
14332	;;
14333	siemens)
14334	  ## LD is ld it makes a PLAMLIB
14335	  ## CC just makes a GrossModule.
14336	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14337	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14338	  hardcode_direct_F77=no
14339        ;;
14340	motorola)
14341	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14343	;;
14344      esac
14345      runpath_var='LD_RUN_PATH'
14346      hardcode_shlibpath_var_F77=no
14347      ;;
14348
14349    sysv4.3*)
14350      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14351      hardcode_shlibpath_var_F77=no
14352      export_dynamic_flag_spec_F77='-Bexport'
14353      ;;
14354
14355    sysv4*MP*)
14356      if test -d /usr/nec; then
14357	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358	hardcode_shlibpath_var_F77=no
14359	runpath_var=LD_RUN_PATH
14360	hardcode_runpath_var=yes
14361	ld_shlibs_F77=yes
14362      fi
14363      ;;
14364
14365    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14366      no_undefined_flag_F77='${wl}-z,text'
14367      archive_cmds_need_lc_F77=no
14368      hardcode_shlibpath_var_F77=no
14369      runpath_var='LD_RUN_PATH'
14370
14371      if test "$GCC" = yes; then
14372	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14373	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14374      else
14375	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14376	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14377      fi
14378      ;;
14379
14380    sysv5* | sco3.2v5* | sco5v6*)
14381      # Note: We can NOT use -z defs as we might desire, because we do not
14382      # link with -lc, and that would cause any symbols used from libc to
14383      # always be unresolved, which means just about no library would
14384      # ever link correctly.  If we're not using GNU ld we use -z text
14385      # though, which does catch some bad symbols but isn't as heavy-handed
14386      # as -z defs.
14387      no_undefined_flag_F77='${wl}-z,text'
14388      allow_undefined_flag_F77='${wl}-z,nodefs'
14389      archive_cmds_need_lc_F77=no
14390      hardcode_shlibpath_var_F77=no
14391      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14392      hardcode_libdir_separator_F77=':'
14393      link_all_deplibs_F77=yes
14394      export_dynamic_flag_spec_F77='${wl}-Bexport'
14395      runpath_var='LD_RUN_PATH'
14396
14397      if test "$GCC" = yes; then
14398	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14399	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14400      else
14401	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14402	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403      fi
14404      ;;
14405
14406    uts4*)
14407      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408      hardcode_libdir_flag_spec_F77='-L$libdir'
14409      hardcode_shlibpath_var_F77=no
14410      ;;
14411
14412    *)
14413      ld_shlibs_F77=no
14414      ;;
14415    esac
14416  fi
14417
14418echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14419echo "${ECHO_T}$ld_shlibs_F77" >&6
14420test "$ld_shlibs_F77" = no && can_build_shared=no
14421
14422#
14423# Do we need to explicitly link libc?
14424#
14425case "x$archive_cmds_need_lc_F77" in
14426x|xyes)
14427  # Assume -lc should be added
14428  archive_cmds_need_lc_F77=yes
14429
14430  if test "$enable_shared" = yes && test "$GCC" = yes; then
14431    case $archive_cmds_F77 in
14432    *'~'*)
14433      # FIXME: we may have to deal with multi-command sequences.
14434      ;;
14435    '$CC '*)
14436      # Test whether the compiler implicitly links with -lc since on some
14437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14438      # to ld, don't add -lc before -lgcc.
14439      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14441      $rm conftest*
14442      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14443
14444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445  (eval $ac_compile) 2>&5
14446  ac_status=$?
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); } 2>conftest.err; then
14449        soname=conftest
14450        lib=conftest
14451        libobjs=conftest.$ac_objext
14452        deplibs=
14453        wl=$lt_prog_compiler_wl_F77
14454	pic_flag=$lt_prog_compiler_pic_F77
14455        compiler_flags=-v
14456        linker_flags=-v
14457        verstring=
14458        output_objdir=.
14459        libname=conftest
14460        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14461        allow_undefined_flag_F77=
14462        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14463  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); }
14467        then
14468	  archive_cmds_need_lc_F77=no
14469        else
14470	  archive_cmds_need_lc_F77=yes
14471        fi
14472        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14473      else
14474        cat conftest.err 1>&5
14475      fi
14476      $rm conftest*
14477      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14478echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14479      ;;
14480    esac
14481  fi
14482  ;;
14483esac
14484
14485echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14486echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14487library_names_spec=
14488libname_spec='lib$name'
14489soname_spec=
14490shrext_cmds=".so"
14491postinstall_cmds=
14492postuninstall_cmds=
14493finish_cmds=
14494finish_eval=
14495shlibpath_var=
14496shlibpath_overrides_runpath=unknown
14497version_type=none
14498dynamic_linker="$host_os ld.so"
14499sys_lib_dlsearch_path_spec="/lib /usr/lib"
14500if test "$GCC" = yes; then
14501  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14502  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14503    # if the path contains ";" then we assume it to be the separator
14504    # otherwise default to the standard path separator (i.e. ":") - it is
14505    # assumed that no part of a normal pathname contains ";" but that should
14506    # okay in the real world where ";" in dirpaths is itself problematic.
14507    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14508  else
14509    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14510  fi
14511else
14512  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14513fi
14514need_lib_prefix=unknown
14515hardcode_into_libs=no
14516
14517# when you set need_version to no, make sure it does not cause -set_version
14518# flags to be left without arguments
14519need_version=unknown
14520
14521case $host_os in
14522aix3*)
14523  version_type=linux
14524  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14525  shlibpath_var=LIBPATH
14526
14527  # AIX 3 has no versioning support, so we append a major version to the name.
14528  soname_spec='${libname}${release}${shared_ext}$major'
14529  ;;
14530
14531aix4* | aix5*)
14532  version_type=linux
14533  need_lib_prefix=no
14534  need_version=no
14535  hardcode_into_libs=yes
14536  if test "$host_cpu" = ia64; then
14537    # AIX 5 supports IA64
14538    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14539    shlibpath_var=LD_LIBRARY_PATH
14540  else
14541    # With GCC up to 2.95.x, collect2 would create an import file
14542    # for dependence libraries.  The import file would start with
14543    # the line `#! .'.  This would cause the generated library to
14544    # depend on `.', always an invalid library.  This was fixed in
14545    # development snapshots of GCC prior to 3.0.
14546    case $host_os in
14547      aix4 | aix4.[01] | aix4.[01].*)
14548      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14549	   echo ' yes '
14550	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14551	:
14552      else
14553	can_build_shared=no
14554      fi
14555      ;;
14556    esac
14557    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14558    # soname into executable. Probably we can add versioning support to
14559    # collect2, so additional links can be useful in future.
14560    if test "$aix_use_runtimelinking" = yes; then
14561      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14562      # instead of lib<name>.a to let people know that these are not
14563      # typical AIX shared libraries.
14564      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565    else
14566      # We preserve .a as extension for shared libraries through AIX4.2
14567      # and later when we are not doing run time linking.
14568      library_names_spec='${libname}${release}.a $libname.a'
14569      soname_spec='${libname}${release}${shared_ext}$major'
14570    fi
14571    shlibpath_var=LIBPATH
14572  fi
14573  ;;
14574
14575amigaos*)
14576  library_names_spec='$libname.ixlibrary $libname.a'
14577  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14578  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'
14579  ;;
14580
14581beos*)
14582  library_names_spec='${libname}${shared_ext}'
14583  dynamic_linker="$host_os ld.so"
14584  shlibpath_var=LIBRARY_PATH
14585  ;;
14586
14587bsdi[45]*)
14588  version_type=linux
14589  need_version=no
14590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591  soname_spec='${libname}${release}${shared_ext}$major'
14592  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14593  shlibpath_var=LD_LIBRARY_PATH
14594  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14595  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14596  # the default ld.so.conf also contains /usr/contrib/lib and
14597  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14598  # libtool to hard-code these into programs
14599  ;;
14600
14601cygwin* | mingw* | pw32*)
14602  version_type=windows
14603  shrext_cmds=".dll"
14604  need_version=no
14605  need_lib_prefix=no
14606
14607  case $GCC,$host_os in
14608  yes,cygwin* | yes,mingw* | yes,pw32*)
14609    library_names_spec='$libname.dll.a'
14610    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14611    postinstall_cmds='base_file=`basename \${file}`~
14612      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14613      dldir=$destdir/`dirname \$dlpath`~
14614      test -d \$dldir || mkdir -p \$dldir~
14615      $install_prog $dir/$dlname \$dldir/$dlname~
14616      chmod a+x \$dldir/$dlname'
14617    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14618      dlpath=$dir/\$dldll~
14619       $rm \$dlpath'
14620    shlibpath_overrides_runpath=yes
14621
14622    case $host_os in
14623    cygwin*)
14624      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14625      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14626      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14627      ;;
14628    mingw*)
14629      # MinGW DLLs use traditional 'lib' prefix
14630      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14631      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14632      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14633        # It is most probably a Windows format PATH printed by
14634        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14635        # path with ; separators, and with drive letters. We can handle the
14636        # drive letters (cygwin fileutils understands them), so leave them,
14637        # especially as we might pass files found there to a mingw objdump,
14638        # which wouldn't understand a cygwinified path. Ahh.
14639        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14640      else
14641        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14642      fi
14643      ;;
14644    pw32*)
14645      # pw32 DLLs use 'pw' prefix rather than 'lib'
14646      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647      ;;
14648    esac
14649    ;;
14650
14651  *)
14652    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14653    ;;
14654  esac
14655  dynamic_linker='Win32 ld.exe'
14656  # FIXME: first we should search . and the directory the executable is in
14657  shlibpath_var=PATH
14658  ;;
14659
14660darwin* | rhapsody*)
14661  dynamic_linker="$host_os dyld"
14662  version_type=darwin
14663  need_lib_prefix=no
14664  need_version=no
14665  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14666  soname_spec='${libname}${release}${major}$shared_ext'
14667  shlibpath_overrides_runpath=yes
14668  shlibpath_var=DYLD_LIBRARY_PATH
14669  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14670  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14671  if test "$GCC" = yes; then
14672    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14673  else
14674    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14675  fi
14676  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14677  ;;
14678
14679dgux*)
14680  version_type=linux
14681  need_lib_prefix=no
14682  need_version=no
14683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14684  soname_spec='${libname}${release}${shared_ext}$major'
14685  shlibpath_var=LD_LIBRARY_PATH
14686  ;;
14687
14688freebsd1*)
14689  dynamic_linker=no
14690  ;;
14691
14692kfreebsd*-gnu)
14693  version_type=linux
14694  need_lib_prefix=no
14695  need_version=no
14696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14697  soname_spec='${libname}${release}${shared_ext}$major'
14698  shlibpath_var=LD_LIBRARY_PATH
14699  shlibpath_overrides_runpath=no
14700  hardcode_into_libs=yes
14701  dynamic_linker='GNU ld.so'
14702  ;;
14703
14704freebsd* | dragonfly*)
14705  # DragonFly does not have aout.  When/if they implement a new
14706  # versioning mechanism, adjust this.
14707  if test -x /usr/bin/objformat; then
14708    objformat=`/usr/bin/objformat`
14709  else
14710    case $host_os in
14711    freebsd[123]*) objformat=aout ;;
14712    *) objformat=elf ;;
14713    esac
14714  fi
14715  version_type=freebsd-$objformat
14716  case $version_type in
14717    freebsd-elf*)
14718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14719      need_version=no
14720      need_lib_prefix=no
14721      ;;
14722    freebsd-*)
14723      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14724      need_version=yes
14725      ;;
14726  esac
14727  shlibpath_var=LD_LIBRARY_PATH
14728  case $host_os in
14729  freebsd2*)
14730    shlibpath_overrides_runpath=yes
14731    ;;
14732  freebsd3.[01]* | freebsdelf3.[01]*)
14733    shlibpath_overrides_runpath=yes
14734    hardcode_into_libs=yes
14735    ;;
14736  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14737  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14738    shlibpath_overrides_runpath=no
14739    hardcode_into_libs=yes
14740    ;;
14741  freebsd*) # from 4.6 on
14742    shlibpath_overrides_runpath=yes
14743    hardcode_into_libs=yes
14744    ;;
14745  esac
14746  ;;
14747
14748gnu*)
14749  version_type=linux
14750  need_lib_prefix=no
14751  need_version=no
14752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14753  soname_spec='${libname}${release}${shared_ext}$major'
14754  shlibpath_var=LD_LIBRARY_PATH
14755  hardcode_into_libs=yes
14756  ;;
14757
14758hpux9* | hpux10* | hpux11*)
14759  # Give a soname corresponding to the major version so that dld.sl refuses to
14760  # link against other versions.
14761  version_type=sunos
14762  need_lib_prefix=no
14763  need_version=no
14764  case $host_cpu in
14765  ia64*)
14766    shrext_cmds='.so'
14767    hardcode_into_libs=yes
14768    dynamic_linker="$host_os dld.so"
14769    shlibpath_var=LD_LIBRARY_PATH
14770    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772    soname_spec='${libname}${release}${shared_ext}$major'
14773    if test "X$HPUX_IA64_MODE" = X32; then
14774      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14775    else
14776      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14777    fi
14778    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14779    ;;
14780   hppa*64*)
14781     shrext_cmds='.sl'
14782     hardcode_into_libs=yes
14783     dynamic_linker="$host_os dld.sl"
14784     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787     soname_spec='${libname}${release}${shared_ext}$major'
14788     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14790     ;;
14791   *)
14792    shrext_cmds='.sl'
14793    dynamic_linker="$host_os dld.sl"
14794    shlibpath_var=SHLIB_PATH
14795    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797    soname_spec='${libname}${release}${shared_ext}$major'
14798    ;;
14799  esac
14800  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14801  postinstall_cmds='chmod 555 $lib'
14802  ;;
14803
14804interix3*)
14805  version_type=linux
14806  need_lib_prefix=no
14807  need_version=no
14808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14809  soname_spec='${libname}${release}${shared_ext}$major'
14810  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14811  shlibpath_var=LD_LIBRARY_PATH
14812  shlibpath_overrides_runpath=no
14813  hardcode_into_libs=yes
14814  ;;
14815
14816irix5* | irix6* | nonstopux*)
14817  case $host_os in
14818    nonstopux*) version_type=nonstopux ;;
14819    *)
14820	if test "$lt_cv_prog_gnu_ld" = yes; then
14821		version_type=linux
14822	else
14823		version_type=irix
14824	fi ;;
14825  esac
14826  need_lib_prefix=no
14827  need_version=no
14828  soname_spec='${libname}${release}${shared_ext}$major'
14829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14830  case $host_os in
14831  irix5* | nonstopux*)
14832    libsuff= shlibsuff=
14833    ;;
14834  *)
14835    case $LD in # libtool.m4 will add one of these switches to LD
14836    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14837      libsuff= shlibsuff= libmagic=32-bit;;
14838    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14839      libsuff=32 shlibsuff=N32 libmagic=N32;;
14840    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14841      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14842    *) libsuff= shlibsuff= libmagic=never-match;;
14843    esac
14844    ;;
14845  esac
14846  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14847  shlibpath_overrides_runpath=no
14848  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14849  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14850  hardcode_into_libs=yes
14851  ;;
14852
14853# No shared lib support for Linux oldld, aout, or coff.
14854linux*oldld* | linux*aout* | linux*coff*)
14855  dynamic_linker=no
14856  ;;
14857
14858# This must be Linux ELF.
14859linux*)
14860  version_type=linux
14861  need_lib_prefix=no
14862  need_version=no
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864  soname_spec='${libname}${release}${shared_ext}$major'
14865  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=no
14868  # This implies no fast_install, which is unacceptable.
14869  # Some rework will be needed to allow for fast_install
14870  # before this can be enabled.
14871  hardcode_into_libs=yes
14872
14873  # find out which ABI we are using
14874  libsuff=
14875  case "$host_cpu" in
14876  x86_64*|s390x*|powerpc64*)
14877    echo '#line 14877 "configure"' > conftest.$ac_ext
14878    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879  (eval $ac_compile) 2>&5
14880  ac_status=$?
14881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882  (exit $ac_status); }; then
14883      case `/usr/bin/file conftest.$ac_objext` in
14884      *64-bit*)
14885        libsuff=64
14886        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14887        ;;
14888      esac
14889    fi
14890    rm -rf conftest*
14891    ;;
14892  esac
14893
14894  # Append ld.so.conf contents to the search path
14895  if test -f /etc/ld.so.conf; then
14896    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14897    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14898  fi
14899
14900  # We used to test for /lib/ld.so.1 and disable shared libraries on
14901  # powerpc, because MkLinux only supported shared libraries with the
14902  # GNU dynamic linker.  Since this was broken with cross compilers,
14903  # most powerpc-linux boxes support dynamic linking these days and
14904  # people can always --disable-shared, the test was removed, and we
14905  # assume the GNU/Linux dynamic linker is in use.
14906  dynamic_linker='GNU/Linux ld.so'
14907  ;;
14908
14909knetbsd*-gnu)
14910  version_type=linux
14911  need_lib_prefix=no
14912  need_version=no
14913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14914  soname_spec='${libname}${release}${shared_ext}$major'
14915  shlibpath_var=LD_LIBRARY_PATH
14916  shlibpath_overrides_runpath=no
14917  hardcode_into_libs=yes
14918  dynamic_linker='GNU ld.so'
14919  ;;
14920
14921netbsd*)
14922  version_type=sunos
14923  need_lib_prefix=no
14924  need_version=no
14925  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14927    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14928    dynamic_linker='NetBSD (a.out) ld.so'
14929  else
14930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14931    soname_spec='${libname}${release}${shared_ext}$major'
14932    dynamic_linker='NetBSD ld.elf_so'
14933  fi
14934  shlibpath_var=LD_LIBRARY_PATH
14935  shlibpath_overrides_runpath=yes
14936  hardcode_into_libs=yes
14937  ;;
14938
14939newsos6)
14940  version_type=linux
14941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942  shlibpath_var=LD_LIBRARY_PATH
14943  shlibpath_overrides_runpath=yes
14944  ;;
14945
14946nto-qnx*)
14947  version_type=linux
14948  need_lib_prefix=no
14949  need_version=no
14950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951  soname_spec='${libname}${release}${shared_ext}$major'
14952  shlibpath_var=LD_LIBRARY_PATH
14953  shlibpath_overrides_runpath=yes
14954  ;;
14955
14956openbsd*)
14957  version_type=sunos
14958  sys_lib_dlsearch_path_spec="/usr/lib"
14959  need_lib_prefix=no
14960  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14961  case $host_os in
14962    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14963    *)                         need_version=no  ;;
14964  esac
14965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967  shlibpath_var=LD_LIBRARY_PATH
14968  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14969    case $host_os in
14970      openbsd2.[89] | openbsd2.[89].*)
14971	shlibpath_overrides_runpath=no
14972	;;
14973      *)
14974	shlibpath_overrides_runpath=yes
14975	;;
14976      esac
14977  else
14978    shlibpath_overrides_runpath=yes
14979  fi
14980  ;;
14981
14982os2*)
14983  libname_spec='$name'
14984  shrext_cmds=".dll"
14985  need_lib_prefix=no
14986  library_names_spec='$libname${shared_ext} $libname.a'
14987  dynamic_linker='OS/2 ld.exe'
14988  shlibpath_var=LIBPATH
14989  ;;
14990
14991osf3* | osf4* | osf5*)
14992  version_type=osf
14993  need_lib_prefix=no
14994  need_version=no
14995  soname_spec='${libname}${release}${shared_ext}$major'
14996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997  shlibpath_var=LD_LIBRARY_PATH
14998  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14999  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15000  ;;
15001
15002solaris*)
15003  version_type=linux
15004  need_lib_prefix=no
15005  need_version=no
15006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007  soname_spec='${libname}${release}${shared_ext}$major'
15008  shlibpath_var=LD_LIBRARY_PATH
15009  shlibpath_overrides_runpath=yes
15010  hardcode_into_libs=yes
15011  # ldd complains unless libraries are executable
15012  postinstall_cmds='chmod +x $lib'
15013  ;;
15014
15015sunos4*)
15016  version_type=sunos
15017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15018  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15019  shlibpath_var=LD_LIBRARY_PATH
15020  shlibpath_overrides_runpath=yes
15021  if test "$with_gnu_ld" = yes; then
15022    need_lib_prefix=no
15023  fi
15024  need_version=yes
15025  ;;
15026
15027sysv4 | sysv4.3*)
15028  version_type=linux
15029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030  soname_spec='${libname}${release}${shared_ext}$major'
15031  shlibpath_var=LD_LIBRARY_PATH
15032  case $host_vendor in
15033    sni)
15034      shlibpath_overrides_runpath=no
15035      need_lib_prefix=no
15036      export_dynamic_flag_spec='${wl}-Blargedynsym'
15037      runpath_var=LD_RUN_PATH
15038      ;;
15039    siemens)
15040      need_lib_prefix=no
15041      ;;
15042    motorola)
15043      need_lib_prefix=no
15044      need_version=no
15045      shlibpath_overrides_runpath=no
15046      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15047      ;;
15048  esac
15049  ;;
15050
15051sysv4*MP*)
15052  if test -d /usr/nec ;then
15053    version_type=linux
15054    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15055    soname_spec='$libname${shared_ext}.$major'
15056    shlibpath_var=LD_LIBRARY_PATH
15057  fi
15058  ;;
15059
15060sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15061  version_type=freebsd-elf
15062  need_lib_prefix=no
15063  need_version=no
15064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065  soname_spec='${libname}${release}${shared_ext}$major'
15066  shlibpath_var=LD_LIBRARY_PATH
15067  hardcode_into_libs=yes
15068  if test "$with_gnu_ld" = yes; then
15069    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15070    shlibpath_overrides_runpath=no
15071  else
15072    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15073    shlibpath_overrides_runpath=yes
15074    case $host_os in
15075      sco3.2v5*)
15076        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15077	;;
15078    esac
15079  fi
15080  sys_lib_dlsearch_path_spec='/usr/lib'
15081  ;;
15082
15083uts4*)
15084  version_type=linux
15085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086  soname_spec='${libname}${release}${shared_ext}$major'
15087  shlibpath_var=LD_LIBRARY_PATH
15088  ;;
15089
15090*)
15091  dynamic_linker=no
15092  ;;
15093esac
15094echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15095echo "${ECHO_T}$dynamic_linker" >&6
15096test "$dynamic_linker" = no && can_build_shared=no
15097
15098variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15099if test "$GCC" = yes; then
15100  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15101fi
15102
15103echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15104echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15105hardcode_action_F77=
15106if test -n "$hardcode_libdir_flag_spec_F77" || \
15107   test -n "$runpath_var_F77" || \
15108   test "X$hardcode_automatic_F77" = "Xyes" ; then
15109
15110  # We can hardcode non-existant directories.
15111  if test "$hardcode_direct_F77" != no &&
15112     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15113     # have to relink, otherwise we might link with an installed library
15114     # when we should be linking with a yet-to-be-installed one
15115     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15116     test "$hardcode_minus_L_F77" != no; then
15117    # Linking always hardcodes the temporary library directory.
15118    hardcode_action_F77=relink
15119  else
15120    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15121    hardcode_action_F77=immediate
15122  fi
15123else
15124  # We cannot hardcode anything, or else we can only hardcode existing
15125  # directories.
15126  hardcode_action_F77=unsupported
15127fi
15128echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15129echo "${ECHO_T}$hardcode_action_F77" >&6
15130
15131if test "$hardcode_action_F77" = relink; then
15132  # Fast installation is not supported
15133  enable_fast_install=no
15134elif test "$shlibpath_overrides_runpath" = yes ||
15135     test "$enable_shared" = no; then
15136  # Fast installation is not necessary
15137  enable_fast_install=needless
15138fi
15139
15140
15141# The else clause should only fire when bootstrapping the
15142# libtool distribution, otherwise you forgot to ship ltmain.sh
15143# with your package, and you will get complaints that there are
15144# no rules to generate ltmain.sh.
15145if test -f "$ltmain"; then
15146  # See if we are running on zsh, and set the options which allow our commands through
15147  # without removal of \ escapes.
15148  if test -n "${ZSH_VERSION+set}" ; then
15149    setopt NO_GLOB_SUBST
15150  fi
15151  # Now quote all the things that may contain metacharacters while being
15152  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15153  # variables and quote the copies for generation of the libtool script.
15154  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15155    SED SHELL STRIP \
15156    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15157    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15158    deplibs_check_method reload_flag reload_cmds need_locks \
15159    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15160    lt_cv_sys_global_symbol_to_c_name_address \
15161    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15162    old_postinstall_cmds old_postuninstall_cmds \
15163    compiler_F77 \
15164    CC_F77 \
15165    LD_F77 \
15166    lt_prog_compiler_wl_F77 \
15167    lt_prog_compiler_pic_F77 \
15168    lt_prog_compiler_static_F77 \
15169    lt_prog_compiler_no_builtin_flag_F77 \
15170    export_dynamic_flag_spec_F77 \
15171    thread_safe_flag_spec_F77 \
15172    whole_archive_flag_spec_F77 \
15173    enable_shared_with_static_runtimes_F77 \
15174    old_archive_cmds_F77 \
15175    old_archive_from_new_cmds_F77 \
15176    predep_objects_F77 \
15177    postdep_objects_F77 \
15178    predeps_F77 \
15179    postdeps_F77 \
15180    compiler_lib_search_path_F77 \
15181    archive_cmds_F77 \
15182    archive_expsym_cmds_F77 \
15183    postinstall_cmds_F77 \
15184    postuninstall_cmds_F77 \
15185    old_archive_from_expsyms_cmds_F77 \
15186    allow_undefined_flag_F77 \
15187    no_undefined_flag_F77 \
15188    export_symbols_cmds_F77 \
15189    hardcode_libdir_flag_spec_F77 \
15190    hardcode_libdir_flag_spec_ld_F77 \
15191    hardcode_libdir_separator_F77 \
15192    hardcode_automatic_F77 \
15193    module_cmds_F77 \
15194    module_expsym_cmds_F77 \
15195    lt_cv_prog_compiler_c_o_F77 \
15196    exclude_expsyms_F77 \
15197    include_expsyms_F77; do
15198
15199    case $var in
15200    old_archive_cmds_F77 | \
15201    old_archive_from_new_cmds_F77 | \
15202    archive_cmds_F77 | \
15203    archive_expsym_cmds_F77 | \
15204    module_cmds_F77 | \
15205    module_expsym_cmds_F77 | \
15206    old_archive_from_expsyms_cmds_F77 | \
15207    export_symbols_cmds_F77 | \
15208    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15209    postinstall_cmds | postuninstall_cmds | \
15210    old_postinstall_cmds | old_postuninstall_cmds | \
15211    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15212      # Double-quote double-evaled strings.
15213      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15214      ;;
15215    *)
15216      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15217      ;;
15218    esac
15219  done
15220
15221  case $lt_echo in
15222  *'\$0 --fallback-echo"')
15223    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15224    ;;
15225  esac
15226
15227cfgfile="$ofile"
15228
15229  cat <<__EOF__ >> "$cfgfile"
15230# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15231
15232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15233
15234# Shell to use when invoking shell scripts.
15235SHELL=$lt_SHELL
15236
15237# Whether or not to build shared libraries.
15238build_libtool_libs=$enable_shared
15239
15240# Whether or not to build static libraries.
15241build_old_libs=$enable_static
15242
15243# Whether or not to add -lc for building shared libraries.
15244build_libtool_need_lc=$archive_cmds_need_lc_F77
15245
15246# Whether or not to disallow shared libs when runtime libs are static
15247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15248
15249# Whether or not to optimize for fast installation.
15250fast_install=$enable_fast_install
15251
15252# The host system.
15253host_alias=$host_alias
15254host=$host
15255host_os=$host_os
15256
15257# The build system.
15258build_alias=$build_alias
15259build=$build
15260build_os=$build_os
15261
15262# An echo program that does not interpret backslashes.
15263echo=$lt_echo
15264
15265# The archiver.
15266AR=$lt_AR
15267AR_FLAGS=$lt_AR_FLAGS
15268
15269# A C compiler.
15270LTCC=$lt_LTCC
15271
15272# LTCC compiler flags.
15273LTCFLAGS=$lt_LTCFLAGS
15274
15275# A language-specific compiler.
15276CC=$lt_compiler_F77
15277
15278# Is the compiler the GNU C compiler?
15279with_gcc=$GCC_F77
15280
15281# An ERE matcher.
15282EGREP=$lt_EGREP
15283
15284# The linker used to build libraries.
15285LD=$lt_LD_F77
15286
15287# Whether we need hard or soft links.
15288LN_S=$lt_LN_S
15289
15290# A BSD-compatible nm program.
15291NM=$lt_NM
15292
15293# A symbol stripping program
15294STRIP=$lt_STRIP
15295
15296# Used to examine libraries when file_magic_cmd begins "file"
15297MAGIC_CMD=$MAGIC_CMD
15298
15299# Used on cygwin: DLL creation program.
15300DLLTOOL="$DLLTOOL"
15301
15302# Used on cygwin: object dumper.
15303OBJDUMP="$OBJDUMP"
15304
15305# Used on cygwin: assembler.
15306AS="$AS"
15307
15308# The name of the directory that contains temporary libtool files.
15309objdir=$objdir
15310
15311# How to create reloadable object files.
15312reload_flag=$lt_reload_flag
15313reload_cmds=$lt_reload_cmds
15314
15315# How to pass a linker flag through the compiler.
15316wl=$lt_lt_prog_compiler_wl_F77
15317
15318# Object file suffix (normally "o").
15319objext="$ac_objext"
15320
15321# Old archive suffix (normally "a").
15322libext="$libext"
15323
15324# Shared library suffix (normally ".so").
15325shrext_cmds='$shrext_cmds'
15326
15327# Executable file suffix (normally "").
15328exeext="$exeext"
15329
15330# Additional compiler flags for building library objects.
15331pic_flag=$lt_lt_prog_compiler_pic_F77
15332pic_mode=$pic_mode
15333
15334# What is the maximum length of a command?
15335max_cmd_len=$lt_cv_sys_max_cmd_len
15336
15337# Does compiler simultaneously support -c and -o options?
15338compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15339
15340# Must we lock files when doing compilation?
15341need_locks=$lt_need_locks
15342
15343# Do we need the lib prefix for modules?
15344need_lib_prefix=$need_lib_prefix
15345
15346# Do we need a version for libraries?
15347need_version=$need_version
15348
15349# Whether dlopen is supported.
15350dlopen_support=$enable_dlopen
15351
15352# Whether dlopen of programs is supported.
15353dlopen_self=$enable_dlopen_self
15354
15355# Whether dlopen of statically linked programs is supported.
15356dlopen_self_static=$enable_dlopen_self_static
15357
15358# Compiler flag to prevent dynamic linking.
15359link_static_flag=$lt_lt_prog_compiler_static_F77
15360
15361# Compiler flag to turn off builtin functions.
15362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15363
15364# Compiler flag to allow reflexive dlopens.
15365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15366
15367# Compiler flag to generate shared objects directly from archives.
15368whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15369
15370# Compiler flag to generate thread-safe objects.
15371thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15372
15373# Library versioning type.
15374version_type=$version_type
15375
15376# Format of library name prefix.
15377libname_spec=$lt_libname_spec
15378
15379# List of archive names.  First name is the real one, the rest are links.
15380# The last name is the one that the linker finds with -lNAME.
15381library_names_spec=$lt_library_names_spec
15382
15383# The coded name of the library, if different from the real name.
15384soname_spec=$lt_soname_spec
15385
15386# Commands used to build and install an old-style archive.
15387RANLIB=$lt_RANLIB
15388old_archive_cmds=$lt_old_archive_cmds_F77
15389old_postinstall_cmds=$lt_old_postinstall_cmds
15390old_postuninstall_cmds=$lt_old_postuninstall_cmds
15391
15392# Create an old-style archive from a shared archive.
15393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15394
15395# Create a temporary old-style archive to link instead of a shared archive.
15396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15397
15398# Commands used to build and install a shared archive.
15399archive_cmds=$lt_archive_cmds_F77
15400archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15401postinstall_cmds=$lt_postinstall_cmds
15402postuninstall_cmds=$lt_postuninstall_cmds
15403
15404# Commands used to build a loadable module (assumed same as above if empty)
15405module_cmds=$lt_module_cmds_F77
15406module_expsym_cmds=$lt_module_expsym_cmds_F77
15407
15408# Commands to strip libraries.
15409old_striplib=$lt_old_striplib
15410striplib=$lt_striplib
15411
15412# Dependencies to place before the objects being linked to create a
15413# shared library.
15414predep_objects=$lt_predep_objects_F77
15415
15416# Dependencies to place after the objects being linked to create a
15417# shared library.
15418postdep_objects=$lt_postdep_objects_F77
15419
15420# Dependencies to place before the objects being linked to create a
15421# shared library.
15422predeps=$lt_predeps_F77
15423
15424# Dependencies to place after the objects being linked to create a
15425# shared library.
15426postdeps=$lt_postdeps_F77
15427
15428# The library search path used internally by the compiler when linking
15429# a shared library.
15430compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15431
15432# Method to check whether dependent libraries are shared objects.
15433deplibs_check_method=$lt_deplibs_check_method
15434
15435# Command to use when deplibs_check_method == file_magic.
15436file_magic_cmd=$lt_file_magic_cmd
15437
15438# Flag that allows shared libraries with undefined symbols to be built.
15439allow_undefined_flag=$lt_allow_undefined_flag_F77
15440
15441# Flag that forces no undefined symbols.
15442no_undefined_flag=$lt_no_undefined_flag_F77
15443
15444# Commands used to finish a libtool library installation in a directory.
15445finish_cmds=$lt_finish_cmds
15446
15447# Same as above, but a single script fragment to be evaled but not shown.
15448finish_eval=$lt_finish_eval
15449
15450# Take the output of nm and produce a listing of raw symbols and C names.
15451global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15452
15453# Transform the output of nm in a proper C declaration
15454global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15455
15456# Transform the output of nm in a C name address pair
15457global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15458
15459# This is the shared library runtime path variable.
15460runpath_var=$runpath_var
15461
15462# This is the shared library path variable.
15463shlibpath_var=$shlibpath_var
15464
15465# Is shlibpath searched before the hard-coded library search path?
15466shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15467
15468# How to hardcode a shared library path into an executable.
15469hardcode_action=$hardcode_action_F77
15470
15471# Whether we should hardcode library paths into libraries.
15472hardcode_into_libs=$hardcode_into_libs
15473
15474# Flag to hardcode \$libdir into a binary during linking.
15475# This must work even if \$libdir does not exist.
15476hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15477
15478# If ld is used when linking, flag to hardcode \$libdir into
15479# a binary during linking. This must work even if \$libdir does
15480# not exist.
15481hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15482
15483# Whether we need a single -rpath flag with a separated argument.
15484hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15485
15486# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15487# resulting binary.
15488hardcode_direct=$hardcode_direct_F77
15489
15490# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15491# resulting binary.
15492hardcode_minus_L=$hardcode_minus_L_F77
15493
15494# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15495# the resulting binary.
15496hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15497
15498# Set to yes if building a shared library automatically hardcodes DIR into the library
15499# and all subsequent libraries and executables linked against it.
15500hardcode_automatic=$hardcode_automatic_F77
15501
15502# Variables whose values should be saved in libtool wrapper scripts and
15503# restored at relink time.
15504variables_saved_for_relink="$variables_saved_for_relink"
15505
15506# Whether libtool must link a program against all its dependency libraries.
15507link_all_deplibs=$link_all_deplibs_F77
15508
15509# Compile-time system search path for libraries
15510sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15511
15512# Run-time system search path for libraries
15513sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15514
15515# Fix the shell variable \$srcfile for the compiler.
15516fix_srcfile_path="$fix_srcfile_path_F77"
15517
15518# Set to yes if exported symbols are required.
15519always_export_symbols=$always_export_symbols_F77
15520
15521# The commands to list exported symbols.
15522export_symbols_cmds=$lt_export_symbols_cmds_F77
15523
15524# The commands to extract the exported symbol list from a shared archive.
15525extract_expsyms_cmds=$lt_extract_expsyms_cmds
15526
15527# Symbols that should not be listed in the preloaded symbols.
15528exclude_expsyms=$lt_exclude_expsyms_F77
15529
15530# Symbols that must always be exported.
15531include_expsyms=$lt_include_expsyms_F77
15532
15533# ### END LIBTOOL TAG CONFIG: $tagname
15534
15535__EOF__
15536
15537
15538else
15539  # If there is no Makefile yet, we rely on a make rule to execute
15540  # `config.status --recheck' to rerun these tests and create the
15541  # libtool script then.
15542  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15543  if test -f "$ltmain_in"; then
15544    test -f Makefile && make "$ltmain"
15545  fi
15546fi
15547
15548
15549ac_ext=c
15550ac_cpp='$CPP $CPPFLAGS'
15551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553ac_compiler_gnu=$ac_cv_c_compiler_gnu
15554
15555CC="$lt_save_CC"
15556
15557	else
15558	  tagname=""
15559	fi
15560	;;
15561
15562      GCJ)
15563	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15564
15565
15566
15567# Source file extension for Java test sources.
15568ac_ext=java
15569
15570# Object file extension for compiled Java test sources.
15571objext=o
15572objext_GCJ=$objext
15573
15574# Code to be used in simple compile tests
15575lt_simple_compile_test_code="class foo {}\n"
15576
15577# Code to be used in simple link tests
15578lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15579
15580# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15581
15582# If no C compiler was specified, use CC.
15583LTCC=${LTCC-"$CC"}
15584
15585# If no C compiler flags were specified, use CFLAGS.
15586LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15587
15588# Allow CC to be a program name with arguments.
15589compiler=$CC
15590
15591
15592# save warnings/boilerplate of simple test code
15593ac_outfile=conftest.$ac_objext
15594printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15595eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15596_lt_compiler_boilerplate=`cat conftest.err`
15597$rm conftest*
15598
15599ac_outfile=conftest.$ac_objext
15600printf "$lt_simple_link_test_code" >conftest.$ac_ext
15601eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15602_lt_linker_boilerplate=`cat conftest.err`
15603$rm conftest*
15604
15605
15606# Allow CC to be a program name with arguments.
15607lt_save_CC="$CC"
15608CC=${GCJ-"gcj"}
15609compiler=$CC
15610compiler_GCJ=$CC
15611for cc_temp in $compiler""; do
15612  case $cc_temp in
15613    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15614    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15615    \-*) ;;
15616    *) break;;
15617  esac
15618done
15619cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15620
15621
15622# GCJ did not exist at the time GCC didn't implicitly link libc in.
15623archive_cmds_need_lc_GCJ=no
15624
15625old_archive_cmds_GCJ=$old_archive_cmds
15626
15627
15628lt_prog_compiler_no_builtin_flag_GCJ=
15629
15630if test "$GCC" = yes; then
15631  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15632
15633
15634echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15635echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15636if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15637  echo $ECHO_N "(cached) $ECHO_C" >&6
15638else
15639  lt_cv_prog_compiler_rtti_exceptions=no
15640  ac_outfile=conftest.$ac_objext
15641   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15642   lt_compiler_flag="-fno-rtti -fno-exceptions"
15643   # Insert the option either (1) after the last *FLAGS variable, or
15644   # (2) before a word containing "conftest.", or (3) at the end.
15645   # Note that $ac_compile itself does not contain backslashes and begins
15646   # with a dollar sign (not a hyphen), so the echo should work correctly.
15647   # The option is referenced via a variable to avoid confusing sed.
15648   lt_compile=`echo "$ac_compile" | $SED \
15649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15651   -e 's:$: $lt_compiler_flag:'`
15652   (eval echo "\"\$as_me:15652: $lt_compile\"" >&5)
15653   (eval "$lt_compile" 2>conftest.err)
15654   ac_status=$?
15655   cat conftest.err >&5
15656   echo "$as_me:15656: \$? = $ac_status" >&5
15657   if (exit $ac_status) && test -s "$ac_outfile"; then
15658     # The compiler can only warn and ignore the option if not recognized
15659     # So say no if there are warnings other than the usual output.
15660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15661     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15662     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15663       lt_cv_prog_compiler_rtti_exceptions=yes
15664     fi
15665   fi
15666   $rm conftest*
15667
15668fi
15669echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15670echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15671
15672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15673    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15674else
15675    :
15676fi
15677
15678fi
15679
15680lt_prog_compiler_wl_GCJ=
15681lt_prog_compiler_pic_GCJ=
15682lt_prog_compiler_static_GCJ=
15683
15684echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15686
15687  if test "$GCC" = yes; then
15688    lt_prog_compiler_wl_GCJ='-Wl,'
15689    lt_prog_compiler_static_GCJ='-static'
15690
15691    case $host_os in
15692      aix*)
15693      # All AIX code is PIC.
15694      if test "$host_cpu" = ia64; then
15695	# AIX 5 now supports IA64 processor
15696	lt_prog_compiler_static_GCJ='-Bstatic'
15697      fi
15698      ;;
15699
15700    amigaos*)
15701      # FIXME: we need at least 68020 code to build shared libraries, but
15702      # adding the `-m68020' flag to GCC prevents building anything better,
15703      # like `-m68040'.
15704      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15705      ;;
15706
15707    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15708      # PIC is the default for these OSes.
15709      ;;
15710
15711    mingw* | pw32* | os2*)
15712      # This hack is so that the source file can tell whether it is being
15713      # built for inclusion in a dll (and should export symbols for example).
15714      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15715      ;;
15716
15717    darwin* | rhapsody*)
15718      # PIC is the default on this platform
15719      # Common symbols not allowed in MH_DYLIB files
15720      lt_prog_compiler_pic_GCJ='-fno-common'
15721      ;;
15722
15723    interix3*)
15724      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15725      # Instead, we relocate shared libraries at runtime.
15726      ;;
15727
15728    msdosdjgpp*)
15729      # Just because we use GCC doesn't mean we suddenly get shared libraries
15730      # on systems that don't support them.
15731      lt_prog_compiler_can_build_shared_GCJ=no
15732      enable_shared=no
15733      ;;
15734
15735    sysv4*MP*)
15736      if test -d /usr/nec; then
15737	lt_prog_compiler_pic_GCJ=-Kconform_pic
15738      fi
15739      ;;
15740
15741    hpux*)
15742      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15743      # not for PA HP-UX.
15744      case $host_cpu in
15745      hppa*64*|ia64*)
15746	# +Z the default
15747	;;
15748      *)
15749	lt_prog_compiler_pic_GCJ='-fPIC'
15750	;;
15751      esac
15752      ;;
15753
15754    *)
15755      lt_prog_compiler_pic_GCJ='-fPIC'
15756      ;;
15757    esac
15758  else
15759    # PORTME Check for flag to pass linker flags through the system compiler.
15760    case $host_os in
15761    aix*)
15762      lt_prog_compiler_wl_GCJ='-Wl,'
15763      if test "$host_cpu" = ia64; then
15764	# AIX 5 now supports IA64 processor
15765	lt_prog_compiler_static_GCJ='-Bstatic'
15766      else
15767	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15768      fi
15769      ;;
15770      darwin*)
15771        # PIC is the default on this platform
15772        # Common symbols not allowed in MH_DYLIB files
15773       case $cc_basename in
15774         xlc*)
15775         lt_prog_compiler_pic_GCJ='-qnocommon'
15776         lt_prog_compiler_wl_GCJ='-Wl,'
15777         ;;
15778       esac
15779       ;;
15780
15781    mingw* | pw32* | os2*)
15782      # This hack is so that the source file can tell whether it is being
15783      # built for inclusion in a dll (and should export symbols for example).
15784      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15785      ;;
15786
15787    hpux9* | hpux10* | hpux11*)
15788      lt_prog_compiler_wl_GCJ='-Wl,'
15789      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15790      # not for PA HP-UX.
15791      case $host_cpu in
15792      hppa*64*|ia64*)
15793	# +Z the default
15794	;;
15795      *)
15796	lt_prog_compiler_pic_GCJ='+Z'
15797	;;
15798      esac
15799      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15800      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15801      ;;
15802
15803    irix5* | irix6* | nonstopux*)
15804      lt_prog_compiler_wl_GCJ='-Wl,'
15805      # PIC (with -KPIC) is the default.
15806      lt_prog_compiler_static_GCJ='-non_shared'
15807      ;;
15808
15809    newsos6)
15810      lt_prog_compiler_pic_GCJ='-KPIC'
15811      lt_prog_compiler_static_GCJ='-Bstatic'
15812      ;;
15813
15814    linux*)
15815      case $cc_basename in
15816      icc* | ecc*)
15817	lt_prog_compiler_wl_GCJ='-Wl,'
15818	lt_prog_compiler_pic_GCJ='-KPIC'
15819	lt_prog_compiler_static_GCJ='-static'
15820        ;;
15821      pgcc* | pgf77* | pgf90* | pgf95*)
15822        # Portland Group compilers (*not* the Pentium gcc compiler,
15823	# which looks to be a dead project)
15824	lt_prog_compiler_wl_GCJ='-Wl,'
15825	lt_prog_compiler_pic_GCJ='-fpic'
15826	lt_prog_compiler_static_GCJ='-Bstatic'
15827        ;;
15828      ccc*)
15829        lt_prog_compiler_wl_GCJ='-Wl,'
15830        # All Alpha code is PIC.
15831        lt_prog_compiler_static_GCJ='-non_shared'
15832        ;;
15833      esac
15834      ;;
15835
15836    osf3* | osf4* | osf5*)
15837      lt_prog_compiler_wl_GCJ='-Wl,'
15838      # All OSF/1 code is PIC.
15839      lt_prog_compiler_static_GCJ='-non_shared'
15840      ;;
15841
15842    solaris*)
15843      lt_prog_compiler_pic_GCJ='-KPIC'
15844      lt_prog_compiler_static_GCJ='-Bstatic'
15845      case $cc_basename in
15846      f77* | f90* | f95*)
15847	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15848      *)
15849	lt_prog_compiler_wl_GCJ='-Wl,';;
15850      esac
15851      ;;
15852
15853    sunos4*)
15854      lt_prog_compiler_wl_GCJ='-Qoption ld '
15855      lt_prog_compiler_pic_GCJ='-PIC'
15856      lt_prog_compiler_static_GCJ='-Bstatic'
15857      ;;
15858
15859    sysv4 | sysv4.2uw2* | sysv4.3*)
15860      lt_prog_compiler_wl_GCJ='-Wl,'
15861      lt_prog_compiler_pic_GCJ='-KPIC'
15862      lt_prog_compiler_static_GCJ='-Bstatic'
15863      ;;
15864
15865    sysv4*MP*)
15866      if test -d /usr/nec ;then
15867	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15868	lt_prog_compiler_static_GCJ='-Bstatic'
15869      fi
15870      ;;
15871
15872    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15873      lt_prog_compiler_wl_GCJ='-Wl,'
15874      lt_prog_compiler_pic_GCJ='-KPIC'
15875      lt_prog_compiler_static_GCJ='-Bstatic'
15876      ;;
15877
15878    unicos*)
15879      lt_prog_compiler_wl_GCJ='-Wl,'
15880      lt_prog_compiler_can_build_shared_GCJ=no
15881      ;;
15882
15883    uts4*)
15884      lt_prog_compiler_pic_GCJ='-pic'
15885      lt_prog_compiler_static_GCJ='-Bstatic'
15886      ;;
15887
15888    *)
15889      lt_prog_compiler_can_build_shared_GCJ=no
15890      ;;
15891    esac
15892  fi
15893
15894echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15895echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15896
15897#
15898# Check to make sure the PIC flag actually works.
15899#
15900if test -n "$lt_prog_compiler_pic_GCJ"; then
15901
15902echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15903echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15904if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15905  echo $ECHO_N "(cached) $ECHO_C" >&6
15906else
15907  lt_prog_compiler_pic_works_GCJ=no
15908  ac_outfile=conftest.$ac_objext
15909   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15910   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15911   # Insert the option either (1) after the last *FLAGS variable, or
15912   # (2) before a word containing "conftest.", or (3) at the end.
15913   # Note that $ac_compile itself does not contain backslashes and begins
15914   # with a dollar sign (not a hyphen), so the echo should work correctly.
15915   # The option is referenced via a variable to avoid confusing sed.
15916   lt_compile=`echo "$ac_compile" | $SED \
15917   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15918   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15919   -e 's:$: $lt_compiler_flag:'`
15920   (eval echo "\"\$as_me:15920: $lt_compile\"" >&5)
15921   (eval "$lt_compile" 2>conftest.err)
15922   ac_status=$?
15923   cat conftest.err >&5
15924   echo "$as_me:15924: \$? = $ac_status" >&5
15925   if (exit $ac_status) && test -s "$ac_outfile"; then
15926     # The compiler can only warn and ignore the option if not recognized
15927     # So say no if there are warnings other than the usual output.
15928     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15929     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15930     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15931       lt_prog_compiler_pic_works_GCJ=yes
15932     fi
15933   fi
15934   $rm conftest*
15935
15936fi
15937echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15938echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15939
15940if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15941    case $lt_prog_compiler_pic_GCJ in
15942     "" | " "*) ;;
15943     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15944     esac
15945else
15946    lt_prog_compiler_pic_GCJ=
15947     lt_prog_compiler_can_build_shared_GCJ=no
15948fi
15949
15950fi
15951case $host_os in
15952  # For platforms which do not support PIC, -DPIC is meaningless:
15953  *djgpp*)
15954    lt_prog_compiler_pic_GCJ=
15955    ;;
15956  *)
15957    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15958    ;;
15959esac
15960
15961#
15962# Check to make sure the static flag actually works.
15963#
15964wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15965echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15966echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15967if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15968  echo $ECHO_N "(cached) $ECHO_C" >&6
15969else
15970  lt_prog_compiler_static_works_GCJ=no
15971   save_LDFLAGS="$LDFLAGS"
15972   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15973   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15974   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15975     # The linker can only warn and ignore the option if not recognized
15976     # So say no if there are warnings
15977     if test -s conftest.err; then
15978       # Append any errors to the config.log.
15979       cat conftest.err 1>&5
15980       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15981       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15982       if diff conftest.exp conftest.er2 >/dev/null; then
15983         lt_prog_compiler_static_works_GCJ=yes
15984       fi
15985     else
15986       lt_prog_compiler_static_works_GCJ=yes
15987     fi
15988   fi
15989   $rm conftest*
15990   LDFLAGS="$save_LDFLAGS"
15991
15992fi
15993echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15994echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15995
15996if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15997    :
15998else
15999    lt_prog_compiler_static_GCJ=
16000fi
16001
16002
16003echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16004echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16005if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16006  echo $ECHO_N "(cached) $ECHO_C" >&6
16007else
16008  lt_cv_prog_compiler_c_o_GCJ=no
16009   $rm -r conftest 2>/dev/null
16010   mkdir conftest
16011   cd conftest
16012   mkdir out
16013   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16014
16015   lt_compiler_flag="-o out/conftest2.$ac_objext"
16016   # Insert the option either (1) after the last *FLAGS variable, or
16017   # (2) before a word containing "conftest.", or (3) at the end.
16018   # Note that $ac_compile itself does not contain backslashes and begins
16019   # with a dollar sign (not a hyphen), so the echo should work correctly.
16020   lt_compile=`echo "$ac_compile" | $SED \
16021   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16023   -e 's:$: $lt_compiler_flag:'`
16024   (eval echo "\"\$as_me:16024: $lt_compile\"" >&5)
16025   (eval "$lt_compile" 2>out/conftest.err)
16026   ac_status=$?
16027   cat out/conftest.err >&5
16028   echo "$as_me:16028: \$? = $ac_status" >&5
16029   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16030   then
16031     # The compiler can only warn and ignore the option if not recognized
16032     # So say no if there are warnings
16033     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16034     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16035     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16036       lt_cv_prog_compiler_c_o_GCJ=yes
16037     fi
16038   fi
16039   chmod u+w . 2>&5
16040   $rm conftest*
16041   # SGI C++ compiler will create directory out/ii_files/ for
16042   # template instantiation
16043   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16044   $rm out/* && rmdir out
16045   cd ..
16046   rmdir conftest
16047   $rm conftest*
16048
16049fi
16050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16051echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16052
16053
16054hard_links="nottested"
16055if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16056  # do not overwrite the value of need_locks provided by the user
16057  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16059  hard_links=yes
16060  $rm conftest*
16061  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16062  touch conftest.a
16063  ln conftest.a conftest.b 2>&5 || hard_links=no
16064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16065  echo "$as_me:$LINENO: result: $hard_links" >&5
16066echo "${ECHO_T}$hard_links" >&6
16067  if test "$hard_links" = no; then
16068    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16070    need_locks=warn
16071  fi
16072else
16073  need_locks=no
16074fi
16075
16076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16078
16079  runpath_var=
16080  allow_undefined_flag_GCJ=
16081  enable_shared_with_static_runtimes_GCJ=no
16082  archive_cmds_GCJ=
16083  archive_expsym_cmds_GCJ=
16084  old_archive_From_new_cmds_GCJ=
16085  old_archive_from_expsyms_cmds_GCJ=
16086  export_dynamic_flag_spec_GCJ=
16087  whole_archive_flag_spec_GCJ=
16088  thread_safe_flag_spec_GCJ=
16089  hardcode_libdir_flag_spec_GCJ=
16090  hardcode_libdir_flag_spec_ld_GCJ=
16091  hardcode_libdir_separator_GCJ=
16092  hardcode_direct_GCJ=no
16093  hardcode_minus_L_GCJ=no
16094  hardcode_shlibpath_var_GCJ=unsupported
16095  link_all_deplibs_GCJ=unknown
16096  hardcode_automatic_GCJ=no
16097  module_cmds_GCJ=
16098  module_expsym_cmds_GCJ=
16099  always_export_symbols_GCJ=no
16100  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16101  # include_expsyms should be a list of space-separated symbols to be *always*
16102  # included in the symbol list
16103  include_expsyms_GCJ=
16104  # exclude_expsyms can be an extended regexp of symbols to exclude
16105  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16106  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16107  # as well as any symbol that contains `d'.
16108  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16109  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16110  # platforms (ab)use it in PIC code, but their linkers get confused if
16111  # the symbol is explicitly referenced.  Since portable code cannot
16112  # rely on this symbol name, it's probably fine to never include it in
16113  # preloaded symbol tables.
16114  extract_expsyms_cmds=
16115  # Just being paranoid about ensuring that cc_basename is set.
16116  for cc_temp in $compiler""; do
16117  case $cc_temp in
16118    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16119    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16120    \-*) ;;
16121    *) break;;
16122  esac
16123done
16124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16125
16126  case $host_os in
16127  cygwin* | mingw* | pw32*)
16128    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16129    # When not using gcc, we currently assume that we are using
16130    # Microsoft Visual C++.
16131    if test "$GCC" != yes; then
16132      with_gnu_ld=no
16133    fi
16134    ;;
16135  interix*)
16136    # we just hope/assume this is gcc and not c89 (= MSVC++)
16137    with_gnu_ld=yes
16138    ;;
16139  openbsd*)
16140    with_gnu_ld=no
16141    ;;
16142  esac
16143
16144  ld_shlibs_GCJ=yes
16145  if test "$with_gnu_ld" = yes; then
16146    # If archive_cmds runs LD, not CC, wlarc should be empty
16147    wlarc='${wl}'
16148
16149    # Set some defaults for GNU ld with shared library support. These
16150    # are reset later if shared libraries are not supported. Putting them
16151    # here allows them to be overridden if necessary.
16152    runpath_var=LD_RUN_PATH
16153    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16154    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16155    # ancient GNU ld didn't support --whole-archive et. al.
16156    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16157	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16158      else
16159  	whole_archive_flag_spec_GCJ=
16160    fi
16161    supports_anon_versioning=no
16162    case `$LD -v 2>/dev/null` in
16163      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16164      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16165      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16166      *\ 2.11.*) ;; # other 2.11 versions
16167      *) supports_anon_versioning=yes ;;
16168    esac
16169
16170    # See if GNU ld supports shared libraries.
16171    case $host_os in
16172    aix3* | aix4* | aix5*)
16173      # On AIX/PPC, the GNU linker is very broken
16174      if test "$host_cpu" != ia64; then
16175	ld_shlibs_GCJ=no
16176	cat <<EOF 1>&2
16177
16178*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16179*** to be unable to reliably create shared libraries on AIX.
16180*** Therefore, libtool is disabling shared libraries support.  If you
16181*** really care for shared libraries, you may want to modify your PATH
16182*** so that a non-GNU linker is found, and then restart.
16183
16184EOF
16185      fi
16186      ;;
16187
16188    amigaos*)
16189      archive_cmds_GCJ='$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)'
16190      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191      hardcode_minus_L_GCJ=yes
16192
16193      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16194      # that the semantics of dynamic libraries on AmigaOS, at least up
16195      # to version 4, is to share data among multiple programs linked
16196      # with the same dynamic library.  Since this doesn't match the
16197      # behavior of shared libraries on other platforms, we can't use
16198      # them.
16199      ld_shlibs_GCJ=no
16200      ;;
16201
16202    beos*)
16203      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16204	allow_undefined_flag_GCJ=unsupported
16205	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16206	# support --undefined.  This deserves some investigation.  FIXME
16207	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16208      else
16209	ld_shlibs_GCJ=no
16210      fi
16211      ;;
16212
16213    cygwin* | mingw* | pw32*)
16214      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16215      # as there is no search path for DLLs.
16216      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16217      allow_undefined_flag_GCJ=unsupported
16218      always_export_symbols_GCJ=no
16219      enable_shared_with_static_runtimes_GCJ=yes
16220      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16221
16222      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16223        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16224	# If the export-symbols file already is a .def file (1st line
16225	# is EXPORTS), use it as is; otherwise, prepend...
16226	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16227	  cp $export_symbols $output_objdir/$soname.def;
16228	else
16229	  echo EXPORTS > $output_objdir/$soname.def;
16230	  cat $export_symbols >> $output_objdir/$soname.def;
16231	fi~
16232	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16233      else
16234	ld_shlibs_GCJ=no
16235      fi
16236      ;;
16237
16238    interix3*)
16239      hardcode_direct_GCJ=no
16240      hardcode_shlibpath_var_GCJ=no
16241      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16242      export_dynamic_flag_spec_GCJ='${wl}-E'
16243      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16244      # Instead, shared libraries are loaded at an image base (0x10000000 by
16245      # default) and relocated if they conflict, which is a slow very memory
16246      # consuming and fragmenting process.  To avoid this, we pick a random,
16247      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16248      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16249      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16250      archive_expsym_cmds_GCJ='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'
16251      ;;
16252
16253    linux*)
16254      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16255	tmp_addflag=
16256	case $cc_basename,$host_cpu in
16257	pgcc*)				# Portland Group C compiler
16258	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16259	  tmp_addflag=' $pic_flag'
16260	  ;;
16261	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16262	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16263	  tmp_addflag=' $pic_flag -Mnomain' ;;
16264	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16265	  tmp_addflag=' -i_dynamic' ;;
16266	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16267	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16268	ifc* | ifort*)			# Intel Fortran compiler
16269	  tmp_addflag=' -nofor_main' ;;
16270	esac
16271	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272
16273	if test $supports_anon_versioning = yes; then
16274	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16275  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16276  $echo "local: *; };" >> $output_objdir/$libname.ver~
16277	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16278	fi
16279      else
16280	ld_shlibs_GCJ=no
16281      fi
16282      ;;
16283
16284    netbsd*)
16285      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16286	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16287	wlarc=
16288      else
16289	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16290	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16291      fi
16292      ;;
16293
16294    solaris*)
16295      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16296	ld_shlibs_GCJ=no
16297	cat <<EOF 1>&2
16298
16299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16300*** create shared libraries on Solaris systems.  Therefore, libtool
16301*** is disabling shared libraries support.  We urge you to upgrade GNU
16302*** binutils to release 2.9.1 or newer.  Another option is to modify
16303*** your PATH or compiler configuration so that the native linker is
16304*** used, and then restart.
16305
16306EOF
16307      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16308	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16310      else
16311	ld_shlibs_GCJ=no
16312      fi
16313      ;;
16314
16315    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16316      case `$LD -v 2>&1` in
16317        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16318	ld_shlibs_GCJ=no
16319	cat <<_LT_EOF 1>&2
16320
16321*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16322*** reliably create shared libraries on SCO systems.  Therefore, libtool
16323*** is disabling shared libraries support.  We urge you to upgrade GNU
16324*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16325*** your PATH or compiler configuration so that the native linker is
16326*** used, and then restart.
16327
16328_LT_EOF
16329	;;
16330	*)
16331	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16332	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16333	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16334	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16335	  else
16336	    ld_shlibs_GCJ=no
16337	  fi
16338	;;
16339      esac
16340      ;;
16341
16342    sunos4*)
16343      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16344      wlarc=
16345      hardcode_direct_GCJ=yes
16346      hardcode_shlibpath_var_GCJ=no
16347      ;;
16348
16349    *)
16350      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16351	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16353      else
16354	ld_shlibs_GCJ=no
16355      fi
16356      ;;
16357    esac
16358
16359    if test "$ld_shlibs_GCJ" = no; then
16360      runpath_var=
16361      hardcode_libdir_flag_spec_GCJ=
16362      export_dynamic_flag_spec_GCJ=
16363      whole_archive_flag_spec_GCJ=
16364    fi
16365  else
16366    # PORTME fill in a description of your system's linker (not GNU ld)
16367    case $host_os in
16368    aix3*)
16369      allow_undefined_flag_GCJ=unsupported
16370      always_export_symbols_GCJ=yes
16371      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16372      # Note: this linker hardcodes the directories in LIBPATH if there
16373      # are no directories specified by -L.
16374      hardcode_minus_L_GCJ=yes
16375      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16376	# Neither direct hardcoding nor static linking is supported with a
16377	# broken collect2.
16378	hardcode_direct_GCJ=unsupported
16379      fi
16380      ;;
16381
16382    aix4* | aix5*)
16383      if test "$host_cpu" = ia64; then
16384	# On IA64, the linker does run time linking by default, so we don't
16385	# have to do anything special.
16386	aix_use_runtimelinking=no
16387	exp_sym_flag='-Bexport'
16388	no_entry_flag=""
16389      else
16390	# If we're using GNU nm, then we don't want the "-C" option.
16391	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16392	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16393	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16394	else
16395	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16396	fi
16397	aix_use_runtimelinking=no
16398
16399	# Test if we are trying to use run time linking or normal
16400	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16401	# need to do runtime linking.
16402	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16403	  for ld_flag in $LDFLAGS; do
16404  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16405  	    aix_use_runtimelinking=yes
16406  	    break
16407  	  fi
16408	  done
16409	  ;;
16410	esac
16411
16412	exp_sym_flag='-bexport'
16413	no_entry_flag='-bnoentry'
16414      fi
16415
16416      # When large executables or shared objects are built, AIX ld can
16417      # have problems creating the table of contents.  If linking a library
16418      # or program results in "error TOC overflow" add -mminimal-toc to
16419      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16420      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16421
16422      archive_cmds_GCJ=''
16423      hardcode_direct_GCJ=yes
16424      hardcode_libdir_separator_GCJ=':'
16425      link_all_deplibs_GCJ=yes
16426
16427      if test "$GCC" = yes; then
16428	case $host_os in aix4.[012]|aix4.[012].*)
16429	# We only want to do this on AIX 4.2 and lower, the check
16430	# below for broken collect2 doesn't work under 4.3+
16431	  collect2name=`${CC} -print-prog-name=collect2`
16432	  if test -f "$collect2name" && \
16433  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16434	  then
16435  	  # We have reworked collect2
16436  	  hardcode_direct_GCJ=yes
16437	  else
16438  	  # We have old collect2
16439  	  hardcode_direct_GCJ=unsupported
16440  	  # It fails to find uninstalled libraries when the uninstalled
16441  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16442  	  # to unsupported forces relinking
16443  	  hardcode_minus_L_GCJ=yes
16444  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445  	  hardcode_libdir_separator_GCJ=
16446	  fi
16447	  ;;
16448	esac
16449	shared_flag='-shared'
16450	if test "$aix_use_runtimelinking" = yes; then
16451	  shared_flag="$shared_flag "'${wl}-G'
16452	fi
16453      else
16454	# not using gcc
16455	if test "$host_cpu" = ia64; then
16456  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16457  	# chokes on -Wl,-G. The following line is correct:
16458	  shared_flag='-G'
16459	else
16460	  if test "$aix_use_runtimelinking" = yes; then
16461	    shared_flag='${wl}-G'
16462	  else
16463	    shared_flag='${wl}-bM:SRE'
16464	  fi
16465	fi
16466      fi
16467
16468      # It seems that -bexpall does not export symbols beginning with
16469      # underscore (_), so it is better to generate a list of symbols to export.
16470      always_export_symbols_GCJ=yes
16471      if test "$aix_use_runtimelinking" = yes; then
16472	# Warning - without using the other runtime loading flags (-brtl),
16473	# -berok will link without error, but may produce a broken library.
16474	allow_undefined_flag_GCJ='-berok'
16475       # Determine the default libpath from the value encoded in an empty executable.
16476       cat >conftest.$ac_ext <<_ACEOF
16477/* confdefs.h.  */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h.  */
16482
16483int
16484main ()
16485{
16486
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext conftest$ac_exeext
16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493  (eval $ac_link) 2>conftest.er1
16494  ac_status=$?
16495  grep -v '^ *+' conftest.er1 >conftest.err
16496  rm -f conftest.er1
16497  cat conftest.err >&5
16498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499  (exit $ac_status); } &&
16500	 { ac_try='test -z "$ac_c_werror_flag"
16501			 || test ! -s conftest.err'
16502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503  (eval $ac_try) 2>&5
16504  ac_status=$?
16505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506  (exit $ac_status); }; } &&
16507	 { ac_try='test -s conftest$ac_exeext'
16508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509  (eval $ac_try) 2>&5
16510  ac_status=$?
16511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512  (exit $ac_status); }; }; then
16513
16514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16515}'`
16516# Check for a 64-bit object if we didn't find anything.
16517if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16518}'`; fi
16519else
16520  echo "$as_me: failed program was:" >&5
16521sed 's/^/| /' conftest.$ac_ext >&5
16522
16523fi
16524rm -f conftest.err conftest.$ac_objext \
16525      conftest$ac_exeext conftest.$ac_ext
16526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16527
16528       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16529	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16530       else
16531	if test "$host_cpu" = ia64; then
16532	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16533	  allow_undefined_flag_GCJ="-z nodefs"
16534	  archive_expsym_cmds_GCJ="\$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"
16535	else
16536	 # Determine the default libpath from the value encoded in an empty executable.
16537	 cat >conftest.$ac_ext <<_ACEOF
16538/* confdefs.h.  */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h.  */
16543
16544int
16545main ()
16546{
16547
16548  ;
16549  return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext conftest$ac_exeext
16553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16554  (eval $ac_link) 2>conftest.er1
16555  ac_status=$?
16556  grep -v '^ *+' conftest.er1 >conftest.err
16557  rm -f conftest.er1
16558  cat conftest.err >&5
16559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560  (exit $ac_status); } &&
16561	 { ac_try='test -z "$ac_c_werror_flag"
16562			 || test ! -s conftest.err'
16563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564  (eval $ac_try) 2>&5
16565  ac_status=$?
16566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567  (exit $ac_status); }; } &&
16568	 { ac_try='test -s conftest$ac_exeext'
16569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570  (eval $ac_try) 2>&5
16571  ac_status=$?
16572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573  (exit $ac_status); }; }; then
16574
16575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16576}'`
16577# Check for a 64-bit object if we didn't find anything.
16578if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16579}'`; fi
16580else
16581  echo "$as_me: failed program was:" >&5
16582sed 's/^/| /' conftest.$ac_ext >&5
16583
16584fi
16585rm -f conftest.err conftest.$ac_objext \
16586      conftest$ac_exeext conftest.$ac_ext
16587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16588
16589	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16590	  # Warning - without using the other run time loading flags,
16591	  # -berok will link without error, but may produce a broken library.
16592	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16593	  allow_undefined_flag_GCJ=' ${wl}-berok'
16594	  # Exported symbols can be pulled into shared objects from archives
16595	  whole_archive_flag_spec_GCJ='$convenience'
16596	  archive_cmds_need_lc_GCJ=yes
16597	  # This is similar to how AIX traditionally builds its shared libraries.
16598	  archive_expsym_cmds_GCJ="\$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'
16599	fi
16600      fi
16601      ;;
16602
16603    amigaos*)
16604      archive_cmds_GCJ='$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)'
16605      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16606      hardcode_minus_L_GCJ=yes
16607      # see comment about different semantics on the GNU ld section
16608      ld_shlibs_GCJ=no
16609      ;;
16610
16611    bsdi[45]*)
16612      export_dynamic_flag_spec_GCJ=-rdynamic
16613      ;;
16614
16615    cygwin* | mingw* | pw32*)
16616      # When not using gcc, we currently assume that we are using
16617      # Microsoft Visual C++.
16618      # hardcode_libdir_flag_spec is actually meaningless, as there is
16619      # no search path for DLLs.
16620      hardcode_libdir_flag_spec_GCJ=' '
16621      allow_undefined_flag_GCJ=unsupported
16622      # Tell ltmain to make .lib files, not .a files.
16623      libext=lib
16624      # Tell ltmain to make .dll files, not .so files.
16625      shrext_cmds=".dll"
16626      # FIXME: Setting linknames here is a bad hack.
16627      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16628      # The linker will automatically build a .lib file if we build a DLL.
16629      old_archive_From_new_cmds_GCJ='true'
16630      # FIXME: Should let the user specify the lib program.
16631      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16632      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16633      enable_shared_with_static_runtimes_GCJ=yes
16634      ;;
16635
16636    darwin* | rhapsody*)
16637      case $host_os in
16638        rhapsody* | darwin1.[012])
16639         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16640         ;;
16641       *) # Darwin 1.3 on
16642         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16643           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16644         else
16645           case ${MACOSX_DEPLOYMENT_TARGET} in
16646             10.[012])
16647               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16648               ;;
16649             10.*)
16650               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16651               ;;
16652           esac
16653         fi
16654         ;;
16655      esac
16656      archive_cmds_need_lc_GCJ=no
16657      hardcode_direct_GCJ=no
16658      hardcode_automatic_GCJ=yes
16659      hardcode_shlibpath_var_GCJ=unsupported
16660      whole_archive_flag_spec_GCJ=''
16661      link_all_deplibs_GCJ=yes
16662    if test "$GCC" = yes ; then
16663    	output_verbose_link_cmd='echo'
16664        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16665      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16666      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16667      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
16668      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
16669    else
16670      case $cc_basename in
16671        xlc*)
16672         output_verbose_link_cmd='echo'
16673         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16674         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16675          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16676         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
16677          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
16678          ;;
16679       *)
16680         ld_shlibs_GCJ=no
16681          ;;
16682      esac
16683    fi
16684      ;;
16685
16686    dgux*)
16687      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16689      hardcode_shlibpath_var_GCJ=no
16690      ;;
16691
16692    freebsd1*)
16693      ld_shlibs_GCJ=no
16694      ;;
16695
16696    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16697    # support.  Future versions do this automatically, but an explicit c++rt0.o
16698    # does not break anything, and helps significantly (at the cost of a little
16699    # extra space).
16700    freebsd2.2*)
16701      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16702      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16703      hardcode_direct_GCJ=yes
16704      hardcode_shlibpath_var_GCJ=no
16705      ;;
16706
16707    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16708    freebsd2*)
16709      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16710      hardcode_direct_GCJ=yes
16711      hardcode_minus_L_GCJ=yes
16712      hardcode_shlibpath_var_GCJ=no
16713      ;;
16714
16715    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16716    freebsd* | kfreebsd*-gnu | dragonfly*)
16717      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16718      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16719      hardcode_direct_GCJ=yes
16720      hardcode_shlibpath_var_GCJ=no
16721      ;;
16722
16723    hpux9*)
16724      if test "$GCC" = yes; then
16725	archive_cmds_GCJ='$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'
16726      else
16727	archive_cmds_GCJ='$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'
16728      fi
16729      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16730      hardcode_libdir_separator_GCJ=:
16731      hardcode_direct_GCJ=yes
16732
16733      # hardcode_minus_L: Not really in the search PATH,
16734      # but as the default location of the library.
16735      hardcode_minus_L_GCJ=yes
16736      export_dynamic_flag_spec_GCJ='${wl}-E'
16737      ;;
16738
16739    hpux10*)
16740      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16741	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16742      else
16743	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16744      fi
16745      if test "$with_gnu_ld" = no; then
16746	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16747	hardcode_libdir_separator_GCJ=:
16748
16749	hardcode_direct_GCJ=yes
16750	export_dynamic_flag_spec_GCJ='${wl}-E'
16751
16752	# hardcode_minus_L: Not really in the search PATH,
16753	# but as the default location of the library.
16754	hardcode_minus_L_GCJ=yes
16755      fi
16756      ;;
16757
16758    hpux11*)
16759      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16760	case $host_cpu in
16761	hppa*64*)
16762	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16763	  ;;
16764	ia64*)
16765	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16766	  ;;
16767	*)
16768	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16769	  ;;
16770	esac
16771      else
16772	case $host_cpu in
16773	hppa*64*)
16774	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16775	  ;;
16776	ia64*)
16777	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16778	  ;;
16779	*)
16780	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16781	  ;;
16782	esac
16783      fi
16784      if test "$with_gnu_ld" = no; then
16785	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16786	hardcode_libdir_separator_GCJ=:
16787
16788	case $host_cpu in
16789	hppa*64*|ia64*)
16790	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16791	  hardcode_direct_GCJ=no
16792	  hardcode_shlibpath_var_GCJ=no
16793	  ;;
16794	*)
16795	  hardcode_direct_GCJ=yes
16796	  export_dynamic_flag_spec_GCJ='${wl}-E'
16797
16798	  # hardcode_minus_L: Not really in the search PATH,
16799	  # but as the default location of the library.
16800	  hardcode_minus_L_GCJ=yes
16801	  ;;
16802	esac
16803      fi
16804      ;;
16805
16806    irix5* | irix6* | nonstopux*)
16807      if test "$GCC" = yes; then
16808	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16809      else
16810	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16811	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16812      fi
16813      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16814      hardcode_libdir_separator_GCJ=:
16815      link_all_deplibs_GCJ=yes
16816      ;;
16817
16818    netbsd*)
16819      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16820	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16821      else
16822	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16823      fi
16824      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825      hardcode_direct_GCJ=yes
16826      hardcode_shlibpath_var_GCJ=no
16827      ;;
16828
16829    newsos6)
16830      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831      hardcode_direct_GCJ=yes
16832      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16833      hardcode_libdir_separator_GCJ=:
16834      hardcode_shlibpath_var_GCJ=no
16835      ;;
16836
16837    openbsd*)
16838      hardcode_direct_GCJ=yes
16839      hardcode_shlibpath_var_GCJ=no
16840      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16841	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16842	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16843	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16844	export_dynamic_flag_spec_GCJ='${wl}-E'
16845      else
16846       case $host_os in
16847	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16848	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16849	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16850	   ;;
16851	 *)
16852	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16853	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16854	   ;;
16855       esac
16856      fi
16857      ;;
16858
16859    os2*)
16860      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861      hardcode_minus_L_GCJ=yes
16862      allow_undefined_flag_GCJ=unsupported
16863      archive_cmds_GCJ='$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'
16864      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16865      ;;
16866
16867    osf3*)
16868      if test "$GCC" = yes; then
16869	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16870	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16871      else
16872	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16873	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16874      fi
16875      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16876      hardcode_libdir_separator_GCJ=:
16877      ;;
16878
16879    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16880      if test "$GCC" = yes; then
16881	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16882	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16883	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16884      else
16885	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16886	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16887	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16888	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16889
16890	# Both c and cxx compiler support -rpath directly
16891	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16892      fi
16893      hardcode_libdir_separator_GCJ=:
16894      ;;
16895
16896    solaris*)
16897      no_undefined_flag_GCJ=' -z text'
16898      if test "$GCC" = yes; then
16899	wlarc='${wl}'
16900	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16901	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16902	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16903      else
16904	wlarc=''
16905	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16906	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16907  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16908      fi
16909      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16910      hardcode_shlibpath_var_GCJ=no
16911      case $host_os in
16912      solaris2.[0-5] | solaris2.[0-5].*) ;;
16913      *)
16914 	# The compiler driver will combine linker options so we
16915 	# cannot just pass the convience library names through
16916 	# without $wl, iff we do not link with $LD.
16917 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16918 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16919 	case $wlarc in
16920 	'')
16921 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16922 	*)
16923 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16924 	esac ;;
16925      esac
16926      link_all_deplibs_GCJ=yes
16927      ;;
16928
16929    sunos4*)
16930      if test "x$host_vendor" = xsequent; then
16931	# Use $CC to link under sequent, because it throws in some extra .o
16932	# files that make .init and .fini sections work.
16933	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16934      else
16935	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16936      fi
16937      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16938      hardcode_direct_GCJ=yes
16939      hardcode_minus_L_GCJ=yes
16940      hardcode_shlibpath_var_GCJ=no
16941      ;;
16942
16943    sysv4)
16944      case $host_vendor in
16945	sni)
16946	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947	  hardcode_direct_GCJ=yes # is this really true???
16948	;;
16949	siemens)
16950	  ## LD is ld it makes a PLAMLIB
16951	  ## CC just makes a GrossModule.
16952	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16953	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16954	  hardcode_direct_GCJ=no
16955        ;;
16956	motorola)
16957	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16959	;;
16960      esac
16961      runpath_var='LD_RUN_PATH'
16962      hardcode_shlibpath_var_GCJ=no
16963      ;;
16964
16965    sysv4.3*)
16966      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967      hardcode_shlibpath_var_GCJ=no
16968      export_dynamic_flag_spec_GCJ='-Bexport'
16969      ;;
16970
16971    sysv4*MP*)
16972      if test -d /usr/nec; then
16973	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974	hardcode_shlibpath_var_GCJ=no
16975	runpath_var=LD_RUN_PATH
16976	hardcode_runpath_var=yes
16977	ld_shlibs_GCJ=yes
16978      fi
16979      ;;
16980
16981    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16982      no_undefined_flag_GCJ='${wl}-z,text'
16983      archive_cmds_need_lc_GCJ=no
16984      hardcode_shlibpath_var_GCJ=no
16985      runpath_var='LD_RUN_PATH'
16986
16987      if test "$GCC" = yes; then
16988	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16989	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16990      else
16991	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16992	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16993      fi
16994      ;;
16995
16996    sysv5* | sco3.2v5* | sco5v6*)
16997      # Note: We can NOT use -z defs as we might desire, because we do not
16998      # link with -lc, and that would cause any symbols used from libc to
16999      # always be unresolved, which means just about no library would
17000      # ever link correctly.  If we're not using GNU ld we use -z text
17001      # though, which does catch some bad symbols but isn't as heavy-handed
17002      # as -z defs.
17003      no_undefined_flag_GCJ='${wl}-z,text'
17004      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17005      archive_cmds_need_lc_GCJ=no
17006      hardcode_shlibpath_var_GCJ=no
17007      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17008      hardcode_libdir_separator_GCJ=':'
17009      link_all_deplibs_GCJ=yes
17010      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17011      runpath_var='LD_RUN_PATH'
17012
17013      if test "$GCC" = yes; then
17014	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17015	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17016      else
17017	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17018	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17019      fi
17020      ;;
17021
17022    uts4*)
17023      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025      hardcode_shlibpath_var_GCJ=no
17026      ;;
17027
17028    *)
17029      ld_shlibs_GCJ=no
17030      ;;
17031    esac
17032  fi
17033
17034echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17035echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17036test "$ld_shlibs_GCJ" = no && can_build_shared=no
17037
17038#
17039# Do we need to explicitly link libc?
17040#
17041case "x$archive_cmds_need_lc_GCJ" in
17042x|xyes)
17043  # Assume -lc should be added
17044  archive_cmds_need_lc_GCJ=yes
17045
17046  if test "$enable_shared" = yes && test "$GCC" = yes; then
17047    case $archive_cmds_GCJ in
17048    *'~'*)
17049      # FIXME: we may have to deal with multi-command sequences.
17050      ;;
17051    '$CC '*)
17052      # Test whether the compiler implicitly links with -lc since on some
17053      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17054      # to ld, don't add -lc before -lgcc.
17055      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17056echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17057      $rm conftest*
17058      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17059
17060      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061  (eval $ac_compile) 2>&5
17062  ac_status=$?
17063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064  (exit $ac_status); } 2>conftest.err; then
17065        soname=conftest
17066        lib=conftest
17067        libobjs=conftest.$ac_objext
17068        deplibs=
17069        wl=$lt_prog_compiler_wl_GCJ
17070	pic_flag=$lt_prog_compiler_pic_GCJ
17071        compiler_flags=-v
17072        linker_flags=-v
17073        verstring=
17074        output_objdir=.
17075        libname=conftest
17076        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17077        allow_undefined_flag_GCJ=
17078        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17079  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17080  ac_status=$?
17081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082  (exit $ac_status); }
17083        then
17084	  archive_cmds_need_lc_GCJ=no
17085        else
17086	  archive_cmds_need_lc_GCJ=yes
17087        fi
17088        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17089      else
17090        cat conftest.err 1>&5
17091      fi
17092      $rm conftest*
17093      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17094echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17095      ;;
17096    esac
17097  fi
17098  ;;
17099esac
17100
17101echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17102echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17103library_names_spec=
17104libname_spec='lib$name'
17105soname_spec=
17106shrext_cmds=".so"
17107postinstall_cmds=
17108postuninstall_cmds=
17109finish_cmds=
17110finish_eval=
17111shlibpath_var=
17112shlibpath_overrides_runpath=unknown
17113version_type=none
17114dynamic_linker="$host_os ld.so"
17115sys_lib_dlsearch_path_spec="/lib /usr/lib"
17116if test "$GCC" = yes; then
17117  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17118  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17119    # if the path contains ";" then we assume it to be the separator
17120    # otherwise default to the standard path separator (i.e. ":") - it is
17121    # assumed that no part of a normal pathname contains ";" but that should
17122    # okay in the real world where ";" in dirpaths is itself problematic.
17123    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17124  else
17125    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17126  fi
17127else
17128  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17129fi
17130need_lib_prefix=unknown
17131hardcode_into_libs=no
17132
17133# when you set need_version to no, make sure it does not cause -set_version
17134# flags to be left without arguments
17135need_version=unknown
17136
17137case $host_os in
17138aix3*)
17139  version_type=linux
17140  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17141  shlibpath_var=LIBPATH
17142
17143  # AIX 3 has no versioning support, so we append a major version to the name.
17144  soname_spec='${libname}${release}${shared_ext}$major'
17145  ;;
17146
17147aix4* | aix5*)
17148  version_type=linux
17149  need_lib_prefix=no
17150  need_version=no
17151  hardcode_into_libs=yes
17152  if test "$host_cpu" = ia64; then
17153    # AIX 5 supports IA64
17154    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17155    shlibpath_var=LD_LIBRARY_PATH
17156  else
17157    # With GCC up to 2.95.x, collect2 would create an import file
17158    # for dependence libraries.  The import file would start with
17159    # the line `#! .'.  This would cause the generated library to
17160    # depend on `.', always an invalid library.  This was fixed in
17161    # development snapshots of GCC prior to 3.0.
17162    case $host_os in
17163      aix4 | aix4.[01] | aix4.[01].*)
17164      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17165	   echo ' yes '
17166	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17167	:
17168      else
17169	can_build_shared=no
17170      fi
17171      ;;
17172    esac
17173    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17174    # soname into executable. Probably we can add versioning support to
17175    # collect2, so additional links can be useful in future.
17176    if test "$aix_use_runtimelinking" = yes; then
17177      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17178      # instead of lib<name>.a to let people know that these are not
17179      # typical AIX shared libraries.
17180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181    else
17182      # We preserve .a as extension for shared libraries through AIX4.2
17183      # and later when we are not doing run time linking.
17184      library_names_spec='${libname}${release}.a $libname.a'
17185      soname_spec='${libname}${release}${shared_ext}$major'
17186    fi
17187    shlibpath_var=LIBPATH
17188  fi
17189  ;;
17190
17191amigaos*)
17192  library_names_spec='$libname.ixlibrary $libname.a'
17193  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17194  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'
17195  ;;
17196
17197beos*)
17198  library_names_spec='${libname}${shared_ext}'
17199  dynamic_linker="$host_os ld.so"
17200  shlibpath_var=LIBRARY_PATH
17201  ;;
17202
17203bsdi[45]*)
17204  version_type=linux
17205  need_version=no
17206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207  soname_spec='${libname}${release}${shared_ext}$major'
17208  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17209  shlibpath_var=LD_LIBRARY_PATH
17210  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17211  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17212  # the default ld.so.conf also contains /usr/contrib/lib and
17213  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17214  # libtool to hard-code these into programs
17215  ;;
17216
17217cygwin* | mingw* | pw32*)
17218  version_type=windows
17219  shrext_cmds=".dll"
17220  need_version=no
17221  need_lib_prefix=no
17222
17223  case $GCC,$host_os in
17224  yes,cygwin* | yes,mingw* | yes,pw32*)
17225    library_names_spec='$libname.dll.a'
17226    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17227    postinstall_cmds='base_file=`basename \${file}`~
17228      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17229      dldir=$destdir/`dirname \$dlpath`~
17230      test -d \$dldir || mkdir -p \$dldir~
17231      $install_prog $dir/$dlname \$dldir/$dlname~
17232      chmod a+x \$dldir/$dlname'
17233    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17234      dlpath=$dir/\$dldll~
17235       $rm \$dlpath'
17236    shlibpath_overrides_runpath=yes
17237
17238    case $host_os in
17239    cygwin*)
17240      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17241      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17242      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17243      ;;
17244    mingw*)
17245      # MinGW DLLs use traditional 'lib' prefix
17246      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17247      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17248      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17249        # It is most probably a Windows format PATH printed by
17250        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17251        # path with ; separators, and with drive letters. We can handle the
17252        # drive letters (cygwin fileutils understands them), so leave them,
17253        # especially as we might pass files found there to a mingw objdump,
17254        # which wouldn't understand a cygwinified path. Ahh.
17255        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17256      else
17257        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17258      fi
17259      ;;
17260    pw32*)
17261      # pw32 DLLs use 'pw' prefix rather than 'lib'
17262      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17263      ;;
17264    esac
17265    ;;
17266
17267  *)
17268    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17269    ;;
17270  esac
17271  dynamic_linker='Win32 ld.exe'
17272  # FIXME: first we should search . and the directory the executable is in
17273  shlibpath_var=PATH
17274  ;;
17275
17276darwin* | rhapsody*)
17277  dynamic_linker="$host_os dyld"
17278  version_type=darwin
17279  need_lib_prefix=no
17280  need_version=no
17281  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17282  soname_spec='${libname}${release}${major}$shared_ext'
17283  shlibpath_overrides_runpath=yes
17284  shlibpath_var=DYLD_LIBRARY_PATH
17285  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17286  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17287  if test "$GCC" = yes; then
17288    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17289  else
17290    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17291  fi
17292  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17293  ;;
17294
17295dgux*)
17296  version_type=linux
17297  need_lib_prefix=no
17298  need_version=no
17299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17300  soname_spec='${libname}${release}${shared_ext}$major'
17301  shlibpath_var=LD_LIBRARY_PATH
17302  ;;
17303
17304freebsd1*)
17305  dynamic_linker=no
17306  ;;
17307
17308kfreebsd*-gnu)
17309  version_type=linux
17310  need_lib_prefix=no
17311  need_version=no
17312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17313  soname_spec='${libname}${release}${shared_ext}$major'
17314  shlibpath_var=LD_LIBRARY_PATH
17315  shlibpath_overrides_runpath=no
17316  hardcode_into_libs=yes
17317  dynamic_linker='GNU ld.so'
17318  ;;
17319
17320freebsd* | dragonfly*)
17321  # DragonFly does not have aout.  When/if they implement a new
17322  # versioning mechanism, adjust this.
17323  if test -x /usr/bin/objformat; then
17324    objformat=`/usr/bin/objformat`
17325  else
17326    case $host_os in
17327    freebsd[123]*) objformat=aout ;;
17328    *) objformat=elf ;;
17329    esac
17330  fi
17331  version_type=freebsd-$objformat
17332  case $version_type in
17333    freebsd-elf*)
17334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17335      need_version=no
17336      need_lib_prefix=no
17337      ;;
17338    freebsd-*)
17339      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17340      need_version=yes
17341      ;;
17342  esac
17343  shlibpath_var=LD_LIBRARY_PATH
17344  case $host_os in
17345  freebsd2*)
17346    shlibpath_overrides_runpath=yes
17347    ;;
17348  freebsd3.[01]* | freebsdelf3.[01]*)
17349    shlibpath_overrides_runpath=yes
17350    hardcode_into_libs=yes
17351    ;;
17352  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17353  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17354    shlibpath_overrides_runpath=no
17355    hardcode_into_libs=yes
17356    ;;
17357  freebsd*) # from 4.6 on
17358    shlibpath_overrides_runpath=yes
17359    hardcode_into_libs=yes
17360    ;;
17361  esac
17362  ;;
17363
17364gnu*)
17365  version_type=linux
17366  need_lib_prefix=no
17367  need_version=no
17368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17369  soname_spec='${libname}${release}${shared_ext}$major'
17370  shlibpath_var=LD_LIBRARY_PATH
17371  hardcode_into_libs=yes
17372  ;;
17373
17374hpux9* | hpux10* | hpux11*)
17375  # Give a soname corresponding to the major version so that dld.sl refuses to
17376  # link against other versions.
17377  version_type=sunos
17378  need_lib_prefix=no
17379  need_version=no
17380  case $host_cpu in
17381  ia64*)
17382    shrext_cmds='.so'
17383    hardcode_into_libs=yes
17384    dynamic_linker="$host_os dld.so"
17385    shlibpath_var=LD_LIBRARY_PATH
17386    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388    soname_spec='${libname}${release}${shared_ext}$major'
17389    if test "X$HPUX_IA64_MODE" = X32; then
17390      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17391    else
17392      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17393    fi
17394    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17395    ;;
17396   hppa*64*)
17397     shrext_cmds='.sl'
17398     hardcode_into_libs=yes
17399     dynamic_linker="$host_os dld.sl"
17400     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17401     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403     soname_spec='${libname}${release}${shared_ext}$major'
17404     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17405     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17406     ;;
17407   *)
17408    shrext_cmds='.sl'
17409    dynamic_linker="$host_os dld.sl"
17410    shlibpath_var=SHLIB_PATH
17411    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413    soname_spec='${libname}${release}${shared_ext}$major'
17414    ;;
17415  esac
17416  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17417  postinstall_cmds='chmod 555 $lib'
17418  ;;
17419
17420interix3*)
17421  version_type=linux
17422  need_lib_prefix=no
17423  need_version=no
17424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17425  soname_spec='${libname}${release}${shared_ext}$major'
17426  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17427  shlibpath_var=LD_LIBRARY_PATH
17428  shlibpath_overrides_runpath=no
17429  hardcode_into_libs=yes
17430  ;;
17431
17432irix5* | irix6* | nonstopux*)
17433  case $host_os in
17434    nonstopux*) version_type=nonstopux ;;
17435    *)
17436	if test "$lt_cv_prog_gnu_ld" = yes; then
17437		version_type=linux
17438	else
17439		version_type=irix
17440	fi ;;
17441  esac
17442  need_lib_prefix=no
17443  need_version=no
17444  soname_spec='${libname}${release}${shared_ext}$major'
17445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17446  case $host_os in
17447  irix5* | nonstopux*)
17448    libsuff= shlibsuff=
17449    ;;
17450  *)
17451    case $LD in # libtool.m4 will add one of these switches to LD
17452    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17453      libsuff= shlibsuff= libmagic=32-bit;;
17454    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17455      libsuff=32 shlibsuff=N32 libmagic=N32;;
17456    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17457      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17458    *) libsuff= shlibsuff= libmagic=never-match;;
17459    esac
17460    ;;
17461  esac
17462  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17463  shlibpath_overrides_runpath=no
17464  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17465  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17466  hardcode_into_libs=yes
17467  ;;
17468
17469# No shared lib support for Linux oldld, aout, or coff.
17470linux*oldld* | linux*aout* | linux*coff*)
17471  dynamic_linker=no
17472  ;;
17473
17474# This must be Linux ELF.
17475linux*)
17476  version_type=linux
17477  need_lib_prefix=no
17478  need_version=no
17479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480  soname_spec='${libname}${release}${shared_ext}$major'
17481  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17482  shlibpath_var=LD_LIBRARY_PATH
17483  shlibpath_overrides_runpath=no
17484  # This implies no fast_install, which is unacceptable.
17485  # Some rework will be needed to allow for fast_install
17486  # before this can be enabled.
17487  hardcode_into_libs=yes
17488
17489  # find out which ABI we are using
17490  libsuff=
17491  case "$host_cpu" in
17492  x86_64*|s390x*|powerpc64*)
17493    echo '#line 17493 "configure"' > conftest.$ac_ext
17494    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495  (eval $ac_compile) 2>&5
17496  ac_status=$?
17497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498  (exit $ac_status); }; then
17499      case `/usr/bin/file conftest.$ac_objext` in
17500      *64-bit*)
17501        libsuff=64
17502        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17503        ;;
17504      esac
17505    fi
17506    rm -rf conftest*
17507    ;;
17508  esac
17509
17510  # Append ld.so.conf contents to the search path
17511  if test -f /etc/ld.so.conf; then
17512    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17513    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17514  fi
17515
17516  # We used to test for /lib/ld.so.1 and disable shared libraries on
17517  # powerpc, because MkLinux only supported shared libraries with the
17518  # GNU dynamic linker.  Since this was broken with cross compilers,
17519  # most powerpc-linux boxes support dynamic linking these days and
17520  # people can always --disable-shared, the test was removed, and we
17521  # assume the GNU/Linux dynamic linker is in use.
17522  dynamic_linker='GNU/Linux ld.so'
17523  ;;
17524
17525knetbsd*-gnu)
17526  version_type=linux
17527  need_lib_prefix=no
17528  need_version=no
17529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17530  soname_spec='${libname}${release}${shared_ext}$major'
17531  shlibpath_var=LD_LIBRARY_PATH
17532  shlibpath_overrides_runpath=no
17533  hardcode_into_libs=yes
17534  dynamic_linker='GNU ld.so'
17535  ;;
17536
17537netbsd*)
17538  version_type=sunos
17539  need_lib_prefix=no
17540  need_version=no
17541  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17543    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17544    dynamic_linker='NetBSD (a.out) ld.so'
17545  else
17546    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17547    soname_spec='${libname}${release}${shared_ext}$major'
17548    dynamic_linker='NetBSD ld.elf_so'
17549  fi
17550  shlibpath_var=LD_LIBRARY_PATH
17551  shlibpath_overrides_runpath=yes
17552  hardcode_into_libs=yes
17553  ;;
17554
17555newsos6)
17556  version_type=linux
17557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558  shlibpath_var=LD_LIBRARY_PATH
17559  shlibpath_overrides_runpath=yes
17560  ;;
17561
17562nto-qnx*)
17563  version_type=linux
17564  need_lib_prefix=no
17565  need_version=no
17566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567  soname_spec='${libname}${release}${shared_ext}$major'
17568  shlibpath_var=LD_LIBRARY_PATH
17569  shlibpath_overrides_runpath=yes
17570  ;;
17571
17572openbsd*)
17573  version_type=sunos
17574  sys_lib_dlsearch_path_spec="/usr/lib"
17575  need_lib_prefix=no
17576  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17577  case $host_os in
17578    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17579    *)                         need_version=no  ;;
17580  esac
17581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17582  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17583  shlibpath_var=LD_LIBRARY_PATH
17584  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17585    case $host_os in
17586      openbsd2.[89] | openbsd2.[89].*)
17587	shlibpath_overrides_runpath=no
17588	;;
17589      *)
17590	shlibpath_overrides_runpath=yes
17591	;;
17592      esac
17593  else
17594    shlibpath_overrides_runpath=yes
17595  fi
17596  ;;
17597
17598os2*)
17599  libname_spec='$name'
17600  shrext_cmds=".dll"
17601  need_lib_prefix=no
17602  library_names_spec='$libname${shared_ext} $libname.a'
17603  dynamic_linker='OS/2 ld.exe'
17604  shlibpath_var=LIBPATH
17605  ;;
17606
17607osf3* | osf4* | osf5*)
17608  version_type=osf
17609  need_lib_prefix=no
17610  need_version=no
17611  soname_spec='${libname}${release}${shared_ext}$major'
17612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613  shlibpath_var=LD_LIBRARY_PATH
17614  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17615  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17616  ;;
17617
17618solaris*)
17619  version_type=linux
17620  need_lib_prefix=no
17621  need_version=no
17622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623  soname_spec='${libname}${release}${shared_ext}$major'
17624  shlibpath_var=LD_LIBRARY_PATH
17625  shlibpath_overrides_runpath=yes
17626  hardcode_into_libs=yes
17627  # ldd complains unless libraries are executable
17628  postinstall_cmds='chmod +x $lib'
17629  ;;
17630
17631sunos4*)
17632  version_type=sunos
17633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17635  shlibpath_var=LD_LIBRARY_PATH
17636  shlibpath_overrides_runpath=yes
17637  if test "$with_gnu_ld" = yes; then
17638    need_lib_prefix=no
17639  fi
17640  need_version=yes
17641  ;;
17642
17643sysv4 | sysv4.3*)
17644  version_type=linux
17645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646  soname_spec='${libname}${release}${shared_ext}$major'
17647  shlibpath_var=LD_LIBRARY_PATH
17648  case $host_vendor in
17649    sni)
17650      shlibpath_overrides_runpath=no
17651      need_lib_prefix=no
17652      export_dynamic_flag_spec='${wl}-Blargedynsym'
17653      runpath_var=LD_RUN_PATH
17654      ;;
17655    siemens)
17656      need_lib_prefix=no
17657      ;;
17658    motorola)
17659      need_lib_prefix=no
17660      need_version=no
17661      shlibpath_overrides_runpath=no
17662      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17663      ;;
17664  esac
17665  ;;
17666
17667sysv4*MP*)
17668  if test -d /usr/nec ;then
17669    version_type=linux
17670    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17671    soname_spec='$libname${shared_ext}.$major'
17672    shlibpath_var=LD_LIBRARY_PATH
17673  fi
17674  ;;
17675
17676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17677  version_type=freebsd-elf
17678  need_lib_prefix=no
17679  need_version=no
17680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17681  soname_spec='${libname}${release}${shared_ext}$major'
17682  shlibpath_var=LD_LIBRARY_PATH
17683  hardcode_into_libs=yes
17684  if test "$with_gnu_ld" = yes; then
17685    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17686    shlibpath_overrides_runpath=no
17687  else
17688    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17689    shlibpath_overrides_runpath=yes
17690    case $host_os in
17691      sco3.2v5*)
17692        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17693	;;
17694    esac
17695  fi
17696  sys_lib_dlsearch_path_spec='/usr/lib'
17697  ;;
17698
17699uts4*)
17700  version_type=linux
17701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702  soname_spec='${libname}${release}${shared_ext}$major'
17703  shlibpath_var=LD_LIBRARY_PATH
17704  ;;
17705
17706*)
17707  dynamic_linker=no
17708  ;;
17709esac
17710echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17711echo "${ECHO_T}$dynamic_linker" >&6
17712test "$dynamic_linker" = no && can_build_shared=no
17713
17714variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17715if test "$GCC" = yes; then
17716  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17717fi
17718
17719echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17720echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17721hardcode_action_GCJ=
17722if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17723   test -n "$runpath_var_GCJ" || \
17724   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17725
17726  # We can hardcode non-existant directories.
17727  if test "$hardcode_direct_GCJ" != no &&
17728     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729     # have to relink, otherwise we might link with an installed library
17730     # when we should be linking with a yet-to-be-installed one
17731     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17732     test "$hardcode_minus_L_GCJ" != no; then
17733    # Linking always hardcodes the temporary library directory.
17734    hardcode_action_GCJ=relink
17735  else
17736    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737    hardcode_action_GCJ=immediate
17738  fi
17739else
17740  # We cannot hardcode anything, or else we can only hardcode existing
17741  # directories.
17742  hardcode_action_GCJ=unsupported
17743fi
17744echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17745echo "${ECHO_T}$hardcode_action_GCJ" >&6
17746
17747if test "$hardcode_action_GCJ" = relink; then
17748  # Fast installation is not supported
17749  enable_fast_install=no
17750elif test "$shlibpath_overrides_runpath" = yes ||
17751     test "$enable_shared" = no; then
17752  # Fast installation is not necessary
17753  enable_fast_install=needless
17754fi
17755
17756
17757# The else clause should only fire when bootstrapping the
17758# libtool distribution, otherwise you forgot to ship ltmain.sh
17759# with your package, and you will get complaints that there are
17760# no rules to generate ltmain.sh.
17761if test -f "$ltmain"; then
17762  # See if we are running on zsh, and set the options which allow our commands through
17763  # without removal of \ escapes.
17764  if test -n "${ZSH_VERSION+set}" ; then
17765    setopt NO_GLOB_SUBST
17766  fi
17767  # Now quote all the things that may contain metacharacters while being
17768  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17769  # variables and quote the copies for generation of the libtool script.
17770  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17771    SED SHELL STRIP \
17772    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17773    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17774    deplibs_check_method reload_flag reload_cmds need_locks \
17775    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17776    lt_cv_sys_global_symbol_to_c_name_address \
17777    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17778    old_postinstall_cmds old_postuninstall_cmds \
17779    compiler_GCJ \
17780    CC_GCJ \
17781    LD_GCJ \
17782    lt_prog_compiler_wl_GCJ \
17783    lt_prog_compiler_pic_GCJ \
17784    lt_prog_compiler_static_GCJ \
17785    lt_prog_compiler_no_builtin_flag_GCJ \
17786    export_dynamic_flag_spec_GCJ \
17787    thread_safe_flag_spec_GCJ \
17788    whole_archive_flag_spec_GCJ \
17789    enable_shared_with_static_runtimes_GCJ \
17790    old_archive_cmds_GCJ \
17791    old_archive_from_new_cmds_GCJ \
17792    predep_objects_GCJ \
17793    postdep_objects_GCJ \
17794    predeps_GCJ \
17795    postdeps_GCJ \
17796    compiler_lib_search_path_GCJ \
17797    archive_cmds_GCJ \
17798    archive_expsym_cmds_GCJ \
17799    postinstall_cmds_GCJ \
17800    postuninstall_cmds_GCJ \
17801    old_archive_from_expsyms_cmds_GCJ \
17802    allow_undefined_flag_GCJ \
17803    no_undefined_flag_GCJ \
17804    export_symbols_cmds_GCJ \
17805    hardcode_libdir_flag_spec_GCJ \
17806    hardcode_libdir_flag_spec_ld_GCJ \
17807    hardcode_libdir_separator_GCJ \
17808    hardcode_automatic_GCJ \
17809    module_cmds_GCJ \
17810    module_expsym_cmds_GCJ \
17811    lt_cv_prog_compiler_c_o_GCJ \
17812    exclude_expsyms_GCJ \
17813    include_expsyms_GCJ; do
17814
17815    case $var in
17816    old_archive_cmds_GCJ | \
17817    old_archive_from_new_cmds_GCJ | \
17818    archive_cmds_GCJ | \
17819    archive_expsym_cmds_GCJ | \
17820    module_cmds_GCJ | \
17821    module_expsym_cmds_GCJ | \
17822    old_archive_from_expsyms_cmds_GCJ | \
17823    export_symbols_cmds_GCJ | \
17824    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17825    postinstall_cmds | postuninstall_cmds | \
17826    old_postinstall_cmds | old_postuninstall_cmds | \
17827    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17828      # Double-quote double-evaled strings.
17829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17830      ;;
17831    *)
17832      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17833      ;;
17834    esac
17835  done
17836
17837  case $lt_echo in
17838  *'\$0 --fallback-echo"')
17839    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17840    ;;
17841  esac
17842
17843cfgfile="$ofile"
17844
17845  cat <<__EOF__ >> "$cfgfile"
17846# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17847
17848# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849
17850# Shell to use when invoking shell scripts.
17851SHELL=$lt_SHELL
17852
17853# Whether or not to build shared libraries.
17854build_libtool_libs=$enable_shared
17855
17856# Whether or not to build static libraries.
17857build_old_libs=$enable_static
17858
17859# Whether or not to add -lc for building shared libraries.
17860build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17861
17862# Whether or not to disallow shared libs when runtime libs are static
17863allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17864
17865# Whether or not to optimize for fast installation.
17866fast_install=$enable_fast_install
17867
17868# The host system.
17869host_alias=$host_alias
17870host=$host
17871host_os=$host_os
17872
17873# The build system.
17874build_alias=$build_alias
17875build=$build
17876build_os=$build_os
17877
17878# An echo program that does not interpret backslashes.
17879echo=$lt_echo
17880
17881# The archiver.
17882AR=$lt_AR
17883AR_FLAGS=$lt_AR_FLAGS
17884
17885# A C compiler.
17886LTCC=$lt_LTCC
17887
17888# LTCC compiler flags.
17889LTCFLAGS=$lt_LTCFLAGS
17890
17891# A language-specific compiler.
17892CC=$lt_compiler_GCJ
17893
17894# Is the compiler the GNU C compiler?
17895with_gcc=$GCC_GCJ
17896
17897# An ERE matcher.
17898EGREP=$lt_EGREP
17899
17900# The linker used to build libraries.
17901LD=$lt_LD_GCJ
17902
17903# Whether we need hard or soft links.
17904LN_S=$lt_LN_S
17905
17906# A BSD-compatible nm program.
17907NM=$lt_NM
17908
17909# A symbol stripping program
17910STRIP=$lt_STRIP
17911
17912# Used to examine libraries when file_magic_cmd begins "file"
17913MAGIC_CMD=$MAGIC_CMD
17914
17915# Used on cygwin: DLL creation program.
17916DLLTOOL="$DLLTOOL"
17917
17918# Used on cygwin: object dumper.
17919OBJDUMP="$OBJDUMP"
17920
17921# Used on cygwin: assembler.
17922AS="$AS"
17923
17924# The name of the directory that contains temporary libtool files.
17925objdir=$objdir
17926
17927# How to create reloadable object files.
17928reload_flag=$lt_reload_flag
17929reload_cmds=$lt_reload_cmds
17930
17931# How to pass a linker flag through the compiler.
17932wl=$lt_lt_prog_compiler_wl_GCJ
17933
17934# Object file suffix (normally "o").
17935objext="$ac_objext"
17936
17937# Old archive suffix (normally "a").
17938libext="$libext"
17939
17940# Shared library suffix (normally ".so").
17941shrext_cmds='$shrext_cmds'
17942
17943# Executable file suffix (normally "").
17944exeext="$exeext"
17945
17946# Additional compiler flags for building library objects.
17947pic_flag=$lt_lt_prog_compiler_pic_GCJ
17948pic_mode=$pic_mode
17949
17950# What is the maximum length of a command?
17951max_cmd_len=$lt_cv_sys_max_cmd_len
17952
17953# Does compiler simultaneously support -c and -o options?
17954compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17955
17956# Must we lock files when doing compilation?
17957need_locks=$lt_need_locks
17958
17959# Do we need the lib prefix for modules?
17960need_lib_prefix=$need_lib_prefix
17961
17962# Do we need a version for libraries?
17963need_version=$need_version
17964
17965# Whether dlopen is supported.
17966dlopen_support=$enable_dlopen
17967
17968# Whether dlopen of programs is supported.
17969dlopen_self=$enable_dlopen_self
17970
17971# Whether dlopen of statically linked programs is supported.
17972dlopen_self_static=$enable_dlopen_self_static
17973
17974# Compiler flag to prevent dynamic linking.
17975link_static_flag=$lt_lt_prog_compiler_static_GCJ
17976
17977# Compiler flag to turn off builtin functions.
17978no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17979
17980# Compiler flag to allow reflexive dlopens.
17981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17982
17983# Compiler flag to generate shared objects directly from archives.
17984whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17985
17986# Compiler flag to generate thread-safe objects.
17987thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17988
17989# Library versioning type.
17990version_type=$version_type
17991
17992# Format of library name prefix.
17993libname_spec=$lt_libname_spec
17994
17995# List of archive names.  First name is the real one, the rest are links.
17996# The last name is the one that the linker finds with -lNAME.
17997library_names_spec=$lt_library_names_spec
17998
17999# The coded name of the library, if different from the real name.
18000soname_spec=$lt_soname_spec
18001
18002# Commands used to build and install an old-style archive.
18003RANLIB=$lt_RANLIB
18004old_archive_cmds=$lt_old_archive_cmds_GCJ
18005old_postinstall_cmds=$lt_old_postinstall_cmds
18006old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007
18008# Create an old-style archive from a shared archive.
18009old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18010
18011# Create a temporary old-style archive to link instead of a shared archive.
18012old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18013
18014# Commands used to build and install a shared archive.
18015archive_cmds=$lt_archive_cmds_GCJ
18016archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18017postinstall_cmds=$lt_postinstall_cmds
18018postuninstall_cmds=$lt_postuninstall_cmds
18019
18020# Commands used to build a loadable module (assumed same as above if empty)
18021module_cmds=$lt_module_cmds_GCJ
18022module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18023
18024# Commands to strip libraries.
18025old_striplib=$lt_old_striplib
18026striplib=$lt_striplib
18027
18028# Dependencies to place before the objects being linked to create a
18029# shared library.
18030predep_objects=$lt_predep_objects_GCJ
18031
18032# Dependencies to place after the objects being linked to create a
18033# shared library.
18034postdep_objects=$lt_postdep_objects_GCJ
18035
18036# Dependencies to place before the objects being linked to create a
18037# shared library.
18038predeps=$lt_predeps_GCJ
18039
18040# Dependencies to place after the objects being linked to create a
18041# shared library.
18042postdeps=$lt_postdeps_GCJ
18043
18044# The library search path used internally by the compiler when linking
18045# a shared library.
18046compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18047
18048# Method to check whether dependent libraries are shared objects.
18049deplibs_check_method=$lt_deplibs_check_method
18050
18051# Command to use when deplibs_check_method == file_magic.
18052file_magic_cmd=$lt_file_magic_cmd
18053
18054# Flag that allows shared libraries with undefined symbols to be built.
18055allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18056
18057# Flag that forces no undefined symbols.
18058no_undefined_flag=$lt_no_undefined_flag_GCJ
18059
18060# Commands used to finish a libtool library installation in a directory.
18061finish_cmds=$lt_finish_cmds
18062
18063# Same as above, but a single script fragment to be evaled but not shown.
18064finish_eval=$lt_finish_eval
18065
18066# Take the output of nm and produce a listing of raw symbols and C names.
18067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068
18069# Transform the output of nm in a proper C declaration
18070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071
18072# Transform the output of nm in a C name address pair
18073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074
18075# This is the shared library runtime path variable.
18076runpath_var=$runpath_var
18077
18078# This is the shared library path variable.
18079shlibpath_var=$shlibpath_var
18080
18081# Is shlibpath searched before the hard-coded library search path?
18082shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083
18084# How to hardcode a shared library path into an executable.
18085hardcode_action=$hardcode_action_GCJ
18086
18087# Whether we should hardcode library paths into libraries.
18088hardcode_into_libs=$hardcode_into_libs
18089
18090# Flag to hardcode \$libdir into a binary during linking.
18091# This must work even if \$libdir does not exist.
18092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18093
18094# If ld is used when linking, flag to hardcode \$libdir into
18095# a binary during linking. This must work even if \$libdir does
18096# not exist.
18097hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18098
18099# Whether we need a single -rpath flag with a separated argument.
18100hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18101
18102# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103# resulting binary.
18104hardcode_direct=$hardcode_direct_GCJ
18105
18106# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107# resulting binary.
18108hardcode_minus_L=$hardcode_minus_L_GCJ
18109
18110# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111# the resulting binary.
18112hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18113
18114# Set to yes if building a shared library automatically hardcodes DIR into the library
18115# and all subsequent libraries and executables linked against it.
18116hardcode_automatic=$hardcode_automatic_GCJ
18117
18118# Variables whose values should be saved in libtool wrapper scripts and
18119# restored at relink time.
18120variables_saved_for_relink="$variables_saved_for_relink"
18121
18122# Whether libtool must link a program against all its dependency libraries.
18123link_all_deplibs=$link_all_deplibs_GCJ
18124
18125# Compile-time system search path for libraries
18126sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127
18128# Run-time system search path for libraries
18129sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130
18131# Fix the shell variable \$srcfile for the compiler.
18132fix_srcfile_path="$fix_srcfile_path_GCJ"
18133
18134# Set to yes if exported symbols are required.
18135always_export_symbols=$always_export_symbols_GCJ
18136
18137# The commands to list exported symbols.
18138export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18139
18140# The commands to extract the exported symbol list from a shared archive.
18141extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142
18143# Symbols that should not be listed in the preloaded symbols.
18144exclude_expsyms=$lt_exclude_expsyms_GCJ
18145
18146# Symbols that must always be exported.
18147include_expsyms=$lt_include_expsyms_GCJ
18148
18149# ### END LIBTOOL TAG CONFIG: $tagname
18150
18151__EOF__
18152
18153
18154else
18155  # If there is no Makefile yet, we rely on a make rule to execute
18156  # `config.status --recheck' to rerun these tests and create the
18157  # libtool script then.
18158  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18159  if test -f "$ltmain_in"; then
18160    test -f Makefile && make "$ltmain"
18161  fi
18162fi
18163
18164
18165ac_ext=c
18166ac_cpp='$CPP $CPPFLAGS'
18167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169ac_compiler_gnu=$ac_cv_c_compiler_gnu
18170
18171CC="$lt_save_CC"
18172
18173	else
18174	  tagname=""
18175	fi
18176	;;
18177
18178      RC)
18179
18180
18181
18182# Source file extension for RC test sources.
18183ac_ext=rc
18184
18185# Object file extension for compiled RC test sources.
18186objext=o
18187objext_RC=$objext
18188
18189# Code to be used in simple compile tests
18190lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18191
18192# Code to be used in simple link tests
18193lt_simple_link_test_code="$lt_simple_compile_test_code"
18194
18195# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18196
18197# If no C compiler was specified, use CC.
18198LTCC=${LTCC-"$CC"}
18199
18200# If no C compiler flags were specified, use CFLAGS.
18201LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18202
18203# Allow CC to be a program name with arguments.
18204compiler=$CC
18205
18206
18207# save warnings/boilerplate of simple test code
18208ac_outfile=conftest.$ac_objext
18209printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18210eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18211_lt_compiler_boilerplate=`cat conftest.err`
18212$rm conftest*
18213
18214ac_outfile=conftest.$ac_objext
18215printf "$lt_simple_link_test_code" >conftest.$ac_ext
18216eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18217_lt_linker_boilerplate=`cat conftest.err`
18218$rm conftest*
18219
18220
18221# Allow CC to be a program name with arguments.
18222lt_save_CC="$CC"
18223CC=${RC-"windres"}
18224compiler=$CC
18225compiler_RC=$CC
18226for cc_temp in $compiler""; do
18227  case $cc_temp in
18228    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18229    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18230    \-*) ;;
18231    *) break;;
18232  esac
18233done
18234cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18235
18236lt_cv_prog_compiler_c_o_RC=yes
18237
18238# The else clause should only fire when bootstrapping the
18239# libtool distribution, otherwise you forgot to ship ltmain.sh
18240# with your package, and you will get complaints that there are
18241# no rules to generate ltmain.sh.
18242if test -f "$ltmain"; then
18243  # See if we are running on zsh, and set the options which allow our commands through
18244  # without removal of \ escapes.
18245  if test -n "${ZSH_VERSION+set}" ; then
18246    setopt NO_GLOB_SUBST
18247  fi
18248  # Now quote all the things that may contain metacharacters while being
18249  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18250  # variables and quote the copies for generation of the libtool script.
18251  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18252    SED SHELL STRIP \
18253    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18254    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18255    deplibs_check_method reload_flag reload_cmds need_locks \
18256    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18257    lt_cv_sys_global_symbol_to_c_name_address \
18258    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18259    old_postinstall_cmds old_postuninstall_cmds \
18260    compiler_RC \
18261    CC_RC \
18262    LD_RC \
18263    lt_prog_compiler_wl_RC \
18264    lt_prog_compiler_pic_RC \
18265    lt_prog_compiler_static_RC \
18266    lt_prog_compiler_no_builtin_flag_RC \
18267    export_dynamic_flag_spec_RC \
18268    thread_safe_flag_spec_RC \
18269    whole_archive_flag_spec_RC \
18270    enable_shared_with_static_runtimes_RC \
18271    old_archive_cmds_RC \
18272    old_archive_from_new_cmds_RC \
18273    predep_objects_RC \
18274    postdep_objects_RC \
18275    predeps_RC \
18276    postdeps_RC \
18277    compiler_lib_search_path_RC \
18278    archive_cmds_RC \
18279    archive_expsym_cmds_RC \
18280    postinstall_cmds_RC \
18281    postuninstall_cmds_RC \
18282    old_archive_from_expsyms_cmds_RC \
18283    allow_undefined_flag_RC \
18284    no_undefined_flag_RC \
18285    export_symbols_cmds_RC \
18286    hardcode_libdir_flag_spec_RC \
18287    hardcode_libdir_flag_spec_ld_RC \
18288    hardcode_libdir_separator_RC \
18289    hardcode_automatic_RC \
18290    module_cmds_RC \
18291    module_expsym_cmds_RC \
18292    lt_cv_prog_compiler_c_o_RC \
18293    exclude_expsyms_RC \
18294    include_expsyms_RC; do
18295
18296    case $var in
18297    old_archive_cmds_RC | \
18298    old_archive_from_new_cmds_RC | \
18299    archive_cmds_RC | \
18300    archive_expsym_cmds_RC | \
18301    module_cmds_RC | \
18302    module_expsym_cmds_RC | \
18303    old_archive_from_expsyms_cmds_RC | \
18304    export_symbols_cmds_RC | \
18305    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18306    postinstall_cmds | postuninstall_cmds | \
18307    old_postinstall_cmds | old_postuninstall_cmds | \
18308    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18309      # Double-quote double-evaled strings.
18310      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18311      ;;
18312    *)
18313      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18314      ;;
18315    esac
18316  done
18317
18318  case $lt_echo in
18319  *'\$0 --fallback-echo"')
18320    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18321    ;;
18322  esac
18323
18324cfgfile="$ofile"
18325
18326  cat <<__EOF__ >> "$cfgfile"
18327# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18328
18329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18330
18331# Shell to use when invoking shell scripts.
18332SHELL=$lt_SHELL
18333
18334# Whether or not to build shared libraries.
18335build_libtool_libs=$enable_shared
18336
18337# Whether or not to build static libraries.
18338build_old_libs=$enable_static
18339
18340# Whether or not to add -lc for building shared libraries.
18341build_libtool_need_lc=$archive_cmds_need_lc_RC
18342
18343# Whether or not to disallow shared libs when runtime libs are static
18344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18345
18346# Whether or not to optimize for fast installation.
18347fast_install=$enable_fast_install
18348
18349# The host system.
18350host_alias=$host_alias
18351host=$host
18352host_os=$host_os
18353
18354# The build system.
18355build_alias=$build_alias
18356build=$build
18357build_os=$build_os
18358
18359# An echo program that does not interpret backslashes.
18360echo=$lt_echo
18361
18362# The archiver.
18363AR=$lt_AR
18364AR_FLAGS=$lt_AR_FLAGS
18365
18366# A C compiler.
18367LTCC=$lt_LTCC
18368
18369# LTCC compiler flags.
18370LTCFLAGS=$lt_LTCFLAGS
18371
18372# A language-specific compiler.
18373CC=$lt_compiler_RC
18374
18375# Is the compiler the GNU C compiler?
18376with_gcc=$GCC_RC
18377
18378# An ERE matcher.
18379EGREP=$lt_EGREP
18380
18381# The linker used to build libraries.
18382LD=$lt_LD_RC
18383
18384# Whether we need hard or soft links.
18385LN_S=$lt_LN_S
18386
18387# A BSD-compatible nm program.
18388NM=$lt_NM
18389
18390# A symbol stripping program
18391STRIP=$lt_STRIP
18392
18393# Used to examine libraries when file_magic_cmd begins "file"
18394MAGIC_CMD=$MAGIC_CMD
18395
18396# Used on cygwin: DLL creation program.
18397DLLTOOL="$DLLTOOL"
18398
18399# Used on cygwin: object dumper.
18400OBJDUMP="$OBJDUMP"
18401
18402# Used on cygwin: assembler.
18403AS="$AS"
18404
18405# The name of the directory that contains temporary libtool files.
18406objdir=$objdir
18407
18408# How to create reloadable object files.
18409reload_flag=$lt_reload_flag
18410reload_cmds=$lt_reload_cmds
18411
18412# How to pass a linker flag through the compiler.
18413wl=$lt_lt_prog_compiler_wl_RC
18414
18415# Object file suffix (normally "o").
18416objext="$ac_objext"
18417
18418# Old archive suffix (normally "a").
18419libext="$libext"
18420
18421# Shared library suffix (normally ".so").
18422shrext_cmds='$shrext_cmds'
18423
18424# Executable file suffix (normally "").
18425exeext="$exeext"
18426
18427# Additional compiler flags for building library objects.
18428pic_flag=$lt_lt_prog_compiler_pic_RC
18429pic_mode=$pic_mode
18430
18431# What is the maximum length of a command?
18432max_cmd_len=$lt_cv_sys_max_cmd_len
18433
18434# Does compiler simultaneously support -c and -o options?
18435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18436
18437# Must we lock files when doing compilation?
18438need_locks=$lt_need_locks
18439
18440# Do we need the lib prefix for modules?
18441need_lib_prefix=$need_lib_prefix
18442
18443# Do we need a version for libraries?
18444need_version=$need_version
18445
18446# Whether dlopen is supported.
18447dlopen_support=$enable_dlopen
18448
18449# Whether dlopen of programs is supported.
18450dlopen_self=$enable_dlopen_self
18451
18452# Whether dlopen of statically linked programs is supported.
18453dlopen_self_static=$enable_dlopen_self_static
18454
18455# Compiler flag to prevent dynamic linking.
18456link_static_flag=$lt_lt_prog_compiler_static_RC
18457
18458# Compiler flag to turn off builtin functions.
18459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18460
18461# Compiler flag to allow reflexive dlopens.
18462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18463
18464# Compiler flag to generate shared objects directly from archives.
18465whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18466
18467# Compiler flag to generate thread-safe objects.
18468thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18469
18470# Library versioning type.
18471version_type=$version_type
18472
18473# Format of library name prefix.
18474libname_spec=$lt_libname_spec
18475
18476# List of archive names.  First name is the real one, the rest are links.
18477# The last name is the one that the linker finds with -lNAME.
18478library_names_spec=$lt_library_names_spec
18479
18480# The coded name of the library, if different from the real name.
18481soname_spec=$lt_soname_spec
18482
18483# Commands used to build and install an old-style archive.
18484RANLIB=$lt_RANLIB
18485old_archive_cmds=$lt_old_archive_cmds_RC
18486old_postinstall_cmds=$lt_old_postinstall_cmds
18487old_postuninstall_cmds=$lt_old_postuninstall_cmds
18488
18489# Create an old-style archive from a shared archive.
18490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18491
18492# Create a temporary old-style archive to link instead of a shared archive.
18493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18494
18495# Commands used to build and install a shared archive.
18496archive_cmds=$lt_archive_cmds_RC
18497archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18498postinstall_cmds=$lt_postinstall_cmds
18499postuninstall_cmds=$lt_postuninstall_cmds
18500
18501# Commands used to build a loadable module (assumed same as above if empty)
18502module_cmds=$lt_module_cmds_RC
18503module_expsym_cmds=$lt_module_expsym_cmds_RC
18504
18505# Commands to strip libraries.
18506old_striplib=$lt_old_striplib
18507striplib=$lt_striplib
18508
18509# Dependencies to place before the objects being linked to create a
18510# shared library.
18511predep_objects=$lt_predep_objects_RC
18512
18513# Dependencies to place after the objects being linked to create a
18514# shared library.
18515postdep_objects=$lt_postdep_objects_RC
18516
18517# Dependencies to place before the objects being linked to create a
18518# shared library.
18519predeps=$lt_predeps_RC
18520
18521# Dependencies to place after the objects being linked to create a
18522# shared library.
18523postdeps=$lt_postdeps_RC
18524
18525# The library search path used internally by the compiler when linking
18526# a shared library.
18527compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18528
18529# Method to check whether dependent libraries are shared objects.
18530deplibs_check_method=$lt_deplibs_check_method
18531
18532# Command to use when deplibs_check_method == file_magic.
18533file_magic_cmd=$lt_file_magic_cmd
18534
18535# Flag that allows shared libraries with undefined symbols to be built.
18536allow_undefined_flag=$lt_allow_undefined_flag_RC
18537
18538# Flag that forces no undefined symbols.
18539no_undefined_flag=$lt_no_undefined_flag_RC
18540
18541# Commands used to finish a libtool library installation in a directory.
18542finish_cmds=$lt_finish_cmds
18543
18544# Same as above, but a single script fragment to be evaled but not shown.
18545finish_eval=$lt_finish_eval
18546
18547# Take the output of nm and produce a listing of raw symbols and C names.
18548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18549
18550# Transform the output of nm in a proper C declaration
18551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18552
18553# Transform the output of nm in a C name address pair
18554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18555
18556# This is the shared library runtime path variable.
18557runpath_var=$runpath_var
18558
18559# This is the shared library path variable.
18560shlibpath_var=$shlibpath_var
18561
18562# Is shlibpath searched before the hard-coded library search path?
18563shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18564
18565# How to hardcode a shared library path into an executable.
18566hardcode_action=$hardcode_action_RC
18567
18568# Whether we should hardcode library paths into libraries.
18569hardcode_into_libs=$hardcode_into_libs
18570
18571# Flag to hardcode \$libdir into a binary during linking.
18572# This must work even if \$libdir does not exist.
18573hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18574
18575# If ld is used when linking, flag to hardcode \$libdir into
18576# a binary during linking. This must work even if \$libdir does
18577# not exist.
18578hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18579
18580# Whether we need a single -rpath flag with a separated argument.
18581hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18582
18583# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18584# resulting binary.
18585hardcode_direct=$hardcode_direct_RC
18586
18587# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18588# resulting binary.
18589hardcode_minus_L=$hardcode_minus_L_RC
18590
18591# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18592# the resulting binary.
18593hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18594
18595# Set to yes if building a shared library automatically hardcodes DIR into the library
18596# and all subsequent libraries and executables linked against it.
18597hardcode_automatic=$hardcode_automatic_RC
18598
18599# Variables whose values should be saved in libtool wrapper scripts and
18600# restored at relink time.
18601variables_saved_for_relink="$variables_saved_for_relink"
18602
18603# Whether libtool must link a program against all its dependency libraries.
18604link_all_deplibs=$link_all_deplibs_RC
18605
18606# Compile-time system search path for libraries
18607sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18608
18609# Run-time system search path for libraries
18610sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18611
18612# Fix the shell variable \$srcfile for the compiler.
18613fix_srcfile_path="$fix_srcfile_path_RC"
18614
18615# Set to yes if exported symbols are required.
18616always_export_symbols=$always_export_symbols_RC
18617
18618# The commands to list exported symbols.
18619export_symbols_cmds=$lt_export_symbols_cmds_RC
18620
18621# The commands to extract the exported symbol list from a shared archive.
18622extract_expsyms_cmds=$lt_extract_expsyms_cmds
18623
18624# Symbols that should not be listed in the preloaded symbols.
18625exclude_expsyms=$lt_exclude_expsyms_RC
18626
18627# Symbols that must always be exported.
18628include_expsyms=$lt_include_expsyms_RC
18629
18630# ### END LIBTOOL TAG CONFIG: $tagname
18631
18632__EOF__
18633
18634
18635else
18636  # If there is no Makefile yet, we rely on a make rule to execute
18637  # `config.status --recheck' to rerun these tests and create the
18638  # libtool script then.
18639  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18640  if test -f "$ltmain_in"; then
18641    test -f Makefile && make "$ltmain"
18642  fi
18643fi
18644
18645
18646ac_ext=c
18647ac_cpp='$CPP $CPPFLAGS'
18648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18650ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651
18652CC="$lt_save_CC"
18653
18654	;;
18655
18656      *)
18657	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18658echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18659   { (exit 1); exit 1; }; }
18660	;;
18661      esac
18662
18663      # Append the new tag name to the list of available tags.
18664      if test -n "$tagname" ; then
18665      available_tags="$available_tags $tagname"
18666    fi
18667    fi
18668  done
18669  IFS="$lt_save_ifs"
18670
18671  # Now substitute the updated list of available tags.
18672  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18673    mv "${ofile}T" "$ofile"
18674    chmod +x "$ofile"
18675  else
18676    rm -f "${ofile}T"
18677    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18678echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18679   { (exit 1); exit 1; }; }
18680  fi
18681fi
18682
18683
18684
18685# This can be used to rebuild libtool when needed
18686LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18687
18688# Always use our own libtool.
18689LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18690
18691# Prevent multiple expansion
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712if test -n "$ac_tool_prefix"; then
18713  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18715echo "$as_me:$LINENO: checking for $ac_word" >&5
18716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18717if test "${ac_cv_prog_RANLIB+set}" = set; then
18718  echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720  if test -n "$RANLIB"; then
18721  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18722else
18723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726  IFS=$as_save_IFS
18727  test -z "$as_dir" && as_dir=.
18728  for ac_exec_ext in '' $ac_executable_extensions; do
18729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732    break 2
18733  fi
18734done
18735done
18736
18737fi
18738fi
18739RANLIB=$ac_cv_prog_RANLIB
18740if test -n "$RANLIB"; then
18741  echo "$as_me:$LINENO: result: $RANLIB" >&5
18742echo "${ECHO_T}$RANLIB" >&6
18743else
18744  echo "$as_me:$LINENO: result: no" >&5
18745echo "${ECHO_T}no" >&6
18746fi
18747
18748fi
18749if test -z "$ac_cv_prog_RANLIB"; then
18750  ac_ct_RANLIB=$RANLIB
18751  # Extract the first word of "ranlib", so it can be a program name with args.
18752set dummy ranlib; ac_word=$2
18753echo "$as_me:$LINENO: checking for $ac_word" >&5
18754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18755if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18756  echo $ECHO_N "(cached) $ECHO_C" >&6
18757else
18758  if test -n "$ac_ct_RANLIB"; then
18759  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18760else
18761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18762for as_dir in $PATH
18763do
18764  IFS=$as_save_IFS
18765  test -z "$as_dir" && as_dir=.
18766  for ac_exec_ext in '' $ac_executable_extensions; do
18767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18768    ac_cv_prog_ac_ct_RANLIB="ranlib"
18769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18770    break 2
18771  fi
18772done
18773done
18774
18775  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
18776fi
18777fi
18778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18779if test -n "$ac_ct_RANLIB"; then
18780  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18781echo "${ECHO_T}$ac_ct_RANLIB" >&6
18782else
18783  echo "$as_me:$LINENO: result: no" >&5
18784echo "${ECHO_T}no" >&6
18785fi
18786
18787  RANLIB=$ac_ct_RANLIB
18788else
18789  RANLIB="$ac_cv_prog_RANLIB"
18790fi
18791
18792
18793# Checks for header files.
18794echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18795echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18796if test "${ac_cv_header_stdc+set}" = set; then
18797  echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799  cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h.  */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h.  */
18805#include <stdlib.h>
18806#include <stdarg.h>
18807#include <string.h>
18808#include <float.h>
18809
18810int
18811main ()
18812{
18813
18814  ;
18815  return 0;
18816}
18817_ACEOF
18818rm -f conftest.$ac_objext
18819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820  (eval $ac_compile) 2>conftest.er1
18821  ac_status=$?
18822  grep -v '^ *+' conftest.er1 >conftest.err
18823  rm -f conftest.er1
18824  cat conftest.err >&5
18825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826  (exit $ac_status); } &&
18827	 { ac_try='test -z "$ac_c_werror_flag"
18828			 || test ! -s conftest.err'
18829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830  (eval $ac_try) 2>&5
18831  ac_status=$?
18832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833  (exit $ac_status); }; } &&
18834	 { ac_try='test -s conftest.$ac_objext'
18835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836  (eval $ac_try) 2>&5
18837  ac_status=$?
18838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839  (exit $ac_status); }; }; then
18840  ac_cv_header_stdc=yes
18841else
18842  echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
18845ac_cv_header_stdc=no
18846fi
18847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18848
18849if test $ac_cv_header_stdc = yes; then
18850  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18851  cat >conftest.$ac_ext <<_ACEOF
18852/* confdefs.h.  */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h.  */
18857#include <string.h>
18858
18859_ACEOF
18860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18861  $EGREP "memchr" >/dev/null 2>&1; then
18862  :
18863else
18864  ac_cv_header_stdc=no
18865fi
18866rm -f conftest*
18867
18868fi
18869
18870if test $ac_cv_header_stdc = yes; then
18871  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18872  cat >conftest.$ac_ext <<_ACEOF
18873/* confdefs.h.  */
18874_ACEOF
18875cat confdefs.h >>conftest.$ac_ext
18876cat >>conftest.$ac_ext <<_ACEOF
18877/* end confdefs.h.  */
18878#include <stdlib.h>
18879
18880_ACEOF
18881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18882  $EGREP "free" >/dev/null 2>&1; then
18883  :
18884else
18885  ac_cv_header_stdc=no
18886fi
18887rm -f conftest*
18888
18889fi
18890
18891if test $ac_cv_header_stdc = yes; then
18892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18893  if test "$cross_compiling" = yes; then
18894  :
18895else
18896  cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h.  */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h.  */
18902#include <ctype.h>
18903#if ((' ' & 0x0FF) == 0x020)
18904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18906#else
18907# define ISLOWER(c) \
18908		   (('a' <= (c) && (c) <= 'i') \
18909		     || ('j' <= (c) && (c) <= 'r') \
18910		     || ('s' <= (c) && (c) <= 'z'))
18911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18912#endif
18913
18914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18915int
18916main ()
18917{
18918  int i;
18919  for (i = 0; i < 256; i++)
18920    if (XOR (islower (i), ISLOWER (i))
18921	|| toupper (i) != TOUPPER (i))
18922      exit(2);
18923  exit (0);
18924}
18925_ACEOF
18926rm -f conftest$ac_exeext
18927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928  (eval $ac_link) 2>&5
18929  ac_status=$?
18930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933  (eval $ac_try) 2>&5
18934  ac_status=$?
18935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936  (exit $ac_status); }; }; then
18937  :
18938else
18939  echo "$as_me: program exited with status $ac_status" >&5
18940echo "$as_me: failed program was:" >&5
18941sed 's/^/| /' conftest.$ac_ext >&5
18942
18943( exit $ac_status )
18944ac_cv_header_stdc=no
18945fi
18946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18947fi
18948fi
18949fi
18950echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18951echo "${ECHO_T}$ac_cv_header_stdc" >&6
18952if test $ac_cv_header_stdc = yes; then
18953
18954cat >>confdefs.h <<\_ACEOF
18955#define STDC_HEADERS 1
18956_ACEOF
18957
18958fi
18959
18960
18961
18962
18963
18964
18965
18966for ac_header in malloc.h stdlib.h string.h sys/socket.h sys/timeb.h unistd.h
18967do
18968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18969if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970  echo "$as_me:$LINENO: checking for $ac_header" >&5
18971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18972if eval "test \"\${$as_ac_Header+set}\" = set"; then
18973  echo $ECHO_N "(cached) $ECHO_C" >&6
18974fi
18975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18977else
18978  # Is the header compilable?
18979echo "$as_me:$LINENO: checking $ac_header usability" >&5
18980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18981cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h.  */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h.  */
18987$ac_includes_default
18988#include <$ac_header>
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992  (eval $ac_compile) 2>conftest.er1
18993  ac_status=$?
18994  grep -v '^ *+' conftest.er1 >conftest.err
18995  rm -f conftest.er1
18996  cat conftest.err >&5
18997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998  (exit $ac_status); } &&
18999	 { ac_try='test -z "$ac_c_werror_flag"
19000			 || test ! -s conftest.err'
19001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002  (eval $ac_try) 2>&5
19003  ac_status=$?
19004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005  (exit $ac_status); }; } &&
19006	 { ac_try='test -s conftest.$ac_objext'
19007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008  (eval $ac_try) 2>&5
19009  ac_status=$?
19010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011  (exit $ac_status); }; }; then
19012  ac_header_compiler=yes
19013else
19014  echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017ac_header_compiler=no
19018fi
19019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19021echo "${ECHO_T}$ac_header_compiler" >&6
19022
19023# Is the header present?
19024echo "$as_me:$LINENO: checking $ac_header presence" >&5
19025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19026cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h.  */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h.  */
19032#include <$ac_header>
19033_ACEOF
19034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19035  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19036  ac_status=$?
19037  grep -v '^ *+' conftest.er1 >conftest.err
19038  rm -f conftest.er1
19039  cat conftest.err >&5
19040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041  (exit $ac_status); } >/dev/null; then
19042  if test -s conftest.err; then
19043    ac_cpp_err=$ac_c_preproc_warn_flag
19044    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19045  else
19046    ac_cpp_err=
19047  fi
19048else
19049  ac_cpp_err=yes
19050fi
19051if test -z "$ac_cpp_err"; then
19052  ac_header_preproc=yes
19053else
19054  echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057  ac_header_preproc=no
19058fi
19059rm -f conftest.err conftest.$ac_ext
19060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19061echo "${ECHO_T}$ac_header_preproc" >&6
19062
19063# So?  What about this header?
19064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19065  yes:no: )
19066    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19068    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19070    ac_header_preproc=yes
19071    ;;
19072  no:yes:* )
19073    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19075    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19076echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19077    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19079    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19080echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19081    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19083    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19085    (
19086      cat <<\_ASBOX
19087## ----------------------------- ##
19088## Report this to srs@mirtol.com ##
19089## ----------------------------- ##
19090_ASBOX
19091    ) |
19092      sed "s/^/$as_me: WARNING:     /" >&2
19093    ;;
19094esac
19095echo "$as_me:$LINENO: checking for $ac_header" >&5
19096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19097if eval "test \"\${$as_ac_Header+set}\" = set"; then
19098  echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100  eval "$as_ac_Header=\$ac_header_preproc"
19101fi
19102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19104
19105fi
19106if test `eval echo '${'$as_ac_Header'}'` = yes; then
19107  cat >>confdefs.h <<_ACEOF
19108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19109_ACEOF
19110
19111fi
19112
19113done
19114
19115
19116# Checks for typedefs, structures, and compiler characteristics.
19117
19118# Checks for library functions.
19119echo "$as_me:$LINENO: checking for pid_t" >&5
19120echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19121if test "${ac_cv_type_pid_t+set}" = set; then
19122  echo $ECHO_N "(cached) $ECHO_C" >&6
19123else
19124  cat >conftest.$ac_ext <<_ACEOF
19125/* confdefs.h.  */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h.  */
19130$ac_includes_default
19131int
19132main ()
19133{
19134if ((pid_t *) 0)
19135  return 0;
19136if (sizeof (pid_t))
19137  return 0;
19138  ;
19139  return 0;
19140}
19141_ACEOF
19142rm -f conftest.$ac_objext
19143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144  (eval $ac_compile) 2>conftest.er1
19145  ac_status=$?
19146  grep -v '^ *+' conftest.er1 >conftest.err
19147  rm -f conftest.er1
19148  cat conftest.err >&5
19149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150  (exit $ac_status); } &&
19151	 { ac_try='test -z "$ac_c_werror_flag"
19152			 || test ! -s conftest.err'
19153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154  (eval $ac_try) 2>&5
19155  ac_status=$?
19156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157  (exit $ac_status); }; } &&
19158	 { ac_try='test -s conftest.$ac_objext'
19159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160  (eval $ac_try) 2>&5
19161  ac_status=$?
19162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163  (exit $ac_status); }; }; then
19164  ac_cv_type_pid_t=yes
19165else
19166  echo "$as_me: failed program was:" >&5
19167sed 's/^/| /' conftest.$ac_ext >&5
19168
19169ac_cv_type_pid_t=no
19170fi
19171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19172fi
19173echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19174echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19175if test $ac_cv_type_pid_t = yes; then
19176  :
19177else
19178
19179cat >>confdefs.h <<_ACEOF
19180#define pid_t int
19181_ACEOF
19182
19183fi
19184
19185
19186
19187for ac_header in unistd.h vfork.h
19188do
19189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19190if eval "test \"\${$as_ac_Header+set}\" = set"; then
19191  echo "$as_me:$LINENO: checking for $ac_header" >&5
19192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19193if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194  echo $ECHO_N "(cached) $ECHO_C" >&6
19195fi
19196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19198else
19199  # Is the header compilable?
19200echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19202cat >conftest.$ac_ext <<_ACEOF
19203/* confdefs.h.  */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h.  */
19208$ac_includes_default
19209#include <$ac_header>
19210_ACEOF
19211rm -f conftest.$ac_objext
19212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213  (eval $ac_compile) 2>conftest.er1
19214  ac_status=$?
19215  grep -v '^ *+' conftest.er1 >conftest.err
19216  rm -f conftest.er1
19217  cat conftest.err >&5
19218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219  (exit $ac_status); } &&
19220	 { ac_try='test -z "$ac_c_werror_flag"
19221			 || test ! -s conftest.err'
19222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223  (eval $ac_try) 2>&5
19224  ac_status=$?
19225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226  (exit $ac_status); }; } &&
19227	 { ac_try='test -s conftest.$ac_objext'
19228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229  (eval $ac_try) 2>&5
19230  ac_status=$?
19231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232  (exit $ac_status); }; }; then
19233  ac_header_compiler=yes
19234else
19235  echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238ac_header_compiler=no
19239fi
19240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19242echo "${ECHO_T}$ac_header_compiler" >&6
19243
19244# Is the header present?
19245echo "$as_me:$LINENO: checking $ac_header presence" >&5
19246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19247cat >conftest.$ac_ext <<_ACEOF
19248/* confdefs.h.  */
19249_ACEOF
19250cat confdefs.h >>conftest.$ac_ext
19251cat >>conftest.$ac_ext <<_ACEOF
19252/* end confdefs.h.  */
19253#include <$ac_header>
19254_ACEOF
19255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19256  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19257  ac_status=$?
19258  grep -v '^ *+' conftest.er1 >conftest.err
19259  rm -f conftest.er1
19260  cat conftest.err >&5
19261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262  (exit $ac_status); } >/dev/null; then
19263  if test -s conftest.err; then
19264    ac_cpp_err=$ac_c_preproc_warn_flag
19265    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19266  else
19267    ac_cpp_err=
19268  fi
19269else
19270  ac_cpp_err=yes
19271fi
19272if test -z "$ac_cpp_err"; then
19273  ac_header_preproc=yes
19274else
19275  echo "$as_me: failed program was:" >&5
19276sed 's/^/| /' conftest.$ac_ext >&5
19277
19278  ac_header_preproc=no
19279fi
19280rm -f conftest.err conftest.$ac_ext
19281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19282echo "${ECHO_T}$ac_header_preproc" >&6
19283
19284# So?  What about this header?
19285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19286  yes:no: )
19287    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19291    ac_header_preproc=yes
19292    ;;
19293  no:yes:* )
19294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19296    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19297echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19298    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19300    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19301echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19304    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19306    (
19307      cat <<\_ASBOX
19308## ----------------------------- ##
19309## Report this to srs@mirtol.com ##
19310## ----------------------------- ##
19311_ASBOX
19312    ) |
19313      sed "s/^/$as_me: WARNING:     /" >&2
19314    ;;
19315esac
19316echo "$as_me:$LINENO: checking for $ac_header" >&5
19317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19318if eval "test \"\${$as_ac_Header+set}\" = set"; then
19319  echo $ECHO_N "(cached) $ECHO_C" >&6
19320else
19321  eval "$as_ac_Header=\$ac_header_preproc"
19322fi
19323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19325
19326fi
19327if test `eval echo '${'$as_ac_Header'}'` = yes; then
19328  cat >>confdefs.h <<_ACEOF
19329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19330_ACEOF
19331
19332fi
19333
19334done
19335
19336
19337
19338for ac_func in fork vfork
19339do
19340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19341echo "$as_me:$LINENO: checking for $ac_func" >&5
19342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19343if eval "test \"\${$as_ac_var+set}\" = set"; then
19344  echo $ECHO_N "(cached) $ECHO_C" >&6
19345else
19346  cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h.  */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
19351/* end confdefs.h.  */
19352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19353   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19354#define $ac_func innocuous_$ac_func
19355
19356/* System header to define __stub macros and hopefully few prototypes,
19357    which can conflict with char $ac_func (); below.
19358    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19359    <limits.h> exists even on freestanding compilers.  */
19360
19361#ifdef __STDC__
19362# include <limits.h>
19363#else
19364# include <assert.h>
19365#endif
19366
19367#undef $ac_func
19368
19369/* Override any gcc2 internal prototype to avoid an error.  */
19370#ifdef __cplusplus
19371extern "C"
19372{
19373#endif
19374/* We use char because int might match the return type of a gcc2
19375   builtin and then its argument prototype would still apply.  */
19376char $ac_func ();
19377/* The GNU C library defines this for functions which it implements
19378    to always fail with ENOSYS.  Some functions are actually named
19379    something starting with __ and the normal name is an alias.  */
19380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19381choke me
19382#else
19383char (*f) () = $ac_func;
19384#endif
19385#ifdef __cplusplus
19386}
19387#endif
19388
19389int
19390main ()
19391{
19392return f != $ac_func;
19393  ;
19394  return 0;
19395}
19396_ACEOF
19397rm -f conftest.$ac_objext conftest$ac_exeext
19398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19399  (eval $ac_link) 2>conftest.er1
19400  ac_status=$?
19401  grep -v '^ *+' conftest.er1 >conftest.err
19402  rm -f conftest.er1
19403  cat conftest.err >&5
19404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405  (exit $ac_status); } &&
19406	 { ac_try='test -z "$ac_c_werror_flag"
19407			 || test ! -s conftest.err'
19408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409  (eval $ac_try) 2>&5
19410  ac_status=$?
19411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412  (exit $ac_status); }; } &&
19413	 { ac_try='test -s conftest$ac_exeext'
19414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415  (eval $ac_try) 2>&5
19416  ac_status=$?
19417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418  (exit $ac_status); }; }; then
19419  eval "$as_ac_var=yes"
19420else
19421  echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
19424eval "$as_ac_var=no"
19425fi
19426rm -f conftest.err conftest.$ac_objext \
19427      conftest$ac_exeext conftest.$ac_ext
19428fi
19429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19431if test `eval echo '${'$as_ac_var'}'` = yes; then
19432  cat >>confdefs.h <<_ACEOF
19433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19434_ACEOF
19435
19436fi
19437done
19438
19439if test "x$ac_cv_func_fork" = xyes; then
19440  echo "$as_me:$LINENO: checking for working fork" >&5
19441echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19442if test "${ac_cv_func_fork_works+set}" = set; then
19443  echo $ECHO_N "(cached) $ECHO_C" >&6
19444else
19445  if test "$cross_compiling" = yes; then
19446  ac_cv_func_fork_works=cross
19447else
19448  cat >conftest.$ac_ext <<_ACEOF
19449/* By Ruediger Kuhlmann. */
19450      #include <sys/types.h>
19451      #if HAVE_UNISTD_H
19452      # include <unistd.h>
19453      #endif
19454      /* Some systems only have a dummy stub for fork() */
19455      int main ()
19456      {
19457	if (fork() < 0)
19458	  exit (1);
19459	exit (0);
19460      }
19461_ACEOF
19462rm -f conftest$ac_exeext
19463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464  (eval $ac_link) 2>&5
19465  ac_status=$?
19466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469  (eval $ac_try) 2>&5
19470  ac_status=$?
19471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472  (exit $ac_status); }; }; then
19473  ac_cv_func_fork_works=yes
19474else
19475  echo "$as_me: program exited with status $ac_status" >&5
19476echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
19479( exit $ac_status )
19480ac_cv_func_fork_works=no
19481fi
19482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19483fi
19484fi
19485echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19486echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19487
19488else
19489  ac_cv_func_fork_works=$ac_cv_func_fork
19490fi
19491if test "x$ac_cv_func_fork_works" = xcross; then
19492  case $host in
19493    *-*-amigaos* | *-*-msdosdjgpp*)
19494      # Override, as these systems have only a dummy fork() stub
19495      ac_cv_func_fork_works=no
19496      ;;
19497    *)
19498      ac_cv_func_fork_works=yes
19499      ;;
19500  esac
19501  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19502echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19503fi
19504ac_cv_func_vfork_works=$ac_cv_func_vfork
19505if test "x$ac_cv_func_vfork" = xyes; then
19506  echo "$as_me:$LINENO: checking for working vfork" >&5
19507echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19508if test "${ac_cv_func_vfork_works+set}" = set; then
19509  echo $ECHO_N "(cached) $ECHO_C" >&6
19510else
19511  if test "$cross_compiling" = yes; then
19512  ac_cv_func_vfork_works=cross
19513else
19514  cat >conftest.$ac_ext <<_ACEOF
19515/* confdefs.h.  */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h.  */
19520/* Thanks to Paul Eggert for this test.  */
19521#include <stdio.h>
19522#include <stdlib.h>
19523#include <sys/types.h>
19524#include <sys/stat.h>
19525#include <sys/wait.h>
19526#if HAVE_UNISTD_H
19527# include <unistd.h>
19528#endif
19529#if HAVE_VFORK_H
19530# include <vfork.h>
19531#endif
19532/* On some sparc systems, changes by the child to local and incoming
19533   argument registers are propagated back to the parent.  The compiler
19534   is told about this with #include <vfork.h>, but some compilers
19535   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19536   static variable whose address is put into a register that is
19537   clobbered by the vfork.  */
19538static void
19539#ifdef __cplusplus
19540sparc_address_test (int arg)
19541# else
19542sparc_address_test (arg) int arg;
19543#endif
19544{
19545  static pid_t child;
19546  if (!child) {
19547    child = vfork ();
19548    if (child < 0) {
19549      perror ("vfork");
19550      _exit(2);
19551    }
19552    if (!child) {
19553      arg = getpid();
19554      write(-1, "", 0);
19555      _exit (arg);
19556    }
19557  }
19558}
19559
19560int
19561main ()
19562{
19563  pid_t parent = getpid ();
19564  pid_t child;
19565
19566  sparc_address_test (0);
19567
19568  child = vfork ();
19569
19570  if (child == 0) {
19571    /* Here is another test for sparc vfork register problems.  This
19572       test uses lots of local variables, at least as many local
19573       variables as main has allocated so far including compiler
19574       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19575       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19576       reuse the register of parent for one of the local variables,
19577       since it will think that parent can't possibly be used any more
19578       in this routine.  Assigning to the local variable will thus
19579       munge parent in the parent process.  */
19580    pid_t
19581      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19582      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19583    /* Convince the compiler that p..p7 are live; otherwise, it might
19584       use the same hardware register for all 8 local variables.  */
19585    if (p != p1 || p != p2 || p != p3 || p != p4
19586	|| p != p5 || p != p6 || p != p7)
19587      _exit(1);
19588
19589    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19590       from child file descriptors.  If the child closes a descriptor
19591       before it execs or exits, this munges the parent's descriptor
19592       as well.  Test for this by closing stdout in the child.  */
19593    _exit(close(fileno(stdout)) != 0);
19594  } else {
19595    int status;
19596    struct stat st;
19597
19598    while (wait(&status) != child)
19599      ;
19600    exit(
19601	 /* Was there some problem with vforking?  */
19602	 child < 0
19603
19604	 /* Did the child fail?  (This shouldn't happen.)  */
19605	 || status
19606
19607	 /* Did the vfork/compiler bug occur?  */
19608	 || parent != getpid()
19609
19610	 /* Did the file descriptor bug occur?  */
19611	 || fstat(fileno(stdout), &st) != 0
19612	 );
19613  }
19614}
19615_ACEOF
19616rm -f conftest$ac_exeext
19617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19618  (eval $ac_link) 2>&5
19619  ac_status=$?
19620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623  (eval $ac_try) 2>&5
19624  ac_status=$?
19625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626  (exit $ac_status); }; }; then
19627  ac_cv_func_vfork_works=yes
19628else
19629  echo "$as_me: program exited with status $ac_status" >&5
19630echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633( exit $ac_status )
19634ac_cv_func_vfork_works=no
19635fi
19636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19637fi
19638fi
19639echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19640echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19641
19642fi;
19643if test "x$ac_cv_func_fork_works" = xcross; then
19644  ac_cv_func_vfork_works=$ac_cv_func_vfork
19645  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19646echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19647fi
19648
19649if test "x$ac_cv_func_vfork_works" = xyes; then
19650
19651cat >>confdefs.h <<\_ACEOF
19652#define HAVE_WORKING_VFORK 1
19653_ACEOF
19654
19655else
19656
19657cat >>confdefs.h <<\_ACEOF
19658#define vfork fork
19659_ACEOF
19660
19661fi
19662if test "x$ac_cv_func_fork_works" = xyes; then
19663
19664cat >>confdefs.h <<\_ACEOF
19665#define HAVE_WORKING_FORK 1
19666_ACEOF
19667
19668fi
19669
19670#AC_FUNC_MALLOC
19671#AC_FUNC_REALLOC
19672echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19673echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19674if test "${ac_cv_type_signal+set}" = set; then
19675  echo $ECHO_N "(cached) $ECHO_C" >&6
19676else
19677  cat >conftest.$ac_ext <<_ACEOF
19678/* confdefs.h.  */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h.  */
19683#include <sys/types.h>
19684#include <signal.h>
19685#ifdef signal
19686# undef signal
19687#endif
19688#ifdef __cplusplus
19689extern "C" void (*signal (int, void (*)(int)))(int);
19690#else
19691void (*signal ()) ();
19692#endif
19693
19694int
19695main ()
19696{
19697int i;
19698  ;
19699  return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704  (eval $ac_compile) 2>conftest.er1
19705  ac_status=$?
19706  grep -v '^ *+' conftest.er1 >conftest.err
19707  rm -f conftest.er1
19708  cat conftest.err >&5
19709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710  (exit $ac_status); } &&
19711	 { ac_try='test -z "$ac_c_werror_flag"
19712			 || test ! -s conftest.err'
19713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714  (eval $ac_try) 2>&5
19715  ac_status=$?
19716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717  (exit $ac_status); }; } &&
19718	 { ac_try='test -s conftest.$ac_objext'
19719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720  (eval $ac_try) 2>&5
19721  ac_status=$?
19722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723  (exit $ac_status); }; }; then
19724  ac_cv_type_signal=void
19725else
19726  echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729ac_cv_type_signal=int
19730fi
19731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19732fi
19733echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19734echo "${ECHO_T}$ac_cv_type_signal" >&6
19735
19736cat >>confdefs.h <<_ACEOF
19737#define RETSIGTYPE $ac_cv_type_signal
19738_ACEOF
19739
19740
19741echo "$as_me:$LINENO: checking for working strnlen" >&5
19742echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
19743if test "${ac_cv_func_strnlen_working+set}" = set; then
19744  echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746  if test "$cross_compiling" = yes; then
19747  ac_cv_func_strnlen_working=no
19748else
19749  cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h.  */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h.  */
19755$ac_includes_default
19756int
19757main ()
19758{
19759
19760#define S "foobar"
19761#define S_LEN (sizeof S - 1)
19762
19763  /* At least one implementation is buggy: that of AIX 4.3 would
19764     give strnlen (S, 1) == 3.  */
19765
19766  int i;
19767  for (i = 0; i < S_LEN + 1; ++i)
19768    {
19769      int expected = i <= S_LEN ? i : S_LEN;
19770      if (strnlen (S, i) != expected)
19771	exit (1);
19772    }
19773  exit (0);
19774
19775  ;
19776  return 0;
19777}
19778_ACEOF
19779rm -f conftest$ac_exeext
19780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781  (eval $ac_link) 2>&5
19782  ac_status=$?
19783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786  (eval $ac_try) 2>&5
19787  ac_status=$?
19788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789  (exit $ac_status); }; }; then
19790  ac_cv_func_strnlen_working=yes
19791else
19792  echo "$as_me: program exited with status $ac_status" >&5
19793echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
19796( exit $ac_status )
19797ac_cv_func_strnlen_working=no
19798fi
19799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19800fi
19801fi
19802echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
19803echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
19804test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
19805    "strnlen.$ac_objext"   | \
19806  *" strnlen.$ac_objext"   | \
19807    "strnlen.$ac_objext "* | \
19808  *" strnlen.$ac_objext "* ) ;;
19809  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
19810esac
19811
19812
19813
19814echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
19815echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
19816if test "${ac_cv_lib_socket_bind+set}" = set; then
19817  echo $ECHO_N "(cached) $ECHO_C" >&6
19818else
19819  ac_check_lib_save_LIBS=$LIBS
19820LIBS="-lsocket  $LIBS"
19821cat >conftest.$ac_ext <<_ACEOF
19822/* confdefs.h.  */
19823_ACEOF
19824cat confdefs.h >>conftest.$ac_ext
19825cat >>conftest.$ac_ext <<_ACEOF
19826/* end confdefs.h.  */
19827
19828/* Override any gcc2 internal prototype to avoid an error.  */
19829#ifdef __cplusplus
19830extern "C"
19831#endif
19832/* We use char because int might match the return type of a gcc2
19833   builtin and then its argument prototype would still apply.  */
19834char bind ();
19835int
19836main ()
19837{
19838bind ();
19839  ;
19840  return 0;
19841}
19842_ACEOF
19843rm -f conftest.$ac_objext conftest$ac_exeext
19844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845  (eval $ac_link) 2>conftest.er1
19846  ac_status=$?
19847  grep -v '^ *+' conftest.er1 >conftest.err
19848  rm -f conftest.er1
19849  cat conftest.err >&5
19850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851  (exit $ac_status); } &&
19852	 { ac_try='test -z "$ac_c_werror_flag"
19853			 || test ! -s conftest.err'
19854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855  (eval $ac_try) 2>&5
19856  ac_status=$?
19857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858  (exit $ac_status); }; } &&
19859	 { ac_try='test -s conftest$ac_exeext'
19860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861  (eval $ac_try) 2>&5
19862  ac_status=$?
19863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864  (exit $ac_status); }; }; then
19865  ac_cv_lib_socket_bind=yes
19866else
19867  echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870ac_cv_lib_socket_bind=no
19871fi
19872rm -f conftest.err conftest.$ac_objext \
19873      conftest$ac_exeext conftest.$ac_ext
19874LIBS=$ac_check_lib_save_LIBS
19875fi
19876echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
19877echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
19878if test $ac_cv_lib_socket_bind = yes; then
19879  cat >>confdefs.h <<_ACEOF
19880#define HAVE_LIBSOCKET 1
19881_ACEOF
19882
19883  LIBS="-lsocket $LIBS"
19884
19885fi
19886
19887
19888
19889
19890
19891
19892
19893for ac_func in ftime memset socket strchr strdup strncasecmp
19894do
19895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19896echo "$as_me:$LINENO: checking for $ac_func" >&5
19897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19898if eval "test \"\${$as_ac_var+set}\" = set"; then
19899  echo $ECHO_N "(cached) $ECHO_C" >&6
19900else
19901  cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h.  */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h.  */
19907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19909#define $ac_func innocuous_$ac_func
19910
19911/* System header to define __stub macros and hopefully few prototypes,
19912    which can conflict with char $ac_func (); below.
19913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19914    <limits.h> exists even on freestanding compilers.  */
19915
19916#ifdef __STDC__
19917# include <limits.h>
19918#else
19919# include <assert.h>
19920#endif
19921
19922#undef $ac_func
19923
19924/* Override any gcc2 internal prototype to avoid an error.  */
19925#ifdef __cplusplus
19926extern "C"
19927{
19928#endif
19929/* We use char because int might match the return type of a gcc2
19930   builtin and then its argument prototype would still apply.  */
19931char $ac_func ();
19932/* The GNU C library defines this for functions which it implements
19933    to always fail with ENOSYS.  Some functions are actually named
19934    something starting with __ and the normal name is an alias.  */
19935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19936choke me
19937#else
19938char (*f) () = $ac_func;
19939#endif
19940#ifdef __cplusplus
19941}
19942#endif
19943
19944int
19945main ()
19946{
19947return f != $ac_func;
19948  ;
19949  return 0;
19950}
19951_ACEOF
19952rm -f conftest.$ac_objext conftest$ac_exeext
19953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19954  (eval $ac_link) 2>conftest.er1
19955  ac_status=$?
19956  grep -v '^ *+' conftest.er1 >conftest.err
19957  rm -f conftest.er1
19958  cat conftest.err >&5
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); } &&
19961	 { ac_try='test -z "$ac_c_werror_flag"
19962			 || test ! -s conftest.err'
19963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964  (eval $ac_try) 2>&5
19965  ac_status=$?
19966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967  (exit $ac_status); }; } &&
19968	 { ac_try='test -s conftest$ac_exeext'
19969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970  (eval $ac_try) 2>&5
19971  ac_status=$?
19972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973  (exit $ac_status); }; }; then
19974  eval "$as_ac_var=yes"
19975else
19976  echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
19979eval "$as_ac_var=no"
19980fi
19981rm -f conftest.err conftest.$ac_objext \
19982      conftest$ac_exeext conftest.$ac_ext
19983fi
19984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19986if test `eval echo '${'$as_ac_var'}'` = yes; then
19987  cat >>confdefs.h <<_ACEOF
19988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19989_ACEOF
19990
19991fi
19992done
19993
19994echo "$as_me:$LINENO: checking for size_t" >&5
19995echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19996if test "${ac_cv_type_size_t+set}" = set; then
19997  echo $ECHO_N "(cached) $ECHO_C" >&6
19998else
19999  cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h.  */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h.  */
20005$ac_includes_default
20006int
20007main ()
20008{
20009if ((size_t *) 0)
20010  return 0;
20011if (sizeof (size_t))
20012  return 0;
20013  ;
20014  return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext
20018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019  (eval $ac_compile) 2>conftest.er1
20020  ac_status=$?
20021  grep -v '^ *+' conftest.er1 >conftest.err
20022  rm -f conftest.er1
20023  cat conftest.err >&5
20024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025  (exit $ac_status); } &&
20026	 { ac_try='test -z "$ac_c_werror_flag"
20027			 || test ! -s conftest.err'
20028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029  (eval $ac_try) 2>&5
20030  ac_status=$?
20031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032  (exit $ac_status); }; } &&
20033	 { ac_try='test -s conftest.$ac_objext'
20034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035  (eval $ac_try) 2>&5
20036  ac_status=$?
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); }; }; then
20039  ac_cv_type_size_t=yes
20040else
20041  echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044ac_cv_type_size_t=no
20045fi
20046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20047fi
20048echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20049echo "${ECHO_T}$ac_cv_type_size_t" >&6
20050if test $ac_cv_type_size_t = yes; then
20051  :
20052else
20053
20054cat >>confdefs.h <<_ACEOF
20055#define size_t unsigned
20056_ACEOF
20057
20058fi
20059
20060
20061
20062# Check whether --with-base64compat or --without-base64compat was given.
20063if test "${with_base64compat+set}" = set; then
20064  withval="$with_base64compat"
20065
20066cat >>confdefs.h <<\_ACEOF
20067#define SRS_BASE64COMPAT
20068_ACEOF
20069
20070fi;
20071
20072                              ac_config_files="$ac_config_files lib/Makefile src/Makefile Makefile"
20073
20074cat >confcache <<\_ACEOF
20075# This file is a shell script that caches the results of configure
20076# tests run on this system so they can be shared between configure
20077# scripts and configure runs, see configure's option --config-cache.
20078# It is not useful on other systems.  If it contains results you don't
20079# want to keep, you may remove or edit it.
20080#
20081# config.status only pays attention to the cache file if you give it
20082# the --recheck option to rerun configure.
20083#
20084# `ac_cv_env_foo' variables (set or unset) will be overridden when
20085# loading this file, other *unset* `ac_cv_foo' will be assigned the
20086# following values.
20087
20088_ACEOF
20089
20090# The following way of writing the cache mishandles newlines in values,
20091# but we know of no workaround that is simple, portable, and efficient.
20092# So, don't put newlines in cache variables' values.
20093# Ultrix sh set writes to stderr and can't be redirected directly,
20094# and sets the high bit in the cache file unless we assign to the vars.
20095{
20096  (set) 2>&1 |
20097    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20098    *ac_space=\ *)
20099      # `set' does not quote correctly, so add quotes (double-quote
20100      # substitution turns \\\\ into \\, and sed turns \\ into \).
20101      sed -n \
20102	"s/'/'\\\\''/g;
20103	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20104      ;;
20105    *)
20106      # `set' quotes correctly as required by POSIX, so do not add quotes.
20107      sed -n \
20108	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20109      ;;
20110    esac;
20111} |
20112  sed '
20113     t clear
20114     : clear
20115     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20116     t end
20117     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20118     : end' >>confcache
20119if diff $cache_file confcache >/dev/null 2>&1; then :; else
20120  if test -w $cache_file; then
20121    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20122    cat confcache >$cache_file
20123  else
20124    echo "not updating unwritable cache $cache_file"
20125  fi
20126fi
20127rm -f confcache
20128
20129test "x$prefix" = xNONE && prefix=$ac_default_prefix
20130# Let make expand exec_prefix.
20131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20132
20133# VPATH may cause trouble with some makes, so we remove $(srcdir),
20134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20135# trailing colons and then remove the whole line if VPATH becomes empty
20136# (actually we leave an empty line to preserve line numbers).
20137if test "x$srcdir" = x.; then
20138  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20139s/:*\$(srcdir):*/:/;
20140s/:*\${srcdir}:*/:/;
20141s/:*@srcdir@:*/:/;
20142s/^\([^=]*=[	 ]*\):*/\1/;
20143s/:*$//;
20144s/^[^=]*=[	 ]*$//;
20145}'
20146fi
20147
20148DEFS=-DHAVE_CONFIG_H
20149
20150ac_libobjs=
20151ac_ltlibobjs=
20152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20153  # 1. Remove the extension, and $U if already installed.
20154  ac_i=`echo "$ac_i" |
20155	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20156  # 2. Add them.
20157  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20158  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20159done
20160LIBOBJS=$ac_libobjs
20161
20162LTLIBOBJS=$ac_ltlibobjs
20163
20164
20165if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20166  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20167Usually this means the macro was only invoked conditionally." >&5
20168echo "$as_me: error: conditional \"AMDEP\" was never defined.
20169Usually this means the macro was only invoked conditionally." >&2;}
20170   { (exit 1); exit 1; }; }
20171fi
20172if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20173  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20174Usually this means the macro was only invoked conditionally." >&5
20175echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20176Usually this means the macro was only invoked conditionally." >&2;}
20177   { (exit 1); exit 1; }; }
20178fi
20179if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20180  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20181Usually this means the macro was only invoked conditionally." >&5
20182echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20183Usually this means the macro was only invoked conditionally." >&2;}
20184   { (exit 1); exit 1; }; }
20185fi
20186
20187: ${CONFIG_STATUS=./config.status}
20188ac_clean_files_save=$ac_clean_files
20189ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20190{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20191echo "$as_me: creating $CONFIG_STATUS" >&6;}
20192cat >$CONFIG_STATUS <<_ACEOF
20193#! $SHELL
20194# Generated by $as_me.
20195# Run this file to recreate the current configuration.
20196# Compiler output produced by configure, useful for debugging
20197# configure, is in config.log if it exists.
20198
20199debug=false
20200ac_cs_recheck=false
20201ac_cs_silent=false
20202SHELL=\${CONFIG_SHELL-$SHELL}
20203_ACEOF
20204
20205cat >>$CONFIG_STATUS <<\_ACEOF
20206## --------------------- ##
20207## M4sh Initialization.  ##
20208## --------------------- ##
20209
20210# Be Bourne compatible
20211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20212  emulate sh
20213  NULLCMD=:
20214  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20215  # is contrary to our usage.  Disable this feature.
20216  alias -g '${1+"$@"}'='"$@"'
20217elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20218  set -o posix
20219fi
20220DUALCASE=1; export DUALCASE # for MKS sh
20221
20222# Support unset when possible.
20223if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20224  as_unset=unset
20225else
20226  as_unset=false
20227fi
20228
20229
20230# Work around bugs in pre-3.0 UWIN ksh.
20231$as_unset ENV MAIL MAILPATH
20232PS1='$ '
20233PS2='> '
20234PS4='+ '
20235
20236# NLS nuisances.
20237for as_var in \
20238  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20239  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20240  LC_TELEPHONE LC_TIME
20241do
20242  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20243    eval $as_var=C; export $as_var
20244  else
20245    $as_unset $as_var
20246  fi
20247done
20248
20249# Required to use basename.
20250if expr a : '\(a\)' >/dev/null 2>&1; then
20251  as_expr=expr
20252else
20253  as_expr=false
20254fi
20255
20256if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20257  as_basename=basename
20258else
20259  as_basename=false
20260fi
20261
20262
20263# Name of the executable.
20264as_me=`$as_basename "$0" ||
20265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20266	 X"$0" : 'X\(//\)$' \| \
20267	 X"$0" : 'X\(/\)$' \| \
20268	 .     : '\(.\)' 2>/dev/null ||
20269echo X/"$0" |
20270    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20271  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20272  	  /^X\/\(\/\).*/{ s//\1/; q; }
20273  	  s/.*/./; q'`
20274
20275
20276# PATH needs CR, and LINENO needs CR and PATH.
20277# Avoid depending upon Character Ranges.
20278as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20279as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20280as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20281as_cr_digits='0123456789'
20282as_cr_alnum=$as_cr_Letters$as_cr_digits
20283
20284# The user is always right.
20285if test "${PATH_SEPARATOR+set}" != set; then
20286  echo "#! /bin/sh" >conf$$.sh
20287  echo  "exit 0"   >>conf$$.sh
20288  chmod +x conf$$.sh
20289  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20290    PATH_SEPARATOR=';'
20291  else
20292    PATH_SEPARATOR=:
20293  fi
20294  rm -f conf$$.sh
20295fi
20296
20297
20298  as_lineno_1=$LINENO
20299  as_lineno_2=$LINENO
20300  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20301  test "x$as_lineno_1" != "x$as_lineno_2" &&
20302  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20303  # Find who we are.  Look in the path if we contain no path at all
20304  # relative or not.
20305  case $0 in
20306    *[\\/]* ) as_myself=$0 ;;
20307    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20308for as_dir in $PATH
20309do
20310  IFS=$as_save_IFS
20311  test -z "$as_dir" && as_dir=.
20312  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20313done
20314
20315       ;;
20316  esac
20317  # We did not find ourselves, most probably we were run as `sh COMMAND'
20318  # in which case we are not to be found in the path.
20319  if test "x$as_myself" = x; then
20320    as_myself=$0
20321  fi
20322  if test ! -f "$as_myself"; then
20323    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20324echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20325   { (exit 1); exit 1; }; }
20326  fi
20327  case $CONFIG_SHELL in
20328  '')
20329    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20330for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20331do
20332  IFS=$as_save_IFS
20333  test -z "$as_dir" && as_dir=.
20334  for as_base in sh bash ksh sh5; do
20335	 case $as_dir in
20336	 /*)
20337	   if ("$as_dir/$as_base" -c '
20338  as_lineno_1=$LINENO
20339  as_lineno_2=$LINENO
20340  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20341  test "x$as_lineno_1" != "x$as_lineno_2" &&
20342  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20343	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20344	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20345	     CONFIG_SHELL=$as_dir/$as_base
20346	     export CONFIG_SHELL
20347	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20348	   fi;;
20349	 esac
20350       done
20351done
20352;;
20353  esac
20354
20355  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20356  # uniformly replaced by the line number.  The first 'sed' inserts a
20357  # line-number line before each line; the second 'sed' does the real
20358  # work.  The second script uses 'N' to pair each line-number line
20359  # with the numbered line, and appends trailing '-' during
20360  # substitution so that $LINENO is not a special case at line end.
20361  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20362  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20363  sed '=' <$as_myself |
20364    sed '
20365      N
20366      s,$,-,
20367      : loop
20368      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20369      t loop
20370      s,-$,,
20371      s,^['$as_cr_digits']*\n,,
20372    ' >$as_me.lineno &&
20373  chmod +x $as_me.lineno ||
20374    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20375echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20376   { (exit 1); exit 1; }; }
20377
20378  # Don't try to exec as it changes $[0], causing all sort of problems
20379  # (the dirname of $[0] is not the place where we might find the
20380  # original and so on.  Autoconf is especially sensible to this).
20381  . ./$as_me.lineno
20382  # Exit status is that of the last command.
20383  exit
20384}
20385
20386
20387case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20388  *c*,-n*) ECHO_N= ECHO_C='
20389' ECHO_T='	' ;;
20390  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20391  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20392esac
20393
20394if expr a : '\(a\)' >/dev/null 2>&1; then
20395  as_expr=expr
20396else
20397  as_expr=false
20398fi
20399
20400rm -f conf$$ conf$$.exe conf$$.file
20401echo >conf$$.file
20402if ln -s conf$$.file conf$$ 2>/dev/null; then
20403  # We could just check for DJGPP; but this test a) works b) is more generic
20404  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20405  if test -f conf$$.exe; then
20406    # Don't use ln at all; we don't have any links
20407    as_ln_s='cp -p'
20408  else
20409    as_ln_s='ln -s'
20410  fi
20411elif ln conf$$.file conf$$ 2>/dev/null; then
20412  as_ln_s=ln
20413else
20414  as_ln_s='cp -p'
20415fi
20416rm -f conf$$ conf$$.exe conf$$.file
20417
20418if mkdir -p . 2>/dev/null; then
20419  as_mkdir_p=:
20420else
20421  test -d ./-p && rmdir ./-p
20422  as_mkdir_p=false
20423fi
20424
20425as_executable_p="test -f"
20426
20427# Sed expression to map a string onto a valid CPP name.
20428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20429
20430# Sed expression to map a string onto a valid variable name.
20431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20432
20433
20434# IFS
20435# We need space, tab and new line, in precisely that order.
20436as_nl='
20437'
20438IFS=" 	$as_nl"
20439
20440# CDPATH.
20441$as_unset CDPATH
20442
20443exec 6>&1
20444
20445# Open the log real soon, to keep \$[0] and so on meaningful, and to
20446# report actual input values of CONFIG_FILES etc. instead of their
20447# values after options handling.  Logging --version etc. is OK.
20448exec 5>>config.log
20449{
20450  echo
20451  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20452## Running $as_me. ##
20453_ASBOX
20454} >&5
20455cat >&5 <<_CSEOF
20456
20457This file was extended by libsrs_alt $as_me 1.0, which was
20458generated by GNU Autoconf 2.59.  Invocation command line was
20459
20460  CONFIG_FILES    = $CONFIG_FILES
20461  CONFIG_HEADERS  = $CONFIG_HEADERS
20462  CONFIG_LINKS    = $CONFIG_LINKS
20463  CONFIG_COMMANDS = $CONFIG_COMMANDS
20464  $ $0 $@
20465
20466_CSEOF
20467echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20468echo >&5
20469_ACEOF
20470
20471# Files that config.status was made for.
20472if test -n "$ac_config_files"; then
20473  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20474fi
20475
20476if test -n "$ac_config_headers"; then
20477  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20478fi
20479
20480if test -n "$ac_config_links"; then
20481  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20482fi
20483
20484if test -n "$ac_config_commands"; then
20485  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20486fi
20487
20488cat >>$CONFIG_STATUS <<\_ACEOF
20489
20490ac_cs_usage="\
20491\`$as_me' instantiates files from templates according to the
20492current configuration.
20493
20494Usage: $0 [OPTIONS] [FILE]...
20495
20496  -h, --help       print this help, then exit
20497  -V, --version    print version number, then exit
20498  -q, --quiet      do not print progress messages
20499  -d, --debug      don't remove temporary files
20500      --recheck    update $as_me by reconfiguring in the same conditions
20501  --file=FILE[:TEMPLATE]
20502		   instantiate the configuration file FILE
20503  --header=FILE[:TEMPLATE]
20504		   instantiate the configuration header FILE
20505
20506Configuration files:
20507$config_files
20508
20509Configuration headers:
20510$config_headers
20511
20512Configuration commands:
20513$config_commands
20514
20515Report bugs to <bug-autoconf@gnu.org>."
20516_ACEOF
20517
20518cat >>$CONFIG_STATUS <<_ACEOF
20519ac_cs_version="\\
20520libsrs_alt config.status 1.0
20521configured by $0, generated by GNU Autoconf 2.59,
20522  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20523
20524Copyright (C) 2003 Free Software Foundation, Inc.
20525This config.status script is free software; the Free Software Foundation
20526gives unlimited permission to copy, distribute and modify it."
20527srcdir=$srcdir
20528INSTALL="$INSTALL"
20529_ACEOF
20530
20531cat >>$CONFIG_STATUS <<\_ACEOF
20532# If no file are specified by the user, then we need to provide default
20533# value.  By we need to know if files were specified by the user.
20534ac_need_defaults=:
20535while test $# != 0
20536do
20537  case $1 in
20538  --*=*)
20539    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20540    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20541    ac_shift=:
20542    ;;
20543  -*)
20544    ac_option=$1
20545    ac_optarg=$2
20546    ac_shift=shift
20547    ;;
20548  *) # This is not an option, so the user has probably given explicit
20549     # arguments.
20550     ac_option=$1
20551     ac_need_defaults=false;;
20552  esac
20553
20554  case $ac_option in
20555  # Handling of the options.
20556_ACEOF
20557cat >>$CONFIG_STATUS <<\_ACEOF
20558  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20559    ac_cs_recheck=: ;;
20560  --version | --vers* | -V )
20561    echo "$ac_cs_version"; exit 0 ;;
20562  --he | --h)
20563    # Conflict between --help and --header
20564    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20565Try \`$0 --help' for more information." >&5
20566echo "$as_me: error: ambiguous option: $1
20567Try \`$0 --help' for more information." >&2;}
20568   { (exit 1); exit 1; }; };;
20569  --help | --hel | -h )
20570    echo "$ac_cs_usage"; exit 0 ;;
20571  --debug | --d* | -d )
20572    debug=: ;;
20573  --file | --fil | --fi | --f )
20574    $ac_shift
20575    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20576    ac_need_defaults=false;;
20577  --header | --heade | --head | --hea )
20578    $ac_shift
20579    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20580    ac_need_defaults=false;;
20581  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20582  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20583    ac_cs_silent=: ;;
20584
20585  # This is an error.
20586  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20587Try \`$0 --help' for more information." >&5
20588echo "$as_me: error: unrecognized option: $1
20589Try \`$0 --help' for more information." >&2;}
20590   { (exit 1); exit 1; }; } ;;
20591
20592  *) ac_config_targets="$ac_config_targets $1" ;;
20593
20594  esac
20595  shift
20596done
20597
20598ac_configure_extra_args=
20599
20600if $ac_cs_silent; then
20601  exec 6>/dev/null
20602  ac_configure_extra_args="$ac_configure_extra_args --silent"
20603fi
20604
20605_ACEOF
20606cat >>$CONFIG_STATUS <<_ACEOF
20607if \$ac_cs_recheck; then
20608  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20609  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20610fi
20611
20612_ACEOF
20613
20614cat >>$CONFIG_STATUS <<_ACEOF
20615#
20616# INIT-COMMANDS section.
20617#
20618
20619AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20620
20621_ACEOF
20622
20623
20624
20625cat >>$CONFIG_STATUS <<\_ACEOF
20626for ac_config_target in $ac_config_targets
20627do
20628  case "$ac_config_target" in
20629  # Handling of arguments.
20630  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20631  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20632  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20633  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20634  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20635  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20636echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20637   { (exit 1); exit 1; }; };;
20638  esac
20639done
20640
20641# If the user did not use the arguments to specify the items to instantiate,
20642# then the envvar interface is used.  Set only those that are not.
20643# We use the long form for the default assignment because of an extremely
20644# bizarre bug on SunOS 4.1.3.
20645if $ac_need_defaults; then
20646  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20647  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20648  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20649fi
20650
20651# Have a temporary directory for convenience.  Make it in the build tree
20652# simply because there is no reason to put it here, and in addition,
20653# creating and moving files from /tmp can sometimes cause problems.
20654# Create a temporary directory, and hook for its removal unless debugging.
20655$debug ||
20656{
20657  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20658  trap '{ (exit 1); exit 1; }' 1 2 13 15
20659}
20660
20661# Create a (secure) tmp directory for tmp files.
20662
20663{
20664  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20665  test -n "$tmp" && test -d "$tmp"
20666}  ||
20667{
20668  tmp=./confstat$$-$RANDOM
20669  (umask 077 && mkdir $tmp)
20670} ||
20671{
20672   echo "$me: cannot create a temporary directory in ." >&2
20673   { (exit 1); exit 1; }
20674}
20675
20676_ACEOF
20677
20678cat >>$CONFIG_STATUS <<_ACEOF
20679
20680#
20681# CONFIG_FILES section.
20682#
20683
20684# No need to generate the scripts if there are no CONFIG_FILES.
20685# This happens for instance when ./config.status config.h
20686if test -n "\$CONFIG_FILES"; then
20687  # Protect against being on the right side of a sed subst in config.status.
20688  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20689   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20690s,@SHELL@,$SHELL,;t t
20691s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20692s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20693s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20694s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20695s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20696s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20697s,@exec_prefix@,$exec_prefix,;t t
20698s,@prefix@,$prefix,;t t
20699s,@program_transform_name@,$program_transform_name,;t t
20700s,@bindir@,$bindir,;t t
20701s,@sbindir@,$sbindir,;t t
20702s,@libexecdir@,$libexecdir,;t t
20703s,@datadir@,$datadir,;t t
20704s,@sysconfdir@,$sysconfdir,;t t
20705s,@sharedstatedir@,$sharedstatedir,;t t
20706s,@localstatedir@,$localstatedir,;t t
20707s,@libdir@,$libdir,;t t
20708s,@includedir@,$includedir,;t t
20709s,@oldincludedir@,$oldincludedir,;t t
20710s,@infodir@,$infodir,;t t
20711s,@mandir@,$mandir,;t t
20712s,@build_alias@,$build_alias,;t t
20713s,@host_alias@,$host_alias,;t t
20714s,@target_alias@,$target_alias,;t t
20715s,@DEFS@,$DEFS,;t t
20716s,@ECHO_C@,$ECHO_C,;t t
20717s,@ECHO_N@,$ECHO_N,;t t
20718s,@ECHO_T@,$ECHO_T,;t t
20719s,@LIBS@,$LIBS,;t t
20720s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20721s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20722s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20723s,@CYGPATH_W@,$CYGPATH_W,;t t
20724s,@PACKAGE@,$PACKAGE,;t t
20725s,@VERSION@,$VERSION,;t t
20726s,@ACLOCAL@,$ACLOCAL,;t t
20727s,@AUTOCONF@,$AUTOCONF,;t t
20728s,@AUTOMAKE@,$AUTOMAKE,;t t
20729s,@AUTOHEADER@,$AUTOHEADER,;t t
20730s,@MAKEINFO@,$MAKEINFO,;t t
20731s,@install_sh@,$install_sh,;t t
20732s,@STRIP@,$STRIP,;t t
20733s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20734s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20735s,@mkdir_p@,$mkdir_p,;t t
20736s,@AWK@,$AWK,;t t
20737s,@SET_MAKE@,$SET_MAKE,;t t
20738s,@am__leading_dot@,$am__leading_dot,;t t
20739s,@AMTAR@,$AMTAR,;t t
20740s,@am__tar@,$am__tar,;t t
20741s,@am__untar@,$am__untar,;t t
20742s,@CXX@,$CXX,;t t
20743s,@CXXFLAGS@,$CXXFLAGS,;t t
20744s,@LDFLAGS@,$LDFLAGS,;t t
20745s,@CPPFLAGS@,$CPPFLAGS,;t t
20746s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20747s,@EXEEXT@,$EXEEXT,;t t
20748s,@OBJEXT@,$OBJEXT,;t t
20749s,@DEPDIR@,$DEPDIR,;t t
20750s,@am__include@,$am__include,;t t
20751s,@am__quote@,$am__quote,;t t
20752s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20753s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20754s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20755s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20756s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20757s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20758s,@CC@,$CC,;t t
20759s,@CFLAGS@,$CFLAGS,;t t
20760s,@ac_ct_CC@,$ac_ct_CC,;t t
20761s,@CCDEPMODE@,$CCDEPMODE,;t t
20762s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20763s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20764s,@CPP@,$CPP,;t t
20765s,@LN_S@,$LN_S,;t t
20766s,@build@,$build,;t t
20767s,@build_cpu@,$build_cpu,;t t
20768s,@build_vendor@,$build_vendor,;t t
20769s,@build_os@,$build_os,;t t
20770s,@host@,$host,;t t
20771s,@host_cpu@,$host_cpu,;t t
20772s,@host_vendor@,$host_vendor,;t t
20773s,@host_os@,$host_os,;t t
20774s,@EGREP@,$EGREP,;t t
20775s,@ECHO@,$ECHO,;t t
20776s,@AR@,$AR,;t t
20777s,@ac_ct_AR@,$ac_ct_AR,;t t
20778s,@RANLIB@,$RANLIB,;t t
20779s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20780s,@CXXCPP@,$CXXCPP,;t t
20781s,@F77@,$F77,;t t
20782s,@FFLAGS@,$FFLAGS,;t t
20783s,@ac_ct_F77@,$ac_ct_F77,;t t
20784s,@LIBTOOL@,$LIBTOOL,;t t
20785s,@LIBOBJS@,$LIBOBJS,;t t
20786s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20787CEOF
20788
20789_ACEOF
20790
20791  cat >>$CONFIG_STATUS <<\_ACEOF
20792  # Split the substitutions into bite-sized pieces for seds with
20793  # small command number limits, like on Digital OSF/1 and HP-UX.
20794  ac_max_sed_lines=48
20795  ac_sed_frag=1 # Number of current file.
20796  ac_beg=1 # First line for current file.
20797  ac_end=$ac_max_sed_lines # Line after last line for current file.
20798  ac_more_lines=:
20799  ac_sed_cmds=
20800  while $ac_more_lines; do
20801    if test $ac_beg -gt 1; then
20802      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20803    else
20804      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20805    fi
20806    if test ! -s $tmp/subs.frag; then
20807      ac_more_lines=false
20808    else
20809      # The purpose of the label and of the branching condition is to
20810      # speed up the sed processing (if there are no `@' at all, there
20811      # is no need to browse any of the substitutions).
20812      # These are the two extra sed commands mentioned above.
20813      (echo ':t
20814  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20815      if test -z "$ac_sed_cmds"; then
20816	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20817      else
20818	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20819      fi
20820      ac_sed_frag=`expr $ac_sed_frag + 1`
20821      ac_beg=$ac_end
20822      ac_end=`expr $ac_end + $ac_max_sed_lines`
20823    fi
20824  done
20825  if test -z "$ac_sed_cmds"; then
20826    ac_sed_cmds=cat
20827  fi
20828fi # test -n "$CONFIG_FILES"
20829
20830_ACEOF
20831cat >>$CONFIG_STATUS <<\_ACEOF
20832for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20833  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20834  case $ac_file in
20835  - | *:- | *:-:* ) # input from stdin
20836	cat >$tmp/stdin
20837	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20838	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20839  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20840	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20841  * )   ac_file_in=$ac_file.in ;;
20842  esac
20843
20844  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20845  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20847	 X"$ac_file" : 'X\(//\)[^/]' \| \
20848	 X"$ac_file" : 'X\(//\)$' \| \
20849	 X"$ac_file" : 'X\(/\)' \| \
20850	 .     : '\(.\)' 2>/dev/null ||
20851echo X"$ac_file" |
20852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20853  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20854  	  /^X\(\/\/\)$/{ s//\1/; q; }
20855  	  /^X\(\/\).*/{ s//\1/; q; }
20856  	  s/.*/./; q'`
20857  { if $as_mkdir_p; then
20858    mkdir -p "$ac_dir"
20859  else
20860    as_dir="$ac_dir"
20861    as_dirs=
20862    while test ! -d "$as_dir"; do
20863      as_dirs="$as_dir $as_dirs"
20864      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20865$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20866	 X"$as_dir" : 'X\(//\)[^/]' \| \
20867	 X"$as_dir" : 'X\(//\)$' \| \
20868	 X"$as_dir" : 'X\(/\)' \| \
20869	 .     : '\(.\)' 2>/dev/null ||
20870echo X"$as_dir" |
20871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20873  	  /^X\(\/\/\)$/{ s//\1/; q; }
20874  	  /^X\(\/\).*/{ s//\1/; q; }
20875  	  s/.*/./; q'`
20876    done
20877    test ! -n "$as_dirs" || mkdir $as_dirs
20878  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20879echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20880   { (exit 1); exit 1; }; }; }
20881
20882  ac_builddir=.
20883
20884if test "$ac_dir" != .; then
20885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20886  # A "../" for each directory in $ac_dir_suffix.
20887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20888else
20889  ac_dir_suffix= ac_top_builddir=
20890fi
20891
20892case $srcdir in
20893  .)  # No --srcdir option.  We are building in place.
20894    ac_srcdir=.
20895    if test -z "$ac_top_builddir"; then
20896       ac_top_srcdir=.
20897    else
20898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20899    fi ;;
20900  [\\/]* | ?:[\\/]* )  # Absolute path.
20901    ac_srcdir=$srcdir$ac_dir_suffix;
20902    ac_top_srcdir=$srcdir ;;
20903  *) # Relative path.
20904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20906esac
20907
20908# Do not use `cd foo && pwd` to compute absolute paths, because
20909# the directories may not exist.
20910case `pwd` in
20911.) ac_abs_builddir="$ac_dir";;
20912*)
20913  case "$ac_dir" in
20914  .) ac_abs_builddir=`pwd`;;
20915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20917  esac;;
20918esac
20919case $ac_abs_builddir in
20920.) ac_abs_top_builddir=${ac_top_builddir}.;;
20921*)
20922  case ${ac_top_builddir}. in
20923  .) ac_abs_top_builddir=$ac_abs_builddir;;
20924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20926  esac;;
20927esac
20928case $ac_abs_builddir in
20929.) ac_abs_srcdir=$ac_srcdir;;
20930*)
20931  case $ac_srcdir in
20932  .) ac_abs_srcdir=$ac_abs_builddir;;
20933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20935  esac;;
20936esac
20937case $ac_abs_builddir in
20938.) ac_abs_top_srcdir=$ac_top_srcdir;;
20939*)
20940  case $ac_top_srcdir in
20941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20944  esac;;
20945esac
20946
20947
20948  case $INSTALL in
20949  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20950  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20951  esac
20952
20953  if test x"$ac_file" != x-; then
20954    { echo "$as_me:$LINENO: creating $ac_file" >&5
20955echo "$as_me: creating $ac_file" >&6;}
20956    rm -f "$ac_file"
20957  fi
20958  # Let's still pretend it is `configure' which instantiates (i.e., don't
20959  # use $as_me), people would be surprised to read:
20960  #    /* config.h.  Generated by config.status.  */
20961  if test x"$ac_file" = x-; then
20962    configure_input=
20963  else
20964    configure_input="$ac_file.  "
20965  fi
20966  configure_input=$configure_input"Generated from `echo $ac_file_in |
20967				     sed 's,.*/,,'` by configure."
20968
20969  # First look for the input files in the build tree, otherwise in the
20970  # src tree.
20971  ac_file_inputs=`IFS=:
20972    for f in $ac_file_in; do
20973      case $f in
20974      -) echo $tmp/stdin ;;
20975      [\\/$]*)
20976	 # Absolute (can't be DOS-style, as IFS=:)
20977	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20978echo "$as_me: error: cannot find input file: $f" >&2;}
20979   { (exit 1); exit 1; }; }
20980	 echo "$f";;
20981      *) # Relative
20982	 if test -f "$f"; then
20983	   # Build tree
20984	   echo "$f"
20985	 elif test -f "$srcdir/$f"; then
20986	   # Source tree
20987	   echo "$srcdir/$f"
20988	 else
20989	   # /dev/null tree
20990	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20991echo "$as_me: error: cannot find input file: $f" >&2;}
20992   { (exit 1); exit 1; }; }
20993	 fi;;
20994      esac
20995    done` || { (exit 1); exit 1; }
20996_ACEOF
20997cat >>$CONFIG_STATUS <<_ACEOF
20998  sed "$ac_vpsub
20999$extrasub
21000_ACEOF
21001cat >>$CONFIG_STATUS <<\_ACEOF
21002:t
21003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21004s,@configure_input@,$configure_input,;t t
21005s,@srcdir@,$ac_srcdir,;t t
21006s,@abs_srcdir@,$ac_abs_srcdir,;t t
21007s,@top_srcdir@,$ac_top_srcdir,;t t
21008s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21009s,@builddir@,$ac_builddir,;t t
21010s,@abs_builddir@,$ac_abs_builddir,;t t
21011s,@top_builddir@,$ac_top_builddir,;t t
21012s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21013s,@INSTALL@,$ac_INSTALL,;t t
21014" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21015  rm -f $tmp/stdin
21016  if test x"$ac_file" != x-; then
21017    mv $tmp/out $ac_file
21018  else
21019    cat $tmp/out
21020    rm -f $tmp/out
21021  fi
21022
21023done
21024_ACEOF
21025cat >>$CONFIG_STATUS <<\_ACEOF
21026
21027#
21028# CONFIG_HEADER section.
21029#
21030
21031# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21032# NAME is the cpp macro being defined and VALUE is the value it is being given.
21033#
21034# ac_d sets the value in "#define NAME VALUE" lines.
21035ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21036ac_dB='[	 ].*$,\1#\2'
21037ac_dC=' '
21038ac_dD=',;t'
21039# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21040ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21041ac_uB='$,\1#\2define\3'
21042ac_uC=' '
21043ac_uD=',;t'
21044
21045for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21046  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21047  case $ac_file in
21048  - | *:- | *:-:* ) # input from stdin
21049	cat >$tmp/stdin
21050	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21051	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21052  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21053	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21054  * )   ac_file_in=$ac_file.in ;;
21055  esac
21056
21057  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21058echo "$as_me: creating $ac_file" >&6;}
21059
21060  # First look for the input files in the build tree, otherwise in the
21061  # src tree.
21062  ac_file_inputs=`IFS=:
21063    for f in $ac_file_in; do
21064      case $f in
21065      -) echo $tmp/stdin ;;
21066      [\\/$]*)
21067	 # Absolute (can't be DOS-style, as IFS=:)
21068	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21069echo "$as_me: error: cannot find input file: $f" >&2;}
21070   { (exit 1); exit 1; }; }
21071	 # Do quote $f, to prevent DOS paths from being IFS'd.
21072	 echo "$f";;
21073      *) # Relative
21074	 if test -f "$f"; then
21075	   # Build tree
21076	   echo "$f"
21077	 elif test -f "$srcdir/$f"; then
21078	   # Source tree
21079	   echo "$srcdir/$f"
21080	 else
21081	   # /dev/null tree
21082	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21083echo "$as_me: error: cannot find input file: $f" >&2;}
21084   { (exit 1); exit 1; }; }
21085	 fi;;
21086      esac
21087    done` || { (exit 1); exit 1; }
21088  # Remove the trailing spaces.
21089  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21090
21091_ACEOF
21092
21093# Transform confdefs.h into two sed scripts, `conftest.defines' and
21094# `conftest.undefs', that substitutes the proper values into
21095# config.h.in to produce config.h.  The first handles `#define'
21096# templates, and the second `#undef' templates.
21097# And first: Protect against being on the right side of a sed subst in
21098# config.status.  Protect against being in an unquoted here document
21099# in config.status.
21100rm -f conftest.defines conftest.undefs
21101# Using a here document instead of a string reduces the quoting nightmare.
21102# Putting comments in sed scripts is not portable.
21103#
21104# `end' is used to avoid that the second main sed command (meant for
21105# 0-ary CPP macros) applies to n-ary macro definitions.
21106# See the Autoconf documentation for `clear'.
21107cat >confdef2sed.sed <<\_ACEOF
21108s/[\\&,]/\\&/g
21109s,[\\$`],\\&,g
21110t clear
21111: clear
21112s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21113t end
21114s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21115: end
21116_ACEOF
21117# If some macros were called several times there might be several times
21118# the same #defines, which is useless.  Nevertheless, we may not want to
21119# sort them, since we want the *last* AC-DEFINE to be honored.
21120uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21121sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21122rm -f confdef2sed.sed
21123
21124# This sed command replaces #undef with comments.  This is necessary, for
21125# example, in the case of _POSIX_SOURCE, which is predefined and required
21126# on some systems where configure will not decide to define it.
21127cat >>conftest.undefs <<\_ACEOF
21128s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21129_ACEOF
21130
21131# Break up conftest.defines because some shells have a limit on the size
21132# of here documents, and old seds have small limits too (100 cmds).
21133echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21134echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21135echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21136echo '  :' >>$CONFIG_STATUS
21137rm -f conftest.tail
21138while grep . conftest.defines >/dev/null
21139do
21140  # Write a limited-size here document to $tmp/defines.sed.
21141  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21142  # Speed up: don't consider the non `#define' lines.
21143  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21144  # Work around the forget-to-reset-the-flag bug.
21145  echo 't clr' >>$CONFIG_STATUS
21146  echo ': clr' >>$CONFIG_STATUS
21147  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21148  echo 'CEOF
21149  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21150  rm -f $tmp/in
21151  mv $tmp/out $tmp/in
21152' >>$CONFIG_STATUS
21153  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21154  rm -f conftest.defines
21155  mv conftest.tail conftest.defines
21156done
21157rm -f conftest.defines
21158echo '  fi # grep' >>$CONFIG_STATUS
21159echo >>$CONFIG_STATUS
21160
21161# Break up conftest.undefs because some shells have a limit on the size
21162# of here documents, and old seds have small limits too (100 cmds).
21163echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21164rm -f conftest.tail
21165while grep . conftest.undefs >/dev/null
21166do
21167  # Write a limited-size here document to $tmp/undefs.sed.
21168  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21169  # Speed up: don't consider the non `#undef'
21170  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21171  # Work around the forget-to-reset-the-flag bug.
21172  echo 't clr' >>$CONFIG_STATUS
21173  echo ': clr' >>$CONFIG_STATUS
21174  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21175  echo 'CEOF
21176  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21177  rm -f $tmp/in
21178  mv $tmp/out $tmp/in
21179' >>$CONFIG_STATUS
21180  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21181  rm -f conftest.undefs
21182  mv conftest.tail conftest.undefs
21183done
21184rm -f conftest.undefs
21185
21186cat >>$CONFIG_STATUS <<\_ACEOF
21187  # Let's still pretend it is `configure' which instantiates (i.e., don't
21188  # use $as_me), people would be surprised to read:
21189  #    /* config.h.  Generated by config.status.  */
21190  if test x"$ac_file" = x-; then
21191    echo "/* Generated by configure.  */" >$tmp/config.h
21192  else
21193    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21194  fi
21195  cat $tmp/in >>$tmp/config.h
21196  rm -f $tmp/in
21197  if test x"$ac_file" != x-; then
21198    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21199      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21200echo "$as_me: $ac_file is unchanged" >&6;}
21201    else
21202      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21204	 X"$ac_file" : 'X\(//\)[^/]' \| \
21205	 X"$ac_file" : 'X\(//\)$' \| \
21206	 X"$ac_file" : 'X\(/\)' \| \
21207	 .     : '\(.\)' 2>/dev/null ||
21208echo X"$ac_file" |
21209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21210  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21211  	  /^X\(\/\/\)$/{ s//\1/; q; }
21212  	  /^X\(\/\).*/{ s//\1/; q; }
21213  	  s/.*/./; q'`
21214      { if $as_mkdir_p; then
21215    mkdir -p "$ac_dir"
21216  else
21217    as_dir="$ac_dir"
21218    as_dirs=
21219    while test ! -d "$as_dir"; do
21220      as_dirs="$as_dir $as_dirs"
21221      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21223	 X"$as_dir" : 'X\(//\)[^/]' \| \
21224	 X"$as_dir" : 'X\(//\)$' \| \
21225	 X"$as_dir" : 'X\(/\)' \| \
21226	 .     : '\(.\)' 2>/dev/null ||
21227echo X"$as_dir" |
21228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21229  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21230  	  /^X\(\/\/\)$/{ s//\1/; q; }
21231  	  /^X\(\/\).*/{ s//\1/; q; }
21232  	  s/.*/./; q'`
21233    done
21234    test ! -n "$as_dirs" || mkdir $as_dirs
21235  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21236echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21237   { (exit 1); exit 1; }; }; }
21238
21239      rm -f $ac_file
21240      mv $tmp/config.h $ac_file
21241    fi
21242  else
21243    cat $tmp/config.h
21244    rm -f $tmp/config.h
21245  fi
21246# Compute $ac_file's index in $config_headers.
21247_am_stamp_count=1
21248for _am_header in $config_headers :; do
21249  case $_am_header in
21250    $ac_file | $ac_file:* )
21251      break ;;
21252    * )
21253      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21254  esac
21255done
21256echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21257$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21258	 X$ac_file : 'X\(//\)[^/]' \| \
21259	 X$ac_file : 'X\(//\)$' \| \
21260	 X$ac_file : 'X\(/\)' \| \
21261	 .     : '\(.\)' 2>/dev/null ||
21262echo X$ac_file |
21263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21264  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21265  	  /^X\(\/\/\)$/{ s//\1/; q; }
21266  	  /^X\(\/\).*/{ s//\1/; q; }
21267  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21268done
21269_ACEOF
21270cat >>$CONFIG_STATUS <<\_ACEOF
21271
21272#
21273# CONFIG_COMMANDS section.
21274#
21275for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21276  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21277  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21278  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21279$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21280	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21281	 X"$ac_dest" : 'X\(//\)$' \| \
21282	 X"$ac_dest" : 'X\(/\)' \| \
21283	 .     : '\(.\)' 2>/dev/null ||
21284echo X"$ac_dest" |
21285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21286  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21287  	  /^X\(\/\/\)$/{ s//\1/; q; }
21288  	  /^X\(\/\).*/{ s//\1/; q; }
21289  	  s/.*/./; q'`
21290  { if $as_mkdir_p; then
21291    mkdir -p "$ac_dir"
21292  else
21293    as_dir="$ac_dir"
21294    as_dirs=
21295    while test ! -d "$as_dir"; do
21296      as_dirs="$as_dir $as_dirs"
21297      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299	 X"$as_dir" : 'X\(//\)[^/]' \| \
21300	 X"$as_dir" : 'X\(//\)$' \| \
21301	 X"$as_dir" : 'X\(/\)' \| \
21302	 .     : '\(.\)' 2>/dev/null ||
21303echo X"$as_dir" |
21304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21305  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21306  	  /^X\(\/\/\)$/{ s//\1/; q; }
21307  	  /^X\(\/\).*/{ s//\1/; q; }
21308  	  s/.*/./; q'`
21309    done
21310    test ! -n "$as_dirs" || mkdir $as_dirs
21311  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21312echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21313   { (exit 1); exit 1; }; }; }
21314
21315  ac_builddir=.
21316
21317if test "$ac_dir" != .; then
21318  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21319  # A "../" for each directory in $ac_dir_suffix.
21320  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21321else
21322  ac_dir_suffix= ac_top_builddir=
21323fi
21324
21325case $srcdir in
21326  .)  # No --srcdir option.  We are building in place.
21327    ac_srcdir=.
21328    if test -z "$ac_top_builddir"; then
21329       ac_top_srcdir=.
21330    else
21331       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21332    fi ;;
21333  [\\/]* | ?:[\\/]* )  # Absolute path.
21334    ac_srcdir=$srcdir$ac_dir_suffix;
21335    ac_top_srcdir=$srcdir ;;
21336  *) # Relative path.
21337    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21338    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21339esac
21340
21341# Do not use `cd foo && pwd` to compute absolute paths, because
21342# the directories may not exist.
21343case `pwd` in
21344.) ac_abs_builddir="$ac_dir";;
21345*)
21346  case "$ac_dir" in
21347  .) ac_abs_builddir=`pwd`;;
21348  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21349  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21350  esac;;
21351esac
21352case $ac_abs_builddir in
21353.) ac_abs_top_builddir=${ac_top_builddir}.;;
21354*)
21355  case ${ac_top_builddir}. in
21356  .) ac_abs_top_builddir=$ac_abs_builddir;;
21357  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21358  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21359  esac;;
21360esac
21361case $ac_abs_builddir in
21362.) ac_abs_srcdir=$ac_srcdir;;
21363*)
21364  case $ac_srcdir in
21365  .) ac_abs_srcdir=$ac_abs_builddir;;
21366  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21367  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21368  esac;;
21369esac
21370case $ac_abs_builddir in
21371.) ac_abs_top_srcdir=$ac_top_srcdir;;
21372*)
21373  case $ac_top_srcdir in
21374  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21375  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21376  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21377  esac;;
21378esac
21379
21380
21381  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21382echo "$as_me: executing $ac_dest commands" >&6;}
21383  case $ac_dest in
21384    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21385  # Strip MF so we end up with the name of the file.
21386  mf=`echo "$mf" | sed -e 's/:.*$//'`
21387  # Check whether this is an Automake generated Makefile or not.
21388  # We used to match only the files named `Makefile.in', but
21389  # some people rename them; so instead we look at the file content.
21390  # Grep'ing the first line is not enough: some people post-process
21391  # each Makefile.in and add a new line on top of each file to say so.
21392  # So let's grep whole file.
21393  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21394    dirpart=`(dirname "$mf") 2>/dev/null ||
21395$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21396	 X"$mf" : 'X\(//\)[^/]' \| \
21397	 X"$mf" : 'X\(//\)$' \| \
21398	 X"$mf" : 'X\(/\)' \| \
21399	 .     : '\(.\)' 2>/dev/null ||
21400echo X"$mf" |
21401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21402  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21403  	  /^X\(\/\/\)$/{ s//\1/; q; }
21404  	  /^X\(\/\).*/{ s//\1/; q; }
21405  	  s/.*/./; q'`
21406  else
21407    continue
21408  fi
21409  # Extract the definition of DEPDIR, am__include, and am__quote
21410  # from the Makefile without running `make'.
21411  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21412  test -z "$DEPDIR" && continue
21413  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21414  test -z "am__include" && continue
21415  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21416  # When using ansi2knr, U may be empty or an underscore; expand it
21417  U=`sed -n 's/^U = //p' < "$mf"`
21418  # Find all dependency output files, they are included files with
21419  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21420  # simplest approach to changing $(DEPDIR) to its actual value in the
21421  # expansion.
21422  for file in `sed -n "
21423    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21424       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21425    # Make sure the directory exists.
21426    test -f "$dirpart/$file" && continue
21427    fdir=`(dirname "$file") 2>/dev/null ||
21428$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21429	 X"$file" : 'X\(//\)[^/]' \| \
21430	 X"$file" : 'X\(//\)$' \| \
21431	 X"$file" : 'X\(/\)' \| \
21432	 .     : '\(.\)' 2>/dev/null ||
21433echo X"$file" |
21434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21435  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21436  	  /^X\(\/\/\)$/{ s//\1/; q; }
21437  	  /^X\(\/\).*/{ s//\1/; q; }
21438  	  s/.*/./; q'`
21439    { if $as_mkdir_p; then
21440    mkdir -p $dirpart/$fdir
21441  else
21442    as_dir=$dirpart/$fdir
21443    as_dirs=
21444    while test ! -d "$as_dir"; do
21445      as_dirs="$as_dir $as_dirs"
21446      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21448	 X"$as_dir" : 'X\(//\)[^/]' \| \
21449	 X"$as_dir" : 'X\(//\)$' \| \
21450	 X"$as_dir" : 'X\(/\)' \| \
21451	 .     : '\(.\)' 2>/dev/null ||
21452echo X"$as_dir" |
21453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21454  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21455  	  /^X\(\/\/\)$/{ s//\1/; q; }
21456  	  /^X\(\/\).*/{ s//\1/; q; }
21457  	  s/.*/./; q'`
21458    done
21459    test ! -n "$as_dirs" || mkdir $as_dirs
21460  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21461echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21462   { (exit 1); exit 1; }; }; }
21463
21464    # echo "creating $dirpart/$file"
21465    echo '# dummy' > "$dirpart/$file"
21466  done
21467done
21468 ;;
21469  esac
21470done
21471_ACEOF
21472
21473cat >>$CONFIG_STATUS <<\_ACEOF
21474
21475{ (exit 0); exit 0; }
21476_ACEOF
21477chmod +x $CONFIG_STATUS
21478ac_clean_files=$ac_clean_files_save
21479
21480
21481# configure is writing to config.log, and then calls config.status.
21482# config.status does its own redirection, appending to config.log.
21483# Unfortunately, on DOS this fails, as config.log is still kept open
21484# by configure, so config.status won't be able to write to it; its
21485# output is simply discarded.  So we exec the FD to /dev/null,
21486# effectively closing config.log, so it can be properly (re)opened and
21487# appended to by config.status.  When coming back to configure, we
21488# need to make the FD available again.
21489if test "$no_create" != yes; then
21490  ac_cs_success=:
21491  ac_config_status_args=
21492  test "$silent" = yes &&
21493    ac_config_status_args="$ac_config_status_args --quiet"
21494  exec 5>/dev/null
21495  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21496  exec 5>>config.log
21497  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21498  # would make configure fail if this is the last instruction.
21499  $ac_cs_success || { (exit 1); exit 1; }
21500fi
21501
21502