1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for tagdemo 0.1.
4#
5# Report bugs to <bug-libtool@gnu.org>.
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='tagdemo'
425PACKAGE_TARNAME='tagdemo'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='tagdemo 0.1'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="foo.cpp"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL LIBM LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures tagdemo 0.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018  --target=TARGET   configure for building compilers for TARGET [HOST]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
1023  case $ac_init_help in
1024     short | recursive ) echo "Configuration of tagdemo 0.1:";;
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
1050Some influential environment variables:
1051  CC          C compiler command
1052  CFLAGS      C compiler flags
1053  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054              nonstandard directory <lib dir>
1055  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056              headers in a nonstandard directory <include dir>
1057  CPP         C preprocessor
1058  CXX         C++ compiler command
1059  CXXFLAGS    C++ compiler flags
1060  CXXCPP      C++ preprocessor
1061  F77         Fortran 77 compiler command
1062  FFLAGS      Fortran 77 compiler flags
1063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067Report bugs to <bug-libtool@gnu.org>.
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072  # If there are subdirs, report their specific --help.
1073  ac_popdir=`pwd`
1074  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075    test -d $ac_dir || continue
1076    ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080  # A "../" for each directory in $ac_dir_suffix.
1081  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083  ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087  .)  # No --srcdir option.  We are building in place.
1088    ac_srcdir=.
1089    if test -z "$ac_top_builddir"; then
1090       ac_top_srcdir=.
1091    else
1092       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093    fi ;;
1094  [\\/]* | ?:[\\/]* )  # Absolute path.
1095    ac_srcdir=$srcdir$ac_dir_suffix;
1096    ac_top_srcdir=$srcdir ;;
1097  *) # Relative path.
1098    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107  case "$ac_dir" in
1108  .) ac_abs_builddir=`pwd`;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111  esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116  case ${ac_top_builddir}. in
1117  .) ac_abs_top_builddir=$ac_abs_builddir;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125  case $ac_srcdir in
1126  .) ac_abs_srcdir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134  case $ac_top_srcdir in
1135  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138  esac;;
1139esac
1140
1141    cd $ac_dir
1142    # Check for guested configure; otherwise get Cygnus style configure.
1143    if test -f $ac_srcdir/configure.gnu; then
1144      echo
1145      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146    elif test -f $ac_srcdir/configure; then
1147      echo
1148      $SHELL $ac_srcdir/configure  --help=recursive
1149    elif test -f $ac_srcdir/configure.ac ||
1150	   test -f $ac_srcdir/configure.in; then
1151      echo
1152      $ac_configure --help
1153    else
1154      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155    fi
1156    cd $ac_popdir
1157  done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162  cat <<\_ACEOF
1163tagdemo configure 0.1
1164generated by GNU Autoconf 2.59
1165
1166Copyright (C) 2003 Free Software Foundation, Inc.
1167This configure script is free software; the Free Software Foundation
1168gives unlimited permission to copy, distribute and modify it.
1169_ACEOF
1170  exit 0
1171fi
1172exec 5>config.log
1173cat >&5 <<_ACEOF
1174This file contains any messages produced by compilers while
1175running configure, to aid debugging if configure makes a mistake.
1176
1177It was created by tagdemo $as_me 0.1, which was
1178generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180  $ $0 $@
1181
1182_ACEOF
1183{
1184cat <<_ASUNAME
1185## --------- ##
1186## Platform. ##
1187## --------- ##
1188
1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206_ASUNAME
1207
1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209for as_dir in $PATH
1210do
1211  IFS=$as_save_IFS
1212  test -z "$as_dir" && as_dir=.
1213  echo "PATH: $as_dir"
1214done
1215
1216} >&5
1217
1218cat >&5 <<_ACEOF
1219
1220
1221## ----------- ##
1222## Core tests. ##
1223## ----------- ##
1224
1225_ACEOF
1226
1227
1228# Keep a trace of the command line.
1229# Strip out --no-create and --no-recursion so they do not pile up.
1230# Strip out --silent because we don't want to record it for future runs.
1231# Also quote any args containing shell meta-characters.
1232# Make two passes to allow for proper duplicate-argument suppression.
1233ac_configure_args=
1234ac_configure_args0=
1235ac_configure_args1=
1236ac_sep=
1237ac_must_keep_next=false
1238for ac_pass in 1 2
1239do
1240  for ac_arg
1241  do
1242    case $ac_arg in
1243    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245    | -silent | --silent | --silen | --sile | --sil)
1246      continue ;;
1247    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249    esac
1250    case $ac_pass in
1251    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252    2)
1253      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254      if test $ac_must_keep_next = true; then
1255	ac_must_keep_next=false # Got value, back to normal.
1256      else
1257	case $ac_arg in
1258	  *=* | --config-cache | -C | -disable-* | --disable-* \
1259	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261	  | -with-* | --with-* | -without-* | --without-* | --x)
1262	    case "$ac_configure_args0 " in
1263	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264	    esac
1265	    ;;
1266	  -* ) ac_must_keep_next=true ;;
1267	esac
1268      fi
1269      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270      # Get rid of the leading space.
1271      ac_sep=" "
1272      ;;
1273    esac
1274  done
1275done
1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279# When interrupted or exit'd, cleanup temporary files, and complete
1280# config.log.  We remove comments because anyway the quotes in there
1281# would cause problems or look ugly.
1282# WARNING: Be sure not to use single quotes in there, as some shells,
1283# such as our DU 5.0 friend, will then `close' the trap.
1284trap 'exit_status=$?
1285  # Save into config.log some information that might help in debugging.
1286  {
1287    echo
1288
1289    cat <<\_ASBOX
1290## ---------------- ##
1291## Cache variables. ##
1292## ---------------- ##
1293_ASBOX
1294    echo
1295    # The following way of writing the cache mishandles newlines in values,
1296{
1297  (set) 2>&1 |
1298    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299    *ac_space=\ *)
1300      sed -n \
1301	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303      ;;
1304    *)
1305      sed -n \
1306	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307      ;;
1308    esac;
1309}
1310    echo
1311
1312    cat <<\_ASBOX
1313## ----------------- ##
1314## Output variables. ##
1315## ----------------- ##
1316_ASBOX
1317    echo
1318    for ac_var in $ac_subst_vars
1319    do
1320      eval ac_val=$`echo $ac_var`
1321      echo "$ac_var='"'"'$ac_val'"'"'"
1322    done | sort
1323    echo
1324
1325    if test -n "$ac_subst_files"; then
1326      cat <<\_ASBOX
1327## ------------- ##
1328## Output files. ##
1329## ------------- ##
1330_ASBOX
1331      echo
1332      for ac_var in $ac_subst_files
1333      do
1334	eval ac_val=$`echo $ac_var`
1335	echo "$ac_var='"'"'$ac_val'"'"'"
1336      done | sort
1337      echo
1338    fi
1339
1340    if test -s confdefs.h; then
1341      cat <<\_ASBOX
1342## ----------- ##
1343## confdefs.h. ##
1344## ----------- ##
1345_ASBOX
1346      echo
1347      sed "/^$/d" confdefs.h | sort
1348      echo
1349    fi
1350    test "$ac_signal" != 0 &&
1351      echo "$as_me: caught signal $ac_signal"
1352    echo "$as_me: exit $exit_status"
1353  } >&5
1354  rm -f core *.core &&
1355  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356    exit $exit_status
1357     ' 0
1358for ac_signal in 1 2 13 15; do
1359  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360done
1361ac_signal=0
1362
1363# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364rm -rf conftest* confdefs.h
1365# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366echo >confdefs.h
1367
1368# Predefined preprocessor variables.
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_NAME "$PACKAGE_NAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_STRING "$PACKAGE_STRING"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392_ACEOF
1393
1394
1395# Let the site file select an alternate cache file if it wants to.
1396# Prefer explicitly selected file to automatically selected ones.
1397if test -z "$CONFIG_SITE"; then
1398  if test "x$prefix" != xNONE; then
1399    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400  else
1401    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402  fi
1403fi
1404for ac_site_file in $CONFIG_SITE; do
1405  if test -r "$ac_site_file"; then
1406    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407echo "$as_me: loading site script $ac_site_file" >&6;}
1408    sed 's/^/| /' "$ac_site_file" >&5
1409    . "$ac_site_file"
1410  fi
1411done
1412
1413if test -r "$cache_file"; then
1414  # Some versions of bash will fail to source /dev/null (special
1415  # files actually), so we avoid doing that.
1416  if test -f "$cache_file"; then
1417    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418echo "$as_me: loading cache $cache_file" >&6;}
1419    case $cache_file in
1420      [\\/]* | ?:[\\/]* ) . $cache_file;;
1421      *)                      . ./$cache_file;;
1422    esac
1423  fi
1424else
1425  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426echo "$as_me: creating cache $cache_file" >&6;}
1427  >$cache_file
1428fi
1429
1430# Check that the precious variables saved in the cache have kept the same
1431# value.
1432ac_cache_corrupted=false
1433for ac_var in `(set) 2>&1 |
1434	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436  eval ac_new_set=\$ac_env_${ac_var}_set
1437  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438  eval ac_new_val="\$ac_env_${ac_var}_value"
1439  case $ac_old_set,$ac_new_set in
1440    set,)
1441      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443      ac_cache_corrupted=: ;;
1444    ,set)
1445      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447      ac_cache_corrupted=: ;;
1448    ,);;
1449    *)
1450      if test "x$ac_old_val" != "x$ac_new_val"; then
1451	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454echo "$as_me:   former value:  $ac_old_val" >&2;}
1455	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456echo "$as_me:   current value: $ac_new_val" >&2;}
1457	ac_cache_corrupted=:
1458      fi;;
1459  esac
1460  # Pass precious variables to config.status.
1461  if test "$ac_new_set" = set; then
1462    case $ac_new_val in
1463    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465    *) ac_arg=$ac_var=$ac_new_val ;;
1466    esac
1467    case " $ac_configure_args " in
1468      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470    esac
1471  fi
1472done
1473if $ac_cache_corrupted; then
1474  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478   { (exit 1); exit 1; }; }
1479fi
1480
1481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
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
1514
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# Make sure we can run config.sub.
1541$ac_config_sub sun4 >/dev/null 2>&1 ||
1542  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1543echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544   { (exit 1); exit 1; }; }
1545
1546echo "$as_me:$LINENO: checking build system type" >&5
1547echo $ECHO_N "checking build system type... $ECHO_C" >&6
1548if test "${ac_cv_build+set}" = set; then
1549  echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551  ac_cv_build_alias=$build_alias
1552test -z "$ac_cv_build_alias" &&
1553  ac_cv_build_alias=`$ac_config_guess`
1554test -z "$ac_cv_build_alias" &&
1555  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1556echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1557   { (exit 1); exit 1; }; }
1558ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1559  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1561   { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1565echo "${ECHO_T}$ac_cv_build" >&6
1566build=$ac_cv_build
1567build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking host system type" >&5
1573echo $ECHO_N "checking host system type... $ECHO_C" >&6
1574if test "${ac_cv_host+set}" = set; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  ac_cv_host_alias=$host_alias
1578test -z "$ac_cv_host_alias" &&
1579  ac_cv_host_alias=$ac_cv_build_alias
1580ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1581  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1583   { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1587echo "${ECHO_T}$ac_cv_host" >&6
1588host=$ac_cv_host
1589host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594echo "$as_me:$LINENO: checking target system type" >&5
1595echo $ECHO_N "checking target system type... $ECHO_C" >&6
1596if test "${ac_cv_target+set}" = set; then
1597  echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599  ac_cv_target_alias=$target_alias
1600test "x$ac_cv_target_alias" = "x" &&
1601  ac_cv_target_alias=$ac_cv_host_alias
1602ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1603  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1605   { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1609echo "${ECHO_T}$ac_cv_target" >&6
1610target=$ac_cv_target
1611target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616# The aliases save the names the user supplied, while $host etc.
1617# will get canonicalized.
1618test -n "$target_alias" &&
1619  test "$program_prefix$program_suffix$program_transform_name" = \
1620    NONENONEs,x,x, &&
1621  program_prefix=${target_alias}-
1622
1623
1624## ------------------------ ##
1625## Automake Initialisation. ##
1626## ------------------------ ##
1627am__api_version="1.9"
1628# Find a good install program.  We prefer a C program (faster),
1629# so one script is as good as another.  But avoid the broken or
1630# incompatible versions:
1631# SysV /etc/install, /usr/sbin/install
1632# SunOS /usr/etc/install
1633# IRIX /sbin/install
1634# AIX /bin/install
1635# AmigaOS /C/install, which installs bootblocks on floppy discs
1636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1637# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1639# OS/2's system install, which has a completely different semantic
1640# ./install, which can be erroneously created by make from ./install.sh.
1641echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1642echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1643if test -z "$INSTALL"; then
1644if test "${ac_cv_path_install+set}" = set; then
1645  echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
1647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  # Account for people who put trailing slashes in PATH elements.
1653case $as_dir/ in
1654  ./ | .// | /cC/* | \
1655  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1656  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1657  /usr/ucb/* ) ;;
1658  *)
1659    # OSF1 and SCO ODT 3.0 have their own names for install.
1660    # Don't use installbsd from OSF since it installs stuff as root
1661    # by default.
1662    for ac_prog in ginstall scoinst install; do
1663      for ac_exec_ext in '' $ac_executable_extensions; do
1664	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1665	  if test $ac_prog = install &&
1666	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1667	    # AIX install.  It has an incompatible calling convention.
1668	    :
1669	  elif test $ac_prog = install &&
1670	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1671	    # program-specific install script used by HP pwplus--don't use.
1672	    :
1673	  else
1674	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1675	    break 3
1676	  fi
1677	fi
1678      done
1679    done
1680    ;;
1681esac
1682done
1683
1684
1685fi
1686  if test "${ac_cv_path_install+set}" = set; then
1687    INSTALL=$ac_cv_path_install
1688  else
1689    # As a last resort, use the slow shell script.  We don't cache a
1690    # path for INSTALL within a source directory, because that will
1691    # break other packages using the cache if that directory is
1692    # removed, or if the path is relative.
1693    INSTALL=$ac_install_sh
1694  fi
1695fi
1696echo "$as_me:$LINENO: result: $INSTALL" >&5
1697echo "${ECHO_T}$INSTALL" >&6
1698
1699# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1700# It thinks the first close brace ends the variable substitution.
1701test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1702
1703test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1704
1705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1706
1707echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1708echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1709# Just in case
1710sleep 1
1711echo timestamp > conftest.file
1712# Do `set' in a subshell so we don't clobber the current shell's
1713# arguments.  Must try -L first in case configure is actually a
1714# symlink; some systems play weird games with the mod time of symlinks
1715# (eg FreeBSD returns the mod time of the symlink's containing
1716# directory).
1717if (
1718   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1719   if test "$*" = "X"; then
1720      # -L didn't work.
1721      set X `ls -t $srcdir/configure conftest.file`
1722   fi
1723   rm -f conftest.file
1724   if test "$*" != "X $srcdir/configure conftest.file" \
1725      && test "$*" != "X conftest.file $srcdir/configure"; then
1726
1727      # If neither matched, then we have a broken ls.  This can happen
1728      # if, for instance, CONFIG_SHELL is bash and it inherits a
1729      # broken ls alias from the environment.  This has actually
1730      # happened.  Such a system could not be considered "sane".
1731      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1732alias in your environment" >&5
1733echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1734alias in your environment" >&2;}
1735   { (exit 1); exit 1; }; }
1736   fi
1737
1738   test "$2" = conftest.file
1739   )
1740then
1741   # Ok.
1742   :
1743else
1744   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1745Check your system clock" >&5
1746echo "$as_me: error: newly created file is older than distributed files!
1747Check your system clock" >&2;}
1748   { (exit 1); exit 1; }; }
1749fi
1750echo "$as_me:$LINENO: result: yes" >&5
1751echo "${ECHO_T}yes" >&6
1752test "$program_prefix" != NONE &&
1753  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1754# Use a double $ so make ignores it.
1755test "$program_suffix" != NONE &&
1756  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1757# Double any \ or $.  echo might interpret backslashes.
1758# By default was `s,x,x', remove it if useless.
1759cat <<\_ACEOF >conftest.sed
1760s/[\\$]/&&/g;s/;s,x,x,$//
1761_ACEOF
1762program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1763rm conftest.sed
1764
1765# expand $ac_aux_dir to an absolute path
1766am_aux_dir=`cd $ac_aux_dir && pwd`
1767
1768test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1769# Use eval to expand $SHELL
1770if eval "$MISSING --run true"; then
1771  am_missing_run="$MISSING --run "
1772else
1773  am_missing_run=
1774  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1775echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1776fi
1777
1778if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1779  # We used to keeping the `.' as first argument, in order to
1780  # allow $(mkdir_p) to be used without argument.  As in
1781  #   $(mkdir_p) $(somedir)
1782  # where $(somedir) is conditionally defined.  However this is wrong
1783  # for two reasons:
1784  #  1. if the package is installed by a user who cannot write `.'
1785  #     make install will fail,
1786  #  2. the above comment should most certainly read
1787  #     $(mkdir_p) $(DESTDIR)$(somedir)
1788  #     so it does not work when $(somedir) is undefined and
1789  #     $(DESTDIR) is not.
1790  #  To support the latter case, we have to write
1791  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1792  #  so the `.' trick is pointless.
1793  mkdir_p='mkdir -p --'
1794else
1795  # On NextStep and OpenStep, the `mkdir' command does not
1796  # recognize any option.  It will interpret all options as
1797  # directories to create, and then abort because `.' already
1798  # exists.
1799  for d in ./-p ./--version;
1800  do
1801    test -d $d && rmdir $d
1802  done
1803  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1804  if test -f "$ac_aux_dir/mkinstalldirs"; then
1805    mkdir_p='$(mkinstalldirs)'
1806  else
1807    mkdir_p='$(install_sh) -d'
1808  fi
1809fi
1810
1811for ac_prog in gawk mawk nawk awk
1812do
1813  # Extract the first word of "$ac_prog", so it can be a program name with args.
1814set dummy $ac_prog; ac_word=$2
1815echo "$as_me:$LINENO: checking for $ac_word" >&5
1816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817if test "${ac_cv_prog_AWK+set}" = set; then
1818  echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820  if test -n "$AWK"; then
1821  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1822else
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826  IFS=$as_save_IFS
1827  test -z "$as_dir" && as_dir=.
1828  for ac_exec_ext in '' $ac_executable_extensions; do
1829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830    ac_cv_prog_AWK="$ac_prog"
1831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832    break 2
1833  fi
1834done
1835done
1836
1837fi
1838fi
1839AWK=$ac_cv_prog_AWK
1840if test -n "$AWK"; then
1841  echo "$as_me:$LINENO: result: $AWK" >&5
1842echo "${ECHO_T}$AWK" >&6
1843else
1844  echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848  test -n "$AWK" && break
1849done
1850
1851echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1852echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1853set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1854if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1855  echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857  cat >conftest.make <<\_ACEOF
1858all:
1859	@echo 'ac_maketemp="$(MAKE)"'
1860_ACEOF
1861# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1862eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1863if test -n "$ac_maketemp"; then
1864  eval ac_cv_prog_make_${ac_make}_set=yes
1865else
1866  eval ac_cv_prog_make_${ac_make}_set=no
1867fi
1868rm -f conftest.make
1869fi
1870if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1871  echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873  SET_MAKE=
1874else
1875  echo "$as_me:$LINENO: result: no" >&5
1876echo "${ECHO_T}no" >&6
1877  SET_MAKE="MAKE=${MAKE-make}"
1878fi
1879
1880rm -rf .tst 2>/dev/null
1881mkdir .tst 2>/dev/null
1882if test -d .tst; then
1883  am__leading_dot=.
1884else
1885  am__leading_dot=_
1886fi
1887rmdir .tst 2>/dev/null
1888
1889# test to see if srcdir already configured
1890if test "`cd $srcdir && pwd`" != "`pwd`" &&
1891   test -f $srcdir/config.status; then
1892  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1893echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1894   { (exit 1); exit 1; }; }
1895fi
1896
1897# test whether we have cygpath
1898if test -z "$CYGPATH_W"; then
1899  if (cygpath --version) >/dev/null 2>/dev/null; then
1900    CYGPATH_W='cygpath -w'
1901  else
1902    CYGPATH_W=echo
1903  fi
1904fi
1905
1906
1907# Define the identity of the package.
1908 PACKAGE=tagdemo
1909 VERSION=0.1
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE "$PACKAGE"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define VERSION "$VERSION"
1919_ACEOF
1920
1921# Some tools Automake needs.
1922
1923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1924
1925
1926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1927
1928
1929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1930
1931
1932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1933
1934
1935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1936
1937install_sh=${install_sh-"$am_aux_dir/install-sh"}
1938
1939# Installed binaries are usually stripped using `strip' when the user
1940# run `make install-strip'.  However `strip' might not be the right
1941# tool to use in cross-compilation environments, therefore Automake
1942# will honor the `STRIP' environment variable to overrule this program.
1943if test "$cross_compiling" != no; then
1944  if test -n "$ac_tool_prefix"; then
1945  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1946set dummy ${ac_tool_prefix}strip; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_STRIP+set}" = set; then
1950  echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952  if test -n "$STRIP"; then
1953  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958  IFS=$as_save_IFS
1959  test -z "$as_dir" && as_dir=.
1960  for ac_exec_ext in '' $ac_executable_extensions; do
1961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964    break 2
1965  fi
1966done
1967done
1968
1969fi
1970fi
1971STRIP=$ac_cv_prog_STRIP
1972if test -n "$STRIP"; then
1973  echo "$as_me:$LINENO: result: $STRIP" >&5
1974echo "${ECHO_T}$STRIP" >&6
1975else
1976  echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980fi
1981if test -z "$ac_cv_prog_STRIP"; then
1982  ac_ct_STRIP=$STRIP
1983  # Extract the first word of "strip", so it can be a program name with args.
1984set dummy strip; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$ac_ct_STRIP"; then
1991  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    ac_cv_prog_ac_ct_STRIP="strip"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2008fi
2009fi
2010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2011if test -n "$ac_ct_STRIP"; then
2012  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2013echo "${ECHO_T}$ac_ct_STRIP" >&6
2014else
2015  echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019  STRIP=$ac_ct_STRIP
2020else
2021  STRIP="$ac_cv_prog_STRIP"
2022fi
2023
2024fi
2025INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2026
2027# We need awk for the "check" target.  The system "awk" is bad on
2028# some platforms.
2029# Always define AMTAR for backward compatibility.
2030
2031AMTAR=${AMTAR-"${am_missing_run}tar"}
2032
2033am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2034
2035
2036
2037
2038
2039
2040
2041## ---------------- ##
2042## Compiler checks. ##
2043## ---------------- ##
2044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049if test -n "$ac_tool_prefix"; then
2050  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054if test "${ac_cv_prog_CC+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$CC"; then
2058  ac_cv_prog_CC="$CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072done
2073
2074fi
2075fi
2076CC=$ac_cv_prog_CC
2077if test -n "$CC"; then
2078  echo "$as_me:$LINENO: result: $CC" >&5
2079echo "${ECHO_T}$CC" >&6
2080else
2081  echo "$as_me:$LINENO: result: no" >&5
2082echo "${ECHO_T}no" >&6
2083fi
2084
2085fi
2086if test -z "$ac_cv_prog_CC"; then
2087  ac_ct_CC=$CC
2088  # Extract the first word of "gcc", so it can be a program name with args.
2089set dummy gcc; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_ac_ct_CC="gcc"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123  CC=$ac_ct_CC
2124else
2125  CC="$ac_cv_prog_CC"
2126fi
2127
2128if test -z "$CC"; then
2129  if test -n "$ac_tool_prefix"; then
2130  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131set dummy ${ac_tool_prefix}cc; ac_word=$2
2132echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134if test "${ac_cv_prog_CC+set}" = set; then
2135  echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137  if test -n "$CC"; then
2138  ac_cv_prog_CC="$CC" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143  IFS=$as_save_IFS
2144  test -z "$as_dir" && as_dir=.
2145  for ac_exec_ext in '' $ac_executable_extensions; do
2146  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147    ac_cv_prog_CC="${ac_tool_prefix}cc"
2148    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149    break 2
2150  fi
2151done
2152done
2153
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
2158  echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6
2160else
2161  echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165fi
2166if test -z "$ac_cv_prog_CC"; then
2167  ac_ct_CC=$CC
2168  # Extract the first word of "cc", so it can be a program name with args.
2169set dummy cc; ac_word=$2
2170echo "$as_me:$LINENO: checking for $ac_word" >&5
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173  echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175  if test -n "$ac_ct_CC"; then
2176  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177else
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183  for ac_exec_ext in '' $ac_executable_extensions; do
2184  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185    ac_cv_prog_ac_ct_CC="cc"
2186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187    break 2
2188  fi
2189done
2190done
2191
2192fi
2193fi
2194ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195if test -n "$ac_ct_CC"; then
2196  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197echo "${ECHO_T}$ac_ct_CC" >&6
2198else
2199  echo "$as_me:$LINENO: result: no" >&5
2200echo "${ECHO_T}no" >&6
2201fi
2202
2203  CC=$ac_ct_CC
2204else
2205  CC="$ac_cv_prog_CC"
2206fi
2207
2208fi
2209if test -z "$CC"; then
2210  # Extract the first word of "cc", so it can be a program name with args.
2211set dummy cc; ac_word=$2
2212echo "$as_me:$LINENO: checking for $ac_word" >&5
2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214if test "${ac_cv_prog_CC+set}" = set; then
2215  echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217  if test -n "$CC"; then
2218  ac_cv_prog_CC="$CC" # Let the user override the test.
2219else
2220  ac_prog_rejected=no
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226  for ac_exec_ext in '' $ac_executable_extensions; do
2227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2229       ac_prog_rejected=yes
2230       continue
2231     fi
2232    ac_cv_prog_CC="cc"
2233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234    break 2
2235  fi
2236done
2237done
2238
2239if test $ac_prog_rejected = yes; then
2240  # We found a bogon in the path, so make sure we never use it.
2241  set dummy $ac_cv_prog_CC
2242  shift
2243  if test $# != 0; then
2244    # We chose a different compiler from the bogus one.
2245    # However, it has the same basename, so the bogon will be chosen
2246    # first if we set CC to just the basename; use the full file name.
2247    shift
2248    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249  fi
2250fi
2251fi
2252fi
2253CC=$ac_cv_prog_CC
2254if test -n "$CC"; then
2255  echo "$as_me:$LINENO: result: $CC" >&5
2256echo "${ECHO_T}$CC" >&6
2257else
2258  echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6
2260fi
2261
2262fi
2263if test -z "$CC"; then
2264  if test -n "$ac_tool_prefix"; then
2265  for ac_prog in cl
2266  do
2267    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269echo "$as_me:$LINENO: checking for $ac_word" >&5
2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271if test "${ac_cv_prog_CC+set}" = set; then
2272  echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274  if test -n "$CC"; then
2275  ac_cv_prog_CC="$CC" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282  for ac_exec_ext in '' $ac_executable_extensions; do
2283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286    break 2
2287  fi
2288done
2289done
2290
2291fi
2292fi
2293CC=$ac_cv_prog_CC
2294if test -n "$CC"; then
2295  echo "$as_me:$LINENO: result: $CC" >&5
2296echo "${ECHO_T}$CC" >&6
2297else
2298  echo "$as_me:$LINENO: result: no" >&5
2299echo "${ECHO_T}no" >&6
2300fi
2301
2302    test -n "$CC" && break
2303  done
2304fi
2305if test -z "$CC"; then
2306  ac_ct_CC=$CC
2307  for ac_prog in cl
2308do
2309  # Extract the first word of "$ac_prog", so it can be a program name with args.
2310set dummy $ac_prog; ac_word=$2
2311echo "$as_me:$LINENO: checking for $ac_word" >&5
2312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314  echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316  if test -n "$ac_ct_CC"; then
2317  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324  for ac_exec_ext in '' $ac_executable_extensions; do
2325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326    ac_cv_prog_ac_ct_CC="$ac_prog"
2327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328    break 2
2329  fi
2330done
2331done
2332
2333fi
2334fi
2335ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336if test -n "$ac_ct_CC"; then
2337  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338echo "${ECHO_T}$ac_ct_CC" >&6
2339else
2340  echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6
2342fi
2343
2344  test -n "$ac_ct_CC" && break
2345done
2346
2347  CC=$ac_ct_CC
2348fi
2349
2350fi
2351
2352
2353test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354See \`config.log' for more details." >&5
2355echo "$as_me: error: no acceptable C compiler found in \$PATH
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358
2359# Provide some information about the compiler.
2360echo "$as_me:$LINENO:" \
2361     "checking for C compiler version" >&5
2362ac_compiler=`set X $ac_compile; echo $2`
2363{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2364  (eval $ac_compiler --version </dev/null >&5) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }
2368{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2369  (eval $ac_compiler -v </dev/null >&5) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }
2373{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2374  (eval $ac_compiler -V </dev/null >&5) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }
2378
2379cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385
2386int
2387main ()
2388{
2389
2390  ;
2391  return 0;
2392}
2393_ACEOF
2394ac_clean_files_save=$ac_clean_files
2395ac_clean_files="$ac_clean_files a.out a.exe b.out"
2396# Try to create an executable without -o first, disregard a.out.
2397# It will help us diagnose broken compilers, and finding out an intuition
2398# of exeext.
2399echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2401ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2403  (eval $ac_link_default) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; then
2407  # Find the output, starting from the most likely.  This scheme is
2408# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2409# resort.
2410
2411# Be careful to initialize this variable, since it used to be cached.
2412# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413ac_cv_exeext=
2414# b.out is created by i960 compilers.
2415for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2416do
2417  test -f "$ac_file" || continue
2418  case $ac_file in
2419    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2420	;;
2421    conftest.$ac_ext )
2422	# This is the source file.
2423	;;
2424    [ab].out )
2425	# We found the default executable, but exeext='' is most
2426	# certainly right.
2427	break;;
2428    *.* )
2429	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430	# FIXME: I believe we export ac_cv_exeext for Libtool,
2431	# but it would be cool to find out if it's true.  Does anybody
2432	# maintain Libtool? --akim.
2433	export ac_cv_exeext
2434	break;;
2435    * )
2436	break;;
2437  esac
2438done
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2444See \`config.log' for more details." >&5
2445echo "$as_me: error: C compiler cannot create executables
2446See \`config.log' for more details." >&2;}
2447   { (exit 77); exit 77; }; }
2448fi
2449
2450ac_exeext=$ac_cv_exeext
2451echo "$as_me:$LINENO: result: $ac_file" >&5
2452echo "${ECHO_T}$ac_file" >&6
2453
2454# Check the compiler produces executables we can run.  If not, either
2455# the compiler is broken, or we cross compile.
2456echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2458# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459# If not cross compiling, check that we can run a simple program.
2460if test "$cross_compiling" != yes; then
2461  if { ac_try='./$ac_file'
2462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463  (eval $ac_try) 2>&5
2464  ac_status=$?
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; }; then
2467    cross_compiling=no
2468  else
2469    if test "$cross_compiling" = maybe; then
2470	cross_compiling=yes
2471    else
2472	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473If you meant to cross compile, use \`--host'.
2474See \`config.log' for more details." >&5
2475echo "$as_me: error: cannot run C compiled programs.
2476If you meant to cross compile, use \`--host'.
2477See \`config.log' for more details." >&2;}
2478   { (exit 1); exit 1; }; }
2479    fi
2480  fi
2481fi
2482echo "$as_me:$LINENO: result: yes" >&5
2483echo "${ECHO_T}yes" >&6
2484
2485rm -f a.out a.exe conftest$ac_cv_exeext b.out
2486ac_clean_files=$ac_clean_files_save
2487# Check the compiler produces executables we can run.  If not, either
2488# the compiler is broken, or we cross compile.
2489echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2491echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492echo "${ECHO_T}$cross_compiling" >&6
2493
2494echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2497  (eval $ac_link) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; then
2501  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2502# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2503# work properly (i.e., refer to `conftest.exe'), while it won't with
2504# `rm'.
2505for ac_file in conftest.exe conftest conftest.*; do
2506  test -f "$ac_file" || continue
2507  case $ac_file in
2508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2509    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510	  export ac_cv_exeext
2511	  break;;
2512    * ) break;;
2513  esac
2514done
2515else
2516  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2517See \`config.log' for more details." >&5
2518echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2519See \`config.log' for more details." >&2;}
2520   { (exit 1); exit 1; }; }
2521fi
2522
2523rm -f conftest$ac_cv_exeext
2524echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525echo "${ECHO_T}$ac_cv_exeext" >&6
2526
2527rm -f conftest.$ac_ext
2528EXEEXT=$ac_cv_exeext
2529ac_exeext=$EXEEXT
2530echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2532if test "${ac_cv_objext+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h.  */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h.  */
2541
2542int
2543main ()
2544{
2545
2546  ;
2547  return 0;
2548}
2549_ACEOF
2550rm -f conftest.o conftest.obj
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552  (eval $ac_compile) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; then
2556  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557  case $ac_file in
2558    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2559    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2560       break;;
2561  esac
2562done
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570See \`config.log' for more details." >&2;}
2571   { (exit 1); exit 1; }; }
2572fi
2573
2574rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575fi
2576echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577echo "${ECHO_T}$ac_cv_objext" >&6
2578OBJEXT=$ac_cv_objext
2579ac_objext=$OBJEXT
2580echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2582if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583  echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585  cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h.  */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h.  */
2591
2592int
2593main ()
2594{
2595#ifndef __GNUC__
2596       choke me
2597#endif
2598
2599  ;
2600  return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext
2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605  (eval $ac_compile) 2>conftest.er1
2606  ac_status=$?
2607  grep -v '^ *+' conftest.er1 >conftest.err
2608  rm -f conftest.er1
2609  cat conftest.err >&5
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); } &&
2612	 { ac_try='test -z "$ac_c_werror_flag"
2613			 || test ! -s conftest.err'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; } &&
2619	 { ac_try='test -s conftest.$ac_objext'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  ac_compiler_gnu=yes
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630ac_compiler_gnu=no
2631fi
2632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633ac_cv_c_compiler_gnu=$ac_compiler_gnu
2634
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2637echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2638GCC=`test $ac_compiler_gnu = yes && echo yes`
2639ac_test_CFLAGS=${CFLAGS+set}
2640ac_save_CFLAGS=$CFLAGS
2641CFLAGS="-g"
2642echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2644if test "${ac_cv_prog_cc_g+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h.  */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h.  */
2653
2654int
2655main ()
2656{
2657
2658  ;
2659  return 0;
2660}
2661_ACEOF
2662rm -f conftest.$ac_objext
2663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664  (eval $ac_compile) 2>conftest.er1
2665  ac_status=$?
2666  grep -v '^ *+' conftest.er1 >conftest.err
2667  rm -f conftest.er1
2668  cat conftest.err >&5
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); } &&
2671	 { ac_try='test -z "$ac_c_werror_flag"
2672			 || test ! -s conftest.err'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; } &&
2678	 { ac_try='test -s conftest.$ac_objext'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; }; then
2684  ac_cv_prog_cc_g=yes
2685else
2686  echo "$as_me: failed program was:" >&5
2687sed 's/^/| /' conftest.$ac_ext >&5
2688
2689ac_cv_prog_cc_g=no
2690fi
2691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692fi
2693echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2695if test "$ac_test_CFLAGS" = set; then
2696  CFLAGS=$ac_save_CFLAGS
2697elif test $ac_cv_prog_cc_g = yes; then
2698  if test "$GCC" = yes; then
2699    CFLAGS="-g -O2"
2700  else
2701    CFLAGS="-g"
2702  fi
2703else
2704  if test "$GCC" = yes; then
2705    CFLAGS="-O2"
2706  else
2707    CFLAGS=
2708  fi
2709fi
2710echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715  ac_cv_prog_cc_stdc=no
2716ac_save_CC=$CC
2717cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h.  */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h.  */
2723#include <stdarg.h>
2724#include <stdio.h>
2725#include <sys/types.h>
2726#include <sys/stat.h>
2727/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2728struct buf { int x; };
2729FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730static char *e (p, i)
2731     char **p;
2732     int i;
2733{
2734  return p[i];
2735}
2736static char *f (char * (*g) (char **, int), char **p, ...)
2737{
2738  char *s;
2739  va_list v;
2740  va_start (v,p);
2741  s = g (p, va_arg (v,int));
2742  va_end (v);
2743  return s;
2744}
2745
2746/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2747   function prototypes and stuff, but not '\xHH' hex character constants.
2748   These don't provoke an error unfortunately, instead are silently treated
2749   as 'x'.  The following induces an error, until -std1 is added to get
2750   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2751   array size at least.  It's necessary to write '\x00'==0 to get something
2752   that's true only with -std1.  */
2753int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754
2755int test (int i, double x);
2756struct s1 {int (*f) (int a);};
2757struct s2 {int (*f) (double a);};
2758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759int argc;
2760char **argv;
2761int
2762main ()
2763{
2764return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2765  ;
2766  return 0;
2767}
2768_ACEOF
2769# Don't try gcc -ansi; that turns off useful extensions and
2770# breaks some systems' header files.
2771# AIX			-qlanglvl=ansi
2772# Ultrix and OSF/1	-std1
2773# HP-UX 10.20 and later	-Ae
2774# HP-UX older versions	-Aa -D_HPUX_SOURCE
2775# SVR4			-Xc -D__EXTENSIONS__
2776for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777do
2778  CC="$ac_save_CC $ac_arg"
2779  rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788	 { ac_try='test -z "$ac_c_werror_flag"
2789			 || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795	 { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  ac_cv_prog_cc_stdc=$ac_arg
2802break
2803else
2804  echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807fi
2808rm -f conftest.err conftest.$ac_objext
2809done
2810rm -f conftest.$ac_ext conftest.$ac_objext
2811CC=$ac_save_CC
2812
2813fi
2814
2815case "x$ac_cv_prog_cc_stdc" in
2816  x|xno)
2817    echo "$as_me:$LINENO: result: none needed" >&5
2818echo "${ECHO_T}none needed" >&6 ;;
2819  *)
2820    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822    CC="$CC $ac_cv_prog_cc_stdc" ;;
2823esac
2824
2825# Some people use a C++ compiler to compile C.  Since we use `exit',
2826# in C++ we need to declare it.  In case someone uses the same compiler
2827# for both compiling C and C++ we need to have the C++ compiler decide
2828# the declaration of exit, since it's the most demanding environment.
2829cat >conftest.$ac_ext <<_ACEOF
2830#ifndef __cplusplus
2831  choke me
2832#endif
2833_ACEOF
2834rm -f conftest.$ac_objext
2835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836  (eval $ac_compile) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843	 { ac_try='test -z "$ac_c_werror_flag"
2844			 || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850	 { ac_try='test -s conftest.$ac_objext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  for ac_declaration in \
2857   '' \
2858   'extern "C" void std::exit (int) throw (); using std::exit;' \
2859   'extern "C" void std::exit (int); using std::exit;' \
2860   'extern "C" void exit (int) throw ();' \
2861   'extern "C" void exit (int);' \
2862   'void exit (int);'
2863do
2864  cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h.  */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h.  */
2870$ac_declaration
2871#include <stdlib.h>
2872int
2873main ()
2874{
2875exit (42);
2876  ;
2877  return 0;
2878}
2879_ACEOF
2880rm -f conftest.$ac_objext
2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882  (eval $ac_compile) 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } &&
2889	 { ac_try='test -z "$ac_c_werror_flag"
2890			 || test ! -s conftest.err'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; } &&
2896	 { ac_try='test -s conftest.$ac_objext'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; }; then
2902  :
2903else
2904  echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907continue
2908fi
2909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910  cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916$ac_declaration
2917int
2918main ()
2919{
2920exit (42);
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927  (eval $ac_compile) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934	 { ac_try='test -z "$ac_c_werror_flag"
2935			 || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941	 { ac_try='test -s conftest.$ac_objext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  break
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952fi
2953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954done
2955rm -f conftest*
2956if test -n "$ac_declaration"; then
2957  echo '#ifdef __cplusplus' >>confdefs.h
2958  echo $ac_declaration      >>confdefs.h
2959  echo '#endif'             >>confdefs.h
2960fi
2961
2962else
2963  echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966fi
2967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968ac_ext=c
2969ac_cpp='$CPP $CPPFLAGS'
2970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973DEPDIR="${am__leading_dot}deps"
2974
2975          ac_config_commands="$ac_config_commands depfiles"
2976
2977
2978am_make=${MAKE-make}
2979cat > confinc << 'END'
2980am__doit:
2981	@echo done
2982.PHONY: am__doit
2983END
2984# If we don't find an include directive, just comment out the code.
2985echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2986echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2987am__include="#"
2988am__quote=
2989_am_result=none
2990# First try GNU make style include.
2991echo "include confinc" > confmf
2992# We grep out `Entering directory' and `Leaving directory'
2993# messages which can occur if `w' ends up in MAKEFLAGS.
2994# In particular we don't look at `^make:' because GNU make might
2995# be invoked under some other name (usually "gmake"), in which
2996# case it prints its new name instead of `make'.
2997if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2998   am__include=include
2999   am__quote=
3000   _am_result=GNU
3001fi
3002# Now try BSD make style include.
3003if test "$am__include" = "#"; then
3004   echo '.include "confinc"' > confmf
3005   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3006      am__include=.include
3007      am__quote="\""
3008      _am_result=BSD
3009   fi
3010fi
3011
3012
3013echo "$as_me:$LINENO: result: $_am_result" >&5
3014echo "${ECHO_T}$_am_result" >&6
3015rm -f confinc confmf
3016
3017# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3018if test "${enable_dependency_tracking+set}" = set; then
3019  enableval="$enable_dependency_tracking"
3020
3021fi;
3022if test "x$enable_dependency_tracking" != xno; then
3023  am_depcomp="$ac_aux_dir/depcomp"
3024  AMDEPBACKSLASH='\'
3025fi
3026
3027
3028if test "x$enable_dependency_tracking" != xno; then
3029  AMDEP_TRUE=
3030  AMDEP_FALSE='#'
3031else
3032  AMDEP_TRUE='#'
3033  AMDEP_FALSE=
3034fi
3035
3036
3037
3038
3039depcc="$CC"   am_compiler_list=
3040
3041echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3042echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3043if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3047  # We make a subdir and do the tests there.  Otherwise we can end up
3048  # making bogus files that we don't know about and never remove.  For
3049  # instance it was reported that on HP-UX the gcc test will end up
3050  # making a dummy file named `D' -- because `-MD' means `put the output
3051  # in D'.
3052  mkdir conftest.dir
3053  # Copy depcomp to subdir because otherwise we won't find it if we're
3054  # using a relative directory.
3055  cp "$am_depcomp" conftest.dir
3056  cd conftest.dir
3057  # We will build objects and dependencies in a subdirectory because
3058  # it helps to detect inapplicable dependency modes.  For instance
3059  # both Tru64's cc and ICC support -MD to output dependencies as a
3060  # side effect of compilation, but ICC will put the dependencies in
3061  # the current directory while Tru64 will put them in the object
3062  # directory.
3063  mkdir sub
3064
3065  am_cv_CC_dependencies_compiler_type=none
3066  if test "$am_compiler_list" = ""; then
3067     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3068  fi
3069  for depmode in $am_compiler_list; do
3070    # Setup a source with many dependencies, because some compilers
3071    # like to wrap large dependency lists on column 80 (with \), and
3072    # we should not choose a depcomp mode which is confused by this.
3073    #
3074    # We need to recreate these files for each test, as the compiler may
3075    # overwrite some of them when testing with obscure command lines.
3076    # This happens at least with the AIX C compiler.
3077    : > sub/conftest.c
3078    for i in 1 2 3 4 5 6; do
3079      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3080      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3081      # Solaris 8's {/usr,}/bin/sh.
3082      touch sub/conftst$i.h
3083    done
3084    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3085
3086    case $depmode in
3087    nosideeffect)
3088      # after this tag, mechanisms are not by side-effect, so they'll
3089      # only be used when explicitly requested
3090      if test "x$enable_dependency_tracking" = xyes; then
3091	continue
3092      else
3093	break
3094      fi
3095      ;;
3096    none) break ;;
3097    esac
3098    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3099    # mode.  It turns out that the SunPro C++ compiler does not properly
3100    # handle `-M -o', and we need to detect this.
3101    if depmode=$depmode \
3102       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3103       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3104       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3105         >/dev/null 2>conftest.err &&
3106       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3107       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3108       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3109      # icc doesn't choke on unknown options, it will just issue warnings
3110      # or remarks (even with -Werror).  So we grep stderr for any message
3111      # that says an option was ignored or not supported.
3112      # When given -MP, icc 7.0 and 7.1 complain thusly:
3113      #   icc: Command line warning: ignoring option '-M'; no argument required
3114      # The diagnosis changed in icc 8.0:
3115      #   icc: Command line remark: option '-MP' not supported
3116      if (grep 'ignoring option' conftest.err ||
3117          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3118        am_cv_CC_dependencies_compiler_type=$depmode
3119        break
3120      fi
3121    fi
3122  done
3123
3124  cd ..
3125  rm -rf conftest.dir
3126else
3127  am_cv_CC_dependencies_compiler_type=none
3128fi
3129
3130fi
3131echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3132echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3133CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3134
3135
3136
3137if
3138  test "x$enable_dependency_tracking" != xno \
3139  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3140  am__fastdepCC_TRUE=
3141  am__fastdepCC_FALSE='#'
3142else
3143  am__fastdepCC_TRUE='#'
3144  am__fastdepCC_FALSE=
3145fi
3146
3147
3148ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3154echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3155# On Suns, sometimes $CPP names a directory.
3156if test -n "$CPP" && test -d "$CPP"; then
3157  CPP=
3158fi
3159if test -z "$CPP"; then
3160  if test "${ac_cv_prog_CPP+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163      # Double quotes because CPP needs to be expanded
3164    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3165    do
3166      ac_preproc_ok=false
3167for ac_c_preproc_warn_flag in '' yes
3168do
3169  # Use a header file that comes with gcc, so configuring glibc
3170  # with a fresh cross-compiler works.
3171  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3172  # <limits.h> exists even on freestanding compilers.
3173  # On the NeXT, cc -E runs the code through the compiler's parser,
3174  # not just through cpp. "Syntax error" is here to catch this case.
3175  cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181#ifdef __STDC__
3182# include <limits.h>
3183#else
3184# include <assert.h>
3185#endif
3186		     Syntax error
3187_ACEOF
3188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190  ac_status=$?
3191  grep -v '^ *+' conftest.er1 >conftest.err
3192  rm -f conftest.er1
3193  cat conftest.err >&5
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); } >/dev/null; then
3196  if test -s conftest.err; then
3197    ac_cpp_err=$ac_c_preproc_warn_flag
3198    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199  else
3200    ac_cpp_err=
3201  fi
3202else
3203  ac_cpp_err=yes
3204fi
3205if test -z "$ac_cpp_err"; then
3206  :
3207else
3208  echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211  # Broken: fails on valid input.
3212continue
3213fi
3214rm -f conftest.err conftest.$ac_ext
3215
3216  # OK, works on sane cases.  Now check whether non-existent headers
3217  # can be detected and how.
3218  cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h.  */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h.  */
3224#include <ac_nonexistent.h>
3225_ACEOF
3226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3228  ac_status=$?
3229  grep -v '^ *+' conftest.er1 >conftest.err
3230  rm -f conftest.er1
3231  cat conftest.err >&5
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); } >/dev/null; then
3234  if test -s conftest.err; then
3235    ac_cpp_err=$ac_c_preproc_warn_flag
3236    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3237  else
3238    ac_cpp_err=
3239  fi
3240else
3241  ac_cpp_err=yes
3242fi
3243if test -z "$ac_cpp_err"; then
3244  # Broken: success on invalid input.
3245continue
3246else
3247  echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250  # Passes both tests.
3251ac_preproc_ok=:
3252break
3253fi
3254rm -f conftest.err conftest.$ac_ext
3255
3256done
3257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3258rm -f conftest.err conftest.$ac_ext
3259if $ac_preproc_ok; then
3260  break
3261fi
3262
3263    done
3264    ac_cv_prog_CPP=$CPP
3265
3266fi
3267  CPP=$ac_cv_prog_CPP
3268else
3269  ac_cv_prog_CPP=$CPP
3270fi
3271echo "$as_me:$LINENO: result: $CPP" >&5
3272echo "${ECHO_T}$CPP" >&6
3273ac_preproc_ok=false
3274for ac_c_preproc_warn_flag in '' yes
3275do
3276  # Use a header file that comes with gcc, so configuring glibc
3277  # with a fresh cross-compiler works.
3278  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279  # <limits.h> exists even on freestanding compilers.
3280  # On the NeXT, cc -E runs the code through the compiler's parser,
3281  # not just through cpp. "Syntax error" is here to catch this case.
3282  cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288#ifdef __STDC__
3289# include <limits.h>
3290#else
3291# include <assert.h>
3292#endif
3293		     Syntax error
3294_ACEOF
3295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297  ac_status=$?
3298  grep -v '^ *+' conftest.er1 >conftest.err
3299  rm -f conftest.er1
3300  cat conftest.err >&5
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); } >/dev/null; then
3303  if test -s conftest.err; then
3304    ac_cpp_err=$ac_c_preproc_warn_flag
3305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306  else
3307    ac_cpp_err=
3308  fi
3309else
3310  ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313  :
3314else
3315  echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318  # Broken: fails on valid input.
3319continue
3320fi
3321rm -f conftest.err conftest.$ac_ext
3322
3323  # OK, works on sane cases.  Now check whether non-existent headers
3324  # can be detected and how.
3325  cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h.  */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h.  */
3331#include <ac_nonexistent.h>
3332_ACEOF
3333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335  ac_status=$?
3336  grep -v '^ *+' conftest.er1 >conftest.err
3337  rm -f conftest.er1
3338  cat conftest.err >&5
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); } >/dev/null; then
3341  if test -s conftest.err; then
3342    ac_cpp_err=$ac_c_preproc_warn_flag
3343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344  else
3345    ac_cpp_err=
3346  fi
3347else
3348  ac_cpp_err=yes
3349fi
3350if test -z "$ac_cpp_err"; then
3351  # Broken: success on invalid input.
3352continue
3353else
3354  echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357  # Passes both tests.
3358ac_preproc_ok=:
3359break
3360fi
3361rm -f conftest.err conftest.$ac_ext
3362
3363done
3364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3365rm -f conftest.err conftest.$ac_ext
3366if $ac_preproc_ok; then
3367  :
3368else
3369  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3370See \`config.log' for more details." >&5
3371echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3372See \`config.log' for more details." >&2;}
3373   { (exit 1); exit 1; }; }
3374fi
3375
3376ac_ext=c
3377ac_cpp='$CPP $CPPFLAGS'
3378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381
3382if test "x$CC" != xcc; then
3383  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3384echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3385else
3386  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3387echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3388fi
3389set dummy $CC; ac_cc=`echo $2 |
3390		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3391if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409# Make sure it works both with $CC and with simple cc.
3410# We do the test twice because some compilers refuse to overwrite an
3411# existing .o file with -o, though they will create one.
3412ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3413if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414  (eval $ac_try) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } &&
3418   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); };
3423then
3424  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3425  if test "x$CC" != xcc; then
3426    # Test first that cc exists at all.
3427    if { ac_try='cc -c conftest.$ac_ext >&5'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3434      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435  (eval $ac_try) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); } &&
3439	 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440  (eval $ac_try) 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); };
3444      then
3445	# cc works too.
3446	:
3447      else
3448	# cc exists but doesn't like -o.
3449	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3450      fi
3451    fi
3452  fi
3453else
3454  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3455fi
3456rm -f conftest*
3457
3458fi
3459if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3460  echo "$as_me:$LINENO: result: yes" >&5
3461echo "${ECHO_T}yes" >&6
3462else
3463  echo "$as_me:$LINENO: result: no" >&5
3464echo "${ECHO_T}no" >&6
3465
3466cat >>confdefs.h <<\_ACEOF
3467#define NO_MINUS_C_MINUS_O 1
3468_ACEOF
3469
3470fi
3471
3472
3473ac_ext=cc
3474ac_cpp='$CXXCPP $CPPFLAGS'
3475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3478if test -n "$ac_tool_prefix"; then
3479  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3480  do
3481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3483echo "$as_me:$LINENO: checking for $ac_word" >&5
3484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485if test "${ac_cv_prog_CXX+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  if test -n "$CXX"; then
3489  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496  for ac_exec_ext in '' $ac_executable_extensions; do
3497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503done
3504
3505fi
3506fi
3507CXX=$ac_cv_prog_CXX
3508if test -n "$CXX"; then
3509  echo "$as_me:$LINENO: result: $CXX" >&5
3510echo "${ECHO_T}$CXX" >&6
3511else
3512  echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
3514fi
3515
3516    test -n "$CXX" && break
3517  done
3518fi
3519if test -z "$CXX"; then
3520  ac_ct_CXX=$CXX
3521  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3522do
3523  # Extract the first word of "$ac_prog", so it can be a program name with args.
3524set dummy $ac_prog; ac_word=$2
3525echo "$as_me:$LINENO: checking for $ac_word" >&5
3526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  if test -n "$ac_ct_CXX"; then
3531  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536  IFS=$as_save_IFS
3537  test -z "$as_dir" && as_dir=.
3538  for ac_exec_ext in '' $ac_executable_extensions; do
3539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540    ac_cv_prog_ac_ct_CXX="$ac_prog"
3541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542    break 2
3543  fi
3544done
3545done
3546
3547fi
3548fi
3549ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3550if test -n "$ac_ct_CXX"; then
3551  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3552echo "${ECHO_T}$ac_ct_CXX" >&6
3553else
3554  echo "$as_me:$LINENO: result: no" >&5
3555echo "${ECHO_T}no" >&6
3556fi
3557
3558  test -n "$ac_ct_CXX" && break
3559done
3560test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3561
3562  CXX=$ac_ct_CXX
3563fi
3564
3565
3566# Provide some information about the compiler.
3567echo "$as_me:$LINENO:" \
3568     "checking for C++ compiler version" >&5
3569ac_compiler=`set X $ac_compile; echo $2`
3570{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3571  (eval $ac_compiler --version </dev/null >&5) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }
3575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3576  (eval $ac_compiler -v </dev/null >&5) 2>&5
3577  ac_status=$?
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); }
3580{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3581  (eval $ac_compiler -V </dev/null >&5) 2>&5
3582  ac_status=$?
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); }
3585
3586echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3587echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3588if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3589  echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591  cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601#ifndef __GNUC__
3602       choke me
3603#endif
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609rm -f conftest.$ac_objext
3610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611  (eval $ac_compile) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618	 { ac_try='test -z "$ac_cxx_werror_flag"
3619			 || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625	 { ac_try='test -s conftest.$ac_objext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  ac_compiler_gnu=yes
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636ac_compiler_gnu=no
3637fi
3638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3640
3641fi
3642echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3643echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3644GXX=`test $ac_compiler_gnu = yes && echo yes`
3645ac_test_CXXFLAGS=${CXXFLAGS+set}
3646ac_save_CXXFLAGS=$CXXFLAGS
3647CXXFLAGS="-g"
3648echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3649echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3650if test "${ac_cv_prog_cxx_g+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h.  */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668rm -f conftest.$ac_objext
3669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670  (eval $ac_compile) 2>conftest.er1
3671  ac_status=$?
3672  grep -v '^ *+' conftest.er1 >conftest.err
3673  rm -f conftest.er1
3674  cat conftest.err >&5
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); } &&
3677	 { ac_try='test -z "$ac_cxx_werror_flag"
3678			 || test ! -s conftest.err'
3679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680  (eval $ac_try) 2>&5
3681  ac_status=$?
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); }; } &&
3684	 { ac_try='test -s conftest.$ac_objext'
3685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686  (eval $ac_try) 2>&5
3687  ac_status=$?
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); }; }; then
3690  ac_cv_prog_cxx_g=yes
3691else
3692  echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695ac_cv_prog_cxx_g=no
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698fi
3699echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3700echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3701if test "$ac_test_CXXFLAGS" = set; then
3702  CXXFLAGS=$ac_save_CXXFLAGS
3703elif test $ac_cv_prog_cxx_g = yes; then
3704  if test "$GXX" = yes; then
3705    CXXFLAGS="-g -O2"
3706  else
3707    CXXFLAGS="-g"
3708  fi
3709else
3710  if test "$GXX" = yes; then
3711    CXXFLAGS="-O2"
3712  else
3713    CXXFLAGS=
3714  fi
3715fi
3716for ac_declaration in \
3717   '' \
3718   'extern "C" void std::exit (int) throw (); using std::exit;' \
3719   'extern "C" void std::exit (int); using std::exit;' \
3720   'extern "C" void exit (int) throw ();' \
3721   'extern "C" void exit (int);' \
3722   'void exit (int);'
3723do
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730$ac_declaration
3731#include <stdlib.h>
3732int
3733main ()
3734{
3735exit (42);
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740rm -f conftest.$ac_objext
3741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742  (eval $ac_compile) 2>conftest.er1
3743  ac_status=$?
3744  grep -v '^ *+' conftest.er1 >conftest.err
3745  rm -f conftest.er1
3746  cat conftest.err >&5
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); } &&
3749	 { ac_try='test -z "$ac_cxx_werror_flag"
3750			 || test ! -s conftest.err'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; } &&
3756	 { ac_try='test -s conftest.$ac_objext'
3757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); }; }; then
3762  :
3763else
3764  echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767continue
3768fi
3769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770  cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776$ac_declaration
3777int
3778main ()
3779{
3780exit (42);
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787  (eval $ac_compile) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794	 { ac_try='test -z "$ac_cxx_werror_flag"
3795			 || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801	 { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  break
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812fi
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814done
3815rm -f conftest*
3816if test -n "$ac_declaration"; then
3817  echo '#ifdef __cplusplus' >>confdefs.h
3818  echo $ac_declaration      >>confdefs.h
3819  echo '#endif'             >>confdefs.h
3820fi
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828depcc="$CXX"  am_compiler_list=
3829
3830echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3831echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3832if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836  # We make a subdir and do the tests there.  Otherwise we can end up
3837  # making bogus files that we don't know about and never remove.  For
3838  # instance it was reported that on HP-UX the gcc test will end up
3839  # making a dummy file named `D' -- because `-MD' means `put the output
3840  # in D'.
3841  mkdir conftest.dir
3842  # Copy depcomp to subdir because otherwise we won't find it if we're
3843  # using a relative directory.
3844  cp "$am_depcomp" conftest.dir
3845  cd conftest.dir
3846  # We will build objects and dependencies in a subdirectory because
3847  # it helps to detect inapplicable dependency modes.  For instance
3848  # both Tru64's cc and ICC support -MD to output dependencies as a
3849  # side effect of compilation, but ICC will put the dependencies in
3850  # the current directory while Tru64 will put them in the object
3851  # directory.
3852  mkdir sub
3853
3854  am_cv_CXX_dependencies_compiler_type=none
3855  if test "$am_compiler_list" = ""; then
3856     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857  fi
3858  for depmode in $am_compiler_list; do
3859    # Setup a source with many dependencies, because some compilers
3860    # like to wrap large dependency lists on column 80 (with \), and
3861    # we should not choose a depcomp mode which is confused by this.
3862    #
3863    # We need to recreate these files for each test, as the compiler may
3864    # overwrite some of them when testing with obscure command lines.
3865    # This happens at least with the AIX C compiler.
3866    : > sub/conftest.c
3867    for i in 1 2 3 4 5 6; do
3868      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3870      # Solaris 8's {/usr,}/bin/sh.
3871      touch sub/conftst$i.h
3872    done
3873    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3874
3875    case $depmode in
3876    nosideeffect)
3877      # after this tag, mechanisms are not by side-effect, so they'll
3878      # only be used when explicitly requested
3879      if test "x$enable_dependency_tracking" = xyes; then
3880	continue
3881      else
3882	break
3883      fi
3884      ;;
3885    none) break ;;
3886    esac
3887    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3888    # mode.  It turns out that the SunPro C++ compiler does not properly
3889    # handle `-M -o', and we need to detect this.
3890    if depmode=$depmode \
3891       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3892       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3894         >/dev/null 2>conftest.err &&
3895       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3896       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3897       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3898      # icc doesn't choke on unknown options, it will just issue warnings
3899      # or remarks (even with -Werror).  So we grep stderr for any message
3900      # that says an option was ignored or not supported.
3901      # When given -MP, icc 7.0 and 7.1 complain thusly:
3902      #   icc: Command line warning: ignoring option '-M'; no argument required
3903      # The diagnosis changed in icc 8.0:
3904      #   icc: Command line remark: option '-MP' not supported
3905      if (grep 'ignoring option' conftest.err ||
3906          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3907        am_cv_CXX_dependencies_compiler_type=$depmode
3908        break
3909      fi
3910    fi
3911  done
3912
3913  cd ..
3914  rm -rf conftest.dir
3915else
3916  am_cv_CXX_dependencies_compiler_type=none
3917fi
3918
3919fi
3920echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3921echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3922CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3923
3924
3925
3926if
3927  test "x$enable_dependency_tracking" != xno \
3928  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3929  am__fastdepCXX_TRUE=
3930  am__fastdepCXX_FALSE='#'
3931else
3932  am__fastdepCXX_TRUE='#'
3933  am__fastdepCXX_FALSE=
3934fi
3935
3936
3937ac_ext=cc
3938ac_cpp='$CXXCPP $CPPFLAGS'
3939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3942echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3943echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3944if test -z "$CXXCPP"; then
3945  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948      # Double quotes because CXXCPP needs to be expanded
3949    for CXXCPP in "$CXX -E" "/lib/cpp"
3950    do
3951      ac_preproc_ok=false
3952for ac_cxx_preproc_warn_flag in '' yes
3953do
3954  # Use a header file that comes with gcc, so configuring glibc
3955  # with a fresh cross-compiler works.
3956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957  # <limits.h> exists even on freestanding compilers.
3958  # On the NeXT, cc -E runs the code through the compiler's parser,
3959  # not just through cpp. "Syntax error" is here to catch this case.
3960  cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h.  */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h.  */
3966#ifdef __STDC__
3967# include <limits.h>
3968#else
3969# include <assert.h>
3970#endif
3971		     Syntax error
3972_ACEOF
3973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3975  ac_status=$?
3976  grep -v '^ *+' conftest.er1 >conftest.err
3977  rm -f conftest.er1
3978  cat conftest.err >&5
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); } >/dev/null; then
3981  if test -s conftest.err; then
3982    ac_cpp_err=$ac_cxx_preproc_warn_flag
3983    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3984  else
3985    ac_cpp_err=
3986  fi
3987else
3988  ac_cpp_err=yes
3989fi
3990if test -z "$ac_cpp_err"; then
3991  :
3992else
3993  echo "$as_me: failed program was:" >&5
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
3996  # Broken: fails on valid input.
3997continue
3998fi
3999rm -f conftest.err conftest.$ac_ext
4000
4001  # OK, works on sane cases.  Now check whether non-existent headers
4002  # can be detected and how.
4003  cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009#include <ac_nonexistent.h>
4010_ACEOF
4011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013  ac_status=$?
4014  grep -v '^ *+' conftest.er1 >conftest.err
4015  rm -f conftest.er1
4016  cat conftest.err >&5
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); } >/dev/null; then
4019  if test -s conftest.err; then
4020    ac_cpp_err=$ac_cxx_preproc_warn_flag
4021    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4022  else
4023    ac_cpp_err=
4024  fi
4025else
4026  ac_cpp_err=yes
4027fi
4028if test -z "$ac_cpp_err"; then
4029  # Broken: success on invalid input.
4030continue
4031else
4032  echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035  # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.err conftest.$ac_ext
4044if $ac_preproc_ok; then
4045  break
4046fi
4047
4048    done
4049    ac_cv_prog_CXXCPP=$CXXCPP
4050
4051fi
4052  CXXCPP=$ac_cv_prog_CXXCPP
4053else
4054  ac_cv_prog_CXXCPP=$CXXCPP
4055fi
4056echo "$as_me:$LINENO: result: $CXXCPP" >&5
4057echo "${ECHO_T}$CXXCPP" >&6
4058ac_preproc_ok=false
4059for ac_cxx_preproc_warn_flag in '' yes
4060do
4061  # Use a header file that comes with gcc, so configuring glibc
4062  # with a fresh cross-compiler works.
4063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064  # <limits.h> exists even on freestanding compilers.
4065  # On the NeXT, cc -E runs the code through the compiler's parser,
4066  # not just through cpp. "Syntax error" is here to catch this case.
4067  cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#ifdef __STDC__
4074# include <limits.h>
4075#else
4076# include <assert.h>
4077#endif
4078		     Syntax error
4079_ACEOF
4080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082  ac_status=$?
4083  grep -v '^ *+' conftest.er1 >conftest.err
4084  rm -f conftest.er1
4085  cat conftest.err >&5
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); } >/dev/null; then
4088  if test -s conftest.err; then
4089    ac_cpp_err=$ac_cxx_preproc_warn_flag
4090    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4091  else
4092    ac_cpp_err=
4093  fi
4094else
4095  ac_cpp_err=yes
4096fi
4097if test -z "$ac_cpp_err"; then
4098  :
4099else
4100  echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103  # Broken: fails on valid input.
4104continue
4105fi
4106rm -f conftest.err conftest.$ac_ext
4107
4108  # OK, works on sane cases.  Now check whether non-existent headers
4109  # can be detected and how.
4110  cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h.  */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h.  */
4116#include <ac_nonexistent.h>
4117_ACEOF
4118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120  ac_status=$?
4121  grep -v '^ *+' conftest.er1 >conftest.err
4122  rm -f conftest.er1
4123  cat conftest.err >&5
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); } >/dev/null; then
4126  if test -s conftest.err; then
4127    ac_cpp_err=$ac_cxx_preproc_warn_flag
4128    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4129  else
4130    ac_cpp_err=
4131  fi
4132else
4133  ac_cpp_err=yes
4134fi
4135if test -z "$ac_cpp_err"; then
4136  # Broken: success on invalid input.
4137continue
4138else
4139  echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142  # Passes both tests.
4143ac_preproc_ok=:
4144break
4145fi
4146rm -f conftest.err conftest.$ac_ext
4147
4148done
4149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150rm -f conftest.err conftest.$ac_ext
4151if $ac_preproc_ok; then
4152  :
4153else
4154  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4155See \`config.log' for more details." >&5
4156echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4157See \`config.log' for more details." >&2;}
4158   { (exit 1); exit 1; }; }
4159fi
4160
4161ac_ext=c
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166
4167
4168# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
4169# AC_EXEEXT macros only works for C compilers!
4170# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
4171# the test language to C.  We do it before any libtool setup macros are
4172# called so that the proper values are cached beforehand.  We also do
4173# it before any linker flags (LDFLAGS) are set so that C++ specific
4174# ones don't break the tests.
4175ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181
4182
4183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189
4190
4191## ----------------------- ##
4192## Libtool initialisation. ##
4193## ----------------------- ##
4194
4195# Set the test language to C++.
4196ac_ext=cc
4197ac_cpp='$CXXCPP $CPPFLAGS'
4198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4201
4202# Check whether --enable-shared or --disable-shared was given.
4203if test "${enable_shared+set}" = set; then
4204  enableval="$enable_shared"
4205  p=${PACKAGE-default}
4206    case $enableval in
4207    yes) enable_shared=yes ;;
4208    no) enable_shared=no ;;
4209    *)
4210      enable_shared=no
4211      # Look at the argument we got.  We use all the common list separators.
4212      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4213      for pkg in $enableval; do
4214	IFS="$lt_save_ifs"
4215	if test "X$pkg" = "X$p"; then
4216	  enable_shared=yes
4217	fi
4218      done
4219      IFS="$lt_save_ifs"
4220      ;;
4221    esac
4222else
4223  enable_shared=yes
4224fi;
4225
4226# Check whether --enable-static or --disable-static was given.
4227if test "${enable_static+set}" = set; then
4228  enableval="$enable_static"
4229  p=${PACKAGE-default}
4230    case $enableval in
4231    yes) enable_static=yes ;;
4232    no) enable_static=no ;;
4233    *)
4234     enable_static=no
4235      # Look at the argument we got.  We use all the common list separators.
4236      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4237      for pkg in $enableval; do
4238	IFS="$lt_save_ifs"
4239	if test "X$pkg" = "X$p"; then
4240	  enable_static=yes
4241	fi
4242      done
4243      IFS="$lt_save_ifs"
4244      ;;
4245    esac
4246else
4247  enable_static=yes
4248fi;
4249
4250# Check whether --enable-fast-install or --disable-fast-install was given.
4251if test "${enable_fast_install+set}" = set; then
4252  enableval="$enable_fast_install"
4253  p=${PACKAGE-default}
4254    case $enableval in
4255    yes) enable_fast_install=yes ;;
4256    no) enable_fast_install=no ;;
4257    *)
4258      enable_fast_install=no
4259      # Look at the argument we got.  We use all the common list separators.
4260      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4261      for pkg in $enableval; do
4262	IFS="$lt_save_ifs"
4263	if test "X$pkg" = "X$p"; then
4264	  enable_fast_install=yes
4265	fi
4266      done
4267      IFS="$lt_save_ifs"
4268      ;;
4269    esac
4270else
4271  enable_fast_install=yes
4272fi;
4273
4274echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4275echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4276if test "${lt_cv_path_SED+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  # Loop through the user's path and test for sed and gsed.
4280# Then use that list of sed's as ones to test for truncation.
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286  for lt_ac_prog in sed gsed; do
4287    for ac_exec_ext in '' $ac_executable_extensions; do
4288      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4289        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4290      fi
4291    done
4292  done
4293done
4294lt_ac_max=0
4295lt_ac_count=0
4296# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4297# along with /bin/sed that truncates output.
4298for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4299  test ! -f $lt_ac_sed && continue
4300  cat /dev/null > conftest.in
4301  lt_ac_count=0
4302  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4303  # Check for GNU sed and select it if it is found.
4304  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4305    lt_cv_path_SED=$lt_ac_sed
4306    break
4307  fi
4308  while true; do
4309    cat conftest.in conftest.in >conftest.tmp
4310    mv conftest.tmp conftest.in
4311    cp conftest.in conftest.nl
4312    echo >>conftest.nl
4313    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4314    cmp -s conftest.out conftest.nl || break
4315    # 10000 chars as input seems more than enough
4316    test $lt_ac_count -gt 10 && break
4317    lt_ac_count=`expr $lt_ac_count + 1`
4318    if test $lt_ac_count -gt $lt_ac_max; then
4319      lt_ac_max=$lt_ac_count
4320      lt_cv_path_SED=$lt_ac_sed
4321    fi
4322  done
4323done
4324
4325fi
4326
4327SED=$lt_cv_path_SED
4328echo "$as_me:$LINENO: result: $SED" >&5
4329echo "${ECHO_T}$SED" >&6
4330
4331echo "$as_me:$LINENO: checking for egrep" >&5
4332echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4333if test "${ac_cv_prog_egrep+set}" = set; then
4334  echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4337    then ac_cv_prog_egrep='grep -E'
4338    else ac_cv_prog_egrep='egrep'
4339    fi
4340fi
4341echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4342echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4343 EGREP=$ac_cv_prog_egrep
4344
4345
4346
4347# Check whether --with-gnu-ld or --without-gnu-ld was given.
4348if test "${with_gnu_ld+set}" = set; then
4349  withval="$with_gnu_ld"
4350  test "$withval" = no || with_gnu_ld=yes
4351else
4352  with_gnu_ld=no
4353fi;
4354ac_prog=ld
4355if test "$GCC" = yes; then
4356  # Check if gcc -print-prog-name=ld gives a path.
4357  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4358echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4359  case $host in
4360  *-*-mingw*)
4361    # gcc leaves a trailing carriage return which upsets mingw
4362    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4363  *)
4364    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4365  esac
4366  case $ac_prog in
4367    # Accept absolute paths.
4368    [\\/]* | ?:[\\/]*)
4369      re_direlt='/[^/][^/]*/\.\./'
4370      # Canonicalize the pathname of ld
4371      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4372      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4373	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4374      done
4375      test -z "$LD" && LD="$ac_prog"
4376      ;;
4377  "")
4378    # If it fails, then pretend we aren't using GCC.
4379    ac_prog=ld
4380    ;;
4381  *)
4382    # If it is relative, then search for the first ld in PATH.
4383    with_gnu_ld=unknown
4384    ;;
4385  esac
4386elif test "$with_gnu_ld" = yes; then
4387  echo "$as_me:$LINENO: checking for GNU ld" >&5
4388echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4389else
4390  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4391echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4392fi
4393if test "${lt_cv_path_LD+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  if test -z "$LD"; then
4397  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398  for ac_dir in $PATH; do
4399    IFS="$lt_save_ifs"
4400    test -z "$ac_dir" && ac_dir=.
4401    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4402      lt_cv_path_LD="$ac_dir/$ac_prog"
4403      # Check to see if the program is GNU ld.  I'd rather use --version,
4404      # but apparently some variants of GNU ld only accept -v.
4405      # Break only if it was the GNU/non-GNU ld that we prefer.
4406      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4407      *GNU* | *'with BFD'*)
4408	test "$with_gnu_ld" != no && break
4409	;;
4410      *)
4411	test "$with_gnu_ld" != yes && break
4412	;;
4413      esac
4414    fi
4415  done
4416  IFS="$lt_save_ifs"
4417else
4418  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4419fi
4420fi
4421
4422LD="$lt_cv_path_LD"
4423if test -n "$LD"; then
4424  echo "$as_me:$LINENO: result: $LD" >&5
4425echo "${ECHO_T}$LD" >&6
4426else
4427  echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429fi
4430test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4431echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4432   { (exit 1); exit 1; }; }
4433echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4434echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4435if test "${lt_cv_prog_gnu_ld+set}" = set; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439case `$LD -v 2>&1 </dev/null` in
4440*GNU* | *'with BFD'*)
4441  lt_cv_prog_gnu_ld=yes
4442  ;;
4443*)
4444  lt_cv_prog_gnu_ld=no
4445  ;;
4446esac
4447fi
4448echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4449echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4450with_gnu_ld=$lt_cv_prog_gnu_ld
4451
4452
4453echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4454echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4455if test "${lt_cv_ld_reload_flag+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  lt_cv_ld_reload_flag='-r'
4459fi
4460echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4461echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4462reload_flag=$lt_cv_ld_reload_flag
4463case $reload_flag in
4464"" | " "*) ;;
4465*) reload_flag=" $reload_flag" ;;
4466esac
4467reload_cmds='$LD$reload_flag -o $output$reload_objs'
4468case $host_os in
4469  darwin*)
4470    if test "$GCC" = yes; then
4471      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4472    else
4473      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4474    fi
4475    ;;
4476esac
4477
4478echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4479echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4480if test "${lt_cv_path_NM+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  if test -n "$NM"; then
4484  # Let the user override the test.
4485  lt_cv_path_NM="$NM"
4486else
4487  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4488  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4489    IFS="$lt_save_ifs"
4490    test -z "$ac_dir" && ac_dir=.
4491    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4492    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4493      # Check to see if the nm accepts a BSD-compat flag.
4494      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4495      #   nm: unknown option "B" ignored
4496      # Tru64's nm complains that /dev/null is an invalid object file
4497      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4498      */dev/null* | *'Invalid file or object type'*)
4499	lt_cv_path_NM="$tmp_nm -B"
4500	break
4501        ;;
4502      *)
4503	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4504	*/dev/null*)
4505	  lt_cv_path_NM="$tmp_nm -p"
4506	  break
4507	  ;;
4508	*)
4509	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4510	  continue # so that we can try to find one that supports BSD flags
4511	  ;;
4512	esac
4513      esac
4514    fi
4515  done
4516  IFS="$lt_save_ifs"
4517  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4518fi
4519fi
4520echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4521echo "${ECHO_T}$lt_cv_path_NM" >&6
4522NM="$lt_cv_path_NM"
4523
4524echo "$as_me:$LINENO: checking whether ln -s works" >&5
4525echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4526LN_S=$as_ln_s
4527if test "$LN_S" = "ln -s"; then
4528  echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530else
4531  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4532echo "${ECHO_T}no, using $LN_S" >&6
4533fi
4534
4535echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4536echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4537if test "${lt_cv_deplibs_check_method+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  lt_cv_file_magic_cmd='$MAGIC_CMD'
4541lt_cv_file_magic_test_file=
4542lt_cv_deplibs_check_method='unknown'
4543# Need to set the preceding variable on all platforms that support
4544# interlibrary dependencies.
4545# 'none' -- dependencies not supported.
4546# `unknown' -- same as none, but documents that we really don't know.
4547# 'pass_all' -- all dependencies passed with no checks.
4548# 'test_compile' -- check by making test program.
4549# 'file_magic [[regex]]' -- check by looking for files in library path
4550# which responds to the $file_magic_cmd with a given extended regex.
4551# If you have `file' or equivalent on your system and you're not sure
4552# whether `pass_all' will *always* work, you probably want this one.
4553
4554case $host_os in
4555aix4* | aix5*)
4556  lt_cv_deplibs_check_method=pass_all
4557  ;;
4558
4559beos*)
4560  lt_cv_deplibs_check_method=pass_all
4561  ;;
4562
4563bsdi[45]*)
4564  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4565  lt_cv_file_magic_cmd='/usr/bin/file -L'
4566  lt_cv_file_magic_test_file=/shlib/libc.so
4567  ;;
4568
4569cygwin*)
4570  # func_win32_libid is a shell function defined in ltmain.sh
4571  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4572  lt_cv_file_magic_cmd='func_win32_libid'
4573  ;;
4574
4575mingw* | pw32*)
4576  # Base MSYS/MinGW do not provide the 'file' command needed by
4577  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4578  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4579  lt_cv_file_magic_cmd='$OBJDUMP -f'
4580  ;;
4581
4582darwin* | rhapsody*)
4583  lt_cv_deplibs_check_method=pass_all
4584  ;;
4585
4586freebsd* | kfreebsd*-gnu | dragonfly*)
4587  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4588    case $host_cpu in
4589    i*86 )
4590      # Not sure whether the presence of OpenBSD here was a mistake.
4591      # Let's accept both of them until this is cleared up.
4592      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4593      lt_cv_file_magic_cmd=/usr/bin/file
4594      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4595      ;;
4596    esac
4597  else
4598    lt_cv_deplibs_check_method=pass_all
4599  fi
4600  ;;
4601
4602gnu*)
4603  lt_cv_deplibs_check_method=pass_all
4604  ;;
4605
4606haiku*)
4607  lt_cv_deplibs_check_method=pass_all
4608  ;;
4609
4610hpux10.20* | hpux11*)
4611  lt_cv_file_magic_cmd=/usr/bin/file
4612  case $host_cpu in
4613  ia64*)
4614    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4615    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4616    ;;
4617  hppa*64*)
4618    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]'
4619    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4620    ;;
4621  *)
4622    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4623    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4624    ;;
4625  esac
4626  ;;
4627
4628irix5* | irix6* | nonstopux*)
4629  case $LD in
4630  *-32|*"-32 ") libmagic=32-bit;;
4631  *-n32|*"-n32 ") libmagic=N32;;
4632  *-64|*"-64 ") libmagic=64-bit;;
4633  *) libmagic=never-match;;
4634  esac
4635  lt_cv_deplibs_check_method=pass_all
4636  ;;
4637
4638# This must be Linux ELF.
4639linux*)
4640  lt_cv_deplibs_check_method=pass_all
4641  ;;
4642
4643netbsd*)
4644  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4645    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646  else
4647    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4648  fi
4649  ;;
4650
4651newos6*)
4652  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4653  lt_cv_file_magic_cmd=/usr/bin/file
4654  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4655  ;;
4656
4657nto-qnx*)
4658  lt_cv_deplibs_check_method=unknown
4659  ;;
4660
4661openbsd*)
4662  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4663    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4664  else
4665    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4666  fi
4667  ;;
4668
4669osf3* | osf4* | osf5*)
4670  lt_cv_deplibs_check_method=pass_all
4671  ;;
4672
4673sco3.2v5*)
4674  lt_cv_deplibs_check_method=pass_all
4675  ;;
4676
4677solaris*)
4678  lt_cv_deplibs_check_method=pass_all
4679  ;;
4680
4681sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4682  case $host_vendor in
4683  motorola)
4684    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]'
4685    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4686    ;;
4687  ncr)
4688    lt_cv_deplibs_check_method=pass_all
4689    ;;
4690  sequent)
4691    lt_cv_file_magic_cmd='/bin/file'
4692    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4693    ;;
4694  sni)
4695    lt_cv_file_magic_cmd='/bin/file'
4696    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4697    lt_cv_file_magic_test_file=/lib/libc.so
4698    ;;
4699  siemens)
4700    lt_cv_deplibs_check_method=pass_all
4701    ;;
4702  esac
4703  ;;
4704
4705sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4706  lt_cv_deplibs_check_method=pass_all
4707  ;;
4708esac
4709
4710fi
4711echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4712echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4713file_magic_cmd=$lt_cv_file_magic_cmd
4714deplibs_check_method=$lt_cv_deplibs_check_method
4715test -z "$deplibs_check_method" && deplibs_check_method=unknown
4716
4717
4718# If no C compiler was specified, use CC.
4719LTCC=${LTCC-"$CC"}
4720
4721# Allow CC to be a program name with arguments.
4722compiler=$CC
4723
4724
4725# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4726if test "${enable_libtool_lock+set}" = set; then
4727  enableval="$enable_libtool_lock"
4728
4729fi;
4730test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4731
4732# Some flags need to be propagated to the compiler or linker for good
4733# libtool support.
4734case $host in
4735ia64-*-hpux*)
4736  # Find out which ABI we are using.
4737  echo 'int i;' > conftest.$ac_ext
4738  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739  (eval $ac_compile) 2>&5
4740  ac_status=$?
4741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); }; then
4743    case `/usr/bin/file conftest.$ac_objext` in
4744    *ELF-32*)
4745      HPUX_IA64_MODE="32"
4746      ;;
4747    *ELF-64*)
4748      HPUX_IA64_MODE="64"
4749      ;;
4750    esac
4751  fi
4752  rm -rf conftest*
4753  ;;
4754*-*-irix6*)
4755  # Find out which ABI we are using.
4756  echo '#line 4756 "configure"' > conftest.$ac_ext
4757  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758  (eval $ac_compile) 2>&5
4759  ac_status=$?
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); }; then
4762   if test "$lt_cv_prog_gnu_ld" = yes; then
4763    case `/usr/bin/file conftest.$ac_objext` in
4764    *32-bit*)
4765      LD="${LD-ld} -melf32bsmip"
4766      ;;
4767    *N32*)
4768      LD="${LD-ld} -melf32bmipn32"
4769      ;;
4770    *64-bit*)
4771      LD="${LD-ld} -melf64bmip"
4772      ;;
4773    esac
4774   else
4775    case `/usr/bin/file conftest.$ac_objext` in
4776    *32-bit*)
4777      LD="${LD-ld} -32"
4778      ;;
4779    *N32*)
4780      LD="${LD-ld} -n32"
4781      ;;
4782    *64-bit*)
4783      LD="${LD-ld} -64"
4784      ;;
4785    esac
4786   fi
4787  fi
4788  rm -rf conftest*
4789  ;;
4790
4791x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4792  # Find out which ABI we are using.
4793  echo 'int i;' > conftest.$ac_ext
4794  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795  (eval $ac_compile) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; then
4799    case `/usr/bin/file conftest.o` in
4800    *32-bit*)
4801      case $host in
4802        x86_64-*linux*)
4803          LD="${LD-ld} -m elf_i386"
4804          ;;
4805        ppc64-*linux*|powerpc64-*linux*)
4806          LD="${LD-ld} -m elf32ppclinux"
4807          ;;
4808        s390x-*linux*)
4809          LD="${LD-ld} -m elf_s390"
4810          ;;
4811        sparc64-*linux*)
4812          LD="${LD-ld} -m elf32_sparc"
4813          ;;
4814      esac
4815      ;;
4816    *64-bit*)
4817      case $host in
4818        x86_64-*linux*)
4819          LD="${LD-ld} -m elf_x86_64"
4820          ;;
4821        ppc*-*linux*|powerpc*-*linux*)
4822          LD="${LD-ld} -m elf64ppc"
4823          ;;
4824        s390*-*linux*)
4825          LD="${LD-ld} -m elf64_s390"
4826          ;;
4827        sparc*-*linux*)
4828          LD="${LD-ld} -m elf64_sparc"
4829          ;;
4830      esac
4831      ;;
4832    esac
4833  fi
4834  rm -rf conftest*
4835  ;;
4836
4837*-*-sco3.2v5*)
4838  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4839  SAVE_CFLAGS="$CFLAGS"
4840  CFLAGS="$CFLAGS -belf"
4841  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4842echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4843if test "${lt_cv_cc_needs_belf+set}" = set; then
4844  echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846  ac_ext=c
4847ac_cpp='$CPP $CPPFLAGS'
4848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852     cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858
4859int
4860main ()
4861{
4862
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext conftest$ac_exeext
4868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869  (eval $ac_link) 2>conftest.er1
4870  ac_status=$?
4871  grep -v '^ *+' conftest.er1 >conftest.err
4872  rm -f conftest.er1
4873  cat conftest.err >&5
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } &&
4876	 { ac_try='test -z "$ac_c_werror_flag"
4877			 || test ! -s conftest.err'
4878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879  (eval $ac_try) 2>&5
4880  ac_status=$?
4881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882  (exit $ac_status); }; } &&
4883	 { ac_try='test -s conftest$ac_exeext'
4884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885  (eval $ac_try) 2>&5
4886  ac_status=$?
4887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888  (exit $ac_status); }; }; then
4889  lt_cv_cc_needs_belf=yes
4890else
4891  echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
4894lt_cv_cc_needs_belf=no
4895fi
4896rm -f conftest.err conftest.$ac_objext \
4897      conftest$ac_exeext conftest.$ac_ext
4898     ac_ext=c
4899ac_cpp='$CPP $CPPFLAGS'
4900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904fi
4905echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4906echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4907  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4908    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4909    CFLAGS="$SAVE_CFLAGS"
4910  fi
4911  ;;
4912
4913esac
4914
4915need_locks="$enable_libtool_lock"
4916
4917
4918
4919echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4920echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4921if test "${ac_cv_header_stdc+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  cat >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#include <stdlib.h>
4931#include <stdarg.h>
4932#include <string.h>
4933#include <float.h>
4934
4935int
4936main ()
4937{
4938
4939  ;
4940  return 0;
4941}
4942_ACEOF
4943rm -f conftest.$ac_objext
4944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945  (eval $ac_compile) 2>conftest.er1
4946  ac_status=$?
4947  grep -v '^ *+' conftest.er1 >conftest.err
4948  rm -f conftest.er1
4949  cat conftest.err >&5
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } &&
4952	 { ac_try='test -z "$ac_c_werror_flag"
4953			 || test ! -s conftest.err'
4954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955  (eval $ac_try) 2>&5
4956  ac_status=$?
4957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958  (exit $ac_status); }; } &&
4959	 { ac_try='test -s conftest.$ac_objext'
4960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961  (eval $ac_try) 2>&5
4962  ac_status=$?
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); }; }; then
4965  ac_cv_header_stdc=yes
4966else
4967  echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970ac_cv_header_stdc=no
4971fi
4972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973
4974if test $ac_cv_header_stdc = yes; then
4975  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976  cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h.  */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h.  */
4982#include <string.h>
4983
4984_ACEOF
4985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986  $EGREP "memchr" >/dev/null 2>&1; then
4987  :
4988else
4989  ac_cv_header_stdc=no
4990fi
4991rm -f conftest*
4992
4993fi
4994
4995if test $ac_cv_header_stdc = yes; then
4996  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997  cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003#include <stdlib.h>
5004
5005_ACEOF
5006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007  $EGREP "free" >/dev/null 2>&1; then
5008  :
5009else
5010  ac_cv_header_stdc=no
5011fi
5012rm -f conftest*
5013
5014fi
5015
5016if test $ac_cv_header_stdc = yes; then
5017  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018  if test "$cross_compiling" = yes; then
5019  :
5020else
5021  cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h.  */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h.  */
5027#include <ctype.h>
5028#if ((' ' & 0x0FF) == 0x020)
5029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031#else
5032# define ISLOWER(c) \
5033		   (('a' <= (c) && (c) <= 'i') \
5034		     || ('j' <= (c) && (c) <= 'r') \
5035		     || ('s' <= (c) && (c) <= 'z'))
5036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037#endif
5038
5039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5040int
5041main ()
5042{
5043  int i;
5044  for (i = 0; i < 256; i++)
5045    if (XOR (islower (i), ISLOWER (i))
5046	|| toupper (i) != TOUPPER (i))
5047      exit(2);
5048  exit (0);
5049}
5050_ACEOF
5051rm -f conftest$ac_exeext
5052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053  (eval $ac_link) 2>&5
5054  ac_status=$?
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058  (eval $ac_try) 2>&5
5059  ac_status=$?
5060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061  (exit $ac_status); }; }; then
5062  :
5063else
5064  echo "$as_me: program exited with status $ac_status" >&5
5065echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068( exit $ac_status )
5069ac_cv_header_stdc=no
5070fi
5071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072fi
5073fi
5074fi
5075echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077if test $ac_cv_header_stdc = yes; then
5078
5079cat >>confdefs.h <<\_ACEOF
5080#define STDC_HEADERS 1
5081_ACEOF
5082
5083fi
5084
5085# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096		  inttypes.h stdint.h unistd.h
5097do
5098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099echo "$as_me:$LINENO: checking for $ac_header" >&5
5100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102  echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104  cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h.  */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h.  */
5110$ac_includes_default
5111
5112#include <$ac_header>
5113_ACEOF
5114rm -f conftest.$ac_objext
5115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116  (eval $ac_compile) 2>conftest.er1
5117  ac_status=$?
5118  grep -v '^ *+' conftest.er1 >conftest.err
5119  rm -f conftest.er1
5120  cat conftest.err >&5
5121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); } &&
5123	 { ac_try='test -z "$ac_c_werror_flag"
5124			 || test ! -s conftest.err'
5125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126  (eval $ac_try) 2>&5
5127  ac_status=$?
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); }; } &&
5130	 { ac_try='test -s conftest.$ac_objext'
5131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132  (eval $ac_try) 2>&5
5133  ac_status=$?
5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135  (exit $ac_status); }; }; then
5136  eval "$as_ac_Header=yes"
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141eval "$as_ac_Header=no"
5142fi
5143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5144fi
5145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5147if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148  cat >>confdefs.h <<_ACEOF
5149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150_ACEOF
5151
5152fi
5153
5154done
5155
5156
5157
5158for ac_header in dlfcn.h
5159do
5160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161if eval "test \"\${$as_ac_Header+set}\" = set"; then
5162  echo "$as_me:$LINENO: checking for $ac_header" >&5
5163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5164if eval "test \"\${$as_ac_Header+set}\" = set"; then
5165  echo $ECHO_N "(cached) $ECHO_C" >&6
5166fi
5167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5169else
5170  # Is the header compilable?
5171echo "$as_me:$LINENO: checking $ac_header usability" >&5
5172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5173cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179$ac_includes_default
5180#include <$ac_header>
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184  (eval $ac_compile) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } &&
5191	 { ac_try='test -z "$ac_c_werror_flag"
5192			 || test ! -s conftest.err'
5193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194  (eval $ac_try) 2>&5
5195  ac_status=$?
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); }; } &&
5198	 { ac_try='test -s conftest.$ac_objext'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; }; then
5204  ac_header_compiler=yes
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209ac_header_compiler=no
5210fi
5211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213echo "${ECHO_T}$ac_header_compiler" >&6
5214
5215# Is the header present?
5216echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224#include <$ac_header>
5225_ACEOF
5226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228  ac_status=$?
5229  grep -v '^ *+' conftest.er1 >conftest.err
5230  rm -f conftest.er1
5231  cat conftest.err >&5
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); } >/dev/null; then
5234  if test -s conftest.err; then
5235    ac_cpp_err=$ac_c_preproc_warn_flag
5236    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237  else
5238    ac_cpp_err=
5239  fi
5240else
5241  ac_cpp_err=yes
5242fi
5243if test -z "$ac_cpp_err"; then
5244  ac_header_preproc=yes
5245else
5246  echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249  ac_header_preproc=no
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253echo "${ECHO_T}$ac_header_preproc" >&6
5254
5255# So?  What about this header?
5256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257  yes:no: )
5258    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262    ac_header_preproc=yes
5263    ;;
5264  no:yes:* )
5265    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5268echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5269    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5272echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5277    (
5278      cat <<\_ASBOX
5279## ---------------------------------- ##
5280## Report this to bug-libtool@gnu.org ##
5281## ---------------------------------- ##
5282_ASBOX
5283    ) |
5284      sed "s/^/$as_me: WARNING:     /" >&2
5285    ;;
5286esac
5287echo "$as_me:$LINENO: checking for $ac_header" >&5
5288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292  eval "$as_ac_Header=\$ac_header_preproc"
5293fi
5294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5296
5297fi
5298if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299  cat >>confdefs.h <<_ACEOF
5300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301_ACEOF
5302
5303fi
5304
5305done
5306
5307
5308
5309if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5310    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5311    (test "X$CXX" != "Xg++"))) ; then
5312  ac_ext=cc
5313ac_cpp='$CXXCPP $CPPFLAGS'
5314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5318echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5319if test -z "$CXXCPP"; then
5320  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323      # Double quotes because CXXCPP needs to be expanded
5324    for CXXCPP in "$CXX -E" "/lib/cpp"
5325    do
5326      ac_preproc_ok=false
5327for ac_cxx_preproc_warn_flag in '' yes
5328do
5329  # Use a header file that comes with gcc, so configuring glibc
5330  # with a fresh cross-compiler works.
5331  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5332  # <limits.h> exists even on freestanding compilers.
5333  # On the NeXT, cc -E runs the code through the compiler's parser,
5334  # not just through cpp. "Syntax error" is here to catch this case.
5335  cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h.  */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h.  */
5341#ifdef __STDC__
5342# include <limits.h>
5343#else
5344# include <assert.h>
5345#endif
5346		     Syntax error
5347_ACEOF
5348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5349  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5350  ac_status=$?
5351  grep -v '^ *+' conftest.er1 >conftest.err
5352  rm -f conftest.er1
5353  cat conftest.err >&5
5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355  (exit $ac_status); } >/dev/null; then
5356  if test -s conftest.err; then
5357    ac_cpp_err=$ac_cxx_preproc_warn_flag
5358    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5359  else
5360    ac_cpp_err=
5361  fi
5362else
5363  ac_cpp_err=yes
5364fi
5365if test -z "$ac_cpp_err"; then
5366  :
5367else
5368  echo "$as_me: failed program was:" >&5
5369sed 's/^/| /' conftest.$ac_ext >&5
5370
5371  # Broken: fails on valid input.
5372continue
5373fi
5374rm -f conftest.err conftest.$ac_ext
5375
5376  # OK, works on sane cases.  Now check whether non-existent headers
5377  # can be detected and how.
5378  cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h.  */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h.  */
5384#include <ac_nonexistent.h>
5385_ACEOF
5386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5388  ac_status=$?
5389  grep -v '^ *+' conftest.er1 >conftest.err
5390  rm -f conftest.er1
5391  cat conftest.err >&5
5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393  (exit $ac_status); } >/dev/null; then
5394  if test -s conftest.err; then
5395    ac_cpp_err=$ac_cxx_preproc_warn_flag
5396    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5397  else
5398    ac_cpp_err=
5399  fi
5400else
5401  ac_cpp_err=yes
5402fi
5403if test -z "$ac_cpp_err"; then
5404  # Broken: success on invalid input.
5405continue
5406else
5407  echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410  # Passes both tests.
5411ac_preproc_ok=:
5412break
5413fi
5414rm -f conftest.err conftest.$ac_ext
5415
5416done
5417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5418rm -f conftest.err conftest.$ac_ext
5419if $ac_preproc_ok; then
5420  break
5421fi
5422
5423    done
5424    ac_cv_prog_CXXCPP=$CXXCPP
5425
5426fi
5427  CXXCPP=$ac_cv_prog_CXXCPP
5428else
5429  ac_cv_prog_CXXCPP=$CXXCPP
5430fi
5431echo "$as_me:$LINENO: result: $CXXCPP" >&5
5432echo "${ECHO_T}$CXXCPP" >&6
5433ac_preproc_ok=false
5434for ac_cxx_preproc_warn_flag in '' yes
5435do
5436  # Use a header file that comes with gcc, so configuring glibc
5437  # with a fresh cross-compiler works.
5438  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439  # <limits.h> exists even on freestanding compilers.
5440  # On the NeXT, cc -E runs the code through the compiler's parser,
5441  # not just through cpp. "Syntax error" is here to catch this case.
5442  cat >conftest.$ac_ext <<_ACEOF
5443/* confdefs.h.  */
5444_ACEOF
5445cat confdefs.h >>conftest.$ac_ext
5446cat >>conftest.$ac_ext <<_ACEOF
5447/* end confdefs.h.  */
5448#ifdef __STDC__
5449# include <limits.h>
5450#else
5451# include <assert.h>
5452#endif
5453		     Syntax error
5454_ACEOF
5455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5457  ac_status=$?
5458  grep -v '^ *+' conftest.er1 >conftest.err
5459  rm -f conftest.er1
5460  cat conftest.err >&5
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); } >/dev/null; then
5463  if test -s conftest.err; then
5464    ac_cpp_err=$ac_cxx_preproc_warn_flag
5465    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5466  else
5467    ac_cpp_err=
5468  fi
5469else
5470  ac_cpp_err=yes
5471fi
5472if test -z "$ac_cpp_err"; then
5473  :
5474else
5475  echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478  # Broken: fails on valid input.
5479continue
5480fi
5481rm -f conftest.err conftest.$ac_ext
5482
5483  # OK, works on sane cases.  Now check whether non-existent headers
5484  # can be detected and how.
5485  cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491#include <ac_nonexistent.h>
5492_ACEOF
5493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5494  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5495  ac_status=$?
5496  grep -v '^ *+' conftest.er1 >conftest.err
5497  rm -f conftest.er1
5498  cat conftest.err >&5
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); } >/dev/null; then
5501  if test -s conftest.err; then
5502    ac_cpp_err=$ac_cxx_preproc_warn_flag
5503    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5504  else
5505    ac_cpp_err=
5506  fi
5507else
5508  ac_cpp_err=yes
5509fi
5510if test -z "$ac_cpp_err"; then
5511  # Broken: success on invalid input.
5512continue
5513else
5514  echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517  # Passes both tests.
5518ac_preproc_ok=:
5519break
5520fi
5521rm -f conftest.err conftest.$ac_ext
5522
5523done
5524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5525rm -f conftest.err conftest.$ac_ext
5526if $ac_preproc_ok; then
5527  :
5528else
5529  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5530See \`config.log' for more details." >&5
5531echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5532See \`config.log' for more details." >&2;}
5533   { (exit 1); exit 1; }; }
5534fi
5535
5536ac_ext=cc
5537ac_cpp='$CXXCPP $CPPFLAGS'
5538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541
5542fi
5543
5544
5545ac_ext=f
5546ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5547ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5549if test -n "$ac_tool_prefix"; then
5550  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5551  do
5552    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5553set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5554echo "$as_me:$LINENO: checking for $ac_word" >&5
5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_F77+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  if test -n "$F77"; then
5560  ac_cv_prog_F77="$F77" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  test -z "$as_dir" && as_dir=.
5567  for ac_exec_ext in '' $ac_executable_extensions; do
5568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571    break 2
5572  fi
5573done
5574done
5575
5576fi
5577fi
5578F77=$ac_cv_prog_F77
5579if test -n "$F77"; then
5580  echo "$as_me:$LINENO: result: $F77" >&5
5581echo "${ECHO_T}$F77" >&6
5582else
5583  echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587    test -n "$F77" && break
5588  done
5589fi
5590if test -z "$F77"; then
5591  ac_ct_F77=$F77
5592  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5593do
5594  # Extract the first word of "$ac_prog", so it can be a program name with args.
5595set dummy $ac_prog; ac_word=$2
5596echo "$as_me:$LINENO: checking for $ac_word" >&5
5597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  if test -n "$ac_ct_F77"; then
5602  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607  IFS=$as_save_IFS
5608  test -z "$as_dir" && as_dir=.
5609  for ac_exec_ext in '' $ac_executable_extensions; do
5610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611    ac_cv_prog_ac_ct_F77="$ac_prog"
5612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613    break 2
5614  fi
5615done
5616done
5617
5618fi
5619fi
5620ac_ct_F77=$ac_cv_prog_ac_ct_F77
5621if test -n "$ac_ct_F77"; then
5622  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5623echo "${ECHO_T}$ac_ct_F77" >&6
5624else
5625  echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627fi
5628
5629  test -n "$ac_ct_F77" && break
5630done
5631
5632  F77=$ac_ct_F77
5633fi
5634
5635
5636# Provide some information about the compiler.
5637echo "$as_me:5637:" \
5638     "checking for Fortran 77 compiler version" >&5
5639ac_compiler=`set X $ac_compile; echo $2`
5640{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5641  (eval $ac_compiler --version </dev/null >&5) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }
5645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5646  (eval $ac_compiler -v </dev/null >&5) 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }
5650{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5651  (eval $ac_compiler -V </dev/null >&5) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }
5655rm -f a.out
5656
5657# If we don't use `.F' as extension, the preprocessor is not run on the
5658# input file.  (Note that this only needs to work for GNU compilers.)
5659ac_save_ext=$ac_ext
5660ac_ext=F
5661echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5662echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5663if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5664  echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666  cat >conftest.$ac_ext <<_ACEOF
5667      program main
5668#ifndef __GNUC__
5669       choke me
5670#endif
5671
5672      end
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676  (eval $ac_compile) 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } &&
5683	 { ac_try='test -z "$ac_f77_werror_flag"
5684			 || test ! -s conftest.err'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; } &&
5690	 { ac_try='test -s conftest.$ac_objext'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; }; then
5696  ac_compiler_gnu=yes
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701ac_compiler_gnu=no
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5705
5706fi
5707echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5708echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5709ac_ext=$ac_save_ext
5710ac_test_FFLAGS=${FFLAGS+set}
5711ac_save_FFLAGS=$FFLAGS
5712FFLAGS=
5713echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5714echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5715if test "${ac_cv_prog_f77_g+set}" = set; then
5716  echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718  FFLAGS=-g
5719cat >conftest.$ac_ext <<_ACEOF
5720      program main
5721
5722      end
5723_ACEOF
5724rm -f conftest.$ac_objext
5725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726  (eval $ac_compile) 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } &&
5733	 { ac_try='test -z "$ac_f77_werror_flag"
5734			 || test ! -s conftest.err'
5735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736  (eval $ac_try) 2>&5
5737  ac_status=$?
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); }; } &&
5740	 { ac_try='test -s conftest.$ac_objext'
5741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742  (eval $ac_try) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }; }; then
5746  ac_cv_prog_f77_g=yes
5747else
5748  echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751ac_cv_prog_f77_g=no
5752fi
5753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754
5755fi
5756echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5757echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5758if test "$ac_test_FFLAGS" = set; then
5759  FFLAGS=$ac_save_FFLAGS
5760elif test $ac_cv_prog_f77_g = yes; then
5761  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5762    FFLAGS="-g -O2"
5763  else
5764    FFLAGS="-g"
5765  fi
5766else
5767  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5768    FFLAGS="-O2"
5769  else
5770    FFLAGS=
5771  fi
5772fi
5773
5774G77=`test $ac_compiler_gnu = yes && echo yes`
5775ac_ext=cc
5776ac_cpp='$CXXCPP $CPPFLAGS'
5777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5780
5781
5782
5783# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5784
5785# find the maximum length of command line arguments
5786echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5787echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5788if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5789  echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791    i=0
5792  teststring="ABCD"
5793
5794  case $build_os in
5795  msdosdjgpp*)
5796    # On DJGPP, this test can blow up pretty badly due to problems in libc
5797    # (any single argument exceeding 2000 bytes causes a buffer overrun
5798    # during glob expansion).  Even if it were fixed, the result of this
5799    # check would be larger than it should be.
5800    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5801    ;;
5802
5803  gnu*)
5804    # Under GNU Hurd, this test is not required because there is
5805    # no limit to the length of command line arguments.
5806    # Libtool will interpret -1 as no limit whatsoever
5807    lt_cv_sys_max_cmd_len=-1;
5808    ;;
5809
5810  cygwin* | mingw*)
5811    # On Win9x/ME, this test blows up -- it succeeds, but takes
5812    # about 5 minutes as the teststring grows exponentially.
5813    # Worse, since 9x/ME are not pre-emptively multitasking,
5814    # you end up with a "frozen" computer, even though with patience
5815    # the test eventually succeeds (with a max line length of 256k).
5816    # Instead, let's just punt: use the minimum linelength reported by
5817    # all of the supported platforms: 8192 (on NT/2K/XP).
5818    lt_cv_sys_max_cmd_len=8192;
5819    ;;
5820
5821  amigaos*)
5822    # On AmigaOS with pdksh, this test takes hours, literally.
5823    # So we just punt and use a minimum line length of 8192.
5824    lt_cv_sys_max_cmd_len=8192;
5825    ;;
5826
5827  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5828    # This has been around since 386BSD, at least.  Likely further.
5829    if test -x /sbin/sysctl; then
5830      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5831    elif test -x /usr/sbin/sysctl; then
5832      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5833    else
5834      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5835    fi
5836    # And add a safety zone
5837    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5838    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839    ;;
5840  osf*)
5841    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5842    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5843    # nice to cause kernel panics so lets avoid the loop below.
5844    # First set a reasonable default.
5845    lt_cv_sys_max_cmd_len=16384
5846    #
5847    if test -x /sbin/sysconfig; then
5848      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5849        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5850      esac
5851    fi
5852    ;;
5853  *)
5854    # If test is not a shell built-in, we'll probably end up computing a
5855    # maximum length that is only half of the actual maximum length, but
5856    # we can't tell.
5857    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5858    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5859	       = "XX$teststring") >/dev/null 2>&1 &&
5860	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5861	    lt_cv_sys_max_cmd_len=$new_result &&
5862	    test $i != 17 # 1/2 MB should be enough
5863    do
5864      i=`expr $i + 1`
5865      teststring=$teststring$teststring
5866    done
5867    teststring=
5868    # Add a significant safety factor because C++ compilers can tack on massive
5869    # amounts of additional arguments before passing them to the linker.
5870    # It appears as though 1/2 is a usable value.
5871    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5872    ;;
5873  esac
5874
5875fi
5876
5877if test -n $lt_cv_sys_max_cmd_len ; then
5878  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5879echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5880else
5881  echo "$as_me:$LINENO: result: none" >&5
5882echo "${ECHO_T}none" >&6
5883fi
5884
5885
5886
5887
5888# Check for command to grab the raw symbol name followed by C symbol from nm.
5889echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5890echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5891if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5892  echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894
5895# These are sane defaults that work on at least a few old systems.
5896# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5897
5898# Character class describing NM global symbol codes.
5899symcode='[BCDEGRST]'
5900
5901# Regexp to match symbols that can be accessed directly from C.
5902sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5903
5904# Transform an extracted symbol line into a proper C declaration
5905lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5906
5907# Transform an extracted symbol line into symbol name and symbol address
5908lt_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'"
5909
5910# Define system-specific variables.
5911case $host_os in
5912aix*)
5913  symcode='[BCDT]'
5914  ;;
5915cygwin* | mingw* | pw32*)
5916  symcode='[ABCDGISTW]'
5917  ;;
5918hpux*) # Its linker distinguishes data from code symbols
5919  if test "$host_cpu" = ia64; then
5920    symcode='[ABCDEGRST]'
5921  fi
5922  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5923  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'"
5924  ;;
5925linux*)
5926  if test "$host_cpu" = ia64; then
5927    symcode='[ABCDGIRSTW]'
5928    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5929    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'"
5930  fi
5931  ;;
5932irix* | nonstopux*)
5933  symcode='[BCDEGRST]'
5934  ;;
5935osf*)
5936  symcode='[BCDEGQRST]'
5937  ;;
5938solaris* | sysv5*)
5939  symcode='[BDRT]'
5940  ;;
5941sysv4)
5942  symcode='[DFNSTU]'
5943  ;;
5944esac
5945
5946# Handle CRLF in mingw tool chain
5947opt_cr=
5948case $build_os in
5949mingw*)
5950  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5951  ;;
5952esac
5953
5954# If we're using GNU nm, then use its standard symbol codes.
5955case `$NM -V 2>&1` in
5956*GNU* | *'with BFD'*)
5957  symcode='[ABCDGIRSTW]' ;;
5958esac
5959
5960# Try without a prefix undercore, then with it.
5961for ac_symprfx in "" "_"; do
5962
5963  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5964  symxfrm="\\1 $ac_symprfx\\2 \\2"
5965
5966  # Write the raw and C identifiers.
5967  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5968
5969  # Check to see that the pipe works correctly.
5970  pipe_works=no
5971
5972  rm -f conftest*
5973  cat > conftest.$ac_ext <<EOF
5974#ifdef __cplusplus
5975extern "C" {
5976#endif
5977char nm_test_var;
5978void nm_test_func(){}
5979#ifdef __cplusplus
5980}
5981#endif
5982int main(){nm_test_var='a';nm_test_func();return(0);}
5983EOF
5984
5985  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986  (eval $ac_compile) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; then
5990    # Now try to grab the symbols.
5991    nlist=conftest.nm
5992    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5993  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } && test -s "$nlist"; then
5997      # Try sorting and uniquifying the output.
5998      if sort "$nlist" | uniq > "$nlist"T; then
5999	mv -f "$nlist"T "$nlist"
6000      else
6001	rm -f "$nlist"T
6002      fi
6003
6004      # Make sure that we snagged all the symbols we need.
6005      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6006	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6007	  cat <<EOF > conftest.$ac_ext
6008#ifdef __cplusplus
6009extern "C" {
6010#endif
6011
6012EOF
6013	  # Now generate the symbol file.
6014	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6015
6016	  cat <<EOF >> conftest.$ac_ext
6017#if defined (__STDC__) && __STDC__
6018# define lt_ptr_t void *
6019#else
6020# define lt_ptr_t char *
6021# define const
6022#endif
6023
6024/* The mapping between symbol names and symbols. */
6025const struct {
6026  const char *name;
6027  lt_ptr_t address;
6028}
6029lt_preloaded_symbols[] =
6030{
6031EOF
6032	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6033	  cat <<\EOF >> conftest.$ac_ext
6034  {0, (lt_ptr_t) 0}
6035};
6036
6037#ifdef __cplusplus
6038}
6039#endif
6040EOF
6041	  # Now try linking the two files.
6042	  mv conftest.$ac_objext conftstm.$ac_objext
6043	  lt_save_LIBS="$LIBS"
6044	  lt_save_CFLAGS="$CFLAGS"
6045	  LIBS="conftstm.$ac_objext"
6046	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6047	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048  (eval $ac_link) 2>&5
6049  ac_status=$?
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6052	    pipe_works=yes
6053	  fi
6054	  LIBS="$lt_save_LIBS"
6055	  CFLAGS="$lt_save_CFLAGS"
6056	else
6057	  echo "cannot find nm_test_func in $nlist" >&5
6058	fi
6059      else
6060	echo "cannot find nm_test_var in $nlist" >&5
6061      fi
6062    else
6063      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6064    fi
6065  else
6066    echo "$progname: failed program was:" >&5
6067    cat conftest.$ac_ext >&5
6068  fi
6069  rm -f conftest* conftst*
6070
6071  # Do not use the global_symbol_pipe unless it works.
6072  if test "$pipe_works" = yes; then
6073    break
6074  else
6075    lt_cv_sys_global_symbol_pipe=
6076  fi
6077done
6078
6079fi
6080
6081if test -z "$lt_cv_sys_global_symbol_pipe"; then
6082  lt_cv_sys_global_symbol_to_cdecl=
6083fi
6084if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6085  echo "$as_me:$LINENO: result: failed" >&5
6086echo "${ECHO_T}failed" >&6
6087else
6088  echo "$as_me:$LINENO: result: ok" >&5
6089echo "${ECHO_T}ok" >&6
6090fi
6091
6092echo "$as_me:$LINENO: checking for objdir" >&5
6093echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6094if test "${lt_cv_objdir+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  rm -f .libs 2>/dev/null
6098mkdir .libs 2>/dev/null
6099if test -d .libs; then
6100  lt_cv_objdir=.libs
6101else
6102  # MS-DOS does not allow filenames that begin with a dot.
6103  lt_cv_objdir=_libs
6104fi
6105rmdir .libs 2>/dev/null
6106fi
6107echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6108echo "${ECHO_T}$lt_cv_objdir" >&6
6109objdir=$lt_cv_objdir
6110
6111
6112
6113
6114
6115case $host_os in
6116aix3*)
6117  # AIX sometimes has problems with the GCC collect2 program.  For some
6118  # reason, if we set the COLLECT_NAMES environment variable, the problems
6119  # vanish in a puff of smoke.
6120  if test "X${COLLECT_NAMES+set}" != Xset; then
6121    COLLECT_NAMES=
6122    export COLLECT_NAMES
6123  fi
6124  ;;
6125esac
6126
6127# Sed substitution that helps us do robust quoting.  It backslashifies
6128# metacharacters that are still active within double-quoted strings.
6129Xsed='sed -e 1s/^X//'
6130sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6131
6132# Same as above, but do not quote variable references.
6133double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6134
6135# Sed substitution to delay expansion of an escaped shell variable in a
6136# double_quote_subst'ed string.
6137delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6138
6139# Sed substitution to avoid accidental globbing in evaled expressions
6140no_glob_subst='s/\*/\\\*/g'
6141
6142# Constants:
6143rm="rm -f"
6144
6145# Global variables:
6146default_ofile=libtool
6147can_build_shared=yes
6148
6149# All known linkers require a `.a' archive for static linking (except MSVC,
6150# which needs '.lib').
6151libext=a
6152ltmain="$ac_aux_dir/ltmain.sh"
6153ofile="$default_ofile"
6154with_gnu_ld="$lt_cv_prog_gnu_ld"
6155
6156if test -n "$ac_tool_prefix"; then
6157  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6158set dummy ${ac_tool_prefix}ar; ac_word=$2
6159echo "$as_me:$LINENO: checking for $ac_word" >&5
6160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161if test "${ac_cv_prog_AR+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  if test -n "$AR"; then
6165  ac_cv_prog_AR="$AR" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  test -z "$as_dir" && as_dir=.
6172  for ac_exec_ext in '' $ac_executable_extensions; do
6173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174    ac_cv_prog_AR="${ac_tool_prefix}ar"
6175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176    break 2
6177  fi
6178done
6179done
6180
6181fi
6182fi
6183AR=$ac_cv_prog_AR
6184if test -n "$AR"; then
6185  echo "$as_me:$LINENO: result: $AR" >&5
6186echo "${ECHO_T}$AR" >&6
6187else
6188  echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190fi
6191
6192fi
6193if test -z "$ac_cv_prog_AR"; then
6194  ac_ct_AR=$AR
6195  # Extract the first word of "ar", so it can be a program name with args.
6196set dummy ar; ac_word=$2
6197echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  if test -n "$ac_ct_AR"; then
6203  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210  for ac_exec_ext in '' $ac_executable_extensions; do
6211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212    ac_cv_prog_ac_ct_AR="ar"
6213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217done
6218
6219  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6220fi
6221fi
6222ac_ct_AR=$ac_cv_prog_ac_ct_AR
6223if test -n "$ac_ct_AR"; then
6224  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6225echo "${ECHO_T}$ac_ct_AR" >&6
6226else
6227  echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229fi
6230
6231  AR=$ac_ct_AR
6232else
6233  AR="$ac_cv_prog_AR"
6234fi
6235
6236if test -n "$ac_tool_prefix"; then
6237  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6239echo "$as_me:$LINENO: checking for $ac_word" >&5
6240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6241if test "${ac_cv_prog_RANLIB+set}" = set; then
6242  echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244  if test -n "$RANLIB"; then
6245  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252  for ac_exec_ext in '' $ac_executable_extensions; do
6253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259done
6260
6261fi
6262fi
6263RANLIB=$ac_cv_prog_RANLIB
6264if test -n "$RANLIB"; then
6265  echo "$as_me:$LINENO: result: $RANLIB" >&5
6266echo "${ECHO_T}$RANLIB" >&6
6267else
6268  echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270fi
6271
6272fi
6273if test -z "$ac_cv_prog_RANLIB"; then
6274  ac_ct_RANLIB=$RANLIB
6275  # Extract the first word of "ranlib", so it can be a program name with args.
6276set dummy ranlib; ac_word=$2
6277echo "$as_me:$LINENO: checking for $ac_word" >&5
6278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6279if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6280  echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282  if test -n "$ac_ct_RANLIB"; then
6283  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290  for ac_exec_ext in '' $ac_executable_extensions; do
6291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292    ac_cv_prog_ac_ct_RANLIB="ranlib"
6293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297done
6298
6299  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6300fi
6301fi
6302ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6303if test -n "$ac_ct_RANLIB"; then
6304  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6305echo "${ECHO_T}$ac_ct_RANLIB" >&6
6306else
6307  echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6
6309fi
6310
6311  RANLIB=$ac_ct_RANLIB
6312else
6313  RANLIB="$ac_cv_prog_RANLIB"
6314fi
6315
6316if test -n "$ac_tool_prefix"; then
6317  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6318set dummy ${ac_tool_prefix}strip; ac_word=$2
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321if test "${ac_cv_prog_STRIP+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  if test -n "$STRIP"; then
6325  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332  for ac_exec_ext in '' $ac_executable_extensions; do
6333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339done
6340
6341fi
6342fi
6343STRIP=$ac_cv_prog_STRIP
6344if test -n "$STRIP"; then
6345  echo "$as_me:$LINENO: result: $STRIP" >&5
6346echo "${ECHO_T}$STRIP" >&6
6347else
6348  echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350fi
6351
6352fi
6353if test -z "$ac_cv_prog_STRIP"; then
6354  ac_ct_STRIP=$STRIP
6355  # Extract the first word of "strip", so it can be a program name with args.
6356set dummy strip; ac_word=$2
6357echo "$as_me:$LINENO: checking for $ac_word" >&5
6358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6360  echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362  if test -n "$ac_ct_STRIP"; then
6363  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  test -z "$as_dir" && as_dir=.
6370  for ac_exec_ext in '' $ac_executable_extensions; do
6371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372    ac_cv_prog_ac_ct_STRIP="strip"
6373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374    break 2
6375  fi
6376done
6377done
6378
6379  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6380fi
6381fi
6382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6383if test -n "$ac_ct_STRIP"; then
6384  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6385echo "${ECHO_T}$ac_ct_STRIP" >&6
6386else
6387  echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389fi
6390
6391  STRIP=$ac_ct_STRIP
6392else
6393  STRIP="$ac_cv_prog_STRIP"
6394fi
6395
6396
6397old_CC="$CC"
6398old_CFLAGS="$CFLAGS"
6399
6400# Set sane defaults for various variables
6401test -z "$AR" && AR=ar
6402test -z "$AR_FLAGS" && AR_FLAGS=cru
6403test -z "$AS" && AS=as
6404test -z "$CC" && CC=cc
6405test -z "$LTCC" && LTCC=$CC
6406test -z "$DLLTOOL" && DLLTOOL=dlltool
6407test -z "$LD" && LD=ld
6408test -z "$LN_S" && LN_S="ln -s"
6409test -z "$MAGIC_CMD" && MAGIC_CMD=file
6410test -z "$NM" && NM=nm
6411test -z "$SED" && SED=sed
6412test -z "$OBJDUMP" && OBJDUMP=objdump
6413test -z "$RANLIB" && RANLIB=:
6414test -z "$STRIP" && STRIP=:
6415test -z "$ac_objext" && ac_objext=o
6416
6417# Determine commands to create old-style static archives.
6418old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6419old_postinstall_cmds='chmod 644 $oldlib'
6420old_postuninstall_cmds=
6421
6422if test -n "$RANLIB"; then
6423  case $host_os in
6424  openbsd*)
6425    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6426    ;;
6427  *)
6428    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6429    ;;
6430  esac
6431  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6432fi
6433
6434for cc_temp in $compiler""; do
6435  case $cc_temp in
6436    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6437    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6438    \-*) ;;
6439    *) break;;
6440  esac
6441done
6442cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6443
6444
6445# Only perform the check for file, if the check method requires it
6446case $deplibs_check_method in
6447file_magic*)
6448  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6449    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6450echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6451if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6452  echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454  case $MAGIC_CMD in
6455[\\/*] |  ?:[\\/]*)
6456  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6457  ;;
6458*)
6459  lt_save_MAGIC_CMD="$MAGIC_CMD"
6460  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6461  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6462  for ac_dir in $ac_dummy; do
6463    IFS="$lt_save_ifs"
6464    test -z "$ac_dir" && ac_dir=.
6465    if test -f $ac_dir/${ac_tool_prefix}file; then
6466      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6467      if test -n "$file_magic_test_file"; then
6468	case $deplibs_check_method in
6469	"file_magic "*)
6470	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6471	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6472	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6473	    $EGREP "$file_magic_regex" > /dev/null; then
6474	    :
6475	  else
6476	    cat <<EOF 1>&2
6477
6478*** Warning: the command libtool uses to detect shared libraries,
6479*** $file_magic_cmd, produces output that libtool cannot recognize.
6480*** The result is that libtool may fail to recognize shared libraries
6481*** as such.  This will affect the creation of libtool libraries that
6482*** depend on shared libraries, but programs linked with such libtool
6483*** libraries will work regardless of this problem.  Nevertheless, you
6484*** may want to report the problem to your system manager and/or to
6485*** bug-libtool@gnu.org
6486
6487EOF
6488	  fi ;;
6489	esac
6490      fi
6491      break
6492    fi
6493  done
6494  IFS="$lt_save_ifs"
6495  MAGIC_CMD="$lt_save_MAGIC_CMD"
6496  ;;
6497esac
6498fi
6499
6500MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6501if test -n "$MAGIC_CMD"; then
6502  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6503echo "${ECHO_T}$MAGIC_CMD" >&6
6504else
6505  echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507fi
6508
6509if test -z "$lt_cv_path_MAGIC_CMD"; then
6510  if test -n "$ac_tool_prefix"; then
6511    echo "$as_me:$LINENO: checking for file" >&5
6512echo $ECHO_N "checking for file... $ECHO_C" >&6
6513if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6514  echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516  case $MAGIC_CMD in
6517[\\/*] |  ?:[\\/]*)
6518  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6519  ;;
6520*)
6521  lt_save_MAGIC_CMD="$MAGIC_CMD"
6522  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6524  for ac_dir in $ac_dummy; do
6525    IFS="$lt_save_ifs"
6526    test -z "$ac_dir" && ac_dir=.
6527    if test -f $ac_dir/file; then
6528      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6529      if test -n "$file_magic_test_file"; then
6530	case $deplibs_check_method in
6531	"file_magic "*)
6532	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6533	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6534	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6535	    $EGREP "$file_magic_regex" > /dev/null; then
6536	    :
6537	  else
6538	    cat <<EOF 1>&2
6539
6540*** Warning: the command libtool uses to detect shared libraries,
6541*** $file_magic_cmd, produces output that libtool cannot recognize.
6542*** The result is that libtool may fail to recognize shared libraries
6543*** as such.  This will affect the creation of libtool libraries that
6544*** depend on shared libraries, but programs linked with such libtool
6545*** libraries will work regardless of this problem.  Nevertheless, you
6546*** may want to report the problem to your system manager and/or to
6547*** bug-libtool@gnu.org
6548
6549EOF
6550	  fi ;;
6551	esac
6552      fi
6553      break
6554    fi
6555  done
6556  IFS="$lt_save_ifs"
6557  MAGIC_CMD="$lt_save_MAGIC_CMD"
6558  ;;
6559esac
6560fi
6561
6562MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6563if test -n "$MAGIC_CMD"; then
6564  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6565echo "${ECHO_T}$MAGIC_CMD" >&6
6566else
6567  echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
6569fi
6570
6571  else
6572    MAGIC_CMD=:
6573  fi
6574fi
6575
6576  fi
6577  ;;
6578esac
6579
6580enable_dlopen=no
6581enable_win32_dll=no
6582
6583# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6584if test "${enable_libtool_lock+set}" = set; then
6585  enableval="$enable_libtool_lock"
6586
6587fi;
6588test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6589
6590
6591# Check whether --with-pic or --without-pic was given.
6592if test "${with_pic+set}" = set; then
6593  withval="$with_pic"
6594  pic_mode="$withval"
6595else
6596  pic_mode=default
6597fi;
6598test -z "$pic_mode" && pic_mode=default
6599
6600# Use C for the default configuration in the libtool script
6601tagname=
6602lt_save_CC="$CC"
6603ac_ext=c
6604ac_cpp='$CPP $CPPFLAGS'
6605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
6609
6610# Source file extension for C test sources.
6611ac_ext=c
6612
6613# Object file extension for compiled C test sources.
6614objext=o
6615objext=$objext
6616
6617# Code to be used in simple compile tests
6618lt_simple_compile_test_code="int some_variable = 0;\n"
6619
6620# Code to be used in simple link tests
6621lt_simple_link_test_code='int main(){return(0);}\n'
6622
6623
6624# If no C compiler was specified, use CC.
6625LTCC=${LTCC-"$CC"}
6626
6627# Allow CC to be a program name with arguments.
6628compiler=$CC
6629
6630
6631# save warnings/boilerplate of simple test code
6632ac_outfile=conftest.$ac_objext
6633printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6634eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6635_lt_compiler_boilerplate=`cat conftest.err`
6636$rm conftest*
6637
6638ac_outfile=conftest.$ac_objext
6639printf "$lt_simple_link_test_code" >conftest.$ac_ext
6640eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6641_lt_linker_boilerplate=`cat conftest.err`
6642$rm conftest*
6643
6644
6645#
6646# Check for any special shared library compilation flags.
6647#
6648lt_prog_cc_shlib=
6649if test "$GCC" = no; then
6650  case $host_os in
6651  sco3.2v5*)
6652    lt_prog_cc_shlib='-belf'
6653    ;;
6654  esac
6655fi
6656if test -n "$lt_prog_cc_shlib"; then
6657  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6658echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6659  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6660  else
6661    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6662echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6663    lt_cv_prog_cc_can_build_shared=no
6664  fi
6665fi
6666
6667
6668#
6669# Check to make sure the static flag actually works.
6670#
6671echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6672echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6673if test "${lt_prog_compiler_static_works+set}" = set; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676  lt_prog_compiler_static_works=no
6677   save_LDFLAGS="$LDFLAGS"
6678   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6679   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6680   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6681     # The linker can only warn and ignore the option if not recognized
6682     # So say no if there are warnings
6683     if test -s conftest.err; then
6684       # Append any errors to the config.log.
6685       cat conftest.err 1>&5
6686       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6687       $SED '/^$/d' conftest.err >conftest.er2
6688       if diff conftest.exp conftest.er2 >/dev/null; then
6689         lt_prog_compiler_static_works=yes
6690       fi
6691     else
6692       lt_prog_compiler_static_works=yes
6693     fi
6694   fi
6695   $rm conftest*
6696   LDFLAGS="$save_LDFLAGS"
6697
6698fi
6699echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6700echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6701
6702if test x"$lt_prog_compiler_static_works" = xyes; then
6703    :
6704else
6705    lt_prog_compiler_static=
6706fi
6707
6708
6709
6710## CAVEAT EMPTOR:
6711## There is no encapsulation within the following macros, do not change
6712## the running order or otherwise move them around unless you know exactly
6713## what you are doing...
6714
6715lt_prog_compiler_no_builtin_flag=
6716
6717if test "$GCC" = yes; then
6718  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6719
6720
6721echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6722echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6723if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726  lt_cv_prog_compiler_rtti_exceptions=no
6727  ac_outfile=conftest.$ac_objext
6728   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6729   lt_compiler_flag="-fno-rtti -fno-exceptions"
6730   # Insert the option either (1) after the last *FLAGS variable, or
6731   # (2) before a word containing "conftest.", or (3) at the end.
6732   # Note that $ac_compile itself does not contain backslashes and begins
6733   # with a dollar sign (not a hyphen), so the echo should work correctly.
6734   # The option is referenced via a variable to avoid confusing sed.
6735   lt_compile=`echo "$ac_compile" | $SED \
6736   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6737   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6738   -e 's:$: $lt_compiler_flag:'`
6739   (eval echo "\"\$as_me:6739: $lt_compile\"" >&5)
6740   (eval "$lt_compile" 2>conftest.err)
6741   ac_status=$?
6742   cat conftest.err >&5
6743   echo "$as_me:6743: \$? = $ac_status" >&5
6744   if (exit $ac_status) && test -s "$ac_outfile"; then
6745     # The compiler can only warn and ignore the option if not recognized
6746     # So say no if there are warnings other than the usual output.
6747     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6748     $SED '/^$/d' conftest.err >conftest.er2
6749     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6750       lt_cv_prog_compiler_rtti_exceptions=yes
6751     fi
6752   fi
6753   $rm conftest*
6754
6755fi
6756echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6757echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6758
6759if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6760    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6761else
6762    :
6763fi
6764
6765fi
6766
6767lt_prog_compiler_wl=
6768lt_prog_compiler_pic=
6769lt_prog_compiler_static=
6770
6771echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6772echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6773
6774  if test "$GCC" = yes; then
6775    lt_prog_compiler_wl='-Wl,'
6776    lt_prog_compiler_static='-static'
6777
6778    case $host_os in
6779      aix*)
6780      # All AIX code is PIC.
6781      if test "$host_cpu" = ia64; then
6782	# AIX 5 now supports IA64 processor
6783	lt_prog_compiler_static='-Bstatic'
6784      fi
6785      ;;
6786
6787    amigaos*)
6788      # FIXME: we need at least 68020 code to build shared libraries, but
6789      # adding the `-m68020' flag to GCC prevents building anything better,
6790      # like `-m68040'.
6791      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6792      ;;
6793
6794    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
6795    | osf5*)
6796      # PIC is the default for these OSes.
6797      ;;
6798
6799    mingw* | pw32* | os2*)
6800      # This hack is so that the source file can tell whether it is being
6801      # built for inclusion in a dll (and should export symbols for example).
6802      lt_prog_compiler_pic='-DDLL_EXPORT'
6803      ;;
6804
6805    darwin* | rhapsody*)
6806      # PIC is the default on this platform
6807      # Common symbols not allowed in MH_DYLIB files
6808      lt_prog_compiler_pic='-fno-common'
6809      ;;
6810
6811    msdosdjgpp*)
6812      # Just because we use GCC doesn't mean we suddenly get shared libraries
6813      # on systems that don't support them.
6814      lt_prog_compiler_can_build_shared=no
6815      enable_shared=no
6816      ;;
6817
6818    sysv4*MP*)
6819      if test -d /usr/nec; then
6820	lt_prog_compiler_pic=-Kconform_pic
6821      fi
6822      ;;
6823
6824    hpux*)
6825      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6826      # not for PA HP-UX.
6827      case $host_cpu in
6828      hppa*64*|ia64*)
6829	# +Z the default
6830	;;
6831      *)
6832	lt_prog_compiler_pic='-fPIC'
6833	;;
6834      esac
6835      ;;
6836
6837    *)
6838      lt_prog_compiler_pic='-fPIC'
6839      ;;
6840    esac
6841  else
6842    # PORTME Check for flag to pass linker flags through the system compiler.
6843    case $host_os in
6844    aix*)
6845      lt_prog_compiler_wl='-Wl,'
6846      if test "$host_cpu" = ia64; then
6847	# AIX 5 now supports IA64 processor
6848	lt_prog_compiler_static='-Bstatic'
6849      else
6850	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6851      fi
6852      ;;
6853      darwin*)
6854        # PIC is the default on this platform
6855        # Common symbols not allowed in MH_DYLIB files
6856       case $cc_basename in
6857         xlc*)
6858         lt_prog_compiler_pic='-qnocommon'
6859         lt_prog_compiler_wl='-Wl,'
6860         ;;
6861       esac
6862       ;;
6863
6864    mingw* | pw32* | os2*)
6865      # This hack is so that the source file can tell whether it is being
6866      # built for inclusion in a dll (and should export symbols for example).
6867      lt_prog_compiler_pic='-DDLL_EXPORT'
6868      ;;
6869
6870    hpux9* | hpux10* | hpux11*)
6871      lt_prog_compiler_wl='-Wl,'
6872      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6873      # not for PA HP-UX.
6874      case $host_cpu in
6875      hppa*64*|ia64*)
6876	# +Z the default
6877	;;
6878      *)
6879	lt_prog_compiler_pic='+Z'
6880	;;
6881      esac
6882      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6883      lt_prog_compiler_static='${wl}-a ${wl}archive'
6884      ;;
6885
6886    irix5* | irix6* | nonstopux*)
6887      lt_prog_compiler_wl='-Wl,'
6888      # PIC (with -KPIC) is the default.
6889      lt_prog_compiler_static='-non_shared'
6890      ;;
6891
6892    newsos6)
6893      lt_prog_compiler_pic='-KPIC'
6894      lt_prog_compiler_static='-Bstatic'
6895      ;;
6896
6897    linux*)
6898      case $cc_basename in
6899      icc* | ecc*)
6900	lt_prog_compiler_wl='-Wl,'
6901	lt_prog_compiler_pic='-KPIC'
6902	lt_prog_compiler_static='-static'
6903        ;;
6904      pgcc* | pgf77* | pgf90* | pgf95*)
6905        # Portland Group compilers (*not* the Pentium gcc compiler,
6906	# which looks to be a dead project)
6907	lt_prog_compiler_wl='-Wl,'
6908	lt_prog_compiler_pic='-fpic'
6909	lt_prog_compiler_static='-Bstatic'
6910        ;;
6911      ccc*)
6912        lt_prog_compiler_wl='-Wl,'
6913        # All Alpha code is PIC.
6914        lt_prog_compiler_static='-non_shared'
6915        ;;
6916      esac
6917      ;;
6918
6919    osf3* | osf4* | osf5*)
6920      lt_prog_compiler_wl='-Wl,'
6921      # All OSF/1 code is PIC.
6922      lt_prog_compiler_static='-non_shared'
6923      ;;
6924
6925    sco3.2v5*)
6926      lt_prog_compiler_pic='-Kpic'
6927      lt_prog_compiler_static='-dn'
6928      ;;
6929
6930    solaris*)
6931      lt_prog_compiler_pic='-KPIC'
6932      lt_prog_compiler_static='-Bstatic'
6933      case $cc_basename in
6934      f77* | f90* | f95*)
6935	lt_prog_compiler_wl='-Qoption ld ';;
6936      *)
6937	lt_prog_compiler_wl='-Wl,';;
6938      esac
6939      ;;
6940
6941    sunos4*)
6942      lt_prog_compiler_wl='-Qoption ld '
6943      lt_prog_compiler_pic='-PIC'
6944      lt_prog_compiler_static='-Bstatic'
6945      ;;
6946
6947    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6948      lt_prog_compiler_wl='-Wl,'
6949      lt_prog_compiler_pic='-KPIC'
6950      lt_prog_compiler_static='-Bstatic'
6951      ;;
6952
6953    sysv4*MP*)
6954      if test -d /usr/nec ;then
6955	lt_prog_compiler_pic='-Kconform_pic'
6956	lt_prog_compiler_static='-Bstatic'
6957      fi
6958      ;;
6959
6960    unicos*)
6961      lt_prog_compiler_wl='-Wl,'
6962      lt_prog_compiler_can_build_shared=no
6963      ;;
6964
6965    uts4*)
6966      lt_prog_compiler_pic='-pic'
6967      lt_prog_compiler_static='-Bstatic'
6968      ;;
6969
6970    *)
6971      lt_prog_compiler_can_build_shared=no
6972      ;;
6973    esac
6974  fi
6975
6976echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6977echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6978
6979#
6980# Check to make sure the PIC flag actually works.
6981#
6982if test -n "$lt_prog_compiler_pic"; then
6983
6984echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6985echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6986if test "${lt_prog_compiler_pic_works+set}" = set; then
6987  echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989  lt_prog_compiler_pic_works=no
6990  ac_outfile=conftest.$ac_objext
6991   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993   # Insert the option either (1) after the last *FLAGS variable, or
6994   # (2) before a word containing "conftest.", or (3) at the end.
6995   # Note that $ac_compile itself does not contain backslashes and begins
6996   # with a dollar sign (not a hyphen), so the echo should work correctly.
6997   # The option is referenced via a variable to avoid confusing sed.
6998   lt_compile=`echo "$ac_compile" | $SED \
6999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001   -e 's:$: $lt_compiler_flag:'`
7002   (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003   (eval "$lt_compile" 2>conftest.err)
7004   ac_status=$?
7005   cat conftest.err >&5
7006   echo "$as_me:7006: \$? = $ac_status" >&5
7007   if (exit $ac_status) && test -s "$ac_outfile"; then
7008     # The compiler can only warn and ignore the option if not recognized
7009     # So say no if there are warnings other than the usual output.
7010     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7011     $SED '/^$/d' conftest.err >conftest.er2
7012     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7013       lt_prog_compiler_pic_works=yes
7014     fi
7015   fi
7016   $rm conftest*
7017
7018fi
7019echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7020echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7021
7022if test x"$lt_prog_compiler_pic_works" = xyes; then
7023    case $lt_prog_compiler_pic in
7024     "" | " "*) ;;
7025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026     esac
7027else
7028    lt_prog_compiler_pic=
7029     lt_prog_compiler_can_build_shared=no
7030fi
7031
7032fi
7033case $host_os in
7034  # For platforms which do not support PIC, -DPIC is meaningless:
7035  *djgpp*)
7036    lt_prog_compiler_pic=
7037    ;;
7038  *)
7039    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7040    ;;
7041esac
7042
7043echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7045if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7046  echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048  lt_cv_prog_compiler_c_o=no
7049   $rm -r conftest 2>/dev/null
7050   mkdir conftest
7051   cd conftest
7052   mkdir out
7053   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7054
7055   lt_compiler_flag="-o out/conftest2.$ac_objext"
7056   # Insert the option either (1) after the last *FLAGS variable, or
7057   # (2) before a word containing "conftest.", or (3) at the end.
7058   # Note that $ac_compile itself does not contain backslashes and begins
7059   # with a dollar sign (not a hyphen), so the echo should work correctly.
7060   lt_compile=`echo "$ac_compile" | $SED \
7061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7063   -e 's:$: $lt_compiler_flag:'`
7064   (eval echo "\"\$as_me:7064: $lt_compile\"" >&5)
7065   (eval "$lt_compile" 2>out/conftest.err)
7066   ac_status=$?
7067   cat out/conftest.err >&5
7068   echo "$as_me:7068: \$? = $ac_status" >&5
7069   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7070   then
7071     # The compiler can only warn and ignore the option if not recognized
7072     # So say no if there are warnings
7073     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7074     $SED '/^$/d' out/conftest.err >out/conftest.er2
7075     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7076       lt_cv_prog_compiler_c_o=yes
7077     fi
7078   fi
7079   chmod u+w . 2>&5
7080   $rm conftest*
7081   # SGI C++ compiler will create directory out/ii_files/ for
7082   # template instantiation
7083   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7084   $rm out/* && rmdir out
7085   cd ..
7086   rmdir conftest
7087   $rm conftest*
7088
7089fi
7090echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7091echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7092
7093
7094hard_links="nottested"
7095if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7096  # do not overwrite the value of need_locks provided by the user
7097  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7098echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7099  hard_links=yes
7100  $rm conftest*
7101  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7102  touch conftest.a
7103  ln conftest.a conftest.b 2>&5 || hard_links=no
7104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7105  echo "$as_me:$LINENO: result: $hard_links" >&5
7106echo "${ECHO_T}$hard_links" >&6
7107  if test "$hard_links" = no; then
7108    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7109echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7110    need_locks=warn
7111  fi
7112else
7113  need_locks=no
7114fi
7115
7116echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7117echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7118
7119  runpath_var=
7120  allow_undefined_flag=
7121  enable_shared_with_static_runtimes=no
7122  archive_cmds=
7123  archive_expsym_cmds=
7124  old_archive_From_new_cmds=
7125  old_archive_from_expsyms_cmds=
7126  export_dynamic_flag_spec=
7127  whole_archive_flag_spec=
7128  thread_safe_flag_spec=
7129  hardcode_libdir_flag_spec=
7130  hardcode_libdir_flag_spec_ld=
7131  hardcode_libdir_separator=
7132  hardcode_direct=no
7133  hardcode_minus_L=no
7134  hardcode_shlibpath_var=unsupported
7135  link_all_deplibs=unknown
7136  hardcode_automatic=no
7137  module_cmds=
7138  module_expsym_cmds=
7139  always_export_symbols=no
7140  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7141  # include_expsyms should be a list of space-separated symbols to be *always*
7142  # included in the symbol list
7143  include_expsyms=
7144  # exclude_expsyms can be an extended regexp of symbols to exclude
7145  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7146  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7147  # as well as any symbol that contains `d'.
7148  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7149  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7150  # platforms (ab)use it in PIC code, but their linkers get confused if
7151  # the symbol is explicitly referenced.  Since portable code cannot
7152  # rely on this symbol name, it's probably fine to never include it in
7153  # preloaded symbol tables.
7154  extract_expsyms_cmds=
7155  # Just being paranoid about ensuring that cc_basename is set.
7156  for cc_temp in $compiler""; do
7157  case $cc_temp in
7158    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7159    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7160    \-*) ;;
7161    *) break;;
7162  esac
7163done
7164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7165
7166  case $host_os in
7167  cygwin* | mingw* | pw32*)
7168    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7169    # When not using gcc, we currently assume that we are using
7170    # Microsoft Visual C++.
7171    if test "$GCC" != yes; then
7172      with_gnu_ld=no
7173    fi
7174    ;;
7175  openbsd*)
7176    with_gnu_ld=no
7177    ;;
7178  esac
7179
7180  ld_shlibs=yes
7181  if test "$with_gnu_ld" = yes; then
7182    # If archive_cmds runs LD, not CC, wlarc should be empty
7183    wlarc='${wl}'
7184
7185    # Set some defaults for GNU ld with shared library support. These
7186    # are reset later if shared libraries are not supported. Putting them
7187    # here allows them to be overridden if necessary.
7188    runpath_var=LD_RUN_PATH
7189    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7190    export_dynamic_flag_spec='${wl}--export-dynamic'
7191    # ancient GNU ld didn't support --whole-archive et. al.
7192    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7193	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7194      else
7195  	whole_archive_flag_spec=
7196    fi
7197    supports_anon_versioning=no
7198    case `$LD -v 2>/dev/null` in
7199      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7200      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7201      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7202      *\ 2.11.*) ;; # other 2.11 versions
7203      *) supports_anon_versioning=yes ;;
7204    esac
7205
7206    # See if GNU ld supports shared libraries.
7207    case $host_os in
7208    aix3* | aix4* | aix5*)
7209      # On AIX/PPC, the GNU linker is very broken
7210      if test "$host_cpu" != ia64; then
7211	ld_shlibs=no
7212	cat <<EOF 1>&2
7213
7214*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7215*** to be unable to reliably create shared libraries on AIX.
7216*** Therefore, libtool is disabling shared libraries support.  If you
7217*** really care for shared libraries, you may want to modify your PATH
7218*** so that a non-GNU linker is found, and then restart.
7219
7220EOF
7221      fi
7222      ;;
7223
7224    amigaos*)
7225      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)'
7226      hardcode_libdir_flag_spec='-L$libdir'
7227      hardcode_minus_L=yes
7228
7229      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7230      # that the semantics of dynamic libraries on AmigaOS, at least up
7231      # to version 4, is to share data among multiple programs linked
7232      # with the same dynamic library.  Since this doesn't match the
7233      # behavior of shared libraries on other platforms, we can't use
7234      # them.
7235      ld_shlibs=no
7236      ;;
7237
7238    beos*)
7239      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7240	allow_undefined_flag=unsupported
7241	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7242	# support --undefined.  This deserves some investigation.  FIXME
7243	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7244      else
7245	ld_shlibs=no
7246      fi
7247      ;;
7248
7249    cygwin* | mingw* | pw32*)
7250      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7251      # as there is no search path for DLLs.
7252      hardcode_libdir_flag_spec='-L$libdir'
7253      allow_undefined_flag=unsupported
7254      always_export_symbols=no
7255      enable_shared_with_static_runtimes=yes
7256      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7257
7258      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7259        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7260	# If the export-symbols file already is a .def file (1st line
7261	# is EXPORTS), use it as is; otherwise, prepend...
7262	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7263	  cp $export_symbols $output_objdir/$soname.def;
7264	else
7265	  echo EXPORTS > $output_objdir/$soname.def;
7266	  cat $export_symbols >> $output_objdir/$soname.def;
7267	fi~
7268	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7269      else
7270	ld_shlibs=no
7271      fi
7272      ;;
7273
7274    haiku*)
7275      allow_undefined_flag=unsupported
7276      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7277      ;;
7278
7279    linux*)
7280      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7281	tmp_addflag=
7282	case $cc_basename,$host_cpu in
7283	pgcc*)				# Portland Group C compiler
7284	  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'
7285	  tmp_addflag=' $pic_flag'
7286	  ;;
7287	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7288	  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'
7289	  tmp_addflag=' $pic_flag -Mnomain' ;;
7290	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7291	  tmp_addflag=' -i_dynamic' ;;
7292	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7293	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7294	ifc* | ifort*)			# Intel Fortran compiler
7295	  tmp_addflag=' -nofor_main' ;;
7296	esac
7297	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7298
7299	if test $supports_anon_versioning = yes; then
7300	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7301  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7302  $echo "local: *; };" >> $output_objdir/$libname.ver~
7303	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7304	fi
7305      else
7306	ld_shlibs=no
7307      fi
7308      ;;
7309
7310    netbsd*)
7311      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7312	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7313	wlarc=
7314      else
7315	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7316	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7317      fi
7318      ;;
7319
7320    solaris* | sysv5*)
7321      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7322	ld_shlibs=no
7323	cat <<EOF 1>&2
7324
7325*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7326*** create shared libraries on Solaris systems.  Therefore, libtool
7327*** is disabling shared libraries support.  We urge you to upgrade GNU
7328*** binutils to release 2.9.1 or newer.  Another option is to modify
7329*** your PATH or compiler configuration so that the native linker is
7330*** used, and then restart.
7331
7332EOF
7333      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7334	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7335	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7336      else
7337	ld_shlibs=no
7338      fi
7339      ;;
7340
7341    sunos4*)
7342      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343      wlarc=
7344      hardcode_direct=yes
7345      hardcode_shlibpath_var=no
7346      ;;
7347
7348    *)
7349      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7352      else
7353	ld_shlibs=no
7354      fi
7355      ;;
7356    esac
7357
7358    if test "$ld_shlibs" = no; then
7359      runpath_var=
7360      hardcode_libdir_flag_spec=
7361      export_dynamic_flag_spec=
7362      whole_archive_flag_spec=
7363    fi
7364  else
7365    # PORTME fill in a description of your system's linker (not GNU ld)
7366    case $host_os in
7367    aix3*)
7368      allow_undefined_flag=unsupported
7369      always_export_symbols=yes
7370      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'
7371      # Note: this linker hardcodes the directories in LIBPATH if there
7372      # are no directories specified by -L.
7373      hardcode_minus_L=yes
7374      if test "$GCC" = yes && test -z "$link_static_flag"; then
7375	# Neither direct hardcoding nor static linking is supported with a
7376	# broken collect2.
7377	hardcode_direct=unsupported
7378      fi
7379      ;;
7380
7381    aix4* | aix5*)
7382      if test "$host_cpu" = ia64; then
7383	# On IA64, the linker does run time linking by default, so we don't
7384	# have to do anything special.
7385	aix_use_runtimelinking=no
7386	exp_sym_flag='-Bexport'
7387	no_entry_flag=""
7388      else
7389	# If we're using GNU nm, then we don't want the "-C" option.
7390	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7391	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7392	  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'
7393	else
7394	  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'
7395	fi
7396	aix_use_runtimelinking=no
7397
7398	# Test if we are trying to use run time linking or normal
7399	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7400	# need to do runtime linking.
7401	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7402	  for ld_flag in $LDFLAGS; do
7403  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7404  	    aix_use_runtimelinking=yes
7405  	    break
7406  	  fi
7407	  done
7408	esac
7409
7410	exp_sym_flag='-bexport'
7411	no_entry_flag='-bnoentry'
7412      fi
7413
7414      # When large executables or shared objects are built, AIX ld can
7415      # have problems creating the table of contents.  If linking a library
7416      # or program results in "error TOC overflow" add -mminimal-toc to
7417      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7418      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7419
7420      archive_cmds=''
7421      hardcode_direct=yes
7422      hardcode_libdir_separator=':'
7423      link_all_deplibs=yes
7424
7425      if test "$GCC" = yes; then
7426	case $host_os in aix4.[012]|aix4.[012].*)
7427	# We only want to do this on AIX 4.2 and lower, the check
7428	# below for broken collect2 doesn't work under 4.3+
7429	  collect2name=`${CC} -print-prog-name=collect2`
7430	  if test -f "$collect2name" && \
7431  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7432	  then
7433  	  # We have reworked collect2
7434  	  hardcode_direct=yes
7435	  else
7436  	  # We have old collect2
7437  	  hardcode_direct=unsupported
7438  	  # It fails to find uninstalled libraries when the uninstalled
7439  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7440  	  # to unsupported forces relinking
7441  	  hardcode_minus_L=yes
7442  	  hardcode_libdir_flag_spec='-L$libdir'
7443  	  hardcode_libdir_separator=
7444	  fi
7445	esac
7446	shared_flag='-shared'
7447	if test "$aix_use_runtimelinking" = yes; then
7448	  shared_flag="$shared_flag "'${wl}-G'
7449	fi
7450      else
7451	# not using gcc
7452	if test "$host_cpu" = ia64; then
7453  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7454  	# chokes on -Wl,-G. The following line is correct:
7455	  shared_flag='-G'
7456	else
7457  	if test "$aix_use_runtimelinking" = yes; then
7458	    shared_flag='${wl}-G'
7459	  else
7460	    shared_flag='${wl}-bM:SRE'
7461  	fi
7462	fi
7463      fi
7464
7465      # It seems that -bexpall does not export symbols beginning with
7466      # underscore (_), so it is better to generate a list of symbols to export.
7467      always_export_symbols=yes
7468      if test "$aix_use_runtimelinking" = yes; then
7469	# Warning - without using the other runtime loading flags (-brtl),
7470	# -berok will link without error, but may produce a broken library.
7471	allow_undefined_flag='-berok'
7472       # Determine the default libpath from the value encoded in an empty executable.
7473       cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h.  */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h.  */
7479
7480int
7481main ()
7482{
7483
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
7489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490  (eval $ac_link) 2>conftest.er1
7491  ac_status=$?
7492  grep -v '^ *+' conftest.er1 >conftest.err
7493  rm -f conftest.er1
7494  cat conftest.err >&5
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); } &&
7497	 { ac_try='test -z "$ac_c_werror_flag"
7498			 || test ! -s conftest.err'
7499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500  (eval $ac_try) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; } &&
7504	 { ac_try='test -s conftest$ac_exeext'
7505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506  (eval $ac_try) 2>&5
7507  ac_status=$?
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); }; }; then
7510
7511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7512}'`
7513# Check for a 64-bit object if we didn't find anything.
7514if 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; }
7515}'`; fi
7516else
7517  echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520fi
7521rm -f conftest.err conftest.$ac_objext \
7522      conftest$ac_exeext conftest.$ac_ext
7523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7524
7525       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7526	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7527       else
7528	if test "$host_cpu" = ia64; then
7529	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7530	  allow_undefined_flag="-z nodefs"
7531	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7532	else
7533	 # Determine the default libpath from the value encoded in an empty executable.
7534	 cat >conftest.$ac_ext <<_ACEOF
7535/* confdefs.h.  */
7536_ACEOF
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h.  */
7540
7541int
7542main ()
7543{
7544
7545  ;
7546  return 0;
7547}
7548_ACEOF
7549rm -f conftest.$ac_objext conftest$ac_exeext
7550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551  (eval $ac_link) 2>conftest.er1
7552  ac_status=$?
7553  grep -v '^ *+' conftest.er1 >conftest.err
7554  rm -f conftest.er1
7555  cat conftest.err >&5
7556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557  (exit $ac_status); } &&
7558	 { ac_try='test -z "$ac_c_werror_flag"
7559			 || test ! -s conftest.err'
7560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561  (eval $ac_try) 2>&5
7562  ac_status=$?
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); }; } &&
7565	 { ac_try='test -s conftest$ac_exeext'
7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567  (eval $ac_try) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }; }; then
7571
7572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7573}'`
7574# Check for a 64-bit object if we didn't find anything.
7575if 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; }
7576}'`; fi
7577else
7578  echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581fi
7582rm -f conftest.err conftest.$ac_objext \
7583      conftest$ac_exeext conftest.$ac_ext
7584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7585
7586	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7587	  # Warning - without using the other run time loading flags,
7588	  # -berok will link without error, but may produce a broken library.
7589	  no_undefined_flag=' ${wl}-bernotok'
7590	  allow_undefined_flag=' ${wl}-berok'
7591	  # -bexpall does not export symbols beginning with underscore (_)
7592	  always_export_symbols=yes
7593	  # Exported symbols can be pulled into shared objects from archives
7594	  whole_archive_flag_spec=' '
7595	  archive_cmds_need_lc=yes
7596	  # This is similar to how AIX traditionally builds its shared libraries.
7597	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7598	fi
7599      fi
7600      ;;
7601
7602    amigaos*)
7603      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)'
7604      hardcode_libdir_flag_spec='-L$libdir'
7605      hardcode_minus_L=yes
7606      # see comment about different semantics on the GNU ld section
7607      ld_shlibs=no
7608      ;;
7609
7610    bsdi[45]*)
7611      export_dynamic_flag_spec=-rdynamic
7612      ;;
7613
7614    cygwin* | mingw* | pw32*)
7615      # When not using gcc, we currently assume that we are using
7616      # Microsoft Visual C++.
7617      # hardcode_libdir_flag_spec is actually meaningless, as there is
7618      # no search path for DLLs.
7619      hardcode_libdir_flag_spec=' '
7620      allow_undefined_flag=unsupported
7621      # Tell ltmain to make .lib files, not .a files.
7622      libext=lib
7623      # Tell ltmain to make .dll files, not .so files.
7624      shrext_cmds=".dll"
7625      # FIXME: Setting linknames here is a bad hack.
7626      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7627      # The linker will automatically build a .lib file if we build a DLL.
7628      old_archive_From_new_cmds='true'
7629      # FIXME: Should let the user specify the lib program.
7630      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7631      fix_srcfile_path='`cygpath -w "$srcfile"`'
7632      enable_shared_with_static_runtimes=yes
7633      ;;
7634
7635    darwin* | rhapsody*)
7636      case $host_os in
7637        rhapsody* | darwin1.[012])
7638         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7639         ;;
7640       *) # Darwin 1.3 on
7641         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7642           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7643         else
7644           case ${MACOSX_DEPLOYMENT_TARGET} in
7645             10.[012])
7646               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7647               ;;
7648             10.*)
7649               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7650               ;;
7651           esac
7652         fi
7653         ;;
7654      esac
7655      archive_cmds_need_lc=no
7656      hardcode_direct=no
7657      hardcode_automatic=yes
7658      hardcode_shlibpath_var=unsupported
7659      whole_archive_flag_spec=''
7660      link_all_deplibs=yes
7661    if test "$GCC" = yes ; then
7662    	output_verbose_link_cmd='echo'
7663        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7664      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7665      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7666      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}'
7667      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}'
7668    else
7669      case $cc_basename in
7670        xlc*)
7671         output_verbose_link_cmd='echo'
7672         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7673         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7674          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7675         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}'
7676          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}'
7677          ;;
7678       *)
7679         ld_shlibs=no
7680          ;;
7681      esac
7682    fi
7683      ;;
7684
7685    dgux*)
7686      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687      hardcode_libdir_flag_spec='-L$libdir'
7688      hardcode_shlibpath_var=no
7689      ;;
7690
7691    freebsd1*)
7692      ld_shlibs=no
7693      ;;
7694
7695    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7696    # support.  Future versions do this automatically, but an explicit c++rt0.o
7697    # does not break anything, and helps significantly (at the cost of a little
7698    # extra space).
7699    freebsd2.2*)
7700      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7701      hardcode_libdir_flag_spec='-R$libdir'
7702      hardcode_direct=yes
7703      hardcode_shlibpath_var=no
7704      ;;
7705
7706    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7707    freebsd2*)
7708      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7709      hardcode_direct=yes
7710      hardcode_minus_L=yes
7711      hardcode_shlibpath_var=no
7712      ;;
7713
7714    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7715    freebsd* | kfreebsd*-gnu | dragonfly*)
7716      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7717      hardcode_libdir_flag_spec='-R$libdir'
7718      hardcode_direct=yes
7719      hardcode_shlibpath_var=no
7720      ;;
7721
7722    hpux9*)
7723      if test "$GCC" = yes; then
7724	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'
7725      else
7726	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'
7727      fi
7728      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7729      hardcode_libdir_separator=:
7730      hardcode_direct=yes
7731
7732      # hardcode_minus_L: Not really in the search PATH,
7733      # but as the default location of the library.
7734      hardcode_minus_L=yes
7735      export_dynamic_flag_spec='${wl}-E'
7736      ;;
7737
7738    hpux10* | hpux11*)
7739      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7740	case $host_cpu in
7741	hppa*64*|ia64*)
7742	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743	  ;;
7744	*)
7745	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7746	  ;;
7747	esac
7748      else
7749	case $host_cpu in
7750	hppa*64*|ia64*)
7751	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7752	  ;;
7753	*)
7754	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7755	  ;;
7756	esac
7757      fi
7758      if test "$with_gnu_ld" = no; then
7759	case $host_cpu in
7760	hppa*64*)
7761	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7762	  hardcode_libdir_flag_spec_ld='+b $libdir'
7763	  hardcode_libdir_separator=:
7764	  hardcode_direct=no
7765	  hardcode_shlibpath_var=no
7766	  ;;
7767	ia64*)
7768	  hardcode_libdir_flag_spec='-L$libdir'
7769	  hardcode_direct=no
7770	  hardcode_shlibpath_var=no
7771
7772	  # hardcode_minus_L: Not really in the search PATH,
7773	  # but as the default location of the library.
7774	  hardcode_minus_L=yes
7775	  ;;
7776	*)
7777	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7778	  hardcode_libdir_separator=:
7779	  hardcode_direct=yes
7780	  export_dynamic_flag_spec='${wl}-E'
7781
7782	  # hardcode_minus_L: Not really in the search PATH,
7783	  # but as the default location of the library.
7784	  hardcode_minus_L=yes
7785	  ;;
7786	esac
7787      fi
7788      ;;
7789
7790    irix5* | irix6* | nonstopux*)
7791      if test "$GCC" = yes; then
7792	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'
7793      else
7794	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'
7795	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7796      fi
7797      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7798      hardcode_libdir_separator=:
7799      link_all_deplibs=yes
7800      ;;
7801
7802    netbsd*)
7803      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7805      else
7806	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7807      fi
7808      hardcode_libdir_flag_spec='-R$libdir'
7809      hardcode_direct=yes
7810      hardcode_shlibpath_var=no
7811      ;;
7812
7813    newsos6)
7814      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7815      hardcode_direct=yes
7816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817      hardcode_libdir_separator=:
7818      hardcode_shlibpath_var=no
7819      ;;
7820
7821    openbsd*)
7822      hardcode_direct=yes
7823      hardcode_shlibpath_var=no
7824      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7825	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7826	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7827	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7828	export_dynamic_flag_spec='${wl}-E'
7829      else
7830       case $host_os in
7831	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7832	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7833	   hardcode_libdir_flag_spec='-R$libdir'
7834	   ;;
7835	 *)
7836	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7837	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7838	   ;;
7839       esac
7840      fi
7841      ;;
7842
7843    os2*)
7844      hardcode_libdir_flag_spec='-L$libdir'
7845      hardcode_minus_L=yes
7846      allow_undefined_flag=unsupported
7847      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'
7848      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7849      ;;
7850
7851    osf3*)
7852      if test "$GCC" = yes; then
7853	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7854	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'
7855      else
7856	allow_undefined_flag=' -expect_unresolved \*'
7857	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'
7858      fi
7859      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7860      hardcode_libdir_separator=:
7861      ;;
7862
7863    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7864      if test "$GCC" = yes; then
7865	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7866	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'
7867	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7868      else
7869	allow_undefined_flag=' -expect_unresolved \*'
7870	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'
7871	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7872	$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'
7873
7874	# Both c and cxx compiler support -rpath directly
7875	hardcode_libdir_flag_spec='-rpath $libdir'
7876      fi
7877      hardcode_libdir_separator=:
7878      ;;
7879
7880    sco3.2v5*)
7881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882      hardcode_shlibpath_var=no
7883      export_dynamic_flag_spec='${wl}-Bexport'
7884      runpath_var=LD_RUN_PATH
7885      hardcode_runpath_var=yes
7886      ;;
7887
7888    solaris*)
7889      no_undefined_flag=' -z text'
7890      if test "$GCC" = yes; then
7891	wlarc='${wl}'
7892	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7893	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7894	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7895      else
7896	wlarc=''
7897	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7898	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7899  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7900      fi
7901      hardcode_libdir_flag_spec='-R$libdir'
7902      hardcode_shlibpath_var=no
7903      case $host_os in
7904      solaris2.[0-5] | solaris2.[0-5].*) ;;
7905      *)
7906 	# The compiler driver will combine linker options so we
7907 	# cannot just pass the convience library names through
7908 	# without $wl, iff we do not link with $LD.
7909 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7910 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7911 	case $wlarc in
7912 	'')
7913 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7914 	*)
7915 	  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' ;;
7916 	esac ;;
7917      esac
7918      link_all_deplibs=yes
7919      ;;
7920
7921    sunos4*)
7922      if test "x$host_vendor" = xsequent; then
7923	# Use $CC to link under sequent, because it throws in some extra .o
7924	# files that make .init and .fini sections work.
7925	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7926      else
7927	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7928      fi
7929      hardcode_libdir_flag_spec='-L$libdir'
7930      hardcode_direct=yes
7931      hardcode_minus_L=yes
7932      hardcode_shlibpath_var=no
7933      ;;
7934
7935    sysv4)
7936      case $host_vendor in
7937	sni)
7938	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939	  hardcode_direct=yes # is this really true???
7940	;;
7941	siemens)
7942	  ## LD is ld it makes a PLAMLIB
7943	  ## CC just makes a GrossModule.
7944	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7945	  reload_cmds='$CC -r -o $output$reload_objs'
7946	  hardcode_direct=no
7947        ;;
7948	motorola)
7949	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7951	;;
7952      esac
7953      runpath_var='LD_RUN_PATH'
7954      hardcode_shlibpath_var=no
7955      ;;
7956
7957    sysv4.3*)
7958      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959      hardcode_shlibpath_var=no
7960      export_dynamic_flag_spec='-Bexport'
7961      ;;
7962
7963    sysv4*MP*)
7964      if test -d /usr/nec; then
7965	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966	hardcode_shlibpath_var=no
7967	runpath_var=LD_RUN_PATH
7968	hardcode_runpath_var=yes
7969	ld_shlibs=yes
7970      fi
7971      ;;
7972
7973    sysv4.2uw2*)
7974      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7975      hardcode_direct=yes
7976      hardcode_minus_L=no
7977      hardcode_shlibpath_var=no
7978      hardcode_runpath_var=yes
7979      runpath_var=LD_RUN_PATH
7980      ;;
7981
7982   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7983      no_undefined_flag='${wl}-z ${wl}text'
7984      if test "$GCC" = yes; then
7985	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986      else
7987	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7988      fi
7989      runpath_var='LD_RUN_PATH'
7990      hardcode_shlibpath_var=no
7991      ;;
7992
7993    sysv5*)
7994      no_undefined_flag=' -z text'
7995      # $CC -shared without GNU ld will not create a library from C++
7996      # object files and a static libstdc++, better avoid it by now
7997      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7999  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8000      hardcode_libdir_flag_spec=
8001      hardcode_shlibpath_var=no
8002      runpath_var='LD_RUN_PATH'
8003      ;;
8004
8005    uts4*)
8006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007      hardcode_libdir_flag_spec='-L$libdir'
8008      hardcode_shlibpath_var=no
8009      ;;
8010
8011    *)
8012      ld_shlibs=no
8013      ;;
8014    esac
8015  fi
8016
8017echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8018echo "${ECHO_T}$ld_shlibs" >&6
8019test "$ld_shlibs" = no && can_build_shared=no
8020
8021variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8022if test "$GCC" = yes; then
8023  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8024fi
8025
8026#
8027# Do we need to explicitly link libc?
8028#
8029case "x$archive_cmds_need_lc" in
8030x|xyes)
8031  # Assume -lc should be added
8032  archive_cmds_need_lc=yes
8033
8034  if test "$enable_shared" = yes && test "$GCC" = yes; then
8035    case $archive_cmds in
8036    *'~'*)
8037      # FIXME: we may have to deal with multi-command sequences.
8038      ;;
8039    '$CC '*)
8040      # Test whether the compiler implicitly links with -lc since on some
8041      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8042      # to ld, don't add -lc before -lgcc.
8043      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8044echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8045      $rm conftest*
8046      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8047
8048      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049  (eval $ac_compile) 2>&5
8050  ac_status=$?
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); } 2>conftest.err; then
8053        soname=conftest
8054        lib=conftest
8055        libobjs=conftest.$ac_objext
8056        deplibs=
8057        wl=$lt_prog_compiler_wl
8058        compiler_flags=-v
8059        linker_flags=-v
8060        verstring=
8061        output_objdir=.
8062        libname=conftest
8063        lt_save_allow_undefined_flag=$allow_undefined_flag
8064        allow_undefined_flag=
8065        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8066  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8067  ac_status=$?
8068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069  (exit $ac_status); }
8070        then
8071	  archive_cmds_need_lc=no
8072        else
8073	  archive_cmds_need_lc=yes
8074        fi
8075        allow_undefined_flag=$lt_save_allow_undefined_flag
8076      else
8077        cat conftest.err 1>&5
8078      fi
8079      $rm conftest*
8080      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8081echo "${ECHO_T}$archive_cmds_need_lc" >&6
8082      ;;
8083    esac
8084  fi
8085  ;;
8086esac
8087
8088echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8089echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8090library_names_spec=
8091libname_spec='lib$name'
8092soname_spec=
8093shrext_cmds=".so"
8094postinstall_cmds=
8095postuninstall_cmds=
8096finish_cmds=
8097finish_eval=
8098shlibpath_var=
8099shlibpath_overrides_runpath=unknown
8100version_type=none
8101dynamic_linker="$host_os ld.so"
8102sys_lib_dlsearch_path_spec="/lib /usr/lib"
8103if test "$GCC" = yes; then
8104  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8105  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8106    # if the path contains ";" then we assume it to be the separator
8107    # otherwise default to the standard path separator (i.e. ":") - it is
8108    # assumed that no part of a normal pathname contains ";" but that should
8109    # okay in the real world where ";" in dirpaths is itself problematic.
8110    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8111  else
8112    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8113  fi
8114else
8115  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8116fi
8117need_lib_prefix=unknown
8118hardcode_into_libs=no
8119
8120# when you set need_version to no, make sure it does not cause -set_version
8121# flags to be left without arguments
8122need_version=unknown
8123
8124case $host_os in
8125aix3*)
8126  version_type=linux
8127  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8128  shlibpath_var=LIBPATH
8129
8130  # AIX 3 has no versioning support, so we append a major version to the name.
8131  soname_spec='${libname}${release}${shared_ext}$major'
8132  ;;
8133
8134aix4* | aix5*)
8135  version_type=linux
8136  need_lib_prefix=no
8137  need_version=no
8138  hardcode_into_libs=yes
8139  if test "$host_cpu" = ia64; then
8140    # AIX 5 supports IA64
8141    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8142    shlibpath_var=LD_LIBRARY_PATH
8143  else
8144    # With GCC up to 2.95.x, collect2 would create an import file
8145    # for dependence libraries.  The import file would start with
8146    # the line `#! .'.  This would cause the generated library to
8147    # depend on `.', always an invalid library.  This was fixed in
8148    # development snapshots of GCC prior to 3.0.
8149    case $host_os in
8150      aix4 | aix4.[01] | aix4.[01].*)
8151      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8152	   echo ' yes '
8153	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8154	:
8155      else
8156	can_build_shared=no
8157      fi
8158      ;;
8159    esac
8160    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8161    # soname into executable. Probably we can add versioning support to
8162    # collect2, so additional links can be useful in future.
8163    if test "$aix_use_runtimelinking" = yes; then
8164      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8165      # instead of lib<name>.a to let people know that these are not
8166      # typical AIX shared libraries.
8167      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168    else
8169      # We preserve .a as extension for shared libraries through AIX4.2
8170      # and later when we are not doing run time linking.
8171      library_names_spec='${libname}${release}.a $libname.a'
8172      soname_spec='${libname}${release}${shared_ext}$major'
8173    fi
8174    shlibpath_var=LIBPATH
8175  fi
8176  ;;
8177
8178amigaos*)
8179  library_names_spec='$libname.ixlibrary $libname.a'
8180  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8181  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'
8182  ;;
8183
8184beos*)
8185  library_names_spec='${libname}${shared_ext}'
8186  dynamic_linker="$host_os ld.so"
8187  shlibpath_var=LIBRARY_PATH
8188  ;;
8189
8190bsdi[45]*)
8191  version_type=linux
8192  need_version=no
8193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194  soname_spec='${libname}${release}${shared_ext}$major'
8195  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8196  shlibpath_var=LD_LIBRARY_PATH
8197  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8198  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8199  # the default ld.so.conf also contains /usr/contrib/lib and
8200  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8201  # libtool to hard-code these into programs
8202  ;;
8203
8204cygwin* | mingw* | pw32*)
8205  version_type=windows
8206  shrext_cmds=".dll"
8207  need_version=no
8208  need_lib_prefix=no
8209
8210  case $GCC,$host_os in
8211  yes,cygwin* | yes,mingw* | yes,pw32*)
8212    library_names_spec='$libname.dll.a'
8213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8214    postinstall_cmds='base_file=`basename \${file}`~
8215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8216      dldir=$destdir/`dirname \$dlpath`~
8217      test -d \$dldir || mkdir -p \$dldir~
8218      $install_prog $dir/$dlname \$dldir/$dlname~
8219      chmod a+x \$dldir/$dlname'
8220    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8221      dlpath=$dir/\$dldll~
8222       $rm \$dlpath'
8223    shlibpath_overrides_runpath=yes
8224
8225    case $host_os in
8226    cygwin*)
8227      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8228      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8229      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8230      ;;
8231    mingw*)
8232      # MinGW DLLs use traditional 'lib' prefix
8233      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8234      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8235      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8236        # It is most probably a Windows format PATH printed by
8237        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8238        # path with ; separators, and with drive letters. We can handle the
8239        # drive letters (cygwin fileutils understands them), so leave them,
8240        # especially as we might pass files found there to a mingw objdump,
8241        # which wouldn't understand a cygwinified path. Ahh.
8242        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8243      else
8244        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8245      fi
8246      ;;
8247    pw32*)
8248      # pw32 DLLs use 'pw' prefix rather than 'lib'
8249      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8250      ;;
8251    esac
8252    ;;
8253
8254  *)
8255    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8256    ;;
8257  esac
8258  dynamic_linker='Win32 ld.exe'
8259  # FIXME: first we should search . and the directory the executable is in
8260  shlibpath_var=PATH
8261  ;;
8262
8263darwin* | rhapsody*)
8264  dynamic_linker="$host_os dyld"
8265  version_type=darwin
8266  need_lib_prefix=no
8267  need_version=no
8268  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8269  soname_spec='${libname}${release}${major}$shared_ext'
8270  shlibpath_overrides_runpath=yes
8271  shlibpath_var=DYLD_LIBRARY_PATH
8272  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8273  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8274  if test "$GCC" = yes; then
8275    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"`
8276  else
8277    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8278  fi
8279  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8280  ;;
8281
8282dgux*)
8283  version_type=linux
8284  need_lib_prefix=no
8285  need_version=no
8286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8287  soname_spec='${libname}${release}${shared_ext}$major'
8288  shlibpath_var=LD_LIBRARY_PATH
8289  ;;
8290
8291freebsd1*)
8292  dynamic_linker=no
8293  ;;
8294
8295haiku*)
8296  library_names_spec='${libname}${shared_ext}'
8297  dynamic_linker="$host_os ld.so"
8298  shlibpath_var=LIBRARY_PATH
8299  ;;
8300
8301kfreebsd*-gnu)
8302  version_type=linux
8303  need_lib_prefix=no
8304  need_version=no
8305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8306  soname_spec='${libname}${release}${shared_ext}$major'
8307  shlibpath_var=LD_LIBRARY_PATH
8308  shlibpath_overrides_runpath=no
8309  hardcode_into_libs=yes
8310  dynamic_linker='GNU ld.so'
8311  ;;
8312
8313freebsd* | dragonfly*)
8314  # DragonFly does not have aout.  When/if they implement a new
8315  # versioning mechanism, adjust this.
8316  if test -x /usr/bin/objformat; then
8317    objformat=`/usr/bin/objformat`
8318  else
8319    case $host_os in
8320    freebsd[123]*) objformat=aout ;;
8321    *) objformat=elf ;;
8322    esac
8323  fi
8324  version_type=freebsd-$objformat
8325  case $version_type in
8326    freebsd-elf*)
8327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8328      need_version=no
8329      need_lib_prefix=no
8330      ;;
8331    freebsd-*)
8332      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8333      need_version=yes
8334      ;;
8335  esac
8336  shlibpath_var=LD_LIBRARY_PATH
8337  case $host_os in
8338  freebsd2*)
8339    shlibpath_overrides_runpath=yes
8340    ;;
8341  freebsd3.[01]* | freebsdelf3.[01]*)
8342    shlibpath_overrides_runpath=yes
8343    hardcode_into_libs=yes
8344    ;;
8345  *) # from 3.2 on
8346    shlibpath_overrides_runpath=no
8347    hardcode_into_libs=yes
8348    ;;
8349  esac
8350  ;;
8351
8352gnu*)
8353  version_type=linux
8354  need_lib_prefix=no
8355  need_version=no
8356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8357  soname_spec='${libname}${release}${shared_ext}$major'
8358  shlibpath_var=LD_LIBRARY_PATH
8359  hardcode_into_libs=yes
8360  ;;
8361
8362hpux9* | hpux10* | hpux11*)
8363  # Give a soname corresponding to the major version so that dld.sl refuses to
8364  # link against other versions.
8365  version_type=sunos
8366  need_lib_prefix=no
8367  need_version=no
8368  case $host_cpu in
8369  ia64*)
8370    shrext_cmds='.so'
8371    hardcode_into_libs=yes
8372    dynamic_linker="$host_os dld.so"
8373    shlibpath_var=LD_LIBRARY_PATH
8374    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8375    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8376    soname_spec='${libname}${release}${shared_ext}$major'
8377    if test "X$HPUX_IA64_MODE" = X32; then
8378      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8379    else
8380      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8381    fi
8382    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8383    ;;
8384   hppa*64*)
8385     shrext_cmds='.sl'
8386     hardcode_into_libs=yes
8387     dynamic_linker="$host_os dld.sl"
8388     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391     soname_spec='${libname}${release}${shared_ext}$major'
8392     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8393     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8394     ;;
8395   *)
8396    shrext_cmds='.sl'
8397    dynamic_linker="$host_os dld.sl"
8398    shlibpath_var=SHLIB_PATH
8399    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8401    soname_spec='${libname}${release}${shared_ext}$major'
8402    ;;
8403  esac
8404  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8405  postinstall_cmds='chmod 555 $lib'
8406  ;;
8407
8408irix5* | irix6* | nonstopux*)
8409  case $host_os in
8410    nonstopux*) version_type=nonstopux ;;
8411    *)
8412	if test "$lt_cv_prog_gnu_ld" = yes; then
8413		version_type=linux
8414	else
8415		version_type=irix
8416	fi ;;
8417  esac
8418  need_lib_prefix=no
8419  need_version=no
8420  soname_spec='${libname}${release}${shared_ext}$major'
8421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8422  case $host_os in
8423  irix5* | nonstopux*)
8424    libsuff= shlibsuff=
8425    ;;
8426  *)
8427    case $LD in # libtool.m4 will add one of these switches to LD
8428    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8429      libsuff= shlibsuff= libmagic=32-bit;;
8430    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8431      libsuff=32 shlibsuff=N32 libmagic=N32;;
8432    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8433      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8434    *) libsuff= shlibsuff= libmagic=never-match;;
8435    esac
8436    ;;
8437  esac
8438  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8439  shlibpath_overrides_runpath=no
8440  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8441  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8442  hardcode_into_libs=yes
8443  ;;
8444
8445# No shared lib support for Linux oldld, aout, or coff.
8446linux*oldld* | linux*aout* | linux*coff*)
8447  dynamic_linker=no
8448  ;;
8449
8450# This must be Linux ELF.
8451linux*)
8452  version_type=linux
8453  need_lib_prefix=no
8454  need_version=no
8455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456  soname_spec='${libname}${release}${shared_ext}$major'
8457  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8458  shlibpath_var=LD_LIBRARY_PATH
8459  shlibpath_overrides_runpath=no
8460  # This implies no fast_install, which is unacceptable.
8461  # Some rework will be needed to allow for fast_install
8462  # before this can be enabled.
8463  hardcode_into_libs=yes
8464
8465  # Append ld.so.conf contents to the search path
8466  if test -f /etc/ld.so.conf; then
8467    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' ' '`
8468    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8469  fi
8470
8471  # We used to test for /lib/ld.so.1 and disable shared libraries on
8472  # powerpc, because MkLinux only supported shared libraries with the
8473  # GNU dynamic linker.  Since this was broken with cross compilers,
8474  # most powerpc-linux boxes support dynamic linking these days and
8475  # people can always --disable-shared, the test was removed, and we
8476  # assume the GNU/Linux dynamic linker is in use.
8477  dynamic_linker='GNU/Linux ld.so'
8478  ;;
8479
8480knetbsd*-gnu)
8481  version_type=linux
8482  need_lib_prefix=no
8483  need_version=no
8484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8485  soname_spec='${libname}${release}${shared_ext}$major'
8486  shlibpath_var=LD_LIBRARY_PATH
8487  shlibpath_overrides_runpath=no
8488  hardcode_into_libs=yes
8489  dynamic_linker='GNU ld.so'
8490  ;;
8491
8492netbsd*)
8493  version_type=sunos
8494  need_lib_prefix=no
8495  need_version=no
8496  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8498    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8499    dynamic_linker='NetBSD (a.out) ld.so'
8500  else
8501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8502    soname_spec='${libname}${release}${shared_ext}$major'
8503    dynamic_linker='NetBSD ld.elf_so'
8504  fi
8505  shlibpath_var=LD_LIBRARY_PATH
8506  shlibpath_overrides_runpath=yes
8507  hardcode_into_libs=yes
8508  ;;
8509
8510newsos6)
8511  version_type=linux
8512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513  shlibpath_var=LD_LIBRARY_PATH
8514  shlibpath_overrides_runpath=yes
8515  ;;
8516
8517nto-qnx*)
8518  version_type=linux
8519  need_lib_prefix=no
8520  need_version=no
8521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522  soname_spec='${libname}${release}${shared_ext}$major'
8523  shlibpath_var=LD_LIBRARY_PATH
8524  shlibpath_overrides_runpath=yes
8525  ;;
8526
8527openbsd*)
8528  version_type=sunos
8529  need_lib_prefix=no
8530  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8531  case $host_os in
8532    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8533    *)                         need_version=no  ;;
8534  esac
8535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8536  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8537  shlibpath_var=LD_LIBRARY_PATH
8538  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8539    case $host_os in
8540      openbsd2.[89] | openbsd2.[89].*)
8541	shlibpath_overrides_runpath=no
8542	;;
8543      *)
8544	shlibpath_overrides_runpath=yes
8545	;;
8546      esac
8547  else
8548    shlibpath_overrides_runpath=yes
8549  fi
8550  ;;
8551
8552os2*)
8553  libname_spec='$name'
8554  shrext_cmds=".dll"
8555  need_lib_prefix=no
8556  library_names_spec='$libname${shared_ext} $libname.a'
8557  dynamic_linker='OS/2 ld.exe'
8558  shlibpath_var=LIBPATH
8559  ;;
8560
8561osf3* | osf4* | osf5*)
8562  version_type=osf
8563  need_lib_prefix=no
8564  need_version=no
8565  soname_spec='${libname}${release}${shared_ext}$major'
8566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567  shlibpath_var=LD_LIBRARY_PATH
8568  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8569  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8570  ;;
8571
8572sco3.2v5*)
8573  version_type=osf
8574  soname_spec='${libname}${release}${shared_ext}$major'
8575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576  shlibpath_var=LD_LIBRARY_PATH
8577  ;;
8578
8579solaris*)
8580  version_type=linux
8581  need_lib_prefix=no
8582  need_version=no
8583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8584  soname_spec='${libname}${release}${shared_ext}$major'
8585  shlibpath_var=LD_LIBRARY_PATH
8586  shlibpath_overrides_runpath=yes
8587  hardcode_into_libs=yes
8588  # ldd complains unless libraries are executable
8589  postinstall_cmds='chmod +x $lib'
8590  ;;
8591
8592sunos4*)
8593  version_type=sunos
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8595  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8596  shlibpath_var=LD_LIBRARY_PATH
8597  shlibpath_overrides_runpath=yes
8598  if test "$with_gnu_ld" = yes; then
8599    need_lib_prefix=no
8600  fi
8601  need_version=yes
8602  ;;
8603
8604sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8605  version_type=linux
8606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607  soname_spec='${libname}${release}${shared_ext}$major'
8608  shlibpath_var=LD_LIBRARY_PATH
8609  case $host_vendor in
8610    sni)
8611      shlibpath_overrides_runpath=no
8612      need_lib_prefix=no
8613      export_dynamic_flag_spec='${wl}-Blargedynsym'
8614      runpath_var=LD_RUN_PATH
8615      ;;
8616    siemens)
8617      need_lib_prefix=no
8618      ;;
8619    motorola)
8620      need_lib_prefix=no
8621      need_version=no
8622      shlibpath_overrides_runpath=no
8623      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8624      ;;
8625  esac
8626  ;;
8627
8628sysv4*MP*)
8629  if test -d /usr/nec ;then
8630    version_type=linux
8631    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8632    soname_spec='$libname${shared_ext}.$major'
8633    shlibpath_var=LD_LIBRARY_PATH
8634  fi
8635  ;;
8636
8637uts4*)
8638  version_type=linux
8639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640  soname_spec='${libname}${release}${shared_ext}$major'
8641  shlibpath_var=LD_LIBRARY_PATH
8642  ;;
8643
8644*)
8645  dynamic_linker=no
8646  ;;
8647esac
8648echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8649echo "${ECHO_T}$dynamic_linker" >&6
8650test "$dynamic_linker" = no && can_build_shared=no
8651
8652echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8653echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8654hardcode_action=
8655if test -n "$hardcode_libdir_flag_spec" || \
8656   test -n "$runpath_var" || \
8657   test "X$hardcode_automatic" = "Xyes" ; then
8658
8659  # We can hardcode non-existant directories.
8660  if test "$hardcode_direct" != no &&
8661     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8662     # have to relink, otherwise we might link with an installed library
8663     # when we should be linking with a yet-to-be-installed one
8664     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8665     test "$hardcode_minus_L" != no; then
8666    # Linking always hardcodes the temporary library directory.
8667    hardcode_action=relink
8668  else
8669    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8670    hardcode_action=immediate
8671  fi
8672else
8673  # We cannot hardcode anything, or else we can only hardcode existing
8674  # directories.
8675  hardcode_action=unsupported
8676fi
8677echo "$as_me:$LINENO: result: $hardcode_action" >&5
8678echo "${ECHO_T}$hardcode_action" >&6
8679
8680if test "$hardcode_action" = relink; then
8681  # Fast installation is not supported
8682  enable_fast_install=no
8683elif test "$shlibpath_overrides_runpath" = yes ||
8684     test "$enable_shared" = no; then
8685  # Fast installation is not necessary
8686  enable_fast_install=needless
8687fi
8688
8689striplib=
8690old_striplib=
8691echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8692echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8693if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8694  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8695  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8696  echo "$as_me:$LINENO: result: yes" >&5
8697echo "${ECHO_T}yes" >&6
8698else
8699# FIXME - insert some real tests, host_os isn't really good enough
8700  case $host_os in
8701   darwin*)
8702       if test -n "$STRIP" ; then
8703         striplib="$STRIP -x"
8704         echo "$as_me:$LINENO: result: yes" >&5
8705echo "${ECHO_T}yes" >&6
8706       else
8707  echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6
8709fi
8710       ;;
8711   *)
8712  echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
8714    ;;
8715  esac
8716fi
8717
8718if test "x$enable_dlopen" != xyes; then
8719  enable_dlopen=unknown
8720  enable_dlopen_self=unknown
8721  enable_dlopen_self_static=unknown
8722else
8723  lt_cv_dlopen=no
8724  lt_cv_dlopen_libs=
8725
8726  case $host_os in
8727  beos*)
8728    lt_cv_dlopen="load_add_on"
8729    lt_cv_dlopen_libs=
8730    lt_cv_dlopen_self=yes
8731    ;;
8732
8733  mingw* | pw32*)
8734    lt_cv_dlopen="LoadLibrary"
8735    lt_cv_dlopen_libs=
8736   ;;
8737
8738  cygwin*)
8739    lt_cv_dlopen="dlopen"
8740    lt_cv_dlopen_libs=
8741   ;;
8742
8743  darwin*)
8744  # if libdl is installed we need to link against it
8745    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8746echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8747if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8748  echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750  ac_check_lib_save_LIBS=$LIBS
8751LIBS="-ldl  $LIBS"
8752cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h.  */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h.  */
8758
8759/* Override any gcc2 internal prototype to avoid an error.  */
8760#ifdef __cplusplus
8761extern "C"
8762#endif
8763/* We use char because int might match the return type of a gcc2
8764   builtin and then its argument prototype would still apply.  */
8765char dlopen ();
8766int
8767main ()
8768{
8769dlopen ();
8770  ;
8771  return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776  (eval $ac_link) 2>conftest.er1
8777  ac_status=$?
8778  grep -v '^ *+' conftest.er1 >conftest.err
8779  rm -f conftest.er1
8780  cat conftest.err >&5
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); } &&
8783	 { ac_try='test -z "$ac_c_werror_flag"
8784			 || test ! -s conftest.err'
8785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786  (eval $ac_try) 2>&5
8787  ac_status=$?
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); }; } &&
8790	 { ac_try='test -s conftest$ac_exeext'
8791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792  (eval $ac_try) 2>&5
8793  ac_status=$?
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); }; }; then
8796  ac_cv_lib_dl_dlopen=yes
8797else
8798  echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801ac_cv_lib_dl_dlopen=no
8802fi
8803rm -f conftest.err conftest.$ac_objext \
8804      conftest$ac_exeext conftest.$ac_ext
8805LIBS=$ac_check_lib_save_LIBS
8806fi
8807echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8808echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8809if test $ac_cv_lib_dl_dlopen = yes; then
8810  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8811else
8812
8813    lt_cv_dlopen="dyld"
8814    lt_cv_dlopen_libs=
8815    lt_cv_dlopen_self=yes
8816
8817fi
8818
8819   ;;
8820
8821  haiku*)
8822    lt_cv_dlopen="load_add_on"
8823    lt_cv_dlopen_libs=
8824    lt_cv_dlopen_self=yes
8825    ;;
8826
8827  *)
8828    echo "$as_me:$LINENO: checking for shl_load" >&5
8829echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8830if test "${ac_cv_func_shl_load+set}" = set; then
8831  echo $ECHO_N "(cached) $ECHO_C" >&6
8832else
8833  cat >conftest.$ac_ext <<_ACEOF
8834/* confdefs.h.  */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
8838/* end confdefs.h.  */
8839/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8841#define shl_load innocuous_shl_load
8842
8843/* System header to define __stub macros and hopefully few prototypes,
8844    which can conflict with char shl_load (); below.
8845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8846    <limits.h> exists even on freestanding compilers.  */
8847
8848#ifdef __STDC__
8849# include <limits.h>
8850#else
8851# include <assert.h>
8852#endif
8853
8854#undef shl_load
8855
8856/* Override any gcc2 internal prototype to avoid an error.  */
8857#ifdef __cplusplus
8858extern "C"
8859{
8860#endif
8861/* We use char because int might match the return type of a gcc2
8862   builtin and then its argument prototype would still apply.  */
8863char shl_load ();
8864/* The GNU C library defines this for functions which it implements
8865    to always fail with ENOSYS.  Some functions are actually named
8866    something starting with __ and the normal name is an alias.  */
8867#if defined (__stub_shl_load) || defined (__stub___shl_load)
8868choke me
8869#else
8870char (*f) () = shl_load;
8871#endif
8872#ifdef __cplusplus
8873}
8874#endif
8875
8876int
8877main ()
8878{
8879return f != shl_load;
8880  ;
8881  return 0;
8882}
8883_ACEOF
8884rm -f conftest.$ac_objext conftest$ac_exeext
8885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886  (eval $ac_link) 2>conftest.er1
8887  ac_status=$?
8888  grep -v '^ *+' conftest.er1 >conftest.err
8889  rm -f conftest.er1
8890  cat conftest.err >&5
8891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892  (exit $ac_status); } &&
8893	 { ac_try='test -z "$ac_c_werror_flag"
8894			 || test ! -s conftest.err'
8895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896  (eval $ac_try) 2>&5
8897  ac_status=$?
8898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899  (exit $ac_status); }; } &&
8900	 { ac_try='test -s conftest$ac_exeext'
8901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902  (eval $ac_try) 2>&5
8903  ac_status=$?
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); }; }; then
8906  ac_cv_func_shl_load=yes
8907else
8908  echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8910
8911ac_cv_func_shl_load=no
8912fi
8913rm -f conftest.err conftest.$ac_objext \
8914      conftest$ac_exeext conftest.$ac_ext
8915fi
8916echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8917echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8918if test $ac_cv_func_shl_load = yes; then
8919  lt_cv_dlopen="shl_load"
8920else
8921  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8922echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8923if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8924  echo $ECHO_N "(cached) $ECHO_C" >&6
8925else
8926  ac_check_lib_save_LIBS=$LIBS
8927LIBS="-ldld  $LIBS"
8928cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h.  */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h.  */
8934
8935/* Override any gcc2 internal prototype to avoid an error.  */
8936#ifdef __cplusplus
8937extern "C"
8938#endif
8939/* We use char because int might match the return type of a gcc2
8940   builtin and then its argument prototype would still apply.  */
8941char shl_load ();
8942int
8943main ()
8944{
8945shl_load ();
8946  ;
8947  return 0;
8948}
8949_ACEOF
8950rm -f conftest.$ac_objext conftest$ac_exeext
8951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952  (eval $ac_link) 2>conftest.er1
8953  ac_status=$?
8954  grep -v '^ *+' conftest.er1 >conftest.err
8955  rm -f conftest.er1
8956  cat conftest.err >&5
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); } &&
8959	 { ac_try='test -z "$ac_c_werror_flag"
8960			 || test ! -s conftest.err'
8961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962  (eval $ac_try) 2>&5
8963  ac_status=$?
8964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965  (exit $ac_status); }; } &&
8966	 { ac_try='test -s conftest$ac_exeext'
8967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968  (eval $ac_try) 2>&5
8969  ac_status=$?
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); }; }; then
8972  ac_cv_lib_dld_shl_load=yes
8973else
8974  echo "$as_me: failed program was:" >&5
8975sed 's/^/| /' conftest.$ac_ext >&5
8976
8977ac_cv_lib_dld_shl_load=no
8978fi
8979rm -f conftest.err conftest.$ac_objext \
8980      conftest$ac_exeext conftest.$ac_ext
8981LIBS=$ac_check_lib_save_LIBS
8982fi
8983echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8984echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8985if test $ac_cv_lib_dld_shl_load = yes; then
8986  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8987else
8988  echo "$as_me:$LINENO: checking for dlopen" >&5
8989echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8990if test "${ac_cv_func_dlopen+set}" = set; then
8991  echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993  cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h.  */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h.  */
8999/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9001#define dlopen innocuous_dlopen
9002
9003/* System header to define __stub macros and hopefully few prototypes,
9004    which can conflict with char dlopen (); below.
9005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9006    <limits.h> exists even on freestanding compilers.  */
9007
9008#ifdef __STDC__
9009# include <limits.h>
9010#else
9011# include <assert.h>
9012#endif
9013
9014#undef dlopen
9015
9016/* Override any gcc2 internal prototype to avoid an error.  */
9017#ifdef __cplusplus
9018extern "C"
9019{
9020#endif
9021/* We use char because int might match the return type of a gcc2
9022   builtin and then its argument prototype would still apply.  */
9023char dlopen ();
9024/* The GNU C library defines this for functions which it implements
9025    to always fail with ENOSYS.  Some functions are actually named
9026    something starting with __ and the normal name is an alias.  */
9027#if defined (__stub_dlopen) || defined (__stub___dlopen)
9028choke me
9029#else
9030char (*f) () = dlopen;
9031#endif
9032#ifdef __cplusplus
9033}
9034#endif
9035
9036int
9037main ()
9038{
9039return f != dlopen;
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044rm -f conftest.$ac_objext conftest$ac_exeext
9045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046  (eval $ac_link) 2>conftest.er1
9047  ac_status=$?
9048  grep -v '^ *+' conftest.er1 >conftest.err
9049  rm -f conftest.er1
9050  cat conftest.err >&5
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); } &&
9053	 { ac_try='test -z "$ac_c_werror_flag"
9054			 || test ! -s conftest.err'
9055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056  (eval $ac_try) 2>&5
9057  ac_status=$?
9058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059  (exit $ac_status); }; } &&
9060	 { ac_try='test -s conftest$ac_exeext'
9061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062  (eval $ac_try) 2>&5
9063  ac_status=$?
9064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); }; }; then
9066  ac_cv_func_dlopen=yes
9067else
9068  echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071ac_cv_func_dlopen=no
9072fi
9073rm -f conftest.err conftest.$ac_objext \
9074      conftest$ac_exeext conftest.$ac_ext
9075fi
9076echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9077echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9078if test $ac_cv_func_dlopen = yes; then
9079  lt_cv_dlopen="dlopen"
9080else
9081  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9082echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9083if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9084  echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086  ac_check_lib_save_LIBS=$LIBS
9087LIBS="-ldl  $LIBS"
9088cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h.  */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h.  */
9094
9095/* Override any gcc2 internal prototype to avoid an error.  */
9096#ifdef __cplusplus
9097extern "C"
9098#endif
9099/* We use char because int might match the return type of a gcc2
9100   builtin and then its argument prototype would still apply.  */
9101char dlopen ();
9102int
9103main ()
9104{
9105dlopen ();
9106  ;
9107  return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112  (eval $ac_link) 2>conftest.er1
9113  ac_status=$?
9114  grep -v '^ *+' conftest.er1 >conftest.err
9115  rm -f conftest.er1
9116  cat conftest.err >&5
9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118  (exit $ac_status); } &&
9119	 { ac_try='test -z "$ac_c_werror_flag"
9120			 || test ! -s conftest.err'
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); }; } &&
9126	 { ac_try='test -s conftest$ac_exeext'
9127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128  (eval $ac_try) 2>&5
9129  ac_status=$?
9130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); }; }; then
9132  ac_cv_lib_dl_dlopen=yes
9133else
9134  echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137ac_cv_lib_dl_dlopen=no
9138fi
9139rm -f conftest.err conftest.$ac_objext \
9140      conftest$ac_exeext conftest.$ac_ext
9141LIBS=$ac_check_lib_save_LIBS
9142fi
9143echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9144echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9145if test $ac_cv_lib_dl_dlopen = yes; then
9146  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9147else
9148  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9149echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9150if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9151  echo $ECHO_N "(cached) $ECHO_C" >&6
9152else
9153  ac_check_lib_save_LIBS=$LIBS
9154LIBS="-lsvld  $LIBS"
9155cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h.  */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h.  */
9161
9162/* Override any gcc2 internal prototype to avoid an error.  */
9163#ifdef __cplusplus
9164extern "C"
9165#endif
9166/* We use char because int might match the return type of a gcc2
9167   builtin and then its argument prototype would still apply.  */
9168char dlopen ();
9169int
9170main ()
9171{
9172dlopen ();
9173  ;
9174  return 0;
9175}
9176_ACEOF
9177rm -f conftest.$ac_objext conftest$ac_exeext
9178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179  (eval $ac_link) 2>conftest.er1
9180  ac_status=$?
9181  grep -v '^ *+' conftest.er1 >conftest.err
9182  rm -f conftest.er1
9183  cat conftest.err >&5
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); } &&
9186	 { ac_try='test -z "$ac_c_werror_flag"
9187			 || test ! -s conftest.err'
9188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189  (eval $ac_try) 2>&5
9190  ac_status=$?
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); }; } &&
9193	 { ac_try='test -s conftest$ac_exeext'
9194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195  (eval $ac_try) 2>&5
9196  ac_status=$?
9197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); }; }; then
9199  ac_cv_lib_svld_dlopen=yes
9200else
9201  echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
9203
9204ac_cv_lib_svld_dlopen=no
9205fi
9206rm -f conftest.err conftest.$ac_objext \
9207      conftest$ac_exeext conftest.$ac_ext
9208LIBS=$ac_check_lib_save_LIBS
9209fi
9210echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9211echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9212if test $ac_cv_lib_svld_dlopen = yes; then
9213  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9214else
9215  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9216echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9217if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9218  echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220  ac_check_lib_save_LIBS=$LIBS
9221LIBS="-ldld  $LIBS"
9222cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h.  */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h.  */
9228
9229/* Override any gcc2 internal prototype to avoid an error.  */
9230#ifdef __cplusplus
9231extern "C"
9232#endif
9233/* We use char because int might match the return type of a gcc2
9234   builtin and then its argument prototype would still apply.  */
9235char dld_link ();
9236int
9237main ()
9238{
9239dld_link ();
9240  ;
9241  return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext conftest$ac_exeext
9245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246  (eval $ac_link) 2>conftest.er1
9247  ac_status=$?
9248  grep -v '^ *+' conftest.er1 >conftest.err
9249  rm -f conftest.er1
9250  cat conftest.err >&5
9251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252  (exit $ac_status); } &&
9253	 { ac_try='test -z "$ac_c_werror_flag"
9254			 || test ! -s conftest.err'
9255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256  (eval $ac_try) 2>&5
9257  ac_status=$?
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); }; } &&
9260	 { ac_try='test -s conftest$ac_exeext'
9261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262  (eval $ac_try) 2>&5
9263  ac_status=$?
9264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265  (exit $ac_status); }; }; then
9266  ac_cv_lib_dld_dld_link=yes
9267else
9268  echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271ac_cv_lib_dld_dld_link=no
9272fi
9273rm -f conftest.err conftest.$ac_objext \
9274      conftest$ac_exeext conftest.$ac_ext
9275LIBS=$ac_check_lib_save_LIBS
9276fi
9277echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9278echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9279if test $ac_cv_lib_dld_dld_link = yes; then
9280  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9281fi
9282
9283
9284fi
9285
9286
9287fi
9288
9289
9290fi
9291
9292
9293fi
9294
9295
9296fi
9297
9298    ;;
9299  esac
9300
9301  if test "x$lt_cv_dlopen" != xno; then
9302    enable_dlopen=yes
9303  else
9304    enable_dlopen=no
9305  fi
9306
9307  case $lt_cv_dlopen in
9308  dlopen)
9309    save_CPPFLAGS="$CPPFLAGS"
9310    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9311
9312    save_LDFLAGS="$LDFLAGS"
9313    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9314
9315    save_LIBS="$LIBS"
9316    LIBS="$lt_cv_dlopen_libs $LIBS"
9317
9318    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9319echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9320if test "${lt_cv_dlopen_self+set}" = set; then
9321  echo $ECHO_N "(cached) $ECHO_C" >&6
9322else
9323  	  if test "$cross_compiling" = yes; then :
9324  lt_cv_dlopen_self=cross
9325else
9326  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9327  lt_status=$lt_dlunknown
9328  cat > conftest.$ac_ext <<EOF
9329#line 9329 "configure"
9330#include "confdefs.h"
9331
9332#if HAVE_DLFCN_H
9333#include <dlfcn.h>
9334#endif
9335
9336#include <stdio.h>
9337
9338#ifdef RTLD_GLOBAL
9339#  define LT_DLGLOBAL		RTLD_GLOBAL
9340#else
9341#  ifdef DL_GLOBAL
9342#    define LT_DLGLOBAL		DL_GLOBAL
9343#  else
9344#    define LT_DLGLOBAL		0
9345#  endif
9346#endif
9347
9348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9349   find out it does not work in some platform. */
9350#ifndef LT_DLLAZY_OR_NOW
9351#  ifdef RTLD_LAZY
9352#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9353#  else
9354#    ifdef DL_LAZY
9355#      define LT_DLLAZY_OR_NOW		DL_LAZY
9356#    else
9357#      ifdef RTLD_NOW
9358#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9359#      else
9360#        ifdef DL_NOW
9361#          define LT_DLLAZY_OR_NOW	DL_NOW
9362#        else
9363#          define LT_DLLAZY_OR_NOW	0
9364#        endif
9365#      endif
9366#    endif
9367#  endif
9368#endif
9369
9370#ifdef __cplusplus
9371extern "C" void exit (int);
9372#endif
9373
9374void fnord() { int i=42;}
9375int main ()
9376{
9377  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9378  int status = $lt_dlunknown;
9379
9380  if (self)
9381    {
9382      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9383      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9384      /* dlclose (self); */
9385    }
9386
9387    exit (status);
9388}
9389EOF
9390  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391  (eval $ac_link) 2>&5
9392  ac_status=$?
9393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9395    (./conftest; exit; ) >&5 2>/dev/null
9396    lt_status=$?
9397    case x$lt_status in
9398      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9399      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9400      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9401    esac
9402  else :
9403    # compilation failed
9404    lt_cv_dlopen_self=no
9405  fi
9406fi
9407rm -fr conftest*
9408
9409
9410fi
9411echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9412echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9413
9414    if test "x$lt_cv_dlopen_self" = xyes; then
9415      LDFLAGS="$LDFLAGS $link_static_flag"
9416      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9417echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9418if test "${lt_cv_dlopen_self_static+set}" = set; then
9419  echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421  	  if test "$cross_compiling" = yes; then :
9422  lt_cv_dlopen_self_static=cross
9423else
9424  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9425  lt_status=$lt_dlunknown
9426  cat > conftest.$ac_ext <<EOF
9427#line 9427 "configure"
9428#include "confdefs.h"
9429
9430#if HAVE_DLFCN_H
9431#include <dlfcn.h>
9432#endif
9433
9434#include <stdio.h>
9435
9436#ifdef RTLD_GLOBAL
9437#  define LT_DLGLOBAL		RTLD_GLOBAL
9438#else
9439#  ifdef DL_GLOBAL
9440#    define LT_DLGLOBAL		DL_GLOBAL
9441#  else
9442#    define LT_DLGLOBAL		0
9443#  endif
9444#endif
9445
9446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9447   find out it does not work in some platform. */
9448#ifndef LT_DLLAZY_OR_NOW
9449#  ifdef RTLD_LAZY
9450#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9451#  else
9452#    ifdef DL_LAZY
9453#      define LT_DLLAZY_OR_NOW		DL_LAZY
9454#    else
9455#      ifdef RTLD_NOW
9456#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9457#      else
9458#        ifdef DL_NOW
9459#          define LT_DLLAZY_OR_NOW	DL_NOW
9460#        else
9461#          define LT_DLLAZY_OR_NOW	0
9462#        endif
9463#      endif
9464#    endif
9465#  endif
9466#endif
9467
9468#ifdef __cplusplus
9469extern "C" void exit (int);
9470#endif
9471
9472void fnord() { int i=42;}
9473int main ()
9474{
9475  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9476  int status = $lt_dlunknown;
9477
9478  if (self)
9479    {
9480      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9481      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9482      /* dlclose (self); */
9483    }
9484
9485    exit (status);
9486}
9487EOF
9488  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489  (eval $ac_link) 2>&5
9490  ac_status=$?
9491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9493    (./conftest; exit; ) >&5 2>/dev/null
9494    lt_status=$?
9495    case x$lt_status in
9496      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9497      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9498      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9499    esac
9500  else :
9501    # compilation failed
9502    lt_cv_dlopen_self_static=no
9503  fi
9504fi
9505rm -fr conftest*
9506
9507
9508fi
9509echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9510echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9511    fi
9512
9513    CPPFLAGS="$save_CPPFLAGS"
9514    LDFLAGS="$save_LDFLAGS"
9515    LIBS="$save_LIBS"
9516    ;;
9517  esac
9518
9519  case $lt_cv_dlopen_self in
9520  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9521  *) enable_dlopen_self=unknown ;;
9522  esac
9523
9524  case $lt_cv_dlopen_self_static in
9525  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9526  *) enable_dlopen_self_static=unknown ;;
9527  esac
9528fi
9529
9530
9531# Report which librarie types wil actually be built
9532echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9533echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9534echo "$as_me:$LINENO: result: $can_build_shared" >&5
9535echo "${ECHO_T}$can_build_shared" >&6
9536
9537echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9538echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9539test "$can_build_shared" = "no" && enable_shared=no
9540
9541# On AIX, shared libraries and static libraries use the same namespace, and
9542# are all built from PIC.
9543case $host_os in
9544aix3*)
9545  test "$enable_shared" = yes && enable_static=no
9546  if test -n "$RANLIB"; then
9547    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9548    postinstall_cmds='$RANLIB $lib'
9549  fi
9550  ;;
9551
9552aix4* | aix5*)
9553  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9554    test "$enable_shared" = yes && enable_static=no
9555  fi
9556    ;;
9557esac
9558echo "$as_me:$LINENO: result: $enable_shared" >&5
9559echo "${ECHO_T}$enable_shared" >&6
9560
9561echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9562echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9563# Make sure either enable_shared or enable_static is yes.
9564test "$enable_shared" = yes || enable_static=yes
9565echo "$as_me:$LINENO: result: $enable_static" >&5
9566echo "${ECHO_T}$enable_static" >&6
9567
9568# The else clause should only fire when bootstrapping the
9569# libtool distribution, otherwise you forgot to ship ltmain.sh
9570# with your package, and you will get complaints that there are
9571# no rules to generate ltmain.sh.
9572if test -f "$ltmain"; then
9573  # See if we are running on zsh, and set the options which allow our commands through
9574  # without removal of \ escapes.
9575  if test -n "${ZSH_VERSION+set}" ; then
9576    setopt NO_GLOB_SUBST
9577  fi
9578  # Now quote all the things that may contain metacharacters while being
9579  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9580  # variables and quote the copies for generation of the libtool script.
9581  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9582    SED SHELL STRIP \
9583    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9584    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9585    deplibs_check_method reload_flag reload_cmds need_locks \
9586    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9587    lt_cv_sys_global_symbol_to_c_name_address \
9588    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9589    old_postinstall_cmds old_postuninstall_cmds \
9590    compiler \
9591    CC \
9592    LD \
9593    lt_prog_compiler_wl \
9594    lt_prog_compiler_pic \
9595    lt_prog_compiler_static \
9596    lt_prog_compiler_no_builtin_flag \
9597    export_dynamic_flag_spec \
9598    thread_safe_flag_spec \
9599    whole_archive_flag_spec \
9600    enable_shared_with_static_runtimes \
9601    old_archive_cmds \
9602    old_archive_from_new_cmds \
9603    predep_objects \
9604    postdep_objects \
9605    predeps \
9606    postdeps \
9607    compiler_lib_search_path \
9608    archive_cmds \
9609    archive_expsym_cmds \
9610    postinstall_cmds \
9611    postuninstall_cmds \
9612    old_archive_from_expsyms_cmds \
9613    allow_undefined_flag \
9614    no_undefined_flag \
9615    export_symbols_cmds \
9616    hardcode_libdir_flag_spec \
9617    hardcode_libdir_flag_spec_ld \
9618    hardcode_libdir_separator \
9619    hardcode_automatic \
9620    module_cmds \
9621    module_expsym_cmds \
9622    lt_cv_prog_compiler_c_o \
9623    exclude_expsyms \
9624    include_expsyms; do
9625
9626    case $var in
9627    old_archive_cmds | \
9628    old_archive_from_new_cmds | \
9629    archive_cmds | \
9630    archive_expsym_cmds | \
9631    module_cmds | \
9632    module_expsym_cmds | \
9633    old_archive_from_expsyms_cmds | \
9634    export_symbols_cmds | \
9635    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9636    postinstall_cmds | postuninstall_cmds | \
9637    old_postinstall_cmds | old_postuninstall_cmds | \
9638    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9639      # Double-quote double-evaled strings.
9640      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9641      ;;
9642    *)
9643      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9644      ;;
9645    esac
9646  done
9647
9648  case $lt_echo in
9649  *'\$0 --fallback-echo"')
9650    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9651    ;;
9652  esac
9653
9654cfgfile="${ofile}T"
9655  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9656  $rm -f "$cfgfile"
9657  { echo "$as_me:$LINENO: creating $ofile" >&5
9658echo "$as_me: creating $ofile" >&6;}
9659
9660  cat <<__EOF__ >> "$cfgfile"
9661#! $SHELL
9662
9663# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9664# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9665# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9666#
9667# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9668# Free Software Foundation, Inc.
9669#
9670# This file is part of GNU Libtool:
9671# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9672#
9673# This program is free software; you can redistribute it and/or modify
9674# it under the terms of the GNU General Public License as published by
9675# the Free Software Foundation; either version 2 of the License, or
9676# (at your option) any later version.
9677#
9678# This program is distributed in the hope that it will be useful, but
9679# WITHOUT ANY WARRANTY; without even the implied warranty of
9680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9681# General Public License for more details.
9682#
9683# You should have received a copy of the GNU General Public License
9684# along with this program; if not, write to the Free Software
9685# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9686#
9687# As a special exception to the GNU General Public License, if you
9688# distribute this file as part of a program that contains a
9689# configuration script generated by Autoconf, you may include it under
9690# the same distribution terms that you use for the rest of that program.
9691
9692# A sed program that does not truncate output.
9693SED=$lt_SED
9694
9695# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9696Xsed="$SED -e 1s/^X//"
9697
9698# The HP-UX ksh and POSIX shell print the target directory to stdout
9699# if CDPATH is set.
9700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9701
9702# The names of the tagged configurations supported by this script.
9703available_tags=
9704
9705# ### BEGIN LIBTOOL CONFIG
9706
9707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9708
9709# Shell to use when invoking shell scripts.
9710SHELL=$lt_SHELL
9711
9712# Whether or not to build shared libraries.
9713build_libtool_libs=$enable_shared
9714
9715# Whether or not to build static libraries.
9716build_old_libs=$enable_static
9717
9718# Whether or not to add -lc for building shared libraries.
9719build_libtool_need_lc=$archive_cmds_need_lc
9720
9721# Whether or not to disallow shared libs when runtime libs are static
9722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9723
9724# Whether or not to optimize for fast installation.
9725fast_install=$enable_fast_install
9726
9727# The host system.
9728host_alias=$host_alias
9729host=$host
9730host_os=$host_os
9731
9732# The build system.
9733build_alias=$build_alias
9734build=$build
9735build_os=$build_os
9736
9737# An echo program that does not interpret backslashes.
9738echo=$lt_echo
9739
9740# The archiver.
9741AR=$lt_AR
9742AR_FLAGS=$lt_AR_FLAGS
9743
9744# A C compiler.
9745LTCC=$lt_LTCC
9746
9747# A language-specific compiler.
9748CC=$lt_compiler
9749
9750# Is the compiler the GNU C compiler?
9751with_gcc=$GCC
9752
9753# An ERE matcher.
9754EGREP=$lt_EGREP
9755
9756# The linker used to build libraries.
9757LD=$lt_LD
9758
9759# Whether we need hard or soft links.
9760LN_S=$lt_LN_S
9761
9762# A BSD-compatible nm program.
9763NM=$lt_NM
9764
9765# A symbol stripping program
9766STRIP=$lt_STRIP
9767
9768# Used to examine libraries when file_magic_cmd begins "file"
9769MAGIC_CMD=$MAGIC_CMD
9770
9771# Used on cygwin: DLL creation program.
9772DLLTOOL="$DLLTOOL"
9773
9774# Used on cygwin: object dumper.
9775OBJDUMP="$OBJDUMP"
9776
9777# Used on cygwin: assembler.
9778AS="$AS"
9779
9780# The name of the directory that contains temporary libtool files.
9781objdir=$objdir
9782
9783# How to create reloadable object files.
9784reload_flag=$lt_reload_flag
9785reload_cmds=$lt_reload_cmds
9786
9787# How to pass a linker flag through the compiler.
9788wl=$lt_lt_prog_compiler_wl
9789
9790# Object file suffix (normally "o").
9791objext="$ac_objext"
9792
9793# Old archive suffix (normally "a").
9794libext="$libext"
9795
9796# Shared library suffix (normally ".so").
9797shrext_cmds='$shrext_cmds'
9798
9799# Executable file suffix (normally "").
9800exeext="$exeext"
9801
9802# Additional compiler flags for building library objects.
9803pic_flag=$lt_lt_prog_compiler_pic
9804pic_mode=$pic_mode
9805
9806# What is the maximum length of a command?
9807max_cmd_len=$lt_cv_sys_max_cmd_len
9808
9809# Does compiler simultaneously support -c and -o options?
9810compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9811
9812# Must we lock files when doing compilation?
9813need_locks=$lt_need_locks
9814
9815# Do we need the lib prefix for modules?
9816need_lib_prefix=$need_lib_prefix
9817
9818# Do we need a version for libraries?
9819need_version=$need_version
9820
9821# Whether dlopen is supported.
9822dlopen_support=$enable_dlopen
9823
9824# Whether dlopen of programs is supported.
9825dlopen_self=$enable_dlopen_self
9826
9827# Whether dlopen of statically linked programs is supported.
9828dlopen_self_static=$enable_dlopen_self_static
9829
9830# Compiler flag to prevent dynamic linking.
9831link_static_flag=$lt_lt_prog_compiler_static
9832
9833# Compiler flag to turn off builtin functions.
9834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9835
9836# Compiler flag to allow reflexive dlopens.
9837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9838
9839# Compiler flag to generate shared objects directly from archives.
9840whole_archive_flag_spec=$lt_whole_archive_flag_spec
9841
9842# Compiler flag to generate thread-safe objects.
9843thread_safe_flag_spec=$lt_thread_safe_flag_spec
9844
9845# Library versioning type.
9846version_type=$version_type
9847
9848# Format of library name prefix.
9849libname_spec=$lt_libname_spec
9850
9851# List of archive names.  First name is the real one, the rest are links.
9852# The last name is the one that the linker finds with -lNAME.
9853library_names_spec=$lt_library_names_spec
9854
9855# The coded name of the library, if different from the real name.
9856soname_spec=$lt_soname_spec
9857
9858# Commands used to build and install an old-style archive.
9859RANLIB=$lt_RANLIB
9860old_archive_cmds=$lt_old_archive_cmds
9861old_postinstall_cmds=$lt_old_postinstall_cmds
9862old_postuninstall_cmds=$lt_old_postuninstall_cmds
9863
9864# Create an old-style archive from a shared archive.
9865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9866
9867# Create a temporary old-style archive to link instead of a shared archive.
9868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9869
9870# Commands used to build and install a shared archive.
9871archive_cmds=$lt_archive_cmds
9872archive_expsym_cmds=$lt_archive_expsym_cmds
9873postinstall_cmds=$lt_postinstall_cmds
9874postuninstall_cmds=$lt_postuninstall_cmds
9875
9876# Commands used to build a loadable module (assumed same as above if empty)
9877module_cmds=$lt_module_cmds
9878module_expsym_cmds=$lt_module_expsym_cmds
9879
9880# Commands to strip libraries.
9881old_striplib=$lt_old_striplib
9882striplib=$lt_striplib
9883
9884# Dependencies to place before the objects being linked to create a
9885# shared library.
9886predep_objects=$lt_predep_objects
9887
9888# Dependencies to place after the objects being linked to create a
9889# shared library.
9890postdep_objects=$lt_postdep_objects
9891
9892# Dependencies to place before the objects being linked to create a
9893# shared library.
9894predeps=$lt_predeps
9895
9896# Dependencies to place after the objects being linked to create a
9897# shared library.
9898postdeps=$lt_postdeps
9899
9900# The library search path used internally by the compiler when linking
9901# a shared library.
9902compiler_lib_search_path=$lt_compiler_lib_search_path
9903
9904# Method to check whether dependent libraries are shared objects.
9905deplibs_check_method=$lt_deplibs_check_method
9906
9907# Command to use when deplibs_check_method == file_magic.
9908file_magic_cmd=$lt_file_magic_cmd
9909
9910# Flag that allows shared libraries with undefined symbols to be built.
9911allow_undefined_flag=$lt_allow_undefined_flag
9912
9913# Flag that forces no undefined symbols.
9914no_undefined_flag=$lt_no_undefined_flag
9915
9916# Commands used to finish a libtool library installation in a directory.
9917finish_cmds=$lt_finish_cmds
9918
9919# Same as above, but a single script fragment to be evaled but not shown.
9920finish_eval=$lt_finish_eval
9921
9922# Take the output of nm and produce a listing of raw symbols and C names.
9923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9924
9925# Transform the output of nm in a proper C declaration
9926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9927
9928# Transform the output of nm in a C name address pair
9929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9930
9931# This is the shared library runtime path variable.
9932runpath_var=$runpath_var
9933
9934# This is the shared library path variable.
9935shlibpath_var=$shlibpath_var
9936
9937# Is shlibpath searched before the hard-coded library search path?
9938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9939
9940# How to hardcode a shared library path into an executable.
9941hardcode_action=$hardcode_action
9942
9943# Whether we should hardcode library paths into libraries.
9944hardcode_into_libs=$hardcode_into_libs
9945
9946# Flag to hardcode \$libdir into a binary during linking.
9947# This must work even if \$libdir does not exist.
9948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9949
9950# If ld is used when linking, flag to hardcode \$libdir into
9951# a binary during linking. This must work even if \$libdir does
9952# not exist.
9953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9954
9955# Whether we need a single -rpath flag with a separated argument.
9956hardcode_libdir_separator=$lt_hardcode_libdir_separator
9957
9958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9959# resulting binary.
9960hardcode_direct=$hardcode_direct
9961
9962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9963# resulting binary.
9964hardcode_minus_L=$hardcode_minus_L
9965
9966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9967# the resulting binary.
9968hardcode_shlibpath_var=$hardcode_shlibpath_var
9969
9970# Set to yes if building a shared library automatically hardcodes DIR into the library
9971# and all subsequent libraries and executables linked against it.
9972hardcode_automatic=$hardcode_automatic
9973
9974# Variables whose values should be saved in libtool wrapper scripts and
9975# restored at relink time.
9976variables_saved_for_relink="$variables_saved_for_relink"
9977
9978# Whether libtool must link a program against all its dependency libraries.
9979link_all_deplibs=$link_all_deplibs
9980
9981# Compile-time system search path for libraries
9982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9983
9984# Run-time system search path for libraries
9985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9986
9987# Fix the shell variable \$srcfile for the compiler.
9988fix_srcfile_path="$fix_srcfile_path"
9989
9990# Set to yes if exported symbols are required.
9991always_export_symbols=$always_export_symbols
9992
9993# The commands to list exported symbols.
9994export_symbols_cmds=$lt_export_symbols_cmds
9995
9996# The commands to extract the exported symbol list from a shared archive.
9997extract_expsyms_cmds=$lt_extract_expsyms_cmds
9998
9999# Symbols that should not be listed in the preloaded symbols.
10000exclude_expsyms=$lt_exclude_expsyms
10001
10002# Symbols that must always be exported.
10003include_expsyms=$lt_include_expsyms
10004
10005# ### END LIBTOOL CONFIG
10006
10007__EOF__
10008
10009
10010  case $host_os in
10011  aix3*)
10012    cat <<\EOF >> "$cfgfile"
10013
10014# AIX sometimes has problems with the GCC collect2 program.  For some
10015# reason, if we set the COLLECT_NAMES environment variable, the problems
10016# vanish in a puff of smoke.
10017if test "X${COLLECT_NAMES+set}" != Xset; then
10018  COLLECT_NAMES=
10019  export COLLECT_NAMES
10020fi
10021EOF
10022    ;;
10023  esac
10024
10025  # We use sed instead of cat because bash on DJGPP gets confused if
10026  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10027  # text mode, it properly converts lines to CR/LF.  This bash problem
10028  # is reportedly fixed, but why not run on old versions too?
10029  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10030
10031  mv -f "$cfgfile" "$ofile" || \
10032    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10033  chmod +x "$ofile"
10034
10035else
10036  # If there is no Makefile yet, we rely on a make rule to execute
10037  # `config.status --recheck' to rerun these tests and create the
10038  # libtool script then.
10039  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10040  if test -f "$ltmain_in"; then
10041    test -f Makefile && make "$ltmain"
10042  fi
10043fi
10044
10045
10046ac_ext=cc
10047ac_cpp='$CXXCPP $CPPFLAGS'
10048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10051
10052CC="$lt_save_CC"
10053
10054
10055# Check whether --with-tags or --without-tags was given.
10056if test "${with_tags+set}" = set; then
10057  withval="$with_tags"
10058  tagnames="$withval"
10059fi;
10060
10061if test -f "$ltmain" && test -n "$tagnames"; then
10062  if test ! -f "${ofile}"; then
10063    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10064echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10065  fi
10066
10067  if test -z "$LTCC"; then
10068    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10069    if test -z "$LTCC"; then
10070      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10071echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10072    else
10073      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10074echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10075    fi
10076  fi
10077
10078  # Extract list of available tagged configurations in $ofile.
10079  # Note that this assumes the entire list is on one line.
10080  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10081
10082  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10083  for tagname in $tagnames; do
10084    IFS="$lt_save_ifs"
10085    # Check whether tagname contains only valid characters
10086    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10087    "") ;;
10088    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10089echo "$as_me: error: invalid tag name: $tagname" >&2;}
10090   { (exit 1); exit 1; }; }
10091	;;
10092    esac
10093
10094    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10095    then
10096      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10097echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10098   { (exit 1); exit 1; }; }
10099    fi
10100
10101    # Update the list of available tags.
10102    if test -n "$tagname"; then
10103      echo appending configuration tag \"$tagname\" to $ofile
10104
10105      case $tagname in
10106      CXX)
10107	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10108	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10109	    (test "X$CXX" != "Xg++"))) ; then
10110	  ac_ext=cc
10111ac_cpp='$CXXCPP $CPPFLAGS'
10112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10115
10116
10117
10118
10119archive_cmds_need_lc_CXX=no
10120allow_undefined_flag_CXX=
10121always_export_symbols_CXX=no
10122archive_expsym_cmds_CXX=
10123export_dynamic_flag_spec_CXX=
10124hardcode_direct_CXX=no
10125hardcode_libdir_flag_spec_CXX=
10126hardcode_libdir_flag_spec_ld_CXX=
10127hardcode_libdir_separator_CXX=
10128hardcode_minus_L_CXX=no
10129hardcode_automatic_CXX=no
10130module_cmds_CXX=
10131module_expsym_cmds_CXX=
10132link_all_deplibs_CXX=unknown
10133old_archive_cmds_CXX=$old_archive_cmds
10134no_undefined_flag_CXX=
10135whole_archive_flag_spec_CXX=
10136enable_shared_with_static_runtimes_CXX=no
10137
10138# Dependencies to place before and after the object being linked:
10139predep_objects_CXX=
10140postdep_objects_CXX=
10141predeps_CXX=
10142postdeps_CXX=
10143compiler_lib_search_path_CXX=
10144
10145# Source file extension for C++ test sources.
10146ac_ext=cpp
10147
10148# Object file extension for compiled C++ test sources.
10149objext=o
10150objext_CXX=$objext
10151
10152# Code to be used in simple compile tests
10153lt_simple_compile_test_code="int some_variable = 0;\n"
10154
10155# Code to be used in simple link tests
10156lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10157
10158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10159
10160# If no C compiler was specified, use CC.
10161LTCC=${LTCC-"$CC"}
10162
10163# Allow CC to be a program name with arguments.
10164compiler=$CC
10165
10166
10167# save warnings/boilerplate of simple test code
10168ac_outfile=conftest.$ac_objext
10169printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10170eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10171_lt_compiler_boilerplate=`cat conftest.err`
10172$rm conftest*
10173
10174ac_outfile=conftest.$ac_objext
10175printf "$lt_simple_link_test_code" >conftest.$ac_ext
10176eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10177_lt_linker_boilerplate=`cat conftest.err`
10178$rm conftest*
10179
10180
10181# Allow CC to be a program name with arguments.
10182lt_save_CC=$CC
10183lt_save_LD=$LD
10184lt_save_GCC=$GCC
10185GCC=$GXX
10186lt_save_with_gnu_ld=$with_gnu_ld
10187lt_save_path_LD=$lt_cv_path_LD
10188if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10189  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10190else
10191  unset lt_cv_prog_gnu_ld
10192fi
10193if test -n "${lt_cv_path_LDCXX+set}"; then
10194  lt_cv_path_LD=$lt_cv_path_LDCXX
10195else
10196  unset lt_cv_path_LD
10197fi
10198test -z "${LDCXX+set}" || LD=$LDCXX
10199CC=${CXX-"c++"}
10200compiler=$CC
10201compiler_CXX=$CC
10202for cc_temp in $compiler""; do
10203  case $cc_temp in
10204    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10205    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10206    \-*) ;;
10207    *) break;;
10208  esac
10209done
10210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10211
10212
10213# We don't want -fno-exception wen compiling C++ code, so set the
10214# no_builtin_flag separately
10215if test "$GXX" = yes; then
10216  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10217else
10218  lt_prog_compiler_no_builtin_flag_CXX=
10219fi
10220
10221if test "$GXX" = yes; then
10222  # Set up default GNU C++ configuration
10223
10224
10225# Check whether --with-gnu-ld or --without-gnu-ld was given.
10226if test "${with_gnu_ld+set}" = set; then
10227  withval="$with_gnu_ld"
10228  test "$withval" = no || with_gnu_ld=yes
10229else
10230  with_gnu_ld=no
10231fi;
10232ac_prog=ld
10233if test "$GCC" = yes; then
10234  # Check if gcc -print-prog-name=ld gives a path.
10235  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10236echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10237  case $host in
10238  *-*-mingw*)
10239    # gcc leaves a trailing carriage return which upsets mingw
10240    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10241  *)
10242    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10243  esac
10244  case $ac_prog in
10245    # Accept absolute paths.
10246    [\\/]* | ?:[\\/]*)
10247      re_direlt='/[^/][^/]*/\.\./'
10248      # Canonicalize the pathname of ld
10249      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10250      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10251	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10252      done
10253      test -z "$LD" && LD="$ac_prog"
10254      ;;
10255  "")
10256    # If it fails, then pretend we aren't using GCC.
10257    ac_prog=ld
10258    ;;
10259  *)
10260    # If it is relative, then search for the first ld in PATH.
10261    with_gnu_ld=unknown
10262    ;;
10263  esac
10264elif test "$with_gnu_ld" = yes; then
10265  echo "$as_me:$LINENO: checking for GNU ld" >&5
10266echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10267else
10268  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10269echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10270fi
10271if test "${lt_cv_path_LD+set}" = set; then
10272  echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274  if test -z "$LD"; then
10275  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10276  for ac_dir in $PATH; do
10277    IFS="$lt_save_ifs"
10278    test -z "$ac_dir" && ac_dir=.
10279    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10280      lt_cv_path_LD="$ac_dir/$ac_prog"
10281      # Check to see if the program is GNU ld.  I'd rather use --version,
10282      # but apparently some variants of GNU ld only accept -v.
10283      # Break only if it was the GNU/non-GNU ld that we prefer.
10284      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10285      *GNU* | *'with BFD'*)
10286	test "$with_gnu_ld" != no && break
10287	;;
10288      *)
10289	test "$with_gnu_ld" != yes && break
10290	;;
10291      esac
10292    fi
10293  done
10294  IFS="$lt_save_ifs"
10295else
10296  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10297fi
10298fi
10299
10300LD="$lt_cv_path_LD"
10301if test -n "$LD"; then
10302  echo "$as_me:$LINENO: result: $LD" >&5
10303echo "${ECHO_T}$LD" >&6
10304else
10305  echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
10307fi
10308test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10309echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10310   { (exit 1); exit 1; }; }
10311echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10312echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10313if test "${lt_cv_prog_gnu_ld+set}" = set; then
10314  echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10317case `$LD -v 2>&1 </dev/null` in
10318*GNU* | *'with BFD'*)
10319  lt_cv_prog_gnu_ld=yes
10320  ;;
10321*)
10322  lt_cv_prog_gnu_ld=no
10323  ;;
10324esac
10325fi
10326echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10327echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10328with_gnu_ld=$lt_cv_prog_gnu_ld
10329
10330
10331
10332  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10333  # archiving commands below assume that GNU ld is being used.
10334  if test "$with_gnu_ld" = yes; then
10335    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336    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'
10337
10338    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10339    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10340
10341    # If archive_cmds runs LD, not CC, wlarc should be empty
10342    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10343    #     investigate it a little bit more. (MM)
10344    wlarc='${wl}'
10345
10346    # ancient GNU ld didn't support --whole-archive et. al.
10347    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10348	grep 'no-whole-archive' > /dev/null; then
10349      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10350    else
10351      whole_archive_flag_spec_CXX=
10352    fi
10353  else
10354    with_gnu_ld=no
10355    wlarc=
10356
10357    # A generic and very simple default shared library creation
10358    # command for GNU C++ for the case where it uses the native
10359    # linker, instead of GNU ld.  If possible, this setting should
10360    # overridden to take advantage of the native linker features on
10361    # the platform it is being used on.
10362    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10363  fi
10364
10365  # Commands to make compiler produce verbose output that lists
10366  # what "hidden" libraries, object files and flags are used when
10367  # linking a shared library.
10368  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10369
10370else
10371  GXX=no
10372  with_gnu_ld=no
10373  wlarc=
10374fi
10375
10376# PORTME: fill in a description of your system's C++ link characteristics
10377echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10378echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10379ld_shlibs_CXX=yes
10380case $host_os in
10381  aix3*)
10382    # FIXME: insert proper C++ library support
10383    ld_shlibs_CXX=no
10384    ;;
10385  aix4* | aix5*)
10386    if test "$host_cpu" = ia64; then
10387      # On IA64, the linker does run time linking by default, so we don't
10388      # have to do anything special.
10389      aix_use_runtimelinking=no
10390      exp_sym_flag='-Bexport'
10391      no_entry_flag=""
10392    else
10393      aix_use_runtimelinking=no
10394
10395      # Test if we are trying to use run time linking or normal
10396      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10397      # need to do runtime linking.
10398      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10399	for ld_flag in $LDFLAGS; do
10400	  case $ld_flag in
10401	  *-brtl*)
10402	    aix_use_runtimelinking=yes
10403	    break
10404	    ;;
10405	  esac
10406	done
10407      esac
10408
10409      exp_sym_flag='-bexport'
10410      no_entry_flag='-bnoentry'
10411    fi
10412
10413    # When large executables or shared objects are built, AIX ld can
10414    # have problems creating the table of contents.  If linking a library
10415    # or program results in "error TOC overflow" add -mminimal-toc to
10416    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10417    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10418
10419    archive_cmds_CXX=''
10420    hardcode_direct_CXX=yes
10421    hardcode_libdir_separator_CXX=':'
10422    link_all_deplibs_CXX=yes
10423
10424    if test "$GXX" = yes; then
10425      case $host_os in aix4.[012]|aix4.[012].*)
10426      # We only want to do this on AIX 4.2 and lower, the check
10427      # below for broken collect2 doesn't work under 4.3+
10428	collect2name=`${CC} -print-prog-name=collect2`
10429	if test -f "$collect2name" && \
10430	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10431	then
10432	  # We have reworked collect2
10433	  hardcode_direct_CXX=yes
10434	else
10435	  # We have old collect2
10436	  hardcode_direct_CXX=unsupported
10437	  # It fails to find uninstalled libraries when the uninstalled
10438	  # path is not listed in the libpath.  Setting hardcode_minus_L
10439	  # to unsupported forces relinking
10440	  hardcode_minus_L_CXX=yes
10441	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10442	  hardcode_libdir_separator_CXX=
10443	fi
10444      esac
10445      shared_flag='-shared'
10446      if test "$aix_use_runtimelinking" = yes; then
10447	shared_flag="$shared_flag "'${wl}-G'
10448      fi
10449    else
10450      # not using gcc
10451      if test "$host_cpu" = ia64; then
10452	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10453	# chokes on -Wl,-G. The following line is correct:
10454	shared_flag='-G'
10455      else
10456	if test "$aix_use_runtimelinking" = yes; then
10457	  shared_flag='${wl}-G'
10458	else
10459	  shared_flag='${wl}-bM:SRE'
10460	fi
10461      fi
10462    fi
10463
10464    # It seems that -bexpall does not export symbols beginning with
10465    # underscore (_), so it is better to generate a list of symbols to export.
10466    always_export_symbols_CXX=yes
10467    if test "$aix_use_runtimelinking" = yes; then
10468      # Warning - without using the other runtime loading flags (-brtl),
10469      # -berok will link without error, but may produce a broken library.
10470      allow_undefined_flag_CXX='-berok'
10471      # Determine the default libpath from the value encoded in an empty executable.
10472      cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h.  */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h.  */
10478
10479int
10480main ()
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487rm -f conftest.$ac_objext conftest$ac_exeext
10488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489  (eval $ac_link) 2>conftest.er1
10490  ac_status=$?
10491  grep -v '^ *+' conftest.er1 >conftest.err
10492  rm -f conftest.er1
10493  cat conftest.err >&5
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); } &&
10496	 { ac_try='test -z "$ac_cxx_werror_flag"
10497			 || test ! -s conftest.err'
10498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499  (eval $ac_try) 2>&5
10500  ac_status=$?
10501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502  (exit $ac_status); }; } &&
10503	 { ac_try='test -s conftest$ac_exeext'
10504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505  (eval $ac_try) 2>&5
10506  ac_status=$?
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); }; }; then
10509
10510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10511}'`
10512# Check for a 64-bit object if we didn't find anything.
10513if 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; }
10514}'`; fi
10515else
10516  echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519fi
10520rm -f conftest.err conftest.$ac_objext \
10521      conftest$ac_exeext conftest.$ac_ext
10522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10523
10524      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10525
10526      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10527     else
10528      if test "$host_cpu" = ia64; then
10529	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10530	allow_undefined_flag_CXX="-z nodefs"
10531	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10532      else
10533	# Determine the default libpath from the value encoded in an empty executable.
10534	cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h.  */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h.  */
10540
10541int
10542main ()
10543{
10544
10545  ;
10546  return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551  (eval $ac_link) 2>conftest.er1
10552  ac_status=$?
10553  grep -v '^ *+' conftest.er1 >conftest.err
10554  rm -f conftest.er1
10555  cat conftest.err >&5
10556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557  (exit $ac_status); } &&
10558	 { ac_try='test -z "$ac_cxx_werror_flag"
10559			 || test ! -s conftest.err'
10560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561  (eval $ac_try) 2>&5
10562  ac_status=$?
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); }; } &&
10565	 { ac_try='test -s conftest$ac_exeext'
10566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567  (eval $ac_try) 2>&5
10568  ac_status=$?
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); }; }; then
10571
10572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10573}'`
10574# Check for a 64-bit object if we didn't find anything.
10575if 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; }
10576}'`; fi
10577else
10578  echo "$as_me: failed program was:" >&5
10579sed 's/^/| /' conftest.$ac_ext >&5
10580
10581fi
10582rm -f conftest.err conftest.$ac_objext \
10583      conftest$ac_exeext conftest.$ac_ext
10584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10585
10586	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10587	# Warning - without using the other run time loading flags,
10588	# -berok will link without error, but may produce a broken library.
10589	no_undefined_flag_CXX=' ${wl}-bernotok'
10590	allow_undefined_flag_CXX=' ${wl}-berok'
10591	# -bexpall does not export symbols beginning with underscore (_)
10592	always_export_symbols_CXX=yes
10593	# Exported symbols can be pulled into shared objects from archives
10594	whole_archive_flag_spec_CXX=' '
10595	archive_cmds_need_lc_CXX=yes
10596	# This is similar to how AIX traditionally builds its shared libraries.
10597	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10598      fi
10599    fi
10600    ;;
10601  chorus*)
10602    case $cc_basename in
10603      *)
10604	# FIXME: insert proper C++ library support
10605	ld_shlibs_CXX=no
10606	;;
10607    esac
10608    ;;
10609
10610
10611  cygwin* | mingw* | pw32*)
10612    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10613    # as there is no search path for DLLs.
10614    hardcode_libdir_flag_spec_CXX='-L$libdir'
10615    allow_undefined_flag_CXX=unsupported
10616    always_export_symbols_CXX=no
10617    enable_shared_with_static_runtimes_CXX=yes
10618
10619    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10620      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10621      # If the export-symbols file already is a .def file (1st line
10622      # is EXPORTS), use it as is; otherwise, prepend...
10623      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10624	cp $export_symbols $output_objdir/$soname.def;
10625      else
10626	echo EXPORTS > $output_objdir/$soname.def;
10627	cat $export_symbols >> $output_objdir/$soname.def;
10628      fi~
10629      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10630    else
10631      ld_shlibs_CXX=no
10632    fi
10633  ;;
10634      darwin* | rhapsody*)
10635        case $host_os in
10636        rhapsody* | darwin1.[012])
10637         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10638         ;;
10639       *) # Darwin 1.3 on
10640         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10641           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10642         else
10643           case ${MACOSX_DEPLOYMENT_TARGET} in
10644             10.[012])
10645               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10646               ;;
10647             10.*)
10648               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10649               ;;
10650           esac
10651         fi
10652         ;;
10653        esac
10654      archive_cmds_need_lc_CXX=no
10655      hardcode_direct_CXX=no
10656      hardcode_automatic_CXX=yes
10657      hardcode_shlibpath_var_CXX=unsupported
10658      whole_archive_flag_spec_CXX=''
10659      link_all_deplibs_CXX=yes
10660
10661    if test "$GXX" = yes ; then
10662      lt_int_apple_cc_single_mod=no
10663      output_verbose_link_cmd='echo'
10664      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10665       lt_int_apple_cc_single_mod=yes
10666      fi
10667      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10668       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10669      else
10670          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'
10671        fi
10672        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10673        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10674          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10675            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}'
10676          else
10677            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}'
10678          fi
10679            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}'
10680      else
10681      case $cc_basename in
10682        xlc*)
10683         output_verbose_link_cmd='echo'
10684          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'
10685          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10686          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10687          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}'
10688          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}'
10689          ;;
10690       *)
10691         ld_shlibs_CXX=no
10692          ;;
10693      esac
10694      fi
10695        ;;
10696
10697  dgux*)
10698    case $cc_basename in
10699      ec++*)
10700	# FIXME: insert proper C++ library support
10701	ld_shlibs_CXX=no
10702	;;
10703      ghcx*)
10704	# Green Hills C++ Compiler
10705	# FIXME: insert proper C++ library support
10706	ld_shlibs_CXX=no
10707	;;
10708      *)
10709	# FIXME: insert proper C++ library support
10710	ld_shlibs_CXX=no
10711	;;
10712    esac
10713    ;;
10714  freebsd[12]*)
10715    # C++ shared libraries reported to be fairly broken before switch to ELF
10716    ld_shlibs_CXX=no
10717    ;;
10718  freebsd-elf*)
10719    archive_cmds_need_lc_CXX=no
10720    ;;
10721  freebsd* | kfreebsd*-gnu | dragonfly*)
10722    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10723    # conventions
10724    ld_shlibs_CXX=yes
10725    ;;
10726  gnu*)
10727    ;;
10728  hpux9*)
10729    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10730    hardcode_libdir_separator_CXX=:
10731    export_dynamic_flag_spec_CXX='${wl}-E'
10732    hardcode_direct_CXX=yes
10733    hardcode_minus_L_CXX=yes # Not in the search PATH,
10734				# but as the default
10735				# location of the library.
10736
10737    case $cc_basename in
10738    CC*)
10739      # FIXME: insert proper C++ library support
10740      ld_shlibs_CXX=no
10741      ;;
10742    aCC*)
10743      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'
10744      # Commands to make compiler produce verbose output that lists
10745      # what "hidden" libraries, object files and flags are used when
10746      # linking a shared library.
10747      #
10748      # There doesn't appear to be a way to prevent this compiler from
10749      # explicitly linking system object files so we need to strip them
10750      # from the output so that they don't get included in the library
10751      # dependencies.
10752      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'
10753      ;;
10754    *)
10755      if test "$GXX" = yes; then
10756        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'
10757      else
10758        # FIXME: insert proper C++ library support
10759        ld_shlibs_CXX=no
10760      fi
10761      ;;
10762    esac
10763    ;;
10764  hpux10*|hpux11*)
10765    if test $with_gnu_ld = no; then
10766      case $host_cpu in
10767      hppa*64*)
10768	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10769	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10770	hardcode_libdir_separator_CXX=:
10771        ;;
10772      ia64*)
10773	hardcode_libdir_flag_spec_CXX='-L$libdir'
10774        ;;
10775      *)
10776	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10777	hardcode_libdir_separator_CXX=:
10778	export_dynamic_flag_spec_CXX='${wl}-E'
10779        ;;
10780      esac
10781    fi
10782    case $host_cpu in
10783    hppa*64*)
10784      hardcode_direct_CXX=no
10785      hardcode_shlibpath_var_CXX=no
10786      ;;
10787    ia64*)
10788      hardcode_direct_CXX=no
10789      hardcode_shlibpath_var_CXX=no
10790      hardcode_minus_L_CXX=yes # Not in the search PATH,
10791					      # but as the default
10792					      # location of the library.
10793      ;;
10794    *)
10795      hardcode_direct_CXX=yes
10796      hardcode_minus_L_CXX=yes # Not in the search PATH,
10797					      # but as the default
10798					      # location of the library.
10799      ;;
10800    esac
10801
10802    case $cc_basename in
10803      CC*)
10804	# FIXME: insert proper C++ library support
10805	ld_shlibs_CXX=no
10806	;;
10807      aCC*)
10808	case $host_cpu in
10809	hppa*64*|ia64*)
10810	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10811	  ;;
10812	*)
10813	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10814	  ;;
10815	esac
10816	# Commands to make compiler produce verbose output that lists
10817	# what "hidden" libraries, object files and flags are used when
10818	# linking a shared library.
10819	#
10820	# There doesn't appear to be a way to prevent this compiler from
10821	# explicitly linking system object files so we need to strip them
10822	# from the output so that they don't get included in the library
10823	# dependencies.
10824	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'
10825	;;
10826      *)
10827	if test "$GXX" = yes; then
10828	  if test $with_gnu_ld = no; then
10829	    case $host_cpu in
10830	    ia64*|hppa*64*)
10831	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10832	      ;;
10833	    *)
10834	      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'
10835	      ;;
10836	    esac
10837	  fi
10838	else
10839	  # FIXME: insert proper C++ library support
10840	  ld_shlibs_CXX=no
10841	fi
10842	;;
10843    esac
10844    ;;
10845  irix5* | irix6*)
10846    case $cc_basename in
10847      CC*)
10848	# SGI C++
10849	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'
10850
10851	# Archives containing C++ object files must be created using
10852	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10853	# necessary to make sure instantiated templates are included
10854	# in the archive.
10855	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10856	;;
10857      *)
10858	if test "$GXX" = yes; then
10859	  if test "$with_gnu_ld" = no; then
10860	    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'
10861	  else
10862	    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'
10863	  fi
10864	fi
10865	link_all_deplibs_CXX=yes
10866	;;
10867    esac
10868    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10869    hardcode_libdir_separator_CXX=:
10870    ;;
10871  linux*)
10872    case $cc_basename in
10873      KCC*)
10874	# Kuck and Associates, Inc. (KAI) C++ Compiler
10875
10876	# KCC will only create a shared library if the output file
10877	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10878	# to its proper name (with version) after linking.
10879	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'
10880	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'
10881	# Commands to make compiler produce verbose output that lists
10882	# what "hidden" libraries, object files and flags are used when
10883	# linking a shared library.
10884	#
10885	# There doesn't appear to be a way to prevent this compiler from
10886	# explicitly linking system object files so we need to strip them
10887	# from the output so that they don't get included in the library
10888	# dependencies.
10889	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'
10890
10891	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10892	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10893
10894	# Archives containing C++ object files must be created using
10895	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10896	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10897	;;
10898      icpc*)
10899	# Intel C++
10900	with_gnu_ld=yes
10901	# version 8.0 and above of icpc choke on multiply defined symbols
10902	# if we add $predep_objects and $postdep_objects, however 7.1 and
10903	# earlier do not add the objects themselves.
10904	case `$CC -V 2>&1` in
10905	*"Version 7."*)
10906  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907  	  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'
10908	  ;;
10909	*)  # Version 8.0 or newer
10910	  tmp_idyn=
10911	  case $host_cpu in
10912	    ia64*) tmp_idyn=' -i_dynamic';;
10913	  esac
10914  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915	  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'
10916	  ;;
10917	esac
10918	archive_cmds_need_lc_CXX=no
10919	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10920	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10921	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10922	;;
10923      pgCC*)
10924        # Portland Group C++ compiler
10925	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10926  	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'
10927
10928	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10929	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10930	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'
10931        ;;
10932      cxx*)
10933	# Compaq C++
10934	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10935	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'
10936
10937	runpath_var=LD_RUN_PATH
10938	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10939	hardcode_libdir_separator_CXX=:
10940
10941	# Commands to make compiler produce verbose output that lists
10942	# what "hidden" libraries, object files and flags are used when
10943	# linking a shared library.
10944	#
10945	# There doesn't appear to be a way to prevent this compiler from
10946	# explicitly linking system object files so we need to strip them
10947	# from the output so that they don't get included in the library
10948	# dependencies.
10949	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'
10950	;;
10951    esac
10952    ;;
10953  lynxos*)
10954    # FIXME: insert proper C++ library support
10955    ld_shlibs_CXX=no
10956    ;;
10957  m88k*)
10958    # FIXME: insert proper C++ library support
10959    ld_shlibs_CXX=no
10960    ;;
10961  mvs*)
10962    case $cc_basename in
10963      cxx*)
10964	# FIXME: insert proper C++ library support
10965	ld_shlibs_CXX=no
10966	;;
10967      *)
10968	# FIXME: insert proper C++ library support
10969	ld_shlibs_CXX=no
10970	;;
10971    esac
10972    ;;
10973  netbsd*)
10974    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10975      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10976      wlarc=
10977      hardcode_libdir_flag_spec_CXX='-R$libdir'
10978      hardcode_direct_CXX=yes
10979      hardcode_shlibpath_var_CXX=no
10980    fi
10981    # Workaround some broken pre-1.5 toolchains
10982    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10983    ;;
10984  openbsd2*)
10985    # C++ shared libraries are fairly broken
10986    ld_shlibs_CXX=no
10987    ;;
10988  openbsd*)
10989    hardcode_direct_CXX=yes
10990    hardcode_shlibpath_var_CXX=no
10991    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10992    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10993    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10994      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10995      export_dynamic_flag_spec_CXX='${wl}-E'
10996      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10997    fi
10998    output_verbose_link_cmd='echo'
10999    ;;
11000  osf3*)
11001    case $cc_basename in
11002      KCC*)
11003	# Kuck and Associates, Inc. (KAI) C++ Compiler
11004
11005	# KCC will only create a shared library if the output file
11006	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11007	# to its proper name (with version) after linking.
11008	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'
11009
11010	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11011	hardcode_libdir_separator_CXX=:
11012
11013	# Archives containing C++ object files must be created using
11014	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11015	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11016
11017	;;
11018      RCC*)
11019	# Rational C++ 2.4.1
11020	# FIXME: insert proper C++ library support
11021	ld_shlibs_CXX=no
11022	;;
11023      cxx*)
11024	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11025	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'
11026
11027	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11028	hardcode_libdir_separator_CXX=:
11029
11030	# Commands to make compiler produce verbose output that lists
11031	# what "hidden" libraries, object files and flags are used when
11032	# linking a shared library.
11033	#
11034	# There doesn't appear to be a way to prevent this compiler from
11035	# explicitly linking system object files so we need to strip them
11036	# from the output so that they don't get included in the library
11037	# dependencies.
11038	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'
11039	;;
11040      *)
11041	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11042	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11043	  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'
11044
11045	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11046	  hardcode_libdir_separator_CXX=:
11047
11048	  # Commands to make compiler produce verbose output that lists
11049	  # what "hidden" libraries, object files and flags are used when
11050	  # linking a shared library.
11051	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11052
11053	else
11054	  # FIXME: insert proper C++ library support
11055	  ld_shlibs_CXX=no
11056	fi
11057	;;
11058    esac
11059    ;;
11060  osf4* | osf5*)
11061    case $cc_basename in
11062      KCC*)
11063	# Kuck and Associates, Inc. (KAI) C++ Compiler
11064
11065	# KCC will only create a shared library if the output file
11066	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11067	# to its proper name (with version) after linking.
11068	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'
11069
11070	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11071	hardcode_libdir_separator_CXX=:
11072
11073	# Archives containing C++ object files must be created using
11074	# the KAI C++ compiler.
11075	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11076	;;
11077      RCC*)
11078	# Rational C++ 2.4.1
11079	# FIXME: insert proper C++ library support
11080	ld_shlibs_CXX=no
11081	;;
11082      cxx*)
11083	allow_undefined_flag_CXX=' -expect_unresolved \*'
11084	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'
11085	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11086	  echo "-hidden">> $lib.exp~
11087	  $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~
11088	  $rm $lib.exp'
11089
11090	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11091	hardcode_libdir_separator_CXX=:
11092
11093	# Commands to make compiler produce verbose output that lists
11094	# what "hidden" libraries, object files and flags are used when
11095	# linking a shared library.
11096	#
11097	# There doesn't appear to be a way to prevent this compiler from
11098	# explicitly linking system object files so we need to strip them
11099	# from the output so that they don't get included in the library
11100	# dependencies.
11101	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'
11102	;;
11103      *)
11104	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11105	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11106	 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'
11107
11108	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11109	  hardcode_libdir_separator_CXX=:
11110
11111	  # Commands to make compiler produce verbose output that lists
11112	  # what "hidden" libraries, object files and flags are used when
11113	  # linking a shared library.
11114	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11115
11116	else
11117	  # FIXME: insert proper C++ library support
11118	  ld_shlibs_CXX=no
11119	fi
11120	;;
11121    esac
11122    ;;
11123  psos*)
11124    # FIXME: insert proper C++ library support
11125    ld_shlibs_CXX=no
11126    ;;
11127  sco*)
11128    archive_cmds_need_lc_CXX=no
11129    case $cc_basename in
11130      CC*)
11131	# FIXME: insert proper C++ library support
11132	ld_shlibs_CXX=no
11133	;;
11134      *)
11135	# FIXME: insert proper C++ library support
11136	ld_shlibs_CXX=no
11137	;;
11138    esac
11139    ;;
11140  sunos4*)
11141    case $cc_basename in
11142      CC*)
11143	# Sun C++ 4.x
11144	# FIXME: insert proper C++ library support
11145	ld_shlibs_CXX=no
11146	;;
11147      lcc*)
11148	# Lucid
11149	# FIXME: insert proper C++ library support
11150	ld_shlibs_CXX=no
11151	;;
11152      *)
11153	# FIXME: insert proper C++ library support
11154	ld_shlibs_CXX=no
11155	;;
11156    esac
11157    ;;
11158  solaris*)
11159    case $cc_basename in
11160      CC*)
11161	# Sun C++ 4.2, 5.x and Centerline C++
11162        archive_cmds_need_lc_CXX=yes
11163	no_undefined_flag_CXX=' -zdefs'
11164	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11165	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11166	$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'
11167
11168	hardcode_libdir_flag_spec_CXX='-R$libdir'
11169	hardcode_shlibpath_var_CXX=no
11170	case $host_os in
11171	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11172	  *)
11173	    # The C++ compiler is used as linker so we must use $wl
11174	    # flag to pass the commands to the underlying system
11175	    # linker. We must also pass each convience library through
11176	    # to the system linker between allextract/defaultextract.
11177	    # The C++ compiler will combine linker options so we
11178	    # cannot just pass the convience library names through
11179	    # without $wl.
11180	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11181	    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'
11182	    ;;
11183	esac
11184	link_all_deplibs_CXX=yes
11185
11186	output_verbose_link_cmd='echo'
11187
11188	# Archives containing C++ object files must be created using
11189	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11190	# necessary to make sure instantiated templates are included
11191	# in the archive.
11192	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11193	;;
11194      gcx*)
11195	# Green Hills C++ Compiler
11196	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11197
11198	# The C++ compiler must be used to create the archive.
11199	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11200	;;
11201      *)
11202	# GNU C++ compiler with Solaris linker
11203	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11204	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11205	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11206	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11207	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11208		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11209
11210	    # Commands to make compiler produce verbose output that lists
11211	    # what "hidden" libraries, object files and flags are used when
11212	    # linking a shared library.
11213	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11214	  else
11215	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11216	    # platform.
11217	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11218	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11219		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11220
11221	    # Commands to make compiler produce verbose output that lists
11222	    # what "hidden" libraries, object files and flags are used when
11223	    # linking a shared library.
11224	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11225	  fi
11226
11227	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11228	fi
11229	;;
11230    esac
11231    ;;
11232  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11233    archive_cmds_need_lc_CXX=no
11234    ;;
11235  tandem*)
11236    case $cc_basename in
11237      NCC*)
11238	# NonStop-UX NCC 3.20
11239	# FIXME: insert proper C++ library support
11240	ld_shlibs_CXX=no
11241	;;
11242      *)
11243	# FIXME: insert proper C++ library support
11244	ld_shlibs_CXX=no
11245	;;
11246    esac
11247    ;;
11248  vxworks*)
11249    # FIXME: insert proper C++ library support
11250    ld_shlibs_CXX=no
11251    ;;
11252  *)
11253    # FIXME: insert proper C++ library support
11254    ld_shlibs_CXX=no
11255    ;;
11256esac
11257echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11258echo "${ECHO_T}$ld_shlibs_CXX" >&6
11259test "$ld_shlibs_CXX" = no && can_build_shared=no
11260
11261GCC_CXX="$GXX"
11262LD_CXX="$LD"
11263
11264## CAVEAT EMPTOR:
11265## There is no encapsulation within the following macros, do not change
11266## the running order or otherwise move them around unless you know exactly
11267## what you are doing...
11268
11269cat > conftest.$ac_ext <<EOF
11270class Foo
11271{
11272public:
11273  Foo (void) { a = 0; }
11274private:
11275  int a;
11276};
11277EOF
11278
11279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280  (eval $ac_compile) 2>&5
11281  ac_status=$?
11282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283  (exit $ac_status); }; then
11284  # Parse the compiler output and extract the necessary
11285  # objects, libraries and library flags.
11286
11287  # Sentinel used to keep track of whether or not we are before
11288  # the conftest object file.
11289  pre_test_object_deps_done=no
11290
11291  # The `*' in the case matches for architectures that use `case' in
11292  # $output_verbose_cmd can trigger glob expansion during the loop
11293  # eval without this substitution.
11294  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11295
11296  for p in `eval $output_verbose_link_cmd`; do
11297    case $p in
11298
11299    -L* | -R* | -l*)
11300       # Some compilers place space between "-{L,R}" and the path.
11301       # Remove the space.
11302       if test $p = "-L" \
11303	  || test $p = "-R"; then
11304	 prev=$p
11305	 continue
11306       else
11307	 prev=
11308       fi
11309
11310       if test "$pre_test_object_deps_done" = no; then
11311	 case $p in
11312	 -L* | -R*)
11313	   # Internal compiler library paths should come after those
11314	   # provided the user.  The postdeps already come after the
11315	   # user supplied libs so there is no need to process them.
11316	   if test -z "$compiler_lib_search_path_CXX"; then
11317	     compiler_lib_search_path_CXX="${prev}${p}"
11318	   else
11319	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11320	   fi
11321	   ;;
11322	 # The "-l" case would never come before the object being
11323	 # linked, so don't bother handling this case.
11324	 esac
11325       else
11326	 if test -z "$postdeps_CXX"; then
11327	   postdeps_CXX="${prev}${p}"
11328	 else
11329	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11330	 fi
11331       fi
11332       ;;
11333
11334    *.$objext)
11335       # This assumes that the test object file only shows up
11336       # once in the compiler output.
11337       if test "$p" = "conftest.$objext"; then
11338	 pre_test_object_deps_done=yes
11339	 continue
11340       fi
11341
11342       if test "$pre_test_object_deps_done" = no; then
11343	 if test -z "$predep_objects_CXX"; then
11344	   predep_objects_CXX="$p"
11345	 else
11346	   predep_objects_CXX="$predep_objects_CXX $p"
11347	 fi
11348       else
11349	 if test -z "$postdep_objects_CXX"; then
11350	   postdep_objects_CXX="$p"
11351	 else
11352	   postdep_objects_CXX="$postdep_objects_CXX $p"
11353	 fi
11354       fi
11355       ;;
11356
11357    *) ;; # Ignore the rest.
11358
11359    esac
11360  done
11361
11362  # Clean up.
11363  rm -f a.out a.exe
11364else
11365  echo "libtool.m4: error: problem compiling CXX test program"
11366fi
11367
11368$rm -f confest.$objext
11369
11370# PORTME: override above test on systems where it is broken
11371case $host_os in
11372solaris*)
11373  case $cc_basename in
11374  CC*)
11375    # Adding this requires a known-good setup of shared libraries for
11376    # Sun compiler versions before 5.6, else PIC objects from an old
11377    # archive will be linked into the output, leading to subtle bugs.
11378    postdeps_CXX='-lCstd -lCrun'
11379    ;;
11380  esac
11381esac
11382
11383
11384case " $postdeps_CXX " in
11385*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11386esac
11387
11388lt_prog_compiler_wl_CXX=
11389lt_prog_compiler_pic_CXX=
11390lt_prog_compiler_static_CXX=
11391
11392echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11393echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11394
11395  # C++ specific cases for pic, static, wl, etc.
11396  if test "$GXX" = yes; then
11397    lt_prog_compiler_wl_CXX='-Wl,'
11398    lt_prog_compiler_static_CXX='-static'
11399
11400    case $host_os in
11401    aix*)
11402      # All AIX code is PIC.
11403      if test "$host_cpu" = ia64; then
11404	# AIX 5 now supports IA64 processor
11405	lt_prog_compiler_static_CXX='-Bstatic'
11406      fi
11407      ;;
11408    amigaos*)
11409      # FIXME: we need at least 68020 code to build shared libraries, but
11410      # adding the `-m68020' flag to GCC prevents building anything better,
11411      # like `-m68040'.
11412      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11413      ;;
11414    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
11415    | osf5*)
11416      # PIC is the default for these OSes.
11417      ;;
11418    mingw* | os2* | pw32*)
11419      # This hack is so that the source file can tell whether it is being
11420      # built for inclusion in a dll (and should export symbols for example).
11421      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11422      ;;
11423    darwin* | rhapsody*)
11424      # PIC is the default on this platform
11425      # Common symbols not allowed in MH_DYLIB files
11426      lt_prog_compiler_pic_CXX='-fno-common'
11427      ;;
11428    *djgpp*)
11429      # DJGPP does not support shared libraries at all
11430      lt_prog_compiler_pic_CXX=
11431      ;;
11432    sysv4*MP*)
11433      if test -d /usr/nec; then
11434	lt_prog_compiler_pic_CXX=-Kconform_pic
11435      fi
11436      ;;
11437    hpux*)
11438      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11439      # not for PA HP-UX.
11440      case $host_cpu in
11441      hppa*64*|ia64*)
11442	;;
11443      *)
11444	lt_prog_compiler_pic_CXX='-fPIC'
11445	;;
11446      esac
11447      ;;
11448    *)
11449      lt_prog_compiler_pic_CXX='-fPIC'
11450      ;;
11451    esac
11452  else
11453    case $host_os in
11454      aix4* | aix5*)
11455	# All AIX code is PIC.
11456	if test "$host_cpu" = ia64; then
11457	  # AIX 5 now supports IA64 processor
11458	  lt_prog_compiler_static_CXX='-Bstatic'
11459	else
11460	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11461	fi
11462	;;
11463      chorus*)
11464	case $cc_basename in
11465	cxch68*)
11466	  # Green Hills C++ Compiler
11467	  # _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"
11468	  ;;
11469	esac
11470	;;
11471       darwin*)
11472         # PIC is the default on this platform
11473         # Common symbols not allowed in MH_DYLIB files
11474         case $cc_basename in
11475           xlc*)
11476           lt_prog_compiler_pic_CXX='-qnocommon'
11477           lt_prog_compiler_wl_CXX='-Wl,'
11478           ;;
11479         esac
11480       ;;
11481      dgux*)
11482	case $cc_basename in
11483	  ec++*)
11484	    lt_prog_compiler_pic_CXX='-KPIC'
11485	    ;;
11486	  ghcx*)
11487	    # Green Hills C++ Compiler
11488	    lt_prog_compiler_pic_CXX='-pic'
11489	    ;;
11490	  *)
11491	    ;;
11492	esac
11493	;;
11494      freebsd* | kfreebsd*-gnu | dragonfly*)
11495	# FreeBSD uses GNU C++
11496	;;
11497      hpux9* | hpux10* | hpux11*)
11498	case $cc_basename in
11499	  CC*)
11500	    lt_prog_compiler_wl_CXX='-Wl,'
11501	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11502	    if test "$host_cpu" != ia64; then
11503	      lt_prog_compiler_pic_CXX='+Z'
11504	    fi
11505	    ;;
11506	  aCC*)
11507	    lt_prog_compiler_wl_CXX='-Wl,'
11508	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11509	    case $host_cpu in
11510	    hppa*64*|ia64*)
11511	      # +Z the default
11512	      ;;
11513	    *)
11514	      lt_prog_compiler_pic_CXX='+Z'
11515	      ;;
11516	    esac
11517	    ;;
11518	  *)
11519	    ;;
11520	esac
11521	;;
11522      irix5* | irix6* | nonstopux*)
11523	case $cc_basename in
11524	  CC*)
11525	    lt_prog_compiler_wl_CXX='-Wl,'
11526	    lt_prog_compiler_static_CXX='-non_shared'
11527	    # CC pic flag -KPIC is the default.
11528	    ;;
11529	  *)
11530	    ;;
11531	esac
11532	;;
11533      linux*)
11534	case $cc_basename in
11535	  KCC*)
11536	    # KAI C++ Compiler
11537	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11538	    lt_prog_compiler_pic_CXX='-fPIC'
11539	    ;;
11540	  icpc* | ecpc*)
11541	    # Intel C++
11542	    lt_prog_compiler_wl_CXX='-Wl,'
11543	    lt_prog_compiler_pic_CXX='-KPIC'
11544	    lt_prog_compiler_static_CXX='-static'
11545	    ;;
11546	  pgCC*)
11547	    # Portland Group C++ compiler.
11548	    lt_prog_compiler_wl_CXX='-Wl,'
11549	    lt_prog_compiler_pic_CXX='-fpic'
11550	    lt_prog_compiler_static_CXX='-Bstatic'
11551	    ;;
11552	  cxx*)
11553	    # Compaq C++
11554	    # Make sure the PIC flag is empty.  It appears that all Alpha
11555	    # Linux and Compaq Tru64 Unix objects are PIC.
11556	    lt_prog_compiler_pic_CXX=
11557	    lt_prog_compiler_static_CXX='-non_shared'
11558	    ;;
11559	  *)
11560	    ;;
11561	esac
11562	;;
11563      lynxos*)
11564	;;
11565      m88k*)
11566	;;
11567      mvs*)
11568	case $cc_basename in
11569	  cxx*)
11570	    lt_prog_compiler_pic_CXX='-W c,exportall'
11571	    ;;
11572	  *)
11573	    ;;
11574	esac
11575	;;
11576      netbsd*)
11577	;;
11578      osf3* | osf4* | osf5*)
11579	case $cc_basename in
11580	  KCC*)
11581	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11582	    ;;
11583	  RCC*)
11584	    # Rational C++ 2.4.1
11585	    lt_prog_compiler_pic_CXX='-pic'
11586	    ;;
11587	  cxx*)
11588	    # Digital/Compaq C++
11589	    lt_prog_compiler_wl_CXX='-Wl,'
11590	    # Make sure the PIC flag is empty.  It appears that all Alpha
11591	    # Linux and Compaq Tru64 Unix objects are PIC.
11592	    lt_prog_compiler_pic_CXX=
11593	    lt_prog_compiler_static_CXX='-non_shared'
11594	    ;;
11595	  *)
11596	    ;;
11597	esac
11598	;;
11599      psos*)
11600	;;
11601      sco*)
11602	case $cc_basename in
11603	  CC*)
11604	    lt_prog_compiler_pic_CXX='-fPIC'
11605	    ;;
11606	  *)
11607	    ;;
11608	esac
11609	;;
11610      solaris*)
11611	case $cc_basename in
11612	  CC*)
11613	    # Sun C++ 4.2, 5.x and Centerline C++
11614	    lt_prog_compiler_pic_CXX='-KPIC'
11615	    lt_prog_compiler_static_CXX='-Bstatic'
11616	    lt_prog_compiler_wl_CXX='-Qoption ld '
11617	    ;;
11618	  gcx*)
11619	    # Green Hills C++ Compiler
11620	    lt_prog_compiler_pic_CXX='-PIC'
11621	    ;;
11622	  *)
11623	    ;;
11624	esac
11625	;;
11626      sunos4*)
11627	case $cc_basename in
11628	  CC*)
11629	    # Sun C++ 4.x
11630	    lt_prog_compiler_pic_CXX='-pic'
11631	    lt_prog_compiler_static_CXX='-Bstatic'
11632	    ;;
11633	  lcc*)
11634	    # Lucid
11635	    lt_prog_compiler_pic_CXX='-pic'
11636	    ;;
11637	  *)
11638	    ;;
11639	esac
11640	;;
11641      tandem*)
11642	case $cc_basename in
11643	  NCC*)
11644	    # NonStop-UX NCC 3.20
11645	    lt_prog_compiler_pic_CXX='-KPIC'
11646	    ;;
11647	  *)
11648	    ;;
11649	esac
11650	;;
11651      unixware*)
11652	;;
11653      vxworks*)
11654	;;
11655      *)
11656	lt_prog_compiler_can_build_shared_CXX=no
11657	;;
11658    esac
11659  fi
11660
11661echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11662echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11663
11664#
11665# Check to make sure the PIC flag actually works.
11666#
11667if test -n "$lt_prog_compiler_pic_CXX"; then
11668
11669echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11670echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11671if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11672  echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674  lt_prog_compiler_pic_works_CXX=no
11675  ac_outfile=conftest.$ac_objext
11676   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11677   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11678   # Insert the option either (1) after the last *FLAGS variable, or
11679   # (2) before a word containing "conftest.", or (3) at the end.
11680   # Note that $ac_compile itself does not contain backslashes and begins
11681   # with a dollar sign (not a hyphen), so the echo should work correctly.
11682   # The option is referenced via a variable to avoid confusing sed.
11683   lt_compile=`echo "$ac_compile" | $SED \
11684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11686   -e 's:$: $lt_compiler_flag:'`
11687   (eval echo "\"\$as_me:11687: $lt_compile\"" >&5)
11688   (eval "$lt_compile" 2>conftest.err)
11689   ac_status=$?
11690   cat conftest.err >&5
11691   echo "$as_me:11691: \$? = $ac_status" >&5
11692   if (exit $ac_status) && test -s "$ac_outfile"; then
11693     # The compiler can only warn and ignore the option if not recognized
11694     # So say no if there are warnings other than the usual output.
11695     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11696     $SED '/^$/d' conftest.err >conftest.er2
11697     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11698       lt_prog_compiler_pic_works_CXX=yes
11699     fi
11700   fi
11701   $rm conftest*
11702
11703fi
11704echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11705echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11706
11707if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11708    case $lt_prog_compiler_pic_CXX in
11709     "" | " "*) ;;
11710     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11711     esac
11712else
11713    lt_prog_compiler_pic_CXX=
11714     lt_prog_compiler_can_build_shared_CXX=no
11715fi
11716
11717fi
11718case $host_os in
11719  # For platforms which do not support PIC, -DPIC is meaningless:
11720  *djgpp*)
11721    lt_prog_compiler_pic_CXX=
11722    ;;
11723  *)
11724    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11725    ;;
11726esac
11727
11728echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11730if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11731  echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733  lt_cv_prog_compiler_c_o_CXX=no
11734   $rm -r conftest 2>/dev/null
11735   mkdir conftest
11736   cd conftest
11737   mkdir out
11738   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11739
11740   lt_compiler_flag="-o out/conftest2.$ac_objext"
11741   # Insert the option either (1) after the last *FLAGS variable, or
11742   # (2) before a word containing "conftest.", or (3) at the end.
11743   # Note that $ac_compile itself does not contain backslashes and begins
11744   # with a dollar sign (not a hyphen), so the echo should work correctly.
11745   lt_compile=`echo "$ac_compile" | $SED \
11746   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11747   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11748   -e 's:$: $lt_compiler_flag:'`
11749   (eval echo "\"\$as_me:11749: $lt_compile\"" >&5)
11750   (eval "$lt_compile" 2>out/conftest.err)
11751   ac_status=$?
11752   cat out/conftest.err >&5
11753   echo "$as_me:11753: \$? = $ac_status" >&5
11754   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11755   then
11756     # The compiler can only warn and ignore the option if not recognized
11757     # So say no if there are warnings
11758     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11759     $SED '/^$/d' out/conftest.err >out/conftest.er2
11760     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11761       lt_cv_prog_compiler_c_o_CXX=yes
11762     fi
11763   fi
11764   chmod u+w . 2>&5
11765   $rm conftest*
11766   # SGI C++ compiler will create directory out/ii_files/ for
11767   # template instantiation
11768   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11769   $rm out/* && rmdir out
11770   cd ..
11771   rmdir conftest
11772   $rm conftest*
11773
11774fi
11775echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11776echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11777
11778
11779hard_links="nottested"
11780if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11781  # do not overwrite the value of need_locks provided by the user
11782  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11784  hard_links=yes
11785  $rm conftest*
11786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11787  touch conftest.a
11788  ln conftest.a conftest.b 2>&5 || hard_links=no
11789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11790  echo "$as_me:$LINENO: result: $hard_links" >&5
11791echo "${ECHO_T}$hard_links" >&6
11792  if test "$hard_links" = no; then
11793    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11795    need_locks=warn
11796  fi
11797else
11798  need_locks=no
11799fi
11800
11801echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11803
11804  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11805  case $host_os in
11806  aix4* | aix5*)
11807    # If we're using GNU nm, then we don't want the "-C" option.
11808    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11809    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11810      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'
11811    else
11812      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'
11813    fi
11814    ;;
11815  pw32*)
11816    export_symbols_cmds_CXX="$ltdll_cmds"
11817  ;;
11818  cygwin* | mingw*)
11819    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'
11820  ;;
11821  *)
11822    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11823  ;;
11824  esac
11825
11826echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11827echo "${ECHO_T}$ld_shlibs_CXX" >&6
11828test "$ld_shlibs_CXX" = no && can_build_shared=no
11829
11830variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11831if test "$GCC" = yes; then
11832  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11833fi
11834
11835#
11836# Do we need to explicitly link libc?
11837#
11838case "x$archive_cmds_need_lc_CXX" in
11839x|xyes)
11840  # Assume -lc should be added
11841  archive_cmds_need_lc_CXX=yes
11842
11843  if test "$enable_shared" = yes && test "$GCC" = yes; then
11844    case $archive_cmds_CXX in
11845    *'~'*)
11846      # FIXME: we may have to deal with multi-command sequences.
11847      ;;
11848    '$CC '*)
11849      # Test whether the compiler implicitly links with -lc since on some
11850      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11851      # to ld, don't add -lc before -lgcc.
11852      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11853echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11854      $rm conftest*
11855      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11856
11857      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858  (eval $ac_compile) 2>&5
11859  ac_status=$?
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } 2>conftest.err; then
11862        soname=conftest
11863        lib=conftest
11864        libobjs=conftest.$ac_objext
11865        deplibs=
11866        wl=$lt_prog_compiler_wl_CXX
11867        compiler_flags=-v
11868        linker_flags=-v
11869        verstring=
11870        output_objdir=.
11871        libname=conftest
11872        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11873        allow_undefined_flag_CXX=
11874        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11875  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11876  ac_status=$?
11877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878  (exit $ac_status); }
11879        then
11880	  archive_cmds_need_lc_CXX=no
11881        else
11882	  archive_cmds_need_lc_CXX=yes
11883        fi
11884        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11885      else
11886        cat conftest.err 1>&5
11887      fi
11888      $rm conftest*
11889      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11890echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11891      ;;
11892    esac
11893  fi
11894  ;;
11895esac
11896
11897echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11898echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11899library_names_spec=
11900libname_spec='lib$name'
11901soname_spec=
11902shrext_cmds=".so"
11903postinstall_cmds=
11904postuninstall_cmds=
11905finish_cmds=
11906finish_eval=
11907shlibpath_var=
11908shlibpath_overrides_runpath=unknown
11909version_type=none
11910dynamic_linker="$host_os ld.so"
11911sys_lib_dlsearch_path_spec="/lib /usr/lib"
11912if test "$GCC" = yes; then
11913  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11914  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11915    # if the path contains ";" then we assume it to be the separator
11916    # otherwise default to the standard path separator (i.e. ":") - it is
11917    # assumed that no part of a normal pathname contains ";" but that should
11918    # okay in the real world where ";" in dirpaths is itself problematic.
11919    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920  else
11921    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11922  fi
11923else
11924  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11925fi
11926need_lib_prefix=unknown
11927hardcode_into_libs=no
11928
11929# when you set need_version to no, make sure it does not cause -set_version
11930# flags to be left without arguments
11931need_version=unknown
11932
11933case $host_os in
11934aix3*)
11935  version_type=linux
11936  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11937  shlibpath_var=LIBPATH
11938
11939  # AIX 3 has no versioning support, so we append a major version to the name.
11940  soname_spec='${libname}${release}${shared_ext}$major'
11941  ;;
11942
11943aix4* | aix5*)
11944  version_type=linux
11945  need_lib_prefix=no
11946  need_version=no
11947  hardcode_into_libs=yes
11948  if test "$host_cpu" = ia64; then
11949    # AIX 5 supports IA64
11950    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11951    shlibpath_var=LD_LIBRARY_PATH
11952  else
11953    # With GCC up to 2.95.x, collect2 would create an import file
11954    # for dependence libraries.  The import file would start with
11955    # the line `#! .'.  This would cause the generated library to
11956    # depend on `.', always an invalid library.  This was fixed in
11957    # development snapshots of GCC prior to 3.0.
11958    case $host_os in
11959      aix4 | aix4.[01] | aix4.[01].*)
11960      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11961	   echo ' yes '
11962	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11963	:
11964      else
11965	can_build_shared=no
11966      fi
11967      ;;
11968    esac
11969    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11970    # soname into executable. Probably we can add versioning support to
11971    # collect2, so additional links can be useful in future.
11972    if test "$aix_use_runtimelinking" = yes; then
11973      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11974      # instead of lib<name>.a to let people know that these are not
11975      # typical AIX shared libraries.
11976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977    else
11978      # We preserve .a as extension for shared libraries through AIX4.2
11979      # and later when we are not doing run time linking.
11980      library_names_spec='${libname}${release}.a $libname.a'
11981      soname_spec='${libname}${release}${shared_ext}$major'
11982    fi
11983    shlibpath_var=LIBPATH
11984  fi
11985  ;;
11986
11987amigaos*)
11988  library_names_spec='$libname.ixlibrary $libname.a'
11989  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11990  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'
11991  ;;
11992
11993beos*)
11994  library_names_spec='${libname}${shared_ext}'
11995  dynamic_linker="$host_os ld.so"
11996  shlibpath_var=LIBRARY_PATH
11997  ;;
11998
11999bsdi[45]*)
12000  version_type=linux
12001  need_version=no
12002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003  soname_spec='${libname}${release}${shared_ext}$major'
12004  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12005  shlibpath_var=LD_LIBRARY_PATH
12006  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12007  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12008  # the default ld.so.conf also contains /usr/contrib/lib and
12009  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12010  # libtool to hard-code these into programs
12011  ;;
12012
12013cygwin* | mingw* | pw32*)
12014  version_type=windows
12015  shrext_cmds=".dll"
12016  need_version=no
12017  need_lib_prefix=no
12018
12019  case $GCC,$host_os in
12020  yes,cygwin* | yes,mingw* | yes,pw32*)
12021    library_names_spec='$libname.dll.a'
12022    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12023    postinstall_cmds='base_file=`basename \${file}`~
12024      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12025      dldir=$destdir/`dirname \$dlpath`~
12026      test -d \$dldir || mkdir -p \$dldir~
12027      $install_prog $dir/$dlname \$dldir/$dlname~
12028      chmod a+x \$dldir/$dlname'
12029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12030      dlpath=$dir/\$dldll~
12031       $rm \$dlpath'
12032    shlibpath_overrides_runpath=yes
12033
12034    case $host_os in
12035    cygwin*)
12036      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12037      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12038      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12039      ;;
12040    mingw*)
12041      # MinGW DLLs use traditional 'lib' prefix
12042      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12043      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12044      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12045        # It is most probably a Windows format PATH printed by
12046        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12047        # path with ; separators, and with drive letters. We can handle the
12048        # drive letters (cygwin fileutils understands them), so leave them,
12049        # especially as we might pass files found there to a mingw objdump,
12050        # which wouldn't understand a cygwinified path. Ahh.
12051        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12052      else
12053        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12054      fi
12055      ;;
12056    pw32*)
12057      # pw32 DLLs use 'pw' prefix rather than 'lib'
12058      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12059      ;;
12060    esac
12061    ;;
12062
12063  *)
12064    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12065    ;;
12066  esac
12067  dynamic_linker='Win32 ld.exe'
12068  # FIXME: first we should search . and the directory the executable is in
12069  shlibpath_var=PATH
12070  ;;
12071
12072darwin* | rhapsody*)
12073  dynamic_linker="$host_os dyld"
12074  version_type=darwin
12075  need_lib_prefix=no
12076  need_version=no
12077  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12078  soname_spec='${libname}${release}${major}$shared_ext'
12079  shlibpath_overrides_runpath=yes
12080  shlibpath_var=DYLD_LIBRARY_PATH
12081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12082  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12083  if test "$GCC" = yes; then
12084    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"`
12085  else
12086    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12087  fi
12088  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12089  ;;
12090
12091dgux*)
12092  version_type=linux
12093  need_lib_prefix=no
12094  need_version=no
12095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12096  soname_spec='${libname}${release}${shared_ext}$major'
12097  shlibpath_var=LD_LIBRARY_PATH
12098  ;;
12099
12100freebsd1*)
12101  dynamic_linker=no
12102  ;;
12103
12104haiku*)
12105  library_names_spec='${libname}${shared_ext}'
12106  dynamic_linker="$host_os ld.so"
12107  shlibpath_var=LIBRARY_PATH
12108  ;;
12109
12110kfreebsd*-gnu)
12111  version_type=linux
12112  need_lib_prefix=no
12113  need_version=no
12114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12115  soname_spec='${libname}${release}${shared_ext}$major'
12116  shlibpath_var=LD_LIBRARY_PATH
12117  shlibpath_overrides_runpath=no
12118  hardcode_into_libs=yes
12119  dynamic_linker='GNU ld.so'
12120  ;;
12121
12122freebsd* | dragonfly*)
12123  # DragonFly does not have aout.  When/if they implement a new
12124  # versioning mechanism, adjust this.
12125  if test -x /usr/bin/objformat; then
12126    objformat=`/usr/bin/objformat`
12127  else
12128    case $host_os in
12129    freebsd[123]*) objformat=aout ;;
12130    *) objformat=elf ;;
12131    esac
12132  fi
12133  version_type=freebsd-$objformat
12134  case $version_type in
12135    freebsd-elf*)
12136      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12137      need_version=no
12138      need_lib_prefix=no
12139      ;;
12140    freebsd-*)
12141      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12142      need_version=yes
12143      ;;
12144  esac
12145  shlibpath_var=LD_LIBRARY_PATH
12146  case $host_os in
12147  freebsd2*)
12148    shlibpath_overrides_runpath=yes
12149    ;;
12150  freebsd3.[01]* | freebsdelf3.[01]*)
12151    shlibpath_overrides_runpath=yes
12152    hardcode_into_libs=yes
12153    ;;
12154  *) # from 3.2 on
12155    shlibpath_overrides_runpath=no
12156    hardcode_into_libs=yes
12157    ;;
12158  esac
12159  ;;
12160
12161gnu*)
12162  version_type=linux
12163  need_lib_prefix=no
12164  need_version=no
12165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12166  soname_spec='${libname}${release}${shared_ext}$major'
12167  shlibpath_var=LD_LIBRARY_PATH
12168  hardcode_into_libs=yes
12169  ;;
12170
12171hpux9* | hpux10* | hpux11*)
12172  # Give a soname corresponding to the major version so that dld.sl refuses to
12173  # link against other versions.
12174  version_type=sunos
12175  need_lib_prefix=no
12176  need_version=no
12177  case $host_cpu in
12178  ia64*)
12179    shrext_cmds='.so'
12180    hardcode_into_libs=yes
12181    dynamic_linker="$host_os dld.so"
12182    shlibpath_var=LD_LIBRARY_PATH
12183    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185    soname_spec='${libname}${release}${shared_ext}$major'
12186    if test "X$HPUX_IA64_MODE" = X32; then
12187      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12188    else
12189      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12190    fi
12191    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12192    ;;
12193   hppa*64*)
12194     shrext_cmds='.sl'
12195     hardcode_into_libs=yes
12196     dynamic_linker="$host_os dld.sl"
12197     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12198     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200     soname_spec='${libname}${release}${shared_ext}$major'
12201     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12203     ;;
12204   *)
12205    shrext_cmds='.sl'
12206    dynamic_linker="$host_os dld.sl"
12207    shlibpath_var=SHLIB_PATH
12208    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210    soname_spec='${libname}${release}${shared_ext}$major'
12211    ;;
12212  esac
12213  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12214  postinstall_cmds='chmod 555 $lib'
12215  ;;
12216
12217irix5* | irix6* | nonstopux*)
12218  case $host_os in
12219    nonstopux*) version_type=nonstopux ;;
12220    *)
12221	if test "$lt_cv_prog_gnu_ld" = yes; then
12222		version_type=linux
12223	else
12224		version_type=irix
12225	fi ;;
12226  esac
12227  need_lib_prefix=no
12228  need_version=no
12229  soname_spec='${libname}${release}${shared_ext}$major'
12230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12231  case $host_os in
12232  irix5* | nonstopux*)
12233    libsuff= shlibsuff=
12234    ;;
12235  *)
12236    case $LD in # libtool.m4 will add one of these switches to LD
12237    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12238      libsuff= shlibsuff= libmagic=32-bit;;
12239    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12240      libsuff=32 shlibsuff=N32 libmagic=N32;;
12241    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12242      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12243    *) libsuff= shlibsuff= libmagic=never-match;;
12244    esac
12245    ;;
12246  esac
12247  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12248  shlibpath_overrides_runpath=no
12249  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12250  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12251  hardcode_into_libs=yes
12252  ;;
12253
12254# No shared lib support for Linux oldld, aout, or coff.
12255linux*oldld* | linux*aout* | linux*coff*)
12256  dynamic_linker=no
12257  ;;
12258
12259# This must be Linux ELF.
12260linux*)
12261  version_type=linux
12262  need_lib_prefix=no
12263  need_version=no
12264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265  soname_spec='${libname}${release}${shared_ext}$major'
12266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12267  shlibpath_var=LD_LIBRARY_PATH
12268  shlibpath_overrides_runpath=no
12269  # This implies no fast_install, which is unacceptable.
12270  # Some rework will be needed to allow for fast_install
12271  # before this can be enabled.
12272  hardcode_into_libs=yes
12273
12274  # Append ld.so.conf contents to the search path
12275  if test -f /etc/ld.so.conf; then
12276    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' ' '`
12277    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12278  fi
12279
12280  # We used to test for /lib/ld.so.1 and disable shared libraries on
12281  # powerpc, because MkLinux only supported shared libraries with the
12282  # GNU dynamic linker.  Since this was broken with cross compilers,
12283  # most powerpc-linux boxes support dynamic linking these days and
12284  # people can always --disable-shared, the test was removed, and we
12285  # assume the GNU/Linux dynamic linker is in use.
12286  dynamic_linker='GNU/Linux ld.so'
12287  ;;
12288
12289knetbsd*-gnu)
12290  version_type=linux
12291  need_lib_prefix=no
12292  need_version=no
12293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294  soname_spec='${libname}${release}${shared_ext}$major'
12295  shlibpath_var=LD_LIBRARY_PATH
12296  shlibpath_overrides_runpath=no
12297  hardcode_into_libs=yes
12298  dynamic_linker='GNU ld.so'
12299  ;;
12300
12301netbsd*)
12302  version_type=sunos
12303  need_lib_prefix=no
12304  need_version=no
12305  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12308    dynamic_linker='NetBSD (a.out) ld.so'
12309  else
12310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12311    soname_spec='${libname}${release}${shared_ext}$major'
12312    dynamic_linker='NetBSD ld.elf_so'
12313  fi
12314  shlibpath_var=LD_LIBRARY_PATH
12315  shlibpath_overrides_runpath=yes
12316  hardcode_into_libs=yes
12317  ;;
12318
12319newsos6)
12320  version_type=linux
12321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322  shlibpath_var=LD_LIBRARY_PATH
12323  shlibpath_overrides_runpath=yes
12324  ;;
12325
12326nto-qnx*)
12327  version_type=linux
12328  need_lib_prefix=no
12329  need_version=no
12330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331  soname_spec='${libname}${release}${shared_ext}$major'
12332  shlibpath_var=LD_LIBRARY_PATH
12333  shlibpath_overrides_runpath=yes
12334  ;;
12335
12336openbsd*)
12337  version_type=sunos
12338  need_lib_prefix=no
12339  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12340  case $host_os in
12341    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12342    *)                         need_version=no  ;;
12343  esac
12344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12345  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12346  shlibpath_var=LD_LIBRARY_PATH
12347  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12348    case $host_os in
12349      openbsd2.[89] | openbsd2.[89].*)
12350	shlibpath_overrides_runpath=no
12351	;;
12352      *)
12353	shlibpath_overrides_runpath=yes
12354	;;
12355      esac
12356  else
12357    shlibpath_overrides_runpath=yes
12358  fi
12359  ;;
12360
12361os2*)
12362  libname_spec='$name'
12363  shrext_cmds=".dll"
12364  need_lib_prefix=no
12365  library_names_spec='$libname${shared_ext} $libname.a'
12366  dynamic_linker='OS/2 ld.exe'
12367  shlibpath_var=LIBPATH
12368  ;;
12369
12370osf3* | osf4* | osf5*)
12371  version_type=osf
12372  need_lib_prefix=no
12373  need_version=no
12374  soname_spec='${libname}${release}${shared_ext}$major'
12375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376  shlibpath_var=LD_LIBRARY_PATH
12377  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12378  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12379  ;;
12380
12381sco3.2v5*)
12382  version_type=osf
12383  soname_spec='${libname}${release}${shared_ext}$major'
12384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385  shlibpath_var=LD_LIBRARY_PATH
12386  ;;
12387
12388solaris*)
12389  version_type=linux
12390  need_lib_prefix=no
12391  need_version=no
12392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393  soname_spec='${libname}${release}${shared_ext}$major'
12394  shlibpath_var=LD_LIBRARY_PATH
12395  shlibpath_overrides_runpath=yes
12396  hardcode_into_libs=yes
12397  # ldd complains unless libraries are executable
12398  postinstall_cmds='chmod +x $lib'
12399  ;;
12400
12401sunos4*)
12402  version_type=sunos
12403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12404  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12405  shlibpath_var=LD_LIBRARY_PATH
12406  shlibpath_overrides_runpath=yes
12407  if test "$with_gnu_ld" = yes; then
12408    need_lib_prefix=no
12409  fi
12410  need_version=yes
12411  ;;
12412
12413sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12414  version_type=linux
12415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12416  soname_spec='${libname}${release}${shared_ext}$major'
12417  shlibpath_var=LD_LIBRARY_PATH
12418  case $host_vendor in
12419    sni)
12420      shlibpath_overrides_runpath=no
12421      need_lib_prefix=no
12422      export_dynamic_flag_spec='${wl}-Blargedynsym'
12423      runpath_var=LD_RUN_PATH
12424      ;;
12425    siemens)
12426      need_lib_prefix=no
12427      ;;
12428    motorola)
12429      need_lib_prefix=no
12430      need_version=no
12431      shlibpath_overrides_runpath=no
12432      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12433      ;;
12434  esac
12435  ;;
12436
12437sysv4*MP*)
12438  if test -d /usr/nec ;then
12439    version_type=linux
12440    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12441    soname_spec='$libname${shared_ext}.$major'
12442    shlibpath_var=LD_LIBRARY_PATH
12443  fi
12444  ;;
12445
12446uts4*)
12447  version_type=linux
12448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449  soname_spec='${libname}${release}${shared_ext}$major'
12450  shlibpath_var=LD_LIBRARY_PATH
12451  ;;
12452
12453*)
12454  dynamic_linker=no
12455  ;;
12456esac
12457echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12458echo "${ECHO_T}$dynamic_linker" >&6
12459test "$dynamic_linker" = no && can_build_shared=no
12460
12461echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12463hardcode_action_CXX=
12464if test -n "$hardcode_libdir_flag_spec_CXX" || \
12465   test -n "$runpath_var_CXX" || \
12466   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12467
12468  # We can hardcode non-existant directories.
12469  if test "$hardcode_direct_CXX" != no &&
12470     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12471     # have to relink, otherwise we might link with an installed library
12472     # when we should be linking with a yet-to-be-installed one
12473     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12474     test "$hardcode_minus_L_CXX" != no; then
12475    # Linking always hardcodes the temporary library directory.
12476    hardcode_action_CXX=relink
12477  else
12478    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12479    hardcode_action_CXX=immediate
12480  fi
12481else
12482  # We cannot hardcode anything, or else we can only hardcode existing
12483  # directories.
12484  hardcode_action_CXX=unsupported
12485fi
12486echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12487echo "${ECHO_T}$hardcode_action_CXX" >&6
12488
12489if test "$hardcode_action_CXX" = relink; then
12490  # Fast installation is not supported
12491  enable_fast_install=no
12492elif test "$shlibpath_overrides_runpath" = yes ||
12493     test "$enable_shared" = no; then
12494  # Fast installation is not necessary
12495  enable_fast_install=needless
12496fi
12497
12498striplib=
12499old_striplib=
12500echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12501echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12502if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12503  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12504  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12505  echo "$as_me:$LINENO: result: yes" >&5
12506echo "${ECHO_T}yes" >&6
12507else
12508# FIXME - insert some real tests, host_os isn't really good enough
12509  case $host_os in
12510   darwin*)
12511       if test -n "$STRIP" ; then
12512         striplib="$STRIP -x"
12513         echo "$as_me:$LINENO: result: yes" >&5
12514echo "${ECHO_T}yes" >&6
12515       else
12516  echo "$as_me:$LINENO: result: no" >&5
12517echo "${ECHO_T}no" >&6
12518fi
12519       ;;
12520   *)
12521  echo "$as_me:$LINENO: result: no" >&5
12522echo "${ECHO_T}no" >&6
12523    ;;
12524  esac
12525fi
12526
12527if test "x$enable_dlopen" != xyes; then
12528  enable_dlopen=unknown
12529  enable_dlopen_self=unknown
12530  enable_dlopen_self_static=unknown
12531else
12532  lt_cv_dlopen=no
12533  lt_cv_dlopen_libs=
12534
12535  case $host_os in
12536  beos*)
12537    lt_cv_dlopen="load_add_on"
12538    lt_cv_dlopen_libs=
12539    lt_cv_dlopen_self=yes
12540    ;;
12541
12542  mingw* | pw32*)
12543    lt_cv_dlopen="LoadLibrary"
12544    lt_cv_dlopen_libs=
12545   ;;
12546
12547  cygwin*)
12548    lt_cv_dlopen="dlopen"
12549    lt_cv_dlopen_libs=
12550   ;;
12551
12552  darwin*)
12553  # if libdl is installed we need to link against it
12554    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12557  echo $ECHO_N "(cached) $ECHO_C" >&6
12558else
12559  ac_check_lib_save_LIBS=$LIBS
12560LIBS="-ldl  $LIBS"
12561cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h.  */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h.  */
12567
12568/* Override any gcc2 internal prototype to avoid an error.  */
12569#ifdef __cplusplus
12570extern "C"
12571#endif
12572/* We use char because int might match the return type of a gcc2
12573   builtin and then its argument prototype would still apply.  */
12574char dlopen ();
12575int
12576main ()
12577{
12578dlopen ();
12579  ;
12580  return 0;
12581}
12582_ACEOF
12583rm -f conftest.$ac_objext conftest$ac_exeext
12584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585  (eval $ac_link) 2>conftest.er1
12586  ac_status=$?
12587  grep -v '^ *+' conftest.er1 >conftest.err
12588  rm -f conftest.er1
12589  cat conftest.err >&5
12590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591  (exit $ac_status); } &&
12592	 { ac_try='test -z "$ac_cxx_werror_flag"
12593			 || test ! -s conftest.err'
12594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595  (eval $ac_try) 2>&5
12596  ac_status=$?
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); }; } &&
12599	 { ac_try='test -s conftest$ac_exeext'
12600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601  (eval $ac_try) 2>&5
12602  ac_status=$?
12603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604  (exit $ac_status); }; }; then
12605  ac_cv_lib_dl_dlopen=yes
12606else
12607  echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610ac_cv_lib_dl_dlopen=no
12611fi
12612rm -f conftest.err conftest.$ac_objext \
12613      conftest$ac_exeext conftest.$ac_ext
12614LIBS=$ac_check_lib_save_LIBS
12615fi
12616echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12617echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12618if test $ac_cv_lib_dl_dlopen = yes; then
12619  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12620else
12621
12622    lt_cv_dlopen="dyld"
12623    lt_cv_dlopen_libs=
12624    lt_cv_dlopen_self=yes
12625
12626fi
12627
12628   ;;
12629
12630  haiku*)
12631    lt_cv_dlopen="load_add_on"
12632    lt_cv_dlopen_libs=
12633    lt_cv_dlopen_self=yes
12634    ;;
12635
12636  *)
12637    echo "$as_me:$LINENO: checking for shl_load" >&5
12638echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12639if test "${ac_cv_func_shl_load+set}" = set; then
12640  echo $ECHO_N "(cached) $ECHO_C" >&6
12641else
12642  cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h.  */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
12647/* end confdefs.h.  */
12648/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12650#define shl_load innocuous_shl_load
12651
12652/* System header to define __stub macros and hopefully few prototypes,
12653    which can conflict with char shl_load (); below.
12654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655    <limits.h> exists even on freestanding compilers.  */
12656
12657#ifdef __STDC__
12658# include <limits.h>
12659#else
12660# include <assert.h>
12661#endif
12662
12663#undef shl_load
12664
12665/* Override any gcc2 internal prototype to avoid an error.  */
12666#ifdef __cplusplus
12667extern "C"
12668{
12669#endif
12670/* We use char because int might match the return type of a gcc2
12671   builtin and then its argument prototype would still apply.  */
12672char shl_load ();
12673/* The GNU C library defines this for functions which it implements
12674    to always fail with ENOSYS.  Some functions are actually named
12675    something starting with __ and the normal name is an alias.  */
12676#if defined (__stub_shl_load) || defined (__stub___shl_load)
12677choke me
12678#else
12679char (*f) () = shl_load;
12680#endif
12681#ifdef __cplusplus
12682}
12683#endif
12684
12685int
12686main ()
12687{
12688return f != shl_load;
12689  ;
12690  return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext conftest$ac_exeext
12694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695  (eval $ac_link) 2>conftest.er1
12696  ac_status=$?
12697  grep -v '^ *+' conftest.er1 >conftest.err
12698  rm -f conftest.er1
12699  cat conftest.err >&5
12700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701  (exit $ac_status); } &&
12702	 { ac_try='test -z "$ac_cxx_werror_flag"
12703			 || test ! -s conftest.err'
12704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705  (eval $ac_try) 2>&5
12706  ac_status=$?
12707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708  (exit $ac_status); }; } &&
12709	 { ac_try='test -s conftest$ac_exeext'
12710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711  (eval $ac_try) 2>&5
12712  ac_status=$?
12713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714  (exit $ac_status); }; }; then
12715  ac_cv_func_shl_load=yes
12716else
12717  echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720ac_cv_func_shl_load=no
12721fi
12722rm -f conftest.err conftest.$ac_objext \
12723      conftest$ac_exeext conftest.$ac_ext
12724fi
12725echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12726echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12727if test $ac_cv_func_shl_load = yes; then
12728  lt_cv_dlopen="shl_load"
12729else
12730  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12731echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12732if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12733  echo $ECHO_N "(cached) $ECHO_C" >&6
12734else
12735  ac_check_lib_save_LIBS=$LIBS
12736LIBS="-ldld  $LIBS"
12737cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h.  */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h.  */
12743
12744/* Override any gcc2 internal prototype to avoid an error.  */
12745#ifdef __cplusplus
12746extern "C"
12747#endif
12748/* We use char because int might match the return type of a gcc2
12749   builtin and then its argument prototype would still apply.  */
12750char shl_load ();
12751int
12752main ()
12753{
12754shl_load ();
12755  ;
12756  return 0;
12757}
12758_ACEOF
12759rm -f conftest.$ac_objext conftest$ac_exeext
12760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761  (eval $ac_link) 2>conftest.er1
12762  ac_status=$?
12763  grep -v '^ *+' conftest.er1 >conftest.err
12764  rm -f conftest.er1
12765  cat conftest.err >&5
12766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767  (exit $ac_status); } &&
12768	 { ac_try='test -z "$ac_cxx_werror_flag"
12769			 || test ! -s conftest.err'
12770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771  (eval $ac_try) 2>&5
12772  ac_status=$?
12773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774  (exit $ac_status); }; } &&
12775	 { ac_try='test -s conftest$ac_exeext'
12776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777  (eval $ac_try) 2>&5
12778  ac_status=$?
12779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780  (exit $ac_status); }; }; then
12781  ac_cv_lib_dld_shl_load=yes
12782else
12783  echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
12786ac_cv_lib_dld_shl_load=no
12787fi
12788rm -f conftest.err conftest.$ac_objext \
12789      conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12793echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12794if test $ac_cv_lib_dld_shl_load = yes; then
12795  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12796else
12797  echo "$as_me:$LINENO: checking for dlopen" >&5
12798echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12799if test "${ac_cv_func_dlopen+set}" = set; then
12800  echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802  cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h.  */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h.  */
12808/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12810#define dlopen innocuous_dlopen
12811
12812/* System header to define __stub macros and hopefully few prototypes,
12813    which can conflict with char dlopen (); below.
12814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815    <limits.h> exists even on freestanding compilers.  */
12816
12817#ifdef __STDC__
12818# include <limits.h>
12819#else
12820# include <assert.h>
12821#endif
12822
12823#undef dlopen
12824
12825/* Override any gcc2 internal prototype to avoid an error.  */
12826#ifdef __cplusplus
12827extern "C"
12828{
12829#endif
12830/* We use char because int might match the return type of a gcc2
12831   builtin and then its argument prototype would still apply.  */
12832char dlopen ();
12833/* The GNU C library defines this for functions which it implements
12834    to always fail with ENOSYS.  Some functions are actually named
12835    something starting with __ and the normal name is an alias.  */
12836#if defined (__stub_dlopen) || defined (__stub___dlopen)
12837choke me
12838#else
12839char (*f) () = dlopen;
12840#endif
12841#ifdef __cplusplus
12842}
12843#endif
12844
12845int
12846main ()
12847{
12848return f != dlopen;
12849  ;
12850  return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext conftest$ac_exeext
12854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855  (eval $ac_link) 2>conftest.er1
12856  ac_status=$?
12857  grep -v '^ *+' conftest.er1 >conftest.err
12858  rm -f conftest.er1
12859  cat conftest.err >&5
12860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861  (exit $ac_status); } &&
12862	 { ac_try='test -z "$ac_cxx_werror_flag"
12863			 || test ! -s conftest.err'
12864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865  (eval $ac_try) 2>&5
12866  ac_status=$?
12867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868  (exit $ac_status); }; } &&
12869	 { ac_try='test -s conftest$ac_exeext'
12870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871  (eval $ac_try) 2>&5
12872  ac_status=$?
12873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874  (exit $ac_status); }; }; then
12875  ac_cv_func_dlopen=yes
12876else
12877  echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880ac_cv_func_dlopen=no
12881fi
12882rm -f conftest.err conftest.$ac_objext \
12883      conftest$ac_exeext conftest.$ac_ext
12884fi
12885echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12886echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12887if test $ac_cv_func_dlopen = yes; then
12888  lt_cv_dlopen="dlopen"
12889else
12890  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12893  echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895  ac_check_lib_save_LIBS=$LIBS
12896LIBS="-ldl  $LIBS"
12897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h.  */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h.  */
12903
12904/* Override any gcc2 internal prototype to avoid an error.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908/* We use char because int might match the return type of a gcc2
12909   builtin and then its argument prototype would still apply.  */
12910char dlopen ();
12911int
12912main ()
12913{
12914dlopen ();
12915  ;
12916  return 0;
12917}
12918_ACEOF
12919rm -f conftest.$ac_objext conftest$ac_exeext
12920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921  (eval $ac_link) 2>conftest.er1
12922  ac_status=$?
12923  grep -v '^ *+' conftest.er1 >conftest.err
12924  rm -f conftest.er1
12925  cat conftest.err >&5
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); } &&
12928	 { ac_try='test -z "$ac_cxx_werror_flag"
12929			 || test ! -s conftest.err'
12930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931  (eval $ac_try) 2>&5
12932  ac_status=$?
12933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934  (exit $ac_status); }; } &&
12935	 { ac_try='test -s conftest$ac_exeext'
12936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937  (eval $ac_try) 2>&5
12938  ac_status=$?
12939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940  (exit $ac_status); }; }; then
12941  ac_cv_lib_dl_dlopen=yes
12942else
12943  echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946ac_cv_lib_dl_dlopen=no
12947fi
12948rm -f conftest.err conftest.$ac_objext \
12949      conftest$ac_exeext conftest.$ac_ext
12950LIBS=$ac_check_lib_save_LIBS
12951fi
12952echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12953echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12954if test $ac_cv_lib_dl_dlopen = yes; then
12955  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12956else
12957  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12958echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12959if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12960  echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962  ac_check_lib_save_LIBS=$LIBS
12963LIBS="-lsvld  $LIBS"
12964cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h.  */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h.  */
12970
12971/* Override any gcc2 internal prototype to avoid an error.  */
12972#ifdef __cplusplus
12973extern "C"
12974#endif
12975/* We use char because int might match the return type of a gcc2
12976   builtin and then its argument prototype would still apply.  */
12977char dlopen ();
12978int
12979main ()
12980{
12981dlopen ();
12982  ;
12983  return 0;
12984}
12985_ACEOF
12986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988  (eval $ac_link) 2>conftest.er1
12989  ac_status=$?
12990  grep -v '^ *+' conftest.er1 >conftest.err
12991  rm -f conftest.er1
12992  cat conftest.err >&5
12993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994  (exit $ac_status); } &&
12995	 { ac_try='test -z "$ac_cxx_werror_flag"
12996			 || test ! -s conftest.err'
12997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998  (eval $ac_try) 2>&5
12999  ac_status=$?
13000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001  (exit $ac_status); }; } &&
13002	 { ac_try='test -s conftest$ac_exeext'
13003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004  (eval $ac_try) 2>&5
13005  ac_status=$?
13006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); }; }; then
13008  ac_cv_lib_svld_dlopen=yes
13009else
13010  echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013ac_cv_lib_svld_dlopen=no
13014fi
13015rm -f conftest.err conftest.$ac_objext \
13016      conftest$ac_exeext conftest.$ac_ext
13017LIBS=$ac_check_lib_save_LIBS
13018fi
13019echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13020echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13021if test $ac_cv_lib_svld_dlopen = yes; then
13022  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13023else
13024  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13025echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13026if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13027  echo $ECHO_N "(cached) $ECHO_C" >&6
13028else
13029  ac_check_lib_save_LIBS=$LIBS
13030LIBS="-ldld  $LIBS"
13031cat >conftest.$ac_ext <<_ACEOF
13032/* confdefs.h.  */
13033_ACEOF
13034cat confdefs.h >>conftest.$ac_ext
13035cat >>conftest.$ac_ext <<_ACEOF
13036/* end confdefs.h.  */
13037
13038/* Override any gcc2 internal prototype to avoid an error.  */
13039#ifdef __cplusplus
13040extern "C"
13041#endif
13042/* We use char because int might match the return type of a gcc2
13043   builtin and then its argument prototype would still apply.  */
13044char dld_link ();
13045int
13046main ()
13047{
13048dld_link ();
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053rm -f conftest.$ac_objext conftest$ac_exeext
13054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055  (eval $ac_link) 2>conftest.er1
13056  ac_status=$?
13057  grep -v '^ *+' conftest.er1 >conftest.err
13058  rm -f conftest.er1
13059  cat conftest.err >&5
13060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061  (exit $ac_status); } &&
13062	 { ac_try='test -z "$ac_cxx_werror_flag"
13063			 || test ! -s conftest.err'
13064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065  (eval $ac_try) 2>&5
13066  ac_status=$?
13067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068  (exit $ac_status); }; } &&
13069	 { ac_try='test -s conftest$ac_exeext'
13070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071  (eval $ac_try) 2>&5
13072  ac_status=$?
13073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074  (exit $ac_status); }; }; then
13075  ac_cv_lib_dld_dld_link=yes
13076else
13077  echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080ac_cv_lib_dld_dld_link=no
13081fi
13082rm -f conftest.err conftest.$ac_objext \
13083      conftest$ac_exeext conftest.$ac_ext
13084LIBS=$ac_check_lib_save_LIBS
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13087echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13088if test $ac_cv_lib_dld_dld_link = yes; then
13089  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13090fi
13091
13092
13093fi
13094
13095
13096fi
13097
13098
13099fi
13100
13101
13102fi
13103
13104
13105fi
13106
13107    ;;
13108  esac
13109
13110  if test "x$lt_cv_dlopen" != xno; then
13111    enable_dlopen=yes
13112  else
13113    enable_dlopen=no
13114  fi
13115
13116  case $lt_cv_dlopen in
13117  dlopen)
13118    save_CPPFLAGS="$CPPFLAGS"
13119    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13120
13121    save_LDFLAGS="$LDFLAGS"
13122    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13123
13124    save_LIBS="$LIBS"
13125    LIBS="$lt_cv_dlopen_libs $LIBS"
13126
13127    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13128echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13129if test "${lt_cv_dlopen_self+set}" = set; then
13130  echo $ECHO_N "(cached) $ECHO_C" >&6
13131else
13132  	  if test "$cross_compiling" = yes; then :
13133  lt_cv_dlopen_self=cross
13134else
13135  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13136  lt_status=$lt_dlunknown
13137  cat > conftest.$ac_ext <<EOF
13138#line 13138 "configure"
13139#include "confdefs.h"
13140
13141#if HAVE_DLFCN_H
13142#include <dlfcn.h>
13143#endif
13144
13145#include <stdio.h>
13146
13147#ifdef RTLD_GLOBAL
13148#  define LT_DLGLOBAL		RTLD_GLOBAL
13149#else
13150#  ifdef DL_GLOBAL
13151#    define LT_DLGLOBAL		DL_GLOBAL
13152#  else
13153#    define LT_DLGLOBAL		0
13154#  endif
13155#endif
13156
13157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13158   find out it does not work in some platform. */
13159#ifndef LT_DLLAZY_OR_NOW
13160#  ifdef RTLD_LAZY
13161#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13162#  else
13163#    ifdef DL_LAZY
13164#      define LT_DLLAZY_OR_NOW		DL_LAZY
13165#    else
13166#      ifdef RTLD_NOW
13167#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13168#      else
13169#        ifdef DL_NOW
13170#          define LT_DLLAZY_OR_NOW	DL_NOW
13171#        else
13172#          define LT_DLLAZY_OR_NOW	0
13173#        endif
13174#      endif
13175#    endif
13176#  endif
13177#endif
13178
13179#ifdef __cplusplus
13180extern "C" void exit (int);
13181#endif
13182
13183void fnord() { int i=42;}
13184int main ()
13185{
13186  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13187  int status = $lt_dlunknown;
13188
13189  if (self)
13190    {
13191      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13192      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13193      /* dlclose (self); */
13194    }
13195
13196    exit (status);
13197}
13198EOF
13199  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200  (eval $ac_link) 2>&5
13201  ac_status=$?
13202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13204    (./conftest; exit; ) >&5 2>/dev/null
13205    lt_status=$?
13206    case x$lt_status in
13207      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13208      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13209      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13210    esac
13211  else :
13212    # compilation failed
13213    lt_cv_dlopen_self=no
13214  fi
13215fi
13216rm -fr conftest*
13217
13218
13219fi
13220echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13221echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13222
13223    if test "x$lt_cv_dlopen_self" = xyes; then
13224      LDFLAGS="$LDFLAGS $link_static_flag"
13225      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13226echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13227if test "${lt_cv_dlopen_self_static+set}" = set; then
13228  echo $ECHO_N "(cached) $ECHO_C" >&6
13229else
13230  	  if test "$cross_compiling" = yes; then :
13231  lt_cv_dlopen_self_static=cross
13232else
13233  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13234  lt_status=$lt_dlunknown
13235  cat > conftest.$ac_ext <<EOF
13236#line 13236 "configure"
13237#include "confdefs.h"
13238
13239#if HAVE_DLFCN_H
13240#include <dlfcn.h>
13241#endif
13242
13243#include <stdio.h>
13244
13245#ifdef RTLD_GLOBAL
13246#  define LT_DLGLOBAL		RTLD_GLOBAL
13247#else
13248#  ifdef DL_GLOBAL
13249#    define LT_DLGLOBAL		DL_GLOBAL
13250#  else
13251#    define LT_DLGLOBAL		0
13252#  endif
13253#endif
13254
13255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13256   find out it does not work in some platform. */
13257#ifndef LT_DLLAZY_OR_NOW
13258#  ifdef RTLD_LAZY
13259#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13260#  else
13261#    ifdef DL_LAZY
13262#      define LT_DLLAZY_OR_NOW		DL_LAZY
13263#    else
13264#      ifdef RTLD_NOW
13265#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13266#      else
13267#        ifdef DL_NOW
13268#          define LT_DLLAZY_OR_NOW	DL_NOW
13269#        else
13270#          define LT_DLLAZY_OR_NOW	0
13271#        endif
13272#      endif
13273#    endif
13274#  endif
13275#endif
13276
13277#ifdef __cplusplus
13278extern "C" void exit (int);
13279#endif
13280
13281void fnord() { int i=42;}
13282int main ()
13283{
13284  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13285  int status = $lt_dlunknown;
13286
13287  if (self)
13288    {
13289      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13290      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13291      /* dlclose (self); */
13292    }
13293
13294    exit (status);
13295}
13296EOF
13297  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13298  (eval $ac_link) 2>&5
13299  ac_status=$?
13300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13302    (./conftest; exit; ) >&5 2>/dev/null
13303    lt_status=$?
13304    case x$lt_status in
13305      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13306      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13307      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13308    esac
13309  else :
13310    # compilation failed
13311    lt_cv_dlopen_self_static=no
13312  fi
13313fi
13314rm -fr conftest*
13315
13316
13317fi
13318echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13319echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13320    fi
13321
13322    CPPFLAGS="$save_CPPFLAGS"
13323    LDFLAGS="$save_LDFLAGS"
13324    LIBS="$save_LIBS"
13325    ;;
13326  esac
13327
13328  case $lt_cv_dlopen_self in
13329  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13330  *) enable_dlopen_self=unknown ;;
13331  esac
13332
13333  case $lt_cv_dlopen_self_static in
13334  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13335  *) enable_dlopen_self_static=unknown ;;
13336  esac
13337fi
13338
13339
13340# The else clause should only fire when bootstrapping the
13341# libtool distribution, otherwise you forgot to ship ltmain.sh
13342# with your package, and you will get complaints that there are
13343# no rules to generate ltmain.sh.
13344if test -f "$ltmain"; then
13345  # See if we are running on zsh, and set the options which allow our commands through
13346  # without removal of \ escapes.
13347  if test -n "${ZSH_VERSION+set}" ; then
13348    setopt NO_GLOB_SUBST
13349  fi
13350  # Now quote all the things that may contain metacharacters while being
13351  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13352  # variables and quote the copies for generation of the libtool script.
13353  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13354    SED SHELL STRIP \
13355    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13356    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13357    deplibs_check_method reload_flag reload_cmds need_locks \
13358    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13359    lt_cv_sys_global_symbol_to_c_name_address \
13360    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13361    old_postinstall_cmds old_postuninstall_cmds \
13362    compiler_CXX \
13363    CC_CXX \
13364    LD_CXX \
13365    lt_prog_compiler_wl_CXX \
13366    lt_prog_compiler_pic_CXX \
13367    lt_prog_compiler_static_CXX \
13368    lt_prog_compiler_no_builtin_flag_CXX \
13369    export_dynamic_flag_spec_CXX \
13370    thread_safe_flag_spec_CXX \
13371    whole_archive_flag_spec_CXX \
13372    enable_shared_with_static_runtimes_CXX \
13373    old_archive_cmds_CXX \
13374    old_archive_from_new_cmds_CXX \
13375    predep_objects_CXX \
13376    postdep_objects_CXX \
13377    predeps_CXX \
13378    postdeps_CXX \
13379    compiler_lib_search_path_CXX \
13380    archive_cmds_CXX \
13381    archive_expsym_cmds_CXX \
13382    postinstall_cmds_CXX \
13383    postuninstall_cmds_CXX \
13384    old_archive_from_expsyms_cmds_CXX \
13385    allow_undefined_flag_CXX \
13386    no_undefined_flag_CXX \
13387    export_symbols_cmds_CXX \
13388    hardcode_libdir_flag_spec_CXX \
13389    hardcode_libdir_flag_spec_ld_CXX \
13390    hardcode_libdir_separator_CXX \
13391    hardcode_automatic_CXX \
13392    module_cmds_CXX \
13393    module_expsym_cmds_CXX \
13394    lt_cv_prog_compiler_c_o_CXX \
13395    exclude_expsyms_CXX \
13396    include_expsyms_CXX; do
13397
13398    case $var in
13399    old_archive_cmds_CXX | \
13400    old_archive_from_new_cmds_CXX | \
13401    archive_cmds_CXX | \
13402    archive_expsym_cmds_CXX | \
13403    module_cmds_CXX | \
13404    module_expsym_cmds_CXX | \
13405    old_archive_from_expsyms_cmds_CXX | \
13406    export_symbols_cmds_CXX | \
13407    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13408    postinstall_cmds | postuninstall_cmds | \
13409    old_postinstall_cmds | old_postuninstall_cmds | \
13410    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13411      # Double-quote double-evaled strings.
13412      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13413      ;;
13414    *)
13415      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13416      ;;
13417    esac
13418  done
13419
13420  case $lt_echo in
13421  *'\$0 --fallback-echo"')
13422    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13423    ;;
13424  esac
13425
13426cfgfile="$ofile"
13427
13428  cat <<__EOF__ >> "$cfgfile"
13429# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13430
13431# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13432
13433# Shell to use when invoking shell scripts.
13434SHELL=$lt_SHELL
13435
13436# Whether or not to build shared libraries.
13437build_libtool_libs=$enable_shared
13438
13439# Whether or not to build static libraries.
13440build_old_libs=$enable_static
13441
13442# Whether or not to add -lc for building shared libraries.
13443build_libtool_need_lc=$archive_cmds_need_lc_CXX
13444
13445# Whether or not to disallow shared libs when runtime libs are static
13446allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13447
13448# Whether or not to optimize for fast installation.
13449fast_install=$enable_fast_install
13450
13451# The host system.
13452host_alias=$host_alias
13453host=$host
13454host_os=$host_os
13455
13456# The build system.
13457build_alias=$build_alias
13458build=$build
13459build_os=$build_os
13460
13461# An echo program that does not interpret backslashes.
13462echo=$lt_echo
13463
13464# The archiver.
13465AR=$lt_AR
13466AR_FLAGS=$lt_AR_FLAGS
13467
13468# A C compiler.
13469LTCC=$lt_LTCC
13470
13471# A language-specific compiler.
13472CC=$lt_compiler_CXX
13473
13474# Is the compiler the GNU C compiler?
13475with_gcc=$GCC_CXX
13476
13477# An ERE matcher.
13478EGREP=$lt_EGREP
13479
13480# The linker used to build libraries.
13481LD=$lt_LD_CXX
13482
13483# Whether we need hard or soft links.
13484LN_S=$lt_LN_S
13485
13486# A BSD-compatible nm program.
13487NM=$lt_NM
13488
13489# A symbol stripping program
13490STRIP=$lt_STRIP
13491
13492# Used to examine libraries when file_magic_cmd begins "file"
13493MAGIC_CMD=$MAGIC_CMD
13494
13495# Used on cygwin: DLL creation program.
13496DLLTOOL="$DLLTOOL"
13497
13498# Used on cygwin: object dumper.
13499OBJDUMP="$OBJDUMP"
13500
13501# Used on cygwin: assembler.
13502AS="$AS"
13503
13504# The name of the directory that contains temporary libtool files.
13505objdir=$objdir
13506
13507# How to create reloadable object files.
13508reload_flag=$lt_reload_flag
13509reload_cmds=$lt_reload_cmds
13510
13511# How to pass a linker flag through the compiler.
13512wl=$lt_lt_prog_compiler_wl_CXX
13513
13514# Object file suffix (normally "o").
13515objext="$ac_objext"
13516
13517# Old archive suffix (normally "a").
13518libext="$libext"
13519
13520# Shared library suffix (normally ".so").
13521shrext_cmds='$shrext_cmds'
13522
13523# Executable file suffix (normally "").
13524exeext="$exeext"
13525
13526# Additional compiler flags for building library objects.
13527pic_flag=$lt_lt_prog_compiler_pic_CXX
13528pic_mode=$pic_mode
13529
13530# What is the maximum length of a command?
13531max_cmd_len=$lt_cv_sys_max_cmd_len
13532
13533# Does compiler simultaneously support -c and -o options?
13534compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13535
13536# Must we lock files when doing compilation?
13537need_locks=$lt_need_locks
13538
13539# Do we need the lib prefix for modules?
13540need_lib_prefix=$need_lib_prefix
13541
13542# Do we need a version for libraries?
13543need_version=$need_version
13544
13545# Whether dlopen is supported.
13546dlopen_support=$enable_dlopen
13547
13548# Whether dlopen of programs is supported.
13549dlopen_self=$enable_dlopen_self
13550
13551# Whether dlopen of statically linked programs is supported.
13552dlopen_self_static=$enable_dlopen_self_static
13553
13554# Compiler flag to prevent dynamic linking.
13555link_static_flag=$lt_lt_prog_compiler_static_CXX
13556
13557# Compiler flag to turn off builtin functions.
13558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13559
13560# Compiler flag to allow reflexive dlopens.
13561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13562
13563# Compiler flag to generate shared objects directly from archives.
13564whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13565
13566# Compiler flag to generate thread-safe objects.
13567thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13568
13569# Library versioning type.
13570version_type=$version_type
13571
13572# Format of library name prefix.
13573libname_spec=$lt_libname_spec
13574
13575# List of archive names.  First name is the real one, the rest are links.
13576# The last name is the one that the linker finds with -lNAME.
13577library_names_spec=$lt_library_names_spec
13578
13579# The coded name of the library, if different from the real name.
13580soname_spec=$lt_soname_spec
13581
13582# Commands used to build and install an old-style archive.
13583RANLIB=$lt_RANLIB
13584old_archive_cmds=$lt_old_archive_cmds_CXX
13585old_postinstall_cmds=$lt_old_postinstall_cmds
13586old_postuninstall_cmds=$lt_old_postuninstall_cmds
13587
13588# Create an old-style archive from a shared archive.
13589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13590
13591# Create a temporary old-style archive to link instead of a shared archive.
13592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13593
13594# Commands used to build and install a shared archive.
13595archive_cmds=$lt_archive_cmds_CXX
13596archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13597postinstall_cmds=$lt_postinstall_cmds
13598postuninstall_cmds=$lt_postuninstall_cmds
13599
13600# Commands used to build a loadable module (assumed same as above if empty)
13601module_cmds=$lt_module_cmds_CXX
13602module_expsym_cmds=$lt_module_expsym_cmds_CXX
13603
13604# Commands to strip libraries.
13605old_striplib=$lt_old_striplib
13606striplib=$lt_striplib
13607
13608# Dependencies to place before the objects being linked to create a
13609# shared library.
13610predep_objects=$lt_predep_objects_CXX
13611
13612# Dependencies to place after the objects being linked to create a
13613# shared library.
13614postdep_objects=$lt_postdep_objects_CXX
13615
13616# Dependencies to place before the objects being linked to create a
13617# shared library.
13618predeps=$lt_predeps_CXX
13619
13620# Dependencies to place after the objects being linked to create a
13621# shared library.
13622postdeps=$lt_postdeps_CXX
13623
13624# The library search path used internally by the compiler when linking
13625# a shared library.
13626compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13627
13628# Method to check whether dependent libraries are shared objects.
13629deplibs_check_method=$lt_deplibs_check_method
13630
13631# Command to use when deplibs_check_method == file_magic.
13632file_magic_cmd=$lt_file_magic_cmd
13633
13634# Flag that allows shared libraries with undefined symbols to be built.
13635allow_undefined_flag=$lt_allow_undefined_flag_CXX
13636
13637# Flag that forces no undefined symbols.
13638no_undefined_flag=$lt_no_undefined_flag_CXX
13639
13640# Commands used to finish a libtool library installation in a directory.
13641finish_cmds=$lt_finish_cmds
13642
13643# Same as above, but a single script fragment to be evaled but not shown.
13644finish_eval=$lt_finish_eval
13645
13646# Take the output of nm and produce a listing of raw symbols and C names.
13647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13648
13649# Transform the output of nm in a proper C declaration
13650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13651
13652# Transform the output of nm in a C name address pair
13653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13654
13655# This is the shared library runtime path variable.
13656runpath_var=$runpath_var
13657
13658# This is the shared library path variable.
13659shlibpath_var=$shlibpath_var
13660
13661# Is shlibpath searched before the hard-coded library search path?
13662shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13663
13664# How to hardcode a shared library path into an executable.
13665hardcode_action=$hardcode_action_CXX
13666
13667# Whether we should hardcode library paths into libraries.
13668hardcode_into_libs=$hardcode_into_libs
13669
13670# Flag to hardcode \$libdir into a binary during linking.
13671# This must work even if \$libdir does not exist.
13672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13673
13674# If ld is used when linking, flag to hardcode \$libdir into
13675# a binary during linking. This must work even if \$libdir does
13676# not exist.
13677hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13678
13679# Whether we need a single -rpath flag with a separated argument.
13680hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13681
13682# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13683# resulting binary.
13684hardcode_direct=$hardcode_direct_CXX
13685
13686# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13687# resulting binary.
13688hardcode_minus_L=$hardcode_minus_L_CXX
13689
13690# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13691# the resulting binary.
13692hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13693
13694# Set to yes if building a shared library automatically hardcodes DIR into the library
13695# and all subsequent libraries and executables linked against it.
13696hardcode_automatic=$hardcode_automatic_CXX
13697
13698# Variables whose values should be saved in libtool wrapper scripts and
13699# restored at relink time.
13700variables_saved_for_relink="$variables_saved_for_relink"
13701
13702# Whether libtool must link a program against all its dependency libraries.
13703link_all_deplibs=$link_all_deplibs_CXX
13704
13705# Compile-time system search path for libraries
13706sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13707
13708# Run-time system search path for libraries
13709sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13710
13711# Fix the shell variable \$srcfile for the compiler.
13712fix_srcfile_path="$fix_srcfile_path_CXX"
13713
13714# Set to yes if exported symbols are required.
13715always_export_symbols=$always_export_symbols_CXX
13716
13717# The commands to list exported symbols.
13718export_symbols_cmds=$lt_export_symbols_cmds_CXX
13719
13720# The commands to extract the exported symbol list from a shared archive.
13721extract_expsyms_cmds=$lt_extract_expsyms_cmds
13722
13723# Symbols that should not be listed in the preloaded symbols.
13724exclude_expsyms=$lt_exclude_expsyms_CXX
13725
13726# Symbols that must always be exported.
13727include_expsyms=$lt_include_expsyms_CXX
13728
13729# ### END LIBTOOL TAG CONFIG: $tagname
13730
13731__EOF__
13732
13733
13734else
13735  # If there is no Makefile yet, we rely on a make rule to execute
13736  # `config.status --recheck' to rerun these tests and create the
13737  # libtool script then.
13738  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13739  if test -f "$ltmain_in"; then
13740    test -f Makefile && make "$ltmain"
13741  fi
13742fi
13743
13744
13745ac_ext=cc
13746ac_cpp='$CXXCPP $CPPFLAGS'
13747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13750
13751CC=$lt_save_CC
13752LDCXX=$LD
13753LD=$lt_save_LD
13754GCC=$lt_save_GCC
13755with_gnu_ldcxx=$with_gnu_ld
13756with_gnu_ld=$lt_save_with_gnu_ld
13757lt_cv_path_LDCXX=$lt_cv_path_LD
13758lt_cv_path_LD=$lt_save_path_LD
13759lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13760lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13761
13762	else
13763	  tagname=""
13764	fi
13765	;;
13766
13767      F77)
13768	if test -n "$F77" && test "X$F77" != "Xno"; then
13769
13770ac_ext=f
13771ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13772ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13774
13775
13776archive_cmds_need_lc_F77=no
13777allow_undefined_flag_F77=
13778always_export_symbols_F77=no
13779archive_expsym_cmds_F77=
13780export_dynamic_flag_spec_F77=
13781hardcode_direct_F77=no
13782hardcode_libdir_flag_spec_F77=
13783hardcode_libdir_flag_spec_ld_F77=
13784hardcode_libdir_separator_F77=
13785hardcode_minus_L_F77=no
13786hardcode_automatic_F77=no
13787module_cmds_F77=
13788module_expsym_cmds_F77=
13789link_all_deplibs_F77=unknown
13790old_archive_cmds_F77=$old_archive_cmds
13791no_undefined_flag_F77=
13792whole_archive_flag_spec_F77=
13793enable_shared_with_static_runtimes_F77=no
13794
13795# Source file extension for f77 test sources.
13796ac_ext=f
13797
13798# Object file extension for compiled f77 test sources.
13799objext=o
13800objext_F77=$objext
13801
13802# Code to be used in simple compile tests
13803lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13804
13805# Code to be used in simple link tests
13806lt_simple_link_test_code="      program t\n      end\n"
13807
13808# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13809
13810# If no C compiler was specified, use CC.
13811LTCC=${LTCC-"$CC"}
13812
13813# Allow CC to be a program name with arguments.
13814compiler=$CC
13815
13816
13817# save warnings/boilerplate of simple test code
13818ac_outfile=conftest.$ac_objext
13819printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13820eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13821_lt_compiler_boilerplate=`cat conftest.err`
13822$rm conftest*
13823
13824ac_outfile=conftest.$ac_objext
13825printf "$lt_simple_link_test_code" >conftest.$ac_ext
13826eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13827_lt_linker_boilerplate=`cat conftest.err`
13828$rm conftest*
13829
13830
13831# Allow CC to be a program name with arguments.
13832lt_save_CC="$CC"
13833CC=${F77-"f77"}
13834compiler=$CC
13835compiler_F77=$CC
13836for cc_temp in $compiler""; do
13837  case $cc_temp in
13838    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13839    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13840    \-*) ;;
13841    *) break;;
13842  esac
13843done
13844cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13845
13846
13847echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13848echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13849echo "$as_me:$LINENO: result: $can_build_shared" >&5
13850echo "${ECHO_T}$can_build_shared" >&6
13851
13852echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13853echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13854test "$can_build_shared" = "no" && enable_shared=no
13855
13856# On AIX, shared libraries and static libraries use the same namespace, and
13857# are all built from PIC.
13858case $host_os in
13859aix3*)
13860  test "$enable_shared" = yes && enable_static=no
13861  if test -n "$RANLIB"; then
13862    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13863    postinstall_cmds='$RANLIB $lib'
13864  fi
13865  ;;
13866aix4* | aix5*)
13867  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13868    test "$enable_shared" = yes && enable_static=no
13869  fi
13870  ;;
13871esac
13872echo "$as_me:$LINENO: result: $enable_shared" >&5
13873echo "${ECHO_T}$enable_shared" >&6
13874
13875echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13876echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13877# Make sure either enable_shared or enable_static is yes.
13878test "$enable_shared" = yes || enable_static=yes
13879echo "$as_me:$LINENO: result: $enable_static" >&5
13880echo "${ECHO_T}$enable_static" >&6
13881
13882test "$ld_shlibs_F77" = no && can_build_shared=no
13883
13884GCC_F77="$G77"
13885LD_F77="$LD"
13886
13887lt_prog_compiler_wl_F77=
13888lt_prog_compiler_pic_F77=
13889lt_prog_compiler_static_F77=
13890
13891echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13893
13894  if test "$GCC" = yes; then
13895    lt_prog_compiler_wl_F77='-Wl,'
13896    lt_prog_compiler_static_F77='-static'
13897
13898    case $host_os in
13899      aix*)
13900      # All AIX code is PIC.
13901      if test "$host_cpu" = ia64; then
13902	# AIX 5 now supports IA64 processor
13903	lt_prog_compiler_static_F77='-Bstatic'
13904      fi
13905      ;;
13906
13907    amigaos*)
13908      # FIXME: we need at least 68020 code to build shared libraries, but
13909      # adding the `-m68020' flag to GCC prevents building anything better,
13910      # like `-m68040'.
13911      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13912      ;;
13913
13914    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
13915    | osf5*)
13916      # PIC is the default for these OSes.
13917      ;;
13918
13919    mingw* | pw32* | os2*)
13920      # This hack is so that the source file can tell whether it is being
13921      # built for inclusion in a dll (and should export symbols for example).
13922      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13923      ;;
13924
13925    darwin* | rhapsody*)
13926      # PIC is the default on this platform
13927      # Common symbols not allowed in MH_DYLIB files
13928      lt_prog_compiler_pic_F77='-fno-common'
13929      ;;
13930
13931    msdosdjgpp*)
13932      # Just because we use GCC doesn't mean we suddenly get shared libraries
13933      # on systems that don't support them.
13934      lt_prog_compiler_can_build_shared_F77=no
13935      enable_shared=no
13936      ;;
13937
13938    sysv4*MP*)
13939      if test -d /usr/nec; then
13940	lt_prog_compiler_pic_F77=-Kconform_pic
13941      fi
13942      ;;
13943
13944    hpux*)
13945      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946      # not for PA HP-UX.
13947      case $host_cpu in
13948      hppa*64*|ia64*)
13949	# +Z the default
13950	;;
13951      *)
13952	lt_prog_compiler_pic_F77='-fPIC'
13953	;;
13954      esac
13955      ;;
13956
13957    *)
13958      lt_prog_compiler_pic_F77='-fPIC'
13959      ;;
13960    esac
13961  else
13962    # PORTME Check for flag to pass linker flags through the system compiler.
13963    case $host_os in
13964    aix*)
13965      lt_prog_compiler_wl_F77='-Wl,'
13966      if test "$host_cpu" = ia64; then
13967	# AIX 5 now supports IA64 processor
13968	lt_prog_compiler_static_F77='-Bstatic'
13969      else
13970	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13971      fi
13972      ;;
13973      darwin*)
13974        # PIC is the default on this platform
13975        # Common symbols not allowed in MH_DYLIB files
13976       case $cc_basename in
13977         xlc*)
13978         lt_prog_compiler_pic_F77='-qnocommon'
13979         lt_prog_compiler_wl_F77='-Wl,'
13980         ;;
13981       esac
13982       ;;
13983
13984    mingw* | pw32* | os2*)
13985      # This hack is so that the source file can tell whether it is being
13986      # built for inclusion in a dll (and should export symbols for example).
13987      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13988      ;;
13989
13990    hpux9* | hpux10* | hpux11*)
13991      lt_prog_compiler_wl_F77='-Wl,'
13992      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13993      # not for PA HP-UX.
13994      case $host_cpu in
13995      hppa*64*|ia64*)
13996	# +Z the default
13997	;;
13998      *)
13999	lt_prog_compiler_pic_F77='+Z'
14000	;;
14001      esac
14002      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14003      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14004      ;;
14005
14006    irix5* | irix6* | nonstopux*)
14007      lt_prog_compiler_wl_F77='-Wl,'
14008      # PIC (with -KPIC) is the default.
14009      lt_prog_compiler_static_F77='-non_shared'
14010      ;;
14011
14012    newsos6)
14013      lt_prog_compiler_pic_F77='-KPIC'
14014      lt_prog_compiler_static_F77='-Bstatic'
14015      ;;
14016
14017    linux*)
14018      case $cc_basename in
14019      icc* | ecc*)
14020	lt_prog_compiler_wl_F77='-Wl,'
14021	lt_prog_compiler_pic_F77='-KPIC'
14022	lt_prog_compiler_static_F77='-static'
14023        ;;
14024      pgcc* | pgf77* | pgf90* | pgf95*)
14025        # Portland Group compilers (*not* the Pentium gcc compiler,
14026	# which looks to be a dead project)
14027	lt_prog_compiler_wl_F77='-Wl,'
14028	lt_prog_compiler_pic_F77='-fpic'
14029	lt_prog_compiler_static_F77='-Bstatic'
14030        ;;
14031      ccc*)
14032        lt_prog_compiler_wl_F77='-Wl,'
14033        # All Alpha code is PIC.
14034        lt_prog_compiler_static_F77='-non_shared'
14035        ;;
14036      esac
14037      ;;
14038
14039    osf3* | osf4* | osf5*)
14040      lt_prog_compiler_wl_F77='-Wl,'
14041      # All OSF/1 code is PIC.
14042      lt_prog_compiler_static_F77='-non_shared'
14043      ;;
14044
14045    sco3.2v5*)
14046      lt_prog_compiler_pic_F77='-Kpic'
14047      lt_prog_compiler_static_F77='-dn'
14048      ;;
14049
14050    solaris*)
14051      lt_prog_compiler_pic_F77='-KPIC'
14052      lt_prog_compiler_static_F77='-Bstatic'
14053      case $cc_basename in
14054      f77* | f90* | f95*)
14055	lt_prog_compiler_wl_F77='-Qoption ld ';;
14056      *)
14057	lt_prog_compiler_wl_F77='-Wl,';;
14058      esac
14059      ;;
14060
14061    sunos4*)
14062      lt_prog_compiler_wl_F77='-Qoption ld '
14063      lt_prog_compiler_pic_F77='-PIC'
14064      lt_prog_compiler_static_F77='-Bstatic'
14065      ;;
14066
14067    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14068      lt_prog_compiler_wl_F77='-Wl,'
14069      lt_prog_compiler_pic_F77='-KPIC'
14070      lt_prog_compiler_static_F77='-Bstatic'
14071      ;;
14072
14073    sysv4*MP*)
14074      if test -d /usr/nec ;then
14075	lt_prog_compiler_pic_F77='-Kconform_pic'
14076	lt_prog_compiler_static_F77='-Bstatic'
14077      fi
14078      ;;
14079
14080    unicos*)
14081      lt_prog_compiler_wl_F77='-Wl,'
14082      lt_prog_compiler_can_build_shared_F77=no
14083      ;;
14084
14085    uts4*)
14086      lt_prog_compiler_pic_F77='-pic'
14087      lt_prog_compiler_static_F77='-Bstatic'
14088      ;;
14089
14090    *)
14091      lt_prog_compiler_can_build_shared_F77=no
14092      ;;
14093    esac
14094  fi
14095
14096echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14098
14099#
14100# Check to make sure the PIC flag actually works.
14101#
14102if test -n "$lt_prog_compiler_pic_F77"; then
14103
14104echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14106if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107  echo $ECHO_N "(cached) $ECHO_C" >&6
14108else
14109  lt_prog_compiler_pic_works_F77=no
14110  ac_outfile=conftest.$ac_objext
14111   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14112   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14113   # Insert the option either (1) after the last *FLAGS variable, or
14114   # (2) before a word containing "conftest.", or (3) at the end.
14115   # Note that $ac_compile itself does not contain backslashes and begins
14116   # with a dollar sign (not a hyphen), so the echo should work correctly.
14117   # The option is referenced via a variable to avoid confusing sed.
14118   lt_compile=`echo "$ac_compile" | $SED \
14119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121   -e 's:$: $lt_compiler_flag:'`
14122   (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123   (eval "$lt_compile" 2>conftest.err)
14124   ac_status=$?
14125   cat conftest.err >&5
14126   echo "$as_me:14126: \$? = $ac_status" >&5
14127   if (exit $ac_status) && test -s "$ac_outfile"; then
14128     # The compiler can only warn and ignore the option if not recognized
14129     # So say no if there are warnings other than the usual output.
14130     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14131     $SED '/^$/d' conftest.err >conftest.er2
14132     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14133       lt_prog_compiler_pic_works_F77=yes
14134     fi
14135   fi
14136   $rm conftest*
14137
14138fi
14139echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14141
14142if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14143    case $lt_prog_compiler_pic_F77 in
14144     "" | " "*) ;;
14145     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14146     esac
14147else
14148    lt_prog_compiler_pic_F77=
14149     lt_prog_compiler_can_build_shared_F77=no
14150fi
14151
14152fi
14153case $host_os in
14154  # For platforms which do not support PIC, -DPIC is meaningless:
14155  *djgpp*)
14156    lt_prog_compiler_pic_F77=
14157    ;;
14158  *)
14159    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14160    ;;
14161esac
14162
14163echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14164echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14165if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14166  echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168  lt_cv_prog_compiler_c_o_F77=no
14169   $rm -r conftest 2>/dev/null
14170   mkdir conftest
14171   cd conftest
14172   mkdir out
14173   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14174
14175   lt_compiler_flag="-o out/conftest2.$ac_objext"
14176   # Insert the option either (1) after the last *FLAGS variable, or
14177   # (2) before a word containing "conftest.", or (3) at the end.
14178   # Note that $ac_compile itself does not contain backslashes and begins
14179   # with a dollar sign (not a hyphen), so the echo should work correctly.
14180   lt_compile=`echo "$ac_compile" | $SED \
14181   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14182   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14183   -e 's:$: $lt_compiler_flag:'`
14184   (eval echo "\"\$as_me:14184: $lt_compile\"" >&5)
14185   (eval "$lt_compile" 2>out/conftest.err)
14186   ac_status=$?
14187   cat out/conftest.err >&5
14188   echo "$as_me:14188: \$? = $ac_status" >&5
14189   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14190   then
14191     # The compiler can only warn and ignore the option if not recognized
14192     # So say no if there are warnings
14193     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14194     $SED '/^$/d' out/conftest.err >out/conftest.er2
14195     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14196       lt_cv_prog_compiler_c_o_F77=yes
14197     fi
14198   fi
14199   chmod u+w . 2>&5
14200   $rm conftest*
14201   # SGI C++ compiler will create directory out/ii_files/ for
14202   # template instantiation
14203   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14204   $rm out/* && rmdir out
14205   cd ..
14206   rmdir conftest
14207   $rm conftest*
14208
14209fi
14210echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14211echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14212
14213
14214hard_links="nottested"
14215if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14216  # do not overwrite the value of need_locks provided by the user
14217  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14218echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14219  hard_links=yes
14220  $rm conftest*
14221  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14222  touch conftest.a
14223  ln conftest.a conftest.b 2>&5 || hard_links=no
14224  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14225  echo "$as_me:$LINENO: result: $hard_links" >&5
14226echo "${ECHO_T}$hard_links" >&6
14227  if test "$hard_links" = no; then
14228    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14229echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14230    need_locks=warn
14231  fi
14232else
14233  need_locks=no
14234fi
14235
14236echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14237echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14238
14239  runpath_var=
14240  allow_undefined_flag_F77=
14241  enable_shared_with_static_runtimes_F77=no
14242  archive_cmds_F77=
14243  archive_expsym_cmds_F77=
14244  old_archive_From_new_cmds_F77=
14245  old_archive_from_expsyms_cmds_F77=
14246  export_dynamic_flag_spec_F77=
14247  whole_archive_flag_spec_F77=
14248  thread_safe_flag_spec_F77=
14249  hardcode_libdir_flag_spec_F77=
14250  hardcode_libdir_flag_spec_ld_F77=
14251  hardcode_libdir_separator_F77=
14252  hardcode_direct_F77=no
14253  hardcode_minus_L_F77=no
14254  hardcode_shlibpath_var_F77=unsupported
14255  link_all_deplibs_F77=unknown
14256  hardcode_automatic_F77=no
14257  module_cmds_F77=
14258  module_expsym_cmds_F77=
14259  always_export_symbols_F77=no
14260  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14261  # include_expsyms should be a list of space-separated symbols to be *always*
14262  # included in the symbol list
14263  include_expsyms_F77=
14264  # exclude_expsyms can be an extended regexp of symbols to exclude
14265  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14266  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14267  # as well as any symbol that contains `d'.
14268  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14269  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14270  # platforms (ab)use it in PIC code, but their linkers get confused if
14271  # the symbol is explicitly referenced.  Since portable code cannot
14272  # rely on this symbol name, it's probably fine to never include it in
14273  # preloaded symbol tables.
14274  extract_expsyms_cmds=
14275  # Just being paranoid about ensuring that cc_basename is set.
14276  for cc_temp in $compiler""; do
14277  case $cc_temp in
14278    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14279    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14280    \-*) ;;
14281    *) break;;
14282  esac
14283done
14284cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14285
14286  case $host_os in
14287  cygwin* | mingw* | pw32*)
14288    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14289    # When not using gcc, we currently assume that we are using
14290    # Microsoft Visual C++.
14291    if test "$GCC" != yes; then
14292      with_gnu_ld=no
14293    fi
14294    ;;
14295  openbsd*)
14296    with_gnu_ld=no
14297    ;;
14298  esac
14299
14300  ld_shlibs_F77=yes
14301  if test "$with_gnu_ld" = yes; then
14302    # If archive_cmds runs LD, not CC, wlarc should be empty
14303    wlarc='${wl}'
14304
14305    # Set some defaults for GNU ld with shared library support. These
14306    # are reset later if shared libraries are not supported. Putting them
14307    # here allows them to be overridden if necessary.
14308    runpath_var=LD_RUN_PATH
14309    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14310    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14311    # ancient GNU ld didn't support --whole-archive et. al.
14312    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14313	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14314      else
14315  	whole_archive_flag_spec_F77=
14316    fi
14317    supports_anon_versioning=no
14318    case `$LD -v 2>/dev/null` in
14319      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14320      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14321      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14322      *\ 2.11.*) ;; # other 2.11 versions
14323      *) supports_anon_versioning=yes ;;
14324    esac
14325
14326    # See if GNU ld supports shared libraries.
14327    case $host_os in
14328    aix3* | aix4* | aix5*)
14329      # On AIX/PPC, the GNU linker is very broken
14330      if test "$host_cpu" != ia64; then
14331	ld_shlibs_F77=no
14332	cat <<EOF 1>&2
14333
14334*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14335*** to be unable to reliably create shared libraries on AIX.
14336*** Therefore, libtool is disabling shared libraries support.  If you
14337*** really care for shared libraries, you may want to modify your PATH
14338*** so that a non-GNU linker is found, and then restart.
14339
14340EOF
14341      fi
14342      ;;
14343
14344    amigaos*)
14345      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)'
14346      hardcode_libdir_flag_spec_F77='-L$libdir'
14347      hardcode_minus_L_F77=yes
14348
14349      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14350      # that the semantics of dynamic libraries on AmigaOS, at least up
14351      # to version 4, is to share data among multiple programs linked
14352      # with the same dynamic library.  Since this doesn't match the
14353      # behavior of shared libraries on other platforms, we can't use
14354      # them.
14355      ld_shlibs_F77=no
14356      ;;
14357
14358    beos*)
14359      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14360	allow_undefined_flag_F77=unsupported
14361	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14362	# support --undefined.  This deserves some investigation.  FIXME
14363	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14364      else
14365	ld_shlibs_F77=no
14366      fi
14367      ;;
14368
14369    cygwin* | mingw* | pw32*)
14370      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14371      # as there is no search path for DLLs.
14372      hardcode_libdir_flag_spec_F77='-L$libdir'
14373      allow_undefined_flag_F77=unsupported
14374      always_export_symbols_F77=no
14375      enable_shared_with_static_runtimes_F77=yes
14376      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14377
14378      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14379        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14380	# If the export-symbols file already is a .def file (1st line
14381	# is EXPORTS), use it as is; otherwise, prepend...
14382	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14383	  cp $export_symbols $output_objdir/$soname.def;
14384	else
14385	  echo EXPORTS > $output_objdir/$soname.def;
14386	  cat $export_symbols >> $output_objdir/$soname.def;
14387	fi~
14388	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14389      else
14390	ld_shlibs_F77=no
14391      fi
14392      ;;
14393
14394    haiku*)
14395      allow_undefined_flag_F77=unsupported
14396      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397      ;;
14398
14399    linux*)
14400      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14401	tmp_addflag=
14402	case $cc_basename,$host_cpu in
14403	pgcc*)				# Portland Group C compiler
14404	  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'
14405	  tmp_addflag=' $pic_flag'
14406	  ;;
14407	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14408	  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'
14409	  tmp_addflag=' $pic_flag -Mnomain' ;;
14410	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14411	  tmp_addflag=' -i_dynamic' ;;
14412	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14413	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14414	ifc* | ifort*)			# Intel Fortran compiler
14415	  tmp_addflag=' -nofor_main' ;;
14416	esac
14417	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14418
14419	if test $supports_anon_versioning = yes; then
14420	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14421  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14422  $echo "local: *; };" >> $output_objdir/$libname.ver~
14423	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14424	fi
14425      else
14426	ld_shlibs_F77=no
14427      fi
14428      ;;
14429
14430    netbsd*)
14431      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14432	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14433	wlarc=
14434      else
14435	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14437      fi
14438      ;;
14439
14440    solaris* | sysv5*)
14441      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14442	ld_shlibs_F77=no
14443	cat <<EOF 1>&2
14444
14445*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14446*** create shared libraries on Solaris systems.  Therefore, libtool
14447*** is disabling shared libraries support.  We urge you to upgrade GNU
14448*** binutils to release 2.9.1 or newer.  Another option is to modify
14449*** your PATH or compiler configuration so that the native linker is
14450*** used, and then restart.
14451
14452EOF
14453      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14454	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14455	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14456      else
14457	ld_shlibs_F77=no
14458      fi
14459      ;;
14460
14461    sunos4*)
14462      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14463      wlarc=
14464      hardcode_direct_F77=yes
14465      hardcode_shlibpath_var_F77=no
14466      ;;
14467
14468    *)
14469      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14470	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14471	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14472      else
14473	ld_shlibs_F77=no
14474      fi
14475      ;;
14476    esac
14477
14478    if test "$ld_shlibs_F77" = no; then
14479      runpath_var=
14480      hardcode_libdir_flag_spec_F77=
14481      export_dynamic_flag_spec_F77=
14482      whole_archive_flag_spec_F77=
14483    fi
14484  else
14485    # PORTME fill in a description of your system's linker (not GNU ld)
14486    case $host_os in
14487    aix3*)
14488      allow_undefined_flag_F77=unsupported
14489      always_export_symbols_F77=yes
14490      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'
14491      # Note: this linker hardcodes the directories in LIBPATH if there
14492      # are no directories specified by -L.
14493      hardcode_minus_L_F77=yes
14494      if test "$GCC" = yes && test -z "$link_static_flag"; then
14495	# Neither direct hardcoding nor static linking is supported with a
14496	# broken collect2.
14497	hardcode_direct_F77=unsupported
14498      fi
14499      ;;
14500
14501    aix4* | aix5*)
14502      if test "$host_cpu" = ia64; then
14503	# On IA64, the linker does run time linking by default, so we don't
14504	# have to do anything special.
14505	aix_use_runtimelinking=no
14506	exp_sym_flag='-Bexport'
14507	no_entry_flag=""
14508      else
14509	# If we're using GNU nm, then we don't want the "-C" option.
14510	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14511	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14512	  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'
14513	else
14514	  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'
14515	fi
14516	aix_use_runtimelinking=no
14517
14518	# Test if we are trying to use run time linking or normal
14519	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14520	# need to do runtime linking.
14521	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14522	  for ld_flag in $LDFLAGS; do
14523  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14524  	    aix_use_runtimelinking=yes
14525  	    break
14526  	  fi
14527	  done
14528	esac
14529
14530	exp_sym_flag='-bexport'
14531	no_entry_flag='-bnoentry'
14532      fi
14533
14534      # When large executables or shared objects are built, AIX ld can
14535      # have problems creating the table of contents.  If linking a library
14536      # or program results in "error TOC overflow" add -mminimal-toc to
14537      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14538      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14539
14540      archive_cmds_F77=''
14541      hardcode_direct_F77=yes
14542      hardcode_libdir_separator_F77=':'
14543      link_all_deplibs_F77=yes
14544
14545      if test "$GCC" = yes; then
14546	case $host_os in aix4.[012]|aix4.[012].*)
14547	# We only want to do this on AIX 4.2 and lower, the check
14548	# below for broken collect2 doesn't work under 4.3+
14549	  collect2name=`${CC} -print-prog-name=collect2`
14550	  if test -f "$collect2name" && \
14551  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14552	  then
14553  	  # We have reworked collect2
14554  	  hardcode_direct_F77=yes
14555	  else
14556  	  # We have old collect2
14557  	  hardcode_direct_F77=unsupported
14558  	  # It fails to find uninstalled libraries when the uninstalled
14559  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14560  	  # to unsupported forces relinking
14561  	  hardcode_minus_L_F77=yes
14562  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14563  	  hardcode_libdir_separator_F77=
14564	  fi
14565	esac
14566	shared_flag='-shared'
14567	if test "$aix_use_runtimelinking" = yes; then
14568	  shared_flag="$shared_flag "'${wl}-G'
14569	fi
14570      else
14571	# not using gcc
14572	if test "$host_cpu" = ia64; then
14573  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14574  	# chokes on -Wl,-G. The following line is correct:
14575	  shared_flag='-G'
14576	else
14577  	if test "$aix_use_runtimelinking" = yes; then
14578	    shared_flag='${wl}-G'
14579	  else
14580	    shared_flag='${wl}-bM:SRE'
14581  	fi
14582	fi
14583      fi
14584
14585      # It seems that -bexpall does not export symbols beginning with
14586      # underscore (_), so it is better to generate a list of symbols to export.
14587      always_export_symbols_F77=yes
14588      if test "$aix_use_runtimelinking" = yes; then
14589	# Warning - without using the other runtime loading flags (-brtl),
14590	# -berok will link without error, but may produce a broken library.
14591	allow_undefined_flag_F77='-berok'
14592       # Determine the default libpath from the value encoded in an empty executable.
14593       cat >conftest.$ac_ext <<_ACEOF
14594      program main
14595
14596      end
14597_ACEOF
14598rm -f conftest.$ac_objext conftest$ac_exeext
14599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600  (eval $ac_link) 2>conftest.er1
14601  ac_status=$?
14602  grep -v '^ *+' conftest.er1 >conftest.err
14603  rm -f conftest.er1
14604  cat conftest.err >&5
14605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606  (exit $ac_status); } &&
14607	 { ac_try='test -z "$ac_f77_werror_flag"
14608			 || test ! -s conftest.err'
14609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610  (eval $ac_try) 2>&5
14611  ac_status=$?
14612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613  (exit $ac_status); }; } &&
14614	 { ac_try='test -s conftest$ac_exeext'
14615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616  (eval $ac_try) 2>&5
14617  ac_status=$?
14618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619  (exit $ac_status); }; }; then
14620
14621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14622}'`
14623# Check for a 64-bit object if we didn't find anything.
14624if 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; }
14625}'`; fi
14626else
14627  echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630fi
14631rm -f conftest.err conftest.$ac_objext \
14632      conftest$ac_exeext conftest.$ac_ext
14633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14634
14635       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14636	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14637       else
14638	if test "$host_cpu" = ia64; then
14639	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14640	  allow_undefined_flag_F77="-z nodefs"
14641	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14642	else
14643	 # Determine the default libpath from the value encoded in an empty executable.
14644	 cat >conftest.$ac_ext <<_ACEOF
14645      program main
14646
14647      end
14648_ACEOF
14649rm -f conftest.$ac_objext conftest$ac_exeext
14650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651  (eval $ac_link) 2>conftest.er1
14652  ac_status=$?
14653  grep -v '^ *+' conftest.er1 >conftest.err
14654  rm -f conftest.er1
14655  cat conftest.err >&5
14656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657  (exit $ac_status); } &&
14658	 { ac_try='test -z "$ac_f77_werror_flag"
14659			 || test ! -s conftest.err'
14660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661  (eval $ac_try) 2>&5
14662  ac_status=$?
14663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664  (exit $ac_status); }; } &&
14665	 { ac_try='test -s conftest$ac_exeext'
14666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667  (eval $ac_try) 2>&5
14668  ac_status=$?
14669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670  (exit $ac_status); }; }; then
14671
14672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14673}'`
14674# Check for a 64-bit object if we didn't find anything.
14675if 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; }
14676}'`; fi
14677else
14678  echo "$as_me: failed program was:" >&5
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
14681fi
14682rm -f conftest.err conftest.$ac_objext \
14683      conftest$ac_exeext conftest.$ac_ext
14684if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14685
14686	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14687	  # Warning - without using the other run time loading flags,
14688	  # -berok will link without error, but may produce a broken library.
14689	  no_undefined_flag_F77=' ${wl}-bernotok'
14690	  allow_undefined_flag_F77=' ${wl}-berok'
14691	  # -bexpall does not export symbols beginning with underscore (_)
14692	  always_export_symbols_F77=yes
14693	  # Exported symbols can be pulled into shared objects from archives
14694	  whole_archive_flag_spec_F77=' '
14695	  archive_cmds_need_lc_F77=yes
14696	  # This is similar to how AIX traditionally builds its shared libraries.
14697	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14698	fi
14699      fi
14700      ;;
14701
14702    amigaos*)
14703      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)'
14704      hardcode_libdir_flag_spec_F77='-L$libdir'
14705      hardcode_minus_L_F77=yes
14706      # see comment about different semantics on the GNU ld section
14707      ld_shlibs_F77=no
14708      ;;
14709
14710    bsdi[45]*)
14711      export_dynamic_flag_spec_F77=-rdynamic
14712      ;;
14713
14714    cygwin* | mingw* | pw32*)
14715      # When not using gcc, we currently assume that we are using
14716      # Microsoft Visual C++.
14717      # hardcode_libdir_flag_spec is actually meaningless, as there is
14718      # no search path for DLLs.
14719      hardcode_libdir_flag_spec_F77=' '
14720      allow_undefined_flag_F77=unsupported
14721      # Tell ltmain to make .lib files, not .a files.
14722      libext=lib
14723      # Tell ltmain to make .dll files, not .so files.
14724      shrext_cmds=".dll"
14725      # FIXME: Setting linknames here is a bad hack.
14726      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14727      # The linker will automatically build a .lib file if we build a DLL.
14728      old_archive_From_new_cmds_F77='true'
14729      # FIXME: Should let the user specify the lib program.
14730      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14731      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14732      enable_shared_with_static_runtimes_F77=yes
14733      ;;
14734
14735    darwin* | rhapsody*)
14736      case $host_os in
14737        rhapsody* | darwin1.[012])
14738         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14739         ;;
14740       *) # Darwin 1.3 on
14741         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14742           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14743         else
14744           case ${MACOSX_DEPLOYMENT_TARGET} in
14745             10.[012])
14746               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14747               ;;
14748             10.*)
14749               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14750               ;;
14751           esac
14752         fi
14753         ;;
14754      esac
14755      archive_cmds_need_lc_F77=no
14756      hardcode_direct_F77=no
14757      hardcode_automatic_F77=yes
14758      hardcode_shlibpath_var_F77=unsupported
14759      whole_archive_flag_spec_F77=''
14760      link_all_deplibs_F77=yes
14761    if test "$GCC" = yes ; then
14762    	output_verbose_link_cmd='echo'
14763        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14764      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14765      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14766      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}'
14767      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}'
14768    else
14769      case $cc_basename in
14770        xlc*)
14771         output_verbose_link_cmd='echo'
14772         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14773         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14774          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14775         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}'
14776          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}'
14777          ;;
14778       *)
14779         ld_shlibs_F77=no
14780          ;;
14781      esac
14782    fi
14783      ;;
14784
14785    dgux*)
14786      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787      hardcode_libdir_flag_spec_F77='-L$libdir'
14788      hardcode_shlibpath_var_F77=no
14789      ;;
14790
14791    freebsd1*)
14792      ld_shlibs_F77=no
14793      ;;
14794
14795    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14796    # support.  Future versions do this automatically, but an explicit c++rt0.o
14797    # does not break anything, and helps significantly (at the cost of a little
14798    # extra space).
14799    freebsd2.2*)
14800      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14801      hardcode_libdir_flag_spec_F77='-R$libdir'
14802      hardcode_direct_F77=yes
14803      hardcode_shlibpath_var_F77=no
14804      ;;
14805
14806    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14807    freebsd2*)
14808      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14809      hardcode_direct_F77=yes
14810      hardcode_minus_L_F77=yes
14811      hardcode_shlibpath_var_F77=no
14812      ;;
14813
14814    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14815    freebsd* | kfreebsd*-gnu | dragonfly*)
14816      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14817      hardcode_libdir_flag_spec_F77='-R$libdir'
14818      hardcode_direct_F77=yes
14819      hardcode_shlibpath_var_F77=no
14820      ;;
14821
14822    hpux9*)
14823      if test "$GCC" = yes; then
14824	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'
14825      else
14826	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'
14827      fi
14828      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14829      hardcode_libdir_separator_F77=:
14830      hardcode_direct_F77=yes
14831
14832      # hardcode_minus_L: Not really in the search PATH,
14833      # but as the default location of the library.
14834      hardcode_minus_L_F77=yes
14835      export_dynamic_flag_spec_F77='${wl}-E'
14836      ;;
14837
14838    hpux10* | hpux11*)
14839      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14840	case $host_cpu in
14841	hppa*64*|ia64*)
14842	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14843	  ;;
14844	*)
14845	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14846	  ;;
14847	esac
14848      else
14849	case $host_cpu in
14850	hppa*64*|ia64*)
14851	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14852	  ;;
14853	*)
14854	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14855	  ;;
14856	esac
14857      fi
14858      if test "$with_gnu_ld" = no; then
14859	case $host_cpu in
14860	hppa*64*)
14861	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14862	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14863	  hardcode_libdir_separator_F77=:
14864	  hardcode_direct_F77=no
14865	  hardcode_shlibpath_var_F77=no
14866	  ;;
14867	ia64*)
14868	  hardcode_libdir_flag_spec_F77='-L$libdir'
14869	  hardcode_direct_F77=no
14870	  hardcode_shlibpath_var_F77=no
14871
14872	  # hardcode_minus_L: Not really in the search PATH,
14873	  # but as the default location of the library.
14874	  hardcode_minus_L_F77=yes
14875	  ;;
14876	*)
14877	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14878	  hardcode_libdir_separator_F77=:
14879	  hardcode_direct_F77=yes
14880	  export_dynamic_flag_spec_F77='${wl}-E'
14881
14882	  # hardcode_minus_L: Not really in the search PATH,
14883	  # but as the default location of the library.
14884	  hardcode_minus_L_F77=yes
14885	  ;;
14886	esac
14887      fi
14888      ;;
14889
14890    irix5* | irix6* | nonstopux*)
14891      if test "$GCC" = yes; then
14892	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'
14893      else
14894	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'
14895	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14896      fi
14897      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14898      hardcode_libdir_separator_F77=:
14899      link_all_deplibs_F77=yes
14900      ;;
14901
14902    netbsd*)
14903      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14904	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14905      else
14906	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14907      fi
14908      hardcode_libdir_flag_spec_F77='-R$libdir'
14909      hardcode_direct_F77=yes
14910      hardcode_shlibpath_var_F77=no
14911      ;;
14912
14913    newsos6)
14914      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14915      hardcode_direct_F77=yes
14916      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14917      hardcode_libdir_separator_F77=:
14918      hardcode_shlibpath_var_F77=no
14919      ;;
14920
14921    openbsd*)
14922      hardcode_direct_F77=yes
14923      hardcode_shlibpath_var_F77=no
14924      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14925	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14926	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14927	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14928	export_dynamic_flag_spec_F77='${wl}-E'
14929      else
14930       case $host_os in
14931	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14932	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14933	   hardcode_libdir_flag_spec_F77='-R$libdir'
14934	   ;;
14935	 *)
14936	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14937	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14938	   ;;
14939       esac
14940      fi
14941      ;;
14942
14943    os2*)
14944      hardcode_libdir_flag_spec_F77='-L$libdir'
14945      hardcode_minus_L_F77=yes
14946      allow_undefined_flag_F77=unsupported
14947      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'
14948      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14949      ;;
14950
14951    osf3*)
14952      if test "$GCC" = yes; then
14953	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14954	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'
14955      else
14956	allow_undefined_flag_F77=' -expect_unresolved \*'
14957	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'
14958      fi
14959      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14960      hardcode_libdir_separator_F77=:
14961      ;;
14962
14963    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14964      if test "$GCC" = yes; then
14965	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14966	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'
14967	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14968      else
14969	allow_undefined_flag_F77=' -expect_unresolved \*'
14970	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'
14971	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~
14972	$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'
14973
14974	# Both c and cxx compiler support -rpath directly
14975	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14976      fi
14977      hardcode_libdir_separator_F77=:
14978      ;;
14979
14980    sco3.2v5*)
14981      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982      hardcode_shlibpath_var_F77=no
14983      export_dynamic_flag_spec_F77='${wl}-Bexport'
14984      runpath_var=LD_RUN_PATH
14985      hardcode_runpath_var=yes
14986      ;;
14987
14988    solaris*)
14989      no_undefined_flag_F77=' -z text'
14990      if test "$GCC" = yes; then
14991	wlarc='${wl}'
14992	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14993	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14994	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14995      else
14996	wlarc=''
14997	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14999  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15000      fi
15001      hardcode_libdir_flag_spec_F77='-R$libdir'
15002      hardcode_shlibpath_var_F77=no
15003      case $host_os in
15004      solaris2.[0-5] | solaris2.[0-5].*) ;;
15005      *)
15006 	# The compiler driver will combine linker options so we
15007 	# cannot just pass the convience library names through
15008 	# without $wl, iff we do not link with $LD.
15009 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15010 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15011 	case $wlarc in
15012 	'')
15013 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15014 	*)
15015 	  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' ;;
15016 	esac ;;
15017      esac
15018      link_all_deplibs_F77=yes
15019      ;;
15020
15021    sunos4*)
15022      if test "x$host_vendor" = xsequent; then
15023	# Use $CC to link under sequent, because it throws in some extra .o
15024	# files that make .init and .fini sections work.
15025	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15026      else
15027	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15028      fi
15029      hardcode_libdir_flag_spec_F77='-L$libdir'
15030      hardcode_direct_F77=yes
15031      hardcode_minus_L_F77=yes
15032      hardcode_shlibpath_var_F77=no
15033      ;;
15034
15035    sysv4)
15036      case $host_vendor in
15037	sni)
15038	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039	  hardcode_direct_F77=yes # is this really true???
15040	;;
15041	siemens)
15042	  ## LD is ld it makes a PLAMLIB
15043	  ## CC just makes a GrossModule.
15044	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15045	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15046	  hardcode_direct_F77=no
15047        ;;
15048	motorola)
15049	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15050	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15051	;;
15052      esac
15053      runpath_var='LD_RUN_PATH'
15054      hardcode_shlibpath_var_F77=no
15055      ;;
15056
15057    sysv4.3*)
15058      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059      hardcode_shlibpath_var_F77=no
15060      export_dynamic_flag_spec_F77='-Bexport'
15061      ;;
15062
15063    sysv4*MP*)
15064      if test -d /usr/nec; then
15065	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066	hardcode_shlibpath_var_F77=no
15067	runpath_var=LD_RUN_PATH
15068	hardcode_runpath_var=yes
15069	ld_shlibs_F77=yes
15070      fi
15071      ;;
15072
15073    sysv4.2uw2*)
15074      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15075      hardcode_direct_F77=yes
15076      hardcode_minus_L_F77=no
15077      hardcode_shlibpath_var_F77=no
15078      hardcode_runpath_var=yes
15079      runpath_var=LD_RUN_PATH
15080      ;;
15081
15082   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15083      no_undefined_flag_F77='${wl}-z ${wl}text'
15084      if test "$GCC" = yes; then
15085	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086      else
15087	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088      fi
15089      runpath_var='LD_RUN_PATH'
15090      hardcode_shlibpath_var_F77=no
15091      ;;
15092
15093    sysv5*)
15094      no_undefined_flag_F77=' -z text'
15095      # $CC -shared without GNU ld will not create a library from C++
15096      # object files and a static libstdc++, better avoid it by now
15097      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15099  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15100      hardcode_libdir_flag_spec_F77=
15101      hardcode_shlibpath_var_F77=no
15102      runpath_var='LD_RUN_PATH'
15103      ;;
15104
15105    uts4*)
15106      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107      hardcode_libdir_flag_spec_F77='-L$libdir'
15108      hardcode_shlibpath_var_F77=no
15109      ;;
15110
15111    *)
15112      ld_shlibs_F77=no
15113      ;;
15114    esac
15115  fi
15116
15117echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15118echo "${ECHO_T}$ld_shlibs_F77" >&6
15119test "$ld_shlibs_F77" = no && can_build_shared=no
15120
15121variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15122if test "$GCC" = yes; then
15123  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15124fi
15125
15126#
15127# Do we need to explicitly link libc?
15128#
15129case "x$archive_cmds_need_lc_F77" in
15130x|xyes)
15131  # Assume -lc should be added
15132  archive_cmds_need_lc_F77=yes
15133
15134  if test "$enable_shared" = yes && test "$GCC" = yes; then
15135    case $archive_cmds_F77 in
15136    *'~'*)
15137      # FIXME: we may have to deal with multi-command sequences.
15138      ;;
15139    '$CC '*)
15140      # Test whether the compiler implicitly links with -lc since on some
15141      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15142      # to ld, don't add -lc before -lgcc.
15143      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15144echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15145      $rm conftest*
15146      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15147
15148      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149  (eval $ac_compile) 2>&5
15150  ac_status=$?
15151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152  (exit $ac_status); } 2>conftest.err; then
15153        soname=conftest
15154        lib=conftest
15155        libobjs=conftest.$ac_objext
15156        deplibs=
15157        wl=$lt_prog_compiler_wl_F77
15158        compiler_flags=-v
15159        linker_flags=-v
15160        verstring=
15161        output_objdir=.
15162        libname=conftest
15163        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15164        allow_undefined_flag_F77=
15165        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15166  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15167  ac_status=$?
15168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169  (exit $ac_status); }
15170        then
15171	  archive_cmds_need_lc_F77=no
15172        else
15173	  archive_cmds_need_lc_F77=yes
15174        fi
15175        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15176      else
15177        cat conftest.err 1>&5
15178      fi
15179      $rm conftest*
15180      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15181echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15182      ;;
15183    esac
15184  fi
15185  ;;
15186esac
15187
15188echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15189echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15190library_names_spec=
15191libname_spec='lib$name'
15192soname_spec=
15193shrext_cmds=".so"
15194postinstall_cmds=
15195postuninstall_cmds=
15196finish_cmds=
15197finish_eval=
15198shlibpath_var=
15199shlibpath_overrides_runpath=unknown
15200version_type=none
15201dynamic_linker="$host_os ld.so"
15202sys_lib_dlsearch_path_spec="/lib /usr/lib"
15203if test "$GCC" = yes; then
15204  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15205  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15206    # if the path contains ";" then we assume it to be the separator
15207    # otherwise default to the standard path separator (i.e. ":") - it is
15208    # assumed that no part of a normal pathname contains ";" but that should
15209    # okay in the real world where ";" in dirpaths is itself problematic.
15210    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15211  else
15212    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15213  fi
15214else
15215  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15216fi
15217need_lib_prefix=unknown
15218hardcode_into_libs=no
15219
15220# when you set need_version to no, make sure it does not cause -set_version
15221# flags to be left without arguments
15222need_version=unknown
15223
15224case $host_os in
15225aix3*)
15226  version_type=linux
15227  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15228  shlibpath_var=LIBPATH
15229
15230  # AIX 3 has no versioning support, so we append a major version to the name.
15231  soname_spec='${libname}${release}${shared_ext}$major'
15232  ;;
15233
15234aix4* | aix5*)
15235  version_type=linux
15236  need_lib_prefix=no
15237  need_version=no
15238  hardcode_into_libs=yes
15239  if test "$host_cpu" = ia64; then
15240    # AIX 5 supports IA64
15241    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15242    shlibpath_var=LD_LIBRARY_PATH
15243  else
15244    # With GCC up to 2.95.x, collect2 would create an import file
15245    # for dependence libraries.  The import file would start with
15246    # the line `#! .'.  This would cause the generated library to
15247    # depend on `.', always an invalid library.  This was fixed in
15248    # development snapshots of GCC prior to 3.0.
15249    case $host_os in
15250      aix4 | aix4.[01] | aix4.[01].*)
15251      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15252	   echo ' yes '
15253	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15254	:
15255      else
15256	can_build_shared=no
15257      fi
15258      ;;
15259    esac
15260    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15261    # soname into executable. Probably we can add versioning support to
15262    # collect2, so additional links can be useful in future.
15263    if test "$aix_use_runtimelinking" = yes; then
15264      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15265      # instead of lib<name>.a to let people know that these are not
15266      # typical AIX shared libraries.
15267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268    else
15269      # We preserve .a as extension for shared libraries through AIX4.2
15270      # and later when we are not doing run time linking.
15271      library_names_spec='${libname}${release}.a $libname.a'
15272      soname_spec='${libname}${release}${shared_ext}$major'
15273    fi
15274    shlibpath_var=LIBPATH
15275  fi
15276  ;;
15277
15278amigaos*)
15279  library_names_spec='$libname.ixlibrary $libname.a'
15280  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15281  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'
15282  ;;
15283
15284beos*)
15285  library_names_spec='${libname}${shared_ext}'
15286  dynamic_linker="$host_os ld.so"
15287  shlibpath_var=LIBRARY_PATH
15288  ;;
15289
15290bsdi[45]*)
15291  version_type=linux
15292  need_version=no
15293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294  soname_spec='${libname}${release}${shared_ext}$major'
15295  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15296  shlibpath_var=LD_LIBRARY_PATH
15297  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15298  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15299  # the default ld.so.conf also contains /usr/contrib/lib and
15300  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15301  # libtool to hard-code these into programs
15302  ;;
15303
15304cygwin* | mingw* | pw32*)
15305  version_type=windows
15306  shrext_cmds=".dll"
15307  need_version=no
15308  need_lib_prefix=no
15309
15310  case $GCC,$host_os in
15311  yes,cygwin* | yes,mingw* | yes,pw32*)
15312    library_names_spec='$libname.dll.a'
15313    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15314    postinstall_cmds='base_file=`basename \${file}`~
15315      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15316      dldir=$destdir/`dirname \$dlpath`~
15317      test -d \$dldir || mkdir -p \$dldir~
15318      $install_prog $dir/$dlname \$dldir/$dlname~
15319      chmod a+x \$dldir/$dlname'
15320    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15321      dlpath=$dir/\$dldll~
15322       $rm \$dlpath'
15323    shlibpath_overrides_runpath=yes
15324
15325    case $host_os in
15326    cygwin*)
15327      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15328      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15330      ;;
15331    mingw*)
15332      # MinGW DLLs use traditional 'lib' prefix
15333      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15334      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15335      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15336        # It is most probably a Windows format PATH printed by
15337        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15338        # path with ; separators, and with drive letters. We can handle the
15339        # drive letters (cygwin fileutils understands them), so leave them,
15340        # especially as we might pass files found there to a mingw objdump,
15341        # which wouldn't understand a cygwinified path. Ahh.
15342        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15343      else
15344        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15345      fi
15346      ;;
15347    pw32*)
15348      # pw32 DLLs use 'pw' prefix rather than 'lib'
15349      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15350      ;;
15351    esac
15352    ;;
15353
15354  *)
15355    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15356    ;;
15357  esac
15358  dynamic_linker='Win32 ld.exe'
15359  # FIXME: first we should search . and the directory the executable is in
15360  shlibpath_var=PATH
15361  ;;
15362
15363darwin* | rhapsody*)
15364  dynamic_linker="$host_os dyld"
15365  version_type=darwin
15366  need_lib_prefix=no
15367  need_version=no
15368  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15369  soname_spec='${libname}${release}${major}$shared_ext'
15370  shlibpath_overrides_runpath=yes
15371  shlibpath_var=DYLD_LIBRARY_PATH
15372  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15373  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15374  if test "$GCC" = yes; then
15375    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"`
15376  else
15377    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15378  fi
15379  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15380  ;;
15381
15382dgux*)
15383  version_type=linux
15384  need_lib_prefix=no
15385  need_version=no
15386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15387  soname_spec='${libname}${release}${shared_ext}$major'
15388  shlibpath_var=LD_LIBRARY_PATH
15389  ;;
15390
15391freebsd1*)
15392  dynamic_linker=no
15393  ;;
15394
15395haiku*)
15396  library_names_spec='${libname}${shared_ext}'
15397  dynamic_linker="$host_os ld.so"
15398  shlibpath_var=LIBRARY_PATH
15399  ;;
15400
15401kfreebsd*-gnu)
15402  version_type=linux
15403  need_lib_prefix=no
15404  need_version=no
15405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406  soname_spec='${libname}${release}${shared_ext}$major'
15407  shlibpath_var=LD_LIBRARY_PATH
15408  shlibpath_overrides_runpath=no
15409  hardcode_into_libs=yes
15410  dynamic_linker='GNU ld.so'
15411  ;;
15412
15413freebsd* | dragonfly*)
15414  # DragonFly does not have aout.  When/if they implement a new
15415  # versioning mechanism, adjust this.
15416  if test -x /usr/bin/objformat; then
15417    objformat=`/usr/bin/objformat`
15418  else
15419    case $host_os in
15420    freebsd[123]*) objformat=aout ;;
15421    *) objformat=elf ;;
15422    esac
15423  fi
15424  version_type=freebsd-$objformat
15425  case $version_type in
15426    freebsd-elf*)
15427      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15428      need_version=no
15429      need_lib_prefix=no
15430      ;;
15431    freebsd-*)
15432      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15433      need_version=yes
15434      ;;
15435  esac
15436  shlibpath_var=LD_LIBRARY_PATH
15437  case $host_os in
15438  freebsd2*)
15439    shlibpath_overrides_runpath=yes
15440    ;;
15441  freebsd3.[01]* | freebsdelf3.[01]*)
15442    shlibpath_overrides_runpath=yes
15443    hardcode_into_libs=yes
15444    ;;
15445  *) # from 3.2 on
15446    shlibpath_overrides_runpath=no
15447    hardcode_into_libs=yes
15448    ;;
15449  esac
15450  ;;
15451
15452gnu*)
15453  version_type=linux
15454  need_lib_prefix=no
15455  need_version=no
15456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15457  soname_spec='${libname}${release}${shared_ext}$major'
15458  shlibpath_var=LD_LIBRARY_PATH
15459  hardcode_into_libs=yes
15460  ;;
15461
15462hpux9* | hpux10* | hpux11*)
15463  # Give a soname corresponding to the major version so that dld.sl refuses to
15464  # link against other versions.
15465  version_type=sunos
15466  need_lib_prefix=no
15467  need_version=no
15468  case $host_cpu in
15469  ia64*)
15470    shrext_cmds='.so'
15471    hardcode_into_libs=yes
15472    dynamic_linker="$host_os dld.so"
15473    shlibpath_var=LD_LIBRARY_PATH
15474    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476    soname_spec='${libname}${release}${shared_ext}$major'
15477    if test "X$HPUX_IA64_MODE" = X32; then
15478      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15479    else
15480      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15481    fi
15482    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15483    ;;
15484   hppa*64*)
15485     shrext_cmds='.sl'
15486     hardcode_into_libs=yes
15487     dynamic_linker="$host_os dld.sl"
15488     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491     soname_spec='${libname}${release}${shared_ext}$major'
15492     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15493     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15494     ;;
15495   *)
15496    shrext_cmds='.sl'
15497    dynamic_linker="$host_os dld.sl"
15498    shlibpath_var=SHLIB_PATH
15499    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501    soname_spec='${libname}${release}${shared_ext}$major'
15502    ;;
15503  esac
15504  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15505  postinstall_cmds='chmod 555 $lib'
15506  ;;
15507
15508irix5* | irix6* | nonstopux*)
15509  case $host_os in
15510    nonstopux*) version_type=nonstopux ;;
15511    *)
15512	if test "$lt_cv_prog_gnu_ld" = yes; then
15513		version_type=linux
15514	else
15515		version_type=irix
15516	fi ;;
15517  esac
15518  need_lib_prefix=no
15519  need_version=no
15520  soname_spec='${libname}${release}${shared_ext}$major'
15521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15522  case $host_os in
15523  irix5* | nonstopux*)
15524    libsuff= shlibsuff=
15525    ;;
15526  *)
15527    case $LD in # libtool.m4 will add one of these switches to LD
15528    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15529      libsuff= shlibsuff= libmagic=32-bit;;
15530    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15531      libsuff=32 shlibsuff=N32 libmagic=N32;;
15532    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15533      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15534    *) libsuff= shlibsuff= libmagic=never-match;;
15535    esac
15536    ;;
15537  esac
15538  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15539  shlibpath_overrides_runpath=no
15540  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15541  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15542  hardcode_into_libs=yes
15543  ;;
15544
15545# No shared lib support for Linux oldld, aout, or coff.
15546linux*oldld* | linux*aout* | linux*coff*)
15547  dynamic_linker=no
15548  ;;
15549
15550# This must be Linux ELF.
15551linux*)
15552  version_type=linux
15553  need_lib_prefix=no
15554  need_version=no
15555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556  soname_spec='${libname}${release}${shared_ext}$major'
15557  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15558  shlibpath_var=LD_LIBRARY_PATH
15559  shlibpath_overrides_runpath=no
15560  # This implies no fast_install, which is unacceptable.
15561  # Some rework will be needed to allow for fast_install
15562  # before this can be enabled.
15563  hardcode_into_libs=yes
15564
15565  # Append ld.so.conf contents to the search path
15566  if test -f /etc/ld.so.conf; then
15567    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' ' '`
15568    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15569  fi
15570
15571  # We used to test for /lib/ld.so.1 and disable shared libraries on
15572  # powerpc, because MkLinux only supported shared libraries with the
15573  # GNU dynamic linker.  Since this was broken with cross compilers,
15574  # most powerpc-linux boxes support dynamic linking these days and
15575  # people can always --disable-shared, the test was removed, and we
15576  # assume the GNU/Linux dynamic linker is in use.
15577  dynamic_linker='GNU/Linux ld.so'
15578  ;;
15579
15580knetbsd*-gnu)
15581  version_type=linux
15582  need_lib_prefix=no
15583  need_version=no
15584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585  soname_spec='${libname}${release}${shared_ext}$major'
15586  shlibpath_var=LD_LIBRARY_PATH
15587  shlibpath_overrides_runpath=no
15588  hardcode_into_libs=yes
15589  dynamic_linker='GNU ld.so'
15590  ;;
15591
15592netbsd*)
15593  version_type=sunos
15594  need_lib_prefix=no
15595  need_version=no
15596  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599    dynamic_linker='NetBSD (a.out) ld.so'
15600  else
15601    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602    soname_spec='${libname}${release}${shared_ext}$major'
15603    dynamic_linker='NetBSD ld.elf_so'
15604  fi
15605  shlibpath_var=LD_LIBRARY_PATH
15606  shlibpath_overrides_runpath=yes
15607  hardcode_into_libs=yes
15608  ;;
15609
15610newsos6)
15611  version_type=linux
15612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613  shlibpath_var=LD_LIBRARY_PATH
15614  shlibpath_overrides_runpath=yes
15615  ;;
15616
15617nto-qnx*)
15618  version_type=linux
15619  need_lib_prefix=no
15620  need_version=no
15621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622  soname_spec='${libname}${release}${shared_ext}$major'
15623  shlibpath_var=LD_LIBRARY_PATH
15624  shlibpath_overrides_runpath=yes
15625  ;;
15626
15627openbsd*)
15628  version_type=sunos
15629  need_lib_prefix=no
15630  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15631  case $host_os in
15632    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15633    *)                         need_version=no  ;;
15634  esac
15635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15636  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15637  shlibpath_var=LD_LIBRARY_PATH
15638  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15639    case $host_os in
15640      openbsd2.[89] | openbsd2.[89].*)
15641	shlibpath_overrides_runpath=no
15642	;;
15643      *)
15644	shlibpath_overrides_runpath=yes
15645	;;
15646      esac
15647  else
15648    shlibpath_overrides_runpath=yes
15649  fi
15650  ;;
15651
15652os2*)
15653  libname_spec='$name'
15654  shrext_cmds=".dll"
15655  need_lib_prefix=no
15656  library_names_spec='$libname${shared_ext} $libname.a'
15657  dynamic_linker='OS/2 ld.exe'
15658  shlibpath_var=LIBPATH
15659  ;;
15660
15661osf3* | osf4* | osf5*)
15662  version_type=osf
15663  need_lib_prefix=no
15664  need_version=no
15665  soname_spec='${libname}${release}${shared_ext}$major'
15666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667  shlibpath_var=LD_LIBRARY_PATH
15668  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15669  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15670  ;;
15671
15672sco3.2v5*)
15673  version_type=osf
15674  soname_spec='${libname}${release}${shared_ext}$major'
15675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15676  shlibpath_var=LD_LIBRARY_PATH
15677  ;;
15678
15679solaris*)
15680  version_type=linux
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684  soname_spec='${libname}${release}${shared_ext}$major'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  shlibpath_overrides_runpath=yes
15687  hardcode_into_libs=yes
15688  # ldd complains unless libraries are executable
15689  postinstall_cmds='chmod +x $lib'
15690  ;;
15691
15692sunos4*)
15693  version_type=sunos
15694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15696  shlibpath_var=LD_LIBRARY_PATH
15697  shlibpath_overrides_runpath=yes
15698  if test "$with_gnu_ld" = yes; then
15699    need_lib_prefix=no
15700  fi
15701  need_version=yes
15702  ;;
15703
15704sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15705  version_type=linux
15706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707  soname_spec='${libname}${release}${shared_ext}$major'
15708  shlibpath_var=LD_LIBRARY_PATH
15709  case $host_vendor in
15710    sni)
15711      shlibpath_overrides_runpath=no
15712      need_lib_prefix=no
15713      export_dynamic_flag_spec='${wl}-Blargedynsym'
15714      runpath_var=LD_RUN_PATH
15715      ;;
15716    siemens)
15717      need_lib_prefix=no
15718      ;;
15719    motorola)
15720      need_lib_prefix=no
15721      need_version=no
15722      shlibpath_overrides_runpath=no
15723      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15724      ;;
15725  esac
15726  ;;
15727
15728sysv4*MP*)
15729  if test -d /usr/nec ;then
15730    version_type=linux
15731    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15732    soname_spec='$libname${shared_ext}.$major'
15733    shlibpath_var=LD_LIBRARY_PATH
15734  fi
15735  ;;
15736
15737uts4*)
15738  version_type=linux
15739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740  soname_spec='${libname}${release}${shared_ext}$major'
15741  shlibpath_var=LD_LIBRARY_PATH
15742  ;;
15743
15744*)
15745  dynamic_linker=no
15746  ;;
15747esac
15748echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15749echo "${ECHO_T}$dynamic_linker" >&6
15750test "$dynamic_linker" = no && can_build_shared=no
15751
15752echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15753echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15754hardcode_action_F77=
15755if test -n "$hardcode_libdir_flag_spec_F77" || \
15756   test -n "$runpath_var_F77" || \
15757   test "X$hardcode_automatic_F77" = "Xyes" ; then
15758
15759  # We can hardcode non-existant directories.
15760  if test "$hardcode_direct_F77" != no &&
15761     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15762     # have to relink, otherwise we might link with an installed library
15763     # when we should be linking with a yet-to-be-installed one
15764     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15765     test "$hardcode_minus_L_F77" != no; then
15766    # Linking always hardcodes the temporary library directory.
15767    hardcode_action_F77=relink
15768  else
15769    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15770    hardcode_action_F77=immediate
15771  fi
15772else
15773  # We cannot hardcode anything, or else we can only hardcode existing
15774  # directories.
15775  hardcode_action_F77=unsupported
15776fi
15777echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15778echo "${ECHO_T}$hardcode_action_F77" >&6
15779
15780if test "$hardcode_action_F77" = relink; then
15781  # Fast installation is not supported
15782  enable_fast_install=no
15783elif test "$shlibpath_overrides_runpath" = yes ||
15784     test "$enable_shared" = no; then
15785  # Fast installation is not necessary
15786  enable_fast_install=needless
15787fi
15788
15789striplib=
15790old_striplib=
15791echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15792echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15793if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15794  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15795  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15796  echo "$as_me:$LINENO: result: yes" >&5
15797echo "${ECHO_T}yes" >&6
15798else
15799# FIXME - insert some real tests, host_os isn't really good enough
15800  case $host_os in
15801   darwin*)
15802       if test -n "$STRIP" ; then
15803         striplib="$STRIP -x"
15804         echo "$as_me:$LINENO: result: yes" >&5
15805echo "${ECHO_T}yes" >&6
15806       else
15807  echo "$as_me:$LINENO: result: no" >&5
15808echo "${ECHO_T}no" >&6
15809fi
15810       ;;
15811   *)
15812  echo "$as_me:$LINENO: result: no" >&5
15813echo "${ECHO_T}no" >&6
15814    ;;
15815  esac
15816fi
15817
15818
15819
15820# The else clause should only fire when bootstrapping the
15821# libtool distribution, otherwise you forgot to ship ltmain.sh
15822# with your package, and you will get complaints that there are
15823# no rules to generate ltmain.sh.
15824if test -f "$ltmain"; then
15825  # See if we are running on zsh, and set the options which allow our commands through
15826  # without removal of \ escapes.
15827  if test -n "${ZSH_VERSION+set}" ; then
15828    setopt NO_GLOB_SUBST
15829  fi
15830  # Now quote all the things that may contain metacharacters while being
15831  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15832  # variables and quote the copies for generation of the libtool script.
15833  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15834    SED SHELL STRIP \
15835    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15836    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15837    deplibs_check_method reload_flag reload_cmds need_locks \
15838    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15839    lt_cv_sys_global_symbol_to_c_name_address \
15840    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15841    old_postinstall_cmds old_postuninstall_cmds \
15842    compiler_F77 \
15843    CC_F77 \
15844    LD_F77 \
15845    lt_prog_compiler_wl_F77 \
15846    lt_prog_compiler_pic_F77 \
15847    lt_prog_compiler_static_F77 \
15848    lt_prog_compiler_no_builtin_flag_F77 \
15849    export_dynamic_flag_spec_F77 \
15850    thread_safe_flag_spec_F77 \
15851    whole_archive_flag_spec_F77 \
15852    enable_shared_with_static_runtimes_F77 \
15853    old_archive_cmds_F77 \
15854    old_archive_from_new_cmds_F77 \
15855    predep_objects_F77 \
15856    postdep_objects_F77 \
15857    predeps_F77 \
15858    postdeps_F77 \
15859    compiler_lib_search_path_F77 \
15860    archive_cmds_F77 \
15861    archive_expsym_cmds_F77 \
15862    postinstall_cmds_F77 \
15863    postuninstall_cmds_F77 \
15864    old_archive_from_expsyms_cmds_F77 \
15865    allow_undefined_flag_F77 \
15866    no_undefined_flag_F77 \
15867    export_symbols_cmds_F77 \
15868    hardcode_libdir_flag_spec_F77 \
15869    hardcode_libdir_flag_spec_ld_F77 \
15870    hardcode_libdir_separator_F77 \
15871    hardcode_automatic_F77 \
15872    module_cmds_F77 \
15873    module_expsym_cmds_F77 \
15874    lt_cv_prog_compiler_c_o_F77 \
15875    exclude_expsyms_F77 \
15876    include_expsyms_F77; do
15877
15878    case $var in
15879    old_archive_cmds_F77 | \
15880    old_archive_from_new_cmds_F77 | \
15881    archive_cmds_F77 | \
15882    archive_expsym_cmds_F77 | \
15883    module_cmds_F77 | \
15884    module_expsym_cmds_F77 | \
15885    old_archive_from_expsyms_cmds_F77 | \
15886    export_symbols_cmds_F77 | \
15887    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15888    postinstall_cmds | postuninstall_cmds | \
15889    old_postinstall_cmds | old_postuninstall_cmds | \
15890    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15891      # Double-quote double-evaled strings.
15892      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15893      ;;
15894    *)
15895      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15896      ;;
15897    esac
15898  done
15899
15900  case $lt_echo in
15901  *'\$0 --fallback-echo"')
15902    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15903    ;;
15904  esac
15905
15906cfgfile="$ofile"
15907
15908  cat <<__EOF__ >> "$cfgfile"
15909# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15910
15911# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15912
15913# Shell to use when invoking shell scripts.
15914SHELL=$lt_SHELL
15915
15916# Whether or not to build shared libraries.
15917build_libtool_libs=$enable_shared
15918
15919# Whether or not to build static libraries.
15920build_old_libs=$enable_static
15921
15922# Whether or not to add -lc for building shared libraries.
15923build_libtool_need_lc=$archive_cmds_need_lc_F77
15924
15925# Whether or not to disallow shared libs when runtime libs are static
15926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15927
15928# Whether or not to optimize for fast installation.
15929fast_install=$enable_fast_install
15930
15931# The host system.
15932host_alias=$host_alias
15933host=$host
15934host_os=$host_os
15935
15936# The build system.
15937build_alias=$build_alias
15938build=$build
15939build_os=$build_os
15940
15941# An echo program that does not interpret backslashes.
15942echo=$lt_echo
15943
15944# The archiver.
15945AR=$lt_AR
15946AR_FLAGS=$lt_AR_FLAGS
15947
15948# A C compiler.
15949LTCC=$lt_LTCC
15950
15951# A language-specific compiler.
15952CC=$lt_compiler_F77
15953
15954# Is the compiler the GNU C compiler?
15955with_gcc=$GCC_F77
15956
15957# An ERE matcher.
15958EGREP=$lt_EGREP
15959
15960# The linker used to build libraries.
15961LD=$lt_LD_F77
15962
15963# Whether we need hard or soft links.
15964LN_S=$lt_LN_S
15965
15966# A BSD-compatible nm program.
15967NM=$lt_NM
15968
15969# A symbol stripping program
15970STRIP=$lt_STRIP
15971
15972# Used to examine libraries when file_magic_cmd begins "file"
15973MAGIC_CMD=$MAGIC_CMD
15974
15975# Used on cygwin: DLL creation program.
15976DLLTOOL="$DLLTOOL"
15977
15978# Used on cygwin: object dumper.
15979OBJDUMP="$OBJDUMP"
15980
15981# Used on cygwin: assembler.
15982AS="$AS"
15983
15984# The name of the directory that contains temporary libtool files.
15985objdir=$objdir
15986
15987# How to create reloadable object files.
15988reload_flag=$lt_reload_flag
15989reload_cmds=$lt_reload_cmds
15990
15991# How to pass a linker flag through the compiler.
15992wl=$lt_lt_prog_compiler_wl_F77
15993
15994# Object file suffix (normally "o").
15995objext="$ac_objext"
15996
15997# Old archive suffix (normally "a").
15998libext="$libext"
15999
16000# Shared library suffix (normally ".so").
16001shrext_cmds='$shrext_cmds'
16002
16003# Executable file suffix (normally "").
16004exeext="$exeext"
16005
16006# Additional compiler flags for building library objects.
16007pic_flag=$lt_lt_prog_compiler_pic_F77
16008pic_mode=$pic_mode
16009
16010# What is the maximum length of a command?
16011max_cmd_len=$lt_cv_sys_max_cmd_len
16012
16013# Does compiler simultaneously support -c and -o options?
16014compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16015
16016# Must we lock files when doing compilation?
16017need_locks=$lt_need_locks
16018
16019# Do we need the lib prefix for modules?
16020need_lib_prefix=$need_lib_prefix
16021
16022# Do we need a version for libraries?
16023need_version=$need_version
16024
16025# Whether dlopen is supported.
16026dlopen_support=$enable_dlopen
16027
16028# Whether dlopen of programs is supported.
16029dlopen_self=$enable_dlopen_self
16030
16031# Whether dlopen of statically linked programs is supported.
16032dlopen_self_static=$enable_dlopen_self_static
16033
16034# Compiler flag to prevent dynamic linking.
16035link_static_flag=$lt_lt_prog_compiler_static_F77
16036
16037# Compiler flag to turn off builtin functions.
16038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16039
16040# Compiler flag to allow reflexive dlopens.
16041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16042
16043# Compiler flag to generate shared objects directly from archives.
16044whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16045
16046# Compiler flag to generate thread-safe objects.
16047thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16048
16049# Library versioning type.
16050version_type=$version_type
16051
16052# Format of library name prefix.
16053libname_spec=$lt_libname_spec
16054
16055# List of archive names.  First name is the real one, the rest are links.
16056# The last name is the one that the linker finds with -lNAME.
16057library_names_spec=$lt_library_names_spec
16058
16059# The coded name of the library, if different from the real name.
16060soname_spec=$lt_soname_spec
16061
16062# Commands used to build and install an old-style archive.
16063RANLIB=$lt_RANLIB
16064old_archive_cmds=$lt_old_archive_cmds_F77
16065old_postinstall_cmds=$lt_old_postinstall_cmds
16066old_postuninstall_cmds=$lt_old_postuninstall_cmds
16067
16068# Create an old-style archive from a shared archive.
16069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16070
16071# Create a temporary old-style archive to link instead of a shared archive.
16072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16073
16074# Commands used to build and install a shared archive.
16075archive_cmds=$lt_archive_cmds_F77
16076archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16077postinstall_cmds=$lt_postinstall_cmds
16078postuninstall_cmds=$lt_postuninstall_cmds
16079
16080# Commands used to build a loadable module (assumed same as above if empty)
16081module_cmds=$lt_module_cmds_F77
16082module_expsym_cmds=$lt_module_expsym_cmds_F77
16083
16084# Commands to strip libraries.
16085old_striplib=$lt_old_striplib
16086striplib=$lt_striplib
16087
16088# Dependencies to place before the objects being linked to create a
16089# shared library.
16090predep_objects=$lt_predep_objects_F77
16091
16092# Dependencies to place after the objects being linked to create a
16093# shared library.
16094postdep_objects=$lt_postdep_objects_F77
16095
16096# Dependencies to place before the objects being linked to create a
16097# shared library.
16098predeps=$lt_predeps_F77
16099
16100# Dependencies to place after the objects being linked to create a
16101# shared library.
16102postdeps=$lt_postdeps_F77
16103
16104# The library search path used internally by the compiler when linking
16105# a shared library.
16106compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16107
16108# Method to check whether dependent libraries are shared objects.
16109deplibs_check_method=$lt_deplibs_check_method
16110
16111# Command to use when deplibs_check_method == file_magic.
16112file_magic_cmd=$lt_file_magic_cmd
16113
16114# Flag that allows shared libraries with undefined symbols to be built.
16115allow_undefined_flag=$lt_allow_undefined_flag_F77
16116
16117# Flag that forces no undefined symbols.
16118no_undefined_flag=$lt_no_undefined_flag_F77
16119
16120# Commands used to finish a libtool library installation in a directory.
16121finish_cmds=$lt_finish_cmds
16122
16123# Same as above, but a single script fragment to be evaled but not shown.
16124finish_eval=$lt_finish_eval
16125
16126# Take the output of nm and produce a listing of raw symbols and C names.
16127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16128
16129# Transform the output of nm in a proper C declaration
16130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16131
16132# Transform the output of nm in a C name address pair
16133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16134
16135# This is the shared library runtime path variable.
16136runpath_var=$runpath_var
16137
16138# This is the shared library path variable.
16139shlibpath_var=$shlibpath_var
16140
16141# Is shlibpath searched before the hard-coded library search path?
16142shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16143
16144# How to hardcode a shared library path into an executable.
16145hardcode_action=$hardcode_action_F77
16146
16147# Whether we should hardcode library paths into libraries.
16148hardcode_into_libs=$hardcode_into_libs
16149
16150# Flag to hardcode \$libdir into a binary during linking.
16151# This must work even if \$libdir does not exist.
16152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16153
16154# If ld is used when linking, flag to hardcode \$libdir into
16155# a binary during linking. This must work even if \$libdir does
16156# not exist.
16157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16158
16159# Whether we need a single -rpath flag with a separated argument.
16160hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16161
16162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16163# resulting binary.
16164hardcode_direct=$hardcode_direct_F77
16165
16166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16167# resulting binary.
16168hardcode_minus_L=$hardcode_minus_L_F77
16169
16170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16171# the resulting binary.
16172hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16173
16174# Set to yes if building a shared library automatically hardcodes DIR into the library
16175# and all subsequent libraries and executables linked against it.
16176hardcode_automatic=$hardcode_automatic_F77
16177
16178# Variables whose values should be saved in libtool wrapper scripts and
16179# restored at relink time.
16180variables_saved_for_relink="$variables_saved_for_relink"
16181
16182# Whether libtool must link a program against all its dependency libraries.
16183link_all_deplibs=$link_all_deplibs_F77
16184
16185# Compile-time system search path for libraries
16186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16187
16188# Run-time system search path for libraries
16189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16190
16191# Fix the shell variable \$srcfile for the compiler.
16192fix_srcfile_path="$fix_srcfile_path_F77"
16193
16194# Set to yes if exported symbols are required.
16195always_export_symbols=$always_export_symbols_F77
16196
16197# The commands to list exported symbols.
16198export_symbols_cmds=$lt_export_symbols_cmds_F77
16199
16200# The commands to extract the exported symbol list from a shared archive.
16201extract_expsyms_cmds=$lt_extract_expsyms_cmds
16202
16203# Symbols that should not be listed in the preloaded symbols.
16204exclude_expsyms=$lt_exclude_expsyms_F77
16205
16206# Symbols that must always be exported.
16207include_expsyms=$lt_include_expsyms_F77
16208
16209# ### END LIBTOOL TAG CONFIG: $tagname
16210
16211__EOF__
16212
16213
16214else
16215  # If there is no Makefile yet, we rely on a make rule to execute
16216  # `config.status --recheck' to rerun these tests and create the
16217  # libtool script then.
16218  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16219  if test -f "$ltmain_in"; then
16220    test -f Makefile && make "$ltmain"
16221  fi
16222fi
16223
16224
16225ac_ext=cc
16226ac_cpp='$CXXCPP $CPPFLAGS'
16227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16230
16231CC="$lt_save_CC"
16232
16233	else
16234	  tagname=""
16235	fi
16236	;;
16237
16238      GCJ)
16239	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16240
16241
16242
16243# Source file extension for Java test sources.
16244ac_ext=java
16245
16246# Object file extension for compiled Java test sources.
16247objext=o
16248objext_GCJ=$objext
16249
16250# Code to be used in simple compile tests
16251lt_simple_compile_test_code="class foo {}\n"
16252
16253# Code to be used in simple link tests
16254lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16255
16256# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16257
16258# If no C compiler was specified, use CC.
16259LTCC=${LTCC-"$CC"}
16260
16261# Allow CC to be a program name with arguments.
16262compiler=$CC
16263
16264
16265# save warnings/boilerplate of simple test code
16266ac_outfile=conftest.$ac_objext
16267printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16268eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16269_lt_compiler_boilerplate=`cat conftest.err`
16270$rm conftest*
16271
16272ac_outfile=conftest.$ac_objext
16273printf "$lt_simple_link_test_code" >conftest.$ac_ext
16274eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16275_lt_linker_boilerplate=`cat conftest.err`
16276$rm conftest*
16277
16278
16279# Allow CC to be a program name with arguments.
16280lt_save_CC="$CC"
16281CC=${GCJ-"gcj"}
16282compiler=$CC
16283compiler_GCJ=$CC
16284for cc_temp in $compiler""; do
16285  case $cc_temp in
16286    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16287    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16288    \-*) ;;
16289    *) break;;
16290  esac
16291done
16292cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16293
16294
16295# GCJ did not exist at the time GCC didn't implicitly link libc in.
16296archive_cmds_need_lc_GCJ=no
16297
16298old_archive_cmds_GCJ=$old_archive_cmds
16299
16300## CAVEAT EMPTOR:
16301## There is no encapsulation within the following macros, do not change
16302## the running order or otherwise move them around unless you know exactly
16303## what you are doing...
16304
16305lt_prog_compiler_no_builtin_flag_GCJ=
16306
16307if test "$GCC" = yes; then
16308  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16309
16310
16311echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16312echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16313if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16314  echo $ECHO_N "(cached) $ECHO_C" >&6
16315else
16316  lt_cv_prog_compiler_rtti_exceptions=no
16317  ac_outfile=conftest.$ac_objext
16318   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16319   lt_compiler_flag="-fno-rtti -fno-exceptions"
16320   # Insert the option either (1) after the last *FLAGS variable, or
16321   # (2) before a word containing "conftest.", or (3) at the end.
16322   # Note that $ac_compile itself does not contain backslashes and begins
16323   # with a dollar sign (not a hyphen), so the echo should work correctly.
16324   # The option is referenced via a variable to avoid confusing sed.
16325   lt_compile=`echo "$ac_compile" | $SED \
16326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16328   -e 's:$: $lt_compiler_flag:'`
16329   (eval echo "\"\$as_me:16329: $lt_compile\"" >&5)
16330   (eval "$lt_compile" 2>conftest.err)
16331   ac_status=$?
16332   cat conftest.err >&5
16333   echo "$as_me:16333: \$? = $ac_status" >&5
16334   if (exit $ac_status) && test -s "$ac_outfile"; then
16335     # The compiler can only warn and ignore the option if not recognized
16336     # So say no if there are warnings other than the usual output.
16337     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16338     $SED '/^$/d' conftest.err >conftest.er2
16339     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16340       lt_cv_prog_compiler_rtti_exceptions=yes
16341     fi
16342   fi
16343   $rm conftest*
16344
16345fi
16346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16347echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16348
16349if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16350    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16351else
16352    :
16353fi
16354
16355fi
16356
16357lt_prog_compiler_wl_GCJ=
16358lt_prog_compiler_pic_GCJ=
16359lt_prog_compiler_static_GCJ=
16360
16361echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16362echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16363
16364  if test "$GCC" = yes; then
16365    lt_prog_compiler_wl_GCJ='-Wl,'
16366    lt_prog_compiler_static_GCJ='-static'
16367
16368    case $host_os in
16369      aix*)
16370      # All AIX code is PIC.
16371      if test "$host_cpu" = ia64; then
16372	# AIX 5 now supports IA64 processor
16373	lt_prog_compiler_static_GCJ='-Bstatic'
16374      fi
16375      ;;
16376
16377    amigaos*)
16378      # FIXME: we need at least 68020 code to build shared libraries, but
16379      # adding the `-m68020' flag to GCC prevents building anything better,
16380      # like `-m68040'.
16381      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16382      ;;
16383
16384    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
16385    | osf5*)
16386      # PIC is the default for these OSes.
16387      ;;
16388
16389    mingw* | pw32* | os2*)
16390      # This hack is so that the source file can tell whether it is being
16391      # built for inclusion in a dll (and should export symbols for example).
16392      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16393      ;;
16394
16395    darwin* | rhapsody*)
16396      # PIC is the default on this platform
16397      # Common symbols not allowed in MH_DYLIB files
16398      lt_prog_compiler_pic_GCJ='-fno-common'
16399      ;;
16400
16401    msdosdjgpp*)
16402      # Just because we use GCC doesn't mean we suddenly get shared libraries
16403      # on systems that don't support them.
16404      lt_prog_compiler_can_build_shared_GCJ=no
16405      enable_shared=no
16406      ;;
16407
16408    sysv4*MP*)
16409      if test -d /usr/nec; then
16410	lt_prog_compiler_pic_GCJ=-Kconform_pic
16411      fi
16412      ;;
16413
16414    hpux*)
16415      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16416      # not for PA HP-UX.
16417      case $host_cpu in
16418      hppa*64*|ia64*)
16419	# +Z the default
16420	;;
16421      *)
16422	lt_prog_compiler_pic_GCJ='-fPIC'
16423	;;
16424      esac
16425      ;;
16426
16427    *)
16428      lt_prog_compiler_pic_GCJ='-fPIC'
16429      ;;
16430    esac
16431  else
16432    # PORTME Check for flag to pass linker flags through the system compiler.
16433    case $host_os in
16434    aix*)
16435      lt_prog_compiler_wl_GCJ='-Wl,'
16436      if test "$host_cpu" = ia64; then
16437	# AIX 5 now supports IA64 processor
16438	lt_prog_compiler_static_GCJ='-Bstatic'
16439      else
16440	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16441      fi
16442      ;;
16443      darwin*)
16444        # PIC is the default on this platform
16445        # Common symbols not allowed in MH_DYLIB files
16446       case $cc_basename in
16447         xlc*)
16448         lt_prog_compiler_pic_GCJ='-qnocommon'
16449         lt_prog_compiler_wl_GCJ='-Wl,'
16450         ;;
16451       esac
16452       ;;
16453
16454    mingw* | pw32* | os2*)
16455      # This hack is so that the source file can tell whether it is being
16456      # built for inclusion in a dll (and should export symbols for example).
16457      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16458      ;;
16459
16460    hpux9* | hpux10* | hpux11*)
16461      lt_prog_compiler_wl_GCJ='-Wl,'
16462      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16463      # not for PA HP-UX.
16464      case $host_cpu in
16465      hppa*64*|ia64*)
16466	# +Z the default
16467	;;
16468      *)
16469	lt_prog_compiler_pic_GCJ='+Z'
16470	;;
16471      esac
16472      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16473      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16474      ;;
16475
16476    irix5* | irix6* | nonstopux*)
16477      lt_prog_compiler_wl_GCJ='-Wl,'
16478      # PIC (with -KPIC) is the default.
16479      lt_prog_compiler_static_GCJ='-non_shared'
16480      ;;
16481
16482    newsos6)
16483      lt_prog_compiler_pic_GCJ='-KPIC'
16484      lt_prog_compiler_static_GCJ='-Bstatic'
16485      ;;
16486
16487    linux*)
16488      case $cc_basename in
16489      icc* | ecc*)
16490	lt_prog_compiler_wl_GCJ='-Wl,'
16491	lt_prog_compiler_pic_GCJ='-KPIC'
16492	lt_prog_compiler_static_GCJ='-static'
16493        ;;
16494      pgcc* | pgf77* | pgf90* | pgf95*)
16495        # Portland Group compilers (*not* the Pentium gcc compiler,
16496	# which looks to be a dead project)
16497	lt_prog_compiler_wl_GCJ='-Wl,'
16498	lt_prog_compiler_pic_GCJ='-fpic'
16499	lt_prog_compiler_static_GCJ='-Bstatic'
16500        ;;
16501      ccc*)
16502        lt_prog_compiler_wl_GCJ='-Wl,'
16503        # All Alpha code is PIC.
16504        lt_prog_compiler_static_GCJ='-non_shared'
16505        ;;
16506      esac
16507      ;;
16508
16509    osf3* | osf4* | osf5*)
16510      lt_prog_compiler_wl_GCJ='-Wl,'
16511      # All OSF/1 code is PIC.
16512      lt_prog_compiler_static_GCJ='-non_shared'
16513      ;;
16514
16515    sco3.2v5*)
16516      lt_prog_compiler_pic_GCJ='-Kpic'
16517      lt_prog_compiler_static_GCJ='-dn'
16518      ;;
16519
16520    solaris*)
16521      lt_prog_compiler_pic_GCJ='-KPIC'
16522      lt_prog_compiler_static_GCJ='-Bstatic'
16523      case $cc_basename in
16524      f77* | f90* | f95*)
16525	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16526      *)
16527	lt_prog_compiler_wl_GCJ='-Wl,';;
16528      esac
16529      ;;
16530
16531    sunos4*)
16532      lt_prog_compiler_wl_GCJ='-Qoption ld '
16533      lt_prog_compiler_pic_GCJ='-PIC'
16534      lt_prog_compiler_static_GCJ='-Bstatic'
16535      ;;
16536
16537    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16538      lt_prog_compiler_wl_GCJ='-Wl,'
16539      lt_prog_compiler_pic_GCJ='-KPIC'
16540      lt_prog_compiler_static_GCJ='-Bstatic'
16541      ;;
16542
16543    sysv4*MP*)
16544      if test -d /usr/nec ;then
16545	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16546	lt_prog_compiler_static_GCJ='-Bstatic'
16547      fi
16548      ;;
16549
16550    unicos*)
16551      lt_prog_compiler_wl_GCJ='-Wl,'
16552      lt_prog_compiler_can_build_shared_GCJ=no
16553      ;;
16554
16555    uts4*)
16556      lt_prog_compiler_pic_GCJ='-pic'
16557      lt_prog_compiler_static_GCJ='-Bstatic'
16558      ;;
16559
16560    *)
16561      lt_prog_compiler_can_build_shared_GCJ=no
16562      ;;
16563    esac
16564  fi
16565
16566echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16567echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16568
16569#
16570# Check to make sure the PIC flag actually works.
16571#
16572if test -n "$lt_prog_compiler_pic_GCJ"; then
16573
16574echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16575echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16576if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16577  echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579  lt_prog_compiler_pic_works_GCJ=no
16580  ac_outfile=conftest.$ac_objext
16581   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16583   # Insert the option either (1) after the last *FLAGS variable, or
16584   # (2) before a word containing "conftest.", or (3) at the end.
16585   # Note that $ac_compile itself does not contain backslashes and begins
16586   # with a dollar sign (not a hyphen), so the echo should work correctly.
16587   # The option is referenced via a variable to avoid confusing sed.
16588   lt_compile=`echo "$ac_compile" | $SED \
16589   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591   -e 's:$: $lt_compiler_flag:'`
16592   (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593   (eval "$lt_compile" 2>conftest.err)
16594   ac_status=$?
16595   cat conftest.err >&5
16596   echo "$as_me:16596: \$? = $ac_status" >&5
16597   if (exit $ac_status) && test -s "$ac_outfile"; then
16598     # The compiler can only warn and ignore the option if not recognized
16599     # So say no if there are warnings other than the usual output.
16600     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16601     $SED '/^$/d' conftest.err >conftest.er2
16602     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16603       lt_prog_compiler_pic_works_GCJ=yes
16604     fi
16605   fi
16606   $rm conftest*
16607
16608fi
16609echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16610echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16611
16612if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16613    case $lt_prog_compiler_pic_GCJ in
16614     "" | " "*) ;;
16615     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16616     esac
16617else
16618    lt_prog_compiler_pic_GCJ=
16619     lt_prog_compiler_can_build_shared_GCJ=no
16620fi
16621
16622fi
16623case $host_os in
16624  # For platforms which do not support PIC, -DPIC is meaningless:
16625  *djgpp*)
16626    lt_prog_compiler_pic_GCJ=
16627    ;;
16628  *)
16629    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16630    ;;
16631esac
16632
16633echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16634echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16635if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16636  echo $ECHO_N "(cached) $ECHO_C" >&6
16637else
16638  lt_cv_prog_compiler_c_o_GCJ=no
16639   $rm -r conftest 2>/dev/null
16640   mkdir conftest
16641   cd conftest
16642   mkdir out
16643   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16644
16645   lt_compiler_flag="-o out/conftest2.$ac_objext"
16646   # Insert the option either (1) after the last *FLAGS variable, or
16647   # (2) before a word containing "conftest.", or (3) at the end.
16648   # Note that $ac_compile itself does not contain backslashes and begins
16649   # with a dollar sign (not a hyphen), so the echo should work correctly.
16650   lt_compile=`echo "$ac_compile" | $SED \
16651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16653   -e 's:$: $lt_compiler_flag:'`
16654   (eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
16655   (eval "$lt_compile" 2>out/conftest.err)
16656   ac_status=$?
16657   cat out/conftest.err >&5
16658   echo "$as_me:16658: \$? = $ac_status" >&5
16659   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16660   then
16661     # The compiler can only warn and ignore the option if not recognized
16662     # So say no if there are warnings
16663     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16664     $SED '/^$/d' out/conftest.err >out/conftest.er2
16665     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16666       lt_cv_prog_compiler_c_o_GCJ=yes
16667     fi
16668   fi
16669   chmod u+w . 2>&5
16670   $rm conftest*
16671   # SGI C++ compiler will create directory out/ii_files/ for
16672   # template instantiation
16673   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16674   $rm out/* && rmdir out
16675   cd ..
16676   rmdir conftest
16677   $rm conftest*
16678
16679fi
16680echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16681echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16682
16683
16684hard_links="nottested"
16685if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16686  # do not overwrite the value of need_locks provided by the user
16687  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16688echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16689  hard_links=yes
16690  $rm conftest*
16691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16692  touch conftest.a
16693  ln conftest.a conftest.b 2>&5 || hard_links=no
16694  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695  echo "$as_me:$LINENO: result: $hard_links" >&5
16696echo "${ECHO_T}$hard_links" >&6
16697  if test "$hard_links" = no; then
16698    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16699echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16700    need_locks=warn
16701  fi
16702else
16703  need_locks=no
16704fi
16705
16706echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16707echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16708
16709  runpath_var=
16710  allow_undefined_flag_GCJ=
16711  enable_shared_with_static_runtimes_GCJ=no
16712  archive_cmds_GCJ=
16713  archive_expsym_cmds_GCJ=
16714  old_archive_From_new_cmds_GCJ=
16715  old_archive_from_expsyms_cmds_GCJ=
16716  export_dynamic_flag_spec_GCJ=
16717  whole_archive_flag_spec_GCJ=
16718  thread_safe_flag_spec_GCJ=
16719  hardcode_libdir_flag_spec_GCJ=
16720  hardcode_libdir_flag_spec_ld_GCJ=
16721  hardcode_libdir_separator_GCJ=
16722  hardcode_direct_GCJ=no
16723  hardcode_minus_L_GCJ=no
16724  hardcode_shlibpath_var_GCJ=unsupported
16725  link_all_deplibs_GCJ=unknown
16726  hardcode_automatic_GCJ=no
16727  module_cmds_GCJ=
16728  module_expsym_cmds_GCJ=
16729  always_export_symbols_GCJ=no
16730  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16731  # include_expsyms should be a list of space-separated symbols to be *always*
16732  # included in the symbol list
16733  include_expsyms_GCJ=
16734  # exclude_expsyms can be an extended regexp of symbols to exclude
16735  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16736  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16737  # as well as any symbol that contains `d'.
16738  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16739  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16740  # platforms (ab)use it in PIC code, but their linkers get confused if
16741  # the symbol is explicitly referenced.  Since portable code cannot
16742  # rely on this symbol name, it's probably fine to never include it in
16743  # preloaded symbol tables.
16744  extract_expsyms_cmds=
16745  # Just being paranoid about ensuring that cc_basename is set.
16746  for cc_temp in $compiler""; do
16747  case $cc_temp in
16748    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16749    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16750    \-*) ;;
16751    *) break;;
16752  esac
16753done
16754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16755
16756  case $host_os in
16757  cygwin* | mingw* | pw32*)
16758    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16759    # When not using gcc, we currently assume that we are using
16760    # Microsoft Visual C++.
16761    if test "$GCC" != yes; then
16762      with_gnu_ld=no
16763    fi
16764    ;;
16765  openbsd*)
16766    with_gnu_ld=no
16767    ;;
16768  esac
16769
16770  ld_shlibs_GCJ=yes
16771  if test "$with_gnu_ld" = yes; then
16772    # If archive_cmds runs LD, not CC, wlarc should be empty
16773    wlarc='${wl}'
16774
16775    # Set some defaults for GNU ld with shared library support. These
16776    # are reset later if shared libraries are not supported. Putting them
16777    # here allows them to be overridden if necessary.
16778    runpath_var=LD_RUN_PATH
16779    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16780    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16781    # ancient GNU ld didn't support --whole-archive et. al.
16782    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16783	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16784      else
16785  	whole_archive_flag_spec_GCJ=
16786    fi
16787    supports_anon_versioning=no
16788    case `$LD -v 2>/dev/null` in
16789      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16790      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16791      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16792      *\ 2.11.*) ;; # other 2.11 versions
16793      *) supports_anon_versioning=yes ;;
16794    esac
16795
16796    # See if GNU ld supports shared libraries.
16797    case $host_os in
16798    aix3* | aix4* | aix5*)
16799      # On AIX/PPC, the GNU linker is very broken
16800      if test "$host_cpu" != ia64; then
16801	ld_shlibs_GCJ=no
16802	cat <<EOF 1>&2
16803
16804*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16805*** to be unable to reliably create shared libraries on AIX.
16806*** Therefore, libtool is disabling shared libraries support.  If you
16807*** really care for shared libraries, you may want to modify your PATH
16808*** so that a non-GNU linker is found, and then restart.
16809
16810EOF
16811      fi
16812      ;;
16813
16814    amigaos*)
16815      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)'
16816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817      hardcode_minus_L_GCJ=yes
16818
16819      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16820      # that the semantics of dynamic libraries on AmigaOS, at least up
16821      # to version 4, is to share data among multiple programs linked
16822      # with the same dynamic library.  Since this doesn't match the
16823      # behavior of shared libraries on other platforms, we can't use
16824      # them.
16825      ld_shlibs_GCJ=no
16826      ;;
16827
16828    beos*)
16829      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16830	allow_undefined_flag_GCJ=unsupported
16831	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16832	# support --undefined.  This deserves some investigation.  FIXME
16833	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16834      else
16835	ld_shlibs_GCJ=no
16836      fi
16837      ;;
16838
16839    cygwin* | mingw* | pw32*)
16840      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16841      # as there is no search path for DLLs.
16842      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16843      allow_undefined_flag_GCJ=unsupported
16844      always_export_symbols_GCJ=no
16845      enable_shared_with_static_runtimes_GCJ=yes
16846      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16847
16848      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16849        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16850	# If the export-symbols file already is a .def file (1st line
16851	# is EXPORTS), use it as is; otherwise, prepend...
16852	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16853	  cp $export_symbols $output_objdir/$soname.def;
16854	else
16855	  echo EXPORTS > $output_objdir/$soname.def;
16856	  cat $export_symbols >> $output_objdir/$soname.def;
16857	fi~
16858	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16859      else
16860	ld_shlibs_GCJ=no
16861      fi
16862      ;;
16863
16864    haiku*)
16865      allow_undefined_flag_GCJ=unsupported
16866      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16867      ;;
16868
16869    linux*)
16870      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16871	tmp_addflag=
16872	case $cc_basename,$host_cpu in
16873	pgcc*)				# Portland Group C compiler
16874	  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'
16875	  tmp_addflag=' $pic_flag'
16876	  ;;
16877	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16878	  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'
16879	  tmp_addflag=' $pic_flag -Mnomain' ;;
16880	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16881	  tmp_addflag=' -i_dynamic' ;;
16882	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16883	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16884	ifc* | ifort*)			# Intel Fortran compiler
16885	  tmp_addflag=' -nofor_main' ;;
16886	esac
16887	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888
16889	if test $supports_anon_versioning = yes; then
16890	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16891  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16892  $echo "local: *; };" >> $output_objdir/$libname.ver~
16893	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16894	fi
16895      else
16896	ld_shlibs_GCJ=no
16897      fi
16898      ;;
16899
16900    netbsd*)
16901      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16902	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16903	wlarc=
16904      else
16905	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16906	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16907      fi
16908      ;;
16909
16910    solaris* | sysv5*)
16911      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16912	ld_shlibs_GCJ=no
16913	cat <<EOF 1>&2
16914
16915*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16916*** create shared libraries on Solaris systems.  Therefore, libtool
16917*** is disabling shared libraries support.  We urge you to upgrade GNU
16918*** binutils to release 2.9.1 or newer.  Another option is to modify
16919*** your PATH or compiler configuration so that the native linker is
16920*** used, and then restart.
16921
16922EOF
16923      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16924	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16925	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16926      else
16927	ld_shlibs_GCJ=no
16928      fi
16929      ;;
16930
16931    sunos4*)
16932      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16933      wlarc=
16934      hardcode_direct_GCJ=yes
16935      hardcode_shlibpath_var_GCJ=no
16936      ;;
16937
16938    *)
16939      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16940	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16941	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16942      else
16943	ld_shlibs_GCJ=no
16944      fi
16945      ;;
16946    esac
16947
16948    if test "$ld_shlibs_GCJ" = no; then
16949      runpath_var=
16950      hardcode_libdir_flag_spec_GCJ=
16951      export_dynamic_flag_spec_GCJ=
16952      whole_archive_flag_spec_GCJ=
16953    fi
16954  else
16955    # PORTME fill in a description of your system's linker (not GNU ld)
16956    case $host_os in
16957    aix3*)
16958      allow_undefined_flag_GCJ=unsupported
16959      always_export_symbols_GCJ=yes
16960      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'
16961      # Note: this linker hardcodes the directories in LIBPATH if there
16962      # are no directories specified by -L.
16963      hardcode_minus_L_GCJ=yes
16964      if test "$GCC" = yes && test -z "$link_static_flag"; then
16965	# Neither direct hardcoding nor static linking is supported with a
16966	# broken collect2.
16967	hardcode_direct_GCJ=unsupported
16968      fi
16969      ;;
16970
16971    aix4* | aix5*)
16972      if test "$host_cpu" = ia64; then
16973	# On IA64, the linker does run time linking by default, so we don't
16974	# have to do anything special.
16975	aix_use_runtimelinking=no
16976	exp_sym_flag='-Bexport'
16977	no_entry_flag=""
16978      else
16979	# If we're using GNU nm, then we don't want the "-C" option.
16980	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16981	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16982	  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'
16983	else
16984	  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'
16985	fi
16986	aix_use_runtimelinking=no
16987
16988	# Test if we are trying to use run time linking or normal
16989	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16990	# need to do runtime linking.
16991	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16992	  for ld_flag in $LDFLAGS; do
16993  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16994  	    aix_use_runtimelinking=yes
16995  	    break
16996  	  fi
16997	  done
16998	esac
16999
17000	exp_sym_flag='-bexport'
17001	no_entry_flag='-bnoentry'
17002      fi
17003
17004      # When large executables or shared objects are built, AIX ld can
17005      # have problems creating the table of contents.  If linking a library
17006      # or program results in "error TOC overflow" add -mminimal-toc to
17007      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17008      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17009
17010      archive_cmds_GCJ=''
17011      hardcode_direct_GCJ=yes
17012      hardcode_libdir_separator_GCJ=':'
17013      link_all_deplibs_GCJ=yes
17014
17015      if test "$GCC" = yes; then
17016	case $host_os in aix4.[012]|aix4.[012].*)
17017	# We only want to do this on AIX 4.2 and lower, the check
17018	# below for broken collect2 doesn't work under 4.3+
17019	  collect2name=`${CC} -print-prog-name=collect2`
17020	  if test -f "$collect2name" && \
17021  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17022	  then
17023  	  # We have reworked collect2
17024  	  hardcode_direct_GCJ=yes
17025	  else
17026  	  # We have old collect2
17027  	  hardcode_direct_GCJ=unsupported
17028  	  # It fails to find uninstalled libraries when the uninstalled
17029  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17030  	  # to unsupported forces relinking
17031  	  hardcode_minus_L_GCJ=yes
17032  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17033  	  hardcode_libdir_separator_GCJ=
17034	  fi
17035	esac
17036	shared_flag='-shared'
17037	if test "$aix_use_runtimelinking" = yes; then
17038	  shared_flag="$shared_flag "'${wl}-G'
17039	fi
17040      else
17041	# not using gcc
17042	if test "$host_cpu" = ia64; then
17043  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17044  	# chokes on -Wl,-G. The following line is correct:
17045	  shared_flag='-G'
17046	else
17047  	if test "$aix_use_runtimelinking" = yes; then
17048	    shared_flag='${wl}-G'
17049	  else
17050	    shared_flag='${wl}-bM:SRE'
17051  	fi
17052	fi
17053      fi
17054
17055      # It seems that -bexpall does not export symbols beginning with
17056      # underscore (_), so it is better to generate a list of symbols to export.
17057      always_export_symbols_GCJ=yes
17058      if test "$aix_use_runtimelinking" = yes; then
17059	# Warning - without using the other runtime loading flags (-brtl),
17060	# -berok will link without error, but may produce a broken library.
17061	allow_undefined_flag_GCJ='-berok'
17062       # Determine the default libpath from the value encoded in an empty executable.
17063       cat >conftest.$ac_ext <<_ACEOF
17064/* confdefs.h.  */
17065_ACEOF
17066cat confdefs.h >>conftest.$ac_ext
17067cat >>conftest.$ac_ext <<_ACEOF
17068/* end confdefs.h.  */
17069
17070int
17071main ()
17072{
17073
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext conftest$ac_exeext
17079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080  (eval $ac_link) 2>conftest.er1
17081  ac_status=$?
17082  grep -v '^ *+' conftest.er1 >conftest.err
17083  rm -f conftest.er1
17084  cat conftest.err >&5
17085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086  (exit $ac_status); } &&
17087	 { ac_try='test -z "$ac_cxx_werror_flag"
17088			 || test ! -s conftest.err'
17089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090  (eval $ac_try) 2>&5
17091  ac_status=$?
17092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093  (exit $ac_status); }; } &&
17094	 { ac_try='test -s conftest$ac_exeext'
17095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096  (eval $ac_try) 2>&5
17097  ac_status=$?
17098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099  (exit $ac_status); }; }; then
17100
17101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17102}'`
17103# Check for a 64-bit object if we didn't find anything.
17104if 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; }
17105}'`; fi
17106else
17107  echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110fi
17111rm -f conftest.err conftest.$ac_objext \
17112      conftest$ac_exeext conftest.$ac_ext
17113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17114
17115       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17116	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17117       else
17118	if test "$host_cpu" = ia64; then
17119	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17120	  allow_undefined_flag_GCJ="-z nodefs"
17121	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17122	else
17123	 # Determine the default libpath from the value encoded in an empty executable.
17124	 cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h.  */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h.  */
17130
17131int
17132main ()
17133{
17134
17135  ;
17136  return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext conftest$ac_exeext
17140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141  (eval $ac_link) 2>conftest.er1
17142  ac_status=$?
17143  grep -v '^ *+' conftest.er1 >conftest.err
17144  rm -f conftest.er1
17145  cat conftest.err >&5
17146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147  (exit $ac_status); } &&
17148	 { ac_try='test -z "$ac_cxx_werror_flag"
17149			 || test ! -s conftest.err'
17150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151  (eval $ac_try) 2>&5
17152  ac_status=$?
17153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154  (exit $ac_status); }; } &&
17155	 { ac_try='test -s conftest$ac_exeext'
17156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157  (eval $ac_try) 2>&5
17158  ac_status=$?
17159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160  (exit $ac_status); }; }; then
17161
17162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17163}'`
17164# Check for a 64-bit object if we didn't find anything.
17165if 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; }
17166}'`; fi
17167else
17168  echo "$as_me: failed program was:" >&5
17169sed 's/^/| /' conftest.$ac_ext >&5
17170
17171fi
17172rm -f conftest.err conftest.$ac_objext \
17173      conftest$ac_exeext conftest.$ac_ext
17174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17175
17176	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17177	  # Warning - without using the other run time loading flags,
17178	  # -berok will link without error, but may produce a broken library.
17179	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17180	  allow_undefined_flag_GCJ=' ${wl}-berok'
17181	  # -bexpall does not export symbols beginning with underscore (_)
17182	  always_export_symbols_GCJ=yes
17183	  # Exported symbols can be pulled into shared objects from archives
17184	  whole_archive_flag_spec_GCJ=' '
17185	  archive_cmds_need_lc_GCJ=yes
17186	  # This is similar to how AIX traditionally builds its shared libraries.
17187	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17188	fi
17189      fi
17190      ;;
17191
17192    amigaos*)
17193      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)'
17194      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17195      hardcode_minus_L_GCJ=yes
17196      # see comment about different semantics on the GNU ld section
17197      ld_shlibs_GCJ=no
17198      ;;
17199
17200    bsdi[45]*)
17201      export_dynamic_flag_spec_GCJ=-rdynamic
17202      ;;
17203
17204    cygwin* | mingw* | pw32*)
17205      # When not using gcc, we currently assume that we are using
17206      # Microsoft Visual C++.
17207      # hardcode_libdir_flag_spec is actually meaningless, as there is
17208      # no search path for DLLs.
17209      hardcode_libdir_flag_spec_GCJ=' '
17210      allow_undefined_flag_GCJ=unsupported
17211      # Tell ltmain to make .lib files, not .a files.
17212      libext=lib
17213      # Tell ltmain to make .dll files, not .so files.
17214      shrext_cmds=".dll"
17215      # FIXME: Setting linknames here is a bad hack.
17216      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17217      # The linker will automatically build a .lib file if we build a DLL.
17218      old_archive_From_new_cmds_GCJ='true'
17219      # FIXME: Should let the user specify the lib program.
17220      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17221      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17222      enable_shared_with_static_runtimes_GCJ=yes
17223      ;;
17224
17225    darwin* | rhapsody*)
17226      case $host_os in
17227        rhapsody* | darwin1.[012])
17228         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17229         ;;
17230       *) # Darwin 1.3 on
17231         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17232           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17233         else
17234           case ${MACOSX_DEPLOYMENT_TARGET} in
17235             10.[012])
17236               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17237               ;;
17238             10.*)
17239               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17240               ;;
17241           esac
17242         fi
17243         ;;
17244      esac
17245      archive_cmds_need_lc_GCJ=no
17246      hardcode_direct_GCJ=no
17247      hardcode_automatic_GCJ=yes
17248      hardcode_shlibpath_var_GCJ=unsupported
17249      whole_archive_flag_spec_GCJ=''
17250      link_all_deplibs_GCJ=yes
17251    if test "$GCC" = yes ; then
17252    	output_verbose_link_cmd='echo'
17253        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17254      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17255      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17256      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}'
17257      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}'
17258    else
17259      case $cc_basename in
17260        xlc*)
17261         output_verbose_link_cmd='echo'
17262         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17263         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17264          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17265         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}'
17266          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}'
17267          ;;
17268       *)
17269         ld_shlibs_GCJ=no
17270          ;;
17271      esac
17272    fi
17273      ;;
17274
17275    dgux*)
17276      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17278      hardcode_shlibpath_var_GCJ=no
17279      ;;
17280
17281    freebsd1*)
17282      ld_shlibs_GCJ=no
17283      ;;
17284
17285    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17286    # support.  Future versions do this automatically, but an explicit c++rt0.o
17287    # does not break anything, and helps significantly (at the cost of a little
17288    # extra space).
17289    freebsd2.2*)
17290      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17291      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17292      hardcode_direct_GCJ=yes
17293      hardcode_shlibpath_var_GCJ=no
17294      ;;
17295
17296    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17297    freebsd2*)
17298      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17299      hardcode_direct_GCJ=yes
17300      hardcode_minus_L_GCJ=yes
17301      hardcode_shlibpath_var_GCJ=no
17302      ;;
17303
17304    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17305    freebsd* | kfreebsd*-gnu | dragonfly*)
17306      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17307      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17308      hardcode_direct_GCJ=yes
17309      hardcode_shlibpath_var_GCJ=no
17310      ;;
17311
17312    hpux9*)
17313      if test "$GCC" = yes; then
17314	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'
17315      else
17316	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'
17317      fi
17318      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17319      hardcode_libdir_separator_GCJ=:
17320      hardcode_direct_GCJ=yes
17321
17322      # hardcode_minus_L: Not really in the search PATH,
17323      # but as the default location of the library.
17324      hardcode_minus_L_GCJ=yes
17325      export_dynamic_flag_spec_GCJ='${wl}-E'
17326      ;;
17327
17328    hpux10* | hpux11*)
17329      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17330	case $host_cpu in
17331	hppa*64*|ia64*)
17332	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17333	  ;;
17334	*)
17335	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17336	  ;;
17337	esac
17338      else
17339	case $host_cpu in
17340	hppa*64*|ia64*)
17341	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17342	  ;;
17343	*)
17344	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17345	  ;;
17346	esac
17347      fi
17348      if test "$with_gnu_ld" = no; then
17349	case $host_cpu in
17350	hppa*64*)
17351	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17352	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17353	  hardcode_libdir_separator_GCJ=:
17354	  hardcode_direct_GCJ=no
17355	  hardcode_shlibpath_var_GCJ=no
17356	  ;;
17357	ia64*)
17358	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17359	  hardcode_direct_GCJ=no
17360	  hardcode_shlibpath_var_GCJ=no
17361
17362	  # hardcode_minus_L: Not really in the search PATH,
17363	  # but as the default location of the library.
17364	  hardcode_minus_L_GCJ=yes
17365	  ;;
17366	*)
17367	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17368	  hardcode_libdir_separator_GCJ=:
17369	  hardcode_direct_GCJ=yes
17370	  export_dynamic_flag_spec_GCJ='${wl}-E'
17371
17372	  # hardcode_minus_L: Not really in the search PATH,
17373	  # but as the default location of the library.
17374	  hardcode_minus_L_GCJ=yes
17375	  ;;
17376	esac
17377      fi
17378      ;;
17379
17380    irix5* | irix6* | nonstopux*)
17381      if test "$GCC" = yes; then
17382	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'
17383      else
17384	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'
17385	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17386      fi
17387      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17388      hardcode_libdir_separator_GCJ=:
17389      link_all_deplibs_GCJ=yes
17390      ;;
17391
17392    netbsd*)
17393      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17394	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17395      else
17396	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17397      fi
17398      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399      hardcode_direct_GCJ=yes
17400      hardcode_shlibpath_var_GCJ=no
17401      ;;
17402
17403    newsos6)
17404      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17405      hardcode_direct_GCJ=yes
17406      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17407      hardcode_libdir_separator_GCJ=:
17408      hardcode_shlibpath_var_GCJ=no
17409      ;;
17410
17411    openbsd*)
17412      hardcode_direct_GCJ=yes
17413      hardcode_shlibpath_var_GCJ=no
17414      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17415	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17416	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17417	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17418	export_dynamic_flag_spec_GCJ='${wl}-E'
17419      else
17420       case $host_os in
17421	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17422	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17423	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17424	   ;;
17425	 *)
17426	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17427	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17428	   ;;
17429       esac
17430      fi
17431      ;;
17432
17433    os2*)
17434      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435      hardcode_minus_L_GCJ=yes
17436      allow_undefined_flag_GCJ=unsupported
17437      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'
17438      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17439      ;;
17440
17441    osf3*)
17442      if test "$GCC" = yes; then
17443	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17444	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'
17445      else
17446	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17447	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'
17448      fi
17449      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17450      hardcode_libdir_separator_GCJ=:
17451      ;;
17452
17453    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17454      if test "$GCC" = yes; then
17455	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17456	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'
17457	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17458      else
17459	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17460	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'
17461	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~
17462	$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'
17463
17464	# Both c and cxx compiler support -rpath directly
17465	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17466      fi
17467      hardcode_libdir_separator_GCJ=:
17468      ;;
17469
17470    sco3.2v5*)
17471      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17472      hardcode_shlibpath_var_GCJ=no
17473      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17474      runpath_var=LD_RUN_PATH
17475      hardcode_runpath_var=yes
17476      ;;
17477
17478    solaris*)
17479      no_undefined_flag_GCJ=' -z text'
17480      if test "$GCC" = yes; then
17481	wlarc='${wl}'
17482	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17483	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17484	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17485      else
17486	wlarc=''
17487	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17489  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17490      fi
17491      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17492      hardcode_shlibpath_var_GCJ=no
17493      case $host_os in
17494      solaris2.[0-5] | solaris2.[0-5].*) ;;
17495      *)
17496 	# The compiler driver will combine linker options so we
17497 	# cannot just pass the convience library names through
17498 	# without $wl, iff we do not link with $LD.
17499 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17500 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17501 	case $wlarc in
17502 	'')
17503 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17504 	*)
17505 	  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' ;;
17506 	esac ;;
17507      esac
17508      link_all_deplibs_GCJ=yes
17509      ;;
17510
17511    sunos4*)
17512      if test "x$host_vendor" = xsequent; then
17513	# Use $CC to link under sequent, because it throws in some extra .o
17514	# files that make .init and .fini sections work.
17515	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17516      else
17517	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17518      fi
17519      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520      hardcode_direct_GCJ=yes
17521      hardcode_minus_L_GCJ=yes
17522      hardcode_shlibpath_var_GCJ=no
17523      ;;
17524
17525    sysv4)
17526      case $host_vendor in
17527	sni)
17528	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17529	  hardcode_direct_GCJ=yes # is this really true???
17530	;;
17531	siemens)
17532	  ## LD is ld it makes a PLAMLIB
17533	  ## CC just makes a GrossModule.
17534	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17535	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17536	  hardcode_direct_GCJ=no
17537        ;;
17538	motorola)
17539	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17541	;;
17542      esac
17543      runpath_var='LD_RUN_PATH'
17544      hardcode_shlibpath_var_GCJ=no
17545      ;;
17546
17547    sysv4.3*)
17548      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549      hardcode_shlibpath_var_GCJ=no
17550      export_dynamic_flag_spec_GCJ='-Bexport'
17551      ;;
17552
17553    sysv4*MP*)
17554      if test -d /usr/nec; then
17555	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556	hardcode_shlibpath_var_GCJ=no
17557	runpath_var=LD_RUN_PATH
17558	hardcode_runpath_var=yes
17559	ld_shlibs_GCJ=yes
17560      fi
17561      ;;
17562
17563    sysv4.2uw2*)
17564      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17565      hardcode_direct_GCJ=yes
17566      hardcode_minus_L_GCJ=no
17567      hardcode_shlibpath_var_GCJ=no
17568      hardcode_runpath_var=yes
17569      runpath_var=LD_RUN_PATH
17570      ;;
17571
17572   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17573      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17574      if test "$GCC" = yes; then
17575	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576      else
17577	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578      fi
17579      runpath_var='LD_RUN_PATH'
17580      hardcode_shlibpath_var_GCJ=no
17581      ;;
17582
17583    sysv5*)
17584      no_undefined_flag_GCJ=' -z text'
17585      # $CC -shared without GNU ld will not create a library from C++
17586      # object files and a static libstdc++, better avoid it by now
17587      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17589  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17590      hardcode_libdir_flag_spec_GCJ=
17591      hardcode_shlibpath_var_GCJ=no
17592      runpath_var='LD_RUN_PATH'
17593      ;;
17594
17595    uts4*)
17596      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17598      hardcode_shlibpath_var_GCJ=no
17599      ;;
17600
17601    *)
17602      ld_shlibs_GCJ=no
17603      ;;
17604    esac
17605  fi
17606
17607echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17608echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17609test "$ld_shlibs_GCJ" = no && can_build_shared=no
17610
17611variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17612if test "$GCC" = yes; then
17613  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17614fi
17615
17616#
17617# Do we need to explicitly link libc?
17618#
17619case "x$archive_cmds_need_lc_GCJ" in
17620x|xyes)
17621  # Assume -lc should be added
17622  archive_cmds_need_lc_GCJ=yes
17623
17624  if test "$enable_shared" = yes && test "$GCC" = yes; then
17625    case $archive_cmds_GCJ in
17626    *'~'*)
17627      # FIXME: we may have to deal with multi-command sequences.
17628      ;;
17629    '$CC '*)
17630      # Test whether the compiler implicitly links with -lc since on some
17631      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17632      # to ld, don't add -lc before -lgcc.
17633      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17634echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17635      $rm conftest*
17636      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17637
17638      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17639  (eval $ac_compile) 2>&5
17640  ac_status=$?
17641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642  (exit $ac_status); } 2>conftest.err; then
17643        soname=conftest
17644        lib=conftest
17645        libobjs=conftest.$ac_objext
17646        deplibs=
17647        wl=$lt_prog_compiler_wl_GCJ
17648        compiler_flags=-v
17649        linker_flags=-v
17650        verstring=
17651        output_objdir=.
17652        libname=conftest
17653        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17654        allow_undefined_flag_GCJ=
17655        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17656  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17657  ac_status=$?
17658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659  (exit $ac_status); }
17660        then
17661	  archive_cmds_need_lc_GCJ=no
17662        else
17663	  archive_cmds_need_lc_GCJ=yes
17664        fi
17665        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17666      else
17667        cat conftest.err 1>&5
17668      fi
17669      $rm conftest*
17670      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17671echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17672      ;;
17673    esac
17674  fi
17675  ;;
17676esac
17677
17678echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17679echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17680library_names_spec=
17681libname_spec='lib$name'
17682soname_spec=
17683shrext_cmds=".so"
17684postinstall_cmds=
17685postuninstall_cmds=
17686finish_cmds=
17687finish_eval=
17688shlibpath_var=
17689shlibpath_overrides_runpath=unknown
17690version_type=none
17691dynamic_linker="$host_os ld.so"
17692sys_lib_dlsearch_path_spec="/lib /usr/lib"
17693if test "$GCC" = yes; then
17694  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17695  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17696    # if the path contains ";" then we assume it to be the separator
17697    # otherwise default to the standard path separator (i.e. ":") - it is
17698    # assumed that no part of a normal pathname contains ";" but that should
17699    # okay in the real world where ";" in dirpaths is itself problematic.
17700    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17701  else
17702    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17703  fi
17704else
17705  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17706fi
17707need_lib_prefix=unknown
17708hardcode_into_libs=no
17709
17710# when you set need_version to no, make sure it does not cause -set_version
17711# flags to be left without arguments
17712need_version=unknown
17713
17714case $host_os in
17715aix3*)
17716  version_type=linux
17717  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17718  shlibpath_var=LIBPATH
17719
17720  # AIX 3 has no versioning support, so we append a major version to the name.
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  ;;
17723
17724aix4* | aix5*)
17725  version_type=linux
17726  need_lib_prefix=no
17727  need_version=no
17728  hardcode_into_libs=yes
17729  if test "$host_cpu" = ia64; then
17730    # AIX 5 supports IA64
17731    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17732    shlibpath_var=LD_LIBRARY_PATH
17733  else
17734    # With GCC up to 2.95.x, collect2 would create an import file
17735    # for dependence libraries.  The import file would start with
17736    # the line `#! .'.  This would cause the generated library to
17737    # depend on `.', always an invalid library.  This was fixed in
17738    # development snapshots of GCC prior to 3.0.
17739    case $host_os in
17740      aix4 | aix4.[01] | aix4.[01].*)
17741      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17742	   echo ' yes '
17743	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17744	:
17745      else
17746	can_build_shared=no
17747      fi
17748      ;;
17749    esac
17750    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17751    # soname into executable. Probably we can add versioning support to
17752    # collect2, so additional links can be useful in future.
17753    if test "$aix_use_runtimelinking" = yes; then
17754      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17755      # instead of lib<name>.a to let people know that these are not
17756      # typical AIX shared libraries.
17757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758    else
17759      # We preserve .a as extension for shared libraries through AIX4.2
17760      # and later when we are not doing run time linking.
17761      library_names_spec='${libname}${release}.a $libname.a'
17762      soname_spec='${libname}${release}${shared_ext}$major'
17763    fi
17764    shlibpath_var=LIBPATH
17765  fi
17766  ;;
17767
17768amigaos*)
17769  library_names_spec='$libname.ixlibrary $libname.a'
17770  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17771  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'
17772  ;;
17773
17774beos*)
17775  library_names_spec='${libname}${shared_ext}'
17776  dynamic_linker="$host_os ld.so"
17777  shlibpath_var=LIBRARY_PATH
17778  ;;
17779
17780bsdi[45]*)
17781  version_type=linux
17782  need_version=no
17783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784  soname_spec='${libname}${release}${shared_ext}$major'
17785  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17786  shlibpath_var=LD_LIBRARY_PATH
17787  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17788  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17789  # the default ld.so.conf also contains /usr/contrib/lib and
17790  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17791  # libtool to hard-code these into programs
17792  ;;
17793
17794cygwin* | mingw* | pw32*)
17795  version_type=windows
17796  shrext_cmds=".dll"
17797  need_version=no
17798  need_lib_prefix=no
17799
17800  case $GCC,$host_os in
17801  yes,cygwin* | yes,mingw* | yes,pw32*)
17802    library_names_spec='$libname.dll.a'
17803    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17804    postinstall_cmds='base_file=`basename \${file}`~
17805      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17806      dldir=$destdir/`dirname \$dlpath`~
17807      test -d \$dldir || mkdir -p \$dldir~
17808      $install_prog $dir/$dlname \$dldir/$dlname~
17809      chmod a+x \$dldir/$dlname'
17810    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17811      dlpath=$dir/\$dldll~
17812       $rm \$dlpath'
17813    shlibpath_overrides_runpath=yes
17814
17815    case $host_os in
17816    cygwin*)
17817      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17818      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17819      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17820      ;;
17821    mingw*)
17822      # MinGW DLLs use traditional 'lib' prefix
17823      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17824      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17825      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17826        # It is most probably a Windows format PATH printed by
17827        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17828        # path with ; separators, and with drive letters. We can handle the
17829        # drive letters (cygwin fileutils understands them), so leave them,
17830        # especially as we might pass files found there to a mingw objdump,
17831        # which wouldn't understand a cygwinified path. Ahh.
17832        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17833      else
17834        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17835      fi
17836      ;;
17837    pw32*)
17838      # pw32 DLLs use 'pw' prefix rather than 'lib'
17839      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17840      ;;
17841    esac
17842    ;;
17843
17844  *)
17845    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17846    ;;
17847  esac
17848  dynamic_linker='Win32 ld.exe'
17849  # FIXME: first we should search . and the directory the executable is in
17850  shlibpath_var=PATH
17851  ;;
17852
17853darwin* | rhapsody*)
17854  dynamic_linker="$host_os dyld"
17855  version_type=darwin
17856  need_lib_prefix=no
17857  need_version=no
17858  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17859  soname_spec='${libname}${release}${major}$shared_ext'
17860  shlibpath_overrides_runpath=yes
17861  shlibpath_var=DYLD_LIBRARY_PATH
17862  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17863  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17864  if test "$GCC" = yes; then
17865    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"`
17866  else
17867    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17868  fi
17869  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17870  ;;
17871
17872dgux*)
17873  version_type=linux
17874  need_lib_prefix=no
17875  need_version=no
17876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17877  soname_spec='${libname}${release}${shared_ext}$major'
17878  shlibpath_var=LD_LIBRARY_PATH
17879  ;;
17880
17881freebsd1*)
17882  dynamic_linker=no
17883  ;;
17884
17885haiku*)
17886  library_names_spec='${libname}${shared_ext}'
17887  dynamic_linker="$host_os ld.so"
17888  shlibpath_var=LIBRARY_PATH
17889  ;;
17890
17891kfreebsd*-gnu)
17892  version_type=linux
17893  need_lib_prefix=no
17894  need_version=no
17895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17896  soname_spec='${libname}${release}${shared_ext}$major'
17897  shlibpath_var=LD_LIBRARY_PATH
17898  shlibpath_overrides_runpath=no
17899  hardcode_into_libs=yes
17900  dynamic_linker='GNU ld.so'
17901  ;;
17902
17903freebsd* | dragonfly*)
17904  # DragonFly does not have aout.  When/if they implement a new
17905  # versioning mechanism, adjust this.
17906  if test -x /usr/bin/objformat; then
17907    objformat=`/usr/bin/objformat`
17908  else
17909    case $host_os in
17910    freebsd[123]*) objformat=aout ;;
17911    *) objformat=elf ;;
17912    esac
17913  fi
17914  version_type=freebsd-$objformat
17915  case $version_type in
17916    freebsd-elf*)
17917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17918      need_version=no
17919      need_lib_prefix=no
17920      ;;
17921    freebsd-*)
17922      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17923      need_version=yes
17924      ;;
17925  esac
17926  shlibpath_var=LD_LIBRARY_PATH
17927  case $host_os in
17928  freebsd2*)
17929    shlibpath_overrides_runpath=yes
17930    ;;
17931  freebsd3.[01]* | freebsdelf3.[01]*)
17932    shlibpath_overrides_runpath=yes
17933    hardcode_into_libs=yes
17934    ;;
17935  *) # from 3.2 on
17936    shlibpath_overrides_runpath=no
17937    hardcode_into_libs=yes
17938    ;;
17939  esac
17940  ;;
17941
17942gnu*)
17943  version_type=linux
17944  need_lib_prefix=no
17945  need_version=no
17946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17947  soname_spec='${libname}${release}${shared_ext}$major'
17948  shlibpath_var=LD_LIBRARY_PATH
17949  hardcode_into_libs=yes
17950  ;;
17951
17952hpux9* | hpux10* | hpux11*)
17953  # Give a soname corresponding to the major version so that dld.sl refuses to
17954  # link against other versions.
17955  version_type=sunos
17956  need_lib_prefix=no
17957  need_version=no
17958  case $host_cpu in
17959  ia64*)
17960    shrext_cmds='.so'
17961    hardcode_into_libs=yes
17962    dynamic_linker="$host_os dld.so"
17963    shlibpath_var=LD_LIBRARY_PATH
17964    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17965    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966    soname_spec='${libname}${release}${shared_ext}$major'
17967    if test "X$HPUX_IA64_MODE" = X32; then
17968      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17969    else
17970      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17971    fi
17972    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17973    ;;
17974   hppa*64*)
17975     shrext_cmds='.sl'
17976     hardcode_into_libs=yes
17977     dynamic_linker="$host_os dld.sl"
17978     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17979     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981     soname_spec='${libname}${release}${shared_ext}$major'
17982     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17984     ;;
17985   *)
17986    shrext_cmds='.sl'
17987    dynamic_linker="$host_os dld.sl"
17988    shlibpath_var=SHLIB_PATH
17989    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991    soname_spec='${libname}${release}${shared_ext}$major'
17992    ;;
17993  esac
17994  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17995  postinstall_cmds='chmod 555 $lib'
17996  ;;
17997
17998irix5* | irix6* | nonstopux*)
17999  case $host_os in
18000    nonstopux*) version_type=nonstopux ;;
18001    *)
18002	if test "$lt_cv_prog_gnu_ld" = yes; then
18003		version_type=linux
18004	else
18005		version_type=irix
18006	fi ;;
18007  esac
18008  need_lib_prefix=no
18009  need_version=no
18010  soname_spec='${libname}${release}${shared_ext}$major'
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18012  case $host_os in
18013  irix5* | nonstopux*)
18014    libsuff= shlibsuff=
18015    ;;
18016  *)
18017    case $LD in # libtool.m4 will add one of these switches to LD
18018    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18019      libsuff= shlibsuff= libmagic=32-bit;;
18020    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18021      libsuff=32 shlibsuff=N32 libmagic=N32;;
18022    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18023      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18024    *) libsuff= shlibsuff= libmagic=never-match;;
18025    esac
18026    ;;
18027  esac
18028  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18029  shlibpath_overrides_runpath=no
18030  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18031  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18032  hardcode_into_libs=yes
18033  ;;
18034
18035# No shared lib support for Linux oldld, aout, or coff.
18036linux*oldld* | linux*aout* | linux*coff*)
18037  dynamic_linker=no
18038  ;;
18039
18040# This must be Linux ELF.
18041linux*)
18042  version_type=linux
18043  need_lib_prefix=no
18044  need_version=no
18045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18046  soname_spec='${libname}${release}${shared_ext}$major'
18047  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18048  shlibpath_var=LD_LIBRARY_PATH
18049  shlibpath_overrides_runpath=no
18050  # This implies no fast_install, which is unacceptable.
18051  # Some rework will be needed to allow for fast_install
18052  # before this can be enabled.
18053  hardcode_into_libs=yes
18054
18055  # Append ld.so.conf contents to the search path
18056  if test -f /etc/ld.so.conf; then
18057    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' ' '`
18058    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18059  fi
18060
18061  # We used to test for /lib/ld.so.1 and disable shared libraries on
18062  # powerpc, because MkLinux only supported shared libraries with the
18063  # GNU dynamic linker.  Since this was broken with cross compilers,
18064  # most powerpc-linux boxes support dynamic linking these days and
18065  # people can always --disable-shared, the test was removed, and we
18066  # assume the GNU/Linux dynamic linker is in use.
18067  dynamic_linker='GNU/Linux ld.so'
18068  ;;
18069
18070knetbsd*-gnu)
18071  version_type=linux
18072  need_lib_prefix=no
18073  need_version=no
18074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18075  soname_spec='${libname}${release}${shared_ext}$major'
18076  shlibpath_var=LD_LIBRARY_PATH
18077  shlibpath_overrides_runpath=no
18078  hardcode_into_libs=yes
18079  dynamic_linker='GNU ld.so'
18080  ;;
18081
18082netbsd*)
18083  version_type=sunos
18084  need_lib_prefix=no
18085  need_version=no
18086  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18087    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18088    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18089    dynamic_linker='NetBSD (a.out) ld.so'
18090  else
18091    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18092    soname_spec='${libname}${release}${shared_ext}$major'
18093    dynamic_linker='NetBSD ld.elf_so'
18094  fi
18095  shlibpath_var=LD_LIBRARY_PATH
18096  shlibpath_overrides_runpath=yes
18097  hardcode_into_libs=yes
18098  ;;
18099
18100newsos6)
18101  version_type=linux
18102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18103  shlibpath_var=LD_LIBRARY_PATH
18104  shlibpath_overrides_runpath=yes
18105  ;;
18106
18107nto-qnx*)
18108  version_type=linux
18109  need_lib_prefix=no
18110  need_version=no
18111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112  soname_spec='${libname}${release}${shared_ext}$major'
18113  shlibpath_var=LD_LIBRARY_PATH
18114  shlibpath_overrides_runpath=yes
18115  ;;
18116
18117openbsd*)
18118  version_type=sunos
18119  need_lib_prefix=no
18120  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18121  case $host_os in
18122    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18123    *)                         need_version=no  ;;
18124  esac
18125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18126  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18127  shlibpath_var=LD_LIBRARY_PATH
18128  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18129    case $host_os in
18130      openbsd2.[89] | openbsd2.[89].*)
18131	shlibpath_overrides_runpath=no
18132	;;
18133      *)
18134	shlibpath_overrides_runpath=yes
18135	;;
18136      esac
18137  else
18138    shlibpath_overrides_runpath=yes
18139  fi
18140  ;;
18141
18142os2*)
18143  libname_spec='$name'
18144  shrext_cmds=".dll"
18145  need_lib_prefix=no
18146  library_names_spec='$libname${shared_ext} $libname.a'
18147  dynamic_linker='OS/2 ld.exe'
18148  shlibpath_var=LIBPATH
18149  ;;
18150
18151osf3* | osf4* | osf5*)
18152  version_type=osf
18153  need_lib_prefix=no
18154  need_version=no
18155  soname_spec='${libname}${release}${shared_ext}$major'
18156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157  shlibpath_var=LD_LIBRARY_PATH
18158  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18159  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18160  ;;
18161
18162sco3.2v5*)
18163  version_type=osf
18164  soname_spec='${libname}${release}${shared_ext}$major'
18165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166  shlibpath_var=LD_LIBRARY_PATH
18167  ;;
18168
18169solaris*)
18170  version_type=linux
18171  need_lib_prefix=no
18172  need_version=no
18173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174  soname_spec='${libname}${release}${shared_ext}$major'
18175  shlibpath_var=LD_LIBRARY_PATH
18176  shlibpath_overrides_runpath=yes
18177  hardcode_into_libs=yes
18178  # ldd complains unless libraries are executable
18179  postinstall_cmds='chmod +x $lib'
18180  ;;
18181
18182sunos4*)
18183  version_type=sunos
18184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18185  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18186  shlibpath_var=LD_LIBRARY_PATH
18187  shlibpath_overrides_runpath=yes
18188  if test "$with_gnu_ld" = yes; then
18189    need_lib_prefix=no
18190  fi
18191  need_version=yes
18192  ;;
18193
18194sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18195  version_type=linux
18196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18197  soname_spec='${libname}${release}${shared_ext}$major'
18198  shlibpath_var=LD_LIBRARY_PATH
18199  case $host_vendor in
18200    sni)
18201      shlibpath_overrides_runpath=no
18202      need_lib_prefix=no
18203      export_dynamic_flag_spec='${wl}-Blargedynsym'
18204      runpath_var=LD_RUN_PATH
18205      ;;
18206    siemens)
18207      need_lib_prefix=no
18208      ;;
18209    motorola)
18210      need_lib_prefix=no
18211      need_version=no
18212      shlibpath_overrides_runpath=no
18213      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18214      ;;
18215  esac
18216  ;;
18217
18218sysv4*MP*)
18219  if test -d /usr/nec ;then
18220    version_type=linux
18221    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18222    soname_spec='$libname${shared_ext}.$major'
18223    shlibpath_var=LD_LIBRARY_PATH
18224  fi
18225  ;;
18226
18227uts4*)
18228  version_type=linux
18229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230  soname_spec='${libname}${release}${shared_ext}$major'
18231  shlibpath_var=LD_LIBRARY_PATH
18232  ;;
18233
18234*)
18235  dynamic_linker=no
18236  ;;
18237esac
18238echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18239echo "${ECHO_T}$dynamic_linker" >&6
18240test "$dynamic_linker" = no && can_build_shared=no
18241
18242echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18243echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18244hardcode_action_GCJ=
18245if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18246   test -n "$runpath_var_GCJ" || \
18247   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18248
18249  # We can hardcode non-existant directories.
18250  if test "$hardcode_direct_GCJ" != no &&
18251     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18252     # have to relink, otherwise we might link with an installed library
18253     # when we should be linking with a yet-to-be-installed one
18254     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18255     test "$hardcode_minus_L_GCJ" != no; then
18256    # Linking always hardcodes the temporary library directory.
18257    hardcode_action_GCJ=relink
18258  else
18259    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18260    hardcode_action_GCJ=immediate
18261  fi
18262else
18263  # We cannot hardcode anything, or else we can only hardcode existing
18264  # directories.
18265  hardcode_action_GCJ=unsupported
18266fi
18267echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18268echo "${ECHO_T}$hardcode_action_GCJ" >&6
18269
18270if test "$hardcode_action_GCJ" = relink; then
18271  # Fast installation is not supported
18272  enable_fast_install=no
18273elif test "$shlibpath_overrides_runpath" = yes ||
18274     test "$enable_shared" = no; then
18275  # Fast installation is not necessary
18276  enable_fast_install=needless
18277fi
18278
18279striplib=
18280old_striplib=
18281echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18282echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18283if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18284  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18285  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18286  echo "$as_me:$LINENO: result: yes" >&5
18287echo "${ECHO_T}yes" >&6
18288else
18289# FIXME - insert some real tests, host_os isn't really good enough
18290  case $host_os in
18291   darwin*)
18292       if test -n "$STRIP" ; then
18293         striplib="$STRIP -x"
18294         echo "$as_me:$LINENO: result: yes" >&5
18295echo "${ECHO_T}yes" >&6
18296       else
18297  echo "$as_me:$LINENO: result: no" >&5
18298echo "${ECHO_T}no" >&6
18299fi
18300       ;;
18301   *)
18302  echo "$as_me:$LINENO: result: no" >&5
18303echo "${ECHO_T}no" >&6
18304    ;;
18305  esac
18306fi
18307
18308if test "x$enable_dlopen" != xyes; then
18309  enable_dlopen=unknown
18310  enable_dlopen_self=unknown
18311  enable_dlopen_self_static=unknown
18312else
18313  lt_cv_dlopen=no
18314  lt_cv_dlopen_libs=
18315
18316  case $host_os in
18317  beos*)
18318    lt_cv_dlopen="load_add_on"
18319    lt_cv_dlopen_libs=
18320    lt_cv_dlopen_self=yes
18321    ;;
18322
18323  mingw* | pw32*)
18324    lt_cv_dlopen="LoadLibrary"
18325    lt_cv_dlopen_libs=
18326   ;;
18327
18328  cygwin*)
18329    lt_cv_dlopen="dlopen"
18330    lt_cv_dlopen_libs=
18331   ;;
18332
18333  darwin*)
18334  # if libdl is installed we need to link against it
18335    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18336echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18337if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18338  echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340  ac_check_lib_save_LIBS=$LIBS
18341LIBS="-ldl  $LIBS"
18342cat >conftest.$ac_ext <<_ACEOF
18343/* confdefs.h.  */
18344_ACEOF
18345cat confdefs.h >>conftest.$ac_ext
18346cat >>conftest.$ac_ext <<_ACEOF
18347/* end confdefs.h.  */
18348
18349/* Override any gcc2 internal prototype to avoid an error.  */
18350#ifdef __cplusplus
18351extern "C"
18352#endif
18353/* We use char because int might match the return type of a gcc2
18354   builtin and then its argument prototype would still apply.  */
18355char dlopen ();
18356int
18357main ()
18358{
18359dlopen ();
18360  ;
18361  return 0;
18362}
18363_ACEOF
18364rm -f conftest.$ac_objext conftest$ac_exeext
18365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18366  (eval $ac_link) 2>conftest.er1
18367  ac_status=$?
18368  grep -v '^ *+' conftest.er1 >conftest.err
18369  rm -f conftest.er1
18370  cat conftest.err >&5
18371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372  (exit $ac_status); } &&
18373	 { ac_try='test -z "$ac_cxx_werror_flag"
18374			 || test ! -s conftest.err'
18375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376  (eval $ac_try) 2>&5
18377  ac_status=$?
18378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379  (exit $ac_status); }; } &&
18380	 { ac_try='test -s conftest$ac_exeext'
18381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382  (eval $ac_try) 2>&5
18383  ac_status=$?
18384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385  (exit $ac_status); }; }; then
18386  ac_cv_lib_dl_dlopen=yes
18387else
18388  echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391ac_cv_lib_dl_dlopen=no
18392fi
18393rm -f conftest.err conftest.$ac_objext \
18394      conftest$ac_exeext conftest.$ac_ext
18395LIBS=$ac_check_lib_save_LIBS
18396fi
18397echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18398echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18399if test $ac_cv_lib_dl_dlopen = yes; then
18400  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18401else
18402
18403    lt_cv_dlopen="dyld"
18404    lt_cv_dlopen_libs=
18405    lt_cv_dlopen_self=yes
18406
18407fi
18408
18409   ;;
18410
18411  haiku*)
18412    lt_cv_dlopen="load_add_on"
18413    lt_cv_dlopen_libs=
18414    lt_cv_dlopen_self=yes
18415    ;;
18416
18417  *)
18418    echo "$as_me:$LINENO: checking for shl_load" >&5
18419echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18420if test "${ac_cv_func_shl_load+set}" = set; then
18421  echo $ECHO_N "(cached) $ECHO_C" >&6
18422else
18423  cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h.  */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h.  */
18429/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18430   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18431#define shl_load innocuous_shl_load
18432
18433/* System header to define __stub macros and hopefully few prototypes,
18434    which can conflict with char shl_load (); below.
18435    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436    <limits.h> exists even on freestanding compilers.  */
18437
18438#ifdef __STDC__
18439# include <limits.h>
18440#else
18441# include <assert.h>
18442#endif
18443
18444#undef shl_load
18445
18446/* Override any gcc2 internal prototype to avoid an error.  */
18447#ifdef __cplusplus
18448extern "C"
18449{
18450#endif
18451/* We use char because int might match the return type of a gcc2
18452   builtin and then its argument prototype would still apply.  */
18453char shl_load ();
18454/* The GNU C library defines this for functions which it implements
18455    to always fail with ENOSYS.  Some functions are actually named
18456    something starting with __ and the normal name is an alias.  */
18457#if defined (__stub_shl_load) || defined (__stub___shl_load)
18458choke me
18459#else
18460char (*f) () = shl_load;
18461#endif
18462#ifdef __cplusplus
18463}
18464#endif
18465
18466int
18467main ()
18468{
18469return f != shl_load;
18470  ;
18471  return 0;
18472}
18473_ACEOF
18474rm -f conftest.$ac_objext conftest$ac_exeext
18475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476  (eval $ac_link) 2>conftest.er1
18477  ac_status=$?
18478  grep -v '^ *+' conftest.er1 >conftest.err
18479  rm -f conftest.er1
18480  cat conftest.err >&5
18481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482  (exit $ac_status); } &&
18483	 { ac_try='test -z "$ac_cxx_werror_flag"
18484			 || test ! -s conftest.err'
18485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486  (eval $ac_try) 2>&5
18487  ac_status=$?
18488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489  (exit $ac_status); }; } &&
18490	 { ac_try='test -s conftest$ac_exeext'
18491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492  (eval $ac_try) 2>&5
18493  ac_status=$?
18494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495  (exit $ac_status); }; }; then
18496  ac_cv_func_shl_load=yes
18497else
18498  echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501ac_cv_func_shl_load=no
18502fi
18503rm -f conftest.err conftest.$ac_objext \
18504      conftest$ac_exeext conftest.$ac_ext
18505fi
18506echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18507echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18508if test $ac_cv_func_shl_load = yes; then
18509  lt_cv_dlopen="shl_load"
18510else
18511  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18512echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18513if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18514  echo $ECHO_N "(cached) $ECHO_C" >&6
18515else
18516  ac_check_lib_save_LIBS=$LIBS
18517LIBS="-ldld  $LIBS"
18518cat >conftest.$ac_ext <<_ACEOF
18519/* confdefs.h.  */
18520_ACEOF
18521cat confdefs.h >>conftest.$ac_ext
18522cat >>conftest.$ac_ext <<_ACEOF
18523/* end confdefs.h.  */
18524
18525/* Override any gcc2 internal prototype to avoid an error.  */
18526#ifdef __cplusplus
18527extern "C"
18528#endif
18529/* We use char because int might match the return type of a gcc2
18530   builtin and then its argument prototype would still apply.  */
18531char shl_load ();
18532int
18533main ()
18534{
18535shl_load ();
18536  ;
18537  return 0;
18538}
18539_ACEOF
18540rm -f conftest.$ac_objext conftest$ac_exeext
18541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18542  (eval $ac_link) 2>conftest.er1
18543  ac_status=$?
18544  grep -v '^ *+' conftest.er1 >conftest.err
18545  rm -f conftest.er1
18546  cat conftest.err >&5
18547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548  (exit $ac_status); } &&
18549	 { ac_try='test -z "$ac_cxx_werror_flag"
18550			 || test ! -s conftest.err'
18551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552  (eval $ac_try) 2>&5
18553  ac_status=$?
18554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555  (exit $ac_status); }; } &&
18556	 { ac_try='test -s conftest$ac_exeext'
18557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558  (eval $ac_try) 2>&5
18559  ac_status=$?
18560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561  (exit $ac_status); }; }; then
18562  ac_cv_lib_dld_shl_load=yes
18563else
18564  echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567ac_cv_lib_dld_shl_load=no
18568fi
18569rm -f conftest.err conftest.$ac_objext \
18570      conftest$ac_exeext conftest.$ac_ext
18571LIBS=$ac_check_lib_save_LIBS
18572fi
18573echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18574echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18575if test $ac_cv_lib_dld_shl_load = yes; then
18576  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18577else
18578  echo "$as_me:$LINENO: checking for dlopen" >&5
18579echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18580if test "${ac_cv_func_dlopen+set}" = set; then
18581  echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583  cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h.  */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h.  */
18589/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18590   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18591#define dlopen innocuous_dlopen
18592
18593/* System header to define __stub macros and hopefully few prototypes,
18594    which can conflict with char dlopen (); below.
18595    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18596    <limits.h> exists even on freestanding compilers.  */
18597
18598#ifdef __STDC__
18599# include <limits.h>
18600#else
18601# include <assert.h>
18602#endif
18603
18604#undef dlopen
18605
18606/* Override any gcc2 internal prototype to avoid an error.  */
18607#ifdef __cplusplus
18608extern "C"
18609{
18610#endif
18611/* We use char because int might match the return type of a gcc2
18612   builtin and then its argument prototype would still apply.  */
18613char dlopen ();
18614/* The GNU C library defines this for functions which it implements
18615    to always fail with ENOSYS.  Some functions are actually named
18616    something starting with __ and the normal name is an alias.  */
18617#if defined (__stub_dlopen) || defined (__stub___dlopen)
18618choke me
18619#else
18620char (*f) () = dlopen;
18621#endif
18622#ifdef __cplusplus
18623}
18624#endif
18625
18626int
18627main ()
18628{
18629return f != dlopen;
18630  ;
18631  return 0;
18632}
18633_ACEOF
18634rm -f conftest.$ac_objext conftest$ac_exeext
18635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636  (eval $ac_link) 2>conftest.er1
18637  ac_status=$?
18638  grep -v '^ *+' conftest.er1 >conftest.err
18639  rm -f conftest.er1
18640  cat conftest.err >&5
18641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642  (exit $ac_status); } &&
18643	 { ac_try='test -z "$ac_cxx_werror_flag"
18644			 || test ! -s conftest.err'
18645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646  (eval $ac_try) 2>&5
18647  ac_status=$?
18648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649  (exit $ac_status); }; } &&
18650	 { ac_try='test -s conftest$ac_exeext'
18651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652  (eval $ac_try) 2>&5
18653  ac_status=$?
18654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655  (exit $ac_status); }; }; then
18656  ac_cv_func_dlopen=yes
18657else
18658  echo "$as_me: failed program was:" >&5
18659sed 's/^/| /' conftest.$ac_ext >&5
18660
18661ac_cv_func_dlopen=no
18662fi
18663rm -f conftest.err conftest.$ac_objext \
18664      conftest$ac_exeext conftest.$ac_ext
18665fi
18666echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18667echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18668if test $ac_cv_func_dlopen = yes; then
18669  lt_cv_dlopen="dlopen"
18670else
18671  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18674  echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676  ac_check_lib_save_LIBS=$LIBS
18677LIBS="-ldl  $LIBS"
18678cat >conftest.$ac_ext <<_ACEOF
18679/* confdefs.h.  */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h.  */
18684
18685/* Override any gcc2 internal prototype to avoid an error.  */
18686#ifdef __cplusplus
18687extern "C"
18688#endif
18689/* We use char because int might match the return type of a gcc2
18690   builtin and then its argument prototype would still apply.  */
18691char dlopen ();
18692int
18693main ()
18694{
18695dlopen ();
18696  ;
18697  return 0;
18698}
18699_ACEOF
18700rm -f conftest.$ac_objext conftest$ac_exeext
18701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702  (eval $ac_link) 2>conftest.er1
18703  ac_status=$?
18704  grep -v '^ *+' conftest.er1 >conftest.err
18705  rm -f conftest.er1
18706  cat conftest.err >&5
18707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708  (exit $ac_status); } &&
18709	 { ac_try='test -z "$ac_cxx_werror_flag"
18710			 || test ! -s conftest.err'
18711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712  (eval $ac_try) 2>&5
18713  ac_status=$?
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); }; } &&
18716	 { ac_try='test -s conftest$ac_exeext'
18717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718  (eval $ac_try) 2>&5
18719  ac_status=$?
18720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721  (exit $ac_status); }; }; then
18722  ac_cv_lib_dl_dlopen=yes
18723else
18724  echo "$as_me: failed program was:" >&5
18725sed 's/^/| /' conftest.$ac_ext >&5
18726
18727ac_cv_lib_dl_dlopen=no
18728fi
18729rm -f conftest.err conftest.$ac_objext \
18730      conftest$ac_exeext conftest.$ac_ext
18731LIBS=$ac_check_lib_save_LIBS
18732fi
18733echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18734echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18735if test $ac_cv_lib_dl_dlopen = yes; then
18736  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18737else
18738  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18739echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18740if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18741  echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743  ac_check_lib_save_LIBS=$LIBS
18744LIBS="-lsvld  $LIBS"
18745cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h.  */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h.  */
18751
18752/* Override any gcc2 internal prototype to avoid an error.  */
18753#ifdef __cplusplus
18754extern "C"
18755#endif
18756/* We use char because int might match the return type of a gcc2
18757   builtin and then its argument prototype would still apply.  */
18758char dlopen ();
18759int
18760main ()
18761{
18762dlopen ();
18763  ;
18764  return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext conftest$ac_exeext
18768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769  (eval $ac_link) 2>conftest.er1
18770  ac_status=$?
18771  grep -v '^ *+' conftest.er1 >conftest.err
18772  rm -f conftest.er1
18773  cat conftest.err >&5
18774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775  (exit $ac_status); } &&
18776	 { ac_try='test -z "$ac_cxx_werror_flag"
18777			 || test ! -s conftest.err'
18778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779  (eval $ac_try) 2>&5
18780  ac_status=$?
18781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782  (exit $ac_status); }; } &&
18783	 { ac_try='test -s conftest$ac_exeext'
18784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785  (eval $ac_try) 2>&5
18786  ac_status=$?
18787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788  (exit $ac_status); }; }; then
18789  ac_cv_lib_svld_dlopen=yes
18790else
18791  echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794ac_cv_lib_svld_dlopen=no
18795fi
18796rm -f conftest.err conftest.$ac_objext \
18797      conftest$ac_exeext conftest.$ac_ext
18798LIBS=$ac_check_lib_save_LIBS
18799fi
18800echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18801echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18802if test $ac_cv_lib_svld_dlopen = yes; then
18803  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18804else
18805  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18806echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18807if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18808  echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
18810  ac_check_lib_save_LIBS=$LIBS
18811LIBS="-ldld  $LIBS"
18812cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h.  */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h.  */
18818
18819/* Override any gcc2 internal prototype to avoid an error.  */
18820#ifdef __cplusplus
18821extern "C"
18822#endif
18823/* We use char because int might match the return type of a gcc2
18824   builtin and then its argument prototype would still apply.  */
18825char dld_link ();
18826int
18827main ()
18828{
18829dld_link ();
18830  ;
18831  return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext conftest$ac_exeext
18835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18836  (eval $ac_link) 2>conftest.er1
18837  ac_status=$?
18838  grep -v '^ *+' conftest.er1 >conftest.err
18839  rm -f conftest.er1
18840  cat conftest.err >&5
18841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842  (exit $ac_status); } &&
18843	 { ac_try='test -z "$ac_cxx_werror_flag"
18844			 || test ! -s conftest.err'
18845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846  (eval $ac_try) 2>&5
18847  ac_status=$?
18848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849  (exit $ac_status); }; } &&
18850	 { ac_try='test -s conftest$ac_exeext'
18851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852  (eval $ac_try) 2>&5
18853  ac_status=$?
18854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855  (exit $ac_status); }; }; then
18856  ac_cv_lib_dld_dld_link=yes
18857else
18858  echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861ac_cv_lib_dld_dld_link=no
18862fi
18863rm -f conftest.err conftest.$ac_objext \
18864      conftest$ac_exeext conftest.$ac_ext
18865LIBS=$ac_check_lib_save_LIBS
18866fi
18867echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18868echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18869if test $ac_cv_lib_dld_dld_link = yes; then
18870  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18871fi
18872
18873
18874fi
18875
18876
18877fi
18878
18879
18880fi
18881
18882
18883fi
18884
18885
18886fi
18887
18888    ;;
18889  esac
18890
18891  if test "x$lt_cv_dlopen" != xno; then
18892    enable_dlopen=yes
18893  else
18894    enable_dlopen=no
18895  fi
18896
18897  case $lt_cv_dlopen in
18898  dlopen)
18899    save_CPPFLAGS="$CPPFLAGS"
18900    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18901
18902    save_LDFLAGS="$LDFLAGS"
18903    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18904
18905    save_LIBS="$LIBS"
18906    LIBS="$lt_cv_dlopen_libs $LIBS"
18907
18908    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18909echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18910if test "${lt_cv_dlopen_self+set}" = set; then
18911  echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913  	  if test "$cross_compiling" = yes; then :
18914  lt_cv_dlopen_self=cross
18915else
18916  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18917  lt_status=$lt_dlunknown
18918  cat > conftest.$ac_ext <<EOF
18919#line 18919 "configure"
18920#include "confdefs.h"
18921
18922#if HAVE_DLFCN_H
18923#include <dlfcn.h>
18924#endif
18925
18926#include <stdio.h>
18927
18928#ifdef RTLD_GLOBAL
18929#  define LT_DLGLOBAL		RTLD_GLOBAL
18930#else
18931#  ifdef DL_GLOBAL
18932#    define LT_DLGLOBAL		DL_GLOBAL
18933#  else
18934#    define LT_DLGLOBAL		0
18935#  endif
18936#endif
18937
18938/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18939   find out it does not work in some platform. */
18940#ifndef LT_DLLAZY_OR_NOW
18941#  ifdef RTLD_LAZY
18942#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18943#  else
18944#    ifdef DL_LAZY
18945#      define LT_DLLAZY_OR_NOW		DL_LAZY
18946#    else
18947#      ifdef RTLD_NOW
18948#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18949#      else
18950#        ifdef DL_NOW
18951#          define LT_DLLAZY_OR_NOW	DL_NOW
18952#        else
18953#          define LT_DLLAZY_OR_NOW	0
18954#        endif
18955#      endif
18956#    endif
18957#  endif
18958#endif
18959
18960#ifdef __cplusplus
18961extern "C" void exit (int);
18962#endif
18963
18964void fnord() { int i=42;}
18965int main ()
18966{
18967  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18968  int status = $lt_dlunknown;
18969
18970  if (self)
18971    {
18972      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18973      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18974      /* dlclose (self); */
18975    }
18976
18977    exit (status);
18978}
18979EOF
18980  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18981  (eval $ac_link) 2>&5
18982  ac_status=$?
18983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18985    (./conftest; exit; ) >&5 2>/dev/null
18986    lt_status=$?
18987    case x$lt_status in
18988      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18989      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18990      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18991    esac
18992  else :
18993    # compilation failed
18994    lt_cv_dlopen_self=no
18995  fi
18996fi
18997rm -fr conftest*
18998
18999
19000fi
19001echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19002echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19003
19004    if test "x$lt_cv_dlopen_self" = xyes; then
19005      LDFLAGS="$LDFLAGS $link_static_flag"
19006      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19007echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19008if test "${lt_cv_dlopen_self_static+set}" = set; then
19009  echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011  	  if test "$cross_compiling" = yes; then :
19012  lt_cv_dlopen_self_static=cross
19013else
19014  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19015  lt_status=$lt_dlunknown
19016  cat > conftest.$ac_ext <<EOF
19017#line 19017 "configure"
19018#include "confdefs.h"
19019
19020#if HAVE_DLFCN_H
19021#include <dlfcn.h>
19022#endif
19023
19024#include <stdio.h>
19025
19026#ifdef RTLD_GLOBAL
19027#  define LT_DLGLOBAL		RTLD_GLOBAL
19028#else
19029#  ifdef DL_GLOBAL
19030#    define LT_DLGLOBAL		DL_GLOBAL
19031#  else
19032#    define LT_DLGLOBAL		0
19033#  endif
19034#endif
19035
19036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19037   find out it does not work in some platform. */
19038#ifndef LT_DLLAZY_OR_NOW
19039#  ifdef RTLD_LAZY
19040#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19041#  else
19042#    ifdef DL_LAZY
19043#      define LT_DLLAZY_OR_NOW		DL_LAZY
19044#    else
19045#      ifdef RTLD_NOW
19046#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19047#      else
19048#        ifdef DL_NOW
19049#          define LT_DLLAZY_OR_NOW	DL_NOW
19050#        else
19051#          define LT_DLLAZY_OR_NOW	0
19052#        endif
19053#      endif
19054#    endif
19055#  endif
19056#endif
19057
19058#ifdef __cplusplus
19059extern "C" void exit (int);
19060#endif
19061
19062void fnord() { int i=42;}
19063int main ()
19064{
19065  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19066  int status = $lt_dlunknown;
19067
19068  if (self)
19069    {
19070      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19071      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19072      /* dlclose (self); */
19073    }
19074
19075    exit (status);
19076}
19077EOF
19078  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079  (eval $ac_link) 2>&5
19080  ac_status=$?
19081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19083    (./conftest; exit; ) >&5 2>/dev/null
19084    lt_status=$?
19085    case x$lt_status in
19086      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19087      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19088      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19089    esac
19090  else :
19091    # compilation failed
19092    lt_cv_dlopen_self_static=no
19093  fi
19094fi
19095rm -fr conftest*
19096
19097
19098fi
19099echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19100echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19101    fi
19102
19103    CPPFLAGS="$save_CPPFLAGS"
19104    LDFLAGS="$save_LDFLAGS"
19105    LIBS="$save_LIBS"
19106    ;;
19107  esac
19108
19109  case $lt_cv_dlopen_self in
19110  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19111  *) enable_dlopen_self=unknown ;;
19112  esac
19113
19114  case $lt_cv_dlopen_self_static in
19115  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19116  *) enable_dlopen_self_static=unknown ;;
19117  esac
19118fi
19119
19120
19121# The else clause should only fire when bootstrapping the
19122# libtool distribution, otherwise you forgot to ship ltmain.sh
19123# with your package, and you will get complaints that there are
19124# no rules to generate ltmain.sh.
19125if test -f "$ltmain"; then
19126  # See if we are running on zsh, and set the options which allow our commands through
19127  # without removal of \ escapes.
19128  if test -n "${ZSH_VERSION+set}" ; then
19129    setopt NO_GLOB_SUBST
19130  fi
19131  # Now quote all the things that may contain metacharacters while being
19132  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19133  # variables and quote the copies for generation of the libtool script.
19134  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19135    SED SHELL STRIP \
19136    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19137    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19138    deplibs_check_method reload_flag reload_cmds need_locks \
19139    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19140    lt_cv_sys_global_symbol_to_c_name_address \
19141    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19142    old_postinstall_cmds old_postuninstall_cmds \
19143    compiler_GCJ \
19144    CC_GCJ \
19145    LD_GCJ \
19146    lt_prog_compiler_wl_GCJ \
19147    lt_prog_compiler_pic_GCJ \
19148    lt_prog_compiler_static_GCJ \
19149    lt_prog_compiler_no_builtin_flag_GCJ \
19150    export_dynamic_flag_spec_GCJ \
19151    thread_safe_flag_spec_GCJ \
19152    whole_archive_flag_spec_GCJ \
19153    enable_shared_with_static_runtimes_GCJ \
19154    old_archive_cmds_GCJ \
19155    old_archive_from_new_cmds_GCJ \
19156    predep_objects_GCJ \
19157    postdep_objects_GCJ \
19158    predeps_GCJ \
19159    postdeps_GCJ \
19160    compiler_lib_search_path_GCJ \
19161    archive_cmds_GCJ \
19162    archive_expsym_cmds_GCJ \
19163    postinstall_cmds_GCJ \
19164    postuninstall_cmds_GCJ \
19165    old_archive_from_expsyms_cmds_GCJ \
19166    allow_undefined_flag_GCJ \
19167    no_undefined_flag_GCJ \
19168    export_symbols_cmds_GCJ \
19169    hardcode_libdir_flag_spec_GCJ \
19170    hardcode_libdir_flag_spec_ld_GCJ \
19171    hardcode_libdir_separator_GCJ \
19172    hardcode_automatic_GCJ \
19173    module_cmds_GCJ \
19174    module_expsym_cmds_GCJ \
19175    lt_cv_prog_compiler_c_o_GCJ \
19176    exclude_expsyms_GCJ \
19177    include_expsyms_GCJ; do
19178
19179    case $var in
19180    old_archive_cmds_GCJ | \
19181    old_archive_from_new_cmds_GCJ | \
19182    archive_cmds_GCJ | \
19183    archive_expsym_cmds_GCJ | \
19184    module_cmds_GCJ | \
19185    module_expsym_cmds_GCJ | \
19186    old_archive_from_expsyms_cmds_GCJ | \
19187    export_symbols_cmds_GCJ | \
19188    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19189    postinstall_cmds | postuninstall_cmds | \
19190    old_postinstall_cmds | old_postuninstall_cmds | \
19191    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19192      # Double-quote double-evaled strings.
19193      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19194      ;;
19195    *)
19196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19197      ;;
19198    esac
19199  done
19200
19201  case $lt_echo in
19202  *'\$0 --fallback-echo"')
19203    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19204    ;;
19205  esac
19206
19207cfgfile="$ofile"
19208
19209  cat <<__EOF__ >> "$cfgfile"
19210# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19211
19212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19213
19214# Shell to use when invoking shell scripts.
19215SHELL=$lt_SHELL
19216
19217# Whether or not to build shared libraries.
19218build_libtool_libs=$enable_shared
19219
19220# Whether or not to build static libraries.
19221build_old_libs=$enable_static
19222
19223# Whether or not to add -lc for building shared libraries.
19224build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19225
19226# Whether or not to disallow shared libs when runtime libs are static
19227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19228
19229# Whether or not to optimize for fast installation.
19230fast_install=$enable_fast_install
19231
19232# The host system.
19233host_alias=$host_alias
19234host=$host
19235host_os=$host_os
19236
19237# The build system.
19238build_alias=$build_alias
19239build=$build
19240build_os=$build_os
19241
19242# An echo program that does not interpret backslashes.
19243echo=$lt_echo
19244
19245# The archiver.
19246AR=$lt_AR
19247AR_FLAGS=$lt_AR_FLAGS
19248
19249# A C compiler.
19250LTCC=$lt_LTCC
19251
19252# A language-specific compiler.
19253CC=$lt_compiler_GCJ
19254
19255# Is the compiler the GNU C compiler?
19256with_gcc=$GCC_GCJ
19257
19258# An ERE matcher.
19259EGREP=$lt_EGREP
19260
19261# The linker used to build libraries.
19262LD=$lt_LD_GCJ
19263
19264# Whether we need hard or soft links.
19265LN_S=$lt_LN_S
19266
19267# A BSD-compatible nm program.
19268NM=$lt_NM
19269
19270# A symbol stripping program
19271STRIP=$lt_STRIP
19272
19273# Used to examine libraries when file_magic_cmd begins "file"
19274MAGIC_CMD=$MAGIC_CMD
19275
19276# Used on cygwin: DLL creation program.
19277DLLTOOL="$DLLTOOL"
19278
19279# Used on cygwin: object dumper.
19280OBJDUMP="$OBJDUMP"
19281
19282# Used on cygwin: assembler.
19283AS="$AS"
19284
19285# The name of the directory that contains temporary libtool files.
19286objdir=$objdir
19287
19288# How to create reloadable object files.
19289reload_flag=$lt_reload_flag
19290reload_cmds=$lt_reload_cmds
19291
19292# How to pass a linker flag through the compiler.
19293wl=$lt_lt_prog_compiler_wl_GCJ
19294
19295# Object file suffix (normally "o").
19296objext="$ac_objext"
19297
19298# Old archive suffix (normally "a").
19299libext="$libext"
19300
19301# Shared library suffix (normally ".so").
19302shrext_cmds='$shrext_cmds'
19303
19304# Executable file suffix (normally "").
19305exeext="$exeext"
19306
19307# Additional compiler flags for building library objects.
19308pic_flag=$lt_lt_prog_compiler_pic_GCJ
19309pic_mode=$pic_mode
19310
19311# What is the maximum length of a command?
19312max_cmd_len=$lt_cv_sys_max_cmd_len
19313
19314# Does compiler simultaneously support -c and -o options?
19315compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19316
19317# Must we lock files when doing compilation?
19318need_locks=$lt_need_locks
19319
19320# Do we need the lib prefix for modules?
19321need_lib_prefix=$need_lib_prefix
19322
19323# Do we need a version for libraries?
19324need_version=$need_version
19325
19326# Whether dlopen is supported.
19327dlopen_support=$enable_dlopen
19328
19329# Whether dlopen of programs is supported.
19330dlopen_self=$enable_dlopen_self
19331
19332# Whether dlopen of statically linked programs is supported.
19333dlopen_self_static=$enable_dlopen_self_static
19334
19335# Compiler flag to prevent dynamic linking.
19336link_static_flag=$lt_lt_prog_compiler_static_GCJ
19337
19338# Compiler flag to turn off builtin functions.
19339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19340
19341# Compiler flag to allow reflexive dlopens.
19342export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19343
19344# Compiler flag to generate shared objects directly from archives.
19345whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19346
19347# Compiler flag to generate thread-safe objects.
19348thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19349
19350# Library versioning type.
19351version_type=$version_type
19352
19353# Format of library name prefix.
19354libname_spec=$lt_libname_spec
19355
19356# List of archive names.  First name is the real one, the rest are links.
19357# The last name is the one that the linker finds with -lNAME.
19358library_names_spec=$lt_library_names_spec
19359
19360# The coded name of the library, if different from the real name.
19361soname_spec=$lt_soname_spec
19362
19363# Commands used to build and install an old-style archive.
19364RANLIB=$lt_RANLIB
19365old_archive_cmds=$lt_old_archive_cmds_GCJ
19366old_postinstall_cmds=$lt_old_postinstall_cmds
19367old_postuninstall_cmds=$lt_old_postuninstall_cmds
19368
19369# Create an old-style archive from a shared archive.
19370old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19371
19372# Create a temporary old-style archive to link instead of a shared archive.
19373old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19374
19375# Commands used to build and install a shared archive.
19376archive_cmds=$lt_archive_cmds_GCJ
19377archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19378postinstall_cmds=$lt_postinstall_cmds
19379postuninstall_cmds=$lt_postuninstall_cmds
19380
19381# Commands used to build a loadable module (assumed same as above if empty)
19382module_cmds=$lt_module_cmds_GCJ
19383module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19384
19385# Commands to strip libraries.
19386old_striplib=$lt_old_striplib
19387striplib=$lt_striplib
19388
19389# Dependencies to place before the objects being linked to create a
19390# shared library.
19391predep_objects=$lt_predep_objects_GCJ
19392
19393# Dependencies to place after the objects being linked to create a
19394# shared library.
19395postdep_objects=$lt_postdep_objects_GCJ
19396
19397# Dependencies to place before the objects being linked to create a
19398# shared library.
19399predeps=$lt_predeps_GCJ
19400
19401# Dependencies to place after the objects being linked to create a
19402# shared library.
19403postdeps=$lt_postdeps_GCJ
19404
19405# The library search path used internally by the compiler when linking
19406# a shared library.
19407compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19408
19409# Method to check whether dependent libraries are shared objects.
19410deplibs_check_method=$lt_deplibs_check_method
19411
19412# Command to use when deplibs_check_method == file_magic.
19413file_magic_cmd=$lt_file_magic_cmd
19414
19415# Flag that allows shared libraries with undefined symbols to be built.
19416allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19417
19418# Flag that forces no undefined symbols.
19419no_undefined_flag=$lt_no_undefined_flag_GCJ
19420
19421# Commands used to finish a libtool library installation in a directory.
19422finish_cmds=$lt_finish_cmds
19423
19424# Same as above, but a single script fragment to be evaled but not shown.
19425finish_eval=$lt_finish_eval
19426
19427# Take the output of nm and produce a listing of raw symbols and C names.
19428global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19429
19430# Transform the output of nm in a proper C declaration
19431global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19432
19433# Transform the output of nm in a C name address pair
19434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19435
19436# This is the shared library runtime path variable.
19437runpath_var=$runpath_var
19438
19439# This is the shared library path variable.
19440shlibpath_var=$shlibpath_var
19441
19442# Is shlibpath searched before the hard-coded library search path?
19443shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19444
19445# How to hardcode a shared library path into an executable.
19446hardcode_action=$hardcode_action_GCJ
19447
19448# Whether we should hardcode library paths into libraries.
19449hardcode_into_libs=$hardcode_into_libs
19450
19451# Flag to hardcode \$libdir into a binary during linking.
19452# This must work even if \$libdir does not exist.
19453hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19454
19455# If ld is used when linking, flag to hardcode \$libdir into
19456# a binary during linking. This must work even if \$libdir does
19457# not exist.
19458hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19459
19460# Whether we need a single -rpath flag with a separated argument.
19461hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19462
19463# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19464# resulting binary.
19465hardcode_direct=$hardcode_direct_GCJ
19466
19467# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19468# resulting binary.
19469hardcode_minus_L=$hardcode_minus_L_GCJ
19470
19471# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19472# the resulting binary.
19473hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19474
19475# Set to yes if building a shared library automatically hardcodes DIR into the library
19476# and all subsequent libraries and executables linked against it.
19477hardcode_automatic=$hardcode_automatic_GCJ
19478
19479# Variables whose values should be saved in libtool wrapper scripts and
19480# restored at relink time.
19481variables_saved_for_relink="$variables_saved_for_relink"
19482
19483# Whether libtool must link a program against all its dependency libraries.
19484link_all_deplibs=$link_all_deplibs_GCJ
19485
19486# Compile-time system search path for libraries
19487sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19488
19489# Run-time system search path for libraries
19490sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19491
19492# Fix the shell variable \$srcfile for the compiler.
19493fix_srcfile_path="$fix_srcfile_path_GCJ"
19494
19495# Set to yes if exported symbols are required.
19496always_export_symbols=$always_export_symbols_GCJ
19497
19498# The commands to list exported symbols.
19499export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19500
19501# The commands to extract the exported symbol list from a shared archive.
19502extract_expsyms_cmds=$lt_extract_expsyms_cmds
19503
19504# Symbols that should not be listed in the preloaded symbols.
19505exclude_expsyms=$lt_exclude_expsyms_GCJ
19506
19507# Symbols that must always be exported.
19508include_expsyms=$lt_include_expsyms_GCJ
19509
19510# ### END LIBTOOL TAG CONFIG: $tagname
19511
19512__EOF__
19513
19514
19515else
19516  # If there is no Makefile yet, we rely on a make rule to execute
19517  # `config.status --recheck' to rerun these tests and create the
19518  # libtool script then.
19519  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19520  if test -f "$ltmain_in"; then
19521    test -f Makefile && make "$ltmain"
19522  fi
19523fi
19524
19525
19526ac_ext=cc
19527ac_cpp='$CXXCPP $CPPFLAGS'
19528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19531
19532CC="$lt_save_CC"
19533
19534	else
19535	  tagname=""
19536	fi
19537	;;
19538
19539      RC)
19540
19541
19542
19543# Source file extension for RC test sources.
19544ac_ext=rc
19545
19546# Object file extension for compiled RC test sources.
19547objext=o
19548objext_RC=$objext
19549
19550# Code to be used in simple compile tests
19551lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19552
19553# Code to be used in simple link tests
19554lt_simple_link_test_code="$lt_simple_compile_test_code"
19555
19556# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19557
19558# If no C compiler was specified, use CC.
19559LTCC=${LTCC-"$CC"}
19560
19561# Allow CC to be a program name with arguments.
19562compiler=$CC
19563
19564
19565# save warnings/boilerplate of simple test code
19566ac_outfile=conftest.$ac_objext
19567printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19569_lt_compiler_boilerplate=`cat conftest.err`
19570$rm conftest*
19571
19572ac_outfile=conftest.$ac_objext
19573printf "$lt_simple_link_test_code" >conftest.$ac_ext
19574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19575_lt_linker_boilerplate=`cat conftest.err`
19576$rm conftest*
19577
19578
19579# Allow CC to be a program name with arguments.
19580lt_save_CC="$CC"
19581CC=${RC-"windres"}
19582compiler=$CC
19583compiler_RC=$CC
19584for cc_temp in $compiler""; do
19585  case $cc_temp in
19586    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19587    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19588    \-*) ;;
19589    *) break;;
19590  esac
19591done
19592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19593
19594lt_cv_prog_compiler_c_o_RC=yes
19595
19596# The else clause should only fire when bootstrapping the
19597# libtool distribution, otherwise you forgot to ship ltmain.sh
19598# with your package, and you will get complaints that there are
19599# no rules to generate ltmain.sh.
19600if test -f "$ltmain"; then
19601  # See if we are running on zsh, and set the options which allow our commands through
19602  # without removal of \ escapes.
19603  if test -n "${ZSH_VERSION+set}" ; then
19604    setopt NO_GLOB_SUBST
19605  fi
19606  # Now quote all the things that may contain metacharacters while being
19607  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19608  # variables and quote the copies for generation of the libtool script.
19609  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19610    SED SHELL STRIP \
19611    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19612    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19613    deplibs_check_method reload_flag reload_cmds need_locks \
19614    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19615    lt_cv_sys_global_symbol_to_c_name_address \
19616    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19617    old_postinstall_cmds old_postuninstall_cmds \
19618    compiler_RC \
19619    CC_RC \
19620    LD_RC \
19621    lt_prog_compiler_wl_RC \
19622    lt_prog_compiler_pic_RC \
19623    lt_prog_compiler_static_RC \
19624    lt_prog_compiler_no_builtin_flag_RC \
19625    export_dynamic_flag_spec_RC \
19626    thread_safe_flag_spec_RC \
19627    whole_archive_flag_spec_RC \
19628    enable_shared_with_static_runtimes_RC \
19629    old_archive_cmds_RC \
19630    old_archive_from_new_cmds_RC \
19631    predep_objects_RC \
19632    postdep_objects_RC \
19633    predeps_RC \
19634    postdeps_RC \
19635    compiler_lib_search_path_RC \
19636    archive_cmds_RC \
19637    archive_expsym_cmds_RC \
19638    postinstall_cmds_RC \
19639    postuninstall_cmds_RC \
19640    old_archive_from_expsyms_cmds_RC \
19641    allow_undefined_flag_RC \
19642    no_undefined_flag_RC \
19643    export_symbols_cmds_RC \
19644    hardcode_libdir_flag_spec_RC \
19645    hardcode_libdir_flag_spec_ld_RC \
19646    hardcode_libdir_separator_RC \
19647    hardcode_automatic_RC \
19648    module_cmds_RC \
19649    module_expsym_cmds_RC \
19650    lt_cv_prog_compiler_c_o_RC \
19651    exclude_expsyms_RC \
19652    include_expsyms_RC; do
19653
19654    case $var in
19655    old_archive_cmds_RC | \
19656    old_archive_from_new_cmds_RC | \
19657    archive_cmds_RC | \
19658    archive_expsym_cmds_RC | \
19659    module_cmds_RC | \
19660    module_expsym_cmds_RC | \
19661    old_archive_from_expsyms_cmds_RC | \
19662    export_symbols_cmds_RC | \
19663    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19664    postinstall_cmds | postuninstall_cmds | \
19665    old_postinstall_cmds | old_postuninstall_cmds | \
19666    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19667      # Double-quote double-evaled strings.
19668      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19669      ;;
19670    *)
19671      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19672      ;;
19673    esac
19674  done
19675
19676  case $lt_echo in
19677  *'\$0 --fallback-echo"')
19678    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19679    ;;
19680  esac
19681
19682cfgfile="$ofile"
19683
19684  cat <<__EOF__ >> "$cfgfile"
19685# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19686
19687# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19688
19689# Shell to use when invoking shell scripts.
19690SHELL=$lt_SHELL
19691
19692# Whether or not to build shared libraries.
19693build_libtool_libs=$enable_shared
19694
19695# Whether or not to build static libraries.
19696build_old_libs=$enable_static
19697
19698# Whether or not to add -lc for building shared libraries.
19699build_libtool_need_lc=$archive_cmds_need_lc_RC
19700
19701# Whether or not to disallow shared libs when runtime libs are static
19702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19703
19704# Whether or not to optimize for fast installation.
19705fast_install=$enable_fast_install
19706
19707# The host system.
19708host_alias=$host_alias
19709host=$host
19710host_os=$host_os
19711
19712# The build system.
19713build_alias=$build_alias
19714build=$build
19715build_os=$build_os
19716
19717# An echo program that does not interpret backslashes.
19718echo=$lt_echo
19719
19720# The archiver.
19721AR=$lt_AR
19722AR_FLAGS=$lt_AR_FLAGS
19723
19724# A C compiler.
19725LTCC=$lt_LTCC
19726
19727# A language-specific compiler.
19728CC=$lt_compiler_RC
19729
19730# Is the compiler the GNU C compiler?
19731with_gcc=$GCC_RC
19732
19733# An ERE matcher.
19734EGREP=$lt_EGREP
19735
19736# The linker used to build libraries.
19737LD=$lt_LD_RC
19738
19739# Whether we need hard or soft links.
19740LN_S=$lt_LN_S
19741
19742# A BSD-compatible nm program.
19743NM=$lt_NM
19744
19745# A symbol stripping program
19746STRIP=$lt_STRIP
19747
19748# Used to examine libraries when file_magic_cmd begins "file"
19749MAGIC_CMD=$MAGIC_CMD
19750
19751# Used on cygwin: DLL creation program.
19752DLLTOOL="$DLLTOOL"
19753
19754# Used on cygwin: object dumper.
19755OBJDUMP="$OBJDUMP"
19756
19757# Used on cygwin: assembler.
19758AS="$AS"
19759
19760# The name of the directory that contains temporary libtool files.
19761objdir=$objdir
19762
19763# How to create reloadable object files.
19764reload_flag=$lt_reload_flag
19765reload_cmds=$lt_reload_cmds
19766
19767# How to pass a linker flag through the compiler.
19768wl=$lt_lt_prog_compiler_wl_RC
19769
19770# Object file suffix (normally "o").
19771objext="$ac_objext"
19772
19773# Old archive suffix (normally "a").
19774libext="$libext"
19775
19776# Shared library suffix (normally ".so").
19777shrext_cmds='$shrext_cmds'
19778
19779# Executable file suffix (normally "").
19780exeext="$exeext"
19781
19782# Additional compiler flags for building library objects.
19783pic_flag=$lt_lt_prog_compiler_pic_RC
19784pic_mode=$pic_mode
19785
19786# What is the maximum length of a command?
19787max_cmd_len=$lt_cv_sys_max_cmd_len
19788
19789# Does compiler simultaneously support -c and -o options?
19790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19791
19792# Must we lock files when doing compilation?
19793need_locks=$lt_need_locks
19794
19795# Do we need the lib prefix for modules?
19796need_lib_prefix=$need_lib_prefix
19797
19798# Do we need a version for libraries?
19799need_version=$need_version
19800
19801# Whether dlopen is supported.
19802dlopen_support=$enable_dlopen
19803
19804# Whether dlopen of programs is supported.
19805dlopen_self=$enable_dlopen_self
19806
19807# Whether dlopen of statically linked programs is supported.
19808dlopen_self_static=$enable_dlopen_self_static
19809
19810# Compiler flag to prevent dynamic linking.
19811link_static_flag=$lt_lt_prog_compiler_static_RC
19812
19813# Compiler flag to turn off builtin functions.
19814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19815
19816# Compiler flag to allow reflexive dlopens.
19817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19818
19819# Compiler flag to generate shared objects directly from archives.
19820whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19821
19822# Compiler flag to generate thread-safe objects.
19823thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19824
19825# Library versioning type.
19826version_type=$version_type
19827
19828# Format of library name prefix.
19829libname_spec=$lt_libname_spec
19830
19831# List of archive names.  First name is the real one, the rest are links.
19832# The last name is the one that the linker finds with -lNAME.
19833library_names_spec=$lt_library_names_spec
19834
19835# The coded name of the library, if different from the real name.
19836soname_spec=$lt_soname_spec
19837
19838# Commands used to build and install an old-style archive.
19839RANLIB=$lt_RANLIB
19840old_archive_cmds=$lt_old_archive_cmds_RC
19841old_postinstall_cmds=$lt_old_postinstall_cmds
19842old_postuninstall_cmds=$lt_old_postuninstall_cmds
19843
19844# Create an old-style archive from a shared archive.
19845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19846
19847# Create a temporary old-style archive to link instead of a shared archive.
19848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19849
19850# Commands used to build and install a shared archive.
19851archive_cmds=$lt_archive_cmds_RC
19852archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19853postinstall_cmds=$lt_postinstall_cmds
19854postuninstall_cmds=$lt_postuninstall_cmds
19855
19856# Commands used to build a loadable module (assumed same as above if empty)
19857module_cmds=$lt_module_cmds_RC
19858module_expsym_cmds=$lt_module_expsym_cmds_RC
19859
19860# Commands to strip libraries.
19861old_striplib=$lt_old_striplib
19862striplib=$lt_striplib
19863
19864# Dependencies to place before the objects being linked to create a
19865# shared library.
19866predep_objects=$lt_predep_objects_RC
19867
19868# Dependencies to place after the objects being linked to create a
19869# shared library.
19870postdep_objects=$lt_postdep_objects_RC
19871
19872# Dependencies to place before the objects being linked to create a
19873# shared library.
19874predeps=$lt_predeps_RC
19875
19876# Dependencies to place after the objects being linked to create a
19877# shared library.
19878postdeps=$lt_postdeps_RC
19879
19880# The library search path used internally by the compiler when linking
19881# a shared library.
19882compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19883
19884# Method to check whether dependent libraries are shared objects.
19885deplibs_check_method=$lt_deplibs_check_method
19886
19887# Command to use when deplibs_check_method == file_magic.
19888file_magic_cmd=$lt_file_magic_cmd
19889
19890# Flag that allows shared libraries with undefined symbols to be built.
19891allow_undefined_flag=$lt_allow_undefined_flag_RC
19892
19893# Flag that forces no undefined symbols.
19894no_undefined_flag=$lt_no_undefined_flag_RC
19895
19896# Commands used to finish a libtool library installation in a directory.
19897finish_cmds=$lt_finish_cmds
19898
19899# Same as above, but a single script fragment to be evaled but not shown.
19900finish_eval=$lt_finish_eval
19901
19902# Take the output of nm and produce a listing of raw symbols and C names.
19903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19904
19905# Transform the output of nm in a proper C declaration
19906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19907
19908# Transform the output of nm in a C name address pair
19909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19910
19911# This is the shared library runtime path variable.
19912runpath_var=$runpath_var
19913
19914# This is the shared library path variable.
19915shlibpath_var=$shlibpath_var
19916
19917# Is shlibpath searched before the hard-coded library search path?
19918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19919
19920# How to hardcode a shared library path into an executable.
19921hardcode_action=$hardcode_action_RC
19922
19923# Whether we should hardcode library paths into libraries.
19924hardcode_into_libs=$hardcode_into_libs
19925
19926# Flag to hardcode \$libdir into a binary during linking.
19927# This must work even if \$libdir does not exist.
19928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19929
19930# If ld is used when linking, flag to hardcode \$libdir into
19931# a binary during linking. This must work even if \$libdir does
19932# not exist.
19933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19934
19935# Whether we need a single -rpath flag with a separated argument.
19936hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19937
19938# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19939# resulting binary.
19940hardcode_direct=$hardcode_direct_RC
19941
19942# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19943# resulting binary.
19944hardcode_minus_L=$hardcode_minus_L_RC
19945
19946# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19947# the resulting binary.
19948hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19949
19950# Set to yes if building a shared library automatically hardcodes DIR into the library
19951# and all subsequent libraries and executables linked against it.
19952hardcode_automatic=$hardcode_automatic_RC
19953
19954# Variables whose values should be saved in libtool wrapper scripts and
19955# restored at relink time.
19956variables_saved_for_relink="$variables_saved_for_relink"
19957
19958# Whether libtool must link a program against all its dependency libraries.
19959link_all_deplibs=$link_all_deplibs_RC
19960
19961# Compile-time system search path for libraries
19962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19963
19964# Run-time system search path for libraries
19965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19966
19967# Fix the shell variable \$srcfile for the compiler.
19968fix_srcfile_path="$fix_srcfile_path_RC"
19969
19970# Set to yes if exported symbols are required.
19971always_export_symbols=$always_export_symbols_RC
19972
19973# The commands to list exported symbols.
19974export_symbols_cmds=$lt_export_symbols_cmds_RC
19975
19976# The commands to extract the exported symbol list from a shared archive.
19977extract_expsyms_cmds=$lt_extract_expsyms_cmds
19978
19979# Symbols that should not be listed in the preloaded symbols.
19980exclude_expsyms=$lt_exclude_expsyms_RC
19981
19982# Symbols that must always be exported.
19983include_expsyms=$lt_include_expsyms_RC
19984
19985# ### END LIBTOOL TAG CONFIG: $tagname
19986
19987__EOF__
19988
19989
19990else
19991  # If there is no Makefile yet, we rely on a make rule to execute
19992  # `config.status --recheck' to rerun these tests and create the
19993  # libtool script then.
19994  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19995  if test -f "$ltmain_in"; then
19996    test -f Makefile && make "$ltmain"
19997  fi
19998fi
19999
20000
20001ac_ext=cc
20002ac_cpp='$CXXCPP $CPPFLAGS'
20003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20006
20007CC="$lt_save_CC"
20008
20009	;;
20010
20011      *)
20012	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20013echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20014   { (exit 1); exit 1; }; }
20015	;;
20016      esac
20017
20018      # Append the new tag name to the list of available tags.
20019      if test -n "$tagname" ; then
20020      available_tags="$available_tags $tagname"
20021    fi
20022    fi
20023  done
20024  IFS="$lt_save_ifs"
20025
20026  # Now substitute the updated list of available tags.
20027  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20028    mv "${ofile}T" "$ofile"
20029    chmod +x "$ofile"
20030  else
20031    rm -f "${ofile}T"
20032    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20033echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20034   { (exit 1); exit 1; }; }
20035  fi
20036fi
20037
20038
20039
20040# This can be used to rebuild libtool when needed
20041LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20042
20043# Always use our own libtool.
20044LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20045
20046# Prevent multiple expansion
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069## ---------------------------- ##
20070## C headers required by cdemo. ##
20071## ---------------------------- ##
20072
20073
20074for ac_header in math.h
20075do
20076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20077if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078  echo "$as_me:$LINENO: checking for $ac_header" >&5
20079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20080if eval "test \"\${$as_ac_Header+set}\" = set"; then
20081  echo $ECHO_N "(cached) $ECHO_C" >&6
20082fi
20083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20085else
20086  # Is the header compilable?
20087echo "$as_me:$LINENO: checking $ac_header usability" >&5
20088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20089cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h.  */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h.  */
20095$ac_includes_default
20096#include <$ac_header>
20097_ACEOF
20098rm -f conftest.$ac_objext
20099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20100  (eval $ac_compile) 2>conftest.er1
20101  ac_status=$?
20102  grep -v '^ *+' conftest.er1 >conftest.err
20103  rm -f conftest.er1
20104  cat conftest.err >&5
20105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106  (exit $ac_status); } &&
20107	 { ac_try='test -z "$ac_cxx_werror_flag"
20108			 || test ! -s conftest.err'
20109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110  (eval $ac_try) 2>&5
20111  ac_status=$?
20112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113  (exit $ac_status); }; } &&
20114	 { ac_try='test -s conftest.$ac_objext'
20115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116  (eval $ac_try) 2>&5
20117  ac_status=$?
20118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119  (exit $ac_status); }; }; then
20120  ac_header_compiler=yes
20121else
20122  echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125ac_header_compiler=no
20126fi
20127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20129echo "${ECHO_T}$ac_header_compiler" >&6
20130
20131# Is the header present?
20132echo "$as_me:$LINENO: checking $ac_header presence" >&5
20133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20134cat >conftest.$ac_ext <<_ACEOF
20135/* confdefs.h.  */
20136_ACEOF
20137cat confdefs.h >>conftest.$ac_ext
20138cat >>conftest.$ac_ext <<_ACEOF
20139/* end confdefs.h.  */
20140#include <$ac_header>
20141_ACEOF
20142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20144  ac_status=$?
20145  grep -v '^ *+' conftest.er1 >conftest.err
20146  rm -f conftest.er1
20147  cat conftest.err >&5
20148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149  (exit $ac_status); } >/dev/null; then
20150  if test -s conftest.err; then
20151    ac_cpp_err=$ac_cxx_preproc_warn_flag
20152    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20153  else
20154    ac_cpp_err=
20155  fi
20156else
20157  ac_cpp_err=yes
20158fi
20159if test -z "$ac_cpp_err"; then
20160  ac_header_preproc=yes
20161else
20162  echo "$as_me: failed program was:" >&5
20163sed 's/^/| /' conftest.$ac_ext >&5
20164
20165  ac_header_preproc=no
20166fi
20167rm -f conftest.err conftest.$ac_ext
20168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20169echo "${ECHO_T}$ac_header_preproc" >&6
20170
20171# So?  What about this header?
20172case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20173  yes:no: )
20174    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20178    ac_header_preproc=yes
20179    ;;
20180  no:yes:* )
20181    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20183    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20184echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20185    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20187    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20188echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20189    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20191    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20193    (
20194      cat <<\_ASBOX
20195## ---------------------------------- ##
20196## Report this to bug-libtool@gnu.org ##
20197## ---------------------------------- ##
20198_ASBOX
20199    ) |
20200      sed "s/^/$as_me: WARNING:     /" >&2
20201    ;;
20202esac
20203echo "$as_me:$LINENO: checking for $ac_header" >&5
20204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20205if eval "test \"\${$as_ac_Header+set}\" = set"; then
20206  echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208  eval "$as_ac_Header=\$ac_header_preproc"
20209fi
20210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20212
20213fi
20214if test `eval echo '${'$as_ac_Header'}'` = yes; then
20215  cat >>confdefs.h <<_ACEOF
20216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20217_ACEOF
20218
20219fi
20220
20221done
20222
20223
20224
20225## ---------------------------- ##
20226## Libraries required by cdemo. ##
20227## ---------------------------- ##
20228LIBM=
20229case $host in
20230*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
20231  # These system don't have libm, or don't need it
20232  ;;
20233*-ncr-sysv4.3*)
20234  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20235echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20236if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20237  echo $ECHO_N "(cached) $ECHO_C" >&6
20238else
20239  ac_check_lib_save_LIBS=$LIBS
20240LIBS="-lmw  $LIBS"
20241cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h.  */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h.  */
20247
20248/* Override any gcc2 internal prototype to avoid an error.  */
20249#ifdef __cplusplus
20250extern "C"
20251#endif
20252/* We use char because int might match the return type of a gcc2
20253   builtin and then its argument prototype would still apply.  */
20254char _mwvalidcheckl ();
20255int
20256main ()
20257{
20258_mwvalidcheckl ();
20259  ;
20260  return 0;
20261}
20262_ACEOF
20263rm -f conftest.$ac_objext conftest$ac_exeext
20264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265  (eval $ac_link) 2>conftest.er1
20266  ac_status=$?
20267  grep -v '^ *+' conftest.er1 >conftest.err
20268  rm -f conftest.er1
20269  cat conftest.err >&5
20270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271  (exit $ac_status); } &&
20272	 { ac_try='test -z "$ac_cxx_werror_flag"
20273			 || test ! -s conftest.err'
20274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275  (eval $ac_try) 2>&5
20276  ac_status=$?
20277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278  (exit $ac_status); }; } &&
20279	 { ac_try='test -s conftest$ac_exeext'
20280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281  (eval $ac_try) 2>&5
20282  ac_status=$?
20283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284  (exit $ac_status); }; }; then
20285  ac_cv_lib_mw__mwvalidcheckl=yes
20286else
20287  echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290ac_cv_lib_mw__mwvalidcheckl=no
20291fi
20292rm -f conftest.err conftest.$ac_objext \
20293      conftest$ac_exeext conftest.$ac_ext
20294LIBS=$ac_check_lib_save_LIBS
20295fi
20296echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20297echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20298if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20299  LIBM="-lmw"
20300fi
20301
20302  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20303echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20304if test "${ac_cv_lib_m_cos+set}" = set; then
20305  echo $ECHO_N "(cached) $ECHO_C" >&6
20306else
20307  ac_check_lib_save_LIBS=$LIBS
20308LIBS="-lm  $LIBS"
20309cat >conftest.$ac_ext <<_ACEOF
20310/* confdefs.h.  */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h.  */
20315
20316/* Override any gcc2 internal prototype to avoid an error.  */
20317#ifdef __cplusplus
20318extern "C"
20319#endif
20320/* We use char because int might match the return type of a gcc2
20321   builtin and then its argument prototype would still apply.  */
20322char cos ();
20323int
20324main ()
20325{
20326cos ();
20327  ;
20328  return 0;
20329}
20330_ACEOF
20331rm -f conftest.$ac_objext conftest$ac_exeext
20332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20333  (eval $ac_link) 2>conftest.er1
20334  ac_status=$?
20335  grep -v '^ *+' conftest.er1 >conftest.err
20336  rm -f conftest.er1
20337  cat conftest.err >&5
20338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339  (exit $ac_status); } &&
20340	 { ac_try='test -z "$ac_cxx_werror_flag"
20341			 || test ! -s conftest.err'
20342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343  (eval $ac_try) 2>&5
20344  ac_status=$?
20345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346  (exit $ac_status); }; } &&
20347	 { ac_try='test -s conftest$ac_exeext'
20348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349  (eval $ac_try) 2>&5
20350  ac_status=$?
20351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352  (exit $ac_status); }; }; then
20353  ac_cv_lib_m_cos=yes
20354else
20355  echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358ac_cv_lib_m_cos=no
20359fi
20360rm -f conftest.err conftest.$ac_objext \
20361      conftest$ac_exeext conftest.$ac_ext
20362LIBS=$ac_check_lib_save_LIBS
20363fi
20364echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20365echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20366if test $ac_cv_lib_m_cos = yes; then
20367  LIBM="$LIBM -lm"
20368fi
20369
20370  ;;
20371*)
20372  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20373echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20374if test "${ac_cv_lib_m_cos+set}" = set; then
20375  echo $ECHO_N "(cached) $ECHO_C" >&6
20376else
20377  ac_check_lib_save_LIBS=$LIBS
20378LIBS="-lm  $LIBS"
20379cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h.  */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h.  */
20385
20386/* Override any gcc2 internal prototype to avoid an error.  */
20387#ifdef __cplusplus
20388extern "C"
20389#endif
20390/* We use char because int might match the return type of a gcc2
20391   builtin and then its argument prototype would still apply.  */
20392char cos ();
20393int
20394main ()
20395{
20396cos ();
20397  ;
20398  return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext conftest$ac_exeext
20402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20403  (eval $ac_link) 2>conftest.er1
20404  ac_status=$?
20405  grep -v '^ *+' conftest.er1 >conftest.err
20406  rm -f conftest.er1
20407  cat conftest.err >&5
20408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409  (exit $ac_status); } &&
20410	 { ac_try='test -z "$ac_cxx_werror_flag"
20411			 || test ! -s conftest.err'
20412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413  (eval $ac_try) 2>&5
20414  ac_status=$?
20415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416  (exit $ac_status); }; } &&
20417	 { ac_try='test -s conftest$ac_exeext'
20418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419  (eval $ac_try) 2>&5
20420  ac_status=$?
20421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422  (exit $ac_status); }; }; then
20423  ac_cv_lib_m_cos=yes
20424else
20425  echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
20428ac_cv_lib_m_cos=no
20429fi
20430rm -f conftest.err conftest.$ac_objext \
20431      conftest$ac_exeext conftest.$ac_ext
20432LIBS=$ac_check_lib_save_LIBS
20433fi
20434echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20435echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20436if test $ac_cv_lib_m_cos = yes; then
20437  LIBM="-lm"
20438fi
20439
20440  ;;
20441esac
20442
20443
20444
20445
20446## -------- ##
20447## Outputs. ##
20448## -------- ##
20449          ac_config_files="$ac_config_files Makefile"
20450
20451cat >confcache <<\_ACEOF
20452# This file is a shell script that caches the results of configure
20453# tests run on this system so they can be shared between configure
20454# scripts and configure runs, see configure's option --config-cache.
20455# It is not useful on other systems.  If it contains results you don't
20456# want to keep, you may remove or edit it.
20457#
20458# config.status only pays attention to the cache file if you give it
20459# the --recheck option to rerun configure.
20460#
20461# `ac_cv_env_foo' variables (set or unset) will be overridden when
20462# loading this file, other *unset* `ac_cv_foo' will be assigned the
20463# following values.
20464
20465_ACEOF
20466
20467# The following way of writing the cache mishandles newlines in values,
20468# but we know of no workaround that is simple, portable, and efficient.
20469# So, don't put newlines in cache variables' values.
20470# Ultrix sh set writes to stderr and can't be redirected directly,
20471# and sets the high bit in the cache file unless we assign to the vars.
20472{
20473  (set) 2>&1 |
20474    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20475    *ac_space=\ *)
20476      # `set' does not quote correctly, so add quotes (double-quote
20477      # substitution turns \\\\ into \\, and sed turns \\ into \).
20478      sed -n \
20479	"s/'/'\\\\''/g;
20480	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20481      ;;
20482    *)
20483      # `set' quotes correctly as required by POSIX, so do not add quotes.
20484      sed -n \
20485	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20486      ;;
20487    esac;
20488} |
20489  sed '
20490     t clear
20491     : clear
20492     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20493     t end
20494     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20495     : end' >>confcache
20496if diff $cache_file confcache >/dev/null 2>&1; then :; else
20497  if test -w $cache_file; then
20498    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20499    cat confcache >$cache_file
20500  else
20501    echo "not updating unwritable cache $cache_file"
20502  fi
20503fi
20504rm -f confcache
20505
20506test "x$prefix" = xNONE && prefix=$ac_default_prefix
20507# Let make expand exec_prefix.
20508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20509
20510# VPATH may cause trouble with some makes, so we remove $(srcdir),
20511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20512# trailing colons and then remove the whole line if VPATH becomes empty
20513# (actually we leave an empty line to preserve line numbers).
20514if test "x$srcdir" = x.; then
20515  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20516s/:*\$(srcdir):*/:/;
20517s/:*\${srcdir}:*/:/;
20518s/:*@srcdir@:*/:/;
20519s/^\([^=]*=[	 ]*\):*/\1/;
20520s/:*$//;
20521s/^[^=]*=[	 ]*$//;
20522}'
20523fi
20524
20525# Transform confdefs.h into DEFS.
20526# Protect against shell expansion while executing Makefile rules.
20527# Protect against Makefile macro expansion.
20528#
20529# If the first sed substitution is executed (which looks for macros that
20530# take arguments), then we branch to the quote section.  Otherwise,
20531# look for a macro that doesn't take arguments.
20532cat >confdef2opt.sed <<\_ACEOF
20533t clear
20534: clear
20535s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20536t quote
20537s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20538t quote
20539d
20540: quote
20541s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20542s,\[,\\&,g
20543s,\],\\&,g
20544s,\$,$$,g
20545p
20546_ACEOF
20547# We use echo to avoid assuming a particular line-breaking character.
20548# The extra dot is to prevent the shell from consuming trailing
20549# line-breaks from the sub-command output.  A line-break within
20550# single-quotes doesn't work because, if this script is created in a
20551# platform that uses two characters for line-breaks (e.g., DOS), tr
20552# would break.
20553ac_LF_and_DOT=`echo; echo .`
20554DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20555rm -f confdef2opt.sed
20556
20557
20558ac_libobjs=
20559ac_ltlibobjs=
20560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20561  # 1. Remove the extension, and $U if already installed.
20562  ac_i=`echo "$ac_i" |
20563	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20564  # 2. Add them.
20565  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20566  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20567done
20568LIBOBJS=$ac_libobjs
20569
20570LTLIBOBJS=$ac_ltlibobjs
20571
20572
20573if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20574  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20575Usually this means the macro was only invoked conditionally." >&5
20576echo "$as_me: error: conditional \"AMDEP\" was never defined.
20577Usually this means the macro was only invoked conditionally." >&2;}
20578   { (exit 1); exit 1; }; }
20579fi
20580if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20581  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20582Usually this means the macro was only invoked conditionally." >&5
20583echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20584Usually this means the macro was only invoked conditionally." >&2;}
20585   { (exit 1); exit 1; }; }
20586fi
20587if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20588  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20589Usually this means the macro was only invoked conditionally." >&5
20590echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&2;}
20592   { (exit 1); exit 1; }; }
20593fi
20594
20595: ${CONFIG_STATUS=./config.status}
20596ac_clean_files_save=$ac_clean_files
20597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20598{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20599echo "$as_me: creating $CONFIG_STATUS" >&6;}
20600cat >$CONFIG_STATUS <<_ACEOF
20601#! $SHELL
20602# Generated by $as_me.
20603# Run this file to recreate the current configuration.
20604# Compiler output produced by configure, useful for debugging
20605# configure, is in config.log if it exists.
20606
20607debug=false
20608ac_cs_recheck=false
20609ac_cs_silent=false
20610SHELL=\${CONFIG_SHELL-$SHELL}
20611_ACEOF
20612
20613cat >>$CONFIG_STATUS <<\_ACEOF
20614## --------------------- ##
20615## M4sh Initialization.  ##
20616## --------------------- ##
20617
20618# Be Bourne compatible
20619if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20620  emulate sh
20621  NULLCMD=:
20622  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20623  # is contrary to our usage.  Disable this feature.
20624  alias -g '${1+"$@"}'='"$@"'
20625elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20626  set -o posix
20627fi
20628DUALCASE=1; export DUALCASE # for MKS sh
20629
20630# Support unset when possible.
20631if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20632  as_unset=unset
20633else
20634  as_unset=false
20635fi
20636
20637
20638# Work around bugs in pre-3.0 UWIN ksh.
20639$as_unset ENV MAIL MAILPATH
20640PS1='$ '
20641PS2='> '
20642PS4='+ '
20643
20644# NLS nuisances.
20645for as_var in \
20646  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20647  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20648  LC_TELEPHONE LC_TIME
20649do
20650  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20651    eval $as_var=C; export $as_var
20652  else
20653    $as_unset $as_var
20654  fi
20655done
20656
20657# Required to use basename.
20658if expr a : '\(a\)' >/dev/null 2>&1; then
20659  as_expr=expr
20660else
20661  as_expr=false
20662fi
20663
20664if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20665  as_basename=basename
20666else
20667  as_basename=false
20668fi
20669
20670
20671# Name of the executable.
20672as_me=`$as_basename "$0" ||
20673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20674	 X"$0" : 'X\(//\)$' \| \
20675	 X"$0" : 'X\(/\)$' \| \
20676	 .     : '\(.\)' 2>/dev/null ||
20677echo X/"$0" |
20678    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20679  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20680  	  /^X\/\(\/\).*/{ s//\1/; q; }
20681  	  s/.*/./; q'`
20682
20683
20684# PATH needs CR, and LINENO needs CR and PATH.
20685# Avoid depending upon Character Ranges.
20686as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20688as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20689as_cr_digits='0123456789'
20690as_cr_alnum=$as_cr_Letters$as_cr_digits
20691
20692# The user is always right.
20693if test "${PATH_SEPARATOR+set}" != set; then
20694  echo "#! /bin/sh" >conf$$.sh
20695  echo  "exit 0"   >>conf$$.sh
20696  chmod +x conf$$.sh
20697  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20698    PATH_SEPARATOR=';'
20699  else
20700    PATH_SEPARATOR=:
20701  fi
20702  rm -f conf$$.sh
20703fi
20704
20705
20706  as_lineno_1=$LINENO
20707  as_lineno_2=$LINENO
20708  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20709  test "x$as_lineno_1" != "x$as_lineno_2" &&
20710  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20711  # Find who we are.  Look in the path if we contain no path at all
20712  # relative or not.
20713  case $0 in
20714    *[\\/]* ) as_myself=$0 ;;
20715    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716for as_dir in $PATH
20717do
20718  IFS=$as_save_IFS
20719  test -z "$as_dir" && as_dir=.
20720  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20721done
20722
20723       ;;
20724  esac
20725  # We did not find ourselves, most probably we were run as `sh COMMAND'
20726  # in which case we are not to be found in the path.
20727  if test "x$as_myself" = x; then
20728    as_myself=$0
20729  fi
20730  if test ! -f "$as_myself"; then
20731    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20732echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20733   { (exit 1); exit 1; }; }
20734  fi
20735  case $CONFIG_SHELL in
20736  '')
20737    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20738for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20739do
20740  IFS=$as_save_IFS
20741  test -z "$as_dir" && as_dir=.
20742  for as_base in sh bash ksh sh5; do
20743	 case $as_dir in
20744	 /*)
20745	   if ("$as_dir/$as_base" -c '
20746  as_lineno_1=$LINENO
20747  as_lineno_2=$LINENO
20748  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20749  test "x$as_lineno_1" != "x$as_lineno_2" &&
20750  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20751	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20752	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20753	     CONFIG_SHELL=$as_dir/$as_base
20754	     export CONFIG_SHELL
20755	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20756	   fi;;
20757	 esac
20758       done
20759done
20760;;
20761  esac
20762
20763  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20764  # uniformly replaced by the line number.  The first 'sed' inserts a
20765  # line-number line before each line; the second 'sed' does the real
20766  # work.  The second script uses 'N' to pair each line-number line
20767  # with the numbered line, and appends trailing '-' during
20768  # substitution so that $LINENO is not a special case at line end.
20769  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20770  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20771  sed '=' <$as_myself |
20772    sed '
20773      N
20774      s,$,-,
20775      : loop
20776      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20777      t loop
20778      s,-$,,
20779      s,^['$as_cr_digits']*\n,,
20780    ' >$as_me.lineno &&
20781  chmod +x $as_me.lineno ||
20782    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20783echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20784   { (exit 1); exit 1; }; }
20785
20786  # Don't try to exec as it changes $[0], causing all sort of problems
20787  # (the dirname of $[0] is not the place where we might find the
20788  # original and so on.  Autoconf is especially sensible to this).
20789  . ./$as_me.lineno
20790  # Exit status is that of the last command.
20791  exit
20792}
20793
20794
20795case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20796  *c*,-n*) ECHO_N= ECHO_C='
20797' ECHO_T='	' ;;
20798  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20799  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20800esac
20801
20802if expr a : '\(a\)' >/dev/null 2>&1; then
20803  as_expr=expr
20804else
20805  as_expr=false
20806fi
20807
20808rm -f conf$$ conf$$.exe conf$$.file
20809echo >conf$$.file
20810if ln -s conf$$.file conf$$ 2>/dev/null; then
20811  # We could just check for DJGPP; but this test a) works b) is more generic
20812  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20813  if test -f conf$$.exe; then
20814    # Don't use ln at all; we don't have any links
20815    as_ln_s='cp -p'
20816  else
20817    as_ln_s='ln -s'
20818  fi
20819elif ln conf$$.file conf$$ 2>/dev/null; then
20820  as_ln_s=ln
20821else
20822  as_ln_s='cp -p'
20823fi
20824rm -f conf$$ conf$$.exe conf$$.file
20825
20826if mkdir -p . 2>/dev/null; then
20827  as_mkdir_p=:
20828else
20829  test -d ./-p && rmdir ./-p
20830  as_mkdir_p=false
20831fi
20832
20833as_executable_p="test -f"
20834
20835# Sed expression to map a string onto a valid CPP name.
20836as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20837
20838# Sed expression to map a string onto a valid variable name.
20839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20840
20841
20842# IFS
20843# We need space, tab and new line, in precisely that order.
20844as_nl='
20845'
20846IFS=" 	$as_nl"
20847
20848# CDPATH.
20849$as_unset CDPATH
20850
20851exec 6>&1
20852
20853# Open the log real soon, to keep \$[0] and so on meaningful, and to
20854# report actual input values of CONFIG_FILES etc. instead of their
20855# values after options handling.  Logging --version etc. is OK.
20856exec 5>>config.log
20857{
20858  echo
20859  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20860## Running $as_me. ##
20861_ASBOX
20862} >&5
20863cat >&5 <<_CSEOF
20864
20865This file was extended by tagdemo $as_me 0.1, which was
20866generated by GNU Autoconf 2.59.  Invocation command line was
20867
20868  CONFIG_FILES    = $CONFIG_FILES
20869  CONFIG_HEADERS  = $CONFIG_HEADERS
20870  CONFIG_LINKS    = $CONFIG_LINKS
20871  CONFIG_COMMANDS = $CONFIG_COMMANDS
20872  $ $0 $@
20873
20874_CSEOF
20875echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20876echo >&5
20877_ACEOF
20878
20879# Files that config.status was made for.
20880if test -n "$ac_config_files"; then
20881  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20882fi
20883
20884if test -n "$ac_config_headers"; then
20885  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20886fi
20887
20888if test -n "$ac_config_links"; then
20889  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20890fi
20891
20892if test -n "$ac_config_commands"; then
20893  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20894fi
20895
20896cat >>$CONFIG_STATUS <<\_ACEOF
20897
20898ac_cs_usage="\
20899\`$as_me' instantiates files from templates according to the
20900current configuration.
20901
20902Usage: $0 [OPTIONS] [FILE]...
20903
20904  -h, --help       print this help, then exit
20905  -V, --version    print version number, then exit
20906  -q, --quiet      do not print progress messages
20907  -d, --debug      don't remove temporary files
20908      --recheck    update $as_me by reconfiguring in the same conditions
20909  --file=FILE[:TEMPLATE]
20910		   instantiate the configuration file FILE
20911
20912Configuration files:
20913$config_files
20914
20915Configuration commands:
20916$config_commands
20917
20918Report bugs to <bug-autoconf@gnu.org>."
20919_ACEOF
20920
20921cat >>$CONFIG_STATUS <<_ACEOF
20922ac_cs_version="\\
20923tagdemo config.status 0.1
20924configured by $0, generated by GNU Autoconf 2.59,
20925  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20926
20927Copyright (C) 2003 Free Software Foundation, Inc.
20928This config.status script is free software; the Free Software Foundation
20929gives unlimited permission to copy, distribute and modify it."
20930srcdir=$srcdir
20931INSTALL="$INSTALL"
20932_ACEOF
20933
20934cat >>$CONFIG_STATUS <<\_ACEOF
20935# If no file are specified by the user, then we need to provide default
20936# value.  By we need to know if files were specified by the user.
20937ac_need_defaults=:
20938while test $# != 0
20939do
20940  case $1 in
20941  --*=*)
20942    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20943    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20944    ac_shift=:
20945    ;;
20946  -*)
20947    ac_option=$1
20948    ac_optarg=$2
20949    ac_shift=shift
20950    ;;
20951  *) # This is not an option, so the user has probably given explicit
20952     # arguments.
20953     ac_option=$1
20954     ac_need_defaults=false;;
20955  esac
20956
20957  case $ac_option in
20958  # Handling of the options.
20959_ACEOF
20960cat >>$CONFIG_STATUS <<\_ACEOF
20961  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20962    ac_cs_recheck=: ;;
20963  --version | --vers* | -V )
20964    echo "$ac_cs_version"; exit 0 ;;
20965  --he | --h)
20966    # Conflict between --help and --header
20967    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20968Try \`$0 --help' for more information." >&5
20969echo "$as_me: error: ambiguous option: $1
20970Try \`$0 --help' for more information." >&2;}
20971   { (exit 1); exit 1; }; };;
20972  --help | --hel | -h )
20973    echo "$ac_cs_usage"; exit 0 ;;
20974  --debug | --d* | -d )
20975    debug=: ;;
20976  --file | --fil | --fi | --f )
20977    $ac_shift
20978    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20979    ac_need_defaults=false;;
20980  --header | --heade | --head | --hea )
20981    $ac_shift
20982    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20983    ac_need_defaults=false;;
20984  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20985  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20986    ac_cs_silent=: ;;
20987
20988  # This is an error.
20989  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20990Try \`$0 --help' for more information." >&5
20991echo "$as_me: error: unrecognized option: $1
20992Try \`$0 --help' for more information." >&2;}
20993   { (exit 1); exit 1; }; } ;;
20994
20995  *) ac_config_targets="$ac_config_targets $1" ;;
20996
20997  esac
20998  shift
20999done
21000
21001ac_configure_extra_args=
21002
21003if $ac_cs_silent; then
21004  exec 6>/dev/null
21005  ac_configure_extra_args="$ac_configure_extra_args --silent"
21006fi
21007
21008_ACEOF
21009cat >>$CONFIG_STATUS <<_ACEOF
21010if \$ac_cs_recheck; then
21011  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21012  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21013fi
21014
21015_ACEOF
21016
21017cat >>$CONFIG_STATUS <<_ACEOF
21018#
21019# INIT-COMMANDS section.
21020#
21021
21022AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21023
21024_ACEOF
21025
21026
21027
21028cat >>$CONFIG_STATUS <<\_ACEOF
21029for ac_config_target in $ac_config_targets
21030do
21031  case "$ac_config_target" in
21032  # Handling of arguments.
21033  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21034  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21035  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21036echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21037   { (exit 1); exit 1; }; };;
21038  esac
21039done
21040
21041# If the user did not use the arguments to specify the items to instantiate,
21042# then the envvar interface is used.  Set only those that are not.
21043# We use the long form for the default assignment because of an extremely
21044# bizarre bug on SunOS 4.1.3.
21045if $ac_need_defaults; then
21046  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21047  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21048fi
21049
21050# Have a temporary directory for convenience.  Make it in the build tree
21051# simply because there is no reason to put it here, and in addition,
21052# creating and moving files from /tmp can sometimes cause problems.
21053# Create a temporary directory, and hook for its removal unless debugging.
21054$debug ||
21055{
21056  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21057  trap '{ (exit 1); exit 1; }' 1 2 13 15
21058}
21059
21060# Create a (secure) tmp directory for tmp files.
21061
21062{
21063  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21064  test -n "$tmp" && test -d "$tmp"
21065}  ||
21066{
21067  tmp=./confstat$$-$RANDOM
21068  (umask 077 && mkdir $tmp)
21069} ||
21070{
21071   echo "$me: cannot create a temporary directory in ." >&2
21072   { (exit 1); exit 1; }
21073}
21074
21075_ACEOF
21076
21077cat >>$CONFIG_STATUS <<_ACEOF
21078
21079#
21080# CONFIG_FILES section.
21081#
21082
21083# No need to generate the scripts if there are no CONFIG_FILES.
21084# This happens for instance when ./config.status config.h
21085if test -n "\$CONFIG_FILES"; then
21086  # Protect against being on the right side of a sed subst in config.status.
21087  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21088   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21089s,@SHELL@,$SHELL,;t t
21090s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21091s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21092s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21093s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21094s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21095s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21096s,@exec_prefix@,$exec_prefix,;t t
21097s,@prefix@,$prefix,;t t
21098s,@program_transform_name@,$program_transform_name,;t t
21099s,@bindir@,$bindir,;t t
21100s,@sbindir@,$sbindir,;t t
21101s,@libexecdir@,$libexecdir,;t t
21102s,@datadir@,$datadir,;t t
21103s,@sysconfdir@,$sysconfdir,;t t
21104s,@sharedstatedir@,$sharedstatedir,;t t
21105s,@localstatedir@,$localstatedir,;t t
21106s,@libdir@,$libdir,;t t
21107s,@includedir@,$includedir,;t t
21108s,@oldincludedir@,$oldincludedir,;t t
21109s,@infodir@,$infodir,;t t
21110s,@mandir@,$mandir,;t t
21111s,@build_alias@,$build_alias,;t t
21112s,@host_alias@,$host_alias,;t t
21113s,@target_alias@,$target_alias,;t t
21114s,@DEFS@,$DEFS,;t t
21115s,@ECHO_C@,$ECHO_C,;t t
21116s,@ECHO_N@,$ECHO_N,;t t
21117s,@ECHO_T@,$ECHO_T,;t t
21118s,@LIBS@,$LIBS,;t t
21119s,@build@,$build,;t t
21120s,@build_cpu@,$build_cpu,;t t
21121s,@build_vendor@,$build_vendor,;t t
21122s,@build_os@,$build_os,;t t
21123s,@host@,$host,;t t
21124s,@host_cpu@,$host_cpu,;t t
21125s,@host_vendor@,$host_vendor,;t t
21126s,@host_os@,$host_os,;t t
21127s,@target@,$target,;t t
21128s,@target_cpu@,$target_cpu,;t t
21129s,@target_vendor@,$target_vendor,;t t
21130s,@target_os@,$target_os,;t t
21131s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21132s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21133s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21134s,@CYGPATH_W@,$CYGPATH_W,;t t
21135s,@PACKAGE@,$PACKAGE,;t t
21136s,@VERSION@,$VERSION,;t t
21137s,@ACLOCAL@,$ACLOCAL,;t t
21138s,@AUTOCONF@,$AUTOCONF,;t t
21139s,@AUTOMAKE@,$AUTOMAKE,;t t
21140s,@AUTOHEADER@,$AUTOHEADER,;t t
21141s,@MAKEINFO@,$MAKEINFO,;t t
21142s,@install_sh@,$install_sh,;t t
21143s,@STRIP@,$STRIP,;t t
21144s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21145s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21146s,@mkdir_p@,$mkdir_p,;t t
21147s,@AWK@,$AWK,;t t
21148s,@SET_MAKE@,$SET_MAKE,;t t
21149s,@am__leading_dot@,$am__leading_dot,;t t
21150s,@AMTAR@,$AMTAR,;t t
21151s,@am__tar@,$am__tar,;t t
21152s,@am__untar@,$am__untar,;t t
21153s,@CC@,$CC,;t t
21154s,@CFLAGS@,$CFLAGS,;t t
21155s,@LDFLAGS@,$LDFLAGS,;t t
21156s,@CPPFLAGS@,$CPPFLAGS,;t t
21157s,@ac_ct_CC@,$ac_ct_CC,;t t
21158s,@EXEEXT@,$EXEEXT,;t t
21159s,@OBJEXT@,$OBJEXT,;t t
21160s,@DEPDIR@,$DEPDIR,;t t
21161s,@am__include@,$am__include,;t t
21162s,@am__quote@,$am__quote,;t t
21163s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21164s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21165s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21166s,@CCDEPMODE@,$CCDEPMODE,;t t
21167s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21168s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21169s,@CPP@,$CPP,;t t
21170s,@CXX@,$CXX,;t t
21171s,@CXXFLAGS@,$CXXFLAGS,;t t
21172s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21173s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21174s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21175s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21176s,@CXXCPP@,$CXXCPP,;t t
21177s,@EGREP@,$EGREP,;t t
21178s,@LN_S@,$LN_S,;t t
21179s,@ECHO@,$ECHO,;t t
21180s,@AR@,$AR,;t t
21181s,@ac_ct_AR@,$ac_ct_AR,;t t
21182s,@RANLIB@,$RANLIB,;t t
21183s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21184s,@F77@,$F77,;t t
21185s,@FFLAGS@,$FFLAGS,;t t
21186s,@ac_ct_F77@,$ac_ct_F77,;t t
21187s,@LIBTOOL@,$LIBTOOL,;t t
21188s,@LIBM@,$LIBM,;t t
21189s,@LIBOBJS@,$LIBOBJS,;t t
21190s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21191CEOF
21192
21193_ACEOF
21194
21195  cat >>$CONFIG_STATUS <<\_ACEOF
21196  # Split the substitutions into bite-sized pieces for seds with
21197  # small command number limits, like on Digital OSF/1 and HP-UX.
21198  ac_max_sed_lines=48
21199  ac_sed_frag=1 # Number of current file.
21200  ac_beg=1 # First line for current file.
21201  ac_end=$ac_max_sed_lines # Line after last line for current file.
21202  ac_more_lines=:
21203  ac_sed_cmds=
21204  while $ac_more_lines; do
21205    if test $ac_beg -gt 1; then
21206      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21207    else
21208      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21209    fi
21210    if test ! -s $tmp/subs.frag; then
21211      ac_more_lines=false
21212    else
21213      # The purpose of the label and of the branching condition is to
21214      # speed up the sed processing (if there are no `@' at all, there
21215      # is no need to browse any of the substitutions).
21216      # These are the two extra sed commands mentioned above.
21217      (echo ':t
21218  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21219      if test -z "$ac_sed_cmds"; then
21220	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21221      else
21222	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21223      fi
21224      ac_sed_frag=`expr $ac_sed_frag + 1`
21225      ac_beg=$ac_end
21226      ac_end=`expr $ac_end + $ac_max_sed_lines`
21227    fi
21228  done
21229  if test -z "$ac_sed_cmds"; then
21230    ac_sed_cmds=cat
21231  fi
21232fi # test -n "$CONFIG_FILES"
21233
21234_ACEOF
21235cat >>$CONFIG_STATUS <<\_ACEOF
21236for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21237  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21238  case $ac_file in
21239  - | *:- | *:-:* ) # input from stdin
21240	cat >$tmp/stdin
21241	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21242	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21243  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21244	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21245  * )   ac_file_in=$ac_file.in ;;
21246  esac
21247
21248  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21249  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21251	 X"$ac_file" : 'X\(//\)[^/]' \| \
21252	 X"$ac_file" : 'X\(//\)$' \| \
21253	 X"$ac_file" : 'X\(/\)' \| \
21254	 .     : '\(.\)' 2>/dev/null ||
21255echo X"$ac_file" |
21256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21257  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21258  	  /^X\(\/\/\)$/{ s//\1/; q; }
21259  	  /^X\(\/\).*/{ s//\1/; q; }
21260  	  s/.*/./; q'`
21261  { if $as_mkdir_p; then
21262    mkdir -p "$ac_dir"
21263  else
21264    as_dir="$ac_dir"
21265    as_dirs=
21266    while test ! -d "$as_dir"; do
21267      as_dirs="$as_dir $as_dirs"
21268      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21270	 X"$as_dir" : 'X\(//\)[^/]' \| \
21271	 X"$as_dir" : 'X\(//\)$' \| \
21272	 X"$as_dir" : 'X\(/\)' \| \
21273	 .     : '\(.\)' 2>/dev/null ||
21274echo X"$as_dir" |
21275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21276  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21277  	  /^X\(\/\/\)$/{ s//\1/; q; }
21278  	  /^X\(\/\).*/{ s//\1/; q; }
21279  	  s/.*/./; q'`
21280    done
21281    test ! -n "$as_dirs" || mkdir $as_dirs
21282  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21283echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21284   { (exit 1); exit 1; }; }; }
21285
21286  ac_builddir=.
21287
21288if test "$ac_dir" != .; then
21289  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21290  # A "../" for each directory in $ac_dir_suffix.
21291  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21292else
21293  ac_dir_suffix= ac_top_builddir=
21294fi
21295
21296case $srcdir in
21297  .)  # No --srcdir option.  We are building in place.
21298    ac_srcdir=.
21299    if test -z "$ac_top_builddir"; then
21300       ac_top_srcdir=.
21301    else
21302       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21303    fi ;;
21304  [\\/]* | ?:[\\/]* )  # Absolute path.
21305    ac_srcdir=$srcdir$ac_dir_suffix;
21306    ac_top_srcdir=$srcdir ;;
21307  *) # Relative path.
21308    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21309    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21310esac
21311
21312# Do not use `cd foo && pwd` to compute absolute paths, because
21313# the directories may not exist.
21314case `pwd` in
21315.) ac_abs_builddir="$ac_dir";;
21316*)
21317  case "$ac_dir" in
21318  .) ac_abs_builddir=`pwd`;;
21319  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21320  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21321  esac;;
21322esac
21323case $ac_abs_builddir in
21324.) ac_abs_top_builddir=${ac_top_builddir}.;;
21325*)
21326  case ${ac_top_builddir}. in
21327  .) ac_abs_top_builddir=$ac_abs_builddir;;
21328  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21329  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21330  esac;;
21331esac
21332case $ac_abs_builddir in
21333.) ac_abs_srcdir=$ac_srcdir;;
21334*)
21335  case $ac_srcdir in
21336  .) ac_abs_srcdir=$ac_abs_builddir;;
21337  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21338  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21339  esac;;
21340esac
21341case $ac_abs_builddir in
21342.) ac_abs_top_srcdir=$ac_top_srcdir;;
21343*)
21344  case $ac_top_srcdir in
21345  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21346  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21347  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21348  esac;;
21349esac
21350
21351
21352  case $INSTALL in
21353  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21354  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21355  esac
21356
21357  if test x"$ac_file" != x-; then
21358    { echo "$as_me:$LINENO: creating $ac_file" >&5
21359echo "$as_me: creating $ac_file" >&6;}
21360    rm -f "$ac_file"
21361  fi
21362  # Let's still pretend it is `configure' which instantiates (i.e., don't
21363  # use $as_me), people would be surprised to read:
21364  #    /* config.h.  Generated by config.status.  */
21365  if test x"$ac_file" = x-; then
21366    configure_input=
21367  else
21368    configure_input="$ac_file.  "
21369  fi
21370  configure_input=$configure_input"Generated from `echo $ac_file_in |
21371				     sed 's,.*/,,'` by configure."
21372
21373  # First look for the input files in the build tree, otherwise in the
21374  # src tree.
21375  ac_file_inputs=`IFS=:
21376    for f in $ac_file_in; do
21377      case $f in
21378      -) echo $tmp/stdin ;;
21379      [\\/$]*)
21380	 # Absolute (can't be DOS-style, as IFS=:)
21381	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21382echo "$as_me: error: cannot find input file: $f" >&2;}
21383   { (exit 1); exit 1; }; }
21384	 echo "$f";;
21385      *) # Relative
21386	 if test -f "$f"; then
21387	   # Build tree
21388	   echo "$f"
21389	 elif test -f "$srcdir/$f"; then
21390	   # Source tree
21391	   echo "$srcdir/$f"
21392	 else
21393	   # /dev/null tree
21394	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21395echo "$as_me: error: cannot find input file: $f" >&2;}
21396   { (exit 1); exit 1; }; }
21397	 fi;;
21398      esac
21399    done` || { (exit 1); exit 1; }
21400_ACEOF
21401cat >>$CONFIG_STATUS <<_ACEOF
21402  sed "$ac_vpsub
21403$extrasub
21404_ACEOF
21405cat >>$CONFIG_STATUS <<\_ACEOF
21406:t
21407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21408s,@configure_input@,$configure_input,;t t
21409s,@srcdir@,$ac_srcdir,;t t
21410s,@abs_srcdir@,$ac_abs_srcdir,;t t
21411s,@top_srcdir@,$ac_top_srcdir,;t t
21412s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21413s,@builddir@,$ac_builddir,;t t
21414s,@abs_builddir@,$ac_abs_builddir,;t t
21415s,@top_builddir@,$ac_top_builddir,;t t
21416s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21417s,@INSTALL@,$ac_INSTALL,;t t
21418" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21419  rm -f $tmp/stdin
21420  if test x"$ac_file" != x-; then
21421    mv $tmp/out $ac_file
21422  else
21423    cat $tmp/out
21424    rm -f $tmp/out
21425  fi
21426
21427done
21428_ACEOF
21429cat >>$CONFIG_STATUS <<\_ACEOF
21430
21431#
21432# CONFIG_COMMANDS section.
21433#
21434for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21435  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21436  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21437  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21438$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21439	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21440	 X"$ac_dest" : 'X\(//\)$' \| \
21441	 X"$ac_dest" : 'X\(/\)' \| \
21442	 .     : '\(.\)' 2>/dev/null ||
21443echo X"$ac_dest" |
21444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21445  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21446  	  /^X\(\/\/\)$/{ s//\1/; q; }
21447  	  /^X\(\/\).*/{ s//\1/; q; }
21448  	  s/.*/./; q'`
21449  { if $as_mkdir_p; then
21450    mkdir -p "$ac_dir"
21451  else
21452    as_dir="$ac_dir"
21453    as_dirs=
21454    while test ! -d "$as_dir"; do
21455      as_dirs="$as_dir $as_dirs"
21456      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21458	 X"$as_dir" : 'X\(//\)[^/]' \| \
21459	 X"$as_dir" : 'X\(//\)$' \| \
21460	 X"$as_dir" : 'X\(/\)' \| \
21461	 .     : '\(.\)' 2>/dev/null ||
21462echo X"$as_dir" |
21463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21464  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21465  	  /^X\(\/\/\)$/{ s//\1/; q; }
21466  	  /^X\(\/\).*/{ s//\1/; q; }
21467  	  s/.*/./; q'`
21468    done
21469    test ! -n "$as_dirs" || mkdir $as_dirs
21470  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21471echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21472   { (exit 1); exit 1; }; }; }
21473
21474  ac_builddir=.
21475
21476if test "$ac_dir" != .; then
21477  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21478  # A "../" for each directory in $ac_dir_suffix.
21479  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21480else
21481  ac_dir_suffix= ac_top_builddir=
21482fi
21483
21484case $srcdir in
21485  .)  # No --srcdir option.  We are building in place.
21486    ac_srcdir=.
21487    if test -z "$ac_top_builddir"; then
21488       ac_top_srcdir=.
21489    else
21490       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21491    fi ;;
21492  [\\/]* | ?:[\\/]* )  # Absolute path.
21493    ac_srcdir=$srcdir$ac_dir_suffix;
21494    ac_top_srcdir=$srcdir ;;
21495  *) # Relative path.
21496    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21497    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21498esac
21499
21500# Do not use `cd foo && pwd` to compute absolute paths, because
21501# the directories may not exist.
21502case `pwd` in
21503.) ac_abs_builddir="$ac_dir";;
21504*)
21505  case "$ac_dir" in
21506  .) ac_abs_builddir=`pwd`;;
21507  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21508  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21509  esac;;
21510esac
21511case $ac_abs_builddir in
21512.) ac_abs_top_builddir=${ac_top_builddir}.;;
21513*)
21514  case ${ac_top_builddir}. in
21515  .) ac_abs_top_builddir=$ac_abs_builddir;;
21516  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21517  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21518  esac;;
21519esac
21520case $ac_abs_builddir in
21521.) ac_abs_srcdir=$ac_srcdir;;
21522*)
21523  case $ac_srcdir in
21524  .) ac_abs_srcdir=$ac_abs_builddir;;
21525  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21526  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21527  esac;;
21528esac
21529case $ac_abs_builddir in
21530.) ac_abs_top_srcdir=$ac_top_srcdir;;
21531*)
21532  case $ac_top_srcdir in
21533  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21534  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21535  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21536  esac;;
21537esac
21538
21539
21540  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21541echo "$as_me: executing $ac_dest commands" >&6;}
21542  case $ac_dest in
21543    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21544  # Strip MF so we end up with the name of the file.
21545  mf=`echo "$mf" | sed -e 's/:.*$//'`
21546  # Check whether this is an Automake generated Makefile or not.
21547  # We used to match only the files named `Makefile.in', but
21548  # some people rename them; so instead we look at the file content.
21549  # Grep'ing the first line is not enough: some people post-process
21550  # each Makefile.in and add a new line on top of each file to say so.
21551  # So let's grep whole file.
21552  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21553    dirpart=`(dirname "$mf") 2>/dev/null ||
21554$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21555	 X"$mf" : 'X\(//\)[^/]' \| \
21556	 X"$mf" : 'X\(//\)$' \| \
21557	 X"$mf" : 'X\(/\)' \| \
21558	 .     : '\(.\)' 2>/dev/null ||
21559echo X"$mf" |
21560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21561  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21562  	  /^X\(\/\/\)$/{ s//\1/; q; }
21563  	  /^X\(\/\).*/{ s//\1/; q; }
21564  	  s/.*/./; q'`
21565  else
21566    continue
21567  fi
21568  # Extract the definition of DEPDIR, am__include, and am__quote
21569  # from the Makefile without running `make'.
21570  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21571  test -z "$DEPDIR" && continue
21572  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21573  test -z "am__include" && continue
21574  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21575  # When using ansi2knr, U may be empty or an underscore; expand it
21576  U=`sed -n 's/^U = //p' < "$mf"`
21577  # Find all dependency output files, they are included files with
21578  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21579  # simplest approach to changing $(DEPDIR) to its actual value in the
21580  # expansion.
21581  for file in `sed -n "
21582    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21583       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21584    # Make sure the directory exists.
21585    test -f "$dirpart/$file" && continue
21586    fdir=`(dirname "$file") 2>/dev/null ||
21587$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21588	 X"$file" : 'X\(//\)[^/]' \| \
21589	 X"$file" : 'X\(//\)$' \| \
21590	 X"$file" : 'X\(/\)' \| \
21591	 .     : '\(.\)' 2>/dev/null ||
21592echo X"$file" |
21593    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21594  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21595  	  /^X\(\/\/\)$/{ s//\1/; q; }
21596  	  /^X\(\/\).*/{ s//\1/; q; }
21597  	  s/.*/./; q'`
21598    { if $as_mkdir_p; then
21599    mkdir -p $dirpart/$fdir
21600  else
21601    as_dir=$dirpart/$fdir
21602    as_dirs=
21603    while test ! -d "$as_dir"; do
21604      as_dirs="$as_dir $as_dirs"
21605      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21607	 X"$as_dir" : 'X\(//\)[^/]' \| \
21608	 X"$as_dir" : 'X\(//\)$' \| \
21609	 X"$as_dir" : 'X\(/\)' \| \
21610	 .     : '\(.\)' 2>/dev/null ||
21611echo X"$as_dir" |
21612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21613  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21614  	  /^X\(\/\/\)$/{ s//\1/; q; }
21615  	  /^X\(\/\).*/{ s//\1/; q; }
21616  	  s/.*/./; q'`
21617    done
21618    test ! -n "$as_dirs" || mkdir $as_dirs
21619  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21620echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21621   { (exit 1); exit 1; }; }; }
21622
21623    # echo "creating $dirpart/$file"
21624    echo '# dummy' > "$dirpart/$file"
21625  done
21626done
21627 ;;
21628  esac
21629done
21630_ACEOF
21631
21632cat >>$CONFIG_STATUS <<\_ACEOF
21633
21634{ (exit 0); exit 0; }
21635_ACEOF
21636chmod +x $CONFIG_STATUS
21637ac_clean_files=$ac_clean_files_save
21638
21639
21640# configure is writing to config.log, and then calls config.status.
21641# config.status does its own redirection, appending to config.log.
21642# Unfortunately, on DOS this fails, as config.log is still kept open
21643# by configure, so config.status won't be able to write to it; its
21644# output is simply discarded.  So we exec the FD to /dev/null,
21645# effectively closing config.log, so it can be properly (re)opened and
21646# appended to by config.status.  When coming back to configure, we
21647# need to make the FD available again.
21648if test "$no_create" != yes; then
21649  ac_cs_success=:
21650  ac_config_status_args=
21651  test "$silent" = yes &&
21652    ac_config_status_args="$ac_config_status_args --quiet"
21653  exec 5>/dev/null
21654  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21655  exec 5>>config.log
21656  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21657  # would make configure fail if this is the last instruction.
21658  $ac_cs_success || { (exit 1); exit 1; }
21659fi
21660
21661